Home
last modified time | relevance | path

Searched defs:vpu (Results 1 – 25 of 67) sorted by relevance

123

/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/
H A Dvdec_vpu_if.c14 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
106 struct vdec_vpu_inst *vpu; in vpu_dec_ipi_handler() local
151 static int vcodec_vpu_send_msg(struct vdec_vpu_inst *vpu, void *msg, int len) in vcodec_vpu_send_msg()
202 int vpu_dec_init(struct vdec_vpu_inst *vpu) in vpu_dec_init()
273 int vpu_dec_get_param(struct vdec_vpu_inst *vpu, uint32_t *data, in vpu_dec_get_param()
296 int vpu_dec_core(struct vdec_vpu_inst *vpu) in vpu_dec_core()
301 int vpu_dec_end(struct vdec_vpu_inst *vpu) in vpu_dec_end()
306 int vpu_dec_core_end(struct vdec_vpu_inst *vpu) in vpu_dec_core_end()
311 int vpu_dec_deinit(struct vdec_vpu_inst *vpu) in vpu_dec_deinit()
[all …]
/openbmc/linux/drivers/media/platform/amphion/
H A Dvpu_drv.c32 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 …]
H A Dvpu_imx8q.c42 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()
H A Dvpu_core.c199 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
/openbmc/linux/drivers/remoteproc/
H A Dingenic_rproc.c61 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
/openbmc/linux/drivers/media/platform/mediatek/vcodec/encoder/
H A Dvenc_vpu_if.c11 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()
66 struct venc_vpu_inst *vpu; in vpu_enc_ipi_handler() local
109 static int vpu_enc_send_msg(struct venc_vpu_inst *vpu, void *msg, in vpu_enc_send_msg()
132 int vpu_enc_init(struct venc_vpu_inst *vpu) in vpu_enc_init()
167 static unsigned int venc_enc_param_crop_right(struct venc_vpu_inst *vpu, in venc_enc_param_crop_right()
186 int vpu_enc_set_param(struct venc_vpu_inst *vpu, in vpu_enc_set_param()
251 static int vpu_enc_encode_32bits(struct venc_vpu_inst *vpu, in vpu_enc_encode_32bits()
299 static int vpu_enc_encode_34bits(struct venc_vpu_inst *vpu, in vpu_enc_encode_34bits()
345 int vpu_enc_encode(struct venc_vpu_inst *vpu, unsigned int bs_mode, in vpu_enc_encode()
[all …]
/openbmc/linux/drivers/media/platform/mediatek/mdp3/
H A Dmtk-mdp3-vpu.c14 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()
/openbmc/linux/drivers/media/platform/mediatek/mdp/
H A Dmtk_mdp_vpu.c13 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()
/openbmc/linux/drivers/media/platform/verisilicon/
H A Drockchip_vpu_hw.c359 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()
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
477 struct hantro_dev *vpu = ctx->dev; in rockchip_vpu2_dec_reset() local
[all …]
H A Dhantro_postproc.c17 #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 …]
H A Dhantro_drv.c61 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()
940 static int hantro_add_enc_func(struct hantro_dev *vpu) in hantro_add_enc_func()
991 struct hantro_dev *vpu; in hantro_probe() local
1189 struct hantro_dev *vpu = platform_get_drvdata(pdev); in hantro_remove() local
[all …]
H A Dimx8m_vpu_hw.c28 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
H A Drockchip_vpu2_hw_jpeg_enc.c35 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
H A Dhantro_h1_jpeg_enc.c18 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
H A Dhantro_g1_vp8_dec.c139 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
H A Dhantro_g1_h264_dec.c28 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
H A Dhantro_g2_hevc_dec.c27 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
H A Drockchip_vpu981_hw_av1_dec.c224 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 …]
H A Drockchip_vpu2_hw_vp8_dec.c280 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
H A Dhantro_g1.c16 struct hantro_dev *vpu = dev_id; in hantro_g1_irq() local
34 struct hantro_dev *vpu = ctx->dev; in hantro_g1_reset() local
H A Dhantro_g2.c11 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
H A Dsunxi_vpu_hw.c83 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
H A Dhantro_mpeg2.c40 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
H A Dhantro_hevc.c72 struct hantro_dev *vpu = ctx->dev; in tile_buffer_reallocate() local
212 struct hantro_dev *vpu = ctx->dev; in hantro_hevc_dec_exit() local
248 struct hantro_dev *vpu = ctx->dev; in hantro_hevc_dec_init() local
/openbmc/linux/drivers/media/platform/mediatek/vpu/
H A Dmtk_vpu.c255 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()
564 struct mtk_vpu *vpu; in vpu_load_firmware() local
640 struct mtk_vpu *vpu = priv; in vpu_init_ipi_handler() local
659 struct mtk_vpu *vpu = dev_get_drvdata(dev); in vpu_debug_read() local
743 static void vpu_ipi_handler(struct mtk_vpu *vpu) in vpu_ipi_handler()
763 static int vpu_ipi_init(struct mtk_vpu *vpu) in vpu_ipi_init()
779 struct mtk_vpu *vpu = priv; in vpu_irq_handler() local
813 struct mtk_vpu *vpu; in mtk_vpu_probe() local
975 struct mtk_vpu *vpu = dev_get_drvdata(dev); in mtk_vpu_suspend() local
[all …]

123