Lines Matching refs:handles
138 r.handles[0] = or->handle; in drm_mode_addfb()
182 if (!r->handles[i]) { in framebuffer_check()
240 if (r->handles[i]) { in framebuffer_check()
616 for (i = 0; i < ARRAY_SIZE(r->handles); i++) { in drm_mode_getfb2_ioctl()
617 r->handles[i] = 0; in drm_mode_getfb2_ioctl()
648 r->handles[i] = r->handles[j]; in drm_mode_getfb2_ioctl()
653 if (r->handles[i]) in drm_mode_getfb2_ioctl()
658 &r->handles[i]); in drm_mode_getfb2_ioctl()
662 &r->handles[i]); in drm_mode_getfb2_ioctl()
672 for (i = 0; i < ARRAY_SIZE(r->handles); i++) { in drm_mode_getfb2_ioctl()
675 if (r->handles[i]) in drm_mode_getfb2_ioctl()
676 drm_gem_handle_delete(file_priv, r->handles[i]); in drm_mode_getfb2_ioctl()
681 for (j = i + 1; j < ARRAY_SIZE(r->handles); j++) { in drm_mode_getfb2_ioctl()
682 if (r->handles[j] == r->handles[i]) in drm_mode_getfb2_ioctl()
683 r->handles[j] = 0; in drm_mode_getfb2_ioctl()