Searched refs:TPACKET_ALIGN (Results 1 – 4 of 4) sorted by relevance
129 #define TPACKET_ALIGN(x) (((x)+TPACKET_ALIGNMENT-1)&~(TPACKET_ALIGNMENT-1)) macro130 #define TPACKET_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket_hdr)) + sizeof(struct sockaddr_ll))235 #define TPACKET2_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket2_hdr)) + sizeof(struct sockaddr_ll))236 #define TPACKET3_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket3_hdr)) + sizeof(struct sockaddr_ll))
72 # define __align_tpacket(x) __attribute__((aligned(TPACKET_ALIGN(x))))
1890 BUILD_BUG_ON(TPACKET_ALIGN(sizeof(*h.h2)) != 32); in tpacket_rcv()1891 BUILD_BUG_ON(TPACKET_ALIGN(sizeof(*h.h3)) != 48); in tpacket_rcv()1928 macoff = netoff = TPACKET_ALIGN(po->tp_hdrlen) + 16 + in tpacket_rcv()1932 netoff = TPACKET_ALIGN(po->tp_hdrlen + in tpacket_rcv()2043 sll = h.raw + TPACKET_ALIGN(hdrlen); in tpacket_rcv()
184 frame base + TPACKET_ALIGN(sizeof(struct tpacket_hdr))564 use (void *)hdr + TPACKET_ALIGN(hdrlen) instead of565 (void *)hdr + TPACKET_ALIGN(sizeof(struct tpacket_hdr))