/openbmc/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() 114 if (unlikely(new_state == CAN_STATE_BUS_OFF)) { in can_change_state() 183 if (priv->state != CAN_STATE_BUS_OFF) in can_restart_now()
|
/openbmc/linux/drivers/net/can/usb/kvaser_usb/ |
H A D | kvaser_usb_hydra.c | 901 *new_state = CAN_STATE_BUS_OFF; in kvaser_usb_hydra_bus_status_to_can_state() 939 if (old_state == CAN_STATE_STOPPED && new_state == CAN_STATE_BUS_OFF) in kvaser_usb_hydra_update_state() 953 if (new_state == CAN_STATE_BUS_OFF && old_state < CAN_STATE_BUS_OFF) { in kvaser_usb_hydra_update_state() 967 old_state >= CAN_STATE_BUS_OFF && in kvaser_usb_hydra_update_state() 968 new_state < CAN_STATE_BUS_OFF) in kvaser_usb_hydra_update_state() 971 if (new_state != CAN_STATE_BUS_OFF) { in kvaser_usb_hydra_update_state() 1102 old_state >= CAN_STATE_BUS_OFF && in kvaser_usb_hydra_error_frame() 1103 new_state < CAN_STATE_BUS_OFF) in kvaser_usb_hydra_error_frame() 1107 if (new_state == CAN_STATE_BUS_OFF) { in kvaser_usb_hydra_error_frame() 1126 if (new_state != CAN_STATE_BUS_OFF) { in kvaser_usb_hydra_error_frame()
|
H A D | kvaser_usb_leaf.c | 903 if (priv->can.restart_ms && priv->can.state == CAN_STATE_BUS_OFF) { in kvaser_usb_leaf_tx_acknowledge() 982 new_state = CAN_STATE_BUS_OFF; in kvaser_usb_leaf_rx_error_update_can_state() 986 cur_state >= CAN_STATE_BUS_OFF) { in kvaser_usb_leaf_rx_error_update_can_state() 1004 if (new_state == CAN_STATE_BUS_OFF) { in kvaser_usb_leaf_rx_error_update_can_state() 1020 cur_state == CAN_STATE_BUS_OFF && in kvaser_usb_leaf_rx_error_update_can_state() 1021 new_state < CAN_STATE_BUS_OFF) in kvaser_usb_leaf_rx_error_update_can_state() 1090 if (new_state < CAN_STATE_BUS_OFF && in kvaser_usb_leaf_rx_error() 1113 old_state == CAN_STATE_BUS_OFF && in kvaser_usb_leaf_rx_error() 1114 new_state < CAN_STATE_BUS_OFF) { in kvaser_usb_leaf_rx_error() 1147 if (new_state != CAN_STATE_BUS_OFF) { in kvaser_usb_leaf_rx_error()
|
/openbmc/linux/drivers/net/can/ |
H A D | at91_can.c | 883 new_state <= CAN_STATE_BUS_OFF) { in at91_irq_err_state() 899 new_state <= CAN_STATE_BUS_OFF) { in at91_irq_err_state() 909 case CAN_STATE_BUS_OFF: in at91_irq_err_state() 947 case CAN_STATE_BUS_OFF: in at91_irq_err_state() 960 at91_chip_stop(dev, CAN_STATE_BUS_OFF); in at91_irq_err_state() 989 *state = CAN_STATE_BUS_OFF; in at91_get_state_by_bec() 1008 new_state = CAN_STATE_BUS_OFF; in at91_irq_err()
|
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() 640 if (state == CAN_STATE_BUS_OFF) in sun4i_can_err()
|
H A D | kvaser_pciefd.c | 1181 if (new_state == CAN_STATE_BUS_OFF) { in kvaser_pciefd_change_state() 1204 *new_state = CAN_STATE_BUS_OFF; in kvaser_pciefd_packet_to_state() 1206 *new_state = CAN_STATE_BUS_OFF; in kvaser_pciefd_packet_to_state() 1240 if (old_state == CAN_STATE_BUS_OFF && in kvaser_pciefd_rx_error_frame() 1318 if (old_state == CAN_STATE_BUS_OFF && in kvaser_pciefd_handle_status_resp() 1383 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()
|
H A D | grcan.c | 618 state = CAN_STATE_BUS_OFF; in grcan_err() 631 case CAN_STATE_BUS_OFF: in grcan_err() 683 if (priv->can.restart_ms && oldstate == CAN_STATE_BUS_OFF) { in grcan_err()
|
/openbmc/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()
|
/openbmc/linux/drivers/net/can/mscan/ |
H A D | mscan.c | 47 CAN_STATE_BUS_OFF enumerator 178 if (priv->can.state <= CAN_STATE_BUS_OFF) in mscan_restart() 359 if (priv->can.state == CAN_STATE_BUS_OFF) { in mscan_get_err_frame() 420 if (priv->can.state < CAN_STATE_BUS_OFF) in mscan_rx_poll()
|
/openbmc/linux/include/uapi/linux/can/ |
H A D | netlink.h | 73 CAN_STATE_BUS_OFF, /* RX/TX error count >= 256 */ enumerator
|
/openbmc/linux/drivers/net/can/ifi_canfd/ |
H A D | ifi_canfd.c | 496 case CAN_STATE_BUS_OFF: in ifi_canfd_handle_state_change() 498 priv->can.state = CAN_STATE_BUS_OFF; in ifi_canfd_handle_state_change() 533 case CAN_STATE_BUS_OFF: in ifi_canfd_handle_state_change() 574 (priv->can.state != CAN_STATE_BUS_OFF)) { in ifi_canfd_handle_state_errors() 577 CAN_STATE_BUS_OFF); in ifi_canfd_handle_state_errors()
|
/openbmc/linux/drivers/net/can/sja1000/ |
H A D | sja1000.c | 450 state = CAN_STATE_BUS_OFF; in sja1000_err() 456 if (state != CAN_STATE_BUS_OFF && skb) { in sja1000_err() 523 if(state == CAN_STATE_BUS_OFF) in sja1000_err()
|
/openbmc/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() 1573 if (priv->can.state == CAN_STATE_BUS_OFF) { in mcp251xfd_irq()
|
/openbmc/linux/drivers/net/can/spi/ |
H A D | mcp251x.c | 1002 if (priv->can.state == CAN_STATE_BUS_OFF) { in mcp251x_tx_work_handler() 1118 new_state = CAN_STATE_BUS_OFF; in mcp251x_can_ist() 1144 new_state <= CAN_STATE_BUS_OFF) in mcp251x_can_ist() 1149 new_state <= CAN_STATE_BUS_OFF) in mcp251x_can_ist() 1174 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() 675 if (new_state == CAN_STATE_BUS_OFF) { in hi3110_can_ist()
|
/openbmc/linux/drivers/net/can/m_can/ |
H A D | m_can.c | 766 case CAN_STATE_BUS_OFF: in m_can_handle_state_change() 768 cdev->can.state = CAN_STATE_BUS_OFF; in m_can_handle_state_change() 805 case CAN_STATE_BUS_OFF: in m_can_handle_state_change() 838 if (psr & PSR_BO && cdev->can.state != CAN_STATE_BUS_OFF) { in m_can_handle_state_errors() 841 CAN_STATE_BUS_OFF); in m_can_handle_state_errors() 1804 if (cdev->can.state == CAN_STATE_BUS_OFF) { in m_can_start_xmit()
|
/openbmc/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()
|
/openbmc/linux/drivers/net/can/usb/ |
H A D | f81604.c | 517 can_state = CAN_STATE_BUS_OFF; in f81604_handle_can_bus_errors() 596 if (can_state == CAN_STATE_BUS_OFF) in f81604_handle_can_bus_errors() 644 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()
|
/openbmc/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()
|
/openbmc/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()
|
/openbmc/linux/drivers/net/can/softing/ |
H A D | softing_main.c | 225 can_state = CAN_STATE_BUS_OFF; in softing_handle_1() 251 else if (can_state == CAN_STATE_BUS_OFF) { in softing_handle_1()
|