Lines Matching refs:reg_esr
816 static void flexcan_irq_bus_err(struct net_device *dev, u32 reg_esr) in flexcan_irq_bus_err() argument
834 if (reg_esr & FLEXCAN_ESR_BIT1_ERR) { in flexcan_irq_bus_err()
839 if (reg_esr & FLEXCAN_ESR_BIT0_ERR) { in flexcan_irq_bus_err()
844 if (reg_esr & FLEXCAN_ESR_ACK_ERR) { in flexcan_irq_bus_err()
850 if (reg_esr & FLEXCAN_ESR_CRC_ERR) { in flexcan_irq_bus_err()
856 if (reg_esr & FLEXCAN_ESR_FRM_ERR) { in flexcan_irq_bus_err()
861 if (reg_esr & FLEXCAN_ESR_STF_ERR) { in flexcan_irq_bus_err()
878 static void flexcan_irq_state(struct net_device *dev, u32 reg_esr) in flexcan_irq_state() argument
890 flt = reg_esr & FLEXCAN_ESR_FLT_CONF_MASK; in flexcan_irq_state()
892 tx_state = unlikely(reg_esr & FLEXCAN_ESR_TX_WRN) ? in flexcan_irq_state()
894 rx_state = unlikely(reg_esr & FLEXCAN_ESR_RX_WRN) ? in flexcan_irq_state()
1066 u32 reg_esr; in flexcan_irq() local
1119 reg_esr = priv->read(®s->esr); in flexcan_irq()
1122 if (reg_esr & (FLEXCAN_ESR_ALL_INT | FLEXCAN_ESR_WAK_INT)) { in flexcan_irq()
1124 priv->write(reg_esr & (FLEXCAN_ESR_ALL_INT | FLEXCAN_ESR_WAK_INT), ®s->esr); in flexcan_irq()
1128 if ((reg_esr & FLEXCAN_ESR_ERR_STATE) || in flexcan_irq()
1131 flexcan_irq_state(dev, reg_esr); in flexcan_irq()
1134 if ((reg_esr & FLEXCAN_ESR_ERR_BUS) && in flexcan_irq()
1136 flexcan_irq_bus_err(dev, reg_esr); in flexcan_irq()