Lines Matching refs:count
104 bool free = (spool->count == 0) && (spool->used_hpages == 0); in unlock_or_release_subpool()
129 spool->count = 1; in hugepage_new_subpool()
146 BUG_ON(!spool->count); in hugepage_put_subpool()
147 spool->count--; in hugepage_put_subpool()
2590 static void try_to_free_low(struct hstate *h, unsigned long count, in try_to_free_low() argument
2602 if (count >= h->nr_huge_pages) in try_to_free_low()
2614 static inline void try_to_free_low(struct hstate *h, unsigned long count, in try_to_free_low() argument
2653 static int set_max_huge_pages(struct hstate *h, unsigned long count, int nid, in set_max_huge_pages() argument
2678 unsigned long old_count = count; in set_max_huge_pages()
2680 count += h->nr_huge_pages - h->nr_huge_pages_node[nid]; in set_max_huge_pages()
2687 if (count < old_count) in set_max_huge_pages()
2688 count = ULONG_MAX; in set_max_huge_pages()
2699 if (count > persistent_huge_pages(h)) { in set_max_huge_pages()
2718 while (h->surplus_huge_pages && count > persistent_huge_pages(h)) { in set_max_huge_pages()
2723 while (count > persistent_huge_pages(h)) { in set_max_huge_pages()
2761 min_count = max(count, min_count); in set_max_huge_pages()
2768 while (count < persistent_huge_pages(h)) { in set_max_huge_pages()
2825 unsigned long count, size_t len) in __nr_hugepages_store_common() argument
2851 err = set_max_huge_pages(h, count, nid, n_mask); in __nr_hugepages_store_common()
2861 unsigned long count; in nr_hugepages_store_common() local
2865 err = kstrtoul(buf, 10, &count); in nr_hugepages_store_common()
2870 return __nr_hugepages_store_common(obey_mempolicy, h, nid, count, len); in nr_hugepages_store_common()
2915 struct kobj_attribute *attr, const char *buf, size_t count) in nr_overcommit_hugepages_store() argument
2932 return count; in nr_overcommit_hugepages_store()
3535 unsigned long count = h->nr_huge_pages; in hugetlb_report_meminfo() local
3537 total += (PAGE_SIZE << huge_page_order(h)) * count; in hugetlb_report_meminfo()
3546 count, in hugetlb_report_meminfo()