Home
last modified time | relevance | path

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

12

/openbmc/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()
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 Dkvaser_usb_hydra.c901 *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 Dkvaser_usb_leaf.c903 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 Dat91_can.c883 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 Dsun4i_can.c567 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 Dkvaser_pciefd.c1181 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 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()
H A Dgrcan.c618 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 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()
/openbmc/linux/drivers/net/can/mscan/
H A 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()
420 if (priv->can.state < CAN_STATE_BUS_OFF) in mscan_rx_poll()
/openbmc/linux/include/uapi/linux/can/
H A Dnetlink.h73 CAN_STATE_BUS_OFF, /* RX/TX error count >= 256 */ enumerator
/openbmc/linux/drivers/net/can/ifi_canfd/
H A Difi_canfd.c496 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 Dsja1000.c450 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 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()
1573 if (priv->can.state == CAN_STATE_BUS_OFF) { in mcp251xfd_irq()
/openbmc/linux/drivers/net/can/spi/
H A Dmcp251x.c1002 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 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()
675 if (new_state == CAN_STATE_BUS_OFF) { in hi3110_can_ist()
/openbmc/linux/drivers/net/can/m_can/
H A Dm_can.c766 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 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()
/openbmc/linux/drivers/net/can/usb/
H A Df81604.c517 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 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()
/openbmc/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()
/openbmc/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()
/openbmc/linux/drivers/net/can/softing/
H A Dsofting_main.c225 can_state = CAN_STATE_BUS_OFF; in softing_handle_1()
251 else if (can_state == CAN_STATE_BUS_OFF) { in softing_handle_1()

12