| /drivers/media/platform/mediatek/vcodec/decoder/ |
| A D | mtk_vcodec_dec_drv.h | 110 void (*init_vdec_params)(struct mtk_vcodec_dec_ctx *ctx); 111 int (*ctrls_setup)(struct mtk_vcodec_dec_ctx *ctx); 113 int (*flush_decoder)(struct mtk_vcodec_dec_ctx *ctx); 114 struct vdec_fb *(*get_cap_buffer)(struct mtk_vcodec_dec_ctx *ctx); 115 void (*cap_to_disp)(struct mtk_vcodec_dec_ctx *ctx, int error, 180 struct mtk_vcodec_dec_ctx { struct 276 struct mtk_vcodec_dec_ctx *curr_ctx; 312 static inline struct mtk_vcodec_dec_ctx *fh_to_dec_ctx(struct v4l2_fh *fh) in fh_to_dec_ctx() 314 return container_of(fh, struct mtk_vcodec_dec_ctx, fh); in fh_to_dec_ctx() 317 static inline struct mtk_vcodec_dec_ctx *ctrl_to_dec_ctx(struct v4l2_ctrl *ctrl) in ctrl_to_dec_ctx() [all …]
|
| A D | mtk_vcodec_dec.c | 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() 274 struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(fh); in vidioc_vdec_subscribe_evt() 934 struct mtk_vcodec_dec_ctx *ctx = priv; in m2mops_vdec_device_run() 942 struct mtk_vcodec_dec_ctx *ctx = m2m_priv; in m2mops_vdec_job_ready() 961 struct mtk_vcodec_dec_ctx *ctx = priv; in m2mops_vdec_job_abort() [all …]
|
| A D | vdec_msg_queue.h | 18 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);
|
| A D | mtk_vcodec_dec_stateless.c | 313 struct mtk_vcodec_dec_ctx *ctx = in mtk_vdec_worker() 314 container_of(work, struct mtk_vcodec_dec_ctx, decode_work); in mtk_vdec_worker() 455 struct mtk_vcodec_dec_ctx *ctx = ctrl_to_dec_ctx(ctrl); in mtk_vdec_s_ctrl() 550 struct mtk_vcodec_dec_ctx *ctx) in mtk_vcodec_dec_fill_h264_level() 571 struct mtk_vcodec_dec_ctx *ctx) in mtk_vcodec_dec_fill_h264_profile() 585 struct mtk_vcodec_dec_ctx *ctx) in mtk_vcodec_dec_fill_h265_level() 601 struct mtk_vcodec_dec_ctx *ctx) in mtk_vcodec_dec_fill_h265_profile() 615 struct mtk_vcodec_dec_ctx *ctx) in mtk_vcodec_dec_fill_vp9_level() 635 struct mtk_vcodec_dec_ctx *ctx) in mtk_vcodec_dec_fill_vp9_profile() 649 struct mtk_vcodec_dec_ctx *ctx) in mtk_vcodec_dec_reset_controls() [all …]
|
| A D | vdec_drv_if.h | 70 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,
|
| A D | mtk_vcodec_dec_stateful.c | 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() 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 …]
|
| A D | mtk_vcodec_dec.h | 82 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);
|
| A D | vdec_drv_if.c | 17 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()
|
| A D | mtk_vcodec_dec_pm.h | 14 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);
|
| A D | vdec_vpu_if.h | 10 struct mtk_vcodec_dec_ctx; 40 struct mtk_vcodec_dec_ctx *ctx;
|
| A D | mtk_vcodec_dec_pm.c | 144 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()
|
| A D | vdec_msg_queue.c | 202 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()
|
| A D | mtk_vcodec_dec_drv.c | 29 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()
|
| A D | vdec_drv_base.h | 18 int (*init)(struct mtk_vcodec_dec_ctx *ctx);
|
| A D | mtk_vcodec_dec_hw.h | 52 struct mtk_vcodec_dec_ctx *curr_ctx;
|
| /drivers/media/platform/mediatek/vcodec/common/ |
| A D | mtk_vcodec_dbgfs.h | 11 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()
|
| A D | mtk_vcodec_util.c | 34 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()
|
| A D | mtk_vcodec_util.h | 28 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,
|
| A D | mtk_vcodec_dbgfs.c | 14 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()
|
| A D | mtk_vcodec_intr.h | 12 struct mtk_vcodec_dec_ctx;
|
| /drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
| A D | vdec_vp8_req_if.c | 102 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()
|
| A D | vdec_h264_req_common.h | 185 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,
|
| A D | vdec_hevc_req_multi_if.c | 361 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()
|
| A D | vdec_h264_req_if.c | 86 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()
|
| A D | vdec_av1_req_lat_if.c | 708 struct mtk_vcodec_dec_ctx *ctx; 758 static void *vdec_av1_get_ctrl_ptr(struct mtk_vcodec_dec_ctx *ctx, int id) in vdec_av1_get_ctrl_ptr() 771 struct mtk_vcodec_dec_ctx *ctx; in vdec_av1_slice_init_cdf_table() 802 struct mtk_vcodec_dec_ctx *ctx; in vdec_av1_slice_init_iq_table() 939 struct mtk_vcodec_dec_ctx *ctx = instance->ctx; in vdec_av1_slice_alloc_working_buffer() 1022 struct mtk_vcodec_dec_ctx *ctx = instance->ctx; in vdec_av1_slice_free_working_buffer() 1878 static int vdec_av1_slice_init(struct mtk_vcodec_dec_ctx *ctx) in vdec_av1_slice_init() 1976 struct mtk_vcodec_dec_ctx *ctx = instance->ctx; in vdec_av1_slice_get_pic_info() 2002 struct mtk_vcodec_dec_ctx *ctx = instance->ctx; in vdec_av1_slice_get_crop_info() 2042 struct mtk_vcodec_dec_ctx *ctx; in vdec_av1_slice_lat_decode() [all …]
|