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()
198 vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, PAGE_KERNEL); in cma_heap_do_vmap()
259 cma_release(cma_heap->cma, buffer->cma_pages, buffer->pagecount); in cma_heap_dma_buf_release()
285 pgoff_t pagecount = size >> PAGE_SHIFT; in cma_heap_allocate() local
303 cma_pages = cma_alloc(cma_heap->cma, pagecount, align, false); in cma_heap_allocate()
309 unsigned long nr_clear_pages = pagecount; in cma_heap_allocate()
330 buffer->pages = kmalloc_array(pagecount, sizeof(*buffer->pages), GFP_KERNEL); in cma_heap_allocate()
336 for (pg = 0; pg < pagecount; pg++) in cma_heap_allocate()
341 buffer->pagecount = pagecount; in cma_heap_allocate()
359 cma_release(cma_heap->cma, cma_pages, pagecount); in cma_heap_allocate()