Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/
H A Dmtk_vcodec_dec_drv.h98 void (*init_vdec_params)(struct mtk_vcodec_dec_ctx *ctx);
99 int (*ctrls_setup)(struct mtk_vcodec_dec_ctx *ctx);
101 int (*flush_decoder)(struct mtk_vcodec_dec_ctx *ctx);
102 struct vdec_fb *(*get_cap_buffer)(struct mtk_vcodec_dec_ctx *ctx);
103 void (*cap_to_disp)(struct mtk_vcodec_dec_ctx *ctx, int error,
168 struct mtk_vcodec_dec_ctx { struct
262 struct mtk_vcodec_dec_ctx *curr_ctx;
296 static inline struct mtk_vcodec_dec_ctx *fh_to_dec_ctx(struct v4l2_fh *fh) in fh_to_dec_ctx()
298 return container_of(fh, struct mtk_vcodec_dec_ctx, fh); in fh_to_dec_ctx()
301 static inline struct mtk_vcodec_dec_ctx *ctrl_to_dec_ctx(struct v4l2_ctrl *ctrl) in ctrl_to_dec_ctx()
[all …]
H A 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);
H A 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,
H A Dmtk_vcodec_dec.h83 void mtk_vdec_unlock(struct mtk_vcodec_dec_ctx *ctx);
84 void mtk_vdec_lock(struct mtk_vcodec_dec_ctx *ctx);
87 void mtk_vcodec_dec_set_default_params(struct mtk_vcodec_dec_ctx *ctx);
88 void mtk_vcodec_dec_release(struct mtk_vcodec_dec_ctx *ctx);
H A Dmtk_vcodec_dec.c93 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(priv); in vidioc_decoder_cmd()
131 void mtk_vdec_unlock(struct mtk_vcodec_dec_ctx *ctx) in mtk_vdec_unlock()
136 void mtk_vdec_lock(struct mtk_vcodec_dec_ctx *ctx) in mtk_vdec_lock()
188 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(priv); in vidioc_vdec_qbuf()
201 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(priv); in vidioc_vdec_dqbuf()
213 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(priv); in mtk_vcodec_dec_get_chip_name()
248 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(fh); in vidioc_vdec_subscribe_evt()
908 struct mtk_vcodec_dec_ctx *ctx = priv; in m2mops_vdec_device_run()
916 struct mtk_vcodec_dec_ctx *ctx = m2m_priv; in m2mops_vdec_job_ready()
935 struct mtk_vcodec_dec_ctx *ctx = priv; in m2mops_vdec_job_abort()
[all …]
H A Dmtk_vcodec_dec_stateful.c98 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()
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()
420 struct mtk_vcodec_dec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in vb2ops_vdec_stateful_buf_queue()
528 struct mtk_vcodec_dec_ctx *ctx = ctrl_to_dec_ctx(ctrl); in mtk_vdec_g_v_ctrl()
[all …]
H A 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()
H A 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);
H A Dmtk_vcodec_dec_stateless.c242 static struct vdec_fb *vdec_get_cap_buffer(struct mtk_vcodec_dec_ctx *ctx) in vdec_get_cap_buffer()
279 struct mtk_vcodec_dec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in vb2ops_vdec_buf_request_complete()
286 struct mtk_vcodec_dec_ctx *ctx = in mtk_vdec_worker()
287 container_of(work, struct mtk_vcodec_dec_ctx, decode_work); in mtk_vdec_worker()
362 struct mtk_vcodec_dec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); in vb2ops_vdec_stateless_buf_queue()
383 static int mtk_vdec_flush_decoder(struct mtk_vcodec_dec_ctx *ctx) in mtk_vdec_flush_decoder()
390 static int mtk_vcodec_get_pic_info(struct mtk_vcodec_dec_ctx *ctx) in mtk_vcodec_get_pic_info()
428 struct mtk_vcodec_dec_ctx *ctx = ctrl_to_dec_ctx(ctrl); in mtk_vdec_s_ctrl()
522 static int mtk_vcodec_dec_ctrls_setup(struct mtk_vcodec_dec_ctx *ctx) in mtk_vcodec_dec_ctrls_setup()
574 struct mtk_vcodec_dec_ctx *ctx) in mtk_vcodec_add_formats()
[all …]
H A Dvdec_vpu_if.h10 struct mtk_vcodec_dec_ctx;
41 struct mtk_vcodec_dec_ctx *ctx;
H A 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()
H A 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()
H A Dvdec_drv_base.h18 int (*init)(struct mtk_vcodec_dec_ctx *ctx);
H A Dmtk_vcodec_dec_hw.h52 struct mtk_vcodec_dec_ctx *curr_ctx;
H A 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()
/openbmc/linux/drivers/media/platform/mediatek/vcodec/common/
H A 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()
H A Dmtk_vcodec_util.c34 int mtk_vcodec_write_vdecsys(struct mtk_vcodec_dec_ctx *ctx, unsigned int reg, in mtk_vcodec_write_vdecsys()
61 struct mtk_vcodec_dec_ctx *dec_ctx = priv; in mtk_vcodec_mem_alloc()
94 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()
H A 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,
H A 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()
H A Dmtk_vcodec_intr.h12 struct mtk_vcodec_dec_ctx;
H A Dmtk_vcodec_intr.c25 struct mtk_vcodec_dec_ctx *ctx; in mtk_vcodec_wait_for_done_ctx()
/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/
H A 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,
H A Dvdec_vp8_req_if.c103 struct mtk_vcodec_dec_ctx *ctx;
108 static void *vdec_vp8_slice_get_ctrl_ptr(struct mtk_vcodec_dec_ctx *ctx, int id) in vdec_vp8_slice_get_ctrl_ptr()
120 struct mtk_vcodec_dec_ctx *ctx = inst->ctx; in vdec_vp8_slice_get_pic_info()
235 struct mtk_vcodec_dec_ctx *ctx = inst->ctx; in vdec_vp8_slice_get_decode_parameters()
274 static int vdec_vp8_slice_init(struct mtk_vcodec_dec_ctx *ctx) in vdec_vp8_slice_init()
H A 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()
H A 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