Home
last modified time | relevance | path

Searched refs:mtk_vcodec_dec_ctx (Results 1 – 25 of 35) sorted by relevance

12

/linux-6.12.1/drivers/media/platform/mediatek/vcodec/decoder/
Dmtk_vcodec_dec_drv.h108 void (*init_vdec_params)(struct mtk_vcodec_dec_ctx *ctx);
109 int (*ctrls_setup)(struct mtk_vcodec_dec_ctx *ctx);
111 int (*flush_decoder)(struct mtk_vcodec_dec_ctx *ctx);
112 struct vdec_fb *(*get_cap_buffer)(struct mtk_vcodec_dec_ctx *ctx);
113 void (*cap_to_disp)(struct mtk_vcodec_dec_ctx *ctx, int error,
178 struct mtk_vcodec_dec_ctx { struct
274 struct mtk_vcodec_dec_ctx *curr_ctx;
310 static inline struct mtk_vcodec_dec_ctx *fh_to_dec_ctx(struct v4l2_fh *fh) in fh_to_dec_ctx()
312 return container_of(fh, struct mtk_vcodec_dec_ctx, fh); in fh_to_dec_ctx()
315 static inline struct mtk_vcodec_dec_ctx *ctrl_to_dec_ctx(struct v4l2_ctrl *ctrl) in ctrl_to_dec_ctx()
[all …]
Dmtk_vcodec_dec.c36 static bool mtk_vdec_get_cap_fmt(struct mtk_vcodec_dec_ctx *ctx, int format_index) in mtk_vdec_get_cap_fmt()
74 static struct mtk_q_data *mtk_vdec_get_q_data(struct mtk_vcodec_dec_ctx *ctx, in mtk_vdec_get_q_data()
90 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(priv); in stateful_decoder_cmd()
135 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(priv); in stateless_decoder_cmd()
161 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(priv); in vidioc_try_decoder_cmd()
171 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(priv); in vidioc_decoder_cmd()
179 void mtk_vdec_unlock(struct mtk_vcodec_dec_ctx *ctx) in mtk_vdec_unlock()
184 void mtk_vdec_lock(struct mtk_vcodec_dec_ctx *ctx) in mtk_vdec_lock()
189 void mtk_vcodec_dec_release(struct mtk_vcodec_dec_ctx *ctx) in mtk_vcodec_dec_release()
195 void mtk_vcodec_dec_set_default_params(struct mtk_vcodec_dec_ctx *ctx) in mtk_vcodec_dec_set_default_params()
[all …]
Dvdec_msg_queue.h18 struct mtk_vcodec_dec_ctx;
77 struct mtk_vcodec_dec_ctx *ctx;
120 struct mtk_vcodec_dec_ctx *ctx;
133 struct mtk_vcodec_dec_ctx *ctx, core_decode_cb_t core_decode,
189 struct mtk_vcodec_dec_ctx *ctx);
Dvdec_drv_if.h70 int vdec_if_init(struct mtk_vcodec_dec_ctx *ctx, unsigned int fourcc);
77 void vdec_if_deinit(struct mtk_vcodec_dec_ctx *ctx);
91 int vdec_if_decode(struct mtk_vcodec_dec_ctx *ctx, struct mtk_vcodec_mem *bs,
100 int vdec_if_get_param(struct mtk_vcodec_dec_ctx *ctx, enum vdec_get_param_type type,
Dmtk_vcodec_dec.h82 void mtk_vdec_unlock(struct mtk_vcodec_dec_ctx *ctx);
83 void mtk_vdec_lock(struct mtk_vcodec_dec_ctx *ctx);
86 void mtk_vcodec_dec_set_default_params(struct mtk_vcodec_dec_ctx *ctx);
87 void mtk_vcodec_dec_release(struct mtk_vcodec_dec_ctx *ctx);
Dmtk_vcodec_dec_stateless.c247 static void mtk_vdec_stateless_cap_to_disp(struct mtk_vcodec_dec_ctx *ctx, int error, in mtk_vdec_stateless_cap_to_disp()
271 static struct vdec_fb *vdec_get_cap_buffer(struct mtk_vcodec_dec_ctx *ctx) in vdec_get_cap_buffer()
308 struct mtk_vcodec_dec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in vb2ops_vdec_buf_request_complete()
315 struct mtk_vcodec_dec_ctx *ctx = in mtk_vdec_worker()
316 container_of(work, struct mtk_vcodec_dec_ctx, decode_work); in mtk_vdec_worker()
391 struct mtk_vcodec_dec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in vb2ops_vdec_stateless_buf_queue()
412 static int mtk_vdec_flush_decoder(struct mtk_vcodec_dec_ctx *ctx) in mtk_vdec_flush_decoder()
419 static int mtk_vcodec_get_pic_info(struct mtk_vcodec_dec_ctx *ctx) in mtk_vcodec_get_pic_info()
457 struct mtk_vcodec_dec_ctx *ctx = ctrl_to_dec_ctx(ctrl); in mtk_vdec_s_ctrl()
552 struct mtk_vcodec_dec_ctx *ctx) in mtk_vcodec_dec_fill_h264_level()
[all …]
Dmtk_vcodec_dec_stateful.c55 static struct vb2_buffer *get_display_buffer(struct mtk_vcodec_dec_ctx *ctx) in get_display_buffer()
98 static struct vb2_buffer *get_free_buffer(struct mtk_vcodec_dec_ctx *ctx) in get_free_buffer()
173 static void clean_display_buffer(struct mtk_vcodec_dec_ctx *ctx) in clean_display_buffer()
179 static void clean_free_buffer(struct mtk_vcodec_dec_ctx *ctx) in clean_free_buffer()
185 static void mtk_vdec_queue_res_chg_event(struct mtk_vcodec_dec_ctx *ctx) in mtk_vdec_queue_res_chg_event()
196 static int mtk_vdec_flush_decoder(struct mtk_vcodec_dec_ctx *ctx) in mtk_vdec_flush_decoder()
211 static void mtk_vdec_update_fmt(struct mtk_vcodec_dec_ctx *ctx, in mtk_vdec_update_fmt()
232 static int mtk_vdec_pic_info_update(struct mtk_vcodec_dec_ctx *ctx) in mtk_vdec_pic_info_update()
277 struct mtk_vcodec_dec_ctx *ctx = in mtk_vdec_worker()
278 container_of(work, struct mtk_vcodec_dec_ctx, decode_work); in mtk_vdec_worker()
[all …]
Dvdec_drv_if.c17 int vdec_if_init(struct mtk_vcodec_dec_ctx *ctx, unsigned int fourcc) in vdec_if_init()
71 int vdec_if_decode(struct mtk_vcodec_dec_ctx *ctx, struct mtk_vcodec_mem *bs, in vdec_if_decode()
103 int vdec_if_get_param(struct mtk_vcodec_dec_ctx *ctx, enum vdec_get_param_type type, in vdec_if_get_param()
118 void vdec_if_deinit(struct mtk_vcodec_dec_ctx *ctx) in vdec_if_deinit()
Dmtk_vcodec_dec_pm.h14 void mtk_vcodec_dec_enable_hardware(struct mtk_vcodec_dec_ctx *ctx, int hw_idx);
15 void mtk_vcodec_dec_disable_hardware(struct mtk_vcodec_dec_ctx *ctx, int hw_idx);
Dvdec_vpu_if.h10 struct mtk_vcodec_dec_ctx;
40 struct mtk_vcodec_dec_ctx *ctx;
Dmtk_vcodec_dec_pm.c144 static void mtk_vcodec_load_racing_info(struct mtk_vcodec_dec_ctx *ctx) in mtk_vcodec_load_racing_info()
158 static void mtk_vcodec_record_racing_info(struct mtk_vcodec_dec_ctx *ctx) in mtk_vcodec_record_racing_info()
232 void mtk_vcodec_dec_enable_hardware(struct mtk_vcodec_dec_ctx *ctx, int hw_idx) in mtk_vcodec_dec_enable_hardware()
248 void mtk_vcodec_dec_disable_hardware(struct mtk_vcodec_dec_ctx *ctx, int hw_idx) in mtk_vcodec_dec_disable_hardware()
Dvdec_msg_queue.c202 struct mtk_vcodec_dec_ctx *ctx) in vdec_msg_queue_deinit()
242 struct mtk_vcodec_dec_ctx *ctx = in vdec_msg_queue_core_work()
243 container_of(msg_queue, struct mtk_vcodec_dec_ctx, msg_queue); in vdec_msg_queue_core_work()
283 struct mtk_vcodec_dec_ctx *ctx, core_decode_cb_t core_decode, in vdec_msg_queue_init()
Dvdec_drv_base.h18 int (*init)(struct mtk_vcodec_dec_ctx *ctx);
Dmtk_vcodec_dec_hw.h52 struct mtk_vcodec_dec_ctx *curr_ctx;
Dmtk_vcodec_dec_drv.c29 static int mtk_vcodec_get_hw_count(struct mtk_vcodec_dec_ctx *ctx, struct mtk_vcodec_dec_dev *dev) in mtk_vcodec_get_hw_count()
57 struct mtk_vcodec_dec_ctx *ctx; in mtk_vcodec_dec_irq_handler()
198 struct mtk_vcodec_dec_ctx *ctx = NULL; in fops_vcodec_open()
297 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(file->private_data); in fops_vcodec_release()
/linux-6.12.1/drivers/media/platform/mediatek/vcodec/common/
Dmtk_vcodec_dbgfs.h11 struct mtk_vcodec_dec_ctx;
30 struct mtk_vcodec_dec_ctx *vcodec_ctx;
53 void mtk_vcodec_dbgfs_create(struct mtk_vcodec_dec_ctx *ctx);
58 static inline void mtk_vcodec_dbgfs_create(struct mtk_vcodec_dec_ctx *ctx) in mtk_vcodec_dbgfs_create()
Dmtk_vcodec_util.c34 int mtk_vcodec_write_vdecsys(struct mtk_vcodec_dec_ctx *ctx, unsigned int reg, in mtk_vcodec_write_vdecsys()
60 struct mtk_vcodec_dec_ctx *dec_ctx = priv; in mtk_vcodec_mem_alloc()
93 struct mtk_vcodec_dec_ctx *dec_ctx = priv; in mtk_vcodec_mem_free()
128 struct mtk_vcodec_dec_ctx *ctx, int hw_idx) in mtk_vcodec_set_curr_ctx()
149 struct mtk_vcodec_dec_ctx *mtk_vcodec_get_curr_ctx(struct mtk_vcodec_dec_dev *vdec_dev, in mtk_vcodec_get_curr_ctx()
153 struct mtk_vcodec_dec_ctx *ctx; in mtk_vcodec_get_curr_ctx()
Dmtk_vcodec_util.h28 struct mtk_vcodec_dec_ctx;
66 int mtk_vcodec_write_vdecsys(struct mtk_vcodec_dec_ctx *ctx, unsigned int reg, unsigned int val);
70 struct mtk_vcodec_dec_ctx *ctx, int hw_idx);
71 struct mtk_vcodec_dec_ctx *mtk_vcodec_get_curr_ctx(struct mtk_vcodec_dec_dev *vdec_dev,
Dmtk_vcodec_dbgfs.c14 static void mtk_vdec_dbgfs_get_format_type(struct mtk_vcodec_dec_ctx *ctx, char *buf, in mtk_vdec_dbgfs_get_format_type()
95 struct mtk_vcodec_dec_ctx *ctx; in mtk_vdec_dbgfs_read()
147 void mtk_vcodec_dbgfs_create(struct mtk_vcodec_dec_ctx *ctx) in mtk_vcodec_dbgfs_create()
Dmtk_vcodec_intr.h12 struct mtk_vcodec_dec_ctx;
Dmtk_vcodec_intr.c25 struct mtk_vcodec_dec_ctx *ctx; in mtk_vcodec_wait_for_done_ctx()
/linux-6.12.1/drivers/media/platform/mediatek/vcodec/decoder/vdec/
Dvdec_vp8_req_if.c102 struct mtk_vcodec_dec_ctx *ctx;
107 static void *vdec_vp8_slice_get_ctrl_ptr(struct mtk_vcodec_dec_ctx *ctx, int id) in vdec_vp8_slice_get_ctrl_ptr()
119 struct mtk_vcodec_dec_ctx *ctx = inst->ctx; in vdec_vp8_slice_get_pic_info()
234 struct mtk_vcodec_dec_ctx *ctx = inst->ctx; in vdec_vp8_slice_get_decode_parameters()
273 static int vdec_vp8_slice_init(struct mtk_vcodec_dec_ctx *ctx) in vdec_vp8_slice_init()
Dvdec_h264_req_common.h185 void *mtk_vdec_h264_get_ctrl_ptr(struct mtk_vcodec_dec_ctx *ctx, int id);
194 void mtk_vdec_h264_fill_dpb_info(struct mtk_vcodec_dec_ctx *ctx,
Dvdec_hevc_req_multi_if.c361 struct mtk_vcodec_dec_ctx *ctx;
382 static void *vdec_hevc_get_ctrl_ptr(struct mtk_vcodec_dec_ctx *ctx, int id) in vdec_hevc_get_ctrl_ptr()
392 static void vdec_hevc_fill_dpb_info(struct mtk_vcodec_dec_ctx *ctx, in vdec_hevc_fill_dpb_info()
681 struct mtk_vcodec_dec_ctx *ctx = inst->ctx; in vdec_hevc_slice_get_pic_info()
800 struct mtk_vcodec_dec_ctx *ctx = inst->ctx; in vdec_hevc_slice_setup_core_buffer()
855 static int vdec_hevc_slice_init(struct mtk_vcodec_dec_ctx *ctx) in vdec_hevc_slice_init()
926 struct mtk_vcodec_dec_ctx *ctx = lat_buf->ctx; in vdec_hevc_slice_core_decode()
Dvdec_h264_req_if.c86 struct mtk_vcodec_dec_ctx *ctx;
222 struct mtk_vcodec_dec_ctx *ctx = inst->ctx; in get_pic_info()
271 static int vdec_h264_slice_init(struct mtk_vcodec_dec_ctx *ctx) in vdec_h264_slice_init()

12