Home
last modified time | relevance | path

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

123

/Linux-v6.6/include/linux/can/
Dskb.h30 struct sk_buff *alloc_can_skb(struct net_device *dev, struct can_frame **cf);
37 struct can_frame **cf);
60 struct can_frame cf[];
106 struct can_frame *cf = (struct can_frame *)skb->data; in can_is_can_skb()
150 const struct can_frame *cf = (struct can_frame *)skb->data; in can_skb_get_data_len()
Dlength.h267 static inline u8 can_get_cc_dlc(const struct can_frame *cf, const u32 ctrlmode) in can_get_cc_dlc()
280 static inline void can_frame_set_cc_len(struct can_frame *cf, const u8 dlc, in can_frame_set_cc_len()
/Linux-v6.6/drivers/net/can/usb/peak_usb/
Dpcan_usb_pro.c539 struct can_frame *can_frame; in pcan_usb_pro_handle_canmsg() local
543 skb = alloc_can_skb(netdev, &can_frame); in pcan_usb_pro_handle_canmsg()
547 can_frame->can_id = le32_to_cpu(rx->id); in pcan_usb_pro_handle_canmsg()
548 can_frame->len = rx->len & 0x0f; in pcan_usb_pro_handle_canmsg()
551 can_frame->can_id |= CAN_EFF_FLAG; in pcan_usb_pro_handle_canmsg()
554 can_frame->can_id |= CAN_RTR_FLAG; in pcan_usb_pro_handle_canmsg()
556 memcpy(can_frame->data, rx->data, can_frame->len); in pcan_usb_pro_handle_canmsg()
558 netdev->stats.rx_bytes += can_frame->len; in pcan_usb_pro_handle_canmsg()
578 struct can_frame *can_frame; in pcan_usb_pro_handle_error() local
629 skb = alloc_can_err_skb(netdev, &can_frame); in pcan_usb_pro_handle_error()
[all …]
/Linux-v6.6/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()
322 struct can_frame *cf; in j1939_send_one()
/Linux-v6.6/drivers/net/can/dev/
Dskb.c204 struct sk_buff *alloc_can_skb(struct net_device *dev, struct can_frame **cf) in alloc_can_skb()
209 sizeof(struct can_frame)); in alloc_can_skb()
220 *cf = skb_put_zero(skb, sizeof(struct can_frame)); in alloc_can_skb()
285 struct sk_buff *alloc_can_err_skb(struct net_device *dev, struct can_frame **cf) in alloc_can_err_skb()
/Linux-v6.6/include/uapi/linux/
Dcan.h120 struct can_frame { struct
216 #define CAN_MTU (sizeof(struct can_frame))
/Linux-v6.6/drivers/net/can/
Dcan327.c104 struct can_frame can_frame_to_send;
171 static void can327_send_frame(struct can327 *elm, struct can_frame *frame) in can327_send_frame()
284 struct can_frame *frame; in can327_uart_side_failure()
329 struct can_frame *frame; in can327_parse_error()
393 struct can_frame *frame; in can327_parse_frame()
550 struct can_frame *frame = &elm->can_frame_to_send; in can327_handle_prompt()
816 struct can_frame *frame = (struct can_frame *)skb->data; in can327_netdev_start_xmit()
Djanz-ican3.c912 struct can_frame *cf) in ican3_to_can_frame()
943 struct can_frame *cf, in can_frame_to_ican3()
995 struct can_frame *cf; in ican3_handle_msglost()
1039 struct can_frame *cf; in ican3_handle_cevtind()
1290 struct can_frame *cf; in ican3_get_echo_skb()
1299 cf = (struct can_frame *)skb->data; in ican3_get_echo_skb()
1328 struct can_frame *cf = (struct can_frame *)skb->data; in ican3_echo_skb_matches()
1330 struct can_frame *echo_cf; in ican3_echo_skb_matches()
1335 echo_cf = (struct can_frame *)echo_skb->data; in ican3_echo_skb_matches()
1382 struct can_frame *cf; in ican3_recv_skb()
[all …]
Dat91_can.c451 struct can_frame *cf = (struct can_frame *)skb->data; in at91_start_xmit()
540 struct can_frame *cf; in at91_rx_overflow_err()
566 struct can_frame *cf) in at91_read_mb()
605 struct can_frame *cf; in at91_read_msg()
716 struct can_frame *cf, u32 reg_sr) in at91_poll_err_frame()
766 struct can_frame *cf; in at91_poll_err()
868 struct can_frame *cf, enum can_state new_state) in at91_irq_err_state()
998 struct can_frame *cf; in at91_irq_err()
Dsun4i_can.c430 struct can_frame *cf = (struct can_frame *)skb->data; in sun4ican_start_xmit()
480 struct can_frame *cf; in sun4i_can_rx()
529 struct can_frame *cf; in sun4i_can_err()
/Linux-v6.6/net/sched/
Dem_canid.c48 struct can_frame *cf = (struct can_frame *)skb->data; in em_canid_get_id()
/Linux-v6.6/drivers/net/can/slcan/
Dslcan-core.c174 struct can_frame *cf; in slcan_bump_frame()
262 struct can_frame *cf; in slcan_bump_state()
326 struct can_frame *cf; in slcan_bump_err()
482 static void slcan_encaps(struct slcan *sl, struct can_frame *cf) in slcan_encaps()
612 slcan_encaps(sl, (struct can_frame *)skb->data); /* encaps & send */ in slcan_netdev_xmit()
/Linux-v6.6/include/uapi/linux/can/
Dbcm.h74 struct can_frame frames[];
Dgw.h111 struct can_frame cf;
/Linux-v6.6/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()
/Linux-v6.6/drivers/net/can/spi/
Dhi311x.c262 static void hi3110_hw_tx(struct spi_device *spi, struct can_frame *frame) in hi3110_hw_tx()
318 struct can_frame *frame; in hi3110_hw_rx()
577 struct can_frame *frame; in hi3110_tx_work_handler()
584 frame = (struct can_frame *)priv->tx_skb->data; in hi3110_tx_work_handler()
660 struct can_frame *cf; in hi3110_can_ist()
693 struct can_frame *cf; in hi3110_can_ist()
/Linux-v6.6/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-rx.c145 can_frame_set_cc_len((struct can_frame *)cfd, dlc, in mcp251xfd_hw_rx_obj_to_skb()
168 skb = alloc_can_skb(priv->ndev, (struct can_frame **)&cfd); in mcp251xfd_handle_rxif_one()
/Linux-v6.6/Documentation/networking/
Dcan.rst236 struct can_frame {
265 struct can_frame to the user space.
329 of reading a struct can_frame:
333 struct can_frame frame;
335 nbytes = read(s, &frame, sizeof(struct can_frame));
343 if (nbytes < sizeof(struct can_frame)) {
352 nbytes = write(s, &frame, sizeof(struct can_frame));
363 struct can_frame frame;
365 nbytes = recvfrom(s, &frame, sizeof(struct can_frame),
383 nbytes = sendto(s, &frame, sizeof(struct can_frame),
[all …]
/Linux-v6.6/net/can/
Daf_can.c580 struct can_frame *cf = (struct can_frame *)skb->data; in can_rcv_filter()
866 BUILD_BUG_ON(offsetof(struct can_frame, len) != in can_init()
868 offsetof(struct can_frame, data) != in can_init()
/Linux-v6.6/drivers/net/can/sja1000/
Dsja1000.c287 struct can_frame *cf = (struct can_frame *)skb->data; in sja1000_start_xmit()
342 struct can_frame *cf; in sja1000_rx()
410 struct can_frame *cf; in sja1000_err()
/Linux-v6.6/drivers/net/can/c_can/
Dc_can_main.c283 struct can_frame *frame, int idx) in c_can_setup_tx_object()
340 struct can_frame *frame; in c_can_handle_lost_msg_obj()
366 struct can_frame *frame; in c_can_read_msg_object()
455 struct can_frame *frame = (struct can_frame *)skb->data; in c_can_start_xmit()
915 struct can_frame *cf; in c_can_handle_state_change()
999 struct can_frame *cf; in c_can_handle_bus_err()
/Linux-v6.6/drivers/net/can/usb/kvaser_usb/
Dkvaser_usb_hydra.c923 struct can_frame *cf; in kvaser_usb_hydra_update_state()
1070 struct can_frame *cf; in kvaser_usb_hydra_error_frame()
1143 struct can_frame *cf; in kvaser_usb_hydra_one_shot_fail()
1223 struct can_frame *cf; in kvaser_usb_hydra_rx_msg_std()
1266 can_frame_set_cc_len((struct can_frame *)cf, cmd->rx_can.dlc, priv->can.ctrlmode); in kvaser_usb_hydra_rx_msg_std()
1316 skb = alloc_can_skb(priv->netdev, (struct can_frame **)&cf); in kvaser_usb_hydra_rx_msg_ext()
1345 can_frame_set_cc_len((struct can_frame *)cf, dlc, priv->can.ctrlmode); in kvaser_usb_hydra_rx_msg_ext()
1473 dlc = can_get_cc_dlc((struct can_frame *)cf, priv->can.ctrlmode); in kvaser_usb_hydra_frame_to_cmd_ext()
1527 struct can_frame *cf = (struct can_frame *)skb->data; in kvaser_usb_hydra_frame_to_cmd_std()
/Linux-v6.6/drivers/net/can/usb/
Dmcba_usb.c178 struct can_frame *cf) in mcba_usb_get_free_ctx()
309 struct can_frame *cf = (struct can_frame *)skb->data; in mcba_usb_start_xmit()
416 struct can_frame *cf; in mcba_usb_process_can()
/Linux-v6.6/drivers/net/can/softing/
Dsofting_main.c60 struct can_frame *cf = (struct can_frame *)skb->data; in softing_netdev_start_xmit()
132 int softing_netdev_rx(struct net_device *netdev, const struct can_frame *msg, in softing_netdev_rx()
136 struct can_frame *cf; in softing_netdev_rx()
155 struct can_frame msg; in softing_handle_1()
Dsofting.h101 int softing_netdev_rx(struct net_device *netdev, const struct can_frame *msg,

123