Lines Matching refs:ov
265 struct acc_ov *ov; member
310 static inline u32 acc_ov_read32(struct acc_ov *ov, unsigned short offs) in acc_ov_read32() argument
312 return ioread32be(ov->addr + offs); in acc_ov_read32()
315 static inline void acc_ov_write32(struct acc_ov *ov, in acc_ov_write32() argument
318 iowrite32be(v, ov->addr + offs); in acc_ov_write32()
321 static inline void acc_ov_set_bits(struct acc_ov *ov, in acc_ov_set_bits() argument
324 u32 v = acc_ov_read32(ov, offs); in acc_ov_set_bits()
327 acc_ov_write32(ov, offs, v); in acc_ov_set_bits()
330 static inline void acc_ov_clear_bits(struct acc_ov *ov, in acc_ov_clear_bits() argument
333 u32 v = acc_ov_read32(ov, offs); in acc_ov_clear_bits()
336 acc_ov_write32(ov, offs, v); in acc_ov_clear_bits()
339 static inline void acc_reset_fpga(struct acc_ov *ov) in acc_reset_fpga() argument
341 acc_ov_write32(ov, ACC_OV_OF_MODE, ACC_OV_REG_MODE_MASK_FPGA_RESET); in acc_reset_fpga()
344 acc_ov_set_bits(ov, ACC_OV_OF_MODE, ACC_OV_REG_MODE_MASK_I2C_ENABLE); in acc_reset_fpga()
348 void acc_init_ov(struct acc_ov *ov, struct device *dev);
349 void acc_init_bm_ptr(struct acc_ov *ov, struct acc_core *cores,
358 irqreturn_t acc_card_interrupt(struct acc_ov *ov, struct acc_core *cores);