Lines Matching refs:stat
751 unsigned int stat, dummy;
759 * stat = readl(IC_INTR_STAT);
761 * stat = readl(IC_RAW_INTR_STAT) & readl(IC_INTR_MASK);
765 regmap_read(dev->map, DW_IC_INTR_STAT, &stat);
774 if (stat & DW_IC_INTR_RX_UNDER)
776 if (stat & DW_IC_INTR_RX_OVER)
778 if (stat & DW_IC_INTR_TX_OVER)
780 if (stat & DW_IC_INTR_RD_REQ)
782 if (stat & DW_IC_INTR_TX_ABRT) {
790 if (stat & DW_IC_INTR_RX_DONE)
792 if (stat & DW_IC_INTR_ACTIVITY)
794 if ((stat & DW_IC_INTR_STOP_DET) &&
795 ((dev->rx_outstanding == 0) || (stat & DW_IC_INTR_RX_FULL)))
797 if (stat & DW_IC_INTR_START_DET)
799 if (stat & DW_IC_INTR_GEN_CALL)
802 return stat;
812 unsigned int stat, enabled;
815 regmap_read(dev->map, DW_IC_RAW_INTR_STAT, &stat);
816 if (!enabled || !(stat & ~DW_IC_INTR_ACTIVITY))
818 if (pm_runtime_suspended(dev->dev) || stat == GENMASK(31, 0))
820 dev_dbg(dev->dev, "enabled=%#x stat=%#x\n", enabled, stat);
822 stat = i2c_dw_read_clear_intrbits(dev);
836 if (stat & DW_IC_INTR_TX_ABRT) {
849 if (stat & DW_IC_INTR_RX_FULL)
852 if (stat & DW_IC_INTR_TX_EMPTY)
862 if (((stat & (DW_IC_INTR_TX_ABRT | DW_IC_INTR_STOP_DET)) || dev->msg_err) &&
867 regmap_read(dev->map, DW_IC_INTR_MASK, &stat);
869 regmap_write(dev->map, DW_IC_INTR_MASK, stat);