/linux-6.12.1/drivers/media/platform/chips-media/wave5/ |
D | wave5-vdi.c | 16 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 …]
|
D | wave5-vpuapi.c | 19 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 …]
|
D | wave5-hw.c | 44 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 …]
|
D | wave5.h | 57 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);
|
D | wave5-vpuapi.h | 832 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/ |
D | vpu.h | 34 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 …]
|
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() [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_imx8q.h | 103 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);
|
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() 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()
|
D | vpu_mbox.h | 14 void vpu_mbox_enable_rx(struct vpu_dev *dev);
|
D | vpu_mbox.c | 113 void vpu_mbox_enable_rx(struct vpu_dev *dev) in vpu_mbox_enable_rx()
|
D | vpu_dbg.c | 423 struct vpu_dev *vpu; in vpu_inst_create_dbgfs_file() 459 struct vpu_dev *vpu; in vpu_core_create_dbgfs_file()
|
D | vpu_v4l2.c | 722 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()
|
D | vpu_rpc.c | 225 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/ |
D | mtk_mdp_vpu.c | 66 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()
|
D | mtk_mdp_core.c | 196 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()
|
D | mtk_mdp_core.h | 163 struct platform_device *vpu_dev; member
|
D | mtk_mdp_m2m.c | 1093 ret = vpu_load_firmware(mdp->vpu_dev); in mtk_mdp_m2m_open()
|