Searched refs:nhs (Results 1 – 5 of 5) sorted by relevance
151 int nhs = 0, nhlen = nla_len(attr); in dn_fib_count_nhs() local156 nhs++; in dn_fib_count_nhs()160 return nhs; in dn_fib_count_nhs()269 int nhs = 1; in dn_fib_create_info() local278 (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()
441 int nhs = 0; in fib_count_nexthops() local444 nhs++; in fib_count_nexthops()449 return remaining > 0 ? 0 : nhs; in fib_count_nexthops()765 int nhs = 1; in fib_create_info() local777 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()
2100 struct node_hstate *nhs = &node_hstates[nid]; in kobj_to_node_hstate() local2103 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() local2123 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 …]
303 const struct nf_hook_state *nhs) in ipv4_synproxy_hook() argument305 struct synproxy_net *snet = synproxy_pernet(dev_net(nhs->in ? : nhs->out)); in ipv4_synproxy_hook()
318 const struct nf_hook_state *nhs) in ipv6_synproxy_hook() argument320 struct synproxy_net *snet = synproxy_pernet(dev_net(nhs->in ? : nhs->out)); in ipv6_synproxy_hook()