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()
168 if (vmf->pgoff >= buffer->pagecount) in cma_heap_vm_fault()
197 vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, PAGE_KERNEL); in cma_heap_do_vmap()
258 cma_release(cma_heap->cma, buffer->cma_pages, buffer->pagecount); in cma_heap_dma_buf_release()
284 pgoff_t pagecount = size >> PAGE_SHIFT; in cma_heap_allocate() local
302 cma_pages = cma_alloc(cma_heap->cma, pagecount, align, false); in cma_heap_allocate()
308 unsigned long nr_clear_pages = pagecount; in cma_heap_allocate()
329 buffer->pages = kmalloc_array(pagecount, sizeof(*buffer->pages), GFP_KERNEL); in cma_heap_allocate()
335 for (pg = 0; pg < pagecount; pg++) in cma_heap_allocate()
340 buffer->pagecount = pagecount; in cma_heap_allocate()
358 cma_release(cma_heap->cma, cma_pages, pagecount); in cma_heap_allocate()