Lines Matching defs:plane
60 unsigned plane;
62 for (plane = 0; plane < __arraycount(fb->obj); plane++)
63 drm_gem_object_put_unlocked(fb->obj[plane]);
71 * Create a GEM handle for the object of the first plane (plane=0)
103 unsigned plane;
123 /* Get the object for each plane. */
124 for (plane = 0; plane < fb->format->num_planes; plane++) {
125 unsigned vsub = (plane > 0 ? fb->format->vsub : 1); /* XXX ? */
126 unsigned hsub = (plane > 0 ? fb->format->hsub : 1); /* XXX ? */
127 unsigned handle = mode_cmd->handles[plane];
130 /* Look up the object for this plane. */
131 fb->obj[plane] = drm_gem_object_lookup(file, handle);
132 if (fb->obj[plane] == NULL) {
138 size = (mode_cmd->height/vsub - 1)*mode_cmd->pitches[plane]
139 + (mode_cmd->width/hsub)*fb->format->cpp[plane]
140 + mode_cmd->offsets[plane];
141 if (fb->obj[plane]->size < size) {
143 plane++; /* free this one too */
156 fail2: while (plane --> 0)
157 drm_gem_object_put_unlocked(fb->obj[plane]);