• Home
  • Raw
  • Download

Lines Matching refs:count

94 	bool free = (spool->count == 0) && (spool->used_hpages == 0);  in unlock_or_release_subpool()
119 spool->count = 1; in hugepage_new_subpool()
136 BUG_ON(!spool->count); in hugepage_put_subpool()
137 spool->count--; in hugepage_put_subpool()
2405 static void try_to_free_low(struct hstate *h, unsigned long count, in try_to_free_low() argument
2417 if (count >= h->nr_huge_pages) in try_to_free_low()
2429 static inline void try_to_free_low(struct hstate *h, unsigned long count, in try_to_free_low() argument
2468 static int set_max_huge_pages(struct hstate *h, unsigned long count, int nid, in set_max_huge_pages() argument
2493 unsigned long old_count = count; in set_max_huge_pages()
2495 count += h->nr_huge_pages - h->nr_huge_pages_node[nid]; in set_max_huge_pages()
2502 if (count < old_count) in set_max_huge_pages()
2503 count = ULONG_MAX; in set_max_huge_pages()
2514 if (count > persistent_huge_pages(h)) { in set_max_huge_pages()
2533 while (h->surplus_huge_pages && count > persistent_huge_pages(h)) { in set_max_huge_pages()
2538 while (count > persistent_huge_pages(h)) { in set_max_huge_pages()
2576 min_count = max(count, min_count); in set_max_huge_pages()
2583 while (count < persistent_huge_pages(h)) { in set_max_huge_pages()
2640 unsigned long count, size_t len) in __nr_hugepages_store_common() argument
2666 err = set_max_huge_pages(h, count, nid, n_mask); in __nr_hugepages_store_common()
2676 unsigned long count; in nr_hugepages_store_common() local
2680 err = kstrtoul(buf, 10, &count); in nr_hugepages_store_common()
2685 return __nr_hugepages_store_common(obey_mempolicy, h, nid, count, len); in nr_hugepages_store_common()
2730 struct kobj_attribute *attr, const char *buf, size_t count) in nr_overcommit_hugepages_store() argument
2747 return count; in nr_overcommit_hugepages_store()
3228 unsigned long count = h->nr_huge_pages; in hugetlb_report_meminfo() local
3230 total += (PAGE_SIZE << huge_page_order(h)) * count; in hugetlb_report_meminfo()
3239 count, in hugetlb_report_meminfo()