Lines Matching refs:q_data
840 struct jpu_q_data *q_data; in jpu_s_fmt() local
856 q_data = jpu_get_q_data(ctx, f->type); in jpu_s_fmt()
858 q_data->format = f->fmt.pix_mp; in jpu_s_fmt()
859 q_data->fmtinfo = fmtinfo; in jpu_s_fmt()
866 struct jpu_q_data *q_data; in jpu_g_fmt() local
872 q_data = jpu_get_q_data(ctx, f->type); in jpu_g_fmt()
873 f->fmt.pix_mp = q_data->format; in jpu_g_fmt()
1001 struct jpu_q_data *q_data; in jpu_queue_setup() local
1004 q_data = jpu_get_q_data(ctx, vq->type); in jpu_queue_setup()
1007 if (*nplanes != q_data->format.num_planes) in jpu_queue_setup()
1011 unsigned int q_size = q_data->format.plane_fmt[i].sizeimage; in jpu_queue_setup()
1019 *nplanes = q_data->format.num_planes; in jpu_queue_setup()
1022 sizes[i] = q_data->format.plane_fmt[i].sizeimage; in jpu_queue_setup()
1031 struct jpu_q_data *q_data; in jpu_buf_prepare() local
1034 q_data = jpu_get_q_data(ctx, vb->vb2_queue->type); in jpu_buf_prepare()
1046 for (i = 0; i < q_data->format.num_planes; i++) { in jpu_buf_prepare()
1047 unsigned long size = q_data->format.plane_fmt[i].sizeimage; in jpu_buf_prepare()
1071 struct jpu_q_data *q_data, adjust; in jpu_buf_queue() local
1083 q_data = &ctx->out_q; in jpu_buf_queue()
1085 adjust = *q_data; in jpu_buf_queue()
1092 if (adjust.format.width != q_data->format.width || in jpu_buf_queue()
1093 adjust.format.height != q_data->format.height) in jpu_buf_queue()
1118 struct jpu_q_data *q_data = &ctx->out_q; in jpu_buf_finish() local
1133 cpu_to_be16(q_data->format.height); in jpu_buf_finish()
1135 cpu_to_be16(q_data->format.width); in jpu_buf_finish()
1136 *(buffer + JPU_JPEG_SUBS_OFFSET) = q_data->fmtinfo->subsampling; in jpu_buf_finish()
1142 struct jpu_q_data *q_data = jpu_get_q_data(ctx, vq->type); in jpu_start_streaming() local
1144 q_data->sequence = 0; in jpu_start_streaming()
1344 struct jpu_q_data *q_data; in jpu_device_run() local
1365 q_data = &ctx->out_q; in jpu_device_run()
1368 q_data = &ctx->cap_q; in jpu_device_run()
1371 w = q_data->format.width; in jpu_device_run()
1372 h = q_data->format.height; in jpu_device_run()
1373 bpl = q_data->format.plane_fmt[0].bytesperline; in jpu_device_run()
1374 num_planes = q_data->fmtinfo->num_planes; in jpu_device_run()
1375 subsampling = q_data->fmtinfo->subsampling; in jpu_device_run()
1450 if (q_data->fmtinfo->num_planes > 1) in jpu_device_run()