Lines Matching +full:2020 +full:- +full:12 +full:- +full:10
1 // SPDX-License-Identifier: GPL-2.0-only
2 /* Copyright (C) 2012, 2020 Oliver Hartkopp <socketcan@hartkopp.net>
11 8, 12, 16, 20, 24, 32, 48, 64
22 0, 1, 2, 3, 4, 5, 6, 7, 8, /* 0 - 8 */
23 9, 9, 9, 9, /* 9 - 12 */
24 10, 10, 10, 10, /* 13 - 16 */
25 11, 11, 11, 11, /* 17 - 20 */
26 12, 12, 12, 12, /* 21 - 24 */
27 13, 13, 13, 13, 13, 13, 13, 13, /* 25 - 32 */
28 14, 14, 14, 14, 14, 14, 14, 14, /* 33 - 40 */
29 14, 14, 14, 14, 14, 14, 14, 14, /* 41 - 48 */
30 15, 15, 15, 15, 15, 15, 15, 15, /* 49 - 56 */
31 15, 15, 15, 15, 15, 15, 15, 15 /* 57 - 64 */
48 * can_skb_get_frame_len() - Calculate the CAN Frame length in bytes
57 * value in bytes. Just using skb->len is insufficient because it will
63 * different bitrate. Currently, the can-utils canbusload tool does
64 * not support CAN-FD yet and so we could not run any benchmark to
71 const struct canfd_frame *cf = (const struct canfd_frame *)skb->data; in can_skb_get_frame_len()
75 len = canfd_sanitize_len(cf->len); in can_skb_get_frame_len()
76 else if (cf->can_id & CAN_RTR_FLAG) in can_skb_get_frame_len()
79 len = cf->len; in can_skb_get_frame_len()
81 return can_frame_bytes(can_is_canfd_skb(skb), cf->can_id & CAN_EFF_FLAG, in can_skb_get_frame_len()