Lines Matching refs: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.
137 r.handles[0] = or->handle;
209 if (!r->handles[i]) {
267 if (r->handles[i]) {
600 for (i = 0; i < ARRAY_SIZE(r->handles); i++) {
601 r->handles[i] = 0;
616 * just return invalid handles (0) for non masters/root
632 r->handles[i] = r->handles[j];
637 if (r->handles[i])
642 &r->handles[i]);
646 &r->handles[i]);
655 /* Delete any previously-created handles on failure. */
656 for (i = 0; i < ARRAY_SIZE(r->handles); i++) {
659 if (r->handles[i])
660 drm_gem_handle_delete(file_priv, r->handles[i]);
662 /* Zero out any handles identical to the one we just
665 for (j = i + 1; j < ARRAY_SIZE(r->handles); j++) {
666 if (r->handles[j] == r->handles[i])
667 r->handles[j] = 0;