Home
last modified time | relevance | path

Searched refs:NLA_ALIGN (Results 1 – 25 of 29) sorted by relevance

12

/openbmc/linux/include/net/
H A Drtnh.h18 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 Dnetlink.h1158 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 Dmlxfw_mfa2_tlv_multi.c10 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 Dmlxfw_mfa2.c275 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 Dife.c116 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 Dprocacct.c194 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 Dgetdelays.c187 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 Dnetlink.h231 #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 Dnlattr.h146 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 Dnlattr.c27 int totlen = NLA_ALIGN(nla->nla_len); in nla_next()
/openbmc/linux/include/uapi/linux/
H A Dnetlink.h249 #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 Dnci_dev.c139 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 Dnf_conntrack_proto_dccp.c680 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 Dnf_conntrack_proto_sctp.c596 NLA_ALIGN(NLA_HDRLEN + 1) + \
597 NLA_ALIGN(NLA_HDRLEN + 4) + \
598 NLA_ALIGN(NLA_HDRLEN + 4))
H A Dnf_conntrack_proto_tcp.c1395 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 Dconntrack.c1650 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 Ddatapath.c405 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 Dflow_netlink.c2461 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 Dnlattr.c929 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 Dsch_mqprio.c248 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 Dsch_netem.c949 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 Dgen_stats.c87 NLA_ALIGN(d->tail->nla_len)); in gnet_stats_start_copy_compat()
H A Ddrop_monitor.c251 nla->nla_len += NLA_ALIGN(sizeof(struct net_dm_drop_point)); in trace_drop_common()
/openbmc/linux/include/linux/
H A Dgenl_magic_func.h291 .hdrsize = NLA_ALIGN(GENL_MAGIC_FAMILY_HDRSZ),
/openbmc/qemu/linux-user/
H A Dfd-trans.c438 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()

12