Home
last modified time | relevance | path

Searched refs:can (Results 1 - 25 of 454) sorted by relevance

12345678910>>...19

/kernel/linux/linux-5.10/drivers/net/can/
H A Dkvaser_pciefd.c13 #include <linux/can/dev.h>
262 struct can_priv can; member
278 struct kvaser_pciefd_can *can[KVASER_PCIEFD_MAX_CAN_CHANNELS]; member
493 static void kvaser_pciefd_request_status(struct kvaser_pciefd_can *can) in kvaser_pciefd_request_status() argument
498 cmd |= ++can->cmd_seq << KVASER_PCIEFD_KCAN_CMD_SEQ_SHIFT; in kvaser_pciefd_request_status()
499 iowrite32(cmd, can->reg_base + KVASER_PCIEFD_KCAN_CMD_REG); in kvaser_pciefd_request_status()
502 static void kvaser_pciefd_enable_err_gen(struct kvaser_pciefd_can *can) in kvaser_pciefd_enable_err_gen() argument
507 spin_lock_irqsave(&can->lock, irq); in kvaser_pciefd_enable_err_gen()
508 mode = ioread32(can->reg_base + KVASER_PCIEFD_KCAN_MODE_REG); in kvaser_pciefd_enable_err_gen()
511 iowrite32(mode, can in kvaser_pciefd_enable_err_gen()
516 kvaser_pciefd_disable_err_gen(struct kvaser_pciefd_can *can) kvaser_pciefd_disable_err_gen() argument
528 kvaser_pciefd_set_tx_irq(struct kvaser_pciefd_can *can) kvaser_pciefd_set_tx_irq() argument
543 kvaser_pciefd_setup_controller(struct kvaser_pciefd_can *can) kvaser_pciefd_setup_controller() argument
577 kvaser_pciefd_start_controller_flush(struct kvaser_pciefd_can *can) kvaser_pciefd_start_controller_flush() argument
607 kvaser_pciefd_bus_on(struct kvaser_pciefd_can *can) kvaser_pciefd_bus_on() argument
656 kvaser_pciefd_pwm_stop(struct kvaser_pciefd_can *can) kvaser_pciefd_pwm_stop() argument
672 kvaser_pciefd_pwm_start(struct kvaser_pciefd_can *can) kvaser_pciefd_pwm_start() argument
699 struct kvaser_pciefd_can *can = netdev_priv(netdev); kvaser_pciefd_open() local
716 struct kvaser_pciefd_can *can = netdev_priv(netdev); kvaser_pciefd_stop() local
737 kvaser_pciefd_prepare_tx_packet(struct kvaser_pciefd_tx_packet *p, struct kvaser_pciefd_can *can, struct sk_buff *skb) kvaser_pciefd_prepare_tx_packet() argument
779 struct kvaser_pciefd_can *can = netdev_priv(netdev); kvaser_pciefd_start_xmit() local
833 kvaser_pciefd_set_bittiming(struct kvaser_pciefd_can *can, bool data) kvaser_pciefd_set_bittiming() argument
893 struct kvaser_pciefd_can *can = netdev_priv(ndev); kvaser_pciefd_set_mode() local
911 struct kvaser_pciefd_can *can = netdev_priv(ndev); kvaser_pciefd_get_berr_counter() local
920 struct kvaser_pciefd_can *can = from_timer(can, data, bec_poll_timer); kvaser_pciefd_bec_poll_timer() local
940 struct kvaser_pciefd_can *can; kvaser_pciefd_setup_can_ctrls() local
1222 kvaser_pciefd_change_state(struct kvaser_pciefd_can *can, struct can_frame *cf, enum can_state new_state, enum can_state tx_state, enum can_state rx_state) kvaser_pciefd_change_state() argument
1272 kvaser_pciefd_rx_error_frame(struct kvaser_pciefd_can *can, struct kvaser_pciefd_rx_packet *p) kvaser_pciefd_rx_error_frame() argument
1340 struct kvaser_pciefd_can *can; kvaser_pciefd_handle_error_packet() local
1357 kvaser_pciefd_handle_status_resp(struct kvaser_pciefd_can *can, struct kvaser_pciefd_rx_packet *p) kvaser_pciefd_handle_status_resp() argument
1417 struct kvaser_pciefd_can *can; kvaser_pciefd_handle_status_packet() local
1476 struct kvaser_pciefd_can *can; kvaser_pciefd_handle_eack_packet() local
1507 kvaser_pciefd_handle_nack_packet(struct kvaser_pciefd_can *can, struct kvaser_pciefd_rx_packet *p) kvaser_pciefd_handle_nack_packet() argument
1539 struct kvaser_pciefd_can *can; kvaser_pciefd_handle_ack_packet() local
1582 struct kvaser_pciefd_can *can; kvaser_pciefd_handle_eflush_packet() local
1724 kvaser_pciefd_transmit_irq(struct kvaser_pciefd_can *can) kvaser_pciefd_transmit_irq() argument
1778 struct kvaser_pciefd_can *can; kvaser_pciefd_teardown_can_ctrls() local
1887 struct kvaser_pciefd_can *can; kvaser_pciefd_remove_all_ctrls() local
[all...]
/kernel/linux/linux-6.6/drivers/net/can/
H A Dkvaser_pciefd.c9 #include <linux/can/dev.h>
371 struct can_priv can; member
387 struct kvaser_pciefd_can *can[KVASER_PCIEFD_MAX_CAN_CHANNELS]; member
465 static inline void kvaser_pciefd_send_kcan_cmd(struct kvaser_pciefd_can *can, u32 cmd) in kvaser_pciefd_send_kcan_cmd() argument
468 FIELD_PREP(KVASER_PCIEFD_KCAN_CMD_SEQ_MASK, ++can->cmd_seq), in kvaser_pciefd_send_kcan_cmd()
469 can->reg_base + KVASER_PCIEFD_KCAN_CMD_REG); in kvaser_pciefd_send_kcan_cmd()
472 static inline void kvaser_pciefd_request_status(struct kvaser_pciefd_can *can) in kvaser_pciefd_request_status() argument
474 kvaser_pciefd_send_kcan_cmd(can, KVASER_PCIEFD_KCAN_CMD_SRQ); in kvaser_pciefd_request_status()
477 static inline void kvaser_pciefd_abort_flush_reset(struct kvaser_pciefd_can *can) in kvaser_pciefd_abort_flush_reset() argument
479 kvaser_pciefd_send_kcan_cmd(can, KVASER_PCIEFD_KCAN_CMD_A in kvaser_pciefd_abort_flush_reset()
482 kvaser_pciefd_enable_err_gen(struct kvaser_pciefd_can *can) kvaser_pciefd_enable_err_gen() argument
496 kvaser_pciefd_disable_err_gen(struct kvaser_pciefd_can *can) kvaser_pciefd_disable_err_gen() argument
508 kvaser_pciefd_set_tx_irq(struct kvaser_pciefd_can *can) kvaser_pciefd_set_tx_irq() argument
528 kvaser_pciefd_setup_controller(struct kvaser_pciefd_can *can) kvaser_pciefd_setup_controller() argument
560 kvaser_pciefd_start_controller_flush(struct kvaser_pciefd_can *can) kvaser_pciefd_start_controller_flush() argument
584 kvaser_pciefd_bus_on(struct kvaser_pciefd_can *can) kvaser_pciefd_bus_on() argument
629 kvaser_pciefd_pwm_stop(struct kvaser_pciefd_can *can) kvaser_pciefd_pwm_stop() argument
644 kvaser_pciefd_pwm_start(struct kvaser_pciefd_can *can) kvaser_pciefd_pwm_start() argument
670 struct kvaser_pciefd_can *can = netdev_priv(netdev); kvaser_pciefd_open() local
687 struct kvaser_pciefd_can *can = netdev_priv(netdev); kvaser_pciefd_stop() local
708 kvaser_pciefd_prepare_tx_packet(struct kvaser_pciefd_tx_packet *p, struct kvaser_pciefd_can *can, struct sk_buff *skb) kvaser_pciefd_prepare_tx_packet() argument
754 struct kvaser_pciefd_can *can = netdev_priv(netdev); kvaser_pciefd_start_xmit() local
806 kvaser_pciefd_set_bittiming(struct kvaser_pciefd_can *can, bool data) kvaser_pciefd_set_bittiming() argument
860 struct kvaser_pciefd_can *can = netdev_priv(ndev); kvaser_pciefd_set_mode() local
878 struct kvaser_pciefd_can *can = netdev_priv(ndev); kvaser_pciefd_get_berr_counter() local
888 struct kvaser_pciefd_can *can = from_timer(can, data, bec_poll_timer); kvaser_pciefd_bec_poll_timer() local
913 struct kvaser_pciefd_can *can; kvaser_pciefd_setup_can_ctrls() local
1173 kvaser_pciefd_change_state(struct kvaser_pciefd_can *can, struct can_frame *cf, enum can_state new_state, enum can_state tx_state, enum can_state rx_state) kvaser_pciefd_change_state() argument
1222 kvaser_pciefd_rx_error_frame(struct kvaser_pciefd_can *can, struct kvaser_pciefd_rx_packet *p) kvaser_pciefd_rx_error_frame() argument
1277 struct kvaser_pciefd_can *can; kvaser_pciefd_handle_error_packet() local
1294 kvaser_pciefd_handle_status_resp(struct kvaser_pciefd_can *can, struct kvaser_pciefd_rx_packet *p) kvaser_pciefd_handle_status_resp() argument
1344 struct kvaser_pciefd_can *can; kvaser_pciefd_handle_status_packet() local
1397 kvaser_pciefd_handle_nack_packet(struct kvaser_pciefd_can *can, struct kvaser_pciefd_rx_packet *p) kvaser_pciefd_handle_nack_packet() argument
1426 struct kvaser_pciefd_can *can; kvaser_pciefd_handle_ack_packet() local
1473 struct kvaser_pciefd_can *can; kvaser_pciefd_handle_eflush_packet() local
1610 kvaser_pciefd_transmit_irq(struct kvaser_pciefd_can *can) kvaser_pciefd_transmit_irq() argument
1663 struct kvaser_pciefd_can *can = pcie->can[i]; kvaser_pciefd_teardown_can_ctrls() local
1773 struct kvaser_pciefd_can *can = pcie->can[i]; kvaser_pciefd_remove_all_ctrls() local
[all...]
/kernel/linux/linux-5.10/net/can/
H A Dproc.c48 #include <linux/can/can-ml.h>
49 #include <linux/can/core.h>
81 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_init_stats()
82 struct can_rcv_lists_stats *rcv_lists_stats = net->can.rcv_lists_stats; in can_init_stats()
109 printk(KERN_ERR "can: calc_rate: count exceeded! %ld\n", in calc_rate()
121 struct net *net = from_timer(net, t, can.stattimer); in can_stat_update()
122 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_stat_update()
180 mod_timer(&net->can.stattimer, round_jiffies(jiffies + HZ)); in can_stat_update()
215 struct can_pkg_stats *pkg_stats = net->can in can_stats_proc_show()
[all...]
H A DMakefile6 obj-$(CONFIG_CAN) += can.o
7 can-y := af_can.o
8 can-$(CONFIG_PROC_FS) += proc.o
10 obj-$(CONFIG_CAN_RAW) += can-raw.o
11 can-raw-y := raw.o
13 obj-$(CONFIG_CAN_BCM) += can-bcm.o
14 can-bcm-y := bcm.o
16 obj-$(CONFIG_CAN_GW) += can-gw.o
17 can-gw-y := gw.o
21 obj-$(CONFIG_CAN_ISOTP) += can
[all...]
H A Daf_can.c58 #include <linux/can.h>
59 #include <linux/can/core.h>
60 #include <linux/can/skb.h>
61 #include <linux/can/can-ml.h>
132 err = request_module("can-proto-%d", protocol); in can_create()
139 pr_err_ratelimited("can: request_module (can-proto-%d) failed.\n", in can_create()
203 struct can_pkg_stats *pkg_stats = dev_net(skb->dev)->can.pkg_stats; in can_send()
218 /* Make sure the CAN frame can pas in can_send()
[all...]
/kernel/linux/linux-6.6/net/can/
H A Dproc.c48 #include <linux/can/can-ml.h>
49 #include <linux/can/core.h>
81 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_init_stats()
82 struct can_rcv_lists_stats *rcv_lists_stats = net->can.rcv_lists_stats; in can_init_stats()
107 printk(KERN_ERR "can: calc_rate: count exceeded! %ld\n", in calc_rate()
117 struct net *net = from_timer(net, t, can.stattimer); in can_stat_update()
118 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_stat_update()
176 mod_timer(&net->can.stattimer, round_jiffies(jiffies + HZ)); in can_stat_update()
213 struct can_pkg_stats *pkg_stats = net->can in can_stats_proc_show()
[all...]
H A DMakefile6 obj-$(CONFIG_CAN) += can.o
7 can-y := af_can.o
8 can-$(CONFIG_PROC_FS) += proc.o
10 obj-$(CONFIG_CAN_RAW) += can-raw.o
11 can-raw-y := raw.o
13 obj-$(CONFIG_CAN_BCM) += can-bcm.o
14 can-bcm-y := bcm.o
16 obj-$(CONFIG_CAN_GW) += can-gw.o
17 can-gw-y := gw.o
21 obj-$(CONFIG_CAN_ISOTP) += can
[all...]
H A Daf_can.c58 #include <linux/can.h>
59 #include <linux/can/core.h>
60 #include <linux/can/skb.h>
61 #include <linux/can/can-ml.h>
132 err = request_module("can-proto-%d", protocol); in can_create()
139 pr_err_ratelimited("can: request_module (can-proto-%d) failed.\n", in can_create()
202 struct can_pkg_stats *pkg_stats = dev_net(skb->dev)->can.pkg_stats; in can_send()
220 /* Make sure the CAN frame can pas in can_send()
[all...]
/kernel/linux/linux-5.10/drivers/net/can/peak_canfd/
H A Dpeak_canfd.c8 #include <linux/can.h>
9 #include <linux/can/dev.h>
99 priv->can.state = CAN_STATE_ERROR_ACTIVE; in pucan_set_normal_mode()
111 priv->can.state = CAN_STATE_ERROR_ACTIVE; in pucan_set_listen_only_mode()
124 priv->can.ctrlmode & in pucan_set_timing_slow()
345 /* this STATUS is the CNF of the RX_BARRIER: Tx path can be setup */ in pucan_handle_status()
365 priv->can.state = CAN_STATE_BUS_OFF; in pucan_handle_status()
366 priv->can.can_stats.bus_off++; in pucan_handle_status()
373 priv->can.state = CAN_STATE_ERROR_PASSIVE; in pucan_handle_status()
374 priv->can in pucan_handle_status()
[all...]
/kernel/linux/linux-6.6/drivers/net/can/peak_canfd/
H A Dpeak_canfd.c8 #include <linux/can.h>
9 #include <linux/can/dev.h>
100 priv->can.state = CAN_STATE_ERROR_ACTIVE; in pucan_set_normal_mode()
112 priv->can.state = CAN_STATE_ERROR_ACTIVE; in pucan_set_listen_only_mode()
125 priv->can.ctrlmode & in pucan_set_timing_slow()
346 /* this STATUS is the CNF of the RX_BARRIER: Tx path can be setup */ in pucan_handle_status()
366 priv->can.state = CAN_STATE_BUS_OFF; in pucan_handle_status()
367 priv->can.can_stats.bus_off++; in pucan_handle_status()
374 priv->can.state = CAN_STATE_ERROR_PASSIVE; in pucan_handle_status()
375 priv->can in pucan_handle_status()
[all...]
/kernel/linux/linux-5.10/drivers/net/can/ifi_canfd/
H A Difi_canfd.c6 * Details about this controller can be found at
25 #include <linux/can/dev.h>
220 struct can_priv can; /* must be the first member */ member
237 if (priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) in ifi_canfd_irq_enable()
395 priv->can.can_stats.bus_error++; in ifi_canfd_handle_lec_err()
467 priv->can.can_stats.error_warning++; in ifi_canfd_handle_state_change()
468 priv->can.state = CAN_STATE_ERROR_ACTIVE; in ifi_canfd_handle_state_change()
472 priv->can.can_stats.error_warning++; in ifi_canfd_handle_state_change()
473 priv->can.state = CAN_STATE_ERROR_WARNING; in ifi_canfd_handle_state_change()
477 priv->can in ifi_canfd_handle_state_change()
[all...]
/kernel/linux/linux-6.6/drivers/net/can/ifi_canfd/
H A Difi_canfd.c6 * Details about this controller can be found at
25 #include <linux/can/dev.h>
220 struct can_priv can; /* must be the first member */ member
237 if (priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) in ifi_canfd_irq_enable()
392 priv->can.can_stats.bus_error++; in ifi_canfd_handle_lec_err()
461 priv->can.can_stats.error_warning++; in ifi_canfd_handle_state_change()
462 priv->can.state = CAN_STATE_ERROR_ACTIVE; in ifi_canfd_handle_state_change()
466 priv->can.can_stats.error_warning++; in ifi_canfd_handle_state_change()
467 priv->can.state = CAN_STATE_ERROR_WARNING; in ifi_canfd_handle_state_change()
471 priv->can in ifi_canfd_handle_state_change()
[all...]
/kernel/linux/linux-6.6/drivers/net/can/usb/
H A Dmcba_usb.c6 * This driver is inspired by the 4.6.2 version of net/can/usb/usb_8dev.c
10 #include <linux/can.h>
11 #include <linux/can/dev.h>
12 #include <linux/can/error.h>
67 bool can; member
72 struct can_priv can; /* must be the first member */ member
189 ctx->can = true; in mcba_usb_get_free_ctx()
191 ctx->can = false; in mcba_usb_get_free_ctx()
232 if (ctx->can) { in mcba_usb_write_bulk_callback()
471 priv->can in mcba_usb_process_ka_usb()
[all...]
H A Dgs_usb.c25 #include <linux/can.h>
26 #include <linux/can/dev.h>
27 #include <linux/can/error.h>
28 #include <linux/can/rx-offload.h>
280 * linux/can.h and linux/can/error.h, and no additional mapping is necessary.
300 struct can_priv can; /* must be the first member */ member
491 struct can_device_stats *can_stats = &dev->can.can_stats; in gs_update_state()
494 dev->can.state = CAN_STATE_ERROR_ACTIVE; in gs_update_state()
497 dev->can in gs_update_state()
[all...]
H A Desd_usb.c9 #include <linux/can.h>
10 #include <linux/can/dev.h>
11 #include <linux/can/error.h>
282 struct can_priv can; /* must be the first member */ member
316 if (!(priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) && in esd_usb_rx_event()
348 if (new_state != priv->can.state) { in esd_usb_rx_event()
355 priv->can.can_stats.bus_error++; in esd_usb_rx_event()
433 can_frame_set_cc_len(cf, msg->rx.dlc & ~ESD_USB_RTR, priv->can.ctrlmode); in esd_usb_rx_can_msg()
734 * filter configuration for an ID subset. In this case you can add in esd_usb_start()
755 priv->can in esd_usb_start()
[all...]
H A Df81604.c11 #include <linux/can.h>
12 #include <linux/can/dev.h>
13 #include <linux/can/error.h>
14 #include <linux/can/platform/sja1000.h>
138 struct can_priv can; member
289 priv->can.state = CAN_STATE_STOPPED; in f81604_set_reset_mode()
316 priv->can.state = CAN_STATE_ERROR_ACTIVE; in f81604_set_normal_mode()
319 if (!(priv->can.ctrlmode & in f81604_set_normal_mode()
328 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in f81604_set_normal_mode()
330 if (priv->can in f81604_set_normal_mode()
[all...]
H A Ducan.c24 * error frames (see uapi/linux/can/error.h) and sends it using the
28 #include <linux/can.h>
29 #include <linux/can/dev.h>
30 #include <linux/can/error.h>
79 /* start the can transceiver - val defines the operation mode */
81 /* cancel pending transmissions and stop the can transceiver */
83 /* send can transceiver into low-power sleep mode */
85 /* wake up can transceiver from low-power sleep mode */
87 /* reset the can transceiver */
89 /* get piece of info from the can transceive
276 struct can_priv can; global() member
[all...]
/kernel/linux/linux-6.6/drivers/net/can/sja1000/
H A Dsja1000.c62 #include <linux/can/dev.h>
63 #include <linux/can/error.h>
127 priv->can.state = CAN_STATE_STOPPED; in set_reset_mode()
150 priv->can.state = CAN_STATE_ERROR_ACTIVE; in set_normal_mode()
152 if (priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) in set_normal_mode()
161 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in set_normal_mode()
163 if (priv->can.ctrlmode & CAN_CTRLMODE_PRESUME_ACK) in set_normal_mode()
210 if (priv->can.state != CAN_STATE_STOPPED) in sja1000_start()
249 struct can_bittiming *bt = &priv->can.bittiming; in sja1000_set_bittiming()
255 if (priv->can in sja1000_set_bittiming()
[all...]
/kernel/linux/linux-5.10/drivers/net/can/sja1000/
H A Dsja1000.c61 #include <linux/can/dev.h>
62 #include <linux/can/error.h>
63 #include <linux/can/led.h>
127 priv->can.state = CAN_STATE_STOPPED; in set_reset_mode()
150 priv->can.state = CAN_STATE_ERROR_ACTIVE; in set_normal_mode()
152 if (priv->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) in set_normal_mode()
161 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in set_normal_mode()
163 if (priv->can.ctrlmode & CAN_CTRLMODE_PRESUME_ACK) in set_normal_mode()
209 if (priv->can.state != CAN_STATE_STOPPED) in sja1000_start()
247 struct can_bittiming *bt = &priv->can in sja1000_set_bittiming()
[all...]
/kernel/linux/linux-5.10/drivers/net/can/cc770/
H A Dcc770_platform.c19 * Please see include/linux/can/platform/cc770.h for description of
25 * can@3,100 {
33 * See "Documentation/devicetree/bindings/net/can/cc770.txt" for further
44 #include <linux/can.h>
45 #include <linux/can/dev.h>
46 #include <linux/can/platform/cc770.h>
84 priv->can.clock.freq = clkext; in cc770_get_of_node_data()
87 if (priv->can.clock.freq > 10000000) { in cc770_get_of_node_data()
89 priv->can.clock.freq /= 2; in cc770_get_of_node_data()
93 if (priv->can in cc770_get_of_node_data()
[all...]
/kernel/linux/linux-6.6/drivers/net/can/cc770/
H A Dcc770_platform.c19 * Please see include/linux/can/platform/cc770.h for description of
25 * can@3,100 {
33 * See "Documentation/devicetree/bindings/net/can/cc770.txt" for further
44 #include <linux/can.h>
45 #include <linux/can/dev.h>
46 #include <linux/can/platform/cc770.h>
84 priv->can.clock.freq = clkext; in cc770_get_of_node_data()
87 if (priv->can.clock.freq > 10000000) { in cc770_get_of_node_data()
89 priv->can.clock.freq /= 2; in cc770_get_of_node_data()
93 if (priv->can in cc770_get_of_node_data()
[all...]
/kernel/linux/linux-5.10/drivers/net/can/usb/
H A Dmcba_usb.c6 * This driver is inspired by the 4.6.2 version of net/can/usb/usb_8dev.c
10 #include <linux/can.h>
11 #include <linux/can/dev.h>
12 #include <linux/can/error.h>
13 #include <linux/can/led.h>
68 bool can; member
73 struct can_priv can; /* must be the first member */ member
190 ctx->can = true; in mcba_usb_get_free_ctx()
193 ctx->can = false; in mcba_usb_get_free_ctx()
236 if (ctx->can) { in mcba_usb_write_bulk_callback()
[all...]
H A Ducan.c24 * error frames (see uapi/linux/can/error.h) and sends it using the
28 #include <linux/can.h>
29 #include <linux/can/dev.h>
30 #include <linux/can/error.h>
78 /* start the can transceiver - val defines the operation mode */
80 /* cancel pending transmissions and stop the can transceiver */
82 /* send can transceiver into low-power sleep mode */
84 /* wake up can transceiver from low-power sleep mode */
86 /* reset the can transceiver */
88 /* get piece of info from the can transceive
275 struct can_priv can; global() member
[all...]
/kernel/linux/linux-5.10/drivers/net/can/mscan/
H A Dmscan.c19 #include <linux/can/dev.h>
20 #include <linux/can/error.h>
90 priv->can.state = CAN_STATE_SLEEPING; in mscan_set_mode()
103 priv->can.state = CAN_STATE_STOPPED; in mscan_set_mode()
120 priv->can.state = CAN_STATE_ERROR_ACTIVE; in mscan_set_mode()
154 priv->can.state = state_map[max(MSCAN_STATE_RX(canrflg), in mscan_start()
171 priv->can.state = CAN_STATE_ERROR_ACTIVE; in mscan_restart()
178 if (priv->can.state <= CAN_STATE_BUS_OFF) in mscan_restart()
290 return priv->can.state; in get_new_state()
354 if (new_state != priv->can in mscan_get_err_frame()
[all...]
/kernel/linux/linux-6.6/drivers/net/can/mscan/
H A Dmscan.c19 #include <linux/can/dev.h>
20 #include <linux/can/error.h>
90 priv->can.state = CAN_STATE_SLEEPING; in mscan_set_mode()
103 priv->can.state = CAN_STATE_STOPPED; in mscan_set_mode()
120 priv->can.state = CAN_STATE_ERROR_ACTIVE; in mscan_set_mode()
154 priv->can.state = state_map[max(MSCAN_STATE_RX(canrflg), in mscan_start()
171 priv->can.state = CAN_STATE_ERROR_ACTIVE; in mscan_restart()
178 if (priv->can.state <= CAN_STATE_BUS_OFF) in mscan_restart()
290 return priv->can.state; in get_new_state()
354 if (new_state != priv->can in mscan_get_err_frame()
[all...]

Completed in 30 milliseconds

12345678910>>...19