Lines Matching full:off
173 static uint32_t aux_reg_read(const struct device *dev, uint32_t off) in aux_reg_read() argument
175 return sys_in32(BASE_ADDR(dev) + off/4); in aux_reg_read()
177 static void aux_reg_write(uint32_t data, const struct device *dev, uint32_t off) in aux_reg_write() argument
179 sys_out32(data, BASE_ADDR(dev) + off/4); in aux_reg_write()
184 static uint32_t reg_read(const struct device *dev, uint32_t off) in reg_read() argument
186 return sys_read32(BASE_ADDR(dev) + off); in reg_read()
188 static void reg_write(uint32_t data, const struct device *dev, uint32_t off) in reg_write() argument
190 sys_write32(data, BASE_ADDR(dev) + off); in reg_write()
198 #define DEFINE_MM_REG_RD(reg, off) \ argument
200 { return reg_read(dev, off); }
201 #define DEFINE_MM_REG_WR(reg, off) \ argument
203 { reg_write(data, dev, off); }
209 #define DEFINE_MM_REG_RD(reg, off) \ argument
211 { return aux_reg_read(dev, off); }
212 #define DEFINE_MM_REG_WR(reg, off) \ argument
214 { aux_reg_write(data, dev, off); }
219 uint32_t (*read)(const struct device *dev, uint32_t off); \
220 void (*write)(uint32_t data, const struct device *dev, uint32_t off)
227 #define DEFINE_MM_REG_RD(reg, off) \ argument
231 return dev_config->read(dev, off); \
233 #define DEFINE_MM_REG_WR(reg, off) \ argument
237 dev_config->write(data, dev, off); \