mtk_vcodec_dec_ctx
static void mtk_vdec_dbgfs_get_format_type(struct mtk_vcodec_dec_ctx *ctx, char *buf,
void mtk_vcodec_dbgfs_create(struct mtk_vcodec_dec_ctx *ctx)
struct mtk_vcodec_dec_ctx *ctx;
struct mtk_vcodec_dec_ctx;
struct mtk_vcodec_dec_ctx *vcodec_ctx;
void mtk_vcodec_dbgfs_create(struct mtk_vcodec_dec_ctx *ctx);
static inline void mtk_vcodec_dbgfs_create(struct mtk_vcodec_dec_ctx *ctx)
struct mtk_vcodec_dec_ctx *ctx;
struct mtk_vcodec_dec_ctx *ctx;
struct mtk_vcodec_dec_ctx;
struct mtk_vcodec_dec_ctx *ctx, int hw_idx)
struct mtk_vcodec_dec_ctx *mtk_vcodec_get_curr_ctx(struct mtk_vcodec_dec_dev *vdec_dev,
struct mtk_vcodec_dec_ctx *ctx;
int mtk_vcodec_write_vdecsys(struct mtk_vcodec_dec_ctx *ctx, unsigned int reg,
struct mtk_vcodec_dec_ctx *dec_ctx = priv;
struct mtk_vcodec_dec_ctx *dec_ctx = priv;
struct mtk_vcodec_dec_ctx;
int mtk_vcodec_write_vdecsys(struct mtk_vcodec_dec_ctx *ctx, unsigned int reg, unsigned int val);
struct mtk_vcodec_dec_ctx *ctx, int hw_idx);
struct mtk_vcodec_dec_ctx *mtk_vcodec_get_curr_ctx(struct mtk_vcodec_dec_dev *vdec_dev,
struct mtk_vcodec_dec_ctx *ctx = priv;
struct mtk_vcodec_dec_ctx *ctx = file_to_dec_ctx(file);
struct mtk_vcodec_dec_ctx *ctx = file_to_dec_ctx(file);
struct mtk_vcodec_dec_ctx *ctx = file_to_dec_ctx(file);
void mtk_vdec_unlock(struct mtk_vcodec_dec_ctx *ctx)
void mtk_vdec_lock(struct mtk_vcodec_dec_ctx *ctx)
void mtk_vcodec_dec_release(struct mtk_vcodec_dec_ctx *ctx)
void mtk_vcodec_dec_set_default_params(struct mtk_vcodec_dec_ctx *ctx)
struct mtk_vcodec_dec_ctx *ctx = file_to_dec_ctx(file);
struct mtk_vcodec_dec_ctx *ctx = file_to_dec_ctx(file);
struct mtk_vcodec_dec_ctx *ctx = file_to_dec_ctx(file);
struct mtk_vcodec_dec_ctx *ctx = fh_to_dec_ctx(fh);
static int vidioc_try_fmt(struct mtk_vcodec_dec_ctx *ctx, struct v4l2_format *f,
struct mtk_vcodec_dec_ctx *ctx = file_to_dec_ctx(file);
static bool mtk_vdec_get_cap_fmt(struct mtk_vcodec_dec_ctx *ctx, int format_index)
struct mtk_vcodec_dec_ctx *ctx = file_to_dec_ctx(file);
struct mtk_vcodec_dec_ctx *ctx = file_to_dec_ctx(file);
struct mtk_vcodec_dec_ctx *ctx = file_to_dec_ctx(file);
struct mtk_vcodec_dec_ctx *ctx = file_to_dec_ctx(file);
struct mtk_vcodec_dec_ctx *ctx = file_to_dec_ctx(file);
struct mtk_vcodec_dec_ctx *ctx = file_to_dec_ctx(file);
struct mtk_vcodec_dec_ctx *ctx = file_to_dec_ctx(file);
static struct mtk_q_data *mtk_vdec_get_q_data(struct mtk_vcodec_dec_ctx *ctx,
struct mtk_vcodec_dec_ctx *ctx = vb2_get_drv_priv(vq);
struct mtk_vcodec_dec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
struct mtk_vcodec_dec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
struct mtk_vcodec_dec_ctx *ctx = vb2_get_drv_priv(q);
struct mtk_vcodec_dec_ctx *ctx = vb2_get_drv_priv(q);
struct mtk_vcodec_dec_ctx *ctx = file_to_dec_ctx(file);
struct mtk_vcodec_dec_ctx *ctx = priv;
struct mtk_vcodec_dec_ctx *ctx = m2m_priv;
struct mtk_vcodec_dec_ctx *ctx = priv;
void mtk_vdec_unlock(struct mtk_vcodec_dec_ctx *ctx);
void mtk_vdec_lock(struct mtk_vcodec_dec_ctx *ctx);
void mtk_vcodec_dec_set_default_params(struct mtk_vcodec_dec_ctx *ctx);
void mtk_vcodec_dec_release(struct mtk_vcodec_dec_ctx *ctx);
struct mtk_vcodec_dec_ctx *ctx = NULL;
static int mtk_vcodec_get_hw_count(struct mtk_vcodec_dec_ctx *ctx, struct mtk_vcodec_dec_dev *dev)
struct mtk_vcodec_dec_ctx *ctx = file_to_dec_ctx(file);
struct mtk_vcodec_dec_ctx *ctx;
void (*init_vdec_params)(struct mtk_vcodec_dec_ctx *ctx);
int (*ctrls_setup)(struct mtk_vcodec_dec_ctx *ctx);
int (*flush_decoder)(struct mtk_vcodec_dec_ctx *ctx);
struct vdec_fb *(*get_cap_buffer)(struct mtk_vcodec_dec_ctx *ctx);
void (*cap_to_disp)(struct mtk_vcodec_dec_ctx *ctx, int error,
struct mtk_vcodec_dec_ctx *curr_ctx;
static inline struct mtk_vcodec_dec_ctx *fh_to_dec_ctx(struct v4l2_fh *fh)
return container_of(fh, struct mtk_vcodec_dec_ctx, fh);
static inline struct mtk_vcodec_dec_ctx *file_to_dec_ctx(struct file *filp)
static inline struct mtk_vcodec_dec_ctx *ctrl_to_dec_ctx(struct v4l2_ctrl *ctrl)
return container_of(ctrl->handler, struct mtk_vcodec_dec_ctx, ctrl_hdl);
wake_up_dec_ctx(struct mtk_vcodec_dec_ctx *ctx, unsigned int reason, unsigned int hw_id)
struct mtk_vcodec_dec_ctx *ctx;
struct mtk_vcodec_dec_ctx *curr_ctx;
static void mtk_vcodec_load_racing_info(struct mtk_vcodec_dec_ctx *ctx)
static void mtk_vcodec_record_racing_info(struct mtk_vcodec_dec_ctx *ctx)
void mtk_vcodec_dec_enable_hardware(struct mtk_vcodec_dec_ctx *ctx, int hw_idx)
void mtk_vcodec_dec_disable_hardware(struct mtk_vcodec_dec_ctx *ctx, int hw_idx)
void mtk_vcodec_dec_enable_hardware(struct mtk_vcodec_dec_ctx *ctx, int hw_idx);
void mtk_vcodec_dec_disable_hardware(struct mtk_vcodec_dec_ctx *ctx, int hw_idx);
static void clean_display_buffer(struct mtk_vcodec_dec_ctx *ctx)
static void clean_free_buffer(struct mtk_vcodec_dec_ctx *ctx)
static void mtk_vdec_queue_res_chg_event(struct mtk_vcodec_dec_ctx *ctx)
static int mtk_vdec_flush_decoder(struct mtk_vcodec_dec_ctx *ctx)
static void mtk_vdec_update_fmt(struct mtk_vcodec_dec_ctx *ctx,
static int mtk_vdec_pic_info_update(struct mtk_vcodec_dec_ctx *ctx)
struct mtk_vcodec_dec_ctx *ctx =
container_of(work, struct mtk_vcodec_dec_ctx, decode_work);
struct mtk_vcodec_dec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
struct mtk_vcodec_dec_ctx *ctx = ctrl_to_dec_ctx(ctrl);
static struct vb2_buffer *get_display_buffer(struct mtk_vcodec_dec_ctx *ctx)
static int mtk_vcodec_dec_ctrls_setup(struct mtk_vcodec_dec_ctx *ctx)
static void mtk_init_vdec_params(struct mtk_vcodec_dec_ctx *ctx)
static struct vb2_buffer *get_free_buffer(struct mtk_vcodec_dec_ctx *ctx)
static void mtk_vdec_stateless_cap_to_disp(struct mtk_vcodec_dec_ctx *ctx, int error,
static struct vdec_fb *vdec_get_cap_buffer(struct mtk_vcodec_dec_ctx *ctx)
struct mtk_vcodec_dec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
struct mtk_vcodec_dec_ctx *ctx =
container_of(work, struct mtk_vcodec_dec_ctx, decode_work);
struct mtk_vcodec_dec_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
static int mtk_vdec_flush_decoder(struct mtk_vcodec_dec_ctx *ctx)
static int mtk_vcodec_get_pic_info(struct mtk_vcodec_dec_ctx *ctx)
struct mtk_vcodec_dec_ctx *ctx = ctrl_to_dec_ctx(ctrl);
struct mtk_vcodec_dec_ctx *ctx)
struct mtk_vcodec_dec_ctx *ctx)
struct mtk_vcodec_dec_ctx *ctx)
struct mtk_vcodec_dec_ctx *ctx)
struct mtk_vcodec_dec_ctx *ctx)
struct mtk_vcodec_dec_ctx *ctx)
struct mtk_vcodec_dec_ctx *ctx)
static int mtk_vcodec_dec_ctrls_setup(struct mtk_vcodec_dec_ctx *ctx)
struct mtk_vcodec_dec_ctx *ctx)
static void mtk_vcodec_get_supported_formats(struct mtk_vcodec_dec_ctx *ctx)
static void mtk_init_vdec_params(struct mtk_vcodec_dec_ctx *ctx)
struct mtk_vcodec_dec_ctx *ctx = instance->ctx;
static int vdec_av1_slice_init(struct mtk_vcodec_dec_ctx *ctx)
struct mtk_vcodec_dec_ctx *ctx = instance->ctx;
struct mtk_vcodec_dec_ctx *ctx = instance->ctx;
struct mtk_vcodec_dec_ctx *ctx;
struct mtk_vcodec_dec_ctx *ctx = NULL;
struct mtk_vcodec_dec_ctx *ctx;
static void *vdec_av1_get_ctrl_ptr(struct mtk_vcodec_dec_ctx *ctx, int id)
struct mtk_vcodec_dec_ctx *ctx;
struct mtk_vcodec_dec_ctx *ctx;
struct mtk_vcodec_dec_ctx *ctx = instance->ctx;
struct mtk_vcodec_dec_ctx *ctx;
static int vdec_h264_init(struct mtk_vcodec_dec_ctx *ctx)
void *mtk_vdec_h264_get_ctrl_ptr(struct mtk_vcodec_dec_ctx *ctx, int id)
void mtk_vdec_h264_fill_dpb_info(struct mtk_vcodec_dec_ctx *ctx,
void *mtk_vdec_h264_get_ctrl_ptr(struct mtk_vcodec_dec_ctx *ctx, int id);
void mtk_vdec_h264_fill_dpb_info(struct mtk_vcodec_dec_ctx *ctx,
struct mtk_vcodec_dec_ctx *ctx = inst->ctx;
static int vdec_h264_slice_init(struct mtk_vcodec_dec_ctx *ctx)
struct mtk_vcodec_dec_ctx *ctx;
static int vdec_h264_slice_init(struct mtk_vcodec_dec_ctx *ctx)
struct mtk_vcodec_dec_ctx *ctx;
struct mtk_vcodec_dec_ctx *ctx = inst->ctx;
struct mtk_vcodec_dec_ctx *ctx = inst->ctx;
struct mtk_vcodec_dec_ctx *ctx = lat_buf->ctx;
struct mtk_vcodec_dec_ctx *ctx = lat_buf->ctx;
struct mtk_vcodec_dec_ctx *ctx;
static void *vdec_hevc_get_ctrl_ptr(struct mtk_vcodec_dec_ctx *ctx, int id)
static void vdec_hevc_fill_dpb_info(struct mtk_vcodec_dec_ctx *ctx,
struct mtk_vcodec_dec_ctx *ctx = inst->ctx;
struct mtk_vcodec_dec_ctx *ctx = inst->ctx;
static int vdec_hevc_slice_init(struct mtk_vcodec_dec_ctx *ctx)
struct mtk_vcodec_dec_ctx *ctx = lat_buf->ctx;
struct mtk_vcodec_dec_ctx *ctx;
static int vdec_vp8_init(struct mtk_vcodec_dec_ctx *ctx)
struct mtk_vcodec_dec_ctx *ctx;
static void *vdec_vp8_slice_get_ctrl_ptr(struct mtk_vcodec_dec_ctx *ctx, int id)
struct mtk_vcodec_dec_ctx *ctx = inst->ctx;
struct mtk_vcodec_dec_ctx *ctx = inst->ctx;
static int vdec_vp8_slice_init(struct mtk_vcodec_dec_ctx *ctx)
struct mtk_vcodec_dec_ctx *ctx;
struct mtk_vcodec_dec_ctx *ctx = inst->ctx;
static struct vdec_vp9_inst *vp9_alloc_inst(struct mtk_vcodec_dec_ctx *ctx)
static int vdec_vp9_init(struct mtk_vcodec_dec_ctx *ctx)
static int vdec_vp9_slice_init(struct mtk_vcodec_dec_ctx *ctx)
struct mtk_vcodec_dec_ctx *ctx = instance->ctx;
struct mtk_vcodec_dec_ctx *ctx;
struct mtk_vcodec_dec_ctx *ctx;
struct mtk_vcodec_dec_ctx *ctx = NULL;
struct mtk_vcodec_dec_ctx *ctx;
struct mtk_vcodec_dec_ctx *ctx;
struct mtk_vcodec_dec_ctx *ctx = instance->ctx;
struct mtk_vcodec_dec_ctx *ctx = instance->ctx;
int (*init)(struct mtk_vcodec_dec_ctx *ctx);
int vdec_if_get_param(struct mtk_vcodec_dec_ctx *ctx, enum vdec_get_param_type type,
void vdec_if_deinit(struct mtk_vcodec_dec_ctx *ctx)
int vdec_if_init(struct mtk_vcodec_dec_ctx *ctx, unsigned int fourcc)
int vdec_if_decode(struct mtk_vcodec_dec_ctx *ctx, struct mtk_vcodec_mem *bs,
int vdec_if_get_param(struct mtk_vcodec_dec_ctx *ctx, enum vdec_get_param_type type,
int vdec_if_init(struct mtk_vcodec_dec_ctx *ctx, unsigned int fourcc);
void vdec_if_deinit(struct mtk_vcodec_dec_ctx *ctx);
int vdec_if_decode(struct mtk_vcodec_dec_ctx *ctx, struct mtk_vcodec_mem *bs,
struct mtk_vcodec_dec_ctx *ctx)
struct mtk_vcodec_dec_ctx *ctx =
container_of(msg_queue, struct mtk_vcodec_dec_ctx, msg_queue);
struct mtk_vcodec_dec_ctx *ctx, core_decode_cb_t core_decode,
struct mtk_vcodec_dec_ctx *ctx;
struct mtk_vcodec_dec_ctx *ctx, core_decode_cb_t core_decode,
struct mtk_vcodec_dec_ctx;
struct mtk_vcodec_dec_ctx *ctx);
struct mtk_vcodec_dec_ctx *ctx;
struct mtk_vcodec_dec_ctx *ctx;
struct mtk_vcodec_dec_ctx;
struct mtk_vcodec_dec_ctx *ctx;