Lines Matching full:handles
52 * (or a list of memory handles for multi-planar formats) through the
55 * free to use their own backing storage object handles, e.g. vmwgfx directly
56 * exposes special TTM handles to userspace and so expects TTM handles in the
57 * create ioctl and not GEM handles.
138 r.handles[0] = or->handle; in drm_mode_addfb()
192 if (!r->handles[i]) { in framebuffer_check()
250 if (r->handles[i]) { in framebuffer_check()
615 for (i = 0; i < ARRAY_SIZE(r->handles); i++) { in drm_mode_getfb2_ioctl()
616 r->handles[i] = 0; in drm_mode_getfb2_ioctl()
631 * just return invalid handles (0) for non masters/root in drm_mode_getfb2_ioctl()
647 r->handles[i] = r->handles[j]; in drm_mode_getfb2_ioctl()
652 if (r->handles[i]) in drm_mode_getfb2_ioctl()
657 &r->handles[i]); in drm_mode_getfb2_ioctl()
661 &r->handles[i]); in drm_mode_getfb2_ioctl()
670 /* Delete any previously-created handles on failure. */ in drm_mode_getfb2_ioctl()
671 for (i = 0; i < ARRAY_SIZE(r->handles); i++) { in drm_mode_getfb2_ioctl()
674 if (r->handles[i]) in drm_mode_getfb2_ioctl()
675 drm_gem_handle_delete(file_priv, r->handles[i]); in drm_mode_getfb2_ioctl()
677 /* Zero out any handles identical to the one we just in drm_mode_getfb2_ioctl()
680 for (j = i + 1; j < ARRAY_SIZE(r->handles); j++) { in drm_mode_getfb2_ioctl()
681 if (r->handles[j] == r->handles[i]) in drm_mode_getfb2_ioctl()
682 r->handles[j] = 0; in drm_mode_getfb2_ioctl()