Home
last modified time | relevance | path

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

12

/Linux-v6.1/drivers/media/platform/mediatek/vcodec/
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()
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,
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 …]
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);
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,
Dmtk_vcodec_dec.c38 static bool mtk_vdec_get_cap_fmt(struct mtk_vcodec_ctx *ctx, int format_index) in mtk_vdec_get_cap_fmt()
76 static struct mtk_q_data *mtk_vdec_get_q_data(struct mtk_vcodec_ctx *ctx, in mtk_vdec_get_q_data()
95 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_decoder_cmd()
133 void mtk_vdec_unlock(struct mtk_vcodec_ctx *ctx) in mtk_vdec_unlock()
138 void mtk_vdec_lock(struct mtk_vcodec_ctx *ctx) in mtk_vdec_lock()
143 void mtk_vcodec_dec_release(struct mtk_vcodec_ctx *ctx) in mtk_vcodec_dec_release()
149 void mtk_vcodec_dec_set_default_params(struct mtk_vcodec_ctx *ctx) in mtk_vcodec_dec_set_default_params()
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()
[all …]
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,
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()
273 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_venc_g_parm()
287 static struct mtk_q_data *mtk_venc_get_q_data(struct mtk_vcodec_ctx *ctx, in mtk_venc_get_q_data()
307 static int vidioc_try_fmt_out(struct mtk_vcodec_ctx *ctx, struct v4l2_format *f, in vidioc_try_fmt_out()
379 static void mtk_venc_set_param(struct mtk_vcodec_ctx *ctx, in mtk_venc_set_param()
429 struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv); in vidioc_venc_s_fmt_cap()
[all …]
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);
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);
Dmtk_vcodec_dec_stateful.c58 static struct vb2_buffer *get_display_buffer(struct mtk_vcodec_ctx *ctx) in get_display_buffer()
100 static struct vb2_buffer *get_free_buffer(struct mtk_vcodec_ctx *ctx) in get_free_buffer()
175 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()
187 static void mtk_vdec_queue_res_chg_event(struct mtk_vcodec_ctx *ctx) in mtk_vdec_queue_res_chg_event()
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()
[all …]
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()
150 static struct vdec_fb *vdec_get_cap_buffer(struct mtk_vcodec_ctx *ctx) in vdec_get_cap_buffer()
186 struct mtk_vcodec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in vb2ops_vdec_buf_request_complete()
193 struct mtk_vcodec_ctx *ctx = in mtk_vdec_worker()
194 container_of(work, struct mtk_vcodec_ctx, decode_work); in mtk_vdec_worker()
266 struct mtk_vcodec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in vb2ops_vdec_stateless_buf_queue()
286 static int mtk_vdec_flush_decoder(struct mtk_vcodec_ctx *ctx) in mtk_vdec_flush_decoder()
293 static int mtk_vcodec_dec_ctrls_setup(struct mtk_vcodec_ctx *ctx) in mtk_vcodec_dec_ctrls_setup()
344 struct mtk_vcodec_ctx *ctx) in mtk_vcodec_add_formats()
383 static void mtk_vcodec_get_supported_formats(struct mtk_vcodec_ctx *ctx) in mtk_vcodec_get_supported_formats()
[all …]
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()
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()
Dmtk_vcodec_intr.h12 struct mtk_vcodec_ctx;
15 int mtk_vcodec_wait_for_done_ctx(struct mtk_vcodec_ctx *ctx,
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);
Dvdec_vpu_if.h12 struct mtk_vcodec_ctx;
43 struct mtk_vcodec_ctx *ctx;
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()
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()
Dvdec_drv_base.h18 int (*init)(struct mtk_vcodec_ctx *ctx);
Dvenc_drv_base.h22 int (*init)(struct mtk_vcodec_ctx *ctx);
/Linux-v6.1/drivers/media/platform/mediatek/vcodec/venc/
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()
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-v6.1/drivers/media/platform/mediatek/vcodec/vdec/
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,
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()

12