Home
last modified time | relevance | path

Searched refs:mtk_vcodec_enc_ctx (Results 1 – 15 of 15) sorted by relevance

/linux/drivers/media/platform/mediatek/vcodec/encoder/
H A Dmtk_vcodec_enc.h43 int mtk_venc_unlock(struct mtk_vcodec_enc_ctx *ctx);
44 int mtk_venc_lock(struct mtk_vcodec_enc_ctx *ctx);
47 void mtk_vcodec_enc_release(struct mtk_vcodec_enc_ctx *ctx);
48 int mtk_vcodec_enc_ctrls_setup(struct mtk_vcodec_enc_ctx *ctx);
49 void mtk_vcodec_enc_set_default_params(struct mtk_vcodec_enc_ctx *ctx);
H A Dmtk_vcodec_enc_drv.h128 struct mtk_vcodec_enc_ctx { struct
198 struct mtk_vcodec_enc_ctx *curr_ctx;
220 static inline struct mtk_vcodec_enc_ctx *fh_to_enc_ctx(struct v4l2_fh *fh) in fh_to_enc_ctx()
222 return container_of(fh, struct mtk_vcodec_enc_ctx, fh); in fh_to_enc_ctx()
225 static inline struct mtk_vcodec_enc_ctx *ctrl_to_enc_ctx(struct v4l2_ctrl *ctrl) in ctrl_to_enc_ctx()
227 return container_of(ctrl->handler, struct mtk_vcodec_enc_ctx, ctrl_hdl); in ctrl_to_enc_ctx()
232 wake_up_enc_ctx(struct mtk_vcodec_enc_ctx *ctx, unsigned int reason, unsigned int hw_id) in wake_up_enc_ctx()
H A Dmtk_vcodec_enc.c45 struct mtk_vcodec_enc_ctx *ctx = ctrl_to_enc_ctx(ctrl); in vidioc_venc_s_ctrl()
162 struct mtk_vcodec_enc_ctx *ctx = fh_to_enc_ctx(fh); in vidioc_enum_framesizes()
204 struct mtk_vcodec_enc_ctx *ctx = fh_to_enc_ctx(priv); in mtk_vcodec_enc_get_chip_name()
224 struct mtk_vcodec_enc_ctx *ctx = fh_to_enc_ctx(priv); in vidioc_venc_querycap()
237 struct mtk_vcodec_enc_ctx *ctx = fh_to_enc_ctx(priv); in vidioc_venc_s_parm()
260 struct mtk_vcodec_enc_ctx *ctx = fh_to_enc_ctx(priv); in vidioc_venc_g_parm()
274 static struct mtk_q_data *mtk_venc_get_q_data(struct mtk_vcodec_enc_ctx *ctx, in mtk_venc_get_q_data()
294 static int vidioc_try_fmt_out(struct mtk_vcodec_enc_ctx *ctx, struct v4l2_format *f, in vidioc_try_fmt_out()
367 static void mtk_venc_set_param(struct mtk_vcodec_enc_ctx *ctx, in mtk_venc_set_param()
417 struct mtk_vcodec_enc_ctx *ctx = fh_to_enc_ctx(priv); in vidioc_venc_s_fmt_cap()
[all …]
H A Dvenc_drv_if.h134 int venc_if_init(struct mtk_vcodec_enc_ctx *ctx, unsigned int fourcc);
141 int venc_if_deinit(struct mtk_vcodec_enc_ctx *ctx);
150 int venc_if_set_param(struct mtk_vcodec_enc_ctx *ctx,
163 int venc_if_encode(struct mtk_vcodec_enc_ctx *ctx,
H A Dvenc_drv_if.c19 int venc_if_init(struct mtk_vcodec_enc_ctx *ctx, unsigned int fourcc) in venc_if_init()
41 int venc_if_set_param(struct mtk_vcodec_enc_ctx *ctx, in venc_if_set_param()
53 int venc_if_encode(struct mtk_vcodec_enc_ctx *ctx, in venc_if_encode()
85 int venc_if_deinit(struct mtk_vcodec_enc_ctx *ctx) in venc_if_deinit()
H A Dvenc_drv_base.h22 int (*init)(struct mtk_vcodec_enc_ctx *ctx);
H A Dvenc_vpu_if.h37 struct mtk_vcodec_enc_ctx *ctx;
H A Dmtk_vcodec_enc_drv.c86 struct mtk_vcodec_enc_ctx *ctx; in mtk_vcodec_enc_irq_handler()
117 struct mtk_vcodec_enc_ctx *ctx = NULL; in fops_vcodec_open()
206 struct mtk_vcodec_enc_ctx *ctx = fh_to_enc_ctx(file->private_data); in fops_vcodec_release()
H A Dvenc_vpu_if.c47 struct mtk_vcodec_enc_ctx *ctx; in vpu_enc_check_ap_inst()
/linux/drivers/media/platform/mediatek/vcodec/encoder/venc/
H A Dvenc_vp8_if.c131 struct mtk_vcodec_enc_ctx *ctx;
211 struct mtk_vcodec_enc_ctx *ctx = (struct mtk_vcodec_enc_ctx *)inst->ctx; in vp8_enc_wait_venc_done()
314 static int vp8_enc_init(struct mtk_vcodec_enc_ctx *ctx) in vp8_enc_init()
348 struct mtk_vcodec_enc_ctx *ctx = inst->ctx; in vp8_enc_encode()
H A Dvenc_h264_if.c223 struct mtk_vcodec_enc_ctx *ctx;
412 struct mtk_vcodec_enc_ctx *ctx = (struct mtk_vcodec_enc_ctx *)inst->ctx; in h264_enc_wait_venc_done()
516 struct mtk_vcodec_enc_ctx *ctx = inst->ctx; in h264_encode_frame()
585 static int h264_enc_init(struct mtk_vcodec_enc_ctx *ctx) in h264_enc_init()
623 struct mtk_vcodec_enc_ctx *ctx = inst->ctx; in h264_enc_encode()
753 struct mtk_vcodec_enc_ctx *ctx = inst->ctx; in h264_enc_set_param()
/linux/drivers/media/platform/mediatek/vcodec/common/
H A Dmtk_vcodec_util.c55 struct mtk_vcodec_enc_ctx *enc_ctx = priv; in mtk_vcodec_mem_alloc()
88 struct mtk_vcodec_enc_ctx *enc_ctx = priv; in mtk_vcodec_mem_free()
H A Dmtk_vcodec_intr.h13 struct mtk_vcodec_enc_ctx;
H A Dmtk_vcodec_intr.c35 struct mtk_vcodec_enc_ctx *ctx; in mtk_vcodec_wait_for_done_ctx()
H A Dmtk_vcodec_fw_vpu.c64 struct mtk_vcodec_enc_ctx *ctx; in mtk_vcodec_vpu_reset_enc_handler()