Searched refs:NLA_ALIGN (Results 1 – 13 of 13) sorted by relevance
46 #ifndef NLA_ALIGN47 # define NLA_ALIGN(len) (((len) + 3) & ~3) macro51 #define NLA_HDRLEN ((unsigned int) NLA_ALIGN(sizeof(struct nlattr)))
412 offset = NLA_ALIGN(sizeof(msg)); in decode_netlink_diag_msg()478 offset = NLA_ALIGN(sizeof(msg)); in decode_packet_diag_msg()541 offset = NLA_ALIGN(sizeof(req)); in decode_inet_diag_req_compat()582 offset = NLA_ALIGN(sizeof(req)); in decode_inet_diag_req_v2()750 offset = NLA_ALIGN(sizeof(msg)); in decode_inet_diag_msg()827 offset = NLA_ALIGN(sizeof(msg)); in decode_smc_diag_msg()
114 const unsigned long nla_len = NLA_ALIGN(nla.nla_len); in decode_nlattr()
281 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1))288 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr)))
146 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) macro147 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr)))
185 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) macro186 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr)))
189 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) macro190 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr)))
191 na = (struct nlattr *)((char *)na + NLA_ALIGN(na->nla_len)); in get_family_id()444 len += NLA_ALIGN(na->nla_len); in main()503 len2 += NLA_ALIGN(na->nla_len); in main()
75 return NLA_ALIGN(nla_attr_size(payload)); in nla_total_size()173 int totlen = NLA_ALIGN(nla->nla_len); in nla_next()
410 data = nla_data(a) + NLA_ALIGN(sizeof(*hdr)); in rtnl_ematch_parse_attr()411 len = nla_len(a) - NLA_ALIGN(sizeof(*hdr)); in rtnl_ematch_parse_attr()
287 iov[2].iov_len = NLA_ALIGN(payload_len); in nfnl_queue_msg_send_verdict_payload()
923 *rem -= NLA_ALIGN(nla->nla_len); in nla_next()924 return (struct nlattr *)(void *)((char *)nla + NLA_ALIGN(nla->nla_len)); in nla_next()951 len = NLA_ALIGN(NLA_HDRLEN + sizeof(data)); in nla_put_32()974 len = NLA_ALIGN(NLA_HDRLEN + sl); in nla_put_string()
1671 <---- NLA_HDRLEN -----> <--- NLA_ALIGN(len) ---> <---- NLA_HDRLEN ---