Lines Matching refs:plane

69 	/* Is memory for copying plane information present? */
92 * __verify_length() - Verify that the bytesused value for each plane fits in
93 * the plane length and that the data offset doesn't exceed the bytesused value.
99 unsigned int plane;
105 for (plane = 0; plane < vb->num_planes; ++plane) {
108 ? b->m.planes[plane].length
109 : vb->planes[plane].length;
110 bytesused = b->m.planes[plane].bytesused
111 ? b->m.planes[plane].bytesused : length;
113 if (b->m.planes[plane].bytesused > length)
116 if (b->m.planes[plane].data_offset > 0 &&
117 b->m.planes[plane].data_offset >= bytesused)
181 unsigned int plane;
186 dprintk(q, 1, "plane parameters verification failed: %d\n", ret);
209 for (plane = 0; plane < vb->num_planes; ++plane) {
210 planes[plane].m.userptr =
211 b->m.planes[plane].m.userptr;
212 planes[plane].length =
213 b->m.planes[plane].length;
217 for (plane = 0; plane < vb->num_planes; ++plane) {
218 planes[plane].m.fd =
219 b->m.planes[plane].m.fd;
220 planes[plane].length =
221 b->m.planes[plane].length;
225 for (plane = 0; plane < vb->num_planes; ++plane) {
226 planes[plane].m.offset =
227 vb->planes[plane].m.offset;
228 planes[plane].length =
229 vb->planes[plane].length;
244 * use the full plane sizes.
252 for (plane = 0; plane < vb->num_planes; ++plane) {
253 struct vb2_plane *pdst = &planes[plane];
254 struct v4l2_plane *psrc = &b->m.planes[plane];
527 unsigned int plane;
545 * Fill in plane-related data if userspace provided an array
549 for (plane = 0; plane < vb->num_planes; ++plane) {
550 struct v4l2_plane *pdst = &b->m.planes[plane];
551 struct vb2_plane *psrc = &vb->planes[plane];
634 unsigned int plane;
639 for (plane = 0; plane < vb->num_planes; ++plane) {
641 planes[plane].m = vbuf->planes[plane].m;
642 planes[plane].length = vbuf->planes[plane].length;
644 planes[plane].bytesused = vbuf->planes[plane].bytesused;
645 planes[plane].data_offset = vbuf->planes[plane].data_offset;
886 eb->plane, eb->flags);