Searched refs:nhs (Results 1 – 12 of 12) sorted by relevance
| /linux/mm/ |
| H A D | hugetlb_sysfs.c | 378 struct node_hstate *nhs = &node_hstates[nid]; in kobj_to_node_hstate() local 381 if (nhs->hstate_kobjs[i] == kobj) { in kobj_to_node_hstate() 399 struct node_hstate *nhs = &node_hstates[node->dev.id]; in hugetlb_unregister_node() local 401 if (!nhs->hugepages_kobj) in hugetlb_unregister_node() 406 struct kobject *hstate_kobj = nhs->hstate_kobjs[idx]; in hugetlb_unregister_node() 414 nhs->hstate_kobjs[idx] = NULL; in hugetlb_unregister_node() 417 kobject_put(nhs->hugepages_kobj); in hugetlb_unregister_node() 418 nhs->hugepages_kobj = NULL; in hugetlb_unregister_node() 429 struct node_hstate *nhs = &node_hstates[node->dev.id]; in hugetlb_register_node() local 435 if (nhs->hugepages_kobj) in hugetlb_register_node() [all …]
|
| /linux/include/net/netfilter/ |
| H A D | nf_synproxy.h | 64 const struct nf_hook_state *nhs); 79 const struct nf_hook_state *nhs);
|
| /linux/net/ipv4/ |
| H A D | fib_semantics.c | 529 unsigned int nhs = fib_info_num_path(fi); in fib_nlmsg_size() local 537 if (nhs) { in fib_nlmsg_size() 545 nhsize = fib_nexthop_nlmsg_size(nhc, nhs != 1); in fib_nlmsg_size() 547 if (nhs != 1) in fib_nlmsg_size() 559 if (nhs == 1) in fib_nlmsg_size() 565 if (nhs != 1) in fib_nlmsg_size() 711 int nhs = 0; in fib_count_nexthops() local 714 nhs++; in fib_count_nexthops() 722 nhs = 0; in fib_count_nexthops() 725 return nhs; in fib_count_nexthops() [all …]
|
| H A D | nexthop.c | 171 size = struct_size(info->nh_res_table, nhs, num_nh_buckets); in nh_notifier_res_table_info_init() 187 __nh_notifier_single_info_init(&info->nh_res_table->nhs[i], in nh_notifier_res_table_info_init()
|
| /linux/net/ipv6/ |
| H A D | icmp.c | 858 int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type, in ip6_err_gen_icmpv6_unreach() argument 866 if (!pskb_may_pull(skb, nhs + sizeof(struct ipv6hdr) + 8)) in ip6_err_gen_icmpv6_unreach() 882 skb_pull(skb2, nhs); in ip6_err_gen_icmpv6_unreach() 897 __skb_push(skb2, nhs); in ip6_err_gen_icmpv6_unreach() 899 memmove(skb2->data, skb2->data + nhs, data_len - nhs); in ip6_err_gen_icmpv6_unreach() 900 memset(skb2->data + data_len - nhs, 0, nhs); in ip6_err_gen_icmpv6_unreach()
|
| /linux/drivers/net/ethernet/marvell/prestera/ |
| H A D | prestera_router.c | 585 int i, nhs, err; in __prestera_kern_fib_cache_create_nhs() local 590 nhs = prestera_kern_fib_info_nhs(&fc->info); in __prestera_kern_fib_cache_create_nhs() 591 if (nhs > PRESTERA_NHGR_SIZE_MAX) in __prestera_kern_fib_cache_create_nhs() 594 for (i = 0; i < nhs; i++) { in __prestera_kern_fib_cache_create_nhs() 662 int i, nhs; in __prestera_k_arb_fib_nh_offload_set() local 664 nhs = prestera_kern_fib_info_nhs(&fibc->info); in __prestera_k_arb_fib_nh_offload_set() 665 for (i = 0; i < nhs; i++) { in __prestera_k_arb_fib_nh_offload_set()
|
| H A D | prestera_hw.h | 272 struct prestera_neigh_info *nhs, u32 grp_id);
|
| H A D | prestera_hw.c | 2089 struct prestera_neigh_info *nhs, u32 grp_id) in prestera_hw_nh_entries_set() argument 2096 req.nh[i].is_active = nhs[i].connected; in prestera_hw_nh_entries_set() 2097 memcpy(&req.nh[i].mac, nhs[i].ha, ETH_ALEN); in prestera_hw_nh_entries_set() 2098 err = prestera_iface_to_msg(&nhs[i].iface, &req.nh[i].oif); in prestera_hw_nh_entries_set()
|
| /linux/net/mpls/ |
| H A D | af_mpls.c | 875 u8 nhs = 0; in mpls_count_nexthops() local 908 if (nhs == 255) in mpls_count_nexthops() 910 nhs++; in mpls_count_nexthops() 916 return remaining > 0 ? 0 : nhs; in mpls_count_nexthops() 927 u8 nhs = 0; in mpls_nh_build_multi() local 963 nhs++; in mpls_nh_build_multi() 966 rt->rt_nhn = nhs; in mpls_nh_build_multi() 971 rt->rt_nhn = nhs; in mpls_nh_build_multi() 1006 u8 nhs; in mpls_route_add() local 1041 nhs = mpls_count_nexthops(cfg->rc_mp, cfg->rc_mp_len, in mpls_route_add() [all …]
|
| /linux/include/net/ |
| H A D | gre.h | 36 bool *csum_err, __be16 proto, int nhs);
|
| H A D | nexthop.h | 221 struct nh_notifier_single_info nhs[] __counted_by(num_nh_buckets);
|
| /linux/tools/testing/selftests/drivers/net/mlxsw/ |
| H A D | fib_offload.sh | 266 local nhs
|