Lines Matching full:handle
38 struct gralloc_drm_handle_t *handle)
52 cpp = gralloc_drm_get_bpp(handle->format);
54 ALOGE("unrecognized format 0x%x", handle->format);
58 gralloc_drm_align_geometry(handle->format,
59 &handle->width, &handle->height);
62 pitch = ALIGN(handle->width * cpp, 64);
63 size = handle->height * pitch;
65 if (handle->prime_fd >= 0) {
66 ret = drmPrimeFDToHandle(info->fd, handle->prime_fd,
70 ALOGE("failed to convert prime fd to handle %d ret=%d",
71 handle->prime_fd, ret);
75 ALOGV("Got handle %d for fd %d\n", gem_handle, handle->prime_fd);
80 ALOGE("failed to wrap bo handle=%d size=%d\n",
84 args.handle = gem_handle;
92 handle->height, pitch, cpp, size);
98 &handle->prime_fd);
99 ALOGV("Got fd %d for handle %d\n", handle->prime_fd, gem_handle);
108 handle->name = 0;
109 handle->stride = pitch;
110 buf->base.handle = handle;
128 if (bo->handle && bo->handle->prime_fd)
129 close(bo->handle->prime_fd);