Lines Matching refs:p
32 unsigned p; in vid_out_queue_setup() local
34 for (p = vfmt->buffers; p < vfmt->planes; p++) in vid_out_queue_setup()
35 size += dev->bytesperline_out[p] * h / vfmt->vdownsampling[p] + in vid_out_queue_setup()
36 vfmt->data_offset[p]; in vid_out_queue_setup()
65 for (p = 1; p < planes; p++) { in vid_out_queue_setup()
66 if (sizes[p] < dev->bytesperline_out[p] * h / in vid_out_queue_setup()
67 vfmt->vdownsampling[p] + in vid_out_queue_setup()
68 vfmt->data_offset[p]) in vid_out_queue_setup()
72 for (p = 0; p < planes; p++) in vid_out_queue_setup()
73 sizes[p] = p ? dev->bytesperline_out[p] * h / in vid_out_queue_setup()
74 vfmt->vdownsampling[p] + in vid_out_queue_setup()
75 vfmt->data_offset[p] : size; in vid_out_queue_setup()
84 for (p = 0; p < planes; p++) in vid_out_queue_setup()
85 dprintk(dev, 1, "%s: size[%u]=%u\n", __func__, p, sizes[p]); in vid_out_queue_setup()
111 unsigned p; in vid_out_buf_prepare() local
113 for (p = vfmt->buffers; p < vfmt->planes; p++) in vid_out_buf_prepare()
114 size += dev->bytesperline_out[p] * h / vfmt->vdownsampling[p]; in vid_out_buf_prepare()
130 for (p = 0; p < planes; p++) { in vid_out_buf_prepare()
131 if (p) in vid_out_buf_prepare()
132 size = dev->bytesperline_out[p] * h / vfmt->vdownsampling[p]; in vid_out_buf_prepare()
133 size += vb->planes[p].data_offset; in vid_out_buf_prepare()
135 if (vb2_get_plane_payload(vb, p) < size) { in vid_out_buf_prepare()
137 __func__, p, vb2_get_plane_payload(vb, p), size); in vid_out_buf_prepare()
222 unsigned size, p; in vivid_update_format_out() local
278 for (p = 0; p < dev->fmt_out->planes; p++) in vivid_update_format_out()
279 dev->bytesperline_out[p] = in vivid_update_format_out()
280 (dev->sink_rect.width * dev->fmt_out->bit_depth[p]) / 8; in vivid_update_format_out()
325 unsigned p; in vivid_g_fmt_vid_out() local
336 for (p = 0; p < mp->num_planes; p++) { in vivid_g_fmt_vid_out()
337 mp->plane_fmt[p].bytesperline = dev->bytesperline_out[p]; in vivid_g_fmt_vid_out()
338 mp->plane_fmt[p].sizeimage = in vivid_g_fmt_vid_out()
339 mp->plane_fmt[p].bytesperline * mp->height / in vivid_g_fmt_vid_out()
340 fmt->vdownsampling[p] + fmt->data_offset[p]; in vivid_g_fmt_vid_out()
342 for (p = fmt->buffers; p < fmt->planes; p++) { in vivid_g_fmt_vid_out()
343 unsigned stride = dev->bytesperline_out[p]; in vivid_g_fmt_vid_out()
346 (stride * mp->height) / fmt->vdownsampling[p]; in vivid_g_fmt_vid_out()
362 unsigned p; in vivid_try_fmt_vid_out() local
406 for (p = 0; p < fmt->buffers; p++) { in vivid_try_fmt_vid_out()
408 bytesperline = (mp->width * fmt->bit_depth[p]) >> 3; in vivid_try_fmt_vid_out()
410 max_bpl = (MAX_ZOOM * MAX_WIDTH * fmt->bit_depth[p]) >> 3; in vivid_try_fmt_vid_out()
412 if (pfmt[p].bytesperline > max_bpl) in vivid_try_fmt_vid_out()
413 pfmt[p].bytesperline = max_bpl; in vivid_try_fmt_vid_out()
414 if (pfmt[p].bytesperline < bytesperline) in vivid_try_fmt_vid_out()
415 pfmt[p].bytesperline = bytesperline; in vivid_try_fmt_vid_out()
417 pfmt[p].sizeimage = (pfmt[p].bytesperline * mp->height) / in vivid_try_fmt_vid_out()
418 fmt->vdownsampling[p] + fmt->data_offset[p]; in vivid_try_fmt_vid_out()
420 memset(pfmt[p].reserved, 0, sizeof(pfmt[p].reserved)); in vivid_try_fmt_vid_out()
422 for (p = fmt->buffers; p < fmt->planes; p++) in vivid_try_fmt_vid_out()
424 (fmt->bit_depth[p] / fmt->vdownsampling[p])) / in vivid_try_fmt_vid_out()
459 unsigned p; in vivid_s_fmt_vid_out() local
555 for (p = 0; p < mp->num_planes; p++) in vivid_s_fmt_vid_out()
556 dev->bytesperline_out[p] = mp->plane_fmt[p].bytesperline; in vivid_s_fmt_vid_out()
557 for (p = dev->fmt_out->buffers; p < dev->fmt_out->planes; p++) in vivid_s_fmt_vid_out()
558 dev->bytesperline_out[p] = in vivid_s_fmt_vid_out()
559 (dev->bytesperline_out[0] * dev->fmt_out->bit_depth[p]) / in vivid_s_fmt_vid_out()