Home
last modified time | relevance | path

Searched refs:q_data (Results 1 – 25 of 38) sorted by relevance

12

/Linux-v6.6/drivers/media/platform/mediatek/vcodec/decoder/
Dmtk_vcodec_dec.c40 struct mtk_q_data *q_data; in mtk_vdec_get_cap_fmt() local
55 q_data = &ctx->q_data[MTK_Q_DATA_SRC]; in mtk_vdec_get_cap_fmt()
56 switch (q_data->fmt->fourcc) { in mtk_vdec_get_cap_fmt()
78 return &ctx->q_data[MTK_Q_DATA_SRC]; in mtk_vdec_get_q_data()
80 return &ctx->q_data[MTK_Q_DATA_DST]; in mtk_vdec_get_q_data()
149 struct mtk_q_data *q_data; in mtk_vcodec_dec_set_default_params() local
160 q_data = &ctx->q_data[MTK_Q_DATA_SRC]; in mtk_vcodec_dec_set_default_params()
161 memset(q_data, 0, sizeof(struct mtk_q_data)); in mtk_vcodec_dec_set_default_params()
162 q_data->visible_width = DFT_CFG_WIDTH; in mtk_vcodec_dec_set_default_params()
163 q_data->visible_height = DFT_CFG_HEIGHT; in mtk_vcodec_dec_set_default_params()
[all …]
Dmtk_vcodec_dec_stateless.c261 pfb->base_y.size = ctx->q_data[MTK_Q_DATA_DST].sizeimage[0]; in vdec_get_cap_buffer()
263 if (ctx->q_data[MTK_Q_DATA_DST].fmt->num_planes == 2) { in vdec_get_cap_buffer()
267 pfb->base_c.size = ctx->q_data[MTK_Q_DATA_DST].sizeimage[1]; in vdec_get_cap_buffer()
392 struct mtk_q_data *q_data; in mtk_vcodec_get_pic_info() local
395 q_data = &ctx->q_data[MTK_Q_DATA_DST]; in mtk_vcodec_get_pic_info()
396 if (q_data->fmt->num_planes == 1) { in mtk_vcodec_get_pic_info()
401 ctx->capture_fourcc = q_data->fmt->fourcc; in mtk_vcodec_get_pic_info()
410 q_data->sizeimage[0] = ctx->picinfo.fb_sz[0]; in mtk_vcodec_get_pic_info()
411 q_data->bytesperline[0] = ctx->picinfo.buf_w * 5 / 4; in mtk_vcodec_get_pic_info()
413 q_data->sizeimage[1] = ctx->picinfo.fb_sz[1]; in mtk_vcodec_get_pic_info()
[all …]
Dmtk_vcodec_dec_stateful.c218 dst_q_data = &ctx->q_data[MTK_Q_DATA_DST]; in mtk_vdec_update_fmt()
335 if (ctx->q_data[MTK_Q_DATA_DST].fmt->num_planes == 2) in mtk_vdec_worker()
505 dst_q_data = &ctx->q_data[MTK_Q_DATA_DST]; in vb2ops_vdec_stateful_buf_queue()
/Linux-v6.6/drivers/staging/media/imx/
Dimx-media-csc-scaler.c58 struct ipu_csc_scaler_q_data q_data[2]; member
73 return &ctx->q_data[V4L2_M2M_SRC]; in get_q_data()
75 return &ctx->q_data[V4L2_M2M_DST]; in get_q_data()
183 struct ipu_csc_scaler_q_data *q_data; in ipu_csc_scaler_g_fmt() local
185 q_data = get_q_data(ctx, f->type); in ipu_csc_scaler_g_fmt()
187 f->fmt.pix = q_data->cur_fmt; in ipu_csc_scaler_g_fmt()
196 struct ipu_csc_scaler_q_data *q_data = get_q_data(ctx, f->type); in ipu_csc_scaler_try_fmt() local
226 f->fmt.pix.colorspace = q_data->cur_fmt.colorspace; in ipu_csc_scaler_try_fmt()
227 f->fmt.pix.ycbcr_enc = q_data->cur_fmt.ycbcr_enc; in ipu_csc_scaler_try_fmt()
228 f->fmt.pix.xfer_func = q_data->cur_fmt.xfer_func; in ipu_csc_scaler_try_fmt()
[all …]
/Linux-v6.6/drivers/gpu/drm/amd/amdkfd/
Dkfd_process_queue_manager.c245 const struct kfd_criu_queue_priv_data *q_data, in pqm_create_queue() argument
286 if (q_data) { in pqm_create_queue()
287 retval = assign_queue_slot_by_qid(pqm, q_data->q_id); in pqm_create_queue()
288 *qid = q_data->q_id; in pqm_create_queue()
319 retval = dev->dqm->ops.create_queue(dev->dqm, q, &pdd->qpd, q_data, in pqm_create_queue()
340 retval = dev->dqm->ops.create_queue(dev->dqm, q, &pdd->qpd, q_data, in pqm_create_queue()
727 struct kfd_criu_queue_priv_data *q_data) in criu_checkpoint_queue() argument
732 mqd = (void *)(q_data + 1); in criu_checkpoint_queue()
733 ctl_stack = mqd + q_data->mqd_size; in criu_checkpoint_queue()
735 q_data->gpu_id = pdd->user_gpu_id; in criu_checkpoint_queue()
[all …]
/Linux-v6.6/drivers/media/platform/mediatek/vcodec/encoder/
Dmtk_vcodec_enc.c278 return &ctx->q_data[MTK_Q_DATA_SRC]; in mtk_venc_get_q_data()
280 return &ctx->q_data[MTK_Q_DATA_DST]; in mtk_venc_get_q_data()
370 struct mtk_q_data *q_data_src = &ctx->q_data[MTK_Q_DATA_SRC]; in mtk_venc_set_param()
420 struct mtk_q_data *q_data = mtk_venc_get_q_data(ctx, f->type); in vidioc_venc_s_fmt_cap() local
441 q_data->fmt = fmt; in vidioc_venc_s_fmt_cap()
444 q_data->coded_width = f->fmt.pix_mp.width; in vidioc_venc_s_fmt_cap()
445 q_data->coded_height = f->fmt.pix_mp.height; in vidioc_venc_s_fmt_cap()
446 q_data->field = f->fmt.pix_mp.field; in vidioc_venc_s_fmt_cap()
452 q_data->bytesperline[i] = plane_fmt->bytesperline; in vidioc_venc_s_fmt_cap()
453 q_data->sizeimage[i] = plane_fmt->sizeimage; in vidioc_venc_s_fmt_cap()
[all …]
/Linux-v6.6/drivers/media/platform/
Dm2m-deinterlace.c88 static struct deinterlace_q_data q_data[2]; variable
94 return &q_data[V4L2_M2M_SRC]; in get_q_data()
96 return &q_data[V4L2_M2M_DST]; in get_q_data()
484 struct deinterlace_q_data *q_data; in vidioc_g_fmt() local
490 q_data = get_q_data(f->type); in vidioc_g_fmt()
492 f->fmt.pix.width = q_data->width; in vidioc_g_fmt()
493 f->fmt.pix.height = q_data->height; in vidioc_g_fmt()
494 f->fmt.pix.field = q_data->field; in vidioc_g_fmt()
495 f->fmt.pix.pixelformat = q_data->fmt->fourcc; in vidioc_g_fmt()
497 switch (q_data->fmt->fourcc) { in vidioc_g_fmt()
[all …]
/Linux-v6.6/drivers/media/test-drivers/vicodec/
Dvicodec-core.c125 struct vicodec_q_data q_data[2]; member
154 return &ctx->q_data[V4L2_M2M_SRC]; in get_q_data()
157 return &ctx->q_data[V4L2_M2M_DST]; in get_q_data()
762 struct vicodec_q_data *q_data; in vidioc_g_fmt() local
771 q_data = get_q_data(ctx, f->type); in vidioc_g_fmt()
772 info = q_data->info; in vidioc_g_fmt()
780 pix->width = q_data->coded_width; in vidioc_g_fmt()
781 pix->height = q_data->coded_height; in vidioc_g_fmt()
784 pix->bytesperline = q_data->coded_width * in vidioc_g_fmt()
786 pix->sizeimage = q_data->sizeimage; in vidioc_g_fmt()
[all …]
/Linux-v6.6/drivers/media/platform/nxp/
Dmx2_emmaprp.c214 struct emmaprp_q_data q_data[2]; member
222 return &(ctx->q_data[V4L2_M2M_SRC]); in get_q_data()
224 return &(ctx->q_data[V4L2_M2M_DST]); in get_q_data()
430 struct emmaprp_q_data *q_data; in vidioc_g_fmt() local
436 q_data = get_q_data(ctx, f->type); in vidioc_g_fmt()
438 f->fmt.pix.width = q_data->width; in vidioc_g_fmt()
439 f->fmt.pix.height = q_data->height; in vidioc_g_fmt()
441 f->fmt.pix.pixelformat = q_data->fmt->fourcc; in vidioc_g_fmt()
443 f->fmt.pix.bytesperline = q_data->width * 3 / 2; in vidioc_g_fmt()
445 f->fmt.pix.bytesperline = q_data->width * 2; in vidioc_g_fmt()
[all …]
Dimx-pxp.c246 struct pxp_q_data q_data[2]; member
258 return &ctx->q_data[V4L2_M2M_SRC]; in get_q_data()
260 return &ctx->q_data[V4L2_M2M_DST]; in get_q_data()
356 if (pxp_v4l2_pix_fmt_is_yuv(ctx->q_data[V4L2_M2M_SRC].fmt->fourcc) && in pxp_setup_csc()
357 !pxp_v4l2_pix_fmt_is_yuv(ctx->q_data[V4L2_M2M_DST].fmt->fourcc)) { in pxp_setup_csc()
504 ycbcr_enc = ctx->q_data[V4L2_M2M_SRC].ycbcr_enc; in pxp_setup_csc()
505 quantization = ctx->q_data[V4L2_M2M_SRC].quant; in pxp_setup_csc()
536 if (!pxp_v4l2_pix_fmt_is_yuv(ctx->q_data[V4L2_M2M_SRC].fmt->fourcc) && in pxp_setup_csc()
537 pxp_v4l2_pix_fmt_is_yuv(ctx->q_data[V4L2_M2M_DST].fmt->fourcc)) { in pxp_setup_csc()
717 ycbcr_enc = ctx->q_data[V4L2_M2M_DST].ycbcr_enc; in pxp_setup_csc()
[all …]
/Linux-v6.6/drivers/media/platform/nxp/dw100/
Ddw100.c103 struct dw100_q_data q_data[2]; member
276 return &ctx->q_data[DW100_QUEUE_SRC]; in dw100_get_q_data()
278 return &ctx->q_data[DW100_QUEUE_DST]; in dw100_get_q_data()
329 ctx->q_data[DW100_QUEUE_SRC].pix_fmt.width, in dw100_create_mapping()
330 ctx->q_data[DW100_QUEUE_DST].pix_fmt.height, in dw100_create_mapping()
331 ctx->q_data[DW100_QUEUE_SRC].pix_fmt.width, in dw100_create_mapping()
332 ctx->q_data[DW100_QUEUE_DST].pix_fmt.height); in dw100_create_mapping()
386 sw = ctx->q_data[DW100_QUEUE_SRC].pix_fmt.width; in dw100_ctrl_dewarping_map_init()
387 sh = ctx->q_data[DW100_QUEUE_SRC].pix_fmt.height; in dw100_ctrl_dewarping_map_init()
523 struct dw100_q_data *q_data = dw100_get_q_data(ctx, q->type); in dw100_start_streaming() local
[all …]
/Linux-v6.6/drivers/media/test-drivers/
Dvim2m.c227 struct vim2m_q_data q_data[2]; member
240 return &ctx->q_data[V4L2_M2M_SRC]; in get_q_data()
242 return &ctx->q_data[V4L2_M2M_DST]; in get_q_data()
722 struct vim2m_q_data *q_data; in vidioc_g_fmt() local
728 q_data = get_q_data(ctx, f->type); in vidioc_g_fmt()
729 if (!q_data) in vidioc_g_fmt()
732 f->fmt.pix.width = q_data->width; in vidioc_g_fmt()
733 f->fmt.pix.height = q_data->height; in vidioc_g_fmt()
735 f->fmt.pix.pixelformat = q_data->fmt->fourcc; in vidioc_g_fmt()
736 f->fmt.pix.bytesperline = (q_data->width * q_data->fmt->depth) >> 3; in vidioc_g_fmt()
[all …]
/Linux-v6.6/drivers/media/platform/ti/vpe/
Dvpe.c407 struct vpe_q_data q_data[2]; /* src & dst queue data */ member
436 return &ctx->q_data[Q_DATA_SRC]; in get_q_data()
439 return &ctx->q_data[Q_DATA_DST]; in get_q_data()
658 struct vpe_q_data *s_q_data = &ctx->q_data[Q_DATA_SRC]; in set_us_coefficients()
685 struct vpe_fmt *fmt = ctx->q_data[Q_DATA_SRC].fmt; in set_cfg_modes()
710 struct vpe_fmt *fmt = ctx->q_data[Q_DATA_SRC].fmt; in set_line_modes()
759 struct vpe_fmt *fmt = ctx->q_data[Q_DATA_DST].fmt; in set_dst_registers()
792 struct vpe_q_data *s_q_data = &ctx->q_data[Q_DATA_SRC]; in set_dei_regs()
860 struct vpe_q_data *s_q_data = &ctx->q_data[Q_DATA_SRC]; in set_srcdst_params()
861 struct vpe_q_data *d_q_data = &ctx->q_data[Q_DATA_DST]; in set_srcdst_params()
[all …]
/Linux-v6.6/drivers/media/platform/mediatek/jpeg/
Dmtk_jpeg_core.c306 struct mtk_jpeg_q_data *q_data = NULL; in mtk_jpeg_g_fmt_vid_mplane() local
316 q_data = mtk_jpeg_get_q_data(ctx, f->type); in mtk_jpeg_g_fmt_vid_mplane()
318 pix_mp->width = q_data->pix_mp.width; in mtk_jpeg_g_fmt_vid_mplane()
319 pix_mp->height = q_data->pix_mp.height; in mtk_jpeg_g_fmt_vid_mplane()
321 pix_mp->pixelformat = q_data->fmt->fourcc; in mtk_jpeg_g_fmt_vid_mplane()
322 pix_mp->num_planes = q_data->fmt->colplanes; in mtk_jpeg_g_fmt_vid_mplane()
323 pix_mp->colorspace = q_data->pix_mp.colorspace; in mtk_jpeg_g_fmt_vid_mplane()
324 pix_mp->ycbcr_enc = q_data->pix_mp.ycbcr_enc; in mtk_jpeg_g_fmt_vid_mplane()
325 pix_mp->xfer_func = q_data->pix_mp.xfer_func; in mtk_jpeg_g_fmt_vid_mplane()
326 pix_mp->quantization = q_data->pix_mp.quantization; in mtk_jpeg_g_fmt_vid_mplane()
[all …]
/Linux-v6.6/drivers/media/platform/nxp/imx-jpeg/
Dmxc-jpeg.c701 struct mxc_jpeg_q_data *q_data; in mxc_jpeg_addrs() local
703 q_data = mxc_jpeg_get_q_data(ctx, raw_buf->type); in mxc_jpeg_addrs()
710 desc->buf_base1 = desc->buf_base0 + q_data->sizeimage[0]; in mxc_jpeg_addrs()
853 static u32 mxc_jpeg_get_plane_size(struct mxc_jpeg_q_data *q_data, u32 plane_no) in mxc_jpeg_get_plane_size() argument
855 const struct mxc_jpeg_fmt *fmt = q_data->fmt; in mxc_jpeg_get_plane_size()
863 return q_data->sizeimage[plane_no]; in mxc_jpeg_get_plane_size()
866 return q_data->sizeimage[plane_no]; in mxc_jpeg_get_plane_size()
868 size = q_data->sizeimage[fmt->mem_planes - 1]; in mxc_jpeg_get_plane_size()
871 if (WARN_ON_ONCE(fmt->comp_planes > ARRAY_SIZE(q_data->sizeimage))) in mxc_jpeg_get_plane_size()
875 size += q_data->sizeimage[i]; in mxc_jpeg_get_plane_size()
[all …]
/Linux-v6.6/drivers/media/platform/renesas/
Drcar_fdp1.c888 struct fdp1_q_data *q_data = &ctx->out_q; in fdp1_configure_rpf() local
891 picture_size = (q_data->format.width << FD1_RPF_SIZE_H_SHIFT) in fdp1_configure_rpf()
892 | (q_data->vsize << FD1_RPF_SIZE_V_SHIFT); in fdp1_configure_rpf()
895 pstride = q_data->stride_y << FD1_RPF_PSTRIDE_Y_SHIFT; in fdp1_configure_rpf()
896 if (q_data->format.num_planes > 1) in fdp1_configure_rpf()
897 pstride |= q_data->stride_c << FD1_RPF_PSTRIDE_C_SHIFT; in fdp1_configure_rpf()
900 format = q_data->fmt->fmt; in fdp1_configure_rpf()
901 if (q_data->fmt->swap_yc) in fdp1_configure_rpf()
904 if (q_data->fmt->swap_uv) in fdp1_configure_rpf()
919 fdp1_write(fdp1, q_data->fmt->swap, FD1_RPF_SWAP); in fdp1_configure_rpf()
[all …]
Drcar_jpu.c840 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()
[all …]
/Linux-v6.6/drivers/media/platform/chips-media/
Dcoda-common.c92 void coda_write_base(struct coda_ctx *ctx, struct coda_q_data *q_data, in coda_write_base() argument
98 switch (q_data->fourcc) { in coda_write_base()
104 base_cb = base_y + q_data->bytesperline * q_data->height; in coda_write_base()
105 base_cr = base_cb + q_data->bytesperline * q_data->height / 4; in coda_write_base()
109 base_cr = base_y + q_data->bytesperline * q_data->height; in coda_write_base()
110 base_cb = base_cr + q_data->bytesperline * q_data->height / 4; in coda_write_base()
113 base_cb = base_y + q_data->bytesperline * q_data->height; in coda_write_base()
114 base_cr = base_cb + q_data->bytesperline * q_data->height / 2; in coda_write_base()
494 struct coda_q_data *q_data; in coda_g_fmt() local
497 q_data = get_q_data(ctx, f->type); in coda_g_fmt()
[all …]
Dimx-vdoa.c95 struct vdoa_q_data q_data[2]; member
162 src_q_data = &ctx->q_data[V4L2_M2M_SRC]; in vdoa_device_run()
163 dst_q_data = &ctx->q_data[V4L2_M2M_DST]; in vdoa_device_run()
254 src_q_data = &ctx->q_data[V4L2_M2M_SRC]; in vdoa_context_configure()
255 dst_q_data = &ctx->q_data[V4L2_M2M_DST]; in vdoa_context_configure()
Dcoda.h239 struct coda_q_data q_data[2]; member
307 void coda_write_base(struct coda_ctx *ctx, struct coda_q_data *q_data,
330 return &(ctx->q_data[V4L2_M2M_SRC]); in get_q_data()
332 return &(ctx->q_data[V4L2_M2M_DST]); in get_q_data()
Dcoda-bit.c478 struct coda_q_data *q_data, u32 fourcc) in coda_alloc_framebuffers() argument
489 ysize = round_up(q_data->rect.width, 16) * in coda_alloc_framebuffers()
490 round_up(q_data->rect.height, 16); in coda_alloc_framebuffers()
492 ysize = round_up(q_data->rect.width, 8) * q_data->rect.height; in coda_alloc_framebuffers()
570 struct coda_q_data *q_data) in coda_alloc_context_buffers() argument
586 if (!ctx->slicebuf.vaddr && q_data->fourcc == V4L2_PIX_FMT_H264) { in coda_alloc_context_buffers()
588 size = (DIV_ROUND_UP(q_data->rect.width, 16) * in coda_alloc_context_buffers()
589 DIV_ROUND_UP(q_data->rect.height, 16)) * 3200 / 8 + 512; in coda_alloc_context_buffers()
607 q_data->fourcc == V4L2_PIX_FMT_H264) in coda_alloc_context_buffers()
1766 struct coda_q_data *q_data) in coda_alloc_bitstream_buffer() argument
[all …]
/Linux-v6.6/drivers/media/platform/samsung/s5p-jpeg/
Djpeg-core.c1332 struct s5p_jpeg_q_data *q_data = NULL; in s5p_jpeg_g_fmt() local
1343 q_data = get_q_data(ct, f->type); in s5p_jpeg_g_fmt()
1344 BUG_ON(q_data == NULL); in s5p_jpeg_g_fmt()
1346 pix->width = q_data->w; in s5p_jpeg_g_fmt()
1347 pix->height = q_data->h; in s5p_jpeg_g_fmt()
1349 pix->pixelformat = q_data->fmt->fourcc; in s5p_jpeg_g_fmt()
1351 if (q_data->fmt->fourcc != V4L2_PIX_FMT_JPEG) { in s5p_jpeg_g_fmt()
1352 u32 bpl = q_data->w; in s5p_jpeg_g_fmt()
1354 if (q_data->fmt->colplanes == 1) in s5p_jpeg_g_fmt()
1355 bpl = (bpl * q_data->fmt->depth) >> 3; in s5p_jpeg_g_fmt()
[all …]
/Linux-v6.6/drivers/media/tuners/
De4000.c103 u8 buf[5], i_data[4], q_data[4]; in e4000_set_params() local
232 q_data[i] = (((buf[2] >> 4) & 0x3) << 6) | (buf[1] & 0x3f); in e4000_set_params()
235 swap(q_data[2], q_data[3]); in e4000_set_params()
238 ret = regmap_bulk_write(dev->regmap, 0x50, q_data, 4); in e4000_set_params()
/Linux-v6.6/drivers/media/test-drivers/visl/
Dvisl-video.c301 return &ctx->q_data[V4L2_M2M_SRC]; in get_q_data()
304 return &ctx->q_data[V4L2_M2M_DST]; in get_q_data()
637 struct visl_q_data *q_data = get_q_data(ctx, vq->type); in visl_start_streaming() local
640 if (!q_data) { in visl_start_streaming()
645 q_data->sequence = 0; in visl_start_streaming()
Dvisl.h145 struct visl_q_data q_data[VISL_M2M_NQUEUES]; member

12