Lines Matching refs:bytesused
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.
98 unsigned int bytesused;
110 bytesused = b->m.planes[plane].bytesused
111 ? b->m.planes[plane].bytesused : length;
113 if (b->m.planes[plane].bytesused > length)
117 b->m.planes[plane].data_offset >= bytesused)
124 if (b->bytesused > length)
169 pr_warn("use of bytesused == 0 is deprecated and will be removed in the future,\n");
240 * If bytesused == 0 for the output buffer, then fall
246 * Some drivers, e.g. old codec drivers, use bytesused == 0
256 if (psrc->bytesused == 0)
260 pdst->bytesused = psrc->bytesused;
262 pdst->bytesused = psrc->bytesused ?
263 psrc->bytesused : pdst->length;
274 * If bytesused == 0 for the output buffer, then fall back
277 * Some drivers, e.g. old codec drivers, use bytesused == 0 as
299 if (b->bytesused == 0)
303 planes[0].bytesused = b->bytesused;
305 planes[0].bytesused = b->bytesused ?
306 b->bytesused : planes[0].length;
308 planes[0].bytesused = 0;
503 b->bytesused = 0;
523 pdst->bytesused = psrc->bytesused;
540 b->bytesused = vb->planes[0].bytesused;
614 planes[plane].bytesused = vbuf->planes[plane].bytesused;