/linux-6.6.21/drivers/media/platform/mediatek/vcodec/decoder/ |
D | vdec_vpu_if.c | 14 struct vdec_vpu_inst *vpu = (struct vdec_vpu_inst *) in handle_init_ack_msg() local 57 struct vdec_vpu_inst *vpu = (struct vdec_vpu_inst *) in handle_get_param_msg_ack() local 75 static bool vpu_dec_check_ap_inst(struct mtk_vcodec_dec_dev *dec_dev, struct vdec_vpu_inst *vpu) in vpu_dec_check_ap_inst() 104 struct vdec_vpu_inst *vpu; in vpu_dec_ipi_handler() local 149 static int vcodec_vpu_send_msg(struct vdec_vpu_inst *vpu, void *msg, int len) in vcodec_vpu_send_msg() 180 static int vcodec_send_ap_ipi(struct vdec_vpu_inst *vpu, unsigned int msg_id) in vcodec_send_ap_ipi() 200 int vpu_dec_init(struct vdec_vpu_inst *vpu) in vpu_dec_init() 238 int vpu_dec_start(struct vdec_vpu_inst *vpu, uint32_t *data, unsigned int len) in vpu_dec_start() 265 int vpu_dec_get_param(struct vdec_vpu_inst *vpu, uint32_t *data, in vpu_dec_get_param() 288 int vpu_dec_core(struct vdec_vpu_inst *vpu) in vpu_dec_core() [all …]
|
/linux-6.6.21/drivers/media/platform/amphion/ |
D | vpu_drv.c | 32 void vpu_writel(struct vpu_dev *vpu, u32 reg, u32 val) in vpu_writel() 37 u32 vpu_readl(struct vpu_dev *vpu, u32 reg) in vpu_readl() 42 static void vpu_dev_get(struct vpu_dev *vpu) in vpu_dev_get() 48 static void vpu_dev_put(struct vpu_dev *vpu) in vpu_dev_put() 53 static void vpu_enc_get(struct vpu_dev *vpu) in vpu_enc_get() 59 static void vpu_enc_put(struct vpu_dev *vpu) in vpu_enc_put() 64 static void vpu_dec_get(struct vpu_dev *vpu) in vpu_dec_get() 70 static void vpu_dec_put(struct vpu_dev *vpu) in vpu_dec_put() 75 static int vpu_init_media_device(struct vpu_dev *vpu) in vpu_init_media_device() 89 struct vpu_dev *vpu; in vpu_probe() local [all …]
|
D | vpu_imx8q.c | 42 int vpu_imx8q_setup_dec(struct vpu_dev *vpu) in vpu_imx8q_setup_dec() 52 int vpu_imx8q_setup_enc(struct vpu_dev *vpu) in vpu_imx8q_setup_enc() 57 int vpu_imx8q_setup(struct vpu_dev *vpu) in vpu_imx8q_setup() 75 static int vpu_imx8q_reset_enc(struct vpu_dev *vpu) in vpu_imx8q_reset_enc() 80 static int vpu_imx8q_reset_dec(struct vpu_dev *vpu) in vpu_imx8q_reset_dec() 89 int vpu_imx8q_reset(struct vpu_dev *vpu) in vpu_imx8q_reset()
|
D | vpu_core.c | 199 static struct vpu_core *vpu_core_find_proper_by_type(struct vpu_dev *vpu, u32 type) in vpu_core_find_proper_by_type() 229 static bool vpu_core_is_exist(struct vpu_dev *vpu, struct vpu_core *core) in vpu_core_is_exist() 252 struct vpu_dev *vpu = dev_get_drvdata(dev); in vpu_core_register() local 364 struct vpu_core *vpu_request_core(struct vpu_dev *vpu, enum vpu_core_type type) in vpu_request_core() 414 struct vpu_dev *vpu; in vpu_inst_register() local 519 struct vpu_dev *vpu; in vpu_get_resource() local 617 struct vpu_dev *vpu = dev_get_drvdata(dev->parent); in vpu_core_probe() local
|
/linux-6.6.21/drivers/remoteproc/ |
D | ingenic_rproc.c | 61 struct vpu { struct 65 struct vpu_mem_info mem_info[ARRAY_SIZE(vpu_mem_map)]; argument 71 struct vpu *vpu = rproc->priv; in ingenic_rproc_prepare() argument 84 struct vpu *vpu = rproc->priv; in ingenic_rproc_unprepare() local 93 struct vpu *vpu = rproc->priv; in ingenic_rproc_start() local 107 struct vpu *vpu = rproc->priv; in ingenic_rproc_stop() local 119 struct vpu *vpu = rproc->priv; in ingenic_rproc_kick() local 126 struct vpu *vpu = rproc->priv; in ingenic_rproc_da_to_va() local 155 struct vpu *vpu = rproc->priv; in vpu_interrupt() local 171 struct vpu *vpu; in ingenic_rproc_probe() local
|
/linux-6.6.21/drivers/media/platform/mediatek/vcodec/encoder/ |
D | venc_vpu_if.c | 11 static void handle_enc_init_msg(struct venc_vpu_inst *vpu, const void *data) in handle_enc_init_msg() 36 static void handle_enc_encode_msg(struct venc_vpu_inst *vpu, const void *data) in handle_enc_encode_msg() 45 static bool vpu_enc_check_ap_inst(struct mtk_vcodec_enc_dev *enc_dev, struct venc_vpu_inst *vpu) in vpu_enc_check_ap_inst() 64 struct venc_vpu_inst *vpu; in vpu_enc_ipi_handler() local 107 static int vpu_enc_send_msg(struct venc_vpu_inst *vpu, void *msg, in vpu_enc_send_msg() 130 int vpu_enc_init(struct venc_vpu_inst *vpu) in vpu_enc_init() 165 static unsigned int venc_enc_param_crop_right(struct venc_vpu_inst *vpu, in venc_enc_param_crop_right() 184 int vpu_enc_set_param(struct venc_vpu_inst *vpu, in vpu_enc_set_param() 249 static int vpu_enc_encode_32bits(struct venc_vpu_inst *vpu, in vpu_enc_encode_32bits() 297 static int vpu_enc_encode_34bits(struct venc_vpu_inst *vpu, in vpu_enc_encode_34bits() [all …]
|
/linux-6.6.21/drivers/media/platform/mediatek/mdp3/ |
D | mtk-mdp3-vpu.c | 14 static inline struct mdp_dev *vpu_to_mdp(struct mdp_vpu_dev *vpu) in vpu_to_mdp() 19 static int mdp_vpu_shared_mem_alloc(struct mdp_vpu_dev *vpu) in mdp_vpu_shared_mem_alloc() 61 void mdp_vpu_shared_mem_free(struct mdp_vpu_dev *vpu) in mdp_vpu_shared_mem_free() 84 struct mdp_vpu_dev *vpu = in mdp_vpu_ipi_handle_init_ack() local 98 struct mdp_vpu_dev *vpu = in mdp_vpu_ipi_handle_deinit_ack() local 111 struct mdp_vpu_dev *vpu = in mdp_vpu_ipi_handle_frame_ack() local 165 static int mdp_vpu_sendmsg(struct mdp_vpu_dev *vpu, enum scp_ipi_id id, in mdp_vpu_sendmsg() 193 int mdp_vpu_dev_init(struct mdp_vpu_dev *vpu, struct mtk_scp *scp, in mdp_vpu_dev_init() 250 int mdp_vpu_dev_deinit(struct mdp_vpu_dev *vpu) in mdp_vpu_dev_deinit() 260 int mdp_vpu_process(struct mdp_vpu_dev *vpu, struct img_ipi_frameparam *param) in mdp_vpu_process()
|
/linux-6.6.21/drivers/media/platform/verisilicon/ |
D | rockchip_vpu_hw.c | 359 struct hantro_dev *vpu = dev_id; in rockchip_vpu1_vepu_irq() local 377 struct hantro_dev *vpu = dev_id; in rockchip_vpu2_vdpu_irq() local 395 struct hantro_dev *vpu = dev_id; in rockchip_vpu2_vepu_irq() local 413 struct hantro_dev *vpu = dev_id; in rk3588_vpu981_irq() local 429 static int rk3036_vpu_hw_init(struct hantro_dev *vpu) in rk3036_vpu_hw_init() 436 static int rk3066_vpu_hw_init(struct hantro_dev *vpu) in rk3066_vpu_hw_init() 444 static int rk3588_vpu981_hw_init(struct hantro_dev *vpu) in rk3588_vpu981_hw_init() 451 static int rockchip_vpu_hw_init(struct hantro_dev *vpu) in rockchip_vpu_hw_init() 460 struct hantro_dev *vpu = ctx->dev; in rk3066_vpu_dec_reset() local 468 struct hantro_dev *vpu = ctx->dev; in rockchip_vpu1_enc_reset() local [all …]
|
D | hantro_postproc.c | 17 #define HANTRO_PP_REG_WRITE(vpu, reg_name, val) \ argument 24 #define HANTRO_PP_REG_WRITE_RELAXED(vpu, reg_name, val) \ argument 69 struct hantro_dev *vpu = ctx->dev; in hantro_postproc_g1_enable() local 118 struct hantro_dev *vpu = ctx->dev; in hantro_postproc_g2_enable() local 179 struct hantro_dev *vpu = ctx->dev; in hantro_postproc_free() local 195 struct hantro_dev *vpu = ctx->dev; in hantro_postproc_alloc() local 243 struct hantro_dev *vpu = ctx->dev; in hantro_postproc_g1_disable() local 250 struct hantro_dev *vpu = ctx->dev; in hantro_postproc_g2_disable() local 257 struct hantro_dev *vpu = ctx->dev; in hantro_postproc_disable() local 265 struct hantro_dev *vpu = ctx->dev; in hantro_postproc_enable() local [all …]
|
D | hantro_drv.c | 61 static void hantro_job_finish_no_pm(struct hantro_dev *vpu, in hantro_job_finish_no_pm() 88 static void hantro_job_finish(struct hantro_dev *vpu, in hantro_job_finish() 100 void hantro_irq_done(struct hantro_dev *vpu, in hantro_irq_done() 120 struct hantro_dev *vpu; in hantro_watchdog() local 595 static int hantro_ctrls_setup(struct hantro_dev *vpu, in hantro_ctrls_setup() 626 struct hantro_dev *vpu = video_drvdata(filp); in hantro_open() local 775 static int hantro_attach_func(struct hantro_dev *vpu, in hantro_attach_func() 878 static int hantro_add_func(struct hantro_dev *vpu, unsigned int funcid) in hantro_add_func() 940 static int hantro_add_enc_func(struct hantro_dev *vpu) in hantro_add_enc_func() 948 static int hantro_add_dec_func(struct hantro_dev *vpu) in hantro_add_dec_func() [all …]
|
D | imx8m_vpu_hw.c | 28 static void imx8m_soft_reset(struct hantro_dev *vpu, u32 reset_bits) in imx8m_soft_reset() 45 static void imx8m_clk_enable(struct hantro_dev *vpu, u32 clock_bits) in imx8m_clk_enable() 54 static int imx8mq_runtime_resume(struct hantro_dev *vpu) in imx8mq_runtime_resume() 239 struct hantro_dev *vpu = dev_id; in imx8m_vpu_g1_irq() local 255 static int imx8mq_vpu_hw_init(struct hantro_dev *vpu) in imx8mq_vpu_hw_init() 264 struct hantro_dev *vpu = ctx->dev; in imx8m_vpu_g1_reset() local
|
D | rockchip_vpu2_hw_jpeg_enc.c | 35 static void rockchip_vpu2_set_src_img_ctrl(struct hantro_dev *vpu, in rockchip_vpu2_set_src_img_ctrl() 67 static void rockchip_vpu2_jpeg_enc_set_buffers(struct hantro_dev *vpu, in rockchip_vpu2_jpeg_enc_set_buffers() 106 rockchip_vpu2_jpeg_enc_set_qtable(struct hantro_dev *vpu, in rockchip_vpu2_jpeg_enc_set_qtable() 134 struct hantro_dev *vpu = ctx->dev; in rockchip_vpu2_jpeg_enc_run() local 191 struct hantro_dev *vpu = ctx->dev; in rockchip_vpu2_jpeg_enc_done() local
|
D | hantro_h1_jpeg_enc.c | 18 static void hantro_h1_set_src_img_ctrl(struct hantro_dev *vpu, in hantro_h1_set_src_img_ctrl() 40 static void hantro_h1_jpeg_enc_set_buffers(struct hantro_dev *vpu, in hantro_h1_jpeg_enc_set_buffers() 80 hantro_h1_jpeg_enc_set_qtable(struct hantro_dev *vpu, in hantro_h1_jpeg_enc_set_qtable() 108 struct hantro_dev *vpu = ctx->dev; in hantro_h1_jpeg_enc_run() local 160 struct hantro_dev *vpu = ctx->dev; in hantro_h1_jpeg_enc_done() local
|
D | hantro_g1_vp8_dec.c | 139 struct hantro_dev *vpu = ctx->dev; in cfg_lf() local 181 struct hantro_dev *vpu = ctx->dev; in cfg_qp() local 234 struct hantro_dev *vpu = ctx->dev; in cfg_parts() local 332 struct hantro_dev *vpu = ctx->dev; in cfg_tap() local 373 struct hantro_dev *vpu = ctx->dev; in cfg_ref() local 411 struct hantro_dev *vpu = ctx->dev; in cfg_buffers() local 435 struct hantro_dev *vpu = ctx->dev; in hantro_g1_vp8_dec_run() local
|
D | rockchip_vpu981_hw_av1_dec.c | 224 struct hantro_dev *vpu = ctx->dev; in rockchip_vpu981_av1_dec_tiles_free() local 257 struct hantro_dev *vpu = ctx->dev; in rockchip_vpu981_av1_dec_tiles_reallocate() local 322 struct hantro_dev *vpu = ctx->dev; in rockchip_vpu981_av1_dec_exit() local 364 struct hantro_dev *vpu = ctx->dev; in rockchip_vpu981_av1_dec_init() local 516 struct hantro_dev *vpu = ctx->dev; in rockchip_vpu981_av1_dec_set_global_model() local 580 struct hantro_dev *vpu = ctx->dev; in rockchip_vpu981_av1_dec_set_tile_info() local 686 struct hantro_dev *vpu = ctx->dev; in rockchip_vpu981_av1_dec_set_ref() local 761 struct hantro_dev *vpu = ctx->dev; in rockchip_vpu981_av1_dec_set_sign_bias() local 798 struct hantro_dev *vpu = ctx->dev; in rockchip_vpu981_av1_dec_set_segmentation() local 1074 struct hantro_dev *vpu = ctx->dev; in rockchip_vpu981_av1_dec_set_loopfilter() local [all …]
|
D | hantro_g1_h264_dec.c | 28 struct hantro_dev *vpu = ctx->dev; in set_params() local 130 struct hantro_dev *vpu = ctx->dev; in set_ref() local 209 struct hantro_dev *vpu = ctx->dev; in set_buffers() local 252 struct hantro_dev *vpu = ctx->dev; in hantro_g1_h264_dec_run() local
|
D | hantro_g2_hevc_dec.c | 27 struct hantro_dev *vpu = ctx->dev; in prepare_tile_info_buffer() local 161 struct hantro_dev *vpu = ctx->dev; in set_params() local 303 struct hantro_dev *vpu = ctx->dev; in set_ref_pic_list() local 384 struct hantro_dev *vpu = ctx->dev; in set_ref() local 505 struct hantro_dev *vpu = ctx->dev; in set_buffers() local 530 struct hantro_dev *vpu = ctx->dev; in prepare_scaling_list_buffer() local 580 struct hantro_dev *vpu = ctx->dev; in hantro_g2_hevc_dec_run() local
|
D | rockchip_vpu2_hw_vp8_dec.c | 280 struct hantro_dev *vpu = ctx->dev; in cfg_lf() local 319 struct hantro_dev *vpu = ctx->dev; in cfg_qp() local 347 struct hantro_dev *vpu = ctx->dev; in cfg_parts() local 430 struct hantro_dev *vpu = ctx->dev; in cfg_tap() local 450 struct hantro_dev *vpu = ctx->dev; in cfg_ref() local 487 struct hantro_dev *vpu = ctx->dev; in cfg_buffers() local 512 struct hantro_dev *vpu = ctx->dev; in rockchip_vpu2_vp8_dec_run() local
|
D | hantro_g1.c | 16 struct hantro_dev *vpu = dev_id; in hantro_g1_irq() local 34 struct hantro_dev *vpu = ctx->dev; in hantro_g1_reset() local
|
D | hantro_g2.c | 11 void hantro_g2_check_idle(struct hantro_dev *vpu) in hantro_g2_check_idle() 30 struct hantro_dev *vpu = dev_id; in hantro_g2_irq() local
|
D | sunxi_vpu_hw.c | 83 static int sunxi_vpu_hw_init(struct hantro_dev *vpu) in sunxi_vpu_hw_init() 92 struct hantro_dev *vpu = ctx->dev; in sunxi_vpu_reset() local
|
D | hantro.h | 379 static __always_inline void vepu_write_relaxed(struct hantro_dev *vpu, in vepu_write_relaxed() 386 static __always_inline void vepu_write(struct hantro_dev *vpu, u32 val, u32 reg) in vepu_write() 392 static __always_inline u32 vepu_read(struct hantro_dev *vpu, u32 reg) in vepu_read() 400 static __always_inline void vdpu_write_relaxed(struct hantro_dev *vpu, in vdpu_write_relaxed() 407 static __always_inline void vdpu_write(struct hantro_dev *vpu, u32 val, u32 reg) in vdpu_write() 413 static __always_inline void hantro_write_addr(struct hantro_dev *vpu, in hantro_write_addr() 420 static __always_inline u32 vdpu_read(struct hantro_dev *vpu, u32 reg) in vdpu_read() 428 static __always_inline u32 vdpu_read_mask(struct hantro_dev *vpu, in vdpu_read_mask() 440 static __always_inline void hantro_reg_write(struct hantro_dev *vpu, in hantro_reg_write() 447 static __always_inline void hantro_reg_write_relaxed(struct hantro_dev *vpu, in hantro_reg_write_relaxed()
|
D | hantro_mpeg2.c | 40 struct hantro_dev *vpu = ctx->dev; in hantro_mpeg2_dec_init() local 55 struct hantro_dev *vpu = ctx->dev; in hantro_mpeg2_dec_exit() local
|
/linux-6.6.21/drivers/media/platform/mediatek/mdp/ |
D | mtk_mdp_vpu.c | 13 static inline struct mtk_mdp_ctx *vpu_to_ctx(struct mtk_mdp_vpu *vpu) in vpu_to_ctx() 20 struct mtk_mdp_vpu *vpu = (struct mtk_mdp_vpu *) in mtk_mdp_vpu_handle_init_ack() local 34 struct mtk_mdp_vpu *vpu = (struct mtk_mdp_vpu *) in mtk_mdp_vpu_ipi_handler() local 75 static int mtk_mdp_vpu_send_msg(void *msg, int len, struct mtk_mdp_vpu *vpu, in mtk_mdp_vpu_send_msg() 96 static int mtk_mdp_vpu_send_ap_ipi(struct mtk_mdp_vpu *vpu, uint32_t msg_id) in mtk_mdp_vpu_send_ap_ipi() 112 int mtk_mdp_vpu_init(struct mtk_mdp_vpu *vpu) in mtk_mdp_vpu_init() 130 int mtk_mdp_vpu_deinit(struct mtk_mdp_vpu *vpu) in mtk_mdp_vpu_deinit() 135 int mtk_mdp_vpu_process(struct mtk_mdp_vpu *vpu) in mtk_mdp_vpu_process()
|
/linux-6.6.21/drivers/media/platform/mediatek/vpu/ |
D | mtk_vpu.c | 227 static inline void vpu_cfg_writel(struct mtk_vpu *vpu, u32 val, u32 offset) in vpu_cfg_writel() 232 static inline u32 vpu_cfg_readl(struct mtk_vpu *vpu, u32 offset) in vpu_cfg_readl() 237 static inline bool vpu_running(struct mtk_vpu *vpu) in vpu_running() 242 static void vpu_clock_disable(struct mtk_vpu *vpu) in vpu_clock_disable() 255 static int vpu_clock_enable(struct mtk_vpu *vpu) in vpu_clock_enable() 273 static void vpu_dump_status(struct mtk_vpu *vpu) in vpu_dump_status() 291 struct mtk_vpu *vpu = platform_get_drvdata(pdev); in vpu_ipi_register() local 317 struct mtk_vpu *vpu = platform_get_drvdata(pdev); in vpu_ipi_send() local 388 struct mtk_vpu *vpu = container_of(wdt, struct mtk_vpu, wdt); in vpu_wdt_reset_func() local 416 struct mtk_vpu *vpu = platform_get_drvdata(pdev); in vpu_wdt_reg_handler() local [all …]
|