Lines Matching refs:stat
527 u16 stat, systest; in omap_i2c_wait_for_bb_valid() local
534 stat = omap_i2c_read_reg(dev, OMAP_I2C_STAT_REG); in omap_i2c_wait_for_bb_valid()
540 if (stat & (OMAP_I2C_STAT_BB | OMAP_I2C_STAT_BF)) in omap_i2c_wait_for_bb_valid()
801 omap_i2c_ack_stat(struct omap_i2c_dev *dev, u16 stat) in omap_i2c_ack_stat() argument
803 omap_i2c_write_reg(dev, OMAP_I2C_STAT_REG, stat); in omap_i2c_ack_stat()
806 static inline void i2c_omap_errata_i207(struct omap_i2c_dev *dev, u16 stat) in i2c_omap_errata_i207() argument
815 if (stat & OMAP_I2C_STAT_RDR) { in i2c_omap_errata_i207()
903 u16 stat; in errata_omap3_i462() local
906 stat = omap_i2c_read_reg(dev, OMAP_I2C_STAT_REG); in errata_omap3_i462()
907 if (stat & OMAP_I2C_STAT_XUDF) in errata_omap3_i462()
910 if (stat & (OMAP_I2C_STAT_NACK | OMAP_I2C_STAT_AL)) { in errata_omap3_i462()
913 if (stat & OMAP_I2C_STAT_NACK) { in errata_omap3_i462()
918 if (stat & OMAP_I2C_STAT_AL) { in errata_omap3_i462()
997 u16 stat; in omap_i2c_isr() local
1001 stat = omap_i2c_read_reg(dev, OMAP_I2C_STAT_REG); in omap_i2c_isr()
1003 if (stat & mask) in omap_i2c_isr()
1017 u16 stat; in omap_i2c_isr_thread() local
1023 stat = omap_i2c_read_reg(dev, OMAP_I2C_STAT_REG); in omap_i2c_isr_thread()
1024 stat &= bits; in omap_i2c_isr_thread()
1028 stat &= ~(OMAP_I2C_STAT_XDR | OMAP_I2C_STAT_XRDY); in omap_i2c_isr_thread()
1030 stat &= ~(OMAP_I2C_STAT_RDR | OMAP_I2C_STAT_RRDY); in omap_i2c_isr_thread()
1032 if (!stat) { in omap_i2c_isr_thread()
1037 dev_dbg(dev->dev, "IRQ (ISR = 0x%04x)\n", stat); in omap_i2c_isr_thread()
1043 if (stat & OMAP_I2C_STAT_NACK) { in omap_i2c_isr_thread()
1048 if (stat & OMAP_I2C_STAT_AL) { in omap_i2c_isr_thread()
1057 if (stat & OMAP_I2C_STAT_ARDY) in omap_i2c_isr_thread()
1060 if (stat & (OMAP_I2C_STAT_ARDY | OMAP_I2C_STAT_NACK | in omap_i2c_isr_thread()
1070 if (stat & OMAP_I2C_STAT_RDR) { in omap_i2c_isr_thread()
1077 i2c_omap_errata_i207(dev, stat); in omap_i2c_isr_thread()
1087 if (stat & OMAP_I2C_STAT_RRDY) { in omap_i2c_isr_thread()
1098 if (stat & OMAP_I2C_STAT_XDR) { in omap_i2c_isr_thread()
1113 if (stat & OMAP_I2C_STAT_XRDY) { in omap_i2c_isr_thread()
1128 if (stat & OMAP_I2C_STAT_ROVR) { in omap_i2c_isr_thread()
1135 if (stat & OMAP_I2C_STAT_XUDF) { in omap_i2c_isr_thread()
1141 } while (stat); in omap_i2c_isr_thread()