Lines Matching refs:ahb

708    const struct AHardwareBuffer *ahb,
716 AHardwareBuffer_describe(ahb, &desc);
733 AHardwareBuffer_getNativeHandle(ahb), &buf_props))
738 * the ahb is not intended for backing a VkBuffer, error out early if the
839 AHardwareBuffer *ahb = NULL;
850 ret = AHardwareBuffer_allocate(&desc, &ahb);
860 return ahb;
869 * to allocate an ahb to retrieve the drm format modifier. For the image
872 AHardwareBuffer *ahb = NULL;
884 ahb = vn_android_ahb_allocate(16, 16, 1, format, usage);
885 if (!ahb)
889 AHardwareBuffer_getNativeHandle(ahb), &buf_props)) {
890 AHardwareBuffer_release(ahb);
904 AHardwareBuffer_release(ahb);
938 struct AHardwareBuffer *ahb)
951 handle = AHardwareBuffer_getNativeHandle(ahb);
967 /* If ahb is for an image, finish the deferred image creation first */
1043 AHardwareBuffer_acquire(ahb);
1044 mem->ahb = ahb;
1062 struct AHardwareBuffer *ahb = NULL;
1089 ahb = vn_android_ahb_allocate(width, height, layers, format, usage);
1090 if (!ahb)
1094 vn_android_device_import_ahb(dev, mem, alloc_info, alloc, ahb);
1096 /* ahb alloc has already acquired a ref and import will acquire another,
1099 AHardwareBuffer_release(ahb);
1105 vn_android_release_ahb(struct AHardwareBuffer *ahb)
1107 AHardwareBuffer_release(ahb);
1118 AHardwareBuffer_acquire(mem->ahb);
1119 *pBuffer = mem->ahb;
1174 AHardwareBuffer *ahb = NULL;
1180 ahb = vn_android_ahb_allocate(4096, 1, 1, format, usage);
1181 if (!ahb)
1185 AHardwareBuffer_getNativeHandle(ahb), &dma_buf_fd);
1187 AHardwareBuffer_release(ahb);
1194 AHardwareBuffer_release(ahb);