Home
last modified time | relevance | path

Searched refs:mtk_vcodec_ctx (Results 1 – 25 of 28) sorted by relevance

12

/linux/drivers/media/platform/mtk-vcodec/
A Dmtk_vcodec_util.c23 void __iomem *mtk_vcodec_get_reg_addr(struct mtk_vcodec_ctx *data, in mtk_vcodec_get_reg_addr()
26 struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)data; in mtk_vcodec_get_reg_addr()
36 int mtk_vcodec_mem_alloc(struct mtk_vcodec_ctx *data, in mtk_vcodec_mem_alloc()
40 struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)data; in mtk_vcodec_mem_alloc()
59 void mtk_vcodec_mem_free(struct mtk_vcodec_ctx *data, in mtk_vcodec_mem_free()
63 struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)data; in mtk_vcodec_mem_free()
85 struct mtk_vcodec_ctx *ctx) in mtk_vcodec_set_curr_ctx()
95 struct mtk_vcodec_ctx *mtk_vcodec_get_curr_ctx(struct mtk_vcodec_dev *dev) in mtk_vcodec_get_curr_ctx()
98 struct mtk_vcodec_ctx *ctx; in mtk_vcodec_get_curr_ctx()
A Dmtk_vcodec_util.h25 struct mtk_vcodec_ctx;
38 ((struct mtk_vcodec_ctx *)h->ctx)->id, __func__, ##args)
57 ((struct mtk_vcodec_ctx *)h->ctx)->id, \
76 void __iomem *mtk_vcodec_get_reg_addr(struct mtk_vcodec_ctx *data,
78 int mtk_vcodec_mem_alloc(struct mtk_vcodec_ctx *data,
80 void mtk_vcodec_mem_free(struct mtk_vcodec_ctx *data,
83 struct mtk_vcodec_ctx *ctx);
84 struct mtk_vcodec_ctx *mtk_vcodec_get_curr_ctx(struct mtk_vcodec_dev *dev);
A Dmtk_vcodec_drv.h266 struct mtk_vcodec_ctx { struct
340 void (*init_vdec_params)(struct mtk_vcodec_ctx *ctx);
341 int (*ctrls_setup)(struct mtk_vcodec_ctx *ctx);
343 int (*flush_decoder)(struct mtk_vcodec_ctx *ctx);
439 struct mtk_vcodec_ctx *curr_ctx;
466 static inline struct mtk_vcodec_ctx *fh_to_ctx(struct v4l2_fh *fh) in fh_to_ctx()
468 return container_of(fh, struct mtk_vcodec_ctx, fh); in fh_to_ctx()
471 static inline struct mtk_vcodec_ctx *ctrl_to_ctx(struct v4l2_ctrl *ctrl) in ctrl_to_ctx()
473 return container_of(ctrl->handler, struct mtk_vcodec_ctx, ctrl_hdl); in ctrl_to_ctx()
A Dmtk_vcodec_enc.h42 int mtk_venc_unlock(struct mtk_vcodec_ctx *ctx);
43 int mtk_venc_lock(struct mtk_vcodec_ctx *ctx);
46 void mtk_vcodec_enc_release(struct mtk_vcodec_ctx *ctx);
47 int mtk_vcodec_enc_ctrls_setup(struct mtk_vcodec_ctx *ctx);
48 void mtk_vcodec_enc_set_default_params(struct mtk_vcodec_ctx *ctx);
A Dmtk_vcodec_dec.c50 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_try_decoder_cmd()
64 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_decoder_cmd()
106 void mtk_vdec_unlock(struct mtk_vcodec_ctx *ctx) in mtk_vdec_unlock()
111 void mtk_vdec_lock(struct mtk_vcodec_ctx *ctx) in mtk_vdec_lock()
172 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_vdec_qbuf()
186 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_vdec_dqbuf()
287 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_try_fmt_vid_cap_mplane()
851 struct mtk_vcodec_ctx *ctx = priv; in m2mops_vdec_device_run()
859 struct mtk_vcodec_ctx *ctx = m2m_priv; in m2mops_vdec_job_ready()
878 struct mtk_vcodec_ctx *ctx = priv; in m2mops_vdec_job_abort()
[all …]
A Dmtk_vcodec_enc.c49 struct mtk_vcodec_ctx *ctx = ctrl_to_ctx(ctrl); in vidioc_venc_s_ctrl()
161 struct mtk_vcodec_ctx *ctx = fh_to_ctx(fh); in vidioc_enum_framesizes()
214 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_venc_s_parm()
237 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_venc_g_parm()
398 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_venc_s_fmt_cap()
1043 struct mtk_vcodec_ctx *ctx = priv; in mtk_venc_encode_header()
1171 struct mtk_vcodec_ctx *ctx = container_of(work, struct mtk_vcodec_ctx, in mtk_venc_worker()
1255 struct mtk_vcodec_ctx *ctx = priv; in m2mops_venc_device_run()
1271 struct mtk_vcodec_ctx *ctx = m2m_priv; in m2mops_venc_job_ready()
1284 struct mtk_vcodec_ctx *ctx = priv; in m2mops_venc_job_abort()
[all …]
A Dvdec_drv_if.h67 int vdec_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc);
74 void vdec_if_deinit(struct mtk_vcodec_ctx *ctx);
88 int vdec_if_decode(struct mtk_vcodec_ctx *ctx, struct mtk_vcodec_mem *bs,
97 int vdec_if_get_param(struct mtk_vcodec_ctx *ctx, enum vdec_get_param_type type,
A Dvenc_drv_if.h135 int venc_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc);
142 int venc_if_deinit(struct mtk_vcodec_ctx *ctx);
151 int venc_if_set_param(struct mtk_vcodec_ctx *ctx,
164 int venc_if_encode(struct mtk_vcodec_ctx *ctx,
A Dmtk_vcodec_dec.h78 void mtk_vdec_unlock(struct mtk_vcodec_ctx *ctx);
79 void mtk_vdec_lock(struct mtk_vcodec_ctx *ctx);
82 void mtk_vcodec_dec_set_default_params(struct mtk_vcodec_ctx *ctx);
83 void mtk_vcodec_dec_release(struct mtk_vcodec_ctx *ctx);
A Dmtk_vcodec_dec_stateless.c111 static void mtk_vdec_stateless_set_dst_payload(struct mtk_vcodec_ctx *ctx, in mtk_vdec_stateless_set_dst_payload()
128 static struct vdec_fb *vdec_get_cap_buffer(struct mtk_vcodec_ctx *ctx, in vdec_get_cap_buffer()
156 struct mtk_vcodec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in vb2ops_vdec_buf_request_complete()
163 struct mtk_vcodec_ctx *ctx = in mtk_vdec_worker()
164 container_of(work, struct mtk_vcodec_ctx, decode_work); in mtk_vdec_worker()
234 struct mtk_vcodec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in vb2ops_vdec_stateless_buf_queue()
254 static int mtk_vdec_flush_decoder(struct mtk_vcodec_ctx *ctx) in mtk_vdec_flush_decoder()
261 static int mtk_vcodec_dec_ctrls_setup(struct mtk_vcodec_ctx *ctx) in mtk_vcodec_dec_ctrls_setup()
311 static void mtk_init_vdec_params(struct mtk_vcodec_ctx *ctx) in mtk_init_vdec_params()
A Dmtk_vcodec_dec_stateful.c192 static void clean_display_buffer(struct mtk_vcodec_ctx *ctx) in clean_display_buffer()
198 static void clean_free_buffer(struct mtk_vcodec_ctx *ctx) in clean_free_buffer()
215 static int mtk_vdec_flush_decoder(struct mtk_vcodec_ctx *ctx) in mtk_vdec_flush_decoder()
230 static void mtk_vdec_update_fmt(struct mtk_vcodec_ctx *ctx, in mtk_vdec_update_fmt()
251 static int mtk_vdec_pic_info_update(struct mtk_vcodec_ctx *ctx) in mtk_vdec_pic_info_update()
295 struct mtk_vcodec_ctx *ctx = in mtk_vdec_worker()
296 container_of(work, struct mtk_vcodec_ctx, decode_work); in mtk_vdec_worker()
437 struct mtk_vcodec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in vb2ops_vdec_stateful_buf_queue()
545 struct mtk_vcodec_ctx *ctx = ctrl_to_ctx(ctrl); in mtk_vdec_g_v_ctrl()
567 static int mtk_vcodec_dec_ctrls_setup(struct mtk_vcodec_ctx *ctx) in mtk_vcodec_dec_ctrls_setup()
[all …]
A Dvenc_drv_if.c19 int venc_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc) in venc_if_init()
43 int venc_if_set_param(struct mtk_vcodec_ctx *ctx, in venc_if_set_param()
57 int venc_if_encode(struct mtk_vcodec_ctx *ctx, in venc_if_encode()
84 int venc_if_deinit(struct mtk_vcodec_ctx *ctx) in venc_if_deinit()
A Dvdec_drv_if.c17 int vdec_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc) in vdec_if_init()
47 int vdec_if_decode(struct mtk_vcodec_ctx *ctx, struct mtk_vcodec_mem *bs, in vdec_if_decode()
85 int vdec_if_get_param(struct mtk_vcodec_ctx *ctx, enum vdec_get_param_type type, in vdec_if_get_param()
100 void vdec_if_deinit(struct mtk_vcodec_ctx *ctx) in vdec_if_deinit()
A Dmtk_vcodec_intr.h12 struct mtk_vcodec_ctx;
15 int mtk_vcodec_wait_for_done_ctx(struct mtk_vcodec_ctx *data, int command,
A Dvdec_vpu_if.h12 struct mtk_vcodec_ctx;
38 struct mtk_vcodec_ctx *ctx;
A Dmtk_vcodec_dec_drv.c35 static void wake_up_ctx(struct mtk_vcodec_ctx *ctx) in wake_up_ctx()
44 struct mtk_vcodec_ctx *ctx; in mtk_vcodec_dec_irq_handler()
84 struct mtk_vcodec_ctx *ctx = NULL; in fops_vcodec_open()
167 struct mtk_vcodec_ctx *ctx = fh_to_ctx(file->private_data); in fops_vcodec_release()
A Dmtk_vcodec_enc_drv.c69 static void wake_up_ctx(struct mtk_vcodec_ctx *ctx, unsigned int reason) in wake_up_ctx()
100 struct mtk_vcodec_ctx *ctx; in mtk_vcodec_enc_irq_handler()
124 struct mtk_vcodec_ctx *ctx = NULL; in fops_vcodec_open()
212 struct mtk_vcodec_ctx *ctx = fh_to_ctx(file->private_data); in fops_vcodec_release()
A Dvdec_drv_base.h18 int (*init)(struct mtk_vcodec_ctx *ctx);
A Dvenc_drv_base.h22 int (*init)(struct mtk_vcodec_ctx *ctx);
A Dvenc_vpu_if.h38 struct mtk_vcodec_ctx *ctx;
A Dmtk_vcodec_intr.c14 int mtk_vcodec_wait_for_done_ctx(struct mtk_vcodec_ctx *ctx, int command, in mtk_vcodec_wait_for_done_ctx()
/linux/drivers/media/platform/mtk-vcodec/venc/
A Dvenc_vp8_if.c132 struct mtk_vcodec_ctx *ctx;
222 struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)inst->ctx; in vp8_enc_wait_venc_done()
328 static int vp8_enc_init(struct mtk_vcodec_ctx *ctx) in vp8_enc_init()
366 struct mtk_vcodec_ctx *ctx = inst->ctx; in vp8_enc_encode()
A Dvenc_h264_if.c155 struct mtk_vcodec_ctx *ctx;
335 struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)inst->ctx; in h264_enc_wait_venc_done()
504 static int h264_enc_init(struct mtk_vcodec_ctx *ctx) in h264_enc_init()
543 struct mtk_vcodec_ctx *ctx = inst->ctx; in h264_enc_encode()
/linux/drivers/media/platform/mtk-vcodec/vdec/
A Dvdec_h264_req_if.c205 struct mtk_vcodec_ctx *ctx;
215 static void *get_ctrl_ptr(struct mtk_vcodec_ctx *ctx, int id) in get_ctrl_ptr()
563 struct mtk_vcodec_ctx *ctx = inst->ctx; in get_pic_info()
612 static int vdec_h264_slice_init(struct mtk_vcodec_ctx *ctx) in vdec_h264_slice_init()
A Dvdec_vp9_if.c199 struct mtk_vcodec_ctx *ctx;
538 struct mtk_vcodec_ctx *ctx = inst->ctx; in vp9_wait_dec_end()
550 static struct vdec_vp9_inst *vp9_alloc_inst(struct mtk_vcodec_ctx *ctx) in vp9_alloc_inst()
786 static int vdec_vp9_init(struct mtk_vcodec_ctx *ctx) in vdec_vp9_init()

Completed in 36 milliseconds

12