Home
last modified time | relevance | path

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

12

/drivers/net/can/usb/peak_usb/
Dpcan_usb_pro.c540 struct can_frame *can_frame; in pcan_usb_pro_handle_canmsg() local
545 skb = alloc_can_skb(netdev, &can_frame); in pcan_usb_pro_handle_canmsg()
549 can_frame->can_id = le32_to_cpu(rx->id); in pcan_usb_pro_handle_canmsg()
550 can_frame->can_dlc = rx->len & 0x0f; in pcan_usb_pro_handle_canmsg()
553 can_frame->can_id |= CAN_EFF_FLAG; in pcan_usb_pro_handle_canmsg()
556 can_frame->can_id |= CAN_RTR_FLAG; in pcan_usb_pro_handle_canmsg()
558 memcpy(can_frame->data, rx->data, can_frame->can_dlc); in pcan_usb_pro_handle_canmsg()
566 netdev->stats.rx_bytes += can_frame->can_dlc; in pcan_usb_pro_handle_canmsg()
578 struct can_frame *can_frame; in pcan_usb_pro_handle_error() local
630 skb = alloc_can_err_skb(netdev, &can_frame); in pcan_usb_pro_handle_error()
[all …]
Dpcan_usb.c407 struct can_frame *cf; in pcan_usb_decode_error()
608 struct can_frame *cf; in pcan_usb_decode_data()
733 struct can_frame *cf = (struct can_frame *)skb->data; in pcan_usb_encode_msg()
/drivers/net/can/
Dslcan.c148 struct can_frame cf; in slc_bump()
208 skb = dev_alloc_skb(sizeof(struct can_frame) + in slc_bump()
221 memcpy(skb_put(skb, sizeof(struct can_frame)), in slc_bump()
222 &cf, sizeof(struct can_frame)); in slc_bump()
256 static void slc_encaps(struct slcan *sl, struct can_frame *cf) in slc_encaps()
359 if (skb->len != sizeof(struct can_frame)) in slc_xmit()
374 slc_encaps(sl, (struct can_frame *) skb->data); /* encaps & send */ in slc_xmit()
447 dev->mtu = sizeof(struct can_frame); in slc_setup()
Ddev.c361 struct can_frame *cf = (struct can_frame *)skb->data; in can_get_echo_skb()
400 struct can_frame *cf; in can_restart()
498 struct sk_buff *alloc_can_skb(struct net_device *dev, struct can_frame **cf) in alloc_can_skb()
503 sizeof(struct can_frame)); in alloc_can_skb()
518 *cf = (struct can_frame *)skb_put(skb, sizeof(struct can_frame)); in alloc_can_skb()
519 memset(*cf, 0, sizeof(struct can_frame)); in alloc_can_skb()
553 struct sk_buff *alloc_can_err_skb(struct net_device *dev, struct can_frame **cf) in alloc_can_err_skb()
Djanz-ican3.c807 struct can_frame *cf) in ican3_to_can_frame()
838 struct can_frame *cf, in can_frame_to_ican3()
890 struct can_frame *cf; in ican3_handle_msglost()
934 struct can_frame *cf; in ican3_handle_cevtind()
1145 struct can_frame *cf; in ican3_get_echo_skb()
1154 cf = (struct can_frame *)skb->data; in ican3_get_echo_skb()
1182 struct can_frame *cf = (struct can_frame *)skb->data; in ican3_echo_skb_matches()
1184 struct can_frame *echo_cf; in ican3_echo_skb_matches()
1189 echo_cf = (struct can_frame *)echo_skb->data; in ican3_echo_skb_matches()
1236 struct can_frame *cf; in ican3_recv_skb()
[all …]
Dat91_can.c479 struct can_frame *cf = (struct can_frame *)skb->data; in at91_start_xmit()
569 struct can_frame *cf; in at91_rx_overflow_err()
597 struct can_frame *cf) in at91_read_mb()
636 struct can_frame *cf; in at91_read_msg()
747 struct can_frame *cf, u32 reg_sr) in at91_poll_err_frame()
797 struct can_frame *cf; in at91_poll_err()
902 struct can_frame *cf, enum can_state new_state) in at91_irq_err_state()
1036 struct can_frame *cf; in at91_irq_err()
Dflexcan.c470 struct can_frame *cf = (struct can_frame *)skb->data; in flexcan_start_xmit()
515 struct can_frame *cf, u32 reg_esr) in do_bus_err()
565 struct can_frame *cf; in flexcan_poll_bus_err()
581 struct can_frame *cf, enum can_state new_state) in do_state()
657 struct can_frame *cf; in flexcan_poll_state()
692 struct can_frame *cf) in flexcan_read_fifo()
721 struct can_frame *cf; in flexcan_read_frame()
Dbfin_can.c241 struct can_frame *cf = (struct can_frame *)skb->data; in bfin_can_start_xmit()
286 struct can_frame *cf; in bfin_can_rx()
334 struct can_frame *cf; in bfin_can_err()
Dxilinx_can.c392 struct can_frame *cf = (struct can_frame *)skb->data; in xcan_start_xmit()
477 struct can_frame *cf; in xcan_rx()
543 struct can_frame *cf; in xcan_err_interrupt()
Drcar_can.c222 struct can_frame *cf; in rcar_can_error()
589 struct can_frame *cf = (struct can_frame *)skb->data; in rcar_can_start_xmit()
637 struct can_frame *cf; in rcar_can_rx_pkt()
Dpch_can.c494 struct can_frame *cf; in pch_can_error()
620 struct can_frame *cf; in pch_can_rx_msg_lost()
647 struct can_frame *cf; in pch_can_rx_normal()
894 struct can_frame *cf = (struct can_frame *)skb->data; in pch_xmit()
Dti_hecc.c488 struct can_frame *cf = (struct can_frame *)skb->data; in ti_hecc_xmit()
547 struct can_frame *cf; in ti_hecc_rx_pkt()
665 struct can_frame *cf; in ti_hecc_error()
Dgrcan.c582 struct can_frame cf; in grcan_err()
751 struct can_frame *skb_cf; in grcan_err()
1173 struct can_frame *cf; in grcan_receive()
1357 struct can_frame *cf = (struct can_frame *)skb->data; in grcan_start_xmit()
/drivers/net/can/mscan/
Dmscan.c199 struct can_frame *frame = (struct can_frame *)skb->data; in mscan_start_xmit()
306 static void mscan_get_rx_frame(struct net_device *dev, struct can_frame *frame) in mscan_get_rx_frame()
346 static void mscan_get_err_frame(struct net_device *dev, struct can_frame *frame, in mscan_get_err_frame()
418 struct can_frame *frame; in mscan_rx_poll()
/drivers/net/can/c_can/
Dc_can.c301 struct can_frame *frame, int idx) in c_can_setup_tx_object()
368 struct can_frame *frame; in c_can_handle_lost_msg_obj()
394 struct can_frame *frame; in c_can_read_msg_object()
460 struct can_frame *frame = (struct can_frame *)skb->data; in c_can_start_xmit()
873 struct can_frame *cf; in c_can_handle_state_change()
950 struct can_frame *cf; in c_can_handle_bus_err()
/drivers/net/can/sja1000/
Dsja1000.c282 struct can_frame *cf = (struct can_frame *)skb->data; in sja1000_start_xmit()
338 struct can_frame *cf; in sja1000_rx()
392 struct can_frame *cf; in sja1000_err()
/drivers/net/can/softing/
Dsofting_main.c70 struct can_frame *cf = (struct can_frame *)skb->data; in softing_netdev_start_xmit()
142 int softing_netdev_rx(struct net_device *netdev, const struct can_frame *msg, in softing_netdev_rx()
146 struct can_frame *cf; in softing_netdev_rx()
165 struct can_frame msg; in softing_handle_1()
Dsofting.h100 int softing_netdev_rx(struct net_device *netdev, const struct can_frame *msg,
/drivers/net/can/cc770/
Dcc770.c397 struct can_frame *cf = (struct can_frame *)skb->data; in cc770_start_xmit()
466 struct can_frame *cf; in cc770_rx()
517 struct can_frame *cf; in cc770_err()
/drivers/net/can/usb/
Dusb_8dev.c349 struct can_frame *cf; in usb_8dev_rx_err_msg()
473 struct can_frame *cf; in usb_8dev_rx_can_msg()
618 struct can_frame *cf = (struct can_frame *) skb->data; in usb_8dev_start_xmit()
Dgs_usb.c254 static void gs_update_state(struct gs_can *dev, struct can_frame *cf) in gs_update_state()
288 struct can_frame *cf; in gs_usb_recieve_bulk_callback()
457 struct can_frame *cf; in gs_can_start_xmit()
494 cf = (struct can_frame *)skb->data; in gs_can_start_xmit()
Dems_usb.c313 struct can_frame *cf; in ems_usb_rx_can_msg()
345 struct can_frame *cf; in ems_usb_rx_err()
748 struct can_frame *cf = (struct can_frame *)skb->data; in ems_usb_start_xmit()
Dkvaser_usb.c506 struct can_frame *cf; in kvaser_usb_tx_acknowledge()
629 struct can_frame *cf; in kvaser_usb_rx_error()
784 struct can_frame *cf; in kvaser_usb_rx_can_err()
821 struct can_frame *cf; in kvaser_usb_rx_can_msg()
1301 struct can_frame *cf = (struct can_frame *)skb->data; in kvaser_usb_start_xmit()
Desd_usb2.c230 struct can_frame *cf; in esd_usb2_rx_event()
317 struct can_frame *cf; in esd_usb2_rx_can_msg()
723 struct can_frame *cf = (struct can_frame *)skb->data; in esd_usb2_start_xmit()
/drivers/net/can/spi/
Dmcp251x.c408 static void mcp251x_hw_tx(struct spi_device *spi, struct can_frame *frame, in mcp251x_hw_tx()
464 struct can_frame *frame; in mcp251x_hw_rx()
729 struct can_frame *frame; in mcp251x_error_skb()
747 struct can_frame *frame; in mcp251x_tx_work_handler()
754 frame = (struct can_frame *)priv->tx_skb->data; in mcp251x_tx_work_handler()

12