Lines Matching refs:buf
1532 static char * __init memfmt(char *buf, unsigned long n)
1535 sprintf(buf, "%lu GB", n >> 30);
1537 sprintf(buf, "%lu MB", n >> 20);
1539 sprintf(buf, "%lu KB", n >> 10);
1540 return buf;
1548 char buf[32];
1550 memfmt(buf, huge_page_size(h)),
1724 struct kobj_attribute *attr, char *buf)
1736 return sprintf(buf, "%lu\n", nr_huge_pages);
1782 struct kobject *kobj, const char *buf,
1790 err = kstrtoul(buf, 10, &count);
1799 struct kobj_attribute *attr, char *buf)
1801 return nr_hugepages_show_common(kobj, attr, buf);
1805 struct kobj_attribute *attr, const char *buf, size_t len)
1807 return nr_hugepages_store_common(false, kobj, buf, len);
1818 struct kobj_attribute *attr, char *buf)
1820 return nr_hugepages_show_common(kobj, attr, buf);
1824 struct kobj_attribute *attr, const char *buf, size_t len)
1826 return nr_hugepages_store_common(true, kobj, buf, len);
1833 struct kobj_attribute *attr, char *buf)
1836 return sprintf(buf, "%lu\n", h->nr_overcommit_huge_pages);
1840 struct kobj_attribute *attr, const char *buf, size_t count)
1849 err = kstrtoul(buf, 10, &input);
1862 struct kobj_attribute *attr, char *buf)
1874 return sprintf(buf, "%lu\n", free_huge_pages);
1879 struct kobj_attribute *attr, char *buf)
1882 return sprintf(buf, "%lu\n", h->resv_huge_pages);
1887 struct kobj_attribute *attr, char *buf)
1899 return sprintf(buf, "%lu\n", surplus_huge_pages);
2349 int hugetlb_report_node_meminfo(int nid, char *buf)
2354 return sprintf(buf,