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()
256 cma_release(cma_heap->cma, buffer->cma_pages, buffer->pagecount); in cma_heap_dma_buf_release()
282 pgoff_t pagecount = size >> PAGE_SHIFT; in cma_heap_allocate() local
300 cma_pages = cma_alloc(cma_heap->cma, pagecount, align, GFP_KERNEL); in cma_heap_allocate()
306 unsigned long nr_clear_pages = pagecount; in cma_heap_allocate()
327 buffer->pages = kmalloc_array(pagecount, sizeof(*buffer->pages), GFP_KERNEL); in cma_heap_allocate()
333 for (pg = 0; pg < pagecount; pg++) in cma_heap_allocate()
338 buffer->pagecount = pagecount; in cma_heap_allocate()
357 cma_release(cma_heap->cma, cma_pages, pagecount); in cma_heap_allocate()