Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/media/platform/mediatek/vcodec/
Dmtk_vcodec_dec.c42 struct mtk_q_data *q_data; in mtk_vdec_get_cap_fmt() local
57 q_data = &ctx->q_data[MTK_Q_DATA_SRC]; in mtk_vdec_get_cap_fmt()
58 switch (q_data->fmt->fourcc) { in mtk_vdec_get_cap_fmt()
80 return &ctx->q_data[MTK_Q_DATA_SRC]; in mtk_vdec_get_q_data()
82 return &ctx->q_data[MTK_Q_DATA_DST]; in mtk_vdec_get_q_data()
151 struct mtk_q_data *q_data; in mtk_vcodec_dec_set_default_params() local
162 q_data = &ctx->q_data[MTK_Q_DATA_SRC]; in mtk_vcodec_dec_set_default_params()
163 memset(q_data, 0, sizeof(struct mtk_q_data)); in mtk_vcodec_dec_set_default_params()
164 q_data->visible_width = DFT_CFG_WIDTH; in mtk_vcodec_dec_set_default_params()
165 q_data->visible_height = DFT_CFG_HEIGHT; in mtk_vcodec_dec_set_default_params()
[all …]
Dmtk_vcodec_enc.c291 return &ctx->q_data[MTK_Q_DATA_SRC]; in mtk_venc_get_q_data()
293 return &ctx->q_data[MTK_Q_DATA_DST]; in mtk_venc_get_q_data()
382 struct mtk_q_data *q_data_src = &ctx->q_data[MTK_Q_DATA_SRC]; in mtk_venc_set_param()
432 struct mtk_q_data *q_data = mtk_venc_get_q_data(ctx, f->type); in vidioc_venc_s_fmt_cap() local
453 q_data->fmt = fmt; in vidioc_venc_s_fmt_cap()
456 q_data->coded_width = f->fmt.pix_mp.width; in vidioc_venc_s_fmt_cap()
457 q_data->coded_height = f->fmt.pix_mp.height; in vidioc_venc_s_fmt_cap()
458 q_data->field = f->fmt.pix_mp.field; in vidioc_venc_s_fmt_cap()
464 q_data->bytesperline[i] = plane_fmt->bytesperline; in vidioc_venc_s_fmt_cap()
465 q_data->sizeimage[i] = plane_fmt->sizeimage; in vidioc_venc_s_fmt_cap()
[all …]
Dmtk_vcodec_dec_stateless.c172 pfb->base_y.size = ctx->q_data[MTK_Q_DATA_DST].sizeimage[0]; in vdec_get_cap_buffer()
174 if (ctx->q_data[MTK_Q_DATA_DST].fmt->num_planes == 2) { in vdec_get_cap_buffer()
178 pfb->base_c.size = ctx->q_data[MTK_Q_DATA_DST].sizeimage[1]; in vdec_get_cap_buffer()
Dmtk_vcodec_dec_stateful.c220 dst_q_data = &ctx->q_data[MTK_Q_DATA_DST]; in mtk_vdec_update_fmt()
336 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()
Dmtk_vcodec_drv.h290 struct mtk_q_data q_data[2]; member
/linux-6.1.9/drivers/gpu/drm/amd/amdkfd/
Dkfd_process_queue_manager.c232 const struct kfd_criu_queue_priv_data *q_data, in pqm_create_queue() argument
266 if (q_data) { in pqm_create_queue()
267 retval = assign_queue_slot_by_qid(pqm, q_data->q_id); in pqm_create_queue()
268 *qid = q_data->q_id; in pqm_create_queue()
299 retval = dev->dqm->ops.create_queue(dev->dqm, q, &pdd->qpd, q_data, in pqm_create_queue()
320 retval = dev->dqm->ops.create_queue(dev->dqm, q, &pdd->qpd, q_data, in pqm_create_queue()
649 struct kfd_criu_queue_priv_data *q_data) in criu_checkpoint_queue() argument
654 mqd = (void *)(q_data + 1); in criu_checkpoint_queue()
655 ctl_stack = mqd + q_data->mqd_size; in criu_checkpoint_queue()
657 q_data->gpu_id = pdd->user_gpu_id; in criu_checkpoint_queue()
[all …]
/linux-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/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.c220 struct pxp_q_data q_data[2]; member
232 return &ctx->q_data[V4L2_M2M_SRC]; in get_q_data()
234 return &ctx->q_data[V4L2_M2M_DST]; in get_q_data()
316 if (pxp_v4l2_pix_fmt_is_yuv(ctx->q_data[V4L2_M2M_SRC].fmt->fourcc) && in pxp_setup_csc()
317 !pxp_v4l2_pix_fmt_is_yuv(ctx->q_data[V4L2_M2M_DST].fmt->fourcc)) { in pxp_setup_csc()
464 ycbcr_enc = ctx->q_data[V4L2_M2M_SRC].ycbcr_enc; in pxp_setup_csc()
465 quantization = ctx->q_data[V4L2_M2M_SRC].quant; in pxp_setup_csc()
496 if (!pxp_v4l2_pix_fmt_is_yuv(ctx->q_data[V4L2_M2M_SRC].fmt->fourcc) && in pxp_setup_csc()
497 pxp_v4l2_pix_fmt_is_yuv(ctx->q_data[V4L2_M2M_DST].fmt->fourcc)) { in pxp_setup_csc()
677 ycbcr_enc = ctx->q_data[V4L2_M2M_DST].ycbcr_enc; in pxp_setup_csc()
[all …]
/linux-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/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.c846 struct jpu_q_data *q_data; in jpu_s_fmt() local
862 q_data = jpu_get_q_data(ctx, f->type); in jpu_s_fmt()
864 q_data->format = f->fmt.pix_mp; in jpu_s_fmt()
865 q_data->fmtinfo = fmtinfo; in jpu_s_fmt()
872 struct jpu_q_data *q_data; in jpu_g_fmt() local
878 q_data = jpu_get_q_data(ctx, f->type); in jpu_g_fmt()
879 f->fmt.pix_mp = q_data->format; in jpu_g_fmt()
1007 struct jpu_q_data *q_data; in jpu_queue_setup() local
1010 q_data = jpu_get_q_data(ctx, vq->type); in jpu_queue_setup()
1013 if (*nplanes != q_data->format.num_planes) in jpu_queue_setup()
[all …]
/linux-6.1.9/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-6.1.9/drivers/media/platform/nxp/imx-jpeg/
Dmxc-jpeg.c584 struct mxc_jpeg_q_data *q_data; in mxc_jpeg_dec_irq() local
648 q_data = mxc_jpeg_get_q_data(ctx, cap_type); in mxc_jpeg_dec_irq()
649 payload = q_data->sizeimage[0]; in mxc_jpeg_dec_irq()
652 if (q_data->fmt->colplanes == 2) { in mxc_jpeg_dec_irq()
653 payload = q_data->sizeimage[1]; in mxc_jpeg_dec_irq()
896 struct mxc_jpeg_q_data *q_data; in mxc_jpeg_config_enc_desc() local
900 q_data = mxc_jpeg_get_q_data(ctx, src_buf->vb2_queue->type); in mxc_jpeg_config_enc_desc()
904 q_data->fmt->fourcc, in mxc_jpeg_config_enc_desc()
905 q_data->w, in mxc_jpeg_config_enc_desc()
906 q_data->h); in mxc_jpeg_config_enc_desc()
[all …]
/linux-6.1.9/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-6.1.9/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-6.1.9/drivers/media/platform/mediatek/vcodec/vdec/
Dvdec_vp8_req_if.c261 if (ctx->q_data[MTK_Q_DATA_DST].fmt->num_planes == 2) in vdec_vp8_slice_get_decode_parameters()
342 if (inst->ctx->q_data[MTK_Q_DATA_DST].fmt->num_planes == 1) in vdec_vp8_slice_decode()

12