Lines Matching refs:dreg
155 uint8_t z_mcr20a_read_reg(const struct device *dev, bool dreg, uint8_t addr) in z_mcr20a_read_reg() argument
159 dreg ? (MCR20A_REG_READ | addr) : in z_mcr20a_read_reg()
161 dreg ? 0 : (addr | MCR20A_REG_READ), in z_mcr20a_read_reg()
164 uint8_t len = dreg ? 2 : 3; in z_mcr20a_read_reg()
188 bool z_mcr20a_write_reg(const struct device *dev, bool dreg, uint8_t addr, in z_mcr20a_write_reg() argument
193 dreg ? (MCR20A_REG_WRITE | addr) : in z_mcr20a_write_reg()
195 dreg ? value : (addr | MCR20A_REG_WRITE), in z_mcr20a_write_reg()
196 dreg ? 0 : value in z_mcr20a_write_reg()
200 .len = dreg ? 2 : 3 in z_mcr20a_write_reg()
211 bool z_mcr20a_write_burst(const struct device *dev, bool dreg, uint16_t addr, in z_mcr20a_write_burst() argument
216 dreg ? MCR20A_REG_WRITE | addr : in z_mcr20a_write_burst()
218 dreg ? 0 : addr | MCR20A_REG_WRITE in z_mcr20a_write_burst()
223 .len = dreg ? 1 : 2 in z_mcr20a_write_burst()
239 bool z_mcr20a_read_burst(const struct device *dev, bool dreg, uint16_t addr, in z_mcr20a_read_burst() argument
244 dreg ? MCR20A_REG_READ | addr : in z_mcr20a_read_burst()
246 dreg ? 0 : addr | MCR20A_REG_READ in z_mcr20a_read_burst()
251 .len = dreg ? 1 : 2 in z_mcr20a_read_burst()