Lines Matching refs:count
79 bool free = (spool->count == 0) && (spool->used_hpages == 0); in unlock_or_release_subpool()
104 spool->count = 1; in hugepage_new_subpool()
121 BUG_ON(!spool->count); in hugepage_put_subpool()
122 spool->count--; in hugepage_put_subpool()
2361 static void try_to_free_low(struct hstate *h, unsigned long count, in try_to_free_low() argument
2373 if (count >= h->nr_huge_pages) in try_to_free_low()
2385 static inline void try_to_free_low(struct hstate *h, unsigned long count, in try_to_free_low() argument
2424 static int set_max_huge_pages(struct hstate *h, unsigned long count, int nid, in set_max_huge_pages() argument
2449 unsigned long old_count = count; in set_max_huge_pages()
2451 count += h->nr_huge_pages - h->nr_huge_pages_node[nid]; in set_max_huge_pages()
2458 if (count < old_count) in set_max_huge_pages()
2459 count = ULONG_MAX; in set_max_huge_pages()
2470 if (count > persistent_huge_pages(h)) { in set_max_huge_pages()
2489 while (h->surplus_huge_pages && count > persistent_huge_pages(h)) { in set_max_huge_pages()
2494 while (count > persistent_huge_pages(h)) { in set_max_huge_pages()
2532 min_count = max(count, min_count); in set_max_huge_pages()
2539 while (count < persistent_huge_pages(h)) { in set_max_huge_pages()
2596 unsigned long count, size_t len) in __nr_hugepages_store_common() argument
2622 err = set_max_huge_pages(h, count, nid, n_mask); in __nr_hugepages_store_common()
2632 unsigned long count; in nr_hugepages_store_common() local
2636 err = kstrtoul(buf, 10, &count); in nr_hugepages_store_common()
2641 return __nr_hugepages_store_common(obey_mempolicy, h, nid, count, len); in nr_hugepages_store_common()
2686 struct kobj_attribute *attr, const char *buf, size_t count) in nr_overcommit_hugepages_store() argument
2703 return count; in nr_overcommit_hugepages_store()
3168 unsigned long count = h->nr_huge_pages; in hugetlb_report_meminfo() local
3170 total += (PAGE_SIZE << huge_page_order(h)) * count; in hugetlb_report_meminfo()
3179 count, in hugetlb_report_meminfo()