Lines Matching refs:hugetlb_cma
56 static struct cma *hugetlb_cma[MAX_NUMNODES];
60 return cma_pages_valid(hugetlb_cma[folio_nid(folio)], &folio->page,
1563 if (cma_release(hugetlb_cma[nid], &folio->page, 1 << order))
1583 if (hugetlb_cma[nid]) {
1584 page = cma_alloc(hugetlb_cma[nid], nr_pages,
1592 if (node == nid || !hugetlb_cma[node])
1595 page = cma_alloc(hugetlb_cma[node], nr_pages,
3283 /* skip gigantic hugepages allocation if hugetlb_cma enabled */
3285 pr_warn_once("HugeTLB: hugetlb_cma is enabled, skip boot time allocation\n");
7400 early_param("hugetlb_cma", cmdline_parse_hugetlb_cma);
7418 pr_warn("hugetlb_cma: invalid node %d specified\n", nid);
7425 pr_warn("hugetlb_cma: cma area of node %d should be at least %lu MiB\n",
7439 pr_warn("hugetlb_cma: cma area should be at least %lu MiB\n",
7451 pr_info("hugetlb_cma: reserve %lu MiB, up to %lu MiB per node\n",
7480 &hugetlb_cma[nid], nid);
7482 pr_warn("hugetlb_cma: reservation failed: err %d, node %d",
7488 pr_info("hugetlb_cma: reserved %lu MiB on node %d\n",
7508 pr_warn("hugetlb_cma: the option isn't supported by current arch\n");