Home
last modified time | relevance | path

Searched refs:can_state (Results 1 – 23 of 23) sorted by relevance

/linux/include/linux/can/
H A Ddev.h65 enum can_state state;
78 enum can_state *state);
136 const char *can_get_state_str(const enum can_state state);
186 enum can_state *tx_state,
187 enum can_state *rx_state);
189 enum can_state tx_state, enum can_state rx_state);
/linux/drivers/net/can/dev/
H A Ddev.c20 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()
134 static enum can_state can_state_err_to_state(u16 err) in can_state_err_to_state()
148 enum can_state *tx_state, in can_state_get_by_berr_counter()
149 enum can_state *rx_state) in can_state_get_by_berr_counter()
157 enum can_state tx_state, enum can_state rx_state) in can_change_state()
160 enum can_state new_state = max(tx_state, rx_state); in can_change_state()
H A Dnetlink.c991 enum can_state state = priv->state; in can_fill_info()
/linux/drivers/net/can/usb/
H A Df81604.c486 enum can_state can_state = priv->can.state; in f81604_handle_can_bus_errors() local
523 can_state = CAN_STATE_BUS_OFF; in f81604_handle_can_bus_errors()
525 can_state = CAN_STATE_ERROR_WARNING; in f81604_handle_can_bus_errors()
527 can_state = CAN_STATE_ERROR_ACTIVE; in f81604_handle_can_bus_errors()
571 if (can_state == CAN_STATE_ERROR_PASSIVE) in f81604_handle_can_bus_errors()
572 can_state = CAN_STATE_ERROR_WARNING; in f81604_handle_can_bus_errors()
574 can_state = CAN_STATE_ERROR_PASSIVE; in f81604_handle_can_bus_errors()
577 netdev_dbg(netdev, "error passive interrupt: %d\n", can_state); in f81604_handle_can_bus_errors()
594 if (can_state != priv->can.state) { in f81604_handle_can_bus_errors()
595 enum can_state tx_state, rx_state; in f81604_handle_can_bus_errors()
[all …]
H A Dems_usb.c206 u8 can_state; member
340 u8 state = msg->msg.can_state; in ems_usb_rx_err()
H A Desd_usb.c330 enum can_state tx_state, rx_state; in esd_usb_rx_event()
331 enum can_state new_state = CAN_STATE_ERROR_ACTIVE; in esd_usb_rx_event()
H A Dgs_usb.c1112 enum can_state *state) in gs_usb_get_state()
1140 enum can_state state; in gs_usb_can_get_berr_counter()
H A Dnct6694_canfd.c281 enum can_state new_state, rx_state, tx_state; in nct6694_canfd_handle_state_change()
H A Ducan.c488 enum can_state new_state = up->can.state; in ucan_handle_error_frame()
/linux/drivers/net/can/softing/
H A Dsofting_main.c217 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/drivers/net/can/usb/kvaser_usb/
H A Dkvaser_usb_hydra.c930 enum can_state *new_state) in kvaser_usb_hydra_bus_status_to_can_state()
953 enum can_state new_state) in kvaser_usb_hydra_change_state()
956 enum can_state old_state = priv->can.state; in kvaser_usb_hydra_change_state()
957 enum can_state tx_state, rx_state; in kvaser_usb_hydra_change_state()
993 enum can_state new_state, old_state; in kvaser_usb_hydra_update_state()
1111 enum can_state new_state, old_state; in kvaser_usb_hydra_error_frame()
H A Dkvaser_usb_leaf.c1115 enum can_state cur_state, new_state, tx_state, rx_state; in kvaser_usb_leaf_rx_error_update_can_state()
1194 enum can_state old_state, new_state; in kvaser_usb_leaf_rx_error()
/linux/drivers/net/can/esd/
H A Desdacc.c591 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/ctucanfd/
H A Dctucanfd_base.c160 static const char *ctucan_state_to_str(enum can_state state) in ctucan_state_to_str()
754 static enum can_state ctucan_read_fault_state(struct ctucan_priv *priv) in ctucan_read_fault_state()
807 enum can_state state; in ctucan_err_interrupt()
/linux/drivers/net/can/spi/
H A Dhi311x.c637 enum can_state new_state; in hi3110_can_ist()
660 enum can_state rx_state, tx_state; in hi3110_can_ist()
H A Dmcp251x.c1078 enum can_state new_state; in mcp251x_can_ist()
/linux/drivers/net/can/
H A Dat91_can.c430 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 Dbxcan.c469 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()
H A Dgrcan.c609 enum can_state state = priv->can.state; in grcan_err()
610 enum can_state oldstate = state; in grcan_err()
/linux/drivers/net/can/usb/peak_usb/
H A Dpcan_usb_fd.c594 enum can_state new_state = CAN_STATE_ERROR_ACTIVE; in pcan_usb_fd_decode_status()
595 enum can_state rx_state, tx_state; in pcan_usb_fd_decode_status()
H A Dpcan_usb_pro.c579 enum can_state new_state = CAN_STATE_ERROR_ACTIVE; in pcan_usb_pro_handle_error()
/linux/drivers/net/can/m_can/
H A Dm_can.c810 enum can_state new_state) in m_can_handle_state_change()
894 static enum can_state
914 enum can_state new_state; in m_can_handle_state_errors()
/linux/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-core.c757 const enum can_state state) in mcp251xfd_chip_stop()
1062 enum can_state new_state, rx_state, tx_state; in mcp251xfd_handle_cerrif()