Home
last modified time | relevance | path

Searched refs:vpu_dev (Results 1 – 19 of 19) sorted by relevance

/linux-6.12.1/drivers/media/platform/chips-media/wave5/
Dwave5-vdi.c16 struct vpu_device *vpu_dev = dev_get_drvdata(dev); in wave5_vdi_allocate_common_memory() local
18 if (!vpu_dev->common_mem.vaddr) { in wave5_vdi_allocate_common_memory()
21 if (vpu_dev->product_code == WAVE515_CODE) in wave5_vdi_allocate_common_memory()
22 vpu_dev->common_mem.size = WAVE515_SIZE_COMMON; in wave5_vdi_allocate_common_memory()
24 vpu_dev->common_mem.size = WAVE521_SIZE_COMMON; in wave5_vdi_allocate_common_memory()
26 ret = wave5_vdi_allocate_dma_memory(vpu_dev, &vpu_dev->common_mem); in wave5_vdi_allocate_common_memory()
34 &vpu_dev->common_mem.daddr, vpu_dev->common_mem.size, vpu_dev->common_mem.vaddr); in wave5_vdi_allocate_common_memory()
41 struct vpu_device *vpu_dev = dev_get_drvdata(dev); in wave5_vdi_init() local
50 if (!PRODUCT_CODE_W_SERIES(vpu_dev->product_code)) { in wave5_vdi_init()
51 WARN_ONCE(1, "unsupported product code: 0x%x\n", vpu_dev->product_code); in wave5_vdi_init()
[all …]
Dwave5-vpuapi.c19 struct vpu_device *vpu_dev = dev_get_drvdata(dev); in wave5_initialize_vpu() local
21 ret = mutex_lock_interruptible(&vpu_dev->hw_lock); in wave5_initialize_vpu()
25 if (wave5_vpu_is_init(vpu_dev)) { in wave5_initialize_vpu()
38 mutex_unlock(&vpu_dev->hw_lock); in wave5_initialize_vpu()
86 struct vpu_device *vpu_dev = dev_get_drvdata(dev); in wave5_vpu_get_version_info() local
88 ret = mutex_lock_interruptible(&vpu_dev->hw_lock); in wave5_vpu_get_version_info()
92 if (!wave5_vpu_is_init(vpu_dev)) { in wave5_vpu_get_version_info()
98 *product_id = vpu_dev->product; in wave5_vpu_get_version_info()
99 ret = wave5_vpu_get_version(vpu_dev, revision); in wave5_vpu_get_version_info()
102 mutex_unlock(&vpu_dev->hw_lock); in wave5_vpu_get_version_info()
[all …]
Dwave5-hw.c44 static void _wave5_print_reg_err(struct vpu_device *vpu_dev, u32 reg_fail_reason,
84 static void _wave5_print_reg_err(struct vpu_device *vpu_dev, u32 reg_fail_reason, in _wave5_print_reg_err() argument
87 struct device *dev = vpu_dev->dev; in _wave5_print_reg_err()
92 reg_val = vpu_read_reg(vpu_dev, W5_RET_QUEUE_FAIL_REASON); in _wave5_print_reg_err()
122 static int wave5_wait_fio_readl(struct vpu_device *vpu_dev, u32 addr, u32 val) in wave5_wait_fio_readl() argument
128 wave5_vdi_write_register(vpu_dev, W5_VPU_FIO_CTRL_ADDR, ctrl); in wave5_wait_fio_readl()
130 0, FIO_TIMEOUT, false, vpu_dev, W5_VPU_FIO_CTRL_ADDR); in wave5_wait_fio_readl()
134 if (wave5_vdi_read_register(vpu_dev, W5_VPU_FIO_DATA) != val) in wave5_wait_fio_readl()
140 static void wave5_fio_writel(struct vpu_device *vpu_dev, unsigned int addr, unsigned int data) in wave5_fio_writel() argument
145 wave5_vdi_write_register(vpu_dev, W5_VPU_FIO_DATA, data); in wave5_fio_writel()
[all …]
Dwave5.h57 bool wave5_vpu_is_init(struct vpu_device *vpu_dev);
59 unsigned int wave5_vpu_get_product_id(struct vpu_device *vpu_dev);
61 int wave5_vpu_get_version(struct vpu_device *vpu_dev, u32 *revision);
Dwave5-vpuapi.h832 void wave5_vdi_write_register(struct vpu_device *vpu_dev, u32 addr, u32 data);
833 u32 wave5_vdi_read_register(struct vpu_device *vpu_dev, u32 addr);
834 int wave5_vdi_clear_memory(struct vpu_device *vpu_dev, struct vpu_buf *vb);
835 int wave5_vdi_allocate_dma_memory(struct vpu_device *vpu_dev, struct vpu_buf *vb);
836 int wave5_vdi_allocate_array(struct vpu_device *vpu_dev, struct vpu_buf *array, unsigned int count,
838 int wave5_vdi_write_memory(struct vpu_device *vpu_dev, struct vpu_buf *vb, size_t offset,
840 int wave5_vdi_free_dma_memory(struct vpu_device *vpu_dev, struct vpu_buf *vb);
841 void wave5_vdi_allocate_sram(struct vpu_device *vpu_dev);
842 void wave5_vdi_free_sram(struct vpu_device *vpu_dev);
/linux-6.12.1/drivers/media/platform/amphion/
Dvpu.h34 struct vpu_dev;
38 int (*setup)(struct vpu_dev *vpu);
39 int (*setup_encoder)(struct vpu_dev *vpu);
40 int (*setup_decoder)(struct vpu_dev *vpu);
41 int (*reset)(struct vpu_dev *vpu);
59 struct vpu_dev { struct
73 void (*get_vpu)(struct vpu_dev *vpu); argument
74 void (*put_vpu)(struct vpu_dev *vpu); argument
75 void (*get_enc)(struct vpu_dev *vpu); argument
76 void (*put_enc)(struct vpu_dev *vpu); argument
[all …]
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()
[all …]
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()
Dvpu_imx8q.h103 int vpu_imx8q_setup_dec(struct vpu_dev *vpu);
104 int vpu_imx8q_setup_enc(struct vpu_dev *vpu);
105 int vpu_imx8q_setup(struct vpu_dev *vpu);
106 int vpu_imx8q_reset(struct vpu_dev *vpu);
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()
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()
519 struct vpu_dev *vpu; in vpu_get_resource()
617 struct vpu_dev *vpu = dev_get_drvdata(dev->parent); in vpu_core_probe()
Dvpu_mbox.h14 void vpu_mbox_enable_rx(struct vpu_dev *dev);
Dvpu_mbox.c113 void vpu_mbox_enable_rx(struct vpu_dev *dev) in vpu_mbox_enable_rx()
Dvpu_dbg.c423 struct vpu_dev *vpu; in vpu_inst_create_dbgfs_file()
459 struct vpu_dev *vpu; in vpu_core_create_dbgfs_file()
Dvpu_v4l2.c722 struct vpu_dev *vpu = video_drvdata(file); in vpu_v4l2_open()
788 struct vpu_dev *vpu = video_drvdata(file); in vpu_v4l2_close()
807 int vpu_add_func(struct vpu_dev *vpu, struct vpu_func *func) in vpu_add_func()
Dvpu_rpc.c225 static struct vpu_iface_ops *vpu_get_iface(struct vpu_dev *vpu, enum vpu_core_type type) in vpu_get_iface()
/linux-6.12.1/drivers/media/platform/mediatek/mdp/
Dmtk_mdp_vpu.c66 err = vpu_ipi_register(mdp->vpu_dev, IPI_MDP, in mtk_mdp_vpu_register()
118 vpu->pdev = ctx->mdp_dev->vpu_dev; in mtk_mdp_vpu_init()
Dmtk_mdp_core.c196 mdp->vpu_dev = vpu_get_plat_device(pdev); in mtk_mdp_probe()
197 ret = vpu_wdt_reg_handler(mdp->vpu_dev, mtk_mdp_reset_handler, mdp, in mtk_mdp_probe()
Dmtk_mdp_core.h163 struct platform_device *vpu_dev; member
Dmtk_mdp_m2m.c1093 ret = vpu_load_firmware(mdp->vpu_dev); in mtk_mdp_m2m_open()