/linux/drivers/net/can/dev/ |
H A D | dev.c | 34 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 D | kvaser_usb_hydra.c | 912 *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 D | kvaser_usb_leaf.c | 967 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 D | es58x_core.c | 261 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 D | mscan.c | 41 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 D | netlink.h | 73 CAN_STATE_BUS_OFF, /* RX/TX error count >= 256 */ enumerator
|
/linux/drivers/net/can/ifi_canfd/ |
H A D | ifi_canfd.c | 474 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 D | sja1000.c | 449 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 D | sun4i_can.c | 567 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 D | at91_can.c | 720 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 D | kvaser_pciefd.c | 1244 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 D | ti_hecc.c | 655 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 D | esdacc.c | 594 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 D | m_can.c | 812 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 D | mcp251xfd-core.c | 863 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 D | mcp251x.c | 1001 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 D | hi311x.c | 581 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 D | rockchip_canfd-core.c | 588 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 D | pcan_usb_pro.c | 585 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 D | pcan_usb_fd.c | 608 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 D | pcan_usb.c | 502 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 D | f81604.c | 517 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 D | usb_8dev.c | 365 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 D | slcan-core.c | 278 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 D | ctucanfd_base.c | 106 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()
|