Home
last modified time | relevance | path

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

12

/Linux-v6.6/include/linux/can/
Ddev.h70 enum can_state state;
84 enum can_state *state);
197 const char *can_get_state_str(const enum can_state state);
199 enum can_state tx_state, enum can_state rx_state);
/Linux-v6.6/drivers/net/can/dev/
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()
94 enum can_state tx_state, enum can_state rx_state) in can_change_state()
97 enum can_state new_state = max(tx_state, rx_state); in can_change_state()
Dnetlink.c544 enum can_state state = priv->state; in can_fill_info()
/Linux-v6.6/drivers/net/can/usb/
Df81604.c480 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 …]
Dems_usb.c206 u8 can_state; member
342 u8 state = msg->msg.can_state; in ems_usb_rx_err()
Desd_usb.c325 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()
Dgs_usb.c1016 enum can_state *state) in gs_usb_get_state()
1044 enum can_state state; in gs_usb_can_get_berr_counter()
/Linux-v6.6/drivers/net/can/softing/
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-v6.6/include/uapi/linux/can/
Dnetlink.h69 enum can_state { enum
/Linux-v6.6/drivers/net/can/
Dxilinx_can.c935 static enum can_state xcan_current_error_state(struct net_device *ndev) in xcan_current_error_state()
958 enum can_state new_state, in xcan_set_error_state()
965 enum can_state tx_state = txerr >= rxerr ? new_state : 0; in xcan_set_error_state()
966 enum can_state rx_state = txerr <= rxerr ? new_state : 0; in xcan_set_error_state()
992 enum can_state old_state = priv->can.state; in xcan_update_error_state_after_rxtx()
993 enum can_state new_state; in xcan_update_error_state_after_rxtx()
1044 enum can_state new_state = xcan_current_error_state(ndev); in xcan_err_interrupt()
Dkvaser_pciefd.c1175 enum can_state new_state, in kvaser_pciefd_change_state()
1176 enum can_state tx_state, in kvaser_pciefd_change_state()
1177 enum can_state rx_state) in kvaser_pciefd_change_state()
1198 enum can_state *new_state, in kvaser_pciefd_packet_to_state()
1199 enum can_state *tx_state, in kvaser_pciefd_packet_to_state()
1200 enum can_state *rx_state) in kvaser_pciefd_packet_to_state()
1226 enum can_state old_state, new_state, tx_state, rx_state; in kvaser_pciefd_rx_error_frame()
1298 enum can_state old_state, new_state, tx_state, rx_state; in kvaser_pciefd_handle_status_resp()
Dti_hecc.c638 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()
Dat91_can.c412 static void at91_chip_stop(struct net_device *dev, enum can_state state) in at91_chip_stop()
868 struct can_frame *cf, enum can_state new_state) in at91_irq_err_state()
973 enum can_state *state) in at91_get_state_by_bec()
999 enum can_state new_state; in at91_irq_err()
Dsun4i_can.c531 enum can_state state = priv->can.state; in sun4i_can_err()
532 enum can_state rx_state, tx_state; in sun4i_can_err()
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()
Dgrcan.c609 enum can_state state = priv->can.state; in grcan_err()
610 enum can_state oldstate = state; in grcan_err()
/Linux-v6.6/drivers/net/can/mscan/
Dmscan.c43 static enum can_state state_map[] = {
282 static enum can_state get_new_state(struct net_device *dev, u8 canrflg) in get_new_state()
339 enum can_state new_state; in mscan_get_err_frame()
/Linux-v6.6/drivers/net/can/usb/peak_usb/
Dpcan_usb.c477 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()
Dpcan_usb_fd.c593 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-v6.6/drivers/net/can/sja1000/
Dsja1000.c412 enum can_state state = priv->can.state; in sja1000_err()
413 enum can_state rx_state, tx_state; in sja1000_err()
/Linux-v6.6/drivers/net/can/usb/kvaser_usb/
Dkvaser_usb_hydra.c898 enum can_state *new_state) in kvaser_usb_hydra_bus_status_to_can_state()
925 enum can_state new_state, old_state; in kvaser_usb_hydra_update_state()
944 enum can_state tx_state, rx_state; in kvaser_usb_hydra_update_state()
1074 enum can_state new_state, old_state; in kvaser_usb_hydra_error_frame()
1092 enum can_state tx_state, rx_state; in kvaser_usb_hydra_error_frame()
/Linux-v6.6/drivers/net/can/ctucanfd/
Dctucanfd_base.c160 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-v6.6/drivers/net/can/spi/
Dhi311x.c639 enum can_state new_state; in hi3110_can_ist()
662 enum can_state rx_state, tx_state; in hi3110_can_ist()
/Linux-v6.6/drivers/net/can/slcan/
Dslcan-core.c265 enum can_state state, rx_state, tx_state; in slcan_bump_state()
/Linux-v6.6/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-core.c741 const enum can_state state) in mcp251xfd_chip_stop()
1051 enum can_state new_state, rx_state, tx_state; in mcp251xfd_handle_cerrif()

12