/drivers/net/can/dev/ |
D | dev.c | 42 case CAN_STATE_BUS_OFF: in can_update_state_error_stats() 87 case CAN_STATE_BUS_OFF: in can_get_state_str() 122 if (unlikely(new_state == CAN_STATE_BUS_OFF)) { in can_change_state() 195 if (priv->state != CAN_STATE_BUS_OFF) in can_restart_now()
|
/drivers/net/can/usb/kvaser_usb/ |
D | kvaser_usb_hydra.c | 901 *new_state = CAN_STATE_BUS_OFF; in kvaser_usb_hydra_bus_status_to_can_state() 940 if (old_state == CAN_STATE_STOPPED && new_state == CAN_STATE_BUS_OFF) in kvaser_usb_hydra_update_state() 954 if (new_state == CAN_STATE_BUS_OFF && old_state < CAN_STATE_BUS_OFF) { in kvaser_usb_hydra_update_state() 968 old_state >= CAN_STATE_BUS_OFF && in kvaser_usb_hydra_update_state() 969 new_state < CAN_STATE_BUS_OFF) in kvaser_usb_hydra_update_state() 972 if (new_state != CAN_STATE_BUS_OFF) { in kvaser_usb_hydra_update_state() 1105 old_state >= CAN_STATE_BUS_OFF && in kvaser_usb_hydra_error_frame() 1106 new_state < CAN_STATE_BUS_OFF) in kvaser_usb_hydra_error_frame() 1110 if (new_state == CAN_STATE_BUS_OFF) { in kvaser_usb_hydra_error_frame() 1129 if (new_state != CAN_STATE_BUS_OFF) { in kvaser_usb_hydra_error_frame()
|
D | kvaser_usb_leaf.c | 902 if (priv->can.restart_ms && priv->can.state == CAN_STATE_BUS_OFF) { in kvaser_usb_leaf_tx_acknowledge() 983 new_state = CAN_STATE_BUS_OFF; in kvaser_usb_leaf_rx_error_update_can_state() 987 cur_state >= CAN_STATE_BUS_OFF) { in kvaser_usb_leaf_rx_error_update_can_state() 1005 cur_state == CAN_STATE_BUS_OFF && in kvaser_usb_leaf_rx_error_update_can_state() 1006 new_state < CAN_STATE_BUS_OFF) in kvaser_usb_leaf_rx_error_update_can_state() 1073 if (new_state < CAN_STATE_BUS_OFF && in kvaser_usb_leaf_rx_error() 1095 old_state == CAN_STATE_BUS_OFF && in kvaser_usb_leaf_rx_error() 1096 new_state < CAN_STATE_BUS_OFF) { in kvaser_usb_leaf_rx_error() 1129 if (new_state != CAN_STATE_BUS_OFF) { in kvaser_usb_leaf_rx_error()
|
/drivers/net/can/ |
D | at91_can.c | 888 new_state <= CAN_STATE_BUS_OFF) { in at91_irq_err_state() 904 new_state <= CAN_STATE_BUS_OFF) { in at91_irq_err_state() 914 case CAN_STATE_BUS_OFF: in at91_irq_err_state() 952 case CAN_STATE_BUS_OFF: in at91_irq_err_state() 965 at91_chip_stop(dev, CAN_STATE_BUS_OFF); in at91_irq_err_state() 994 *state = CAN_STATE_BUS_OFF; in at91_get_state_by_bec() 1013 new_state = CAN_STATE_BUS_OFF; in at91_irq_err()
|
D | sun4i_can.c | 552 state = CAN_STATE_BUS_OFF; in sun4i_can_err() 558 if (skb && state != CAN_STATE_BUS_OFF) { in sun4i_can_err() 620 if (state == CAN_STATE_BUS_OFF) in sun4i_can_err()
|
D | kvaser_pciefd.c | 1230 if (new_state == CAN_STATE_BUS_OFF) { in kvaser_pciefd_change_state() 1254 *new_state = CAN_STATE_BUS_OFF; in kvaser_pciefd_packet_to_state() 1256 *new_state = CAN_STATE_BUS_OFF; in kvaser_pciefd_packet_to_state() 1297 if (old_state == CAN_STATE_BUS_OFF && in kvaser_pciefd_rx_error_frame() 1388 if (old_state == CAN_STATE_BUS_OFF && in kvaser_pciefd_handle_status_resp() 1458 if (can->can.state != CAN_STATE_BUS_OFF && in kvaser_pciefd_handle_status_packet()
|
D | ti_hecc.c | 665 if (max(tx_state, rx_state) != CAN_STATE_BUS_OFF) { in ti_hecc_change_state() 719 rx_state = CAN_STATE_BUS_OFF; in ti_hecc_interrupt() 720 tx_state = CAN_STATE_BUS_OFF; in ti_hecc_interrupt()
|
D | grcan.c | 619 state = CAN_STATE_BUS_OFF; in grcan_err() 632 case CAN_STATE_BUS_OFF: in grcan_err() 683 if (priv->can.restart_ms && oldstate == CAN_STATE_BUS_OFF) { in grcan_err()
|
D | flexcan.c | 967 CAN_STATE_ERROR_PASSIVE : CAN_STATE_BUS_OFF; in flexcan_irq_state() 984 if (unlikely(new_state == CAN_STATE_BUS_OFF)) in flexcan_irq_state() 1235 case CAN_STATE_BUS_OFF: in flexcan_irq()
|
/drivers/net/can/usb/etas_es58x/ |
D | es58x_core.c | 262 return es58x_priv(netdev)->can.state < CAN_STATE_BUS_OFF; in es58x_is_can_state_active() 769 if (can->state == CAN_STATE_BUS_OFF) { in es58x_rx_err_msg() 792 if (can->state < CAN_STATE_BUS_OFF) in es58x_rx_err_msg() 810 if (can->state < CAN_STATE_BUS_OFF) in es58x_rx_err_msg() 822 if (can->state != CAN_STATE_BUS_OFF) { in es58x_rx_err_msg() 823 can->state = CAN_STATE_BUS_OFF; in es58x_rx_err_msg() 2013 case CAN_STATE_BUS_OFF: in es58x_set_mode() 2034 case CAN_STATE_BUS_OFF: in es58x_set_mode()
|
/drivers/net/can/mscan/ |
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() 418 if (priv->can.state < CAN_STATE_BUS_OFF) in mscan_rx_poll()
|
/drivers/net/can/ifi_canfd/ |
D | ifi_canfd.c | 480 case CAN_STATE_BUS_OFF: in ifi_canfd_handle_state_change() 482 priv->can.state = CAN_STATE_BUS_OFF; in ifi_canfd_handle_state_change() 517 case CAN_STATE_BUS_OFF: in ifi_canfd_handle_state_change() 560 (priv->can.state != CAN_STATE_BUS_OFF)) { in ifi_canfd_handle_state_errors() 563 CAN_STATE_BUS_OFF); in ifi_canfd_handle_state_errors()
|
/drivers/net/can/sja1000/ |
D | sja1000.c | 422 state = CAN_STATE_BUS_OFF; in sja1000_err() 428 if (state != CAN_STATE_BUS_OFF) { in sja1000_err() 487 if(state == CAN_STATE_BUS_OFF) in sja1000_err()
|
/drivers/net/can/spi/ |
D | mcp251x.c | 1006 if (priv->can.state == CAN_STATE_BUS_OFF) { in mcp251x_tx_work_handler() 1122 new_state = CAN_STATE_BUS_OFF; in mcp251x_can_ist() 1148 new_state <= CAN_STATE_BUS_OFF) in mcp251x_can_ist() 1153 new_state <= CAN_STATE_BUS_OFF) in mcp251x_can_ist() 1178 if (priv->can.state == CAN_STATE_BUS_OFF) { in mcp251x_can_ist()
|
D | hi311x.c | 583 if (priv->can.state == CAN_STATE_BUS_OFF) { in hi3110_tx_work_handler() 653 new_state = CAN_STATE_BUS_OFF; in hi3110_can_ist() 678 if (new_state == CAN_STATE_BUS_OFF) { in hi3110_can_ist()
|
/drivers/net/can/m_can/ |
D | m_can.c | 733 case CAN_STATE_BUS_OFF: in m_can_handle_state_change() 735 cdev->can.state = CAN_STATE_BUS_OFF; in m_can_handle_state_change() 772 case CAN_STATE_BUS_OFF: in m_can_handle_state_change() 808 if (psr & PSR_BO && cdev->can.state != CAN_STATE_BUS_OFF) { in m_can_handle_state_errors() 811 CAN_STATE_BUS_OFF); in m_can_handle_state_errors() 1772 if (cdev->can.state == CAN_STATE_BUS_OFF) { in m_can_start_xmit()
|
/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_pro.c | 569 if (dev->can.state == CAN_STATE_BUS_OFF) in pcan_usb_pro_handle_error() 585 new_state = CAN_STATE_BUS_OFF; in pcan_usb_pro_handle_error() 618 case CAN_STATE_BUS_OFF: in pcan_usb_pro_handle_error()
|
D | pcan_usb_fd.c | 544 if (dev->can.state == CAN_STATE_BUS_OFF) in pcan_usb_fd_decode_status() 548 new_state = CAN_STATE_BUS_OFF; in pcan_usb_fd_decode_status() 573 if (new_state == CAN_STATE_BUS_OFF) in pcan_usb_fd_decode_status()
|
D | pcan_usb.c | 481 new_state = CAN_STATE_BUS_OFF; in pcan_usb_decode_error() 502 if (new_state == CAN_STATE_BUS_OFF) { in pcan_usb_decode_error()
|
/drivers/net/can/spi/mcp251xfd/ |
D | mcp251xfd-core.c | 1181 if (priv->can.state == CAN_STATE_BUS_OFF) { in mcp251xfd_get_berr_counter() 1805 tx_state = CAN_STATE_BUS_OFF; in mcp251xfd_handle_cerrif() 1830 if (new_state == CAN_STATE_BUS_OFF) { in mcp251xfd_handle_cerrif() 1840 mcp251xfd_chip_stop(priv, CAN_STATE_BUS_OFF); in mcp251xfd_handle_cerrif() 1847 if (new_state != CAN_STATE_BUS_OFF) { in mcp251xfd_handle_cerrif() 2293 if (priv->can.state == CAN_STATE_BUS_OFF) { in mcp251xfd_irq()
|
/drivers/net/can/usb/ |
D | usb_8dev.c | 368 priv->can.state = CAN_STATE_BUS_OFF; in usb_8dev_rx_err_msg() 445 if (priv->can.state != CAN_STATE_BUS_OFF) { in usb_8dev_rx_err_msg()
|
D | ucan.c | 501 new_state = CAN_STATE_BUS_OFF; in ucan_handle_error_frame() 544 case CAN_STATE_BUS_OFF: in ucan_handle_error_frame()
|
/drivers/net/can/softing/ |
D | softing_main.c | 224 can_state = CAN_STATE_BUS_OFF; in softing_handle_1() 250 else if (can_state == CAN_STATE_BUS_OFF) { in softing_handle_1()
|
/drivers/net/can/c_can/ |
D | c_can_main.c | 943 priv->can.state = CAN_STATE_BUS_OFF; in c_can_handle_state_change() 1135 if (priv->can.state != CAN_STATE_BUS_OFF) in c_can_poll()
|
/drivers/net/can/peak_canfd/ |
D | peak_pciefd_main.c | 402 if (ucan->can.state == CAN_STATE_BUS_OFF) in pciefd_pre_cmd()
|