Lines Matching refs:nhs
3069 struct node_hstate *nhs = &node_hstates[nid]; in kobj_to_node_hstate() local
3072 if (nhs->hstate_kobjs[i] == kobj) { in kobj_to_node_hstate()
3090 struct node_hstate *nhs = &node_hstates[node->dev.id]; in hugetlb_unregister_node() local
3092 if (!nhs->hugepages_kobj) in hugetlb_unregister_node()
3097 if (nhs->hstate_kobjs[idx]) { in hugetlb_unregister_node()
3098 kobject_put(nhs->hstate_kobjs[idx]); in hugetlb_unregister_node()
3099 nhs->hstate_kobjs[idx] = NULL; in hugetlb_unregister_node()
3103 kobject_put(nhs->hugepages_kobj); in hugetlb_unregister_node()
3104 nhs->hugepages_kobj = NULL; in hugetlb_unregister_node()
3115 struct node_hstate *nhs = &node_hstates[node->dev.id]; in hugetlb_register_node() local
3118 if (nhs->hugepages_kobj) in hugetlb_register_node()
3121 nhs->hugepages_kobj = kobject_create_and_add("hugepages", in hugetlb_register_node()
3123 if (!nhs->hugepages_kobj) in hugetlb_register_node()
3127 err = hugetlb_sysfs_add_hstate(h, nhs->hugepages_kobj, in hugetlb_register_node()
3128 nhs->hstate_kobjs, in hugetlb_register_node()