Lines Matching full:vpu

3  * Hantro VPU codec driver
56 * struct hantro_variant - information about VPU hardware variant
58 * @enc_offset: Offset from VPU base to encoder registers.
59 * @dec_offset: Offset from VPU base to decoder registers.
93 int (*init)(struct hantro_dev *vpu);
94 int (*runtime_resume)(struct hantro_dev *vpu);
139 * struct hantro_func - Hantro VPU functionality
180 * @pdev: Pointer to VPU platform device.
185 * @reg_bases: Mapped addresses of VPU registers.
186 * @enc_base: Mapped address of VPU encoder register for convenience.
187 * @dec_base: Mapped address of VPU decoder register for convenience.
188 * @ctrl_base: Mapped address of VPU control block.
219 * @dev: VPU driver data to which the context belongs.
380 static __always_inline void vepu_write_relaxed(struct hantro_dev *vpu, in vepu_write_relaxed() argument
384 writel_relaxed(val, vpu->enc_base + reg); in vepu_write_relaxed()
387 static __always_inline void vepu_write(struct hantro_dev *vpu, u32 val, u32 reg) in vepu_write() argument
390 writel(val, vpu->enc_base + reg); in vepu_write()
393 static __always_inline u32 vepu_read(struct hantro_dev *vpu, u32 reg) in vepu_read() argument
395 u32 val = readl(vpu->enc_base + reg); in vepu_read()
401 static __always_inline void vdpu_write_relaxed(struct hantro_dev *vpu, in vdpu_write_relaxed() argument
405 writel_relaxed(val, vpu->dec_base + reg); in vdpu_write_relaxed()
408 static __always_inline void vdpu_write(struct hantro_dev *vpu, u32 val, u32 reg) in vdpu_write() argument
411 writel(val, vpu->dec_base + reg); in vdpu_write()
414 static __always_inline void hantro_write_addr(struct hantro_dev *vpu, in hantro_write_addr() argument
418 vdpu_write(vpu, addr & 0xffffffff, offset); in hantro_write_addr()
421 static __always_inline u32 vdpu_read(struct hantro_dev *vpu, u32 reg) in vdpu_read() argument
423 u32 val = readl(vpu->dec_base + reg); in vdpu_read()
429 static __always_inline u32 vdpu_read_mask(struct hantro_dev *vpu, in vdpu_read_mask() argument
435 v = vdpu_read(vpu, reg->base); in vdpu_read_mask()
441 static __always_inline void hantro_reg_write(struct hantro_dev *vpu, in hantro_reg_write() argument
445 vdpu_write(vpu, vdpu_read_mask(vpu, reg, val), reg->base); in hantro_reg_write()
448 static __always_inline void hantro_reg_write_relaxed(struct hantro_dev *vpu, in hantro_reg_write_relaxed() argument
452 vdpu_write_relaxed(vpu, vdpu_read_mask(vpu, reg, val), reg->base); in hantro_reg_write_relaxed()