Home
last modified time | relevance | path

Searched refs:can (Results 51 - 75 of 454) sorted by relevance

12345678910>>...19

/kernel/linux/linux-6.6/drivers/net/can/
H A Dvcan.c49 #include <linux/can.h>
50 #include <linux/can/can-ml.h>
51 #include <linux/can/dev.h>
52 #include <linux/can/skb.h>
65 * See Documentation/networking/can.rst for details.
H A Dgrcan.c10 * Full documentation of the GRCAN core can be found here:
13 * See "Documentation/devicetree/bindings/net/can/grcan.txt" for information on
32 #include <linux/can/dev.h>
251 struct can_priv can; /* must be the first member */ member
263 * frames can be echoed back. See the "Notes on the tx cyclic buffer
274 * as it can be changed in several places and together with decisions on
389 /* Configuration parameters that can be set via module parameters */
409 struct can_bittiming *bt = &priv->can.bittiming; in grcan_set_bittiming()
473 priv->can.state = CAN_STATE_STOPPED; in grcan_reset()
563 !(priv->can in grcan_lost_one_shot_frame()
[all...]
H A Dti_hecc.c26 #include <linux/can/dev.h>
27 #include <linux/can/error.h>
28 #include <linux/can/rx-offload.h>
178 struct can_priv can; /* MUST be first member/field */ member
257 struct can_bittiming *bit_timing = &priv->can.bittiming; in ti_hecc_set_btc()
263 if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) { in ti_hecc_set_btc()
314 /* Note: On HECC, BTC can be programmed only in initialization mode, so in ti_hecc_reset()
315 * it is expected that the can bittiming parameters are set via ip in ti_hecc_reset()
399 priv->can.state = CAN_STATE_ERROR_ACTIVE; in ti_hecc_start()
413 priv->can in ti_hecc_stop()
[all...]
H A Dat91_can.c25 #include <linux/can/dev.h>
26 #include <linux/can/error.h>
126 struct can_priv can; /* must be the first member! */ member
355 const struct can_bittiming *bt = &priv->can.bittiming; in at91_set_bittiming()
358 reg_br = ((priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) ? 1 << 24 : 0) | in at91_set_bittiming()
398 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in at91_chip_start()
404 priv->can.state = CAN_STATE_ERROR_ACTIVE; in at91_chip_start()
423 priv->can.state = state; in at91_chip_stop()
560 * @cf: can frame where to store message
563 * given can fram
[all...]
H A Dbxcan.c13 #include <linux/can.h>
14 #include <linux/can/dev.h>
15 #include <linux/can/error.h>
16 #include <linux/can/rx-offload.h>
145 u32 id; /* can identifier */
166 struct can_priv can; member
469 enum can_state new_state = priv->can.state; in bxcan_handle_state_change()
490 if (unlikely(new_state == priv->can.state)) in bxcan_handle_state_change()
534 priv->can.can_stats.bus_error++; in bxcan_handle_bus_err()
616 if (priv->can in bxcan_state_change_isr()
[all...]
H A Dxilinx_can.c29 #include <linux/can/dev.h>
30 #include <linux/can/error.h>
189 * @can: CAN private data structure.
193 * @tx_max: Maximum number packets the driver can send
207 struct can_priv can; member
424 struct can_bittiming *bt = &priv->can.bittiming; in xcan_set_bittiming()
425 struct can_bittiming *dbt = &priv->can.data_bittiming; in xcan_set_bittiming()
459 if (can_tdc_is_enabled(&priv->can)) { in xcan_set_bittiming()
461 btr0 |= FIELD_PREP(XCAN_BRPR_TDCO_MASK, priv->can.tdc.tdco) | in xcan_set_bittiming()
464 btr0 |= FIELD_PREP(XCAN_2_BRPR_TDCO_MASK, priv->can in xcan_set_bittiming()
[all...]
H A Dcan327.c4 * This driver started as a derivative of linux/drivers/net/can/slcan.c
34 #include <linux/can.h>
35 #include <linux/can/dev.h>
36 #include <linux/can/error.h>
37 #include <linux/can/rx-offload.h>
68 struct can_priv can; member
243 /* We can only set the bitrate as a fraction of 500000. in can327_init_device()
247 elm->can_bitrate_divisor = 500000 / elm->can.bittiming.bitrate; in can327_init_device()
293 elm->can.can_stats.bus_off++; in can327_uart_side_failure()
295 elm->can in can327_uart_side_failure()
[all...]
/kernel/linux/linux-5.10/drivers/net/can/
H A Dgrcan.c10 * Full documentation of the GRCAN core can be found here:
13 * See "Documentation/devicetree/bindings/net/can/grcan.txt" for information on
31 #include <linux/can/dev.h>
249 struct can_priv can; /* must be the first member */ member
262 * frames can be echoed back. See the "Notes on the tx cyclic buffer
273 * as it can be changed in several places and together with decisions on
388 /* Configuration parameters that can be set via module parameters */
408 struct can_bittiming *bt = &priv->can.bittiming; in grcan_set_bittiming()
472 priv->can.state = CAN_STATE_STOPPED; in grcan_reset()
564 !(priv->can in grcan_lost_one_shot_frame()
[all...]
H A Dti_hecc.c10 * This program is free software; you can redistribute it and/or
35 #include <linux/can/dev.h>
36 #include <linux/can/error.h>
37 #include <linux/can/led.h>
38 #include <linux/can/rx-offload.h>
188 struct can_priv can; /* MUST be first member/field */ member
267 struct can_bittiming *bit_timing = &priv->can.bittiming; in ti_hecc_set_btc()
273 if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) { in ti_hecc_set_btc()
324 /* Note: On HECC, BTC can be programmed only in initialization mode, so in ti_hecc_reset()
325 * it is expected that the can bittimin in ti_hecc_reset()
[all...]
H A Dxilinx_can.c27 #include <linux/can/dev.h>
28 #include <linux/can/error.h>
29 #include <linux/can/led.h>
182 * @can: CAN private data structure.
186 * @tx_max: Maximum number packets the driver can send
198 struct can_priv can; member
393 struct can_bittiming *bt = &priv->can.bittiming; in xcan_set_bittiming()
394 struct can_bittiming *dbt = &priv->can.data_bittiming; in xcan_set_bittiming()
493 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in xcan_chip_start()
510 priv->can in xcan_chip_start()
[all...]
H A Dpch_can.c18 #include <linux/can.h>
19 #include <linux/can/dev.h>
20 #include <linux/can/error.h>
161 struct can_priv can; member
224 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in pch_can_set_optmode()
227 if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) in pch_can_set_optmode()
486 enum can_state state = priv->can.state; in pch_can_error()
498 priv->can.can_stats.bus_off++; in pch_can_error()
508 priv->can.can_stats.error_warning++; in pch_can_error()
519 priv->can in pch_can_error()
[all...]
H A Dat91_can.c24 #include <linux/can/dev.h>
25 #include <linux/can/error.h>
26 #include <linux/can/led.h>
126 struct can_priv can; /* must be the first member! */ member
355 const struct can_bittiming *bt = &priv->can.bittiming; in at91_set_bittiming()
358 reg_br = ((priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) ? 1 << 24 : 0) | in at91_set_bittiming()
398 if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) in at91_chip_start()
404 priv->can.state = CAN_STATE_ERROR_ACTIVE; in at91_chip_start()
423 priv->can.state = state; in at91_chip_stop()
565 * @cf: can fram
[all...]
/kernel/linux/linux-6.6/drivers/net/can/rcar/
H A Drcar_can.c16 #include <linux/can/dev.h>
91 struct can_priv can; /* Must be the first member! */ member
300 priv->can.can_stats.bus_error++; in rcar_can_error()
307 priv->can.state = CAN_STATE_ERROR_WARNING; in rcar_can_error()
308 priv->can.can_stats.error_warning++; in rcar_can_error()
317 priv->can.state = CAN_STATE_ERROR_PASSIVE; in rcar_can_error()
318 priv->can.can_stats.error_passive++; in rcar_can_error()
330 priv->can.state = CAN_STATE_BUS_OFF; in rcar_can_error()
333 priv->can.can_stats.bus_off++; in rcar_can_error()
426 struct can_bittiming *bt = &priv->can in rcar_can_set_bittiming()
[all...]
H A Drcar_canfd.c7 /* The R-Car CAN FD controller can operate in either one of the below two modes
12 * mode, the controller acts as a CAN FD node that can also interoperate with
16 * "renesas,no-can-fd" optional property to the device tree node. A h/w reset is
26 #include <linux/can/dev.h>
529 struct can_priv can; /* Must be the first member */ member
1019 priv->can.can_stats.bus_error++; in rcar_canfd_error()
1059 priv->can.can_stats.arbitration_lost++; in rcar_canfd_error()
1070 priv->can.state = CAN_STATE_ERROR_WARNING; in rcar_canfd_error()
1071 priv->can.can_stats.error_warning++; in rcar_canfd_error()
1080 priv->can in rcar_canfd_error()
[all...]
/kernel/linux/linux-5.10/drivers/net/can/c_can/
H A Dc_can.c19 * Bosch C_CAN user manual can be obtained from:
40 #include <linux/can.h>
41 #include <linux/can/dev.h>
42 #include <linux/can/error.h>
43 #include <linux/can/led.h>
461 * Store the message in the interface so we can call in c_can_start_xmit()
498 const struct can_bittiming *bt = &priv->can.bittiming; in c_can_set_bittiming()
532 * C_CAN provides a total of 32 message objects that can be configured
593 if ((priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) && in c_can_chip_config()
594 (priv->can in c_can_chip_config()
[all...]
/kernel/linux/linux-6.6/drivers/net/can/c_can/
H A Dc_can_main.c19 * Bosch C_CAN user manual can be obtained from:
40 #include <linux/can.h>
41 #include <linux/can/dev.h>
42 #include <linux/can/error.h>
474 /* Store the message in the interface so we can call in c_can_start_xmit()
507 const struct can_bittiming *bt = &priv->can.bittiming; in c_can_set_bittiming()
540 * C_CAN provides a total of 32 message objects that can be configured
602 if ((priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) && in c_can_chip_config()
603 (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK)) { in c_can_chip_config()
607 } else if (priv->can in c_can_chip_config()
[all...]
/kernel/linux/linux-5.10/drivers/net/can/rcar/
H A Drcar_canfd.c7 /* The R-Car CAN FD controller can operate in either one of the below two modes
12 * mode, the controller acts as a CAN FD node that can also interoperate with
16 * "renesas,no-can-fd" optional property to the device tree node. A h/w reset is
32 #include <linux/can/led.h>
33 #include <linux/can/dev.h>
494 struct can_priv can; /* Must be the first member */ member
939 priv->can.can_stats.bus_error++; in rcar_canfd_error()
979 priv->can.can_stats.arbitration_lost++; in rcar_canfd_error()
990 priv->can.state = CAN_STATE_ERROR_WARNING; in rcar_canfd_error()
991 priv->can in rcar_canfd_error()
[all...]
/kernel/linux/linux-5.10/drivers/net/can/m_can/
H A Dm_can.h9 #include <linux/can/core.h>
10 #include <linux/can/led.h>
28 #include <linux/can/dev.h>
73 struct can_priv can; member
/kernel/linux/linux-6.6/drivers/net/can/m_can/
H A Dm_can.h9 #include <linux/can/core.h>
10 #include <linux/can/dev.h>
11 #include <linux/can/rx-offload.h>
74 struct can_priv can; member
/kernel/linux/linux-5.10/drivers/net/can/usb/peak_usb/
H A Dpcan_usb_core.c18 #include <linux/can.h>
19 #include <linux/can/dev.h>
20 #include <linux/can/error.h>
517 /* can set bus on now */ in peak_usb_start()
524 dev->can.state = CAN_STATE_ERROR_ACTIVE; in peak_usb_start()
614 dev->can.state = CAN_STATE_STOPPED; in peak_usb_ndo_stop()
622 /* can set bus off now */ in peak_usb_ndo_stop()
637 /* finally MUST update can state */ in peak_usb_restart_complete()
638 dev->can.state = CAN_STATE_ERROR_ACTIVE; in peak_usb_restart_complete()
640 /* netdev queue can b in peak_usb_restart_complete()
[all...]
/kernel/linux/linux-6.6/drivers/net/can/usb/peak_usb/
H A Dpcan_usb_core.c21 #include <linux/can.h>
22 #include <linux/can/dev.h>
23 #include <linux/can/error.h>
543 /* can set bus on now */ in peak_usb_start()
550 dev->can.state = CAN_STATE_ERROR_ACTIVE; in peak_usb_start()
640 dev->can.state = CAN_STATE_STOPPED; in peak_usb_ndo_stop()
648 /* can set bus off now */ in peak_usb_ndo_stop()
664 /* finally MUST update can state */ in peak_usb_restart_complete()
665 dev->can.state = CAN_STATE_ERROR_ACTIVE; in peak_usb_restart_complete()
667 /* netdev queue can b in peak_usb_restart_complete()
[all...]
/kernel/linux/linux-6.6/drivers/net/can/usb/etas_es58x/
H A Des58x_core.c254 * echo operations (i.e. any access to priv->echo_skb[]) can be done
261 return es58x_priv(netdev)->can.state < CAN_STATE_BUS_OFF; in es58x_is_can_state_active()
266 * many skb slots can be taken before we should stop the network
271 * bulk send. This function can be used to determine when to wake or
280 u32 threshold = priv->can.echo_skb_max - in es58x_is_echo_skb_threshold_reached()
333 priv->can.echo_skb_max); in es58x_can_get_echo_skb_recovery()
405 * drivers/net/can/net/dev.c:can_flush_echo_skb(). in es58x_can_get_echo_skb()
439 struct sk_buff *skb = priv->can.echo_skb[skb_idx]; in es58x_can_get_echo_skb()
467 * drivers/net/can/dev.c:can_flush_echo_skb(). This function resets
544 priv->can in es58x_tx_ack_msg()
662 struct can_priv *can = netdev_priv(netdev); es58x_rx_err_msg() local
2053 struct can_priv *can = &priv->can; es58x_init_priv() local
[all...]
/kernel/linux/linux-6.6/drivers/net/can/usb/kvaser_usb/
H A Dkvaser_usb_core.c26 #include <linux/can.h>
27 #include <linux/can/dev.h>
28 #include <linux/can/error.h>
29 #include <linux/can/netlink.h>
453 priv->can.state = CAN_STATE_ERROR_ACTIVE; in kvaser_usb_open()
527 priv->can.state = CAN_STATE_STOPPED; in kvaser_usb_close()
538 struct can_bittiming *bt = &priv->can.bittiming; in kvaser_usb_set_bittiming()
549 if (priv->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) in kvaser_usb_set_bittiming()
582 struct can_bittiming *dbt = &priv->can.data_bittiming; in kvaser_usb_set_data_bittiming()
819 priv->can in kvaser_usb_init_one()
[all...]
/kernel/linux/linux-5.10/net/can/j1939/
H A DMakefile3 obj-$(CONFIG_CAN_J1939) += can-j1939.o
5 can-j1939-objs := \
/kernel/linux/linux-6.6/net/can/j1939/
H A DMakefile3 obj-$(CONFIG_CAN_J1939) += can-j1939.o
5 can-j1939-objs := \

Completed in 29 milliseconds

12345678910>>...19