Lines Matching defs:ahb

894    const struct AHardwareBuffer *ahb,
902 AHardwareBuffer_describe(ahb, &desc);
919 AHardwareBuffer_getNativeHandle(ahb), &buf_props))
924 * the ahb is not intended for backing a VkBuffer, error out early if the
1037 AHardwareBuffer *ahb = NULL;
1048 ret = AHardwareBuffer_allocate(&desc, &ahb);
1058 return ahb;
1067 * to allocate an ahb to retrieve the drm format modifier. For the image
1070 AHardwareBuffer *ahb = NULL;
1082 ahb = vn_android_ahb_allocate(16, 16, 1, format, usage);
1083 if (!ahb)
1087 AHardwareBuffer_getNativeHandle(ahb), &buf_props)) {
1088 AHardwareBuffer_release(ahb);
1102 AHardwareBuffer_release(ahb);
1137 struct AHardwareBuffer *ahb,
1151 handle = AHardwareBuffer_getNativeHandle(ahb);
1161 /* If ahb is for an image, finish the deferred image creation first */
1259 AHardwareBuffer_acquire(ahb);
1260 mem->ahb = ahb;
1278 struct AHardwareBuffer *ahb = NULL;
1305 ahb = vn_android_ahb_allocate(width, height, layers, format, usage);
1306 if (!ahb)
1310 vn_android_device_import_ahb(dev, mem, alloc_info, alloc, ahb, true);
1312 /* ahb alloc has already acquired a ref and import will acquire another,
1315 AHardwareBuffer_release(ahb);
1321 vn_android_release_ahb(struct AHardwareBuffer *ahb)
1323 AHardwareBuffer_release(ahb);
1334 AHardwareBuffer_acquire(mem->ahb);
1335 *pBuffer = mem->ahb;
1391 AHardwareBuffer *ahb = NULL;
1397 ahb = vn_android_ahb_allocate(4096, 1, 1, format, usage);
1398 if (!ahb)
1402 vn_android_gralloc_get_dma_buf_fd(AHardwareBuffer_getNativeHandle(ahb));
1404 AHardwareBuffer_release(ahb);
1411 AHardwareBuffer_release(ahb);