Home
last modified time | relevance | path

Searched refs:n_pages (Results 1 – 17 of 17) sorted by relevance

/linux-4.4.14/arch/xtensa/mm/
Dmmu.c21 static void * __init init_pmd(unsigned long vaddr, unsigned long n_pages) in init_pmd() argument
28 n_pages = ALIGN(n_pages, PTRS_PER_PTE); in init_pmd()
31 __func__, vaddr, n_pages); in init_pmd()
33 pte = alloc_bootmem_low_pages(n_pages * sizeof(pte_t)); in init_pmd()
35 for (i = 0; i < n_pages; ++i) in init_pmd()
38 for (i = 0; i < n_pages; i += PTRS_PER_PTE, ++pmd) { in init_pmd()
/linux-4.4.14/drivers/staging/comedi/
Dcomedi_buf.c39 for (i = 0; i < bm->n_pages; i++) { in comedi_buf_map_kref_release()
83 unsigned n_pages) in __comedi_buf_alloc() argument
111 bm->page_list = vzalloc(sizeof(*buf) * n_pages); in __comedi_buf_alloc()
113 pages = vmalloc(sizeof(struct page *) * n_pages); in __comedi_buf_alloc()
118 for (i = 0; i < n_pages; i++) { in __comedi_buf_alloc()
140 bm->n_pages = i; in __comedi_buf_alloc()
144 if (i == n_pages) in __comedi_buf_alloc()
145 async->prealloc_buf = vmap(pages, n_pages, VM_MAP, in __comedi_buf_alloc()
178 if (bm && bm->n_pages) in comedi_buf_map_from_subdev_get()
211 unsigned n_pages = new_size >> PAGE_SHIFT; in comedi_buf_alloc() local
[all …]
Dcomedidev.h257 unsigned int n_pages; member
Dcomedi_fops.c2178 int n_pages; in comedi_mmap() local
2228 n_pages = size >> PAGE_SHIFT; in comedi_mmap()
2232 if (!bm || n_pages > bm->n_pages) { in comedi_mmap()
2236 for (i = 0; i < n_pages; ++i) { in comedi_mmap()
/linux-4.4.14/drivers/media/v4l2-core/
Dvideobuf2-vmalloc.c78 int n_pages, offset, i; in vb2_vmalloc_get_userptr() local
91 n_pages = frame_vector_count(vec); in vb2_vmalloc_get_userptr()
99 for (i = 1; i < n_pages; i++) in vb2_vmalloc_get_userptr()
105 buf->vaddr = vm_map_ram(frame_vector_pages(vec), n_pages, -1, in vb2_vmalloc_get_userptr()
128 unsigned int n_pages; in vb2_vmalloc_put_userptr() local
131 n_pages = frame_vector_count(buf->vec); in vb2_vmalloc_put_userptr()
134 vm_unmap_ram((void *)vaddr, n_pages); in vb2_vmalloc_put_userptr()
136 for (i = 0; i < n_pages; i++) in vb2_vmalloc_put_userptr()
Dvideobuf2-dma-contig.c480 int n_pages, i; in vb2_dc_get_userptr() local
514 n_pages = frame_vector_count(vec); in vb2_dc_get_userptr()
523 for (i = 1; i < n_pages; i++) in vb2_dc_get_userptr()
537 ret = sg_alloc_table_from_pages(sgt, frame_vector_pages(vec), n_pages, in vb2_dc_get_userptr()
/linux-4.4.14/arch/ia64/include/asm/
Duncached.h11 extern unsigned long uncached_alloc_page(int starting_nid, int n_pages);
12 extern void uncached_free_page(unsigned long uc_addr, int n_pages);
/linux-4.4.14/arch/ia64/kernel/
Duncached.c185 unsigned long uncached_alloc_page(int starting_nid, int n_pages) in uncached_alloc_page() argument
206 n_pages * PAGE_SIZE); in uncached_alloc_page()
226 void uncached_free_page(unsigned long uc_addr, int n_pages) in uncached_free_page() argument
237 gen_pool_free(pool, uc_addr, n_pages * PAGE_SIZE); in uncached_free_page()
/linux-4.4.14/include/linux/
Dfscache-cache.h142 atomic_t n_pages; /* number of pages to be retrieved */ member
184 int n_pages) in fscache_retrieval_complete() argument
186 atomic_sub(n_pages, &op->n_pages); in fscache_retrieval_complete()
187 if (atomic_read(&op->n_pages) <= 0) in fscache_retrieval_complete()
Dscatterlist.h265 struct page **pages, unsigned int n_pages,
/linux-4.4.14/arch/arc/include/asm/
Darcregs.h199 #define PAGES_TO_KB(n_pages) ((n_pages) << (PAGE_SHIFT - 10)) argument
200 #define PAGES_TO_MB(n_pages) (PAGES_TO_KB(n_pages) >> 10) argument
/linux-4.4.14/arch/sh/mm/
Dcache-sh5.c149 int n_pages; in sh64_icache_inv_user_page_range() local
154 n_pages = ((end - start) >> PAGE_SHIFT); in sh64_icache_inv_user_page_range()
155 if (n_pages >= 64) { in sh64_icache_inv_user_page_range()
470 int n_pages = ((end - start) >> PAGE_SHIFT); in sh64_dcache_purge_user_range() local
472 if (n_pages >= 64 || ((start ^ (end - 1)) & PMD_MASK)) { in sh64_dcache_purge_user_range()
/linux-4.4.14/kernel/
Drelay.c71 static struct page **relay_alloc_page_array(unsigned int n_pages) in relay_alloc_page_array() argument
73 const size_t pa_size = n_pages * sizeof(struct page *); in relay_alloc_page_array()
126 unsigned int i, j, n_pages; in relay_alloc_buf() local
129 n_pages = *size >> PAGE_SHIFT; in relay_alloc_buf()
131 buf->page_array = relay_alloc_page_array(n_pages); in relay_alloc_buf()
135 for (i = 0; i < n_pages; i++) { in relay_alloc_buf()
141 mem = vmap(buf->page_array, n_pages, VM_MAP, PAGE_KERNEL); in relay_alloc_buf()
146 buf->page_count = n_pages; in relay_alloc_buf()
/linux-4.4.14/lib/
Dscatterlist.c393 struct page **pages, unsigned int n_pages, in sg_alloc_table_from_pages() argument
405 for (i = 1; i < n_pages; ++i) in sg_alloc_table_from_pages()
420 for (j = cur_page + 1; j < n_pages; ++j) in sg_alloc_table_from_pages()
/linux-4.4.14/drivers/net/ethernet/sfc/
Dmcdi_mon.c312 unsigned int n_pages, n_sensors, n_attrs, page; in efx_mcdi_mon_probe() local
335 n_pages = page; in efx_mcdi_mon_probe()
381 if (page == n_pages) in efx_mcdi_mon_probe()
/linux-4.4.14/fs/fscache/
Dpage.c259 atomic_set(&op->n_pages, 0); in fscache_do_cancel_retrieval()
273 atomic_read(&op->n_pages), ==, 0); in fscache_release_retrieval_op()
445 atomic_set(&op->n_pages, 1); in __fscache_read_or_alloc_page()
573 atomic_set(&op->n_pages, *nr_pages); in __fscache_read_or_alloc_pages()
684 atomic_set(&op->n_pages, 1); in __fscache_alloc_page()
/linux-4.4.14/Documentation/filesystems/caching/
Dbackend-api.txt557 int n_pages);