Lines Matching refs:pagecount
44 pgoff_t pagecount; member
64 size_t size = buffer->pagecount << PAGE_SHIFT; in rk_cma_heap_attach()
201 unsigned int len = buffer->pagecount * PAGE_SIZE; in rk_cma_heap_dma_buf_begin_cpu_access()
210 unsigned int len = buffer->pagecount * PAGE_SIZE; in rk_cma_heap_dma_buf_end_cpu_access()
234 vaddr = vmap(buffer->pages, buffer->pagecount, VM_MAP, pgprot); in rk_cma_heap_do_vmap()
400 cma_release(cma_heap->cma, buffer->cma_pages, buffer->pagecount); in rk_cma_heap_dma_buf_release()
432 pgoff_t pagecount = size >> PAGE_SHIFT; in rk_cma_heap_allocate() local
450 cma_pages = cma_alloc(cma_heap->cma, pagecount, align, GFP_KERNEL); in rk_cma_heap_allocate()
456 unsigned long nr_clear_pages = pagecount; in rk_cma_heap_allocate()
477 buffer->pages = kmalloc_array(pagecount, sizeof(*buffer->pages), in rk_cma_heap_allocate()
484 for (pg = 0; pg < pagecount; pg++) in rk_cma_heap_allocate()
489 buffer->pagecount = pagecount; in rk_cma_heap_allocate()
505 buffer->pagecount * PAGE_SIZE, in rk_cma_heap_allocate()
521 cma_release(cma_heap->cma, cma_pages, pagecount); in rk_cma_heap_allocate()
533 pgoff_t pagecount = size >> PAGE_SHIFT; in rk_cma_heap_allocate_pages() local
541 page = cma_alloc(cma_heap->cma, pagecount, align, GFP_KERNEL); in rk_cma_heap_allocate_pages()
547 cma_release(cma_heap->cma, page, pagecount); in rk_cma_heap_allocate_pages()
561 pgoff_t pagecount = len >> PAGE_SHIFT; in rk_cma_heap_free_pages() local
565 cma_release(cma_heap->cma, page, pagecount); in rk_cma_heap_free_pages()