/linux-4.1.27/drivers/net/can/usb/peak_usb/ |
H A D | pcan_usb_pro.c | 532 struct can_frame *can_frame; pcan_usb_pro_handle_canmsg() local 537 skb = alloc_can_skb(netdev, &can_frame); pcan_usb_pro_handle_canmsg() 541 can_frame->can_id = le32_to_cpu(rx->id); pcan_usb_pro_handle_canmsg() 542 can_frame->can_dlc = rx->len & 0x0f; pcan_usb_pro_handle_canmsg() 545 can_frame->can_id |= CAN_EFF_FLAG; pcan_usb_pro_handle_canmsg() 548 can_frame->can_id |= CAN_RTR_FLAG; pcan_usb_pro_handle_canmsg() 550 memcpy(can_frame->data, rx->data, can_frame->can_dlc); pcan_usb_pro_handle_canmsg() 558 netdev->stats.rx_bytes += can_frame->can_dlc; pcan_usb_pro_handle_canmsg() 570 struct can_frame *can_frame; pcan_usb_pro_handle_error() local 622 skb = alloc_can_err_skb(netdev, &can_frame); pcan_usb_pro_handle_error() 628 can_frame->can_id |= CAN_ERR_BUSOFF; pcan_usb_pro_handle_error() 634 can_frame->can_id |= CAN_ERR_CRTL; pcan_usb_pro_handle_error() 635 can_frame->data[1] |= err_mask; pcan_usb_pro_handle_error() 640 can_frame->can_id |= CAN_ERR_CRTL; pcan_usb_pro_handle_error() 641 can_frame->data[1] |= err_mask; pcan_usb_pro_handle_error() 651 can_frame->can_id |= CAN_ERR_PROT; pcan_usb_pro_handle_error() 652 can_frame->data[2] |= CAN_ERR_PROT_OVERLOAD; pcan_usb_pro_handle_error() 658 can_frame->can_id |= CAN_ERR_CRTL; pcan_usb_pro_handle_error() 659 can_frame->data[1] |= CAN_ERR_CRTL_RX_OVERFLOW; pcan_usb_pro_handle_error() 675 netdev->stats.rx_bytes += can_frame->can_dlc; pcan_usb_pro_handle_error() 773 struct can_frame *cf = (struct can_frame *)skb->data; pcan_usb_pro_encode_msg()
|
H A D | pcan_usb.c | 407 struct can_frame *cf; pcan_usb_decode_error() 609 struct can_frame *cf; pcan_usb_decode_data() 734 struct can_frame *cf = (struct can_frame *)skb->data; pcan_usb_encode_msg()
|
H A D | pcan_usb_fd.c | 498 skb = alloc_can_skb(netdev, (struct can_frame **)&cfd); pcan_usb_fd_decode_canmsg() 535 struct can_frame *cf; pcan_usb_fd_decode_status() 608 struct can_frame *cf; pcan_usb_fd_decode_overrun()
|
/linux-4.1.27/include/uapi/linux/can/ |
H A D | gw.h | 102 struct can_frame cf; 156 * <struct can_frame> data used as operator 174 * xor ^= can_frame.data[i] 176 * can_frame.data[ result_idx ] = xor 188 * crc = crctab[ crc ^ can_frame.data[i] ] 190 * can_frame.data[ result_idx ] = crc ^ final_xor_val
|
H A D | bcm.h | 68 struct can_frame frames[0];
|
/linux-4.1.27/include/linux/can/ |
H A D | dev.h | 150 void can_change_state(struct net_device *dev, struct can_frame *cf, 158 struct sk_buff *alloc_can_skb(struct net_device *dev, struct can_frame **cf); 162 struct can_frame **cf);
|
H A D | skb.h | 36 struct can_frame cf[0];
|
/linux-4.1.27/net/can/ |
H A D | gw.c | 90 struct can_frame and; 91 struct can_frame or; 92 struct can_frame xor; 93 struct can_frame set; 101 void (*modfunc[MAX_MODFUNCTIONS])(struct can_frame *cf, 110 void (*xor)(struct can_frame *cf, struct cgw_csum_xor *xor); 111 void (*crc8)(struct can_frame *cf, struct cgw_csum_crc8 *crc8); 155 #define MODFUNC(func, op) static void func(struct can_frame *cf, \ 171 static inline void canframecpy(struct can_frame *dst, struct can_frame *src) canframecpy() 211 static void cgw_csum_xor_rel(struct can_frame *cf, struct cgw_csum_xor *xor) cgw_csum_xor_rel() 233 static void cgw_csum_xor_pos(struct can_frame *cf, struct cgw_csum_xor *xor) cgw_csum_xor_pos() 244 static void cgw_csum_xor_neg(struct can_frame *cf, struct cgw_csum_xor *xor) cgw_csum_xor_neg() 255 static void cgw_csum_crc8_rel(struct can_frame *cf, struct cgw_csum_crc8 *crc8) cgw_csum_crc8_rel() 294 static void cgw_csum_crc8_pos(struct can_frame *cf, struct cgw_csum_crc8 *crc8) cgw_csum_crc8_pos() 321 static void cgw_csum_crc8_neg(struct can_frame *cf, struct cgw_csum_crc8 *crc8) cgw_csum_crc8_neg() 352 struct can_frame *cf; can_can_gw_rcv() 414 cf = (struct can_frame *)nskb->data; can_can_gw_rcv()
|
H A D | bcm.c | 87 /* easy access to can_frame payload */ GET_U64() 88 static inline u64 GET_U64(const struct can_frame *cp) GET_U64() 107 struct can_frame *frames; 108 struct can_frame *last_frames; 109 struct can_frame sframe; 110 struct can_frame last_sframe; 134 #define CFSIZ sizeof(struct can_frame) 246 struct can_frame *cf = &op->frames[op->currframe]; bcm_can_tx() 289 struct can_frame *frames, int has_timestamp) bcm_send_to_user() 292 struct can_frame *firstframe; bcm_send_to_user() 306 firstframe = (struct can_frame *)skb_tail_pointer(skb); bcm_send_to_user() 311 * the BCM uses the can_dlc-element of the can_frame bcm_send_to_user() 404 static void bcm_rx_changed(struct bcm_op *op, struct can_frame *data) bcm_rx_changed() 435 struct can_frame *lastdata, bcm_rx_update_and_send() 436 const struct can_frame *rxdata) bcm_rx_update_and_send() 479 const struct can_frame *rxdata) bcm_rx_cmp_to_index() 492 /* do a real check in can_frame data section */ bcm_rx_cmp_to_index() 501 /* do a real check in can_frame dlc */ bcm_rx_cmp_to_index() 634 const struct can_frame *rxframe = (struct can_frame *)skb->data; bcm_rx_handler() 840 /* check nframes boundaries - we need at least one can_frame */ bcm_tx_setup() 966 /* spec: send can_frame when starting timer */ bcm_tx_setup() 1327 /* we need exactly one can_frame behind the msg head */ bcm_sendmsg()
|
H A D | af_can.c | 246 * As structs can_frame and canfd_frame are similar, we can provide can_send() 614 struct can_frame *cf = (struct can_frame *)skb->data; can_rcv_filter() 900 BUILD_BUG_ON(offsetof(struct can_frame, can_dlc) != can_init() 902 offsetof(struct can_frame, data) != can_init()
|
/linux-4.1.27/drivers/net/can/ |
H A D | slcan.c | 141 /* Send one completely decapsulated can_frame to the network layer */ slc_bump() 145 struct can_frame cf; slc_bump() 205 skb = dev_alloc_skb(sizeof(struct can_frame) + slc_bump() 219 memcpy(skb_put(skb, sizeof(struct can_frame)), slc_bump() 220 &cf, sizeof(struct can_frame)); slc_bump() 253 /* Encapsulate one can_frame and stuff into a TTY queue. */ slc_encaps() 254 static void slc_encaps(struct slcan *sl, struct can_frame *cf) slc_encaps() 352 /* Send a can_frame to a TTY queue. */ slc_xmit() 357 if (skb->len != sizeof(struct can_frame)) slc_xmit() 372 slc_encaps(sl, (struct can_frame *) skb->data); /* encaps & send */ slc_xmit() 445 dev->mtu = sizeof(struct can_frame); slc_setup()
|
H A D | at91_can.c | 478 struct can_frame *cf = (struct can_frame *)skb->data; at91_start_xmit() 568 struct can_frame *cf; at91_rx_overflow_err() 596 struct can_frame *cf) at91_read_mb() 635 struct can_frame *cf; at91_read_msg() 745 struct can_frame *cf, u32 reg_sr) at91_poll_err_frame() 795 struct can_frame *cf; at91_poll_err() 846 * priv->tx_echo holds the number of the oldest can_frame put for 900 struct can_frame *cf, enum can_state new_state) at91_irq_err_state() 1034 struct can_frame *cf; at91_irq_err()
|
H A D | dev.c | 327 void can_change_state(struct net_device *dev, struct can_frame *cf, can_change_state() 440 struct can_frame *cf = (struct can_frame *)skb->data; can_get_echo_skb() 480 struct can_frame *cf; can_restart() 569 struct sk_buff *alloc_can_skb(struct net_device *dev, struct can_frame **cf) alloc_can_skb() 574 sizeof(struct can_frame)); alloc_can_skb() 590 *cf = (struct can_frame *)skb_put(skb, sizeof(struct can_frame)); alloc_can_skb() 591 memset(*cf, 0, sizeof(struct can_frame)); alloc_can_skb() 626 struct sk_buff *alloc_can_err_skb(struct net_device *dev, struct can_frame **cf) alloc_can_err_skb()
|
H A D | janz-ican3.c | 807 struct can_frame *cf) ican3_to_can_frame() 838 struct can_frame *cf, can_frame_to_ican3() 890 struct can_frame *cf; ican3_handle_msglost() 934 struct can_frame *cf; ican3_handle_cevtind() 1146 struct can_frame *cf; ican3_get_echo_skb() 1155 cf = (struct can_frame *)skb->data; ican3_get_echo_skb() 1183 struct can_frame *cf = (struct can_frame *)skb->data; ican3_echo_skb_matches() 1185 struct can_frame *echo_cf; ican3_echo_skb_matches() 1190 echo_cf = (struct can_frame *)echo_skb->data; ican3_echo_skb_matches() 1237 struct can_frame *cf; ican3_recv_skb() 1534 struct can_frame *cf = (struct can_frame *)skb->data; ican3_xmit()
|
H A D | flexcan.c | 469 struct can_frame *cf = (struct can_frame *)skb->data; flexcan_start_xmit() 514 struct can_frame *cf, u32 reg_esr) do_bus_err() 564 struct can_frame *cf; flexcan_poll_bus_err() 583 struct can_frame *cf; flexcan_poll_state() 625 struct can_frame *cf) flexcan_read_fifo() 654 struct can_frame *cf; flexcan_read_frame()
|
H A D | bfin_can.c | 345 struct can_frame *cf = (struct can_frame *)skb->data; bfin_can_start_xmit() 390 struct can_frame *cf; bfin_can_rx() 438 struct can_frame *cf; bfin_can_err()
|
H A D | pch_can.c | 494 struct can_frame *cf; pch_can_error() 621 struct can_frame *cf; pch_can_rx_msg_lost() 648 struct can_frame *cf; pch_can_rx_normal() 895 struct can_frame *cf = (struct can_frame *)skb->data; pch_xmit()
|
H A D | rcar_can.c | 222 struct can_frame *cf; rcar_can_error() 590 struct can_frame *cf = (struct can_frame *)skb->data; rcar_can_start_xmit() 638 struct can_frame *cf; rcar_can_rx_pkt()
|
H A D | ti_hecc.c | 488 struct can_frame *cf = (struct can_frame *)skb->data; ti_hecc_xmit() 547 struct can_frame *cf; ti_hecc_rx_pkt() 665 struct can_frame *cf; ti_hecc_error()
|
H A D | xilinx_can.c | 392 struct can_frame *cf = (struct can_frame *)skb->data; xcan_start_xmit() 477 struct can_frame *cf; xcan_rx() 544 struct can_frame *cf; xcan_err_interrupt()
|
H A D | grcan.c | 582 struct can_frame cf; grcan_err() 751 struct can_frame *skb_cf; grcan_err() 1173 struct can_frame *cf; grcan_receive() 1357 struct can_frame *cf = (struct can_frame *)skb->data; grcan_start_xmit()
|
/linux-4.1.27/net/sched/ |
H A D | em_canid.c | 51 struct can_frame *cf = (struct can_frame *)skb->data; em_canid_get_id()
|
/linux-4.1.27/include/uapi/linux/ |
H A D | can.h | 93 * struct can_frame - basic CAN frame structure 100 struct can_frame { struct 143 #define CAN_MTU (sizeof(struct can_frame))
|
/linux-4.1.27/drivers/net/can/mscan/ |
H A D | mscan.c | 199 struct can_frame *frame = (struct can_frame *)skb->data; mscan_start_xmit() 303 static void mscan_get_rx_frame(struct net_device *dev, struct can_frame *frame) mscan_get_rx_frame() 343 static void mscan_get_err_frame(struct net_device *dev, struct can_frame *frame, mscan_get_err_frame() 398 struct can_frame *frame; mscan_rx_poll()
|
/linux-4.1.27/drivers/net/can/softing/ |
H A D | softing_main.c | 70 struct can_frame *cf = (struct can_frame *)skb->data; softing_netdev_start_xmit() 142 int softing_netdev_rx(struct net_device *netdev, const struct can_frame *msg, softing_netdev_rx() 146 struct can_frame *cf; softing_netdev_rx() 165 struct can_frame msg; softing_handle_1()
|
H A D | softing.h | 100 int softing_netdev_rx(struct net_device *netdev, const struct can_frame *msg,
|
H A D | softing_fw.c | 436 struct can_frame msg; softing_startstop()
|
/linux-4.1.27/drivers/net/can/c_can/ |
H A D | c_can.c | 302 struct can_frame *frame, int idx) c_can_setup_tx_object() 355 struct can_frame *frame; c_can_handle_lost_msg_obj() 381 struct can_frame *frame; c_can_read_msg_object() 437 struct can_frame *frame = (struct can_frame *)skb->data; c_can_start_xmit() 860 struct can_frame *cf; c_can_handle_state_change() 937 struct can_frame *cf; c_can_handle_bus_err()
|
/linux-4.1.27/drivers/net/can/cc770/ |
H A D | cc770.c | 397 struct can_frame *cf = (struct can_frame *)skb->data; cc770_start_xmit() 466 struct can_frame *cf; cc770_rx() 517 struct can_frame *cf; cc770_err()
|
/linux-4.1.27/drivers/net/can/sja1000/ |
H A D | sja1000.c | 285 struct can_frame *cf = (struct can_frame *)skb->data; sja1000_start_xmit() 341 struct can_frame *cf; sja1000_rx() 395 struct can_frame *cf; sja1000_err()
|
/linux-4.1.27/drivers/net/can/usb/ |
H A D | gs_usb.c | 252 static void gs_update_state(struct gs_can *dev, struct can_frame *cf) gs_update_state() 286 struct can_frame *cf; gs_usb_recieve_bulk_callback() 461 struct can_frame *cf; gs_can_start_xmit() 498 cf = (struct can_frame *)skb->data; gs_can_start_xmit()
|
H A D | usb_8dev.c | 349 struct can_frame *cf; usb_8dev_rx_err_msg() 474 struct can_frame *cf; usb_8dev_rx_can_msg() 617 struct can_frame *cf = (struct can_frame *) skb->data; usb_8dev_start_xmit()
|
H A D | kvaser_usb.c | 706 struct can_frame *cf; kvaser_usb_tx_acknowledge() 822 struct can_frame *cf) kvaser_usb_rx_error_update_can_state() 889 struct can_frame *cf, tmp_cf = { .can_id = CAN_ERR_FLAG, .can_dlc = CAN_ERR_DLC }; kvaser_usb_rx_error() 1099 struct can_frame *cf; kvaser_usb_rx_can_err() 1135 struct can_frame *cf; kvaser_usb_rx_can_msg() 1654 struct can_frame *cf = (struct can_frame *)skb->data; kvaser_usb_start_xmit()
|
H A D | ems_usb.c | 311 struct can_frame *cf; ems_usb_rx_can_msg() 343 struct can_frame *cf; ems_usb_rx_err() 747 struct can_frame *cf = (struct can_frame *)skb->data; ems_usb_start_xmit()
|
H A D | esd_usb2.c | 230 struct can_frame *cf; esd_usb2_rx_event() 318 struct can_frame *cf; esd_usb2_rx_can_msg() 722 struct can_frame *cf = (struct can_frame *)skb->data; esd_usb2_start_xmit()
|
/linux-4.1.27/drivers/net/can/spi/ |
H A D | mcp251x.c | 408 static void mcp251x_hw_tx(struct spi_device *spi, struct can_frame *frame, mcp251x_hw_tx() 464 struct can_frame *frame; mcp251x_hw_rx() 729 struct can_frame *frame; mcp251x_error_skb() 747 struct can_frame *frame; mcp251x_tx_work_handler() 754 frame = (struct can_frame *)priv->tx_skb->data; mcp251x_tx_work_handler()
|
/linux-4.1.27/drivers/net/can/m_can/ |
H A D | m_can.c | 375 skb = alloc_can_skb(dev, (struct can_frame **)&cf); m_can_read_fifo() 451 struct can_frame *frame; m_can_handle_lost_msg() 475 struct can_frame *cf; m_can_handle_lec_err() 572 struct can_frame *cf; m_can_handle_state_change()
|