/linux/include/linux/can/ |
H A D | dev.h | 70 enum can_state state; 84 enum can_state *state); 197 const char *can_get_state_str(const enum can_state state); 200 enum can_state *tx_state, 201 enum can_state *rx_state); 203 enum can_state tx_state, enum can_state rx_state);
|
/linux/drivers/net/can/dev/ |
H A D | dev.c | 20 enum can_state new_state) in can_update_state_error_stats() 42 static int can_tx_state_to_frame(struct net_device *dev, enum can_state state) in can_tx_state_to_frame() 56 static int can_rx_state_to_frame(struct net_device *dev, enum can_state state) in can_rx_state_to_frame() 70 const char *can_get_state_str(const enum can_state state) in can_get_state_str() 93 static enum can_state can_state_err_to_state(u16 err) in can_state_err_to_state() 107 enum can_state *tx_state, in can_state_get_by_berr_counter() 108 enum can_state *rx_state) in can_state_get_by_berr_counter() 116 enum can_state tx_state, enum can_state rx_state) in can_change_state() 119 enum can_state new_state = max(tx_state, rx_state); in can_change_state()
|
H A D | netlink.c | 544 enum can_state state = priv->state; in can_fill_info()
|
/linux/drivers/net/can/usb/ |
H A D | f81604.c | 480 enum can_state can_state = priv->can.state; in f81604_handle_can_bus_errors() local 517 can_state = CAN_STATE_BUS_OFF; in f81604_handle_can_bus_errors() 519 can_state = CAN_STATE_ERROR_WARNING; in f81604_handle_can_bus_errors() 521 can_state = CAN_STATE_ERROR_ACTIVE; in f81604_handle_can_bus_errors() 561 if (can_state == CAN_STATE_ERROR_PASSIVE) in f81604_handle_can_bus_errors() 562 can_state = CAN_STATE_ERROR_WARNING; in f81604_handle_can_bus_errors() 564 can_state = CAN_STATE_ERROR_PASSIVE; in f81604_handle_can_bus_errors() 567 netdev_dbg(netdev, "error passive interrupt: %d\n", can_state); in f81604_handle_can_bus_errors() 584 if (can_state != priv->can.state) { in f81604_handle_can_bus_errors() 585 enum can_state tx_state, rx_state; in f81604_handle_can_bus_errors() [all …]
|
H A D | ems_usb.c | 206 u8 can_state; member 342 u8 state = msg->msg.can_state; in ems_usb_rx_err()
|
H A D | esd_usb.c | 325 enum can_state tx_state, rx_state; in esd_usb_rx_event() 326 enum can_state new_state = CAN_STATE_ERROR_ACTIVE; in esd_usb_rx_event()
|
H A D | gs_usb.c | 1019 enum can_state *state) in gs_usb_get_state() 1047 enum can_state state; in gs_usb_can_get_berr_counter()
|
/linux/drivers/net/can/softing/ |
H A D | softing_main.c | 217 uint8_t can_state, state; in softing_handle_1() local 225 can_state = CAN_STATE_BUS_OFF; in softing_handle_1() 229 can_state = CAN_STATE_ERROR_PASSIVE; in softing_handle_1() 234 can_state = CAN_STATE_ERROR_ACTIVE; in softing_handle_1() 247 if (can_state != priv->can.state) { in softing_handle_1() 248 priv->can.state = can_state; in softing_handle_1() 249 if (can_state == CAN_STATE_ERROR_PASSIVE) in softing_handle_1() 251 else if (can_state == CAN_STATE_BUS_OFF) { in softing_handle_1()
|
/linux/include/uapi/linux/can/ |
H A D | netlink.h | 69 enum can_state { enum
|
/linux/drivers/net/can/ |
H A D | xilinx_can.c | 997 static enum can_state xcan_current_error_state(struct net_device *ndev) in xcan_current_error_state() 1020 enum can_state new_state, in xcan_set_error_state() 1027 enum can_state tx_state = txerr >= rxerr ? new_state : 0; in xcan_set_error_state() 1028 enum can_state rx_state = txerr <= rxerr ? new_state : 0; in xcan_set_error_state() 1054 enum can_state old_state = priv->can.state; in xcan_update_error_state_after_rxtx() 1055 enum can_state new_state; in xcan_update_error_state_after_rxtx() 1106 enum can_state new_state = xcan_current_error_state(ndev); in xcan_err_interrupt()
|
H A D | kvaser_pciefd.c | 1238 enum can_state new_state, in kvaser_pciefd_change_state() 1239 enum can_state tx_state, in kvaser_pciefd_change_state() 1240 enum can_state rx_state) in kvaser_pciefd_change_state() 1261 enum can_state *new_state, in kvaser_pciefd_packet_to_state() 1262 enum can_state *tx_state, in kvaser_pciefd_packet_to_state() 1263 enum can_state *rx_state) in kvaser_pciefd_packet_to_state() 1289 enum can_state old_state, new_state, tx_state, rx_state; in kvaser_pciefd_rx_error_frame() 1361 enum can_state old_state, new_state, tx_state, rx_state; in kvaser_pciefd_handle_status_resp()
|
H A D | ti_hecc.c | 638 enum can_state rx_state, in ti_hecc_change_state() 639 enum can_state tx_state) in ti_hecc_change_state() 688 enum can_state rx_state, tx_state; in ti_hecc_interrupt() 720 enum can_state new_state, tx_state, rx_state; in ti_hecc_interrupt()
|
H A D | sun4i_can.c | 531 enum can_state state = priv->can.state; in sun4i_can_err() 532 enum can_state rx_state, tx_state; in sun4i_can_err()
|
H A D | at91_can.c | 430 static void at91_chip_stop(struct net_device *dev, enum can_state state) in at91_chip_stop() 695 enum can_state new_state, rx_state, tx_state; in at91_irq_err_line()
|
H A D | bxcan.c | 469 enum can_state new_state = priv->can.state; in bxcan_handle_state_change() 471 enum can_state rx_state, tx_state; in bxcan_handle_state_change()
|
/linux/drivers/net/can/rockchip/ |
H A D | rockchip_canfd-core.c | 319 static void __rkcanfd_chip_stop(struct rkcanfd_priv *priv, const enum can_state state) in __rkcanfd_chip_stop() 327 static void rkcanfd_chip_stop(struct rkcanfd_priv *priv, const enum can_state state) in rkcanfd_chip_stop() 335 static void rkcanfd_chip_stop_sync(struct rkcanfd_priv *priv, const enum can_state state) in rkcanfd_chip_stop_sync() 567 enum can_state new_state, rx_state, tx_state; in rkcanfd_handle_state_error_int()
|
/linux/drivers/net/can/mscan/ |
H A D | mscan.c | 37 static enum can_state state_map[] = { 276 static enum can_state get_new_state(struct net_device *dev, u8 canrflg) in get_new_state() 333 enum can_state new_state; in mscan_get_err_frame()
|
/linux/drivers/net/can/usb/peak_usb/ |
H A D | pcan_usb.c | 477 enum can_state new_state = CAN_STATE_ERROR_ACTIVE; in pcan_usb_decode_error() 514 enum can_state tx_state = in pcan_usb_decode_error() 517 enum can_state rx_state = in pcan_usb_decode_error()
|
H A D | pcan_usb_fd.c | 593 enum can_state new_state = CAN_STATE_ERROR_ACTIVE; in pcan_usb_fd_decode_status() 594 enum can_state rx_state, tx_state; in pcan_usb_fd_decode_status()
|
/linux/drivers/net/can/sja1000/ |
H A D | sja1000.c | 412 enum can_state state = priv->can.state; in sja1000_err() 413 enum can_state rx_state, tx_state; in sja1000_err()
|
/linux/drivers/net/can/esd/ |
H A D | esdacc.c | 591 enum can_state new_state; in handle_core_msg_errstatechange() 610 enum can_state tx_state, rx_state; in handle_core_msg_errstatechange()
|
/linux/drivers/net/can/usb/kvaser_usb/ |
H A D | kvaser_usb_hydra.c | 909 enum can_state *new_state) in kvaser_usb_hydra_bus_status_to_can_state() 936 enum can_state new_state, old_state; in kvaser_usb_hydra_update_state() 955 enum can_state tx_state, rx_state; in kvaser_usb_hydra_update_state() 1085 enum can_state new_state, old_state; in kvaser_usb_hydra_error_frame() 1103 enum can_state tx_state, rx_state; in kvaser_usb_hydra_error_frame()
|
/linux/drivers/net/can/ctucanfd/ |
H A D | ctucanfd_base.c | 160 static const char *ctucan_state_to_str(enum can_state state) in ctucan_state_to_str() 753 static enum can_state ctucan_read_fault_state(struct ctucan_priv *priv) in ctucan_read_fault_state() 806 enum can_state state; in ctucan_err_interrupt()
|
/linux/drivers/net/can/spi/ |
H A D | hi311x.c | 639 enum can_state new_state; in hi3110_can_ist() 662 enum can_state rx_state, tx_state; in hi3110_can_ist()
|
/linux/drivers/net/can/slcan/ |
H A D | slcan-core.c | 265 enum can_state state, rx_state, tx_state; in slcan_bump_state()
|