Lines Matching refs:sr
67 uint32_t sr = 0; in atmel_i2c_send_one_byte() local
72 sr = io_read32(i2c->base + TWIHS_SR); in atmel_i2c_send_one_byte()
73 if (sr & TWIHS_SR_NACK) { in atmel_i2c_send_one_byte()
77 if (sr & TWIHS_SR_TXRDY) in atmel_i2c_send_one_byte()
86 uint32_t sr = 0; in atmel_i2c_wait_txcomp() local
89 sr = io_read32(i2c->base + TWIHS_SR); in atmel_i2c_wait_txcomp()
90 if (sr & TWIHS_SR_TXCOMP) in atmel_i2c_wait_txcomp()
143 uint32_t sr = 0; in atmel_i2c_recv_one_byte() local
146 sr = io_read32(i2c->base + TWIHS_SR); in atmel_i2c_recv_one_byte()
147 if (sr & TWIHS_SR_NACK) { in atmel_i2c_recv_one_byte()
151 if (sr & TWIHS_SR_RXRDY) in atmel_i2c_recv_one_byte()