Lines Matching refs:irqstatus
287 u32 irqstatus; member
668 static void m_can_handle_other_err(struct net_device *dev, u32 irqstatus) in m_can_handle_other_err() argument
670 if (irqstatus & IR_WDI) in m_can_handle_other_err()
672 if (irqstatus & IR_ELO) in m_can_handle_other_err()
674 if (irqstatus & IR_BEU) in m_can_handle_other_err()
676 if (irqstatus & IR_BEC) in m_can_handle_other_err()
678 if (irqstatus & IR_TOO) in m_can_handle_other_err()
680 if (irqstatus & IR_MRAF) in m_can_handle_other_err()
691 static int m_can_handle_bus_errors(struct net_device *dev, u32 irqstatus, in m_can_handle_bus_errors() argument
697 if (irqstatus & IR_RF0L) in m_can_handle_bus_errors()
706 m_can_handle_other_err(dev, irqstatus); in m_can_handle_bus_errors()
716 u32 irqstatus, psr; in m_can_poll() local
718 irqstatus = priv->irqstatus | m_can_read(priv, M_CAN_IR); in m_can_poll()
719 if (!irqstatus) in m_can_poll()
723 if (irqstatus & IR_ERR_STATE) in m_can_poll()
726 if (irqstatus & IR_ERR_BUS) in m_can_poll()
727 work_done += m_can_handle_bus_errors(dev, irqstatus, psr); in m_can_poll()
729 if (irqstatus & IR_RF0N) in m_can_poll()
762 priv->irqstatus = ir; in m_can_isr()