Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/drivers/media/platform/mediatek/vcodec/
A Dmtk_vcodec_util.c16 void __iomem *mtk_vcodec_get_reg_addr(struct mtk_vcodec_ctx *data, in mtk_vcodec_get_reg_addr()
19 struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)data; in mtk_vcodec_get_reg_addr()
29 int mtk_vcodec_mem_alloc(struct mtk_vcodec_ctx *data, in mtk_vcodec_mem_alloc()
33 struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)data; in mtk_vcodec_mem_alloc()
52 void mtk_vcodec_mem_free(struct mtk_vcodec_ctx *data, in mtk_vcodec_mem_free()
56 struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)data; in mtk_vcodec_mem_free()
89 struct mtk_vcodec_ctx *ctx, int hw_idx) in mtk_vcodec_set_curr_ctx()
110 struct mtk_vcodec_ctx *mtk_vcodec_get_curr_ctx(struct mtk_vcodec_dev *vdec_dev, in mtk_vcodec_get_curr_ctx()
114 struct mtk_vcodec_ctx *ctx; in mtk_vcodec_get_curr_ctx()
A Dmtk_vcodec_util.h25 struct mtk_vcodec_ctx;
36 ((struct mtk_vcodec_ctx *)(h)->ctx)->id, ##args)
46 ((struct mtk_vcodec_ctx *)(h)->ctx)->id, ##args)
51 void __iomem *mtk_vcodec_get_reg_addr(struct mtk_vcodec_ctx *data,
53 int mtk_vcodec_mem_alloc(struct mtk_vcodec_ctx *data,
55 void mtk_vcodec_mem_free(struct mtk_vcodec_ctx *data,
58 struct mtk_vcodec_ctx *ctx, int hw_idx);
59 struct mtk_vcodec_ctx *mtk_vcodec_get_curr_ctx(struct mtk_vcodec_dev *vdec_dev,
A Dmtk_vcodec_drv.h283 struct mtk_vcodec_ctx { struct
375 void (*init_vdec_params)(struct mtk_vcodec_ctx *ctx);
376 int (*ctrls_setup)(struct mtk_vcodec_ctx *ctx);
378 int (*flush_decoder)(struct mtk_vcodec_ctx *ctx);
379 struct vdec_fb *(*get_cap_buffer)(struct mtk_vcodec_ctx *ctx);
380 void (*cap_to_disp)(struct mtk_vcodec_ctx *ctx, int error,
485 struct mtk_vcodec_ctx *curr_ctx;
525 static inline struct mtk_vcodec_ctx *fh_to_ctx(struct v4l2_fh *fh) in fh_to_ctx()
527 return container_of(fh, struct mtk_vcodec_ctx, fh); in fh_to_ctx()
530 static inline struct mtk_vcodec_ctx *ctrl_to_ctx(struct v4l2_ctrl *ctrl) in ctrl_to_ctx()
[all …]
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 Dvdec_drv_if.h70 int vdec_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc);
77 void vdec_if_deinit(struct mtk_vcodec_ctx *ctx);
91 int vdec_if_decode(struct mtk_vcodec_ctx *ctx, struct mtk_vcodec_mem *bs,
100 int vdec_if_get_param(struct mtk_vcodec_ctx *ctx, enum vdec_get_param_type type,
A Dmtk_vcodec_dec.c95 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_decoder_cmd()
138 void mtk_vdec_lock(struct mtk_vcodec_ctx *ctx) in mtk_vdec_lock()
190 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_vdec_qbuf()
204 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_vdec_dqbuf()
217 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in mtk_vcodec_dec_get_chip_name()
239 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_vdec_querycap()
252 struct mtk_vcodec_ctx *ctx = fh_to_ctx(fh); in vidioc_vdec_subscribe_evt()
909 struct mtk_vcodec_ctx *ctx = priv; in m2mops_vdec_device_run()
917 struct mtk_vcodec_ctx *ctx = m2m_priv; in m2mops_vdec_job_ready()
936 struct mtk_vcodec_ctx *ctx = priv; in m2mops_vdec_job_abort()
[all …]
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_enc.c48 struct mtk_vcodec_ctx *ctx = ctrl_to_ctx(ctrl); in vidioc_venc_s_ctrl()
175 struct mtk_vcodec_ctx *ctx = fh_to_ctx(fh); in vidioc_enum_framesizes()
217 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in mtk_vcodec_enc_get_chip_name()
237 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_venc_querycap()
250 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_venc_s_parm()
1049 struct mtk_vcodec_ctx *ctx = priv; in mtk_venc_encode_header()
1177 struct mtk_vcodec_ctx *ctx = container_of(work, struct mtk_vcodec_ctx, in mtk_venc_worker()
1261 struct mtk_vcodec_ctx *ctx = priv; in m2mops_venc_device_run()
1277 struct mtk_vcodec_ctx *ctx = m2m_priv; in m2mops_venc_job_ready()
1290 struct mtk_vcodec_ctx *ctx = priv; in m2mops_venc_job_abort()
[all …]
A Dmtk_vcodec_dec.h81 void mtk_vdec_unlock(struct mtk_vcodec_ctx *ctx);
82 void mtk_vdec_lock(struct mtk_vcodec_ctx *ctx);
85 void mtk_vcodec_dec_set_default_params(struct mtk_vcodec_ctx *ctx);
86 void mtk_vcodec_dec_release(struct mtk_vcodec_ctx *ctx);
A Dvdec_msg_queue.h20 struct mtk_vcodec_ctx;
61 struct mtk_vcodec_ctx *ctx;
97 struct mtk_vcodec_ctx *ctx, core_decode_cb_t core_decode,
153 struct mtk_vcodec_ctx *ctx);
A Dmtk_vcodec_dec_stateful.c175 static void clean_display_buffer(struct mtk_vcodec_ctx *ctx) in clean_display_buffer()
181 static void clean_free_buffer(struct mtk_vcodec_ctx *ctx) in clean_free_buffer()
198 static int mtk_vdec_flush_decoder(struct mtk_vcodec_ctx *ctx) in mtk_vdec_flush_decoder()
213 static void mtk_vdec_update_fmt(struct mtk_vcodec_ctx *ctx, in mtk_vdec_update_fmt()
234 static int mtk_vdec_pic_info_update(struct mtk_vcodec_ctx *ctx) in mtk_vdec_pic_info_update()
278 struct mtk_vcodec_ctx *ctx = in mtk_vdec_worker()
279 container_of(work, struct mtk_vcodec_ctx, decode_work); in mtk_vdec_worker()
420 struct mtk_vcodec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in vb2ops_vdec_stateful_buf_queue()
528 struct mtk_vcodec_ctx *ctx = ctrl_to_ctx(ctrl); in mtk_vdec_g_v_ctrl()
550 static int mtk_vcodec_dec_ctrls_setup(struct mtk_vcodec_ctx *ctx) in mtk_vcodec_dec_ctrls_setup()
[all …]
A Dmtk_vcodec_dec_stateless.c129 static void mtk_vdec_stateless_cap_to_disp(struct mtk_vcodec_ctx *ctx, int error, in mtk_vdec_stateless_cap_to_disp()
153 static struct vdec_fb *vdec_get_cap_buffer(struct mtk_vcodec_ctx *ctx) in vdec_get_cap_buffer()
189 struct mtk_vcodec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in vb2ops_vdec_buf_request_complete()
196 struct mtk_vcodec_ctx *ctx = in mtk_vdec_worker()
197 container_of(work, struct mtk_vcodec_ctx, decode_work); in mtk_vdec_worker()
269 struct mtk_vcodec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in vb2ops_vdec_stateless_buf_queue()
289 static int mtk_vdec_flush_decoder(struct mtk_vcodec_ctx *ctx) in mtk_vdec_flush_decoder()
296 static int mtk_vcodec_dec_ctrls_setup(struct mtk_vcodec_ctx *ctx) in mtk_vcodec_dec_ctrls_setup()
347 struct mtk_vcodec_ctx *ctx) in mtk_vcodec_add_formats()
386 static void mtk_vcodec_get_supported_formats(struct mtk_vcodec_ctx *ctx) in mtk_vcodec_get_supported_formats()
[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()
63 int vdec_if_decode(struct mtk_vcodec_ctx *ctx, struct mtk_vcodec_mem *bs, in vdec_if_decode()
95 int vdec_if_get_param(struct mtk_vcodec_ctx *ctx, enum vdec_get_param_type type, in vdec_if_get_param()
110 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 *ctx,
A Dmtk_vcodec_dec_pm.h14 void mtk_vcodec_dec_enable_hardware(struct mtk_vcodec_ctx *ctx, int hw_idx);
15 void mtk_vcodec_dec_disable_hardware(struct mtk_vcodec_ctx *ctx, int hw_idx);
A Dvdec_vpu_if.h12 struct mtk_vcodec_ctx;
43 struct mtk_vcodec_ctx *ctx;
A Dmtk_vcodec_dec_pm.c147 static void mtk_vcodec_load_racing_info(struct mtk_vcodec_ctx *ctx) in mtk_vcodec_load_racing_info()
161 static void mtk_vcodec_record_racing_info(struct mtk_vcodec_ctx *ctx) in mtk_vcodec_record_racing_info()
235 void mtk_vcodec_dec_enable_hardware(struct mtk_vcodec_ctx *ctx, int hw_idx) in mtk_vcodec_dec_enable_hardware()
251 void mtk_vcodec_dec_disable_hardware(struct mtk_vcodec_ctx *ctx, int hw_idx) in mtk_vcodec_dec_disable_hardware()
A Dvdec_msg_queue.c177 struct mtk_vcodec_ctx *ctx) in vdec_msg_queue_deinit()
205 struct mtk_vcodec_ctx *ctx = in vdec_msg_queue_core_work()
206 container_of(msg_queue, struct mtk_vcodec_ctx, msg_queue); in vdec_msg_queue_core_work()
232 struct mtk_vcodec_ctx *ctx, core_decode_cb_t core_decode, in vdec_msg_queue_init()
A Dvdec_drv_base.h18 int (*init)(struct mtk_vcodec_ctx *ctx);
A Dvenc_drv_base.h22 int (*init)(struct mtk_vcodec_ctx *ctx);
/linux-6.3-rc2/drivers/media/platform/mediatek/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()
327 static int vp8_enc_init(struct mtk_vcodec_ctx *ctx) in vp8_enc_init()
365 struct mtk_vcodec_ctx *ctx = inst->ctx; in vp8_enc_encode()
A Dvenc_h264_if.c224 struct mtk_vcodec_ctx *ctx;
422 struct mtk_vcodec_ctx *ctx = (struct mtk_vcodec_ctx *)inst->ctx; in h264_enc_wait_venc_done()
532 struct mtk_vcodec_ctx *ctx = inst->ctx; in h264_encode_frame()
602 static int h264_enc_init(struct mtk_vcodec_ctx *ctx) in h264_enc_init()
644 struct mtk_vcodec_ctx *ctx = inst->ctx; in h264_enc_encode()
775 struct mtk_vcodec_ctx *ctx = inst->ctx; in h264_enc_set_param()
/linux-6.3-rc2/drivers/media/platform/mediatek/vcodec/vdec/
A Dvdec_h264_req_common.h185 void *mtk_vdec_h264_get_ctrl_ptr(struct mtk_vcodec_ctx *ctx, int id);
194 void mtk_vdec_h264_fill_dpb_info(struct mtk_vcodec_ctx *ctx,
A Dvdec_vp8_req_if.c104 struct mtk_vcodec_ctx *ctx;
109 static void *vdec_vp8_slice_get_ctrl_ptr(struct mtk_vcodec_ctx *ctx, int id) in vdec_vp8_slice_get_ctrl_ptr()
121 struct mtk_vcodec_ctx *ctx = inst->ctx; in vdec_vp8_slice_get_pic_info()
236 struct mtk_vcodec_ctx *ctx = inst->ctx; in vdec_vp8_slice_get_decode_parameters()
275 static int vdec_vp8_slice_init(struct mtk_vcodec_ctx *ctx) in vdec_vp8_slice_init()

Completed in 49 milliseconds

12