Home
last modified time | relevance | path

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

12

/Linux-v4.19/include/uapi/linux/can/
Dnetlink.h73 CAN_STATE_BUS_OFF, /* RX/TX error count >= 256 */ enumerator
/Linux-v4.19/drivers/net/can/
Dat91_can.c896 new_state <= CAN_STATE_BUS_OFF) { in at91_irq_err_state()
912 new_state <= CAN_STATE_BUS_OFF) { in at91_irq_err_state()
922 case CAN_STATE_BUS_OFF: in at91_irq_err_state()
962 case CAN_STATE_BUS_OFF: in at91_irq_err_state()
975 at91_chip_stop(dev, CAN_STATE_BUS_OFF); in at91_irq_err_state()
1004 *state = CAN_STATE_BUS_OFF; in at91_get_state_by_bec()
1024 new_state = CAN_STATE_BUS_OFF; in at91_irq_err()
Ddev.c343 case CAN_STATE_BUS_OFF: in can_update_state_error_stats()
398 if (unlikely(new_state == CAN_STATE_BUS_OFF)) { in can_change_state()
588 if (priv->state != CAN_STATE_BUS_OFF) in can_restart_now()
Dsun4i_can.c557 state = CAN_STATE_BUS_OFF; in sun4i_can_err()
622 if (state == CAN_STATE_BUS_OFF) in sun4i_can_err()
Dflexcan.c637 CAN_STATE_ERROR_PASSIVE : CAN_STATE_BUS_OFF; in flexcan_irq_state()
652 if (unlikely(new_state == CAN_STATE_BUS_OFF)) in flexcan_irq_state()
844 case CAN_STATE_BUS_OFF: in flexcan_irq()
Dgrcan.c622 state = CAN_STATE_BUS_OFF; in grcan_err()
635 case CAN_STATE_BUS_OFF: in grcan_err()
686 if (priv->can.restart_ms && oldstate == CAN_STATE_BUS_OFF) { in grcan_err()
/Linux-v4.19/drivers/net/can/usb/kvaser_usb/
Dkvaser_usb_leaf.c570 if (priv->can.restart_ms && priv->can.state >= CAN_STATE_BUS_OFF) { in kvaser_usb_leaf_tx_acknowledge()
641 new_state = CAN_STATE_BUS_OFF; in kvaser_usb_leaf_rx_error_update_can_state()
646 if (cur_state < CAN_STATE_BUS_OFF) { in kvaser_usb_leaf_rx_error_update_can_state()
667 cur_state >= CAN_STATE_BUS_OFF && in kvaser_usb_leaf_rx_error_update_can_state()
668 new_state < CAN_STATE_BUS_OFF) in kvaser_usb_leaf_rx_error_update_can_state()
743 old_state >= CAN_STATE_BUS_OFF && in kvaser_usb_leaf_rx_error()
744 new_state < CAN_STATE_BUS_OFF) { in kvaser_usb_leaf_rx_error()
Dkvaser_usb_hydra.c822 *new_state = CAN_STATE_BUS_OFF; in kvaser_usb_hydra_bus_status_to_can_state()
861 if (old_state == CAN_STATE_STOPPED && new_state == CAN_STATE_BUS_OFF) in kvaser_usb_hydra_update_state()
875 if (new_state == CAN_STATE_BUS_OFF && old_state < CAN_STATE_BUS_OFF) { in kvaser_usb_hydra_update_state()
889 old_state >= CAN_STATE_BUS_OFF && in kvaser_usb_hydra_update_state()
890 new_state < CAN_STATE_BUS_OFF) in kvaser_usb_hydra_update_state()
1024 if (new_state == CAN_STATE_BUS_OFF) { in kvaser_usb_hydra_error_frame()
1033 old_state >= CAN_STATE_BUS_OFF && in kvaser_usb_hydra_error_frame()
1034 new_state < CAN_STATE_BUS_OFF) in kvaser_usb_hydra_error_frame()
/Linux-v4.19/drivers/net/can/mscan/
Dmscan.c58 CAN_STATE_BUS_OFF enumerator
189 if (priv->can.state <= CAN_STATE_BUS_OFF) in mscan_restart()
369 if (priv->can.state == CAN_STATE_BUS_OFF) { in mscan_get_err_frame()
429 if (priv->can.state < CAN_STATE_BUS_OFF) in mscan_rx_poll()
/Linux-v4.19/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()
/Linux-v4.19/drivers/net/can/usb/peak_usb/
Dpcan_usb.c434 new_state = CAN_STATE_BUS_OFF; in pcan_usb_decode_error()
454 new_state = CAN_STATE_BUS_OFF; in pcan_usb_decode_error()
492 case CAN_STATE_BUS_OFF: in pcan_usb_decode_error()
Dpcan_usb_pro.c578 if (dev->can.state == CAN_STATE_BUS_OFF) in pcan_usb_pro_handle_error()
594 new_state = CAN_STATE_BUS_OFF; in pcan_usb_pro_handle_error()
627 case CAN_STATE_BUS_OFF: in pcan_usb_pro_handle_error()
Dpcan_usb_fd.c540 if (dev->can.state == CAN_STATE_BUS_OFF) in pcan_usb_fd_decode_status()
544 new_state = CAN_STATE_BUS_OFF; in pcan_usb_fd_decode_status()
571 if (new_state == CAN_STATE_BUS_OFF) in pcan_usb_fd_decode_status()
/Linux-v4.19/drivers/net/can/spi/
Dmcp251x.c751 if (priv->can.state == CAN_STATE_BUS_OFF) { in mcp251x_tx_work_handler()
850 new_state = CAN_STATE_BUS_OFF; in mcp251x_can_ist()
876 new_state <= CAN_STATE_BUS_OFF) in mcp251x_can_ist()
880 new_state <= CAN_STATE_BUS_OFF) in mcp251x_can_ist()
905 if (priv->can.state == CAN_STATE_BUS_OFF) { in mcp251x_can_ist()
Dhi311x.c601 if (priv->can.state == CAN_STATE_BUS_OFF) { in hi3110_tx_work_handler()
671 new_state = CAN_STATE_BUS_OFF; in hi3110_can_ist()
698 if (new_state == CAN_STATE_BUS_OFF) { in hi3110_can_ist()
/Linux-v4.19/drivers/net/can/m_can/
Dm_can.c688 case CAN_STATE_BUS_OFF: in m_can_handle_state_change()
690 priv->can.state = CAN_STATE_BUS_OFF; in m_can_handle_state_change()
727 case CAN_STATE_BUS_OFF: in m_can_handle_state_change()
762 (priv->can.state != CAN_STATE_BUS_OFF)) { in m_can_handle_state_errors()
765 CAN_STATE_BUS_OFF); in m_can_handle_state_errors()
/Linux-v4.19/drivers/net/can/sja1000/
Dsja1000.c426 state = CAN_STATE_BUS_OFF; in sja1000_err()
488 if(state == CAN_STATE_BUS_OFF) in sja1000_err()
/Linux-v4.19/drivers/net/can/softing/
Dsofting_main.c235 can_state = CAN_STATE_BUS_OFF; in softing_handle_1()
262 else if (can_state == CAN_STATE_BUS_OFF) { in softing_handle_1()
/Linux-v4.19/drivers/net/can/c_can/
Dc_can.c901 priv->can.state = CAN_STATE_BUS_OFF; in c_can_handle_state_change()
1075 if (priv->can.state != CAN_STATE_BUS_OFF) in c_can_poll()
/Linux-v4.19/drivers/net/can/usb/
Ducan.c505 new_state = CAN_STATE_BUS_OFF; in ucan_handle_error_frame()
548 case CAN_STATE_BUS_OFF: in ucan_handle_error_frame()
Dmcba_usb.c528 priv->can.state = CAN_STATE_BUS_OFF; in mcba_usb_process_ka_can()
Dusb_8dev.c378 priv->can.state = CAN_STATE_BUS_OFF; in usb_8dev_rx_err_msg()
/Linux-v4.19/drivers/net/can/peak_canfd/
Dpeak_pciefd_main.c414 if (ucan->can.state == CAN_STATE_BUS_OFF) in pciefd_pre_cmd()
Dpeak_canfd.c355 priv->can.state = CAN_STATE_BUS_OFF; in pucan_handle_status()
/Linux-v4.19/drivers/net/can/cc770/
Dcc770.c531 priv->can.state = CAN_STATE_BUS_OFF; in cc770_err()

12