/linux-4.1.27/arch/xtensa/mm/ |
D | mmu.c | 21 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.1.27/drivers/media/v4l2-core/ |
D | videobuf2-vmalloc.c | 30 unsigned int n_pages; member 80 int n_pages, offset; in vb2_vmalloc_get_userptr() local 104 buf->n_pages = last - first + 1; in vb2_vmalloc_get_userptr() 105 buf->pages = kzalloc(buf->n_pages * sizeof(struct page *), in vb2_vmalloc_get_userptr() 111 n_pages = get_user_pages(current, current->mm, in vb2_vmalloc_get_userptr() 112 vaddr & PAGE_MASK, buf->n_pages, in vb2_vmalloc_get_userptr() 116 if (n_pages != buf->n_pages) in vb2_vmalloc_get_userptr() 119 buf->vaddr = vm_map_ram(buf->pages, buf->n_pages, -1, in vb2_vmalloc_get_userptr() 129 pr_debug("get_user_pages requested/got: %d/%d]\n", n_pages, in vb2_vmalloc_get_userptr() 130 buf->n_pages); in vb2_vmalloc_get_userptr() [all …]
|
D | videobuf2-dma-contig.c | 61 unsigned int n_pages = PAGE_ALIGN(s->offset + s->length) in vb2_dc_sgt_foreach_page() local 65 for (j = 0; j < n_pages; ++j, ++page) in vb2_dc_sgt_foreach_page() 437 static int vb2_dc_get_user_pfn(unsigned long start, int n_pages, in vb2_dc_get_user_pfn() argument 454 for (i = 1; i < n_pages; ++i, start += PAGE_SIZE) { in vb2_dc_get_user_pfn() 471 int n_pages, struct vm_area_struct *vma, in vb2_dc_get_user_pages() argument 477 for (i = 0; i < n_pages; ++i, start += PAGE_SIZE) { in vb2_dc_get_user_pages() 494 n_pages, dma_dir == DMA_FROM_DEVICE, 1, pages, NULL); in vb2_dc_get_user_pages() 497 if (n != n_pages) { in vb2_dc_get_user_pages() 498 pr_err("got only %d of %d user pages\n", n, n_pages); in vb2_dc_get_user_pages() 579 int n_pages; in vb2_dc_get_userptr() local [all …]
|
/linux-4.1.27/drivers/staging/comedi/ |
D | comedi_buf.c | 39 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 …]
|
D | comedidev.h | 103 unsigned int n_pages; member
|
D | comedi_fops.c | 2144 int n_pages; in comedi_mmap() local 2194 n_pages = size >> PAGE_SHIFT; in comedi_mmap() 2198 if (!bm || n_pages > bm->n_pages) { in comedi_mmap() 2202 for (i = 0; i < n_pages; ++i) { in comedi_mmap()
|
/linux-4.1.27/arch/ia64/include/asm/ |
D | uncached.h | 11 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.1.27/arch/ia64/kernel/ |
D | uncached.c | 185 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.1.27/arch/arc/include/asm/ |
D | arcregs.h | 189 #define PAGES_TO_KB(n_pages) ((n_pages) << (PAGE_SHIFT - 10)) argument 190 #define PAGES_TO_MB(n_pages) (PAGES_TO_KB(n_pages) >> 10) argument
|
/linux-4.1.27/include/linux/ |
D | fscache-cache.h | 154 atomic_t n_pages; /* number of pages to be retrieved */ member 196 int n_pages) in fscache_retrieval_complete() argument 198 atomic_sub(n_pages, &op->n_pages); in fscache_retrieval_complete() 199 if (atomic_read(&op->n_pages) <= 0) in fscache_retrieval_complete()
|
D | scatterlist.h | 238 struct page **pages, unsigned int n_pages,
|
/linux-4.1.27/arch/sh/mm/ |
D | cache-sh5.c | 149 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.1.27/kernel/ |
D | relay.c | 71 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() 129 unsigned int i, j, n_pages; in relay_alloc_buf() local 132 n_pages = *size >> PAGE_SHIFT; in relay_alloc_buf() 134 buf->page_array = relay_alloc_page_array(n_pages); in relay_alloc_buf() 138 for (i = 0; i < n_pages; i++) { in relay_alloc_buf() 144 mem = vmap(buf->page_array, n_pages, VM_MAP, PAGE_KERNEL); in relay_alloc_buf() 149 buf->page_count = n_pages; in relay_alloc_buf()
|
/linux-4.1.27/lib/ |
D | scatterlist.c | 365 struct page **pages, unsigned int n_pages, in sg_alloc_table_from_pages() argument 377 for (i = 1; i < n_pages; ++i) in sg_alloc_table_from_pages() 392 for (j = cur_page + 1; j < n_pages; ++j) in sg_alloc_table_from_pages()
|
/linux-4.1.27/drivers/net/ethernet/sfc/ |
D | mcdi_mon.c | 312 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.1.27/fs/fscache/ |
D | page.c | 261 ASSERTCMP(atomic_read(&op->n_pages), ==, 0); in fscache_release_retrieval_op() 340 atomic_set(&op->n_pages, 0); in fscache_do_cancel_retrieval() 434 atomic_set(&op->n_pages, 1); in __fscache_read_or_alloc_page() 567 atomic_set(&op->n_pages, *nr_pages); in __fscache_read_or_alloc_pages() 683 atomic_set(&op->n_pages, 1); in __fscache_alloc_page()
|
/linux-4.1.27/drivers/infiniband/ulp/isert/ |
D | ib_isert.c | 2524 int i = 0, new_chunk, last_ent, n_pages; in isert_map_fr_pagelist() local 2526 n_pages = 0; in isert_map_fr_pagelist() 2547 fr_pl[n_pages++] = page; in isert_map_fr_pagelist() 2549 n_pages - 1, page); in isert_map_fr_pagelist() 2554 return n_pages; in isert_map_fr_pagelist()
|
/linux-4.1.27/Documentation/filesystems/caching/ |
D | backend-api.txt | 557 int n_pages);
|