Lines Matching refs:handles
137 r.handles[0] = or->handle; in drm_mode_addfb()
212 if (!r->handles[i]) { in framebuffer_check()
270 if (r->handles[i]) { in framebuffer_check()
600 for (i = 0; i < ARRAY_SIZE(r->handles); i++) { in drm_mode_getfb2_ioctl()
601 r->handles[i] = 0; in drm_mode_getfb2_ioctl()
632 r->handles[i] = r->handles[j]; in drm_mode_getfb2_ioctl()
637 if (r->handles[i]) in drm_mode_getfb2_ioctl()
642 &r->handles[i]); in drm_mode_getfb2_ioctl()
646 &r->handles[i]); in drm_mode_getfb2_ioctl()
656 for (i = 0; i < ARRAY_SIZE(r->handles); i++) { in drm_mode_getfb2_ioctl()
659 if (r->handles[i]) in drm_mode_getfb2_ioctl()
660 drm_gem_handle_delete(file_priv, r->handles[i]); in drm_mode_getfb2_ioctl()
665 for (j = i + 1; j < ARRAY_SIZE(r->handles); j++) { in drm_mode_getfb2_ioctl()
666 if (r->handles[j] == r->handles[i]) in drm_mode_getfb2_ioctl()
667 r->handles[j] = 0; in drm_mode_getfb2_ioctl()