Lines Matching refs:buf
2550 char buf[32]; in hugetlb_hstate_alloc_pages() local
2552 string_get_size(huge_page_size(h), 1, STRING_UNITS_2, buf, 32); in hugetlb_hstate_alloc_pages()
2554 h->max_huge_pages, buf, i); in hugetlb_hstate_alloc_pages()
2581 char buf[32]; in report_hugepages() local
2583 string_get_size(huge_page_size(h), 1, STRING_UNITS_2, buf, 32); in report_hugepages()
2585 buf, h->free_huge_pages); in report_hugepages()
2808 struct kobj_attribute *attr, char *buf) in nr_hugepages_show_common() argument
2820 return sprintf(buf, "%lu\n", nr_huge_pages); in nr_hugepages_show_common()
2857 struct kobject *kobj, const char *buf, in nr_hugepages_store_common() argument
2865 err = kstrtoul(buf, 10, &count); in nr_hugepages_store_common()
2874 struct kobj_attribute *attr, char *buf) in nr_hugepages_show() argument
2876 return nr_hugepages_show_common(kobj, attr, buf); in nr_hugepages_show()
2880 struct kobj_attribute *attr, const char *buf, size_t len) in nr_hugepages_store() argument
2882 return nr_hugepages_store_common(false, kobj, buf, len); in nr_hugepages_store()
2893 struct kobj_attribute *attr, char *buf) in nr_hugepages_mempolicy_show() argument
2895 return nr_hugepages_show_common(kobj, attr, buf); in nr_hugepages_mempolicy_show()
2899 struct kobj_attribute *attr, const char *buf, size_t len) in nr_hugepages_mempolicy_store() argument
2901 return nr_hugepages_store_common(true, kobj, buf, len); in nr_hugepages_mempolicy_store()
2908 struct kobj_attribute *attr, char *buf) in nr_overcommit_hugepages_show() argument
2911 return sprintf(buf, "%lu\n", h->nr_overcommit_huge_pages); in nr_overcommit_hugepages_show()
2915 struct kobj_attribute *attr, const char *buf, size_t count) in nr_overcommit_hugepages_store() argument
2924 err = kstrtoul(buf, 10, &input); in nr_overcommit_hugepages_store()
2937 struct kobj_attribute *attr, char *buf) in free_hugepages_show() argument
2949 return sprintf(buf, "%lu\n", free_huge_pages); in free_hugepages_show()
2954 struct kobj_attribute *attr, char *buf) in resv_hugepages_show() argument
2957 return sprintf(buf, "%lu\n", h->resv_huge_pages); in resv_hugepages_show()
2962 struct kobj_attribute *attr, char *buf) in surplus_hugepages_show() argument
2974 return sprintf(buf, "%lu\n", surplus_huge_pages); in surplus_hugepages_show()
3202 char buf[32]; in hugetlb_init() local
3205 1, STRING_UNITS_2, buf, 32); in hugetlb_init()
3207 default_hstate.max_huge_pages, buf); in hugetlb_init()
3556 int hugetlb_report_node_meminfo(char *buf, int len, int nid) in hugetlb_report_node_meminfo() argument
3563 return sysfs_emit_at(buf, len, in hugetlb_report_node_meminfo()