Lines Matching refs:nr_pages
136 unsigned int nr_pages = PAGE_ALIGN(size) >> PAGE_SHIFT; in __dma_update_trans() local
142 if (!nr_pages) in __dma_update_trans()
151 for (i = 0; i < nr_pages; i++) { in __dma_update_trans()
343 unsigned long nr_pages; in s390_dma_map_pages() local
348 nr_pages = iommu_num_pages(pa, size, PAGE_SIZE); in s390_dma_map_pages()
349 dma_addr = dma_alloc_address(dev, nr_pages); in s390_dma_map_pages()
356 size = nr_pages * PAGE_SIZE; in s390_dma_map_pages()
365 atomic64_add(nr_pages, &zdev->mapped_pages); in s390_dma_map_pages()
369 dma_free_address(dev, dma_addr, nr_pages); in s390_dma_map_pages()
441 unsigned long nr_pages = PAGE_ALIGN(size) >> PAGE_SHIFT; in __s390_dma_map_sg() local
449 dma_addr_base = dma_alloc_address(dev, nr_pages); in __s390_dma_map_sg()
471 atomic64_add(nr_pages, &zdev->mapped_pages); in __s390_dma_map_sg()
478 dma_free_address(dev, dma_addr_base, nr_pages); in __s390_dma_map_sg()