/openbmc/linux/include/net/ |
H A D | rtnh.h | 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()
|
H A D | netlink.h | 1158 return NLA_ALIGN(nla_attr_size(payload)); in nla_total_size() 1219 unsigned int totlen = NLA_ALIGN(nla->nla_len); in nla_next() 1952 return NLA_ALIGN(nla_attr_size(payload)) in nla_total_size_64bit() 1954 + NLA_ALIGN(nla_attr_size(0)) in nla_total_size_64bit()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxfw/ |
H A D | mlxfw_mfa2_tlv_multi.c | 10 NLA_ALIGN(sizeof(*(tlv)) + be16_to_cpu((tlv)->len)) 18 multi_len = NLA_ALIGN(sizeof(struct mlxfw_mfa2_tlv_multi)); in mlxfw_mfa2_tlv_multi_child() 36 tlv_len = NLA_ALIGN(tlv_len + be16_to_cpu(multi->total_len)); in mlxfw_mfa2_tlv_next()
|
H A D | mlxfw_mfa2.c | 275 first_tlv_ptr = fw->data + NLA_ALIGN(mlxfw_mfa2_fingerprint_len); in mlxfw_mfa2_file_init() 309 mfa2_file->cb = fw->data + NLA_ALIGN(be32_to_cpu(pd->cb_offset)); in mlxfw_mfa2_file_init()
|
/openbmc/linux/net/ife/ |
H A D | ife.c | 116 if (NLA_ALIGN(tlvlen) < tlvlen) in __ife_tlv_meta_valid() 119 if (unlikely(skbdata + NLA_ALIGN(tlvlen) > ifehdr_end)) in __ife_tlv_meta_valid() 151 tlvlen = NLA_ALIGN(tlvlen); in ife_tlv_meta_next()
|
/openbmc/linux/tools/accounting/ |
H A D | procacct.c | 194 na = (struct nlattr *) ((char *) na + NLA_ALIGN(na->nla_len)); in get_family_id() 256 len2 += NLA_ALIGN(na->nla_len); in handle_aggr() 258 NLA_ALIGN(na->nla_len)); in handle_aggr() 377 len += NLA_ALIGN(na->nla_len); in main()
|
H A D | getdelays.c | 187 na = (struct nlattr *) ((char *) na + NLA_ALIGN(na->nla_len)); in get_family_id() 493 len += NLA_ALIGN(na->nla_len); in main() 537 len2 += NLA_ALIGN(na->nla_len); in main() 539 NLA_ALIGN(na->nla_len)); in main()
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | netlink.h | 231 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) macro 232 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr)))
|
/openbmc/linux/tools/lib/bpf/ |
H A D | nlattr.h | 146 if (NLMSG_ALIGN(req->nh.nlmsg_len) + NLA_ALIGN(NLA_HDRLEN + len) > sizeof(*req)) in nlattr_add() 156 req->nh.nlmsg_len = NLMSG_ALIGN(req->nh.nlmsg_len) + NLA_ALIGN(nla->nla_len); in nlattr_add()
|
H A D | nlattr.c | 27 int totlen = NLA_ALIGN(nla->nla_len); in nla_next()
|
/openbmc/linux/include/uapi/linux/ |
H A D | netlink.h | 249 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) macro 250 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr)))
|
/openbmc/linux/tools/testing/selftests/nci/ |
H A D | nci_dev.c | 139 prv_len = NLA_ALIGN(nla_len[cnt]) + NLA_HDRLEN; in send_cmd_mt_nla() 205 len += NLA_ALIGN(na->nla_len); in get_family_id() 226 group_attr_len += NLA_ALIGN(group_na->nla_len) + in get_family_id() 232 NLA_ALIGN(group_na->nla_len)); in get_family_id() 289 len += NLA_ALIGN(na->nla_len); in get_dev_enable_state() 677 len += NLA_ALIGN(na->nla_len); in get_taginfo()
|
/openbmc/linux/net/netfilter/ |
H A D | nf_conntrack_proto_dccp.c | 680 NLA_ALIGN(NLA_HDRLEN + 1) + \ 681 NLA_ALIGN(NLA_HDRLEN + 1) + \ 682 NLA_ALIGN(NLA_HDRLEN + sizeof(u64)) + \ 683 NLA_ALIGN(NLA_HDRLEN + 0))
|
H A D | nf_conntrack_proto_sctp.c | 596 NLA_ALIGN(NLA_HDRLEN + 1) + \ 597 NLA_ALIGN(NLA_HDRLEN + 4) + \ 598 NLA_ALIGN(NLA_HDRLEN + 4))
|
H A D | nf_conntrack_proto_tcp.c | 1395 NLA_ALIGN(NLA_HDRLEN + 1) + \ 1396 NLA_ALIGN(NLA_HDRLEN + 1) + \ 1397 NLA_ALIGN(NLA_HDRLEN + sizeof(struct nf_ct_tcp_flags)) + \ 1398 NLA_ALIGN(NLA_HDRLEN + sizeof(struct nf_ct_tcp_flags)))
|
/openbmc/linux/net/openvswitch/ |
H A D | conntrack.c | 1650 rem = NLA_ALIGN(nla_len(nla_zone_limit)); in ovs_ct_limit_set_zone_limit() 1677 rem -= NLA_ALIGN(sizeof(*zone_limit)); in ovs_ct_limit_set_zone_limit() 1679 NLA_ALIGN(sizeof(*zone_limit))); in ovs_ct_limit_set_zone_limit() 1695 rem = NLA_ALIGN(nla_len(nla_zone_limit)); in ovs_ct_limit_del_zone_limit() 1712 rem -= NLA_ALIGN(sizeof(*zone_limit)); in ovs_ct_limit_del_zone_limit() 1714 NLA_ALIGN(sizeof(*zone_limit))); in ovs_ct_limit_del_zone_limit() 1762 rem = NLA_ALIGN(nla_len(nla_zone_limit)); in ovs_ct_limit_get_zone_limit() 1784 rem -= NLA_ALIGN(sizeof(*zone_limit)); in ovs_ct_limit_get_zone_limit() 1786 NLA_ALIGN(sizeof(*zone_limit))); in ovs_ct_limit_get_zone_limit()
|
H A D | datapath.c | 405 size += NLA_ALIGN(upcall_info->userdata->nla_len); in upcall_msg_size() 425 size_t plen = NLA_ALIGN(skb->len) - skb->len; in pad_packet()
|
H A D | flow_netlink.c | 2461 size_t req_size = NLA_ALIGN(attr_len); in reserve_sfa_size() 3150 int totlen = NLA_ALIGN(from->nla_len); in copy_action()
|
/openbmc/linux/lib/ |
H A D | nlattr.c | 929 return skb_put_zero(skb, NLA_ALIGN(attrlen)); in __nla_reserve_nohdr() 996 if (unlikely(skb_tailroom(skb) < NLA_ALIGN(attrlen))) in nla_reserve_nohdr() 1121 if (unlikely(skb_tailroom(skb) < NLA_ALIGN(attrlen))) in nla_put_nohdr() 1140 if (unlikely(skb_tailroom(skb) < NLA_ALIGN(attrlen))) in nla_append()
|
/openbmc/linux/net/sched/ |
H A D | sch_mqprio.c | 248 struct nlattr *nlattr_opt = nla_data(opt) + NLA_ALIGN(sizeof(*qopt)); in mqprio_parse_nlattr() 249 int nlattr_opt_len = nla_len(opt) - NLA_ALIGN(sizeof(*qopt)); in mqprio_parse_nlattr() 385 len = nla_len(opt) - NLA_ALIGN(sizeof(*qopt)); in mqprio_init()
|
H A D | sch_netem.c | 949 int nested_len = nla_len(nla) - NLA_ALIGN(len); in parse_attr() 958 nla_data(nla) + NLA_ALIGN(len), in parse_attr()
|
/openbmc/linux/net/core/ |
H A D | gen_stats.c | 87 NLA_ALIGN(d->tail->nla_len)); in gnet_stats_start_copy_compat()
|
H A D | drop_monitor.c | 251 nla->nla_len += NLA_ALIGN(sizeof(struct net_dm_drop_point)); in trace_drop_common()
|
/openbmc/linux/include/linux/ |
H A D | genl_magic_func.h | 291 .hdrsize = NLA_ALIGN(GENL_MAGIC_FAMILY_HDRSZ),
|
/openbmc/qemu/linux-user/ |
H A D | fd-trans.c | 438 aligned_nla_len = NLA_ALIGN(nla_len); in host_to_target_for_each_nlattr() 1307 aligned_nla_len = NLA_ALIGN(nlattr->nla_len); in target_to_host_for_each_nlattr()
|