Home
last modified time | relevance | path

Searched refs:TPACKET_ALIGN (Results 1 – 6 of 6) sorted by relevance

/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dif_packet.h142 #define TPACKET_ALIGN(x) (((x)+TPACKET_ALIGNMENT-1)&~(TPACKET_ALIGNMENT-1)) macro
143 #define TPACKET_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket_hdr)) + sizeof(struct sockaddr_ll))
248 #define TPACKET2_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket2_hdr)) + sizeof(struct sockaddr_ll))
249 #define TPACKET3_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket3_hdr)) + sizeof(struct sockaddr_ll))
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dif_packet.h142 #define TPACKET_ALIGN(x) (((x)+TPACKET_ALIGNMENT-1)&~(TPACKET_ALIGNMENT-1)) macro
143 #define TPACKET_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket_hdr)) + sizeof(struct sockaddr_ll))
248 #define TPACKET2_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket2_hdr)) + sizeof(struct sockaddr_ll))
249 #define TPACKET3_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket3_hdr)) + sizeof(struct sockaddr_ll))
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dif_packet.h143 #define TPACKET_ALIGN(x) (((x)+TPACKET_ALIGNMENT-1)&~(TPACKET_ALIGNMENT-1)) macro
144 #define TPACKET_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket_hdr)) + sizeof(struct sockaddr_ll))
249 #define TPACKET2_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket2_hdr)) + sizeof(struct sockaddr_ll))
250 #define TPACKET3_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket3_hdr)) + sizeof(struct sockaddr_ll))
/OK3568_Linux_fs/kernel/Documentation/networking/
H A Dpacket_mmap.rst178 frame base + TPACKET_ALIGN(sizeof(struct tpacket_hdr))
577 use ``(void *)hdr + TPACKET_ALIGN(hdrlen)`` instead of
578 ``(void *)hdr + TPACKET_ALIGN(sizeof(struct tpacket_hdr))``
/OK3568_Linux_fs/kernel/tools/testing/selftests/net/
H A Dpsock_tpacket.c60 # define __align_tpacket(x) __attribute__((aligned(TPACKET_ALIGN(x))))
/OK3568_Linux_fs/kernel/net/packet/
H A Daf_packet.c2210 BUILD_BUG_ON(TPACKET_ALIGN(sizeof(*h.h2)) != 32); in tpacket_rcv()
2211 BUILD_BUG_ON(TPACKET_ALIGN(sizeof(*h.h3)) != 48); in tpacket_rcv()
2253 macoff = netoff = TPACKET_ALIGN(po->tp_hdrlen) + 16 + in tpacket_rcv()
2257 netoff = TPACKET_ALIGN(po->tp_hdrlen + in tpacket_rcv()
2405 sll = h.raw + TPACKET_ALIGN(hdrlen); in tpacket_rcv()