Lines Matching full:vpu
3 * Hantro VPU codec driver
55 * struct hantro_variant - information about VPU hardware variant
57 * @enc_offset: Offset from VPU base to encoder registers.
58 * @dec_offset: Offset from VPU base to decoder registers.
92 int (*init)(struct hantro_dev *vpu);
93 int (*runtime_resume)(struct hantro_dev *vpu);
136 * struct hantro_func - Hantro VPU functionality
177 * @pdev: Pointer to VPU platform device.
182 * @reg_bases: Mapped addresses of VPU registers.
183 * @enc_base: Mapped address of VPU encoder register for convenience.
184 * @dec_base: Mapped address of VPU decoder register for convenience.
185 * @ctrl_base: Mapped address of VPU control block.
216 * @dev: VPU driver data to which the context belongs.
371 static inline void vepu_write_relaxed(struct hantro_dev *vpu, in vepu_write_relaxed() argument
375 writel_relaxed(val, vpu->enc_base + reg); in vepu_write_relaxed()
378 static inline void vepu_write(struct hantro_dev *vpu, u32 val, u32 reg) in vepu_write() argument
381 writel(val, vpu->enc_base + reg); in vepu_write()
384 static inline u32 vepu_read(struct hantro_dev *vpu, u32 reg) in vepu_read() argument
386 u32 val = readl(vpu->enc_base + reg); in vepu_read()
392 static inline void vdpu_write_relaxed(struct hantro_dev *vpu, in vdpu_write_relaxed() argument
396 writel_relaxed(val, vpu->dec_base + reg); in vdpu_write_relaxed()
399 static inline void vdpu_write(struct hantro_dev *vpu, u32 val, u32 reg) in vdpu_write() argument
402 writel(val, vpu->dec_base + reg); in vdpu_write()
405 static inline void hantro_write_addr(struct hantro_dev *vpu, in hantro_write_addr() argument
409 vdpu_write(vpu, addr & 0xffffffff, offset); in hantro_write_addr()
412 static inline u32 vdpu_read(struct hantro_dev *vpu, u32 reg) in vdpu_read() argument
414 u32 val = readl(vpu->dec_base + reg); in vdpu_read()
420 static inline u32 vdpu_read_mask(struct hantro_dev *vpu, in vdpu_read_mask() argument
426 v = vdpu_read(vpu, reg->base); in vdpu_read_mask()
432 static inline void hantro_reg_write(struct hantro_dev *vpu, in hantro_reg_write() argument
436 vdpu_write_relaxed(vpu, vdpu_read_mask(vpu, reg, val), reg->base); in hantro_reg_write()
439 static inline void hantro_reg_write_s(struct hantro_dev *vpu, in hantro_reg_write_s() argument
443 vdpu_write(vpu, vdpu_read_mask(vpu, reg, val), reg->base); in hantro_reg_write_s()