Lines Matching refs:reg
175 uint8_t reg = 0; in i2c_bus_test_bus_busy() local
178 reg = io_read8((vaddr_t)®s->ibsr); in i2c_bus_test_bus_busy()
180 if (reg & I2C_IBSR_IBAL) { in i2c_bus_test_bus_busy()
181 io_write8((vaddr_t)®s->ibsr, reg); in i2c_bus_test_bus_busy()
185 if (test_busy && (reg & I2C_IBSR_IBB)) in i2c_bus_test_bus_busy()
188 if (!test_busy && !(reg & I2C_IBSR_IBB)) in i2c_bus_test_bus_busy()
208 uint8_t reg = 0; in i2c_transfer_complete() local
211 reg = io_read8((vaddr_t)®s->ibsr); in i2c_transfer_complete()
213 if (reg & I2C_IBSR_IBIF) { in i2c_transfer_complete()
215 io_write8((vaddr_t)®s->ibsr, reg); in i2c_transfer_complete()
224 if (test_rx_ack && (reg & I2C_IBSR_RXAK)) in i2c_transfer_complete()
227 if (reg & I2C_IBSR_TCF) in i2c_transfer_complete()
328 uint8_t reg = 0; in i2c_stop() local
330 reg = io_read8((vaddr_t)®s->ibsr); in i2c_stop()
331 if (reg & I2C_IBSR_IBB) { in i2c_stop()