Home
last modified time | relevance | path

Searched refs:can_frame (Results 1 – 25 of 58) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/net/can/usb/peak_usb/
Dpcan_usb_pro.c526 struct can_frame *can_frame; in pcan_usb_pro_handle_canmsg() local
530 skb = alloc_can_skb(netdev, &can_frame); in pcan_usb_pro_handle_canmsg()
534 can_frame->can_id = le32_to_cpu(rx->id); in pcan_usb_pro_handle_canmsg()
535 can_frame->can_dlc = rx->len & 0x0f; in pcan_usb_pro_handle_canmsg()
538 can_frame->can_id |= CAN_EFF_FLAG; in pcan_usb_pro_handle_canmsg()
541 can_frame->can_id |= CAN_RTR_FLAG; in pcan_usb_pro_handle_canmsg()
543 memcpy(can_frame->data, rx->data, can_frame->can_dlc); in pcan_usb_pro_handle_canmsg()
550 netdev->stats.rx_bytes += can_frame->can_dlc; in pcan_usb_pro_handle_canmsg()
563 struct can_frame *can_frame; in pcan_usb_pro_handle_error() local
614 skb = alloc_can_err_skb(netdev, &can_frame); in pcan_usb_pro_handle_error()
[all …]
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dcan.h24 struct can_frame { struct
42 #define CAN_MTU (sizeof(struct can_frame)) argument
/kernel/linux/linux-5.10/net/can/j1939/
Dmain.c31 #define J1939_CAN_HDR (offsetof(struct can_frame, data))
34 #define J1939_CAN_FTR (sizeof(struct can_frame) - J1939_CAN_HDR - \
35 sizeof(((struct can_frame *)0)->data))
43 struct can_frame *cf; in j1939_can_recv()
316 struct can_frame *cf; in j1939_send_one()
/kernel/linux/linux-5.10/include/uapi/linux/
Dcan.h104 struct can_frame { struct
150 #define CAN_MTU (sizeof(struct can_frame))
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dcan.h37 struct can_frame { struct
55 #define CAN_MTU (sizeof(struct can_frame)) argument
/kernel/linux/linux-5.10/include/linux/can/
Ddev.h216 void can_change_state(struct net_device *dev, struct can_frame *cf,
232 struct sk_buff *alloc_can_skb(struct net_device *dev, struct can_frame **cf);
236 struct can_frame **cf);
Dskb.h37 struct can_frame cf[];
/kernel/linux/linux-5.10/drivers/net/can/
Djanz-ican3.c911 struct can_frame *cf) in ican3_to_can_frame()
942 struct can_frame *cf, in can_frame_to_ican3()
994 struct can_frame *cf; in ican3_handle_msglost()
1038 struct can_frame *cf; in ican3_handle_cevtind()
1287 struct can_frame *cf; in ican3_get_echo_skb()
1296 cf = (struct can_frame *)skb->data; in ican3_get_echo_skb()
1324 struct can_frame *cf = (struct can_frame *)skb->data; in ican3_echo_skb_matches()
1326 struct can_frame *echo_cf; in ican3_echo_skb_matches()
1331 echo_cf = (struct can_frame *)echo_skb->data; in ican3_echo_skb_matches()
1378 struct can_frame *cf; in ican3_recv_skb()
[all …]
Dslcan.c146 struct can_frame cf; in slc_bump()
204 skb = dev_alloc_skb(sizeof(struct can_frame) + in slc_bump()
218 skb_put_data(skb, &cf, sizeof(struct can_frame)); in slc_bump()
252 static void slc_encaps(struct slcan *sl, struct can_frame *cf) in slc_encaps()
374 slc_encaps(sl, (struct can_frame *) skb->data); /* encaps & send */ in slc_xmit()
Dat91_can.c453 struct can_frame *cf = (struct can_frame *)skb->data; in at91_start_xmit()
543 struct can_frame *cf; in at91_rx_overflow_err()
571 struct can_frame *cf) in at91_read_mb()
610 struct can_frame *cf; in at91_read_msg()
721 struct can_frame *cf, u32 reg_sr) in at91_poll_err_frame()
771 struct can_frame *cf; in at91_poll_err()
876 struct can_frame *cf, enum can_state new_state) in at91_irq_err_state()
1012 struct can_frame *cf; in at91_irq_err()
/kernel/linux/linux-5.10/net/sched/
Dem_canid.c48 struct can_frame *cf = (struct can_frame *)skb->data; in em_canid_get_id()
/kernel/linux/linux-5.10/include/uapi/linux/can/
Dbcm.h74 struct can_frame frames[0];
Dgw.h111 struct can_frame cf;
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/can/
Dbcm.h34 struct can_frame frames[0];
Dgw.h70 struct can_frame cf;
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/can/
Dbcm.h21 struct can_frame frames[0];
Dgw.h50 struct can_frame cf;
/kernel/linux/linux-5.10/drivers/net/can/cc770/
Dcc770.c388 struct can_frame *cf = (struct can_frame *)priv->tx_skb->data; in cc770_tx()
452 struct can_frame *cf; in cc770_rx()
503 struct can_frame *cf; in cc770_err()
669 struct can_frame *cf; in cc770_tx_interrupt()
701 cf = (struct can_frame *)priv->tx_skb->data; in cc770_tx_interrupt()
/kernel/linux/linux-5.10/drivers/net/can/mscan/
Dmscan.c188 struct can_frame *frame = (struct can_frame *)skb->data; in mscan_start_xmit()
293 static void mscan_get_rx_frame(struct net_device *dev, struct can_frame *frame) in mscan_get_rx_frame()
333 static void mscan_get_err_frame(struct net_device *dev, struct can_frame *frame, in mscan_get_err_frame()
387 struct can_frame *frame; in mscan_rx_poll()
/kernel/linux/linux-5.10/Documentation/networking/
Dcan.rst236 struct can_frame {
249 struct can_frame to the user space.
296 of reading a struct can_frame:
300 struct can_frame frame;
302 nbytes = read(s, &frame, sizeof(struct can_frame));
310 if (nbytes < sizeof(struct can_frame)) {
319 nbytes = write(s, &frame, sizeof(struct can_frame));
330 struct can_frame frame;
332 nbytes = recvfrom(s, &frame, sizeof(struct can_frame),
350 nbytes = sendto(s, &frame, sizeof(struct can_frame),
[all …]
/kernel/linux/linux-5.10/drivers/net/can/spi/
Dhi311x.c261 static void hi3110_hw_tx(struct spi_device *spi, struct can_frame *frame) in hi3110_hw_tx()
317 struct can_frame *frame; in hi3110_hw_rx()
579 struct can_frame *frame; in hi3110_tx_work_handler()
586 frame = (struct can_frame *)priv->tx_skb->data; in hi3110_tx_work_handler()
662 struct can_frame *cf; in hi3110_can_ist()
693 struct can_frame *cf; in hi3110_can_ist()
/kernel/linux/linux-5.10/drivers/net/can/c_can/
Dc_can.c294 struct can_frame *frame, int idx) in c_can_setup_tx_object()
352 struct can_frame *frame; in c_can_handle_lost_msg_obj()
378 struct can_frame *frame; in c_can_read_msg_object()
444 struct can_frame *frame = (struct can_frame *)skb->data; in c_can_start_xmit()
892 struct can_frame *cf; in c_can_handle_state_change()
979 struct can_frame *cf; in c_can_handle_bus_err()
/kernel/linux/linux-5.10/net/can/
Daf_can.c582 struct can_frame *cf = (struct can_frame *)skb->data; in can_rcv_filter()
870 BUILD_BUG_ON(offsetof(struct can_frame, can_dlc) != in can_init()
872 offsetof(struct can_frame, data) != in can_init()
/kernel/linux/linux-5.10/drivers/net/can/sja1000/
Dsja1000.c285 struct can_frame *cf = (struct can_frame *)skb->data; in sja1000_start_xmit()
341 struct can_frame *cf; in sja1000_rx()
394 struct can_frame *cf; in sja1000_err()
/kernel/linux/linux-5.10/drivers/net/can/dev/
Ddev.c395 void can_change_state(struct net_device *dev, struct can_frame *cf, in can_change_state()
578 struct can_frame *cf; in can_restart()
676 struct sk_buff *alloc_can_skb(struct net_device *dev, struct can_frame **cf) in alloc_can_skb()
681 sizeof(struct can_frame)); in alloc_can_skb()
697 *cf = skb_put_zero(skb, sizeof(struct can_frame)); in alloc_can_skb()
731 struct sk_buff *alloc_can_err_skb(struct net_device *dev, struct can_frame **cf) in alloc_can_err_skb()

123