Lines Matching refs:pagecount
41 pgoff_t pagecount; member
69 buffer->pagecount, 0, in cma_heap_attach()
70 buffer->pagecount << PAGE_SHIFT, in cma_heap_attach()
233 if (vmf->pgoff > buffer->pagecount) in cma_heap_vm_fault()
270 vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, pgprot); in cma_heap_do_vmap()
326 cma_release(cma_heap->cma, buffer->cma_pages, buffer->pagecount); in cma_heap_dma_buf_release()
356 pgoff_t pagecount = size >> PAGE_SHIFT; in cma_heap_do_allocate() local
377 cma_pages = cma_alloc(cma_heap->cma, pagecount, align, GFP_KERNEL); in cma_heap_do_allocate()
383 unsigned long nr_clear_pages = pagecount; in cma_heap_do_allocate()
404 buffer->pages = kmalloc_array(pagecount, sizeof(*buffer->pages), GFP_KERNEL); in cma_heap_do_allocate()
410 for (pg = 0; pg < pagecount; pg++) in cma_heap_do_allocate()
415 buffer->pagecount = pagecount; in cma_heap_do_allocate()
431 buffer->pagecount * PAGE_SIZE, DMA_FROM_DEVICE); in cma_heap_do_allocate()
433 buffer->pagecount * PAGE_SIZE, DMA_FROM_DEVICE); in cma_heap_do_allocate()
441 cma_release(cma_heap->cma, cma_pages, pagecount); in cma_heap_do_allocate()