Home
last modified time | relevance | path

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

/openbmc/linux/tools/perf/trace/beauty/include/linux/
H A Dsocket.h118 #define CMSG_ALIGN(len) ( ((len)+sizeof(long)-1) & ~(sizeof(long)-1) ) macro
124 #define CMSG_SPACE(len) (sizeof(struct cmsghdr) + CMSG_ALIGN(len))
158 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len)); in __cmsg_nxthdr()
/openbmc/linux/include/linux/
H A Dsocket.h118 #define CMSG_ALIGN(len) ( ((len)+sizeof(long)-1) & ~(sizeof(long)-1) ) macro
124 #define CMSG_SPACE(len) (sizeof(struct cmsghdr) + CMSG_ALIGN(len))
158 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len)); in __cmsg_nxthdr()
/openbmc/linux/net/ipv6/
H A Dexthdrs.c1241 *p += CMSG_ALIGN(ipv6_optlen(*dest)); in ipv6_renew_option()
1274 tot_len += CMSG_ALIGN(ipv6_optlen(opt->hopopt)); in ipv6_renew_options()
1276 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst0opt)); in ipv6_renew_options()
1278 tot_len += CMSG_ALIGN(ipv6_optlen(opt->srcrt)); in ipv6_renew_options()
1280 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst1opt)); in ipv6_renew_options()
1284 tot_len += CMSG_ALIGN(ipv6_optlen(newopt)); in ipv6_renew_options()
H A Dip6_flowlabel.c384 olen = optlen - CMSG_ALIGN(sizeof(*freq)); in fl_create()
408 CMSG_ALIGN(sizeof(*freq)), olen)) in fl_create()
/openbmc/linux/net/
H A Dcompat.c163 tmp = CMSG_ALIGN(tmp); in cmsghdr_from_user_compat_to_kern()
190 if ((char *)kcmsg_base + kcmlen - (char *)kcmsg < CMSG_ALIGN(tmp)) in cmsghdr_from_user_compat_to_kern()
195 tmp = CMSG_ALIGN(tmp); in cmsghdr_from_user_compat_to_kern()
H A Dsocket.c2530 CMSG_ALIGN(sizeof(struct cmsghdr))); in ____sys_sendmsg()