Lines Matching refs:i2c_write_reg
127 i2c_write_reg(struct i2c_softc *sc, bus_size_t off, uint8_t val) in i2c_write_reg() function
147 i2c_write_reg(sc, off, status); in i2c_flag_set()
179 i2c_write_reg(sc, I2C_STATUS_REG, 0x0); in i2c_do_wait()
180 i2c_write_reg(sc, I2C_CONTROL_REG, I2CCR_MEN | I2CCR_TXAK); in i2c_do_wait()
206 i2c_write_reg(sc, I2C_CONTROL_REG, I2C_ENABLE); in i2c_probe()
257 i2c_write_reg(sc, I2C_DATA_REG, slave); in i2c_repeated_start()
290 i2c_write_reg(sc, I2C_CONTROL_REG, I2CCR_MEN | I2CCR_MSTA | I2CCR_MTX); in i2c_start()
292 i2c_write_reg(sc, I2C_DATA_REG, slave); in i2c_start()
311 i2c_write_reg(sc, I2C_CONTROL_REG, I2CCR_MEN | I2CCR_TXAK); in i2c_stop()
339 i2c_write_reg(sc, I2C_CONTROL_REG, 0x0); in i2c_reset()
340 i2c_write_reg(sc, I2C_STATUS_REG, 0x0); in i2c_reset()
342 i2c_write_reg(sc, I2C_FDR_REG, baud_rate); in i2c_reset()
343 i2c_write_reg(sc, I2C_DFSRR_REG, I2C_DFSSR_DIV); in i2c_reset()
344 i2c_write_reg(sc, I2C_CONTROL_REG, I2C_ENABLE); in i2c_reset()
363 i2c_write_reg(sc, I2C_CONTROL_REG, I2CCR_MEN | in i2c_read()
367 i2c_write_reg(sc, I2C_CONTROL_REG, I2CCR_MEN | in i2c_read()
383 i2c_write_reg(sc, I2C_CONTROL_REG, I2CCR_MEN | in i2c_read()
388 i2c_write_reg(sc, I2C_CONTROL_REG, I2CCR_MEN | in i2c_read()
412 i2c_write_reg(sc, I2C_DATA_REG, *buf++); in i2c_write()