Lines Matching defs:vpu
93 int (*init)(struct hantro_dev *vpu);
94 int (*runtime_resume)(struct hantro_dev *vpu);
379 static __always_inline void vepu_write_relaxed(struct hantro_dev *vpu,
383 writel_relaxed(val, vpu->enc_base + reg);
386 static __always_inline void vepu_write(struct hantro_dev *vpu, u32 val, u32 reg)
389 writel(val, vpu->enc_base + reg);
392 static __always_inline u32 vepu_read(struct hantro_dev *vpu, u32 reg)
394 u32 val = readl(vpu->enc_base + reg);
400 static __always_inline void vdpu_write_relaxed(struct hantro_dev *vpu,
404 writel_relaxed(val, vpu->dec_base + reg);
407 static __always_inline void vdpu_write(struct hantro_dev *vpu, u32 val, u32 reg)
410 writel(val, vpu->dec_base + reg);
413 static __always_inline void hantro_write_addr(struct hantro_dev *vpu,
417 vdpu_write(vpu, addr & 0xffffffff, offset);
420 static __always_inline u32 vdpu_read(struct hantro_dev *vpu, u32 reg)
422 u32 val = readl(vpu->dec_base + reg);
428 static __always_inline u32 vdpu_read_mask(struct hantro_dev *vpu,
434 v = vdpu_read(vpu, reg->base);
440 static __always_inline void hantro_reg_write(struct hantro_dev *vpu,
444 vdpu_write(vpu, vdpu_read_mask(vpu, reg, val), reg->base);
447 static __always_inline void hantro_reg_write_relaxed(struct hantro_dev *vpu,
451 vdpu_write_relaxed(vpu, vdpu_read_mask(vpu, reg, val), reg->base);