Lines Matching defs:pages
78 unsigned long pages)
80 return ALIGN(pages, 1UL << cma->order_per_bit) >> cma->order_per_bit;
135 /* Expose all pages to the buddy, they are useless for CMA. */
166 * @order_per_bit: Order of pages represented by one bit on bitmap.
225 * @order_per_bit: Order of pages represented by one bit on bitmap.
331 * and guarantee that the compaction is moving pages out of the
346 * All pages in the reserved area must come from the same zone.
399 pr_info("number of available pages: ");
412 pr_cont("=> %lu free of %lu total pages\n", nr_total, cma->count);
420 * cma_alloc() - allocate pages from contiguous area
422 * @count: Requested number of pages.
423 * @align: Requested alignment of pages (in PAGE_SIZE order).
512 pr_err_ratelimited("%s: %s: alloc failed, req-size: %lu pages, ret: %d\n",
531 bool cma_pages_valid(struct cma *cma, const struct page *pages,
536 if (!cma || !pages)
539 pfn = page_to_pfn(pages);
543 (void *)pages, count);
551 * cma_release() - release allocated pages
553 * @pages: Allocated pages.
554 * @count: Number of allocated pages.
557 * It returns false when provided pages do not belong to contiguous area and
560 bool cma_release(struct cma *cma, const struct page *pages,
565 if (!cma_pages_valid(cma, pages, count))
568 pr_debug("%s(page %p, count %lu)\n", __func__, (void *)pages, count);
570 pfn = page_to_pfn(pages);
576 trace_cma_release(cma->name, pfn, pages, count);