Lines Matching refs:kobj
4134 static struct hstate *kobj_to_node_hstate(struct kobject *kobj, int *nidp);
4136 static struct hstate *kobj_to_hstate(struct kobject *kobj, int *nidp) in kobj_to_hstate() argument
4141 if (hstate_kobjs[i] == kobj) { in kobj_to_hstate()
4147 return kobj_to_node_hstate(kobj, nidp); in kobj_to_hstate()
4150 static ssize_t nr_hugepages_show_common(struct kobject *kobj, in nr_hugepages_show_common() argument
4157 h = kobj_to_hstate(kobj, &nid); in nr_hugepages_show_common()
4200 struct kobject *kobj, const char *buf, in nr_hugepages_store_common() argument
4212 h = kobj_to_hstate(kobj, &nid); in nr_hugepages_store_common()
4216 static ssize_t nr_hugepages_show(struct kobject *kobj, in nr_hugepages_show() argument
4219 return nr_hugepages_show_common(kobj, attr, buf); in nr_hugepages_show()
4222 static ssize_t nr_hugepages_store(struct kobject *kobj, in nr_hugepages_store() argument
4225 return nr_hugepages_store_common(false, kobj, buf, len); in nr_hugepages_store()
4235 static ssize_t nr_hugepages_mempolicy_show(struct kobject *kobj, in nr_hugepages_mempolicy_show() argument
4239 return nr_hugepages_show_common(kobj, attr, buf); in nr_hugepages_mempolicy_show()
4242 static ssize_t nr_hugepages_mempolicy_store(struct kobject *kobj, in nr_hugepages_mempolicy_store() argument
4245 return nr_hugepages_store_common(true, kobj, buf, len); in nr_hugepages_mempolicy_store()
4251 static ssize_t nr_overcommit_hugepages_show(struct kobject *kobj, in nr_overcommit_hugepages_show() argument
4254 struct hstate *h = kobj_to_hstate(kobj, NULL); in nr_overcommit_hugepages_show()
4258 static ssize_t nr_overcommit_hugepages_store(struct kobject *kobj, in nr_overcommit_hugepages_store() argument
4263 struct hstate *h = kobj_to_hstate(kobj, NULL); in nr_overcommit_hugepages_store()
4280 static ssize_t free_hugepages_show(struct kobject *kobj, in free_hugepages_show() argument
4287 h = kobj_to_hstate(kobj, &nid); in free_hugepages_show()
4297 static ssize_t resv_hugepages_show(struct kobject *kobj, in resv_hugepages_show() argument
4300 struct hstate *h = kobj_to_hstate(kobj, NULL); in resv_hugepages_show()
4305 static ssize_t surplus_hugepages_show(struct kobject *kobj, in surplus_hugepages_show() argument
4312 h = kobj_to_hstate(kobj, &nid); in surplus_hugepages_show()
4322 static ssize_t demote_store(struct kobject *kobj, in demote_store() argument
4335 h = kobj_to_hstate(kobj, &nid); in demote_store()
4381 static ssize_t demote_size_show(struct kobject *kobj, in demote_size_show() argument
4384 struct hstate *h = kobj_to_hstate(kobj, NULL); in demote_size_show()
4390 static ssize_t demote_size_store(struct kobject *kobj, in demote_size_store() argument
4408 h = kobj_to_hstate(kobj, NULL); in demote_size_store()
4514 static struct hstate *kobj_to_node_hstate(struct kobject *kobj, int *nidp) in kobj_to_node_hstate() argument
4522 if (nhs->hstate_kobjs[i] == kobj) { in kobj_to_node_hstate()
4580 &node->dev.kobj); in hugetlb_register_node()
4611 static struct hstate *kobj_to_node_hstate(struct kobject *kobj, int *nidp) in kobj_to_node_hstate() argument