Searched refs:pages (Results 1 - 25 of 200) sorted by relevance

12345678

/freebsd-current/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dparam.h30 #define ptob(pages) ((pages) << PAGE_SHIFT)
/freebsd-current/tests/sys/kern/
H A Dcoredump_phnum_helper.c44 size_t i, pages, page_size; local
47 pages = UINT16_MAX + 1000;
48 v = mmap(NULL, pages * page_size, PROT_READ | PROT_WRITE,
52 for (i = 0; i < pages; i += 2) {
/freebsd-current/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);
[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;
H A Dvm_map.sh44 pages=$((`sysctl -n hw.usermem` / `sysctl -n hw.pagesize`))
46 pages=$((pages / 10 * 8))
47 proccontrol -m aslr -s disable /tmp/vm_map $pages
105 fprintf(stderr, "Usage %s <pages>\n", argv[0]);
H A Dgetrandom2.sh132 u_int pages;
148 vsz = sizeof(pages);
149 if (sysctlbyname("vm.stats.vm.v_free_count", &pages, &vsz, NULL, 0) != 0)
151 f = pages;
/freebsd-current/lib/libusbhid/
H A Dusage.c53 } *pages; variable in typeref:struct:usage_page
63 printf("%d\t%s\n", pages[i].usage, pages[i].name);
64 for (j = 0; j < pages[i].pagesize; j++) {
65 printf("\t%d\t%s\n", pages[i].page_contents[j].usage,
66 pages[i].page_contents[j].name);
126 if (pages == NULL) {
128 pages = malloc(npagesmax *
132 pages = realloc(pages,
[all...]
/freebsd-current/sys/sys/
H A Dkthread.h53 int flags, int pages, const char *, ...) __printflike(6, 7);
65 int flags, int pages,
70 int flags, int pages, const char *, ...) __printflike(7, 8);
/freebsd-current/sys/compat/linuxkpi/common/include/linux/
H A Dvmalloc.h38 void *vmap(struct page **pages, unsigned int count, unsigned long flags,
H A Dpagemap.h43 release_pages(struct page **pages, int nr) argument
48 put_page(pages[i]);
H A Dpagevec.h16 struct page *pages[PAGEVEC_SIZE]; member in struct:pagevec
46 pvec->pages[pvec->nr++] = page;
53 release_pages(pvec->pages, pagevec_count(pvec));
/freebsd-current/sys/compat/linuxkpi/common/include/asm/
H A Dset_memory.h97 set_pages_array_wb(struct page **pages, int addrinarray) argument
102 set_pages_wb(pages[i], 1);
107 set_pages_array_wc(struct page **pages, int addrinarray) argument
112 set_pages_wc(pages[i], 1);
117 set_pages_array_uc(struct page **pages, int addrinarray) argument
122 set_pages_uc(pages[i], 1);
/freebsd-current/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_resources.c86 struct page **pages; local
94 pages = kmalloc(sizeof *pages * buf->nbufs, GFP_KERNEL);
95 if (!pages)
99 pages[i] = virt_to_page(buf->page_list[i].buf);
101 buf->direct.buf = vmap(pages, buf->nbufs, VM_MAP, PAGE_KERNEL);
102 kfree(pages);
/freebsd-current/sys/dev/drm2/ttm/
H A Dttm_agp_backend.c43 vm_page_t *pages; member in struct:ttm_agp_backend
57 vm_page_t page = ttm->pages[i];
62 agp_be->pages[i] = page;
66 ret = -agp_bind_pages(agp_be->bridge, agp_be->pages,
87 free(agp_be->pages, M_TTM_AGP);
115 agp_be->pages = malloc(agp_be->ttm.num_pages * sizeof(*agp_be->pages),
H A Dttm_page_alloc.c36 * - Pool collects resently freed pages for reuse
38 * - doesn't track currently in use pages
55 * struct ttm_page_pool - Pool to reuse recently allocated uc/wc pages.
61 * @list: Pool of free uc/wc pages for fast reuse.
63 * @npages: Number of pages in pool.
96 * @free_interval: minimum number of jiffies between freeing pages from pool.
99 * some pages to free.
100 * @small_allocation: Limit in number of pages what is small allocation.
228 /* Convert kb to number of pages */
271 static int set_pages_array_wb(vm_page_t *pages, in argument
282 set_pages_array_wc(vm_page_t *pages, int addrinarray) argument
293 set_pages_array_uc(vm_page_t *pages, int addrinarray) argument
326 ttm_pages_put(vm_page_t *pages, unsigned npages) argument
478 ttm_set_pages_caching(vm_page_t *pages, enum ttm_caching_state cstate, unsigned cpages) argument
505 ttm_handle_caching_state_failure(struct pglist *pages, int ttm_flags, enum ttm_caching_state cstate, vm_page_t *failed_pages, unsigned cpages) argument
523 ttm_alloc_new_pages(struct pglist *pages, int ttm_alloc_flags, int ttm_flags, enum ttm_caching_state cstate, unsigned count) argument
655 ttm_page_pool_get_pages(struct ttm_page_pool *pool, struct pglist *pages, int ttm_flags, enum ttm_caching_state cstate, unsigned count) argument
687 ttm_put_pages(vm_page_t *pages, unsigned npages, int flags, enum ttm_caching_state cstate) argument
730 ttm_get_pages(vm_page_t *pages, unsigned npages, int flags, enum ttm_caching_state cstate) argument
[all...]
H A Dttm_tt.c48 * Allocates storage for pointers to the pages that back the ttm.
52 ttm->pages = malloc(ttm->num_pages * sizeof(void *),
58 ttm->ttm.pages = malloc(ttm->ttm.num_pages * sizeof(void *),
97 * for range of pages in a ttm.
117 drm_clflush_pages(ttm->pages, ttm->num_pages);
120 cur_page = ttm->pages[i];
136 cur_page = ttm->pages[j];
169 if (likely(ttm->pages != NULL)) {
195 if (!ttm->pages) {
205 free(ttm->pages, M_TTM_P
[all...]
/freebsd-current/contrib/mandoc/
H A Ddbm.c46 int32_t pages; member in struct:macro
68 static struct page *pages; variable in typeref:struct:page
82 * Map the pages and macros[] arrays.
95 warnx("dbm_open(%s): Invalid number of pages: %d",
99 pages = (struct page *)dbm_getint(5);
134 /*** functions for handling pages *************************************/
152 res.name = dbm_get(pages[ip].name);
155 res.sect = dbm_get(pages[ip].sect);
158 res.arch = pages[ip].arch ? dbm_get(pages[i
[all...]
H A Ddba.c45 struct dba_array *pages; member in struct:macro_entry
71 dba->pages = dba_array_new(npages, DBA_GROW);
93 dba_array_free(entry->pages);
101 dba_array_undel(dba->pages);
102 dba_array_FOREACH(dba->pages, page) {
110 dba_array_free(dba->pages);
119 * - The pages table.
134 dba_pages_write(dba->pages);
152 /*** functions for handling pages *************************************/
155 * Create a new page and append it to the pages tabl
158 dba_page_new(struct dba_array *pages, const char *arch, const char *desc, const char *file, enum form form) argument
271 dba_pages_write(struct dba_array *pages) argument
[all...]
H A Ddba.h32 struct dba_array *pages; member in struct:dba
/freebsd-current/usr.bin/systat/
H A Dproc.c48 uint32_t swapped; /* in pages */
65 uint32_t pages; member in struct:proc_usage
84 swapbytes = ptoa(pu[idx]->pages);
104 rate = 100 * pu[idx]->pages / totalswappages;
177 /* This returns the number of swap pages a process uses. */
182 uint32_t pages = 0; local
189 return (pages);
200 pages += vm->swapped;
209 return (pages);
235 uint32_t pages; local
[all...]
/freebsd-current/sys/kern/
H A Dkern_physio.c45 struct vm_page **pages; local
99 pages = NULL;
103 pages = malloc(sizeof(*pages) * maxpages, M_DEVBUF, M_WAITOK);
109 pages = pbuf->b_pages;
157 if (pages) {
161 prot, pages, maxpages)) < 0) {
168 pages, npages);
171 bp->bio_ma = pages;
186 if (pages) {
[all...]
/freebsd-current/contrib/libxo/
H A DMakefile.am36 GH_PAGES_DIR = gh-pages/
37 GH_PAGES_DIR_VER = gh-pages/${PACKAGE_VERSION}
56 && echo "Updating html on gh-pages ..." \
65 && git push origin gh-pages ) ; true
70 && echo "Updating xohtml files on gh-pages ..." \
77 && git push origin gh-pages ) ; true
85 get-gh-pages:
87 gh-pages -b gh-pages
99 && echo "Updating packages on gh-pages
[all...]
/freebsd-current/sys/dev/agp/
H A Dagp_i810.h78 int agp_intel_gtt_map_memory(device_t dev, vm_page_t *pages, u_int num_entries,
83 u_int num_entries, vm_page_t *pages, u_int flags);
90 int intel_gtt_map_memory(vm_page_t *pages, u_int num_entries,
95 vm_page_t *pages, u_int flags);
/freebsd-current/sys/dev/drm2/
H A Ddrm_scatter.c29 * by mapping the pages into the GART.
48 kmem_free(entry->vaddr, IDX_TO_OFF(entry->pages));
75 entry->pages = atop(size);
76 entry->busaddr = malloc(entry->pages * sizeof(*entry->busaddr),
90 for (pindex = 0; pindex < entry->pages; pindex++) {
99 DRM_DEBUG("allocated %ju pages @ %p, contents=%08lx\n",
100 entry->pages, entry->vaddr, *(unsigned long *)entry->vaddr);
/freebsd-current/sys/vm/
H A Dvm_glue.c355 * for holes induced by guard pages.
365 * a multiple of kernel stack pages + guard pages in size.
368 * is divisible by the total number of kstack VA pages. This is necessary to
383 ("%s: Size %jd is not a multiple of kstack pages (%d)", __func__,
404 * be a multiple of kernel stack pages + guard pages in size.
413 ("%s: Size %jd is not a multiple of kstack pages (%d)", __func__,
437 vm_thread_stack_create(struct domainset *ds, int pages) argument
446 obj = vm_thread_kstack_size_to_obj(pages);
482 vm_thread_stack_dispose(vm_offset_t ks, int pages) argument
514 vm_thread_new(struct thread *td, int pages) argument
556 int pages; local
[all...]

Completed in 432 milliseconds

12345678