Lines Matching refs:buf
2321 char buf[32]; in hugetlb_hstate_alloc_pages() local
2323 string_get_size(huge_page_size(h), 1, STRING_UNITS_2, buf, 32); in hugetlb_hstate_alloc_pages()
2325 h->max_huge_pages, buf, i); in hugetlb_hstate_alloc_pages()
2352 char buf[32]; in report_hugepages() local
2354 string_get_size(huge_page_size(h), 1, STRING_UNITS_2, buf, 32); in report_hugepages()
2356 buf, h->free_huge_pages); in report_hugepages()
2579 struct kobj_attribute *attr, char *buf) in nr_hugepages_show_common() argument
2591 return sprintf(buf, "%lu\n", nr_huge_pages); in nr_hugepages_show_common()
2628 struct kobject *kobj, const char *buf, in nr_hugepages_store_common() argument
2636 err = kstrtoul(buf, 10, &count); in nr_hugepages_store_common()
2645 struct kobj_attribute *attr, char *buf) in nr_hugepages_show() argument
2647 return nr_hugepages_show_common(kobj, attr, buf); in nr_hugepages_show()
2651 struct kobj_attribute *attr, const char *buf, size_t len) in nr_hugepages_store() argument
2653 return nr_hugepages_store_common(false, kobj, buf, len); in nr_hugepages_store()
2664 struct kobj_attribute *attr, char *buf) in nr_hugepages_mempolicy_show() argument
2666 return nr_hugepages_show_common(kobj, attr, buf); in nr_hugepages_mempolicy_show()
2670 struct kobj_attribute *attr, const char *buf, size_t len) in nr_hugepages_mempolicy_store() argument
2672 return nr_hugepages_store_common(true, kobj, buf, len); in nr_hugepages_mempolicy_store()
2679 struct kobj_attribute *attr, char *buf) in nr_overcommit_hugepages_show() argument
2682 return sprintf(buf, "%lu\n", h->nr_overcommit_huge_pages); in nr_overcommit_hugepages_show()
2686 struct kobj_attribute *attr, const char *buf, size_t count) in nr_overcommit_hugepages_store() argument
2695 err = kstrtoul(buf, 10, &input); in nr_overcommit_hugepages_store()
2708 struct kobj_attribute *attr, char *buf) in free_hugepages_show() argument
2720 return sprintf(buf, "%lu\n", free_huge_pages); in free_hugepages_show()
2725 struct kobj_attribute *attr, char *buf) in resv_hugepages_show() argument
2728 return sprintf(buf, "%lu\n", h->resv_huge_pages); in resv_hugepages_show()
2733 struct kobj_attribute *attr, char *buf) in surplus_hugepages_show() argument
2745 return sprintf(buf, "%lu\n", surplus_huge_pages); in surplus_hugepages_show()
3189 int hugetlb_report_node_meminfo(int nid, char *buf) in hugetlb_report_node_meminfo() argument
3194 return sprintf(buf, in hugetlb_report_node_meminfo()