Lines Matching refs:pagecount
38 pgoff_t pagecount; member
62 buffer->pagecount, 0, in cma_heap_attach()
63 buffer->pagecount << PAGE_SHIFT, in cma_heap_attach()
170 if (vmf->pgoff > buffer->pagecount) in cma_heap_vm_fault()
200 vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, PAGE_KERNEL); in cma_heap_do_vmap()
261 cma_release(cma_heap->cma, buffer->cma_pages, buffer->pagecount); in cma_heap_dma_buf_release()
287 pgoff_t pagecount = size >> PAGE_SHIFT; in cma_heap_allocate() local
305 cma_pages = cma_alloc(cma_heap->cma, pagecount, align, false); in cma_heap_allocate()
311 unsigned long nr_clear_pages = pagecount; in cma_heap_allocate()
332 buffer->pages = kmalloc_array(pagecount, sizeof(*buffer->pages), GFP_KERNEL); in cma_heap_allocate()
338 for (pg = 0; pg < pagecount; pg++) in cma_heap_allocate()
343 buffer->pagecount = pagecount; in cma_heap_allocate()
361 cma_release(cma_heap->cma, cma_pages, pagecount); in cma_heap_allocate()