Home | History | Annotate | Download | only in drm_gralloc

Lines Matching refs: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 aligned_width = handle->width;
59 aligned_height = handle->height;
60 gralloc_drm_align_geometry(handle->format,
67 if (handle->format == HAL_PIXEL_FORMAT_YCbCr_420_888) {
74 w_mbs = ALIGN(handle->width, 16) / 16;
75 h_mbs = ALIGN(handle->height, 16) / 16;
79 if (handle->prime_fd >= 0) {
80 ret = drmPrimeFDToHandle(info->fd, handle->prime_fd,
84 ALOGE("failed to convert prime fd to handle %d ret=%d",
85 handle->prime_fd, ret);
89 ALOGV("Got handle %d for fd %d\n", gem_handle, handle->prime_fd);
94 ALOGE("failed to wrap bo handle=%d size=%d\n",
98 args.handle = gem_handle;
106 handle->height, pitch, cpp, size);
112 &handle->prime_fd);
113 ALOGV("Got fd %d for handle %d\n", handle->prime_fd, gem_handle);
122 handle->name = 0;
123 handle->stride = pitch;
124 buf->base.handle = handle;
142 if (bo->handle && bo->handle->prime_fd)
143 close(bo->handle->prime_fd);