Lines Matching refs:irqstatus
287 u32 irqstatus; member
671 static void m_can_handle_other_err(struct net_device *dev, u32 irqstatus) in m_can_handle_other_err() argument
673 if (irqstatus & IR_WDI) in m_can_handle_other_err()
675 if (irqstatus & IR_ELO) in m_can_handle_other_err()
677 if (irqstatus & IR_BEU) in m_can_handle_other_err()
679 if (irqstatus & IR_BEC) in m_can_handle_other_err()
681 if (irqstatus & IR_TOO) in m_can_handle_other_err()
683 if (irqstatus & IR_MRAF) in m_can_handle_other_err()
694 static int m_can_handle_bus_errors(struct net_device *dev, u32 irqstatus, in m_can_handle_bus_errors() argument
700 if (irqstatus & IR_RF0L) in m_can_handle_bus_errors()
709 m_can_handle_other_err(dev, irqstatus); in m_can_handle_bus_errors()
719 u32 irqstatus, psr; in m_can_poll() local
721 irqstatus = priv->irqstatus | m_can_read(priv, M_CAN_IR); in m_can_poll()
722 if (!irqstatus) in m_can_poll()
726 if (irqstatus & IR_ERR_STATE) in m_can_poll()
729 if (irqstatus & IR_ERR_BUS) in m_can_poll()
730 work_done += m_can_handle_bus_errors(dev, irqstatus, psr); in m_can_poll()
732 if (irqstatus & IR_RF0N) in m_can_poll()
765 priv->irqstatus = ir; in m_can_isr()