Lines Matching refs:ICR
96 ICR &= ~ICR_IUE; /* disable unit */ in i2c_reset()
97 ICR |= ICR_UR; /* reset the unit */ in i2c_reset()
99 ICR &= ~ICR_IUE; /* disable unit */ in i2c_reset()
106 ICR = I2C_ICR_INIT; /* set control register values */ in i2c_reset()
108 ICR |= ICR_IUE; /* enable unit */ in i2c_reset()
162 ICR &= ~ICR_START; in i2c_transfer()
163 ICR &= ~ICR_STOP; in i2c_transfer()
165 if (msg->condition == I2C_COND_START) ICR |= ICR_START; in i2c_transfer()
166 if (msg->condition == I2C_COND_STOP) ICR |= ICR_STOP; in i2c_transfer()
167 if (msg->acknack == I2C_ACKNAK_SENDNAK) ICR |= ICR_ACKNAK; in i2c_transfer()
168 if (msg->acknack == I2C_ACKNAK_SENDACK) ICR &= ~ICR_ACKNAK; in i2c_transfer()
169 ICR &= ~ICR_ALDIE; in i2c_transfer()
170 ICR |= ICR_TB; in i2c_transfer()
192 ICR &= ~ICR_START; in i2c_transfer()
193 ICR &= ~ICR_STOP; in i2c_transfer()
194 if (msg->condition == I2C_COND_START) ICR |= ICR_START; in i2c_transfer()
195 if (msg->condition == I2C_COND_STOP) ICR |= ICR_STOP; in i2c_transfer()
196 if (msg->acknack == I2C_ACKNAK_SENDNAK) ICR |= ICR_ACKNAK; in i2c_transfer()
197 if (msg->acknack == I2C_ACKNAK_SENDACK) ICR &= ~ICR_ACKNAK; in i2c_transfer()
198 ICR &= ~ICR_ALDIE; in i2c_transfer()
199 ICR |= ICR_TB; in i2c_transfer()