Home
last modified time | relevance | path

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

12

/drivers/net/can/dev/
Ddev.c42 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/
Dkvaser_usb_hydra.c901 *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()
Dkvaser_usb_leaf.c902 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/
Dat91_can.c888 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()
Dsun4i_can.c552 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()
Dkvaser_pciefd.c1230 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()
Dti_hecc.c665 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()
Dgrcan.c619 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()
Dflexcan.c967 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/
Des58x_core.c262 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/
Dmscan.c47 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/
Difi_canfd.c480 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/
Dsja1000.c422 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/
Dmcp251x.c1006 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()
Dhi311x.c583 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/
Dm_can.c733 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/
Dpcan_usb_pro.c569 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()
Dpcan_usb_fd.c544 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()
Dpcan_usb.c481 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/
Dmcp251xfd-core.c1181 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/
Dusb_8dev.c368 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()
Ducan.c501 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/
Dsofting_main.c224 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/
Dc_can_main.c943 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/
Dpeak_pciefd_main.c402 if (ucan->can.state == CAN_STATE_BUS_OFF) in pciefd_pre_cmd()

12