Lines Matching refs:stat

526 	u16 stat, systest;  in omap_i2c_wait_for_bb_valid()  local
533 stat = omap_i2c_read_reg(omap, OMAP_I2C_STAT_REG); in omap_i2c_wait_for_bb_valid()
539 if (stat & (OMAP_I2C_STAT_BB | OMAP_I2C_STAT_BF)) in omap_i2c_wait_for_bb_valid()
800 omap_i2c_ack_stat(struct omap_i2c_dev *omap, u16 stat) in omap_i2c_ack_stat() argument
802 omap_i2c_write_reg(omap, OMAP_I2C_STAT_REG, stat); in omap_i2c_ack_stat()
805 static inline void i2c_omap_errata_i207(struct omap_i2c_dev *omap, u16 stat) in i2c_omap_errata_i207() argument
814 if (stat & OMAP_I2C_STAT_RDR) { in i2c_omap_errata_i207()
902 u16 stat; in errata_omap3_i462() local
905 stat = omap_i2c_read_reg(omap, OMAP_I2C_STAT_REG); in errata_omap3_i462()
906 if (stat & OMAP_I2C_STAT_XUDF) in errata_omap3_i462()
909 if (stat & (OMAP_I2C_STAT_NACK | OMAP_I2C_STAT_AL)) { in errata_omap3_i462()
912 if (stat & OMAP_I2C_STAT_NACK) { in errata_omap3_i462()
917 if (stat & OMAP_I2C_STAT_AL) { in errata_omap3_i462()
996 u16 stat; in omap_i2c_isr() local
1000 stat = omap_i2c_read_reg(omap, OMAP_I2C_STAT_REG); in omap_i2c_isr()
1002 if (stat & mask) in omap_i2c_isr()
1016 u16 stat; in omap_i2c_isr_thread() local
1022 stat = omap_i2c_read_reg(omap, OMAP_I2C_STAT_REG); in omap_i2c_isr_thread()
1023 stat &= bits; in omap_i2c_isr_thread()
1027 stat &= ~(OMAP_I2C_STAT_XDR | OMAP_I2C_STAT_XRDY); in omap_i2c_isr_thread()
1029 stat &= ~(OMAP_I2C_STAT_RDR | OMAP_I2C_STAT_RRDY); in omap_i2c_isr_thread()
1031 if (!stat) { in omap_i2c_isr_thread()
1036 dev_dbg(omap->dev, "IRQ (ISR = 0x%04x)\n", stat); in omap_i2c_isr_thread()
1042 if (stat & OMAP_I2C_STAT_NACK) { in omap_i2c_isr_thread()
1047 if (stat & OMAP_I2C_STAT_AL) { in omap_i2c_isr_thread()
1056 if (stat & OMAP_I2C_STAT_ARDY) in omap_i2c_isr_thread()
1059 if (stat & (OMAP_I2C_STAT_ARDY | OMAP_I2C_STAT_NACK | in omap_i2c_isr_thread()
1069 if (stat & OMAP_I2C_STAT_RDR) { in omap_i2c_isr_thread()
1076 i2c_omap_errata_i207(omap, stat); in omap_i2c_isr_thread()
1086 if (stat & OMAP_I2C_STAT_RRDY) { in omap_i2c_isr_thread()
1097 if (stat & OMAP_I2C_STAT_XDR) { in omap_i2c_isr_thread()
1112 if (stat & OMAP_I2C_STAT_XRDY) { in omap_i2c_isr_thread()
1127 if (stat & OMAP_I2C_STAT_ROVR) { in omap_i2c_isr_thread()
1134 if (stat & OMAP_I2C_STAT_XUDF) { in omap_i2c_isr_thread()
1140 } while (stat); in omap_i2c_isr_thread()