Home
last modified time | relevance | path

Searched refs:pages (Results 1 – 25 of 461) sorted by relevance

12345678910>>...19

/freebsd/sys/vm/
H A Dvm_radix.h77 vm_radix_iter_insert(struct pctrie_iter *pages, vm_page_t page) in vm_radix_iter_insert() argument
79 return (VM_RADIX_PCTRIE_ITER_INSERT(pages, page)); in vm_radix_iter_insert()
128 vm_radix_iter_init(struct pctrie_iter *pages, struct vm_radix *rtree) in vm_radix_iter_init() argument
130 pctrie_iter_init(pages, &rtree->rt_trie); in vm_radix_iter_init()
137 vm_radix_iter_limit_init(struct pctrie_iter *pages, struct vm_radix *rtree, in vm_radix_iter_limit_init() argument
140 pctrie_iter_limit_init(pages, &rtree->rt_trie, limit); in vm_radix_iter_limit_init()
150 vm_radix_iter_lookup(struct pctrie_iter *pages, vm_pindex_t index) in vm_radix_iter_lookup() argument
152 return (VM_RADIX_PCTRIE_ITER_LOOKUP(pages, index)); in vm_radix_iter_lookup()
162 vm_radix_iter_stride(struct pctrie_iter *pages, int stride) in vm_radix_iter_stride() argument
164 return (VM_RADIX_PCTRIE_ITER_STRIDE(pages, stride)); in vm_radix_iter_stride()
[all …]
H A Dvm_glue.c443 vm_thread_stack_create(struct domainset *ds, int pages) in vm_thread_stack_create() argument
452 obj = vm_thread_kstack_size_to_obj(pages); in vm_thread_stack_create()
460 ks = vm_thread_alloc_kstack_kva(ptoa(pages + KSTACK_GUARD_PAGES), in vm_thread_stack_create()
469 if (vm_thread_stack_back(ks, ma, pages, req, domain) != 0) { in vm_thread_stack_create()
471 ptoa(pages + KSTACK_GUARD_PAGES), domain); in vm_thread_stack_create()
478 for (i = 0; i < pages; i++) in vm_thread_stack_create()
480 pmap_qenter(ks, ma, pages); in vm_thread_stack_create()
488 vm_thread_stack_dispose(vm_offset_t ks, int pages) in vm_thread_stack_dispose() argument
493 vm_object_t obj = vm_thread_kstack_size_to_obj(pages); in vm_thread_stack_dispose()
495 pindex = vm_kstack_pindex(ks, pages); in vm_thread_stack_dispose()
[all …]
H A Dvm_reserv.c163 vm_page_t pages; /* (c) first page */ member
389 __FUNCTION__, rv, rv->pages, rv->object, object, in vm_reserv_insert()
453 KASSERT(rv->pages->psind == VM_LEVEL_0_PSIND, in vm_reserv_depopulate()
456 rv->pages->psind = VM_LEVEL_0_PSIND - 1; in vm_reserv_depopulate()
460 rv->pages[rounddown2(index, VM_SUBLEVEL_0_NPAGES)].psind = 0; in vm_reserv_depopulate()
483 vm_phys_free_pages(rv->pages, VM_LEVEL_0_ORDER); in vm_reserv_depopulate()
573 KASSERT(rv->pages->psind >= 0 && in vm_reserv_populate()
574 rv->pages->psind < VM_LEVEL_0_PSIND, in vm_reserv_populate()
582 rv->pages[rounddown2(index, VM_SUBLEVEL_0_NPAGES)].psind = 1; in vm_reserv_populate()
598 KASSERT(rv->pages->psind == VM_LEVEL_0_PSIND - 1, in vm_reserv_populate()
[all …]
/freebsd/lib/libusbhid/
H A Dusage.c53 } *pages; variable
63 printf("%d\t%s\n", pages[i].usage, pages[i].name); in dump_hid_table()
64 for (j = 0; j < pages[i].pagesize; j++) { in dump_hid_table()
65 printf("\t%d\t%s\n", pages[i].page_contents[j].usage, in dump_hid_table()
66 pages[i].page_contents[j].name); in dump_hid_table()
126 if (pages == NULL) { in hid_init()
128 pages = malloc(npagesmax * in hid_init()
132 pages = realloc(pages, in hid_init()
136 if (!pages) in hid_init()
139 curpage = &pages[npages++]; in hid_init()
[all …]
/freebsd/tools/test/stress2/misc/
H A Dstealer.sh54 pages=`sysctl hw.usermem | sed 's/.*: //'`
55 pages=$((pages / hw))
56 echo "`date '+%T'` Test with $pages pages."
57 su $testuser -c "sh -c \"/tmp/stealer $pages\"" &
89 stealer(int pages)
95 size = pages * page;
97 err(1, "malloc(%d pages)", pages);
113 int i, j, n, pages, status;
115 pages = atoi(argv[1]);
116 n = pages / N;
[all …]
H A Dchurn.sh78 long pages;
94 if (v[i].pages == 0)
102 for (j = 0; j < v[i].pages; j++)
138 if (v[i].pages != 0)
147 if (munmap(v[i].addr, v[i].pages * PAGE_SIZE) == -1)
148 err(1, "munmap(%p, %ld)", v[i].addr, v[i].pages);
150 size -= v[i].pages;
151 v[i].pages = 0;
163 v[i].pages = j;
/freebsd/sys/dev/drm2/ttm/
H A Dttm_page_alloc.c271 static int set_pages_array_wb(vm_page_t *pages, int addrinarray) in set_pages_array_wb() argument
277 pmap_page_set_memattr(pages[i], VM_MEMATTR_WRITE_BACK); in set_pages_array_wb()
282 static int set_pages_array_wc(vm_page_t *pages, int addrinarray) in set_pages_array_wc() argument
288 pmap_page_set_memattr(pages[i], VM_MEMATTR_WRITE_COMBINING); in set_pages_array_wc()
293 static int set_pages_array_uc(vm_page_t *pages, int addrinarray) in set_pages_array_uc() argument
299 pmap_page_set_memattr(pages[i], VM_MEMATTR_UNCACHEABLE); in set_pages_array_uc()
326 static void ttm_pages_put(vm_page_t *pages, unsigned npages) in ttm_pages_put() argument
331 if (set_pages_array_wb(pages, npages)) in ttm_pages_put()
334 ttm_vm_page_free(pages[i]); in ttm_pages_put()
478 static int ttm_set_pages_caching(vm_page_t *pages, in ttm_set_pages_caching() argument
[all …]
H A Dttm_tt.c52 ttm->pages = malloc(ttm->num_pages * sizeof(void *), in ttm_tt_alloc_page_directory()
58 ttm->ttm.pages = malloc(ttm->ttm.num_pages * sizeof(void *), in ttm_dma_tt_alloc_page_directory()
117 drm_clflush_pages(ttm->pages, ttm->num_pages); in ttm_tt_set_caching()
120 cur_page = ttm->pages[i]; in ttm_tt_set_caching()
136 cur_page = ttm->pages[j]; in ttm_tt_set_caching()
169 if (likely(ttm->pages != NULL)) { in ttm_tt_destroy()
195 if (!ttm->pages) { in ttm_tt_init()
205 free(ttm->pages, M_TTM_PD); in ttm_tt_fini()
206 ttm->pages = NULL; in ttm_tt_fini()
226 if (!ttm->pages || !ttm_dma->dma_address) { in ttm_dma_tt_init()
[all …]
H A Dttm_agp_backend.c43 vm_page_t *pages; member
57 vm_page_t page = ttm->pages[i]; in ttm_agp_bind()
62 agp_be->pages[i] = page; in ttm_agp_bind()
66 ret = -agp_bind_pages(agp_be->bridge, agp_be->pages, in ttm_agp_bind()
87 free(agp_be->pages, M_TTM_AGP); in ttm_agp_destroy()
115 agp_be->pages = malloc(agp_be->ttm.num_pages * sizeof(*agp_be->pages), in ttm_agp_tt_create()
/freebsd/contrib/mandoc/
H A Ddbm.c46 int32_t pages; member
68 static struct page *pages; variable
99 pages = (struct page *)dbm_getint(5); in dbm_open()
152 res.name = dbm_get(pages[ip].name); in dbm_page_get()
155 res.sect = dbm_get(pages[ip].sect); in dbm_page_get()
158 res.arch = pages[ip].arch ? dbm_get(pages[ip].arch) : NULL; in dbm_page_get()
159 res.desc = dbm_get(pages[ip].desc); in dbm_page_get()
162 res.file = dbm_get(pages[ip].file); in dbm_page_get()
165 res.addr = dbm_addr(pages + ip); in dbm_page_get()
250 cp = dbm_get(pages[0].name); in page_bytitle()
[all …]
H A Ddba.c45 struct dba_array *pages; member
71 dba->pages = dba_array_new(npages, DBA_GROW); in dba_new()
93 dba_array_free(entry->pages); in dba_free()
101 dba_array_undel(dba->pages); in dba_free()
102 dba_array_FOREACH(dba->pages, page) { in dba_free()
110 dba_array_free(dba->pages); in dba_free()
134 dba_pages_write(dba->pages); in dba_write()
158 dba_page_new(struct dba_array *pages, const char *arch, in dba_page_new() argument
178 dba_array_add(pages, page); in dba_page_new()
271 dba_pages_write(struct dba_array *pages) in dba_pages_write() argument
[all …]
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_uio.c145 ASSERT3P(uio->uio_dio.pages, !=, NULL); in zfs_uio_set_pages_to_stable()
149 vm_page_t page = uio->uio_dio.pages[i]; in zfs_uio_set_pages_to_stable()
161 ASSERT3P(uio->uio_dio.pages, !=, NULL); in zfs_uio_release_stable_pages()
163 vm_page_t page = uio->uio_dio.pages[i]; in zfs_uio_release_stable_pages()
176 zfs_uio_rw_t rw, vm_page_t *pages) in zfs_uio_hold_pages() argument
186 count = vm_fault_quick_hold_pages(map, start, len, prot, pages, in zfs_uio_hold_pages()
196 ASSERT3P(uio->uio_dio.pages, !=, NULL); in zfs_uio_free_dio_pages()
202 vm_page_unhold_pages(&uio->uio_dio.pages[0], in zfs_uio_free_dio_pages()
205 kmem_free(uio->uio_dio.pages, in zfs_uio_free_dio_pages()
211 size_t len, zfs_uio_rw_t rw, vm_page_t *pages) in zfs_uio_get_user_pages() argument
[all …]
/freebsd/sys/kern/
H A Dkern_physio.c45 struct vm_page **pages; in physio() local
93 pages = NULL; in physio()
97 pages = malloc(sizeof(*pages) * maxpages, M_DEVBUF, M_WAITOK); in physio()
103 pages = pbuf->b_pages; in physio()
151 if (pages) { in physio()
155 prot, pages, maxpages)) < 0) { in physio()
162 pages, npages); in physio()
165 bp->bio_ma = pages; in physio()
180 if (pages) { in physio()
[all...]
H A Dkern_kthread.c82 struct proc **newpp, int flags, int pages, const char *tdname) in kproc_create1() argument
95 fr.fr_pages = pages; in kproc_create1()
141 struct proc **newpp, int flags, int pages, const char *fmt, ...) in kproc_create() argument
151 error = kproc_create1(func, arg, newpp, flags, pages, tdname); in kproc_create()
266 struct thread **newtdp, int flags, int pages, const char *tdname) in kthread_add1() argument
278 newtd = thread_alloc(pages); in kthread_add1()
345 struct thread **newtdp, int flags, int pages, const char *fmt, ...) in kthread_add() argument
355 error = kthread_add1(func, arg, p, newtdp, flags, pages, tdname); in kthread_add()
490 int flags, int pages, const char *procname, const char *fmt, ...) in kproc_kthread_add() argument
503 procptr, flags | RFSTOPPED, pages, "%s", procname); in kproc_kthread_add()
[all …]
/freebsd/usr.bin/systat/
H A Dproc.c65 uint32_t pages; member
84 swapbytes = ptoa(pu[idx]->pages); in display_proc_line()
104 rate = 100 * pu[idx]->pages / totalswappages; in display_proc_line()
182 uint32_t pages = 0; in per_proc_swap_usage() local
189 return (pages); in per_proc_swap_usage()
200 pages += vm->swapped; in per_proc_swap_usage()
209 return (pages); in per_proc_swap_usage()
235 uint32_t pages; in procgetinfo() local
257 pages = per_proc_swap_usage(&kipp[i]); in procgetinfo()
258 if (pages == 0) in procgetinfo()
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dmm.h282 #define get_user_pages(start, nr_pages, gup_flags, pages) \ argument
283 lkpi_get_user_pages(start, nr_pages, gup_flags, pages)
285 #define get_user_pages(start, nr_pages, gup_flags, pages, vmas) \ argument
286 lkpi_get_user_pages(start, nr_pages, gup_flags, pages)
292 unsigned int gup_flags, struct page **pages) in pin_user_pages() argument
294 return (get_user_pages(start, nr_pages, gup_flags, pages)); in pin_user_pages()
299 unsigned int gup_flags, struct page **pages, in pin_user_pages() argument
302 return (get_user_pages(start, nr_pages, gup_flags, pages, vmas)); in pin_user_pages()
312 unsigned int gup_flags, struct page **pages) in pin_user_pages_fast() argument
315 start, nr_pages, !!(gup_flags & FOLL_WRITE), pages); in pin_user_pages_fast()
[all …]
/freebsd/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_resources.c86 struct page **pages; in mlx4_en_map_buffer() local
94 pages = kmalloc(sizeof *pages * buf->nbufs, GFP_KERNEL); in mlx4_en_map_buffer()
95 if (!pages) in mlx4_en_map_buffer()
99 pages[i] = virt_to_page(buf->page_list[i].buf); in mlx4_en_map_buffer()
101 buf->direct.buf = vmap(pages, buf->nbufs, VM_MAP, PAGE_KERNEL); in mlx4_en_map_buffer()
102 kfree(pages); in mlx4_en_map_buffer()
/freebsd/sys/compat/linuxkpi/common/include/asm/
H A Dset_memory.h97 set_pages_array_wb(struct page **pages, int addrinarray) in set_pages_wb()
102 set_pages_wb(pages[i], 1); in set_pages_wb()
107 set_pages_array_wc(struct page **pages, int addrinarray) in set_pages_array_wb()
112 set_pages_wc(pages[i], 1); in set_pages_array_wb()
117 set_pages_array_uc(struct page **pages, int addrinarray) in set_pages_array_wc()
122 set_pages_uc(pages[i], 1); in set_pages_array_wc()
106 set_pages_array_wb(struct page ** pages,int addrinarray) set_pages_array_wb() argument
116 set_pages_array_wc(struct page ** pages,int addrinarray) set_pages_array_wc() argument
126 set_pages_array_uc(struct page ** pages,int addrinarray) set_pages_array_uc() argument
/freebsd/contrib/libxo/
H A DMakefile.am36 GH_PAGES_DIR = gh-pages/
37 GH_PAGES_DIR_VER = gh-pages/${PACKAGE_VERSION}
65 && git push origin gh-pages ) ; true
77 && git push origin gh-pages ) ; true
85 get-gh-pages:
87 gh-pages -b gh-pages
117 && git push origin gh-pages ) ; true
/freebsd/tests/sys/kern/
H A Dcoredump_phnum_helper.c44 size_t i, pages, page_size; in main() local
47 pages = UINT16_MAX + 1000; in main()
48 v = mmap(NULL, pages * page_size, PROT_READ | PROT_WRITE, in main()
52 for (i = 0; i < pages; i += 2) { in main()
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_page.c212 int write, struct page **pages) in linux_get_user_pages_internal() argument
220 count = vm_fault_quick_hold_pages(map, start, len, prot, pages, nr_pages); in linux_get_user_pages_internal()
226 struct page **pages) in __get_user_pages_fast() argument
238 MPASS(pages != NULL); in __get_user_pages_fast()
244 for (count = 0, mp = pages, va = start; va < end; in __get_user_pages_fast()
270 struct page **pages, struct vm_area_struct **vmas) in get_user_pages_remote() argument
276 !!(gup_flags & FOLL_WRITE), pages)); in get_user_pages_remote()
281 unsigned int gup_flags, struct page **pages) in lkpi_get_user_pages() argument
287 !!(gup_flags & FOLL_WRITE), pages)); in lkpi_get_user_pages()
520 vm_page_t pages; in linuxkpi_page_frag_alloc() local
[all …]
/freebsd/sys/dev/gve/
H A Dgve_qpl.c79 if (vm_page_unwire_noq(qpl->pages[i])) { in gve_free_qpl()
84 vm_page_free(qpl->pages[i]); in gve_free_qpl()
90 if (qpl->pages != NULL) in gve_free_qpl()
91 free(qpl->pages, M_GVE_QPL); in gve_free_qpl()
118 qpl->pages = malloc(npages * sizeof(*qpl->pages), M_GVE_QPL, in gve_alloc_qpl()
132 qpl->pages[i] = vm_page_alloc_noobj(VM_ALLOC_WIRED | in gve_alloc_qpl()
143 pmap_qenter((vm_offset_t)qpl->dmas[i].cpu_addr, &(qpl->pages[i]), 1); in gve_alloc_qpl()
152 pmap_qenter(qpl->kva, qpl->pages, npages); in gve_alloc_qpl()
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_mr.c96 u64 *pages; in mlx4_ib_umem_write_mtt() local
103 pages = (u64 *) __get_free_page(GFP_KERNEL); in mlx4_ib_umem_write_mtt()
104 if (!pages) in mlx4_ib_umem_write_mtt()
112 pages[i++] = sg_dma_address(sg) + in mlx4_ib_umem_write_mtt()
120 i, pages); in mlx4_ib_umem_write_mtt()
130 err = mlx4_write_mtt(dev->dev, mtt, n, i, pages); in mlx4_ib_umem_write_mtt()
133 free_page((unsigned long) pages); in mlx4_ib_umem_write_mtt()
294 mr->pages = (__be64 *)get_zeroed_page(GFP_KERNEL); in mlx4_alloc_priv_pages()
295 if (!mr->pages) in mlx4_alloc_priv_pages()
298 mr->page_map = dma_map_single(device->dma_device, mr->pages, in mlx4_alloc_priv_pages()
[all …]
/freebsd/sys/contrib/vchiq/interface/vchiq_arm/
H A Dvchiq_2835_arm.c399 vm_page_t* pages; in create_pagelist() local
422 (num_pages * sizeof(pages[0])); in create_pagelist()
460 pages = (vm_page_t*)(addrs + num_pages); in create_pagelist()
464 (type == PAGELIST_READ ? VM_PROT_WRITE : 0 ) | VM_PROT_READ, pages, num_pages); in create_pagelist()
467 vm_page_unhold_pages(pages, actual_pages); in create_pagelist()
478 base_addr = (void *)PHYS_TO_VCBUS(VM_PAGE_TO_PHYS(pages[0])); in create_pagelist()
484 addr = (void *)PHYS_TO_VCBUS(VM_PAGE_TO_PHYS(pages[i])); in create_pagelist()
544 vm_page_t*pages; in free_pagelist() local
557 pages = (vm_page_t*)(pagelist->addrs + num_pages); in free_pagelist()
573 copyout_page(pages[0], in free_pagelist()
[all …]
/freebsd/sys/dev/drm2/
H A Ddrm_scatter.c48 kmem_free(entry->vaddr, IDX_TO_OFF(entry->pages)); in drm_sg_cleanup()
75 entry->pages = atop(size); in drm_sg_alloc()
76 entry->busaddr = malloc(entry->pages * sizeof(*entry->busaddr), in drm_sg_alloc()
90 for (pindex = 0; pindex < entry->pages; pindex++) { in drm_sg_alloc()
100 entry->pages, entry->vaddr, *(unsigned long *)entry->vaddr); in drm_sg_alloc()

12345678910>>...19