/linux-6.1.9/include/net/ |
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()
|
D | netlink.h | 1129 return NLA_ALIGN(nla_attr_size(payload)); in nla_total_size() 1190 unsigned int totlen = NLA_ALIGN(nla->nla_len); in nla_next() 1923 return NLA_ALIGN(nla_attr_size(payload)) in nla_total_size_64bit() 1925 + NLA_ALIGN(nla_attr_size(0)) in nla_total_size_64bit()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxfw/ |
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() 34 tlv_len = NLA_ALIGN(tlv_len + be16_to_cpu(multi->total_len)); in mlxfw_mfa2_tlv_next()
|
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()
|
/linux-6.1.9/net/ife/ |
D | ife.c | 115 if (NLA_ALIGN(tlvlen) < tlvlen) in __ife_tlv_meta_valid() 118 if (unlikely(skbdata + NLA_ALIGN(tlvlen) > ifehdr_end)) in __ife_tlv_meta_valid() 150 tlvlen = NLA_ALIGN(tlvlen); in ife_tlv_meta_next()
|
/linux-6.1.9/tools/accounting/ |
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() 382 len += NLA_ALIGN(na->nla_len); in main()
|
D | getdelays.c | 187 na = (struct nlattr *) ((char *) na + NLA_ALIGN(na->nla_len)); in get_family_id() 487 len += NLA_ALIGN(na->nla_len); in main() 531 len2 += NLA_ALIGN(na->nla_len); in main() 533 NLA_ALIGN(na->nla_len)); in main()
|
/linux-6.1.9/tools/lib/bpf/ |
D | nlattr.h | 134 if (NLMSG_ALIGN(req->nh.nlmsg_len) + NLA_ALIGN(NLA_HDRLEN + len) > sizeof(*req)) in nlattr_add() 144 req->nh.nlmsg_len = NLMSG_ALIGN(req->nh.nlmsg_len) + NLA_ALIGN(nla->nla_len); in nlattr_add()
|
D | nlattr.c | 27 int totlen = NLA_ALIGN(nla->nla_len); in nla_next()
|
/linux-6.1.9/tools/include/uapi/linux/ |
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)))
|
/linux-6.1.9/include/uapi/linux/ |
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)))
|
/linux-6.1.9/tools/testing/selftests/nci/ |
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()
|
/linux-6.1.9/net/netfilter/ |
D | nf_conntrack_proto_dccp.c | 632 NLA_ALIGN(NLA_HDRLEN + 1) + \ 633 NLA_ALIGN(NLA_HDRLEN + 1) + \ 634 NLA_ALIGN(NLA_HDRLEN + sizeof(u64)) + \ 635 NLA_ALIGN(NLA_HDRLEN + 0))
|
D | nf_conntrack_proto_sctp.c | 586 NLA_ALIGN(NLA_HDRLEN + 1) + \ 587 NLA_ALIGN(NLA_HDRLEN + 4) + \ 588 NLA_ALIGN(NLA_HDRLEN + 4))
|
D | nf_conntrack_proto_tcp.c | 1367 NLA_ALIGN(NLA_HDRLEN + 1) + \ 1368 NLA_ALIGN(NLA_HDRLEN + 1) + \ 1369 NLA_ALIGN(NLA_HDRLEN + sizeof(struct nf_ct_tcp_flags)) + \ 1370 NLA_ALIGN(NLA_HDRLEN + sizeof(struct nf_ct_tcp_flags)))
|
/linux-6.1.9/lib/ |
D | nlattr.c | 919 return skb_put_zero(skb, NLA_ALIGN(attrlen)); in __nla_reserve_nohdr() 986 if (unlikely(skb_tailroom(skb) < NLA_ALIGN(attrlen))) in nla_reserve_nohdr() 1111 if (unlikely(skb_tailroom(skb) < NLA_ALIGN(attrlen))) in nla_put_nohdr() 1130 if (unlikely(skb_tailroom(skb) < NLA_ALIGN(attrlen))) in nla_append()
|
/linux-6.1.9/net/sched/ |
D | sch_mqprio.c | 122 int nested_len = nla_len(nla) - NLA_ALIGN(len); in parse_attr() 126 nla_data(nla) + NLA_ALIGN(len), in parse_attr() 167 len = nla_len(opt) - NLA_ALIGN(sizeof(*qopt)); in mqprio_init()
|
D | sch_netem.c | 937 int nested_len = nla_len(nla) - NLA_ALIGN(len); in parse_attr() 946 nla_data(nla) + NLA_ALIGN(len), in parse_attr()
|
/linux-6.1.9/net/openvswitch/ |
D | conntrack.c | 1971 rem = NLA_ALIGN(nla_len(nla_zone_limit)); in ovs_ct_limit_set_zone_limit() 1998 rem -= NLA_ALIGN(sizeof(*zone_limit)); in ovs_ct_limit_set_zone_limit() 2000 NLA_ALIGN(sizeof(*zone_limit))); in ovs_ct_limit_set_zone_limit() 2016 rem = NLA_ALIGN(nla_len(nla_zone_limit)); in ovs_ct_limit_del_zone_limit() 2033 rem -= NLA_ALIGN(sizeof(*zone_limit)); in ovs_ct_limit_del_zone_limit() 2035 NLA_ALIGN(sizeof(*zone_limit))); in ovs_ct_limit_del_zone_limit() 2083 rem = NLA_ALIGN(nla_len(nla_zone_limit)); in ovs_ct_limit_get_zone_limit() 2105 rem -= NLA_ALIGN(sizeof(*zone_limit)); in ovs_ct_limit_get_zone_limit() 2107 NLA_ALIGN(sizeof(*zone_limit))); in ovs_ct_limit_get_zone_limit()
|
D | datapath.c | 381 size += NLA_ALIGN(upcall_info->userdata->nla_len); in upcall_msg_size() 401 size_t plen = NLA_ALIGN(skb->len) - skb->len; in pad_packet()
|
D | flow_netlink.c | 2458 size_t req_size = NLA_ALIGN(attr_len); in reserve_sfa_size() 3138 int totlen = NLA_ALIGN(from->nla_len); in copy_action()
|
/linux-6.1.9/net/core/ |
D | gen_stats.c | 87 NLA_ALIGN(d->tail->nla_len)); in gnet_stats_start_copy_compat()
|
D | drop_monitor.c | 249 nla->nla_len += NLA_ALIGN(sizeof(struct net_dm_drop_point)); in trace_drop_common()
|
/linux-6.1.9/include/linux/ |
D | genl_magic_func.h | 290 .hdrsize = NLA_ALIGN(GENL_MAGIC_FAMILY_HDRSZ),
|
/linux-6.1.9/net/ipv6/ |
D | ip6mr.c | 2418 + maxvif * NLA_ALIGN(sizeof(struct rtnexthop)) in mr6_msgsize()
|