Searched refs:NLA_ALIGN (Results 1 – 5 of 5) sorted by relevance
18 int totlen = NLA_ALIGN(rtnh->rtnh_len); in rtnh_next()26 return (struct nlattr *) ((char *) rtnh + NLA_ALIGN(sizeof(*rtnh))); in rtnh_attrs()31 return rtnh->rtnh_len - NLA_ALIGN(sizeof(*rtnh)); in rtnh_attrlen()
670 return NLA_ALIGN(nla_attr_size(payload)); in nla_total_size()731 unsigned int totlen = NLA_ALIGN(nla->nla_len); in nla_next()1385 return NLA_ALIGN(nla_attr_size(payload)) in nla_total_size_64bit()1387 + NLA_ALIGN(nla_attr_size(0)) in nla_total_size_64bit()
134 if (attrlen < NLA_ALIGN(pt->len)) in validate_nla()136 if (attrlen < NLA_ALIGN(pt->len) + NLA_HDRLEN) in validate_nla()138 nla = nla_data(nla) + NLA_ALIGN(pt->len); in validate_nla()139 if (attrlen < NLA_ALIGN(pt->len) + NLA_HDRLEN + nla_len(nla)) in validate_nla()479 return skb_put_zero(skb, NLA_ALIGN(attrlen)); in __nla_reserve_nohdr()546 if (unlikely(skb_tailroom(skb) < NLA_ALIGN(attrlen))) in nla_reserve_nohdr()671 if (unlikely(skb_tailroom(skb) < NLA_ALIGN(attrlen))) in nla_put_nohdr()690 if (unlikely(skb_tailroom(skb) < NLA_ALIGN(attrlen))) in nla_append()
230 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) macro231 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr)))
291 .hdrsize = NLA_ALIGN(GENL_MAGIC_FAMILY_HDRSZ),