Lines Matching refs:irqstatus
811 static void m_can_handle_other_err(struct net_device *dev, u32 irqstatus) in m_can_handle_other_err() argument
813 if (irqstatus & IR_WDI) in m_can_handle_other_err()
815 if (irqstatus & IR_BEU) in m_can_handle_other_err()
817 if (irqstatus & IR_BEC) in m_can_handle_other_err()
819 if (irqstatus & IR_TOO) in m_can_handle_other_err()
821 if (irqstatus & IR_MRAF) in m_can_handle_other_err()
832 static inline bool m_can_is_protocol_err(u32 irqstatus) in m_can_is_protocol_err() argument
834 return irqstatus & IR_ERR_LEC_31X; in m_can_is_protocol_err()
837 static int m_can_handle_protocol_error(struct net_device *dev, u32 irqstatus) in m_can_handle_protocol_error() argument
852 if (cdev->version >= 31 && (irqstatus & IR_PEA)) { in m_can_handle_protocol_error()
874 static int m_can_handle_bus_errors(struct net_device *dev, u32 irqstatus, in m_can_handle_bus_errors() argument
880 if (irqstatus & IR_RF0L) in m_can_handle_bus_errors()
890 m_can_is_protocol_err(irqstatus)) in m_can_handle_bus_errors()
891 work_done += m_can_handle_protocol_error(dev, irqstatus); in m_can_handle_bus_errors()
894 m_can_handle_other_err(dev, irqstatus); in m_can_handle_bus_errors()
904 u32 irqstatus, psr; in m_can_rx_handler() local
906 irqstatus = cdev->irqstatus | m_can_read(cdev, M_CAN_IR); in m_can_rx_handler()
907 if (!irqstatus) in m_can_rx_handler()
920 if (cdev->version <= 31 && irqstatus & IR_MRAF && in m_can_rx_handler()
927 irqstatus &= ~IR_MRAF; in m_can_rx_handler()
933 if (irqstatus & IR_ERR_STATE) in m_can_rx_handler()
936 if (irqstatus & IR_ERR_BUS_30X) in m_can_rx_handler()
937 work_done += m_can_handle_bus_errors(dev, irqstatus, psr); in m_can_rx_handler()
939 if (irqstatus & IR_RF0N) { in m_can_rx_handler()
1078 cdev->irqstatus = ir; in m_can_isr()