Home
last modified time | relevance | path

Searched refs:CAN_STATE_BUS_OFF (Results 1 – 25 of 43) sorted by relevance

12

/linux/drivers/net/can/dev/
H A Ddev.c34 case CAN_STATE_BUS_OFF: in can_update_state_error_stats()
79 case CAN_STATE_BUS_OFF: in can_get_state_str()
102 return CAN_STATE_BUS_OFF; in can_state_err_to_state()
136 if (unlikely(new_state == CAN_STATE_BUS_OFF)) { in can_change_state()
202 if (priv->state != CAN_STATE_BUS_OFF) in can_restart_now()
/linux/drivers/net/can/usb/kvaser_usb/
H A Dkvaser_usb_hydra.c912 *new_state = CAN_STATE_BUS_OFF; in kvaser_usb_hydra_bus_status_to_can_state()
950 if (old_state == CAN_STATE_STOPPED && new_state == CAN_STATE_BUS_OFF) in kvaser_usb_hydra_update_state()
964 if (new_state == CAN_STATE_BUS_OFF && old_state < CAN_STATE_BUS_OFF) { in kvaser_usb_hydra_update_state()
978 old_state >= CAN_STATE_BUS_OFF && in kvaser_usb_hydra_update_state()
979 new_state < CAN_STATE_BUS_OFF) in kvaser_usb_hydra_update_state()
982 if (new_state != CAN_STATE_BUS_OFF) { in kvaser_usb_hydra_update_state()
1113 old_state >= CAN_STATE_BUS_OFF && in kvaser_usb_hydra_error_frame()
1114 new_state < CAN_STATE_BUS_OFF) in kvaser_usb_hydra_error_frame()
1118 if (new_state == CAN_STATE_BUS_OFF) { in kvaser_usb_hydra_error_frame()
1137 if (new_state != CAN_STATE_BUS_OFF) { in kvaser_usb_hydra_error_frame()
H A Dkvaser_usb_leaf.c967 if (priv->can.restart_ms && priv->can.state == CAN_STATE_BUS_OFF) { in kvaser_usb_leaf_tx_acknowledge()
1057 new_state = CAN_STATE_BUS_OFF; in kvaser_usb_leaf_rx_error_update_can_state()
1061 cur_state >= CAN_STATE_BUS_OFF) { in kvaser_usb_leaf_rx_error_update_can_state()
1079 if (new_state == CAN_STATE_BUS_OFF) { in kvaser_usb_leaf_rx_error_update_can_state()
1095 cur_state == CAN_STATE_BUS_OFF && in kvaser_usb_leaf_rx_error_update_can_state()
1096 new_state < CAN_STATE_BUS_OFF) in kvaser_usb_leaf_rx_error_update_can_state()
1165 if (new_state < CAN_STATE_BUS_OFF && in kvaser_usb_leaf_rx_error()
1188 old_state == CAN_STATE_BUS_OFF && in kvaser_usb_leaf_rx_error()
1189 new_state < CAN_STATE_BUS_OFF) { in kvaser_usb_leaf_rx_error()
1222 if (new_state != CAN_STATE_BUS_OFF) { in kvaser_usb_leaf_rx_error()
/linux/drivers/net/can/usb/etas_es58x/
H A Des58x_core.c261 return es58x_priv(netdev)->can.state < CAN_STATE_BUS_OFF; in es58x_is_can_state_active()
768 if (can->state == CAN_STATE_BUS_OFF) { in es58x_rx_err_msg()
791 if (can->state < CAN_STATE_BUS_OFF) in es58x_rx_err_msg()
809 if (can->state < CAN_STATE_BUS_OFF) in es58x_rx_err_msg()
821 if (can->state != CAN_STATE_BUS_OFF) { in es58x_rx_err_msg()
822 can->state = CAN_STATE_BUS_OFF; in es58x_rx_err_msg()
2005 case CAN_STATE_BUS_OFF: in es58x_set_mode()
2026 case CAN_STATE_BUS_OFF: in es58x_set_mode()
/linux/drivers/net/can/mscan/
H A Dmscan.c41 CAN_STATE_BUS_OFF enumerator
172 if (priv->can.state <= CAN_STATE_BUS_OFF) in mscan_restart()
353 if (priv->can.state == CAN_STATE_BUS_OFF) { in mscan_get_err_frame()
414 if (priv->can.state < CAN_STATE_BUS_OFF) in mscan_rx_poll()
/linux/include/uapi/linux/can/
H A Dnetlink.h73 CAN_STATE_BUS_OFF, /* RX/TX error count >= 256 */ enumerator
/linux/drivers/net/can/ifi_canfd/
H A Difi_canfd.c474 case CAN_STATE_BUS_OFF: in ifi_canfd_handle_state_change()
476 priv->can.state = CAN_STATE_BUS_OFF; in ifi_canfd_handle_state_change()
511 case CAN_STATE_BUS_OFF: in ifi_canfd_handle_state_change()
552 (priv->can.state != CAN_STATE_BUS_OFF)) { in ifi_canfd_handle_state_errors()
555 CAN_STATE_BUS_OFF); in ifi_canfd_handle_state_errors()
/linux/drivers/net/can/sja1000/
H A Dsja1000.c449 state = CAN_STATE_BUS_OFF; in sja1000_err()
455 if (state != CAN_STATE_BUS_OFF) { in sja1000_err()
515 if(state == CAN_STATE_BUS_OFF) in sja1000_err()
/linux/drivers/net/can/
H A Dsun4i_can.c567 state = CAN_STATE_BUS_OFF; in sun4i_can_err()
573 if (skb && state != CAN_STATE_BUS_OFF) { in sun4i_can_err()
636 if (state == CAN_STATE_BUS_OFF) in sun4i_can_err()
H A Dat91_can.c720 rx_state = CAN_STATE_BUS_OFF; in at91_irq_err_line()
734 if (new_state == CAN_STATE_BUS_OFF) { in at91_irq_err_line()
735 at91_chip_stop(dev, CAN_STATE_BUS_OFF); in at91_irq_err_line()
742 if (new_state != CAN_STATE_BUS_OFF) { in at91_irq_err_line()
H A Dkvaser_pciefd.c1244 if (new_state == CAN_STATE_BUS_OFF) { in kvaser_pciefd_change_state()
1267 *new_state = CAN_STATE_BUS_OFF; in kvaser_pciefd_packet_to_state()
1269 *new_state = CAN_STATE_BUS_OFF; in kvaser_pciefd_packet_to_state()
1303 if (old_state == CAN_STATE_BUS_OFF && in kvaser_pciefd_rx_error_frame()
1381 if (old_state == CAN_STATE_BUS_OFF && in kvaser_pciefd_handle_status_resp()
1446 if (can->can.state != CAN_STATE_BUS_OFF && in kvaser_pciefd_handle_status_packet()
H A Dti_hecc.c655 if (max(tx_state, rx_state) != CAN_STATE_BUS_OFF) { in ti_hecc_change_state()
710 rx_state = CAN_STATE_BUS_OFF; in ti_hecc_interrupt()
711 tx_state = CAN_STATE_BUS_OFF; in ti_hecc_interrupt()
/linux/drivers/net/can/esd/
H A Desdacc.c594 new_state = CAN_STATE_BUS_OFF; in handle_core_msg_errstatechange()
601 if (priv->can.state == CAN_STATE_BUS_OFF) { in handle_core_msg_errstatechange()
634 if (new_state == CAN_STATE_BUS_OFF) { in handle_core_msg_errstatechange()
/linux/drivers/net/can/m_can/
H A Dm_can.c812 case CAN_STATE_BUS_OFF: in m_can_handle_state_change()
814 cdev->can.state = CAN_STATE_BUS_OFF; in m_can_handle_state_change()
851 case CAN_STATE_BUS_OFF: in m_can_handle_state_change()
884 if (psr & PSR_BO && cdev->can.state != CAN_STATE_BUS_OFF) { in m_can_handle_state_errors()
887 CAN_STATE_BUS_OFF); in m_can_handle_state_errors()
1289 if (cdev->can.state == CAN_STATE_BUS_OFF || in m_can_coalescing_timer()
1969 if (cdev->can.state == CAN_STATE_BUS_OFF) { in m_can_start_xmit()
1997 if (cdev->can.state == CAN_STATE_BUS_OFF || in hrtimer_callback()
/linux/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-core.c863 if (priv->can.state == CAN_STATE_BUS_OFF) { in mcp251xfd_get_berr_counter()
1063 tx_state = CAN_STATE_BUS_OFF; in mcp251xfd_handle_cerrif()
1088 if (new_state == CAN_STATE_BUS_OFF) { in mcp251xfd_handle_cerrif()
1098 mcp251xfd_chip_stop(priv, CAN_STATE_BUS_OFF); in mcp251xfd_handle_cerrif()
1105 if (new_state != CAN_STATE_BUS_OFF) { in mcp251xfd_handle_cerrif()
1574 if (priv->can.state == CAN_STATE_BUS_OFF) { in mcp251xfd_irq()
/linux/drivers/net/can/spi/
H A Dmcp251x.c1001 if (priv->can.state == CAN_STATE_BUS_OFF) { in mcp251x_tx_work_handler()
1117 new_state = CAN_STATE_BUS_OFF; in mcp251x_can_ist()
1143 new_state <= CAN_STATE_BUS_OFF) in mcp251x_can_ist()
1148 new_state <= CAN_STATE_BUS_OFF) in mcp251x_can_ist()
1173 if (priv->can.state == CAN_STATE_BUS_OFF) { in mcp251x_can_ist()
H A Dhi311x.c581 if (priv->can.state == CAN_STATE_BUS_OFF) { in hi3110_tx_work_handler()
651 new_state = CAN_STATE_BUS_OFF; in hi3110_can_ist()
676 if (new_state == CAN_STATE_BUS_OFF) { in hi3110_can_ist()
/linux/drivers/net/can/rockchip/
H A Drockchip_canfd-core.c588 if (new_state == CAN_STATE_BUS_OFF) { in rkcanfd_handle_state_error_int()
589 rkcanfd_chip_stop(priv, CAN_STATE_BUS_OFF); in rkcanfd_handle_state_error_int()
596 if (new_state != CAN_STATE_BUS_OFF) { in rkcanfd_handle_state_error_int()
/linux/drivers/net/can/usb/peak_usb/
H A Dpcan_usb_pro.c585 if (dev->can.state == CAN_STATE_BUS_OFF) in pcan_usb_pro_handle_error()
601 new_state = CAN_STATE_BUS_OFF; in pcan_usb_pro_handle_error()
634 case CAN_STATE_BUS_OFF: in pcan_usb_pro_handle_error()
H A Dpcan_usb_fd.c608 if (dev->can.state == CAN_STATE_BUS_OFF) in pcan_usb_fd_decode_status()
612 new_state = CAN_STATE_BUS_OFF; in pcan_usb_fd_decode_status()
637 if (new_state == CAN_STATE_BUS_OFF) in pcan_usb_fd_decode_status()
H A Dpcan_usb.c502 new_state = CAN_STATE_BUS_OFF; in pcan_usb_decode_error()
523 if (new_state == CAN_STATE_BUS_OFF) { in pcan_usb_decode_error()
/linux/drivers/net/can/usb/
H A Df81604.c517 can_state = CAN_STATE_BUS_OFF; in f81604_handle_can_bus_errors()
592 if (can_state == CAN_STATE_BUS_OFF) in f81604_handle_can_bus_errors()
640 if (priv->can.state != CAN_STATE_BUS_OFF && in f81604_read_int_callback()
H A Dusb_8dev.c365 priv->can.state = CAN_STATE_BUS_OFF; in usb_8dev_rx_err_msg()
442 if (priv->can.state != CAN_STATE_BUS_OFF) { in usb_8dev_rx_err_msg()
/linux/drivers/net/can/slcan/
H A Dslcan-core.c278 state = CAN_STATE_BUS_OFF; in slcan_bump_state()
303 if (state == CAN_STATE_BUS_OFF) { in slcan_bump_state()
/linux/drivers/net/can/ctucanfd/
H A Dctucanfd_base.c106 CTUCAN_STATE_TO_TEXT_ENTRY(CAN_STATE_BUS_OFF),
772 return CAN_STATE_BUS_OFF; in ctucan_read_fault_state()
841 case CAN_STATE_BUS_OFF: in ctucan_err_interrupt()

12