Home
last modified time | relevance | path

Searched refs:canfd_frame (Results 1 – 25 of 32) sorted by relevance

12

/linux/drivers/net/can/rockchip/
H A Drockchip_canfd-rx.c11 static bool rkcanfd_can_frame_header_equal(const struct canfd_frame *const cfd1, in rkcanfd_can_frame_header_equal()
12 const struct canfd_frame *const cfd2, in rkcanfd_can_frame_header_equal()
39 static bool rkcanfd_can_frame_data_equal(const struct canfd_frame *cfd1, in rkcanfd_can_frame_data_equal()
40 const struct canfd_frame *cfd2, in rkcanfd_can_frame_data_equal()
56 struct canfd_frame *cfd) in rkcanfd_fifo_header_to_cfd_header()
95 const struct canfd_frame *cfd_rx, const u32 ts, in rkcanfd_rxstx_filter()
100 const struct canfd_frame *cfd_nominal; in rkcanfd_rxstx_filter()
114 cfd_nominal = (struct canfd_frame *)skb->data; in rkcanfd_rxstx_filter()
204 struct canfd_frame cfd[1] = { }, *skb_cfd; in rkcanfd_handle_rx_int_one()
H A Drockchip_canfd-tx.c13 const struct canfd_frame *cfd; in rkcanfd_tx_tail_is_eff()
31 cfd = (struct canfd_frame *)skb->data; in rkcanfd_tx_tail_is_eff()
71 const struct canfd_frame *cfd; in rkcanfd_start_xmit()
91 cfd = (struct canfd_frame *)skb->data; in rkcanfd_start_xmit()
/linux/net/can/
H A Dgw.c88 struct canfd_frame and;
89 struct canfd_frame or;
90 struct canfd_frame xor;
91 struct canfd_frame set;
99 void (*modfunc[MAX_MODFUNCTIONS])(struct canfd_frame *cf,
108 void (*xor)(struct canfd_frame *cf,
110 void (*crc8)(struct canfd_frame *cf,
154 #define MODFUNC(func, op) static void func(struct canfd_frame *cf, \
174 static void mod_and_fddata(struct canfd_frame *cf, struct cf_mod *mod) in mod_and_fddata()
182 static void mod_or_fddata(struct canfd_frame *cf, struct cf_mod *mod) in mod_or_fddata()
[all …]
H A Dbcm.c100 static inline u64 get_u64(const struct canfd_frame *cp, int offset) in get_u64()
123 struct canfd_frame sframe;
124 struct canfd_frame last_sframe;
297 struct canfd_frame *cf; in bcm_can_tx()
359 struct canfd_frame *frames, int has_timestamp) in bcm_send_to_user()
362 struct canfd_frame *firstframe; in bcm_send_to_user()
386 firstframe = (struct canfd_frame *)skb_tail_pointer(skb); in bcm_send_to_user()
488 static void bcm_rx_changed(struct bcm_op *op, struct canfd_frame *data) in bcm_rx_changed()
520 struct canfd_frame *lastdata, in bcm_rx_update_and_send()
521 const struct canfd_frame *rxdata, in bcm_rx_update_and_send()
[all …]
H A Disotp.c219 struct canfd_frame *ncf; in isotp_send_fc()
242 ncf = (struct canfd_frame *)nskb->data; in isotp_send_fc()
318 static int check_optimized(struct canfd_frame *cf, int start_index) in check_optimized()
338 static int check_pad(struct isotp_sock *so, struct canfd_frame *cf, in check_pad()
368 static int isotp_rcv_fc(struct isotp_sock *so, struct canfd_frame *cf, int ae) in isotp_rcv_fc()
450 static int isotp_rcv_sf(struct sock *sk, struct canfd_frame *cf, int pcilen, in isotp_rcv_sf()
483 static int isotp_rcv_ff(struct sock *sk, struct canfd_frame *cf, int ae) in isotp_rcv_ff()
556 static int isotp_rcv_cf(struct sock *sk, struct canfd_frame *cf, int ae, in isotp_rcv_cf()
654 struct canfd_frame *cf; in isotp_rcv()
664 cf = (struct canfd_frame *)skb->data; in isotp_rcv()
[all …]
H A Daf_can.c213 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in can_send()
880 offsetof(struct canfd_frame, len) || in can_init()
884 offsetof(struct canfd_frame, data)); in can_init()
/linux/include/linux/can/
H A Dskb.h33 struct canfd_frame **cfd);
98 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in can_is_canfd_skb()
122 const struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in can_skb_get_len_val()
/linux/drivers/net/can/dev/
H A Dskb.c246 struct canfd_frame **cfd) in alloc_canfd_skb()
251 skb = netdev_alloc_skb(dev, sizeof(struct canfd_frame)); in alloc_canfd_skb()
265 *cfd = skb_put_zero(skb, sizeof(struct canfd_frame)); in alloc_canfd_skb()
362 struct canfd_frame *cfd; in can_skb_init_valid()
364 cfd = (struct canfd_frame *)skb->data; in can_skb_init_valid()
H A Dlength.c71 const struct canfd_frame *cf = (const struct canfd_frame *)skb->data; in can_skb_get_frame_len()
/linux/include/uapi/linux/
H A Dcan.h173 struct canfd_frame { struct
223 #define CANFD_MTU (sizeof(struct canfd_frame))
/linux/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-rx.c124 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in mcp251xfd_hw_rx_obj_to_skb()
171 struct canfd_frame *cfd; in mcp251xfd_handle_rxif_one()
H A Dmcp251xfd-tx.c36 const struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in mcp251xfd_tx_obj_from_skb()
H A Dmcp251xfd.h455 u8 data[sizeof_field(struct canfd_frame, data)];
467 u8 data[sizeof_field(struct canfd_frame, data)];
481 u8 data[sizeof_field(struct canfd_frame, data)];
/linux/include/uapi/linux/can/
H A Dgw.h116 struct canfd_frame cf;
/linux/drivers/net/can/usb/etas_es58x/
H A Des58x_core.h701 struct canfd_frame *cf = (struct canfd_frame *)skb->data; in es58x_get_flags()
/linux/drivers/net/can/ctucanfd/
H A Dctucanfd_base.c516 static bool ctucan_insert_frame(struct ctucan_priv *priv, const struct canfd_frame *cf, u8 buf, in ctucan_insert_frame()
599 struct canfd_frame *cf = (struct canfd_frame *)skb->data; in ctucan_start_xmit()
647 static void ctucan_read_rx_frame(struct ctucan_priv *priv, struct canfd_frame *cf, u32 ffw) in ctucan_read_rx_frame()
714 struct canfd_frame *cf; in ctucan_rx()
/linux/Documentation/networking/
H A Dcan.rst409 The struct canfd_frame is defined in include/linux/can.h:
413 struct canfd_frame {
422 The struct canfd_frame and the existing struct can_frame have the can_id,
425 When the content of a struct can_frame is copied into a struct canfd_frame
428 When introducing the struct canfd_frame it turned out that the data length
431 the easy handling of the length information the canfd_frame.len element
432 contains a plain length value from 0 .. 64. So both canfd_frame.len and
444 #define CANFD_MTU (sizeof(struct canfd_frame)) == 72 => CAN FD frame
655 [ remember: CANFD_MTU == sizeof(struct canfd_frame) ]
657 struct canfd_frame cfd;
[all …]
/linux/drivers/net/can/peak_canfd/
H A Dpeak_canfd.c255 struct canfd_frame *cf; in pucan_handle_can_rx()
646 struct canfd_frame *cf = (struct canfd_frame *)skb->data; in peak_canfd_start_xmit()
/linux/drivers/net/can/usb/
H A Dnct6694_canfd.c227 struct canfd_frame *cfd; in nct6694_canfd_handle_rx()
456 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in nct6694_canfd_tx_work()
H A Desd_usb.c402 struct canfd_frame *cfd; in esd_usb_rx_can_msg()
419 cfd = (struct canfd_frame *)cf; in esd_usb_rx_can_msg()
824 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in esd_usb_start_xmit()
H A Dgs_usb.c620 struct canfd_frame *cfd; in gs_usb_receive_bulk_callback()
846 struct canfd_frame *cfd; in gs_can_start_xmit()
881 cfd = (struct canfd_frame *)skb->data; in gs_can_start_xmit()
/linux/drivers/net/can/ifi_canfd/
H A Difi_canfd.c252 struct canfd_frame *cf; in ifi_canfd_read_fifo()
880 struct canfd_frame *cf = (struct canfd_frame *)skb->data; in ifi_canfd_start_xmit()
/linux/drivers/net/can/usb/peak_usb/
H A Dpcan_usb_fd.c535 struct canfd_frame *cfd; in pcan_usb_fd_decode_canmsg()
800 struct canfd_frame *cfd = (struct canfd_frame *)skb->data; in pcan_usb_fd_encode_msg()
/linux/drivers/net/can/rcar/
H A Drcar_canfd.c742 struct canfd_frame *cf, u32 off) in rcar_canfd_get_data()
753 struct canfd_frame *cf, u32 off) in rcar_canfd_put_data()
1619 struct canfd_frame *cf = (struct canfd_frame *)skb->data; in rcar_canfd_start_xmit()
1693 struct canfd_frame *cf; in rcar_canfd_rx_pkt()
/linux/drivers/net/can/
H A Dxilinx_can.c655 struct canfd_frame *cf = (struct canfd_frame *)skb->data; in xcan_write_frame()
916 struct canfd_frame *cf; in xcanfd_rx()

12