nhs 115 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c unsigned int nhs; nhs 126 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c nhs = fib_info_num_path(fi); nhs 127 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c if (nhs == 1) { nhs 138 drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c if (nhs != 2) nhs 3881 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c unsigned int nhs = fib_info_num_path(fi); nhs 3888 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c nh_grp = kzalloc(struct_size(nh_grp, nexthops, nhs), GFP_KERNEL); nhs 3896 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c nh_grp->count = nhs; nhs 22 include/linux/icmpv6.h int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type, nhs 38 include/net/gre.h bool *csum_err, __be16 proto, int nhs); nhs 64 include/net/netfilter/nf_synproxy.h const struct nf_hook_state *nhs); nhs 79 include/net/netfilter/nf_synproxy.h const struct nf_hook_state *nhs); nhs 2838 mm/hugetlb.c struct node_hstate *nhs = &node_hstates[nid]; nhs 2841 mm/hugetlb.c if (nhs->hstate_kobjs[i] == kobj) { nhs 2859 mm/hugetlb.c struct node_hstate *nhs = &node_hstates[node->dev.id]; nhs 2861 mm/hugetlb.c if (!nhs->hugepages_kobj) nhs 2866 mm/hugetlb.c if (nhs->hstate_kobjs[idx]) { nhs 2867 mm/hugetlb.c kobject_put(nhs->hstate_kobjs[idx]); nhs 2868 mm/hugetlb.c nhs->hstate_kobjs[idx] = NULL; nhs 2872 mm/hugetlb.c kobject_put(nhs->hugepages_kobj); nhs 2873 mm/hugetlb.c nhs->hugepages_kobj = NULL; nhs 2884 mm/hugetlb.c struct node_hstate *nhs = &node_hstates[node->dev.id]; nhs 2887 mm/hugetlb.c if (nhs->hugepages_kobj) nhs 2890 mm/hugetlb.c nhs->hugepages_kobj = kobject_create_and_add("hugepages", nhs 2892 mm/hugetlb.c if (!nhs->hugepages_kobj) nhs 2896 mm/hugetlb.c err = hugetlb_sysfs_add_hstate(h, nhs->hugepages_kobj, nhs 2897 mm/hugetlb.c nhs->hstate_kobjs, nhs 153 net/decnet/dn_fib.c int nhs = 0, nhlen = nla_len(attr); nhs 156 net/decnet/dn_fib.c nhs++; nhs 161 net/decnet/dn_fib.c return nhlen > 0 ? 0 : nhs; nhs 273 net/decnet/dn_fib.c int nhs = 1; nhs 282 net/decnet/dn_fib.c (nhs = dn_fib_count_nhs(attrs[RTA_MULTIPATH])) == 0) nhs 285 net/decnet/dn_fib.c fi = kzalloc(struct_size(fi, fib_nh, nhs), GFP_KERNEL); nhs 291 net/decnet/dn_fib.c fi->fib_nhs = nhs; nhs 342 net/decnet/dn_fib.c if (!attrs[RTA_GATEWAY] || nhs != 1 || attrs[RTA_OIF]) nhs 363 net/decnet/dn_fib.c if (nhs != 1 || nh->nh_gw) nhs 463 net/ipv4/fib_semantics.c unsigned int nhs = fib_info_num_path(fi); nhs 471 net/ipv4/fib_semantics.c if (nhs) { nhs 496 net/ipv4/fib_semantics.c payload += nla_total_size((nhs * nhsize) + nh_encapsize); nhs 640 net/ipv4/fib_semantics.c int nhs = 0; nhs 643 net/ipv4/fib_semantics.c nhs++; nhs 651 net/ipv4/fib_semantics.c nhs = 0; nhs 654 net/ipv4/fib_semantics.c return nhs; nhs 1344 net/ipv4/fib_semantics.c int nhs = 1; nhs 1376 net/ipv4/fib_semantics.c nhs = 0; nhs 1381 net/ipv4/fib_semantics.c nhs = fib_count_nexthops(cfg->fc_mp, cfg->fc_mp_len, extack); nhs 1382 net/ipv4/fib_semantics.c if (nhs == 0) nhs 1409 net/ipv4/fib_semantics.c fi = kzalloc(struct_size(fi, fib_nh, nhs), GFP_KERNEL); nhs 1430 net/ipv4/fib_semantics.c fi->fib_nhs = nhs; nhs 1488 net/ipv4/fib_semantics.c if (nhs != 1) { nhs 1731 net/ipv4/fib_semantics.c unsigned int nhs = fib_info_num_path(fi); nhs 1775 net/ipv4/fib_semantics.c if (nhs == 1) { nhs 63 net/ipv4/gre_demux.c bool *csum_err, __be16 proto, int nhs) nhs 69 net/ipv4/gre_demux.c if (unlikely(!pskb_may_pull(skb, nhs + sizeof(struct gre_base_hdr)))) nhs 72 net/ipv4/gre_demux.c greh = (struct gre_base_hdr *)(skb->data + nhs); nhs 79 net/ipv4/gre_demux.c if (!pskb_may_pull(skb, nhs + hdr_len)) nhs 82 net/ipv4/gre_demux.c greh = (struct gre_base_hdr *)(skb->data + nhs); nhs 117 net/ipv4/gre_demux.c val = skb_header_pointer(skb, nhs + hdr_len, nhs 135 net/ipv4/gre_demux.c if (!pskb_may_pull(skb, nhs + hdr_len + sizeof(*ershdr))) nhs 138 net/ipv4/gre_demux.c ershdr = (struct erspan_base_hdr *)(skb->data + nhs + hdr_len); nhs 612 net/ipv6/icmp.c int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type, nhs 620 net/ipv6/icmp.c if (!pskb_may_pull(skb, nhs + sizeof(struct ipv6hdr) + 8)) nhs 633 net/ipv6/icmp.c skb_pull(skb2, nhs); nhs 648 net/ipv6/icmp.c __skb_push(skb2, nhs); nhs 650 net/ipv6/icmp.c memmove(skb2->data, skb2->data + nhs, data_len - nhs); nhs 651 net/ipv6/icmp.c memset(skb2->data + data_len - nhs, 0, nhs); nhs 838 net/mpls/af_mpls.c u8 nhs = 0; nhs 871 net/mpls/af_mpls.c if (nhs == 255) nhs 873 net/mpls/af_mpls.c nhs++; nhs 879 net/mpls/af_mpls.c return remaining > 0 ? 0 : nhs; nhs 890 net/mpls/af_mpls.c u8 nhs = 0; nhs 926 net/mpls/af_mpls.c nhs++; nhs 929 net/mpls/af_mpls.c rt->rt_nhn = nhs; nhs 970 net/mpls/af_mpls.c u8 nhs; nhs 1006 net/mpls/af_mpls.c nhs = mpls_count_nexthops(cfg->rc_mp, cfg->rc_mp_len, nhs 1012 net/mpls/af_mpls.c nhs = 1; nhs 1015 net/mpls/af_mpls.c if (nhs == 0) { nhs 1021 net/mpls/af_mpls.c rt = mpls_rt_alloc(nhs, max_via_alen, max_labels); nhs 658 net/netfilter/nf_synproxy_core.c const struct nf_hook_state *nhs) nhs 660 net/netfilter/nf_synproxy_core.c struct net *net = nhs->net; nhs 1076 net/netfilter/nf_synproxy_core.c const struct nf_hook_state *nhs) nhs 1078 net/netfilter/nf_synproxy_core.c struct net *net = nhs->net;