Lines Matching refs:work_done
870 int work_done = 0; in m_can_handle_state_errors() local
874 work_done += m_can_handle_state_change(dev, in m_can_handle_state_errors()
880 work_done += m_can_handle_state_change(dev, in m_can_handle_state_errors()
886 work_done += m_can_handle_state_change(dev, in m_can_handle_state_errors()
890 return work_done; in m_can_handle_state_errors()
958 int work_done = 0; in m_can_handle_bus_errors() local
961 work_done += m_can_handle_lost_msg(dev); in m_can_handle_bus_errors()
970 work_done += m_can_handle_lec_err(dev, lec); in m_can_handle_bus_errors()
975 work_done += m_can_handle_lec_err(dev, dlec); in m_can_handle_bus_errors()
982 work_done += m_can_handle_protocol_error(dev, irqstatus); in m_can_handle_bus_errors()
987 return work_done; in m_can_handle_bus_errors()
994 int work_done = 0; in m_can_rx_handler() local
1021 work_done += m_can_handle_state_errors(dev, in m_can_rx_handler()
1025 work_done += m_can_handle_bus_errors(dev, irqstatus, in m_can_rx_handler()
1029 rx_work_or_err = m_can_do_rx_poll(dev, (quota - work_done)); in m_can_rx_handler()
1033 work_done += rx_work_or_err; in m_can_rx_handler()
1036 return work_done; in m_can_rx_handler()
1043 int work_done; in m_can_poll() local
1048 work_done = m_can_rx_handler(dev, quota, irqstatus); in m_can_poll()
1053 if (work_done >= 0 && work_done < quota) { in m_can_poll()
1054 napi_complete_done(napi, work_done); in m_can_poll()
1058 return work_done; in m_can_poll()