Lines Matching refs:npages
226 int npages = obj->size >> PAGE_SHIFT; in omap_gem_attach_pages() local
249 addrs = kmalloc_array(npages, sizeof(*addrs), GFP_KERNEL); in omap_gem_attach_pages()
255 for (i = 0; i < npages; i++) { in omap_gem_attach_pages()
273 addrs = kcalloc(npages, sizeof(*addrs), GFP_KERNEL); in omap_gem_attach_pages()
297 unsigned int npages = obj->size >> PAGE_SHIFT; in omap_gem_detach_pages() local
302 for (i = 0; i < npages; i++) { in omap_gem_detach_pages()
647 u32 npages = obj->size >> PAGE_SHIFT; in omap_gem_roll() local
650 if (roll > npages) { in omap_gem_roll()
665 ret = tiler_pin(omap_obj->block, omap_obj->pages, npages, in omap_gem_roll()
723 int i, npages = obj->size >> PAGE_SHIFT; in omap_gem_dma_sync_buffer() local
730 for (i = 0; i < npages; i++) { in omap_gem_dma_sync_buffer()
777 u32 npages = obj->size >> PAGE_SHIFT; in omap_gem_pin() local
805 ret = tiler_pin(block, omap_obj->pages, npages, in omap_gem_pin()
1014 u32 npages = obj->size >> PAGE_SHIFT; in omap_gem_resume() local
1018 omap_obj->pages, npages, in omap_gem_resume()
1315 unsigned int npages; in omap_gem_new_dmabuf() local
1318 npages = DIV_ROUND_UP(size, PAGE_SIZE); in omap_gem_new_dmabuf()
1319 pages = kcalloc(npages, sizeof(*pages), GFP_KERNEL); in omap_gem_new_dmabuf()
1327 ret = drm_prime_sg_to_page_array(sgt, pages, npages); in omap_gem_new_dmabuf()