Home
last modified time | relevance | path

Searched refs:nhs (Results 1 – 5 of 5) sorted by relevance

/linux-4.1.27/net/decnet/
Ddn_fib.c151 int nhs = 0, nhlen = nla_len(attr); in dn_fib_count_nhs() local
156 nhs++; in dn_fib_count_nhs()
160 return nhs; in dn_fib_count_nhs()
269 int nhs = 1; in dn_fib_create_info() local
278 (nhs = dn_fib_count_nhs(attrs[RTA_MULTIPATH])) == 0) in dn_fib_create_info()
281 fi = kzalloc(sizeof(*fi)+nhs*sizeof(struct dn_fib_nh), GFP_KERNEL); in dn_fib_create_info()
287 fi->fib_nhs = nhs; in dn_fib_create_info()
338 if (!attrs[RTA_GATEWAY] || nhs != 1 || attrs[RTA_OIF]) in dn_fib_create_info()
359 if (nhs != 1 || nh->nh_gw) in dn_fib_create_info()
/linux-4.1.27/net/ipv4/
Dfib_semantics.c441 int nhs = 0; in fib_count_nexthops() local
444 nhs++; in fib_count_nexthops()
449 return remaining > 0 ? 0 : nhs; in fib_count_nexthops()
765 int nhs = 1; in fib_create_info() local
777 nhs = fib_count_nexthops(cfg->fc_mp, cfg->fc_mp_len); in fib_create_info()
778 if (nhs == 0) in fib_create_info()
805 fi = kzalloc(sizeof(*fi)+nhs*sizeof(struct fib_nh), GFP_KERNEL); in fib_create_info()
824 fi->fib_nhs = nhs; in fib_create_info()
919 if (nhs != 1 || nh->nh_gw) in fib_create_info()
/linux-4.1.27/mm/
Dhugetlb.c2100 struct node_hstate *nhs = &node_hstates[nid]; in kobj_to_node_hstate() local
2103 if (nhs->hstate_kobjs[i] == kobj) { in kobj_to_node_hstate()
2121 struct node_hstate *nhs = &node_hstates[node->dev.id]; in hugetlb_unregister_node() local
2123 if (!nhs->hugepages_kobj) in hugetlb_unregister_node()
2128 if (nhs->hstate_kobjs[idx]) { in hugetlb_unregister_node()
2129 kobject_put(nhs->hstate_kobjs[idx]); in hugetlb_unregister_node()
2130 nhs->hstate_kobjs[idx] = NULL; in hugetlb_unregister_node()
2134 kobject_put(nhs->hugepages_kobj); in hugetlb_unregister_node()
2135 nhs->hugepages_kobj = NULL; in hugetlb_unregister_node()
2165 struct node_hstate *nhs = &node_hstates[node->dev.id]; in hugetlb_register_node() local
[all …]
/linux-4.1.27/net/ipv4/netfilter/
Dipt_SYNPROXY.c303 const struct nf_hook_state *nhs) in ipv4_synproxy_hook() argument
305 struct synproxy_net *snet = synproxy_pernet(dev_net(nhs->in ? : nhs->out)); in ipv4_synproxy_hook()
/linux-4.1.27/net/ipv6/netfilter/
Dip6t_SYNPROXY.c318 const struct nf_hook_state *nhs) in ipv6_synproxy_hook() argument
320 struct synproxy_net *snet = synproxy_pernet(dev_net(nhs->in ? : nhs->out)); in ipv6_synproxy_hook()