Home
last modified time | relevance | path

Searched refs:pagesize (Results 1 – 25 of 56) sorted by relevance

123

/dragonfly/contrib/binutils-2.27/libiberty/
H A Dphysmem.c90 return pages * pagesize; in physmem_total()
100 double pagesize = pss.page_size; in physmem_total() local
101 if (0 <= pages && 0 <= pagesize) in physmem_total()
102 return pages * pagesize; in physmem_total()
114 if (0 <= pages && 0 <= pagesize) in physmem_total()
115 return pages * pagesize; in physmem_total()
194 return pages * pagesize; in physmem_available()
208 return pages * pagesize; in physmem_available()
221 return pages * pagesize; in physmem_available()
233 double pagesize = vmstats.pagesize; in physmem_available() local
[all …]
/dragonfly/contrib/binutils-2.34/libiberty/
H A Dphysmem.c90 return pages * pagesize; in physmem_total()
100 double pagesize = pss.page_size; in physmem_total() local
101 if (0 <= pages && 0 <= pagesize) in physmem_total()
102 return pages * pagesize; in physmem_total()
114 if (0 <= pages && 0 <= pagesize) in physmem_total()
115 return pages * pagesize; in physmem_total()
194 return pages * pagesize; in physmem_available()
208 return pages * pagesize; in physmem_available()
221 return pages * pagesize; in physmem_available()
233 double pagesize = vmstats.pagesize; in physmem_available() local
[all …]
/dragonfly/contrib/gcc-4.7/libiberty/
H A Dphysmem.c90 return pages * pagesize; in physmem_total()
100 double pagesize = pss.page_size; in physmem_total() local
101 if (0 <= pages && 0 <= pagesize) in physmem_total()
102 return pages * pagesize; in physmem_total()
114 if (0 <= pages && 0 <= pagesize) in physmem_total()
115 return pages * pagesize; in physmem_total()
194 return pages * pagesize; in physmem_available()
208 return pages * pagesize; in physmem_available()
221 return pages * pagesize; in physmem_available()
233 double pagesize = vmstats.pagesize; in physmem_available() local
[all …]
/dragonfly/contrib/gcc-8.0/libiberty/
H A Dphysmem.c90 return pages * pagesize; in physmem_total()
100 double pagesize = pss.page_size; in physmem_total() local
101 if (0 <= pages && 0 <= pagesize) in physmem_total()
102 return pages * pagesize; in physmem_total()
114 if (0 <= pages && 0 <= pagesize) in physmem_total()
115 return pages * pagesize; in physmem_total()
194 return pages * pagesize; in physmem_available()
208 return pages * pagesize; in physmem_available()
221 return pages * pagesize; in physmem_available()
233 double pagesize = vmstats.pagesize; in physmem_available() local
[all …]
/dragonfly/contrib/gcc-8.0/libbacktrace/
H A Dmmap.c117 size_t pagesize; in backtrace_alloc() local
165 pagesize = getpagesize (); in backtrace_alloc()
166 asksize = (size + pagesize - 1) & ~ (pagesize - 1); in backtrace_alloc()
204 size_t pagesize; in backtrace_free() local
206 pagesize = getpagesize (); in backtrace_free()
247 size_t pagesize; in backtrace_vector_grow() local
251 pagesize = getpagesize (); in backtrace_vector_grow()
255 else if (alc < pagesize) in backtrace_vector_grow()
258 if (alc > pagesize) in backtrace_vector_grow()
259 alc = pagesize; in backtrace_vector_grow()
[all …]
H A Dmmapio.c58 size_t pagesize; in backtrace_get_view() local
63 pagesize = getpagesize (); in backtrace_get_view()
64 inpage = offset % pagesize; in backtrace_get_view()
68 size = (size + (pagesize - 1)) & ~ (pagesize - 1); in backtrace_get_view()
/dragonfly/test/stress/stress2/misc/
H A Ddatamove2.sh66 int pagesize;
122 addr = mmap(NULL, pagesize * 2, PROT_READ | PROT_WRITE, MAP_SHARED, fd1, 0);
128 addr = mmap(buffer + pagesize, pagesize, PROT_READ | PROT_WRITE, MAP_FIXED |
142 if (munmap(bufferp, pagesize * 2) == -1)
144 if (munmap(bufferp + pagesize * 2, pagesize * 2) == -1)
153 len = write(fd, buffer, 2 * pagesize);
172 pagesize = getpagesize();
H A Ddatamove.sh80 int pagesize;
141 addr = mmap(NULL,pagesize*2, PROT_READ | PROT_WRITE , MAP_SHARED, fd1, 0);
149 addr = mmap(buffer + pagesize,pagesize, PROT_READ | PROT_WRITE , MAP_FIXED |
165 len = write(fd,buffer,2*pagesize);
183 pagesize = getpagesize();
H A Ddatamove3.sh85 int pagesize;
140 addr = mmap(NULL, pagesize * 2, PROT_READ | PROT_WRITE, MAP_SHARED, a[i].fd1, 0);
145 addr = mmap(buffer + pagesize, pagesize, PROT_READ | PROT_WRITE, MAP_FIXED |
162 len = write(fd, buffer, 2 * pagesize);
182 pagesize = getpagesize();
/dragonfly/lib/libc/db/mpool/
H A Dmpool.c60 mpool_open(__unused void *key, int fd, pgno_t pagesize, pgno_t maxcache) in mpool_open() argument
86 mp->npages = sb.st_size / pagesize; in mpool_open()
87 mp->pagesize = pagesize; in mpool_open()
216 off = mp->pagesize * pgno; in mpool_get()
217 if ((nr = pread(mp->fd, bp->page, mp->pagesize, off)) != (ssize_t)mp->pagesize) { in mpool_get()
229 memset(bp->page, 0, mp->pagesize); in mpool_get()
367 memset(bp, 0xff, sizeof(BKT) + mp->pagesize); in mpool_bkt()
375 new: if ((bp = (BKT *)calloc(1, sizeof(BKT) + mp->pagesize)) == NULL) in mpool_bkt()
403 off = mp->pagesize * bp->pgno; in mpool_write()
404 if (pwrite(mp->fd, bp->page, mp->pagesize, off) != (ssize_t)mp->pagesize) in mpool_write()
[all …]
/dragonfly/lib/libu4bhid/
H A Dusage.c52 int pagesize, pagesizemax; member
64 for (j = 0; j < pages[i].pagesize; j++) { in dump_hid_table()
112 if (curpage->pagesize >= curpage->pagesizemax) { in hid_init()
121 curpage->page_contents[curpage->pagesize].name = n; in hid_init()
122 curpage->page_contents[curpage->pagesize].usage = no; in hid_init()
123 curpage->pagesize++; in hid_init()
142 curpage->pagesize = 0; in hid_init()
186 for (j = 0; j < pages[k].pagesize; j++) { in hid_usage_in_page()
234 for (j = 0; j < pages[k].pagesize; j++) in hid_parse_usage_in_page()
/dragonfly/test/stress/fsstress/
H A Dglobal.h88 static int pagesize; in memalign() local
90 if (pagesize == 0) in memalign()
91 pagesize = getpagesize(); in memalign()
92 if (blksize < pagesize) in memalign()
93 blksize = pagesize; in memalign()
/dragonfly/contrib/binutils-2.27/bfd/
H A Dbfdwin.c114 static size_t pagesize; in bfd_get_file_window() local
125 if (pagesize == 0) in bfd_get_file_window()
126 pagesize = getpagesize (); in bfd_get_file_window()
127 if (pagesize == 0) in bfd_get_file_window()
162 offset2 = offset % pagesize; in bfd_get_file_window()
167 real_size = real_size + pagesize - 1; in bfd_get_file_window()
168 real_size -= real_size % pagesize; in bfd_get_file_window()
218 size_to_alloc += pagesize - 1; in bfd_get_file_window()
219 size_to_alloc -= size_to_alloc % pagesize; in bfd_get_file_window()
/dragonfly/contrib/gdb-7/bfd/
H A Dbfdwin.c115 static size_t pagesize; in bfd_get_file_window() local
126 if (pagesize == 0) in bfd_get_file_window()
127 pagesize = getpagesize (); in bfd_get_file_window()
128 if (pagesize == 0) in bfd_get_file_window()
162 offset2 = offset % pagesize; in bfd_get_file_window()
167 real_size = real_size + pagesize - 1; in bfd_get_file_window()
168 real_size -= real_size % pagesize; in bfd_get_file_window()
218 size_to_alloc += pagesize - 1; in bfd_get_file_window()
219 size_to_alloc -= size_to_alloc % pagesize; in bfd_get_file_window()
/dragonfly/contrib/gcc-4.7/libgcc/
H A Dgeneric-morestack.c322 unsigned int pagesize; in allocate_segment() local
328 pagesize = static_pagesize; in allocate_segment()
329 if (pagesize == 0) in allocate_segment()
333 pagesize = getpagesize (); in allocate_segment()
339 static_pagesize = pagesize; in allocate_segment()
347 assert (p == 0 || p == pagesize); in allocate_segment()
352 allocate = pagesize; in allocate_segment()
355 & ~ (pagesize - 1)); in allocate_segment()
358 & ~ (pagesize - 1)); in allocate_segment()
361 allocate += pagesize; in allocate_segment()
[all …]
/dragonfly/contrib/lvm2/dist/tools/
H A Dlvcreate.c299 int pagesize = lvm_getpagesize(); in _validate_mirror_params() local
307 if (lp->region_size % (pagesize >> SECTOR_SHIFT)) { in _validate_mirror_params()
310 lp->region_size, pagesize >> SECTOR_SHIFT); in _validate_mirror_params()
382 unsigned pagesize; in _lvcreate_params() local
509 pagesize = lvm_getpagesize() >> SECTOR_SHIFT; in _lvcreate_params()
512 lp->read_ahead % pagesize) { in _lvcreate_params()
513 if (lp->read_ahead < pagesize) in _lvcreate_params()
514 lp->read_ahead = pagesize; in _lvcreate_params()
516 lp->read_ahead = (lp->read_ahead / pagesize) * pagesize; in _lvcreate_params()
518 "of %uK page size.", lp->read_ahead, pagesize >> 1); in _lvcreate_params()
H A Dlvchange.c343 unsigned pagesize = (unsigned) lvm_getpagesize() >> SECTOR_SHIFT; in lvchange_readahead() local
356 read_ahead != DM_READ_AHEAD_NONE && read_ahead % pagesize) { in lvchange_readahead()
357 if (read_ahead < pagesize) in lvchange_readahead()
358 read_ahead = pagesize; in lvchange_readahead()
360 read_ahead = (read_ahead / pagesize) * pagesize; in lvchange_readahead()
362 "of %uK page size.", read_ahead, pagesize >> 1); in lvchange_readahead()
/dragonfly/contrib/gcc-4.7/gcc/
H A Dggc-page.c226 #define PAGE_ALIGN(x) (((x) + G.pagesize - 1) & ~(G.pagesize - 1))
364 size_t pagesize; member
745 entry_size = G.pagesize; in alloc_page()
801 e->bytes = G.pagesize; in alloc_page()
829 page = (char *) (((size_t) allocation + G.pagesize - 1) & -G.pagesize); in alloc_page()
848 enda -= G.pagesize; in alloc_page()
868 for (a = enda - G.pagesize; a != page; a -= G.pagesize) in alloc_page()
872 e->bytes = G.pagesize; in alloc_page()
1676 e->bytes = G.pagesize; in init_ggc()
2337 G.pagesize), in ggc_pch_write_object()
[all …]
/dragonfly/contrib/gcc-8.0/gcc/
H A Dggc-page.c390 size_t pagesize; member
780 if (entry_size < G.pagesize) in alloc_page()
781 entry_size = G.pagesize; in alloc_page()
837 e->bytes = G.pagesize; in alloc_page()
865 page = (char *) (((uintptr_t) allocation + G.pagesize - 1) & -G.pagesize); in alloc_page()
884 enda -= G.pagesize; in alloc_page()
904 for (a = enda - G.pagesize; a != page; a -= G.pagesize) in alloc_page()
908 e->bytes = G.pagesize; in alloc_page()
1753 e->bytes = G.pagesize; in init_ggc()
2486 G.pagesize), in ggc_pch_write_object()
[all …]
/dragonfly/contrib/dialog/
H A Deditbox.c209 scroll_to(int pagesize, int rows, int *base_row, int *this_row, int target) in scroll_to() argument
235 } else if (target >= *base_row + pagesize) { in scroll_to()
243 if (pagesize < rows) { in scroll_to()
244 if (*base_row + pagesize >= rows) { in scroll_to()
245 *base_row = rows - pagesize; in scroll_to()
276 #define Scroll_To(target) scroll_to(pagesize, listsize, &base_row, &thisrow, target)
355 int pagesize; in dlg_editbox() local
438 pagesize = getmaxy(editing); in dlg_editbox()
464 base_row + pagesize, in dlg_editbox()
583 SCROLL_TO(base_row + pagesize); in dlg_editbox()
[all …]
/dragonfly/usr.bin/pagesize/
H A DMakefile5 SCRIPTS=pagesize.sh
6 MAN= pagesize.1
/dragonfly/contrib/cvs-1.12/lib/
H A Dpagealign_alloc.c158 size_t pagesize = getpagesize (); in pagealign_alloc() local
159 void *unaligned_ptr = malloc (size + pagesize - 1); in pagealign_alloc()
168 + ((- (unsigned long) unaligned_ptr) & (pagesize - 1)); in pagealign_alloc()
/dragonfly/usr.bin/cmp/
H A Dregular.c63 size_t pagesize; in c_regular() local
76 pagesize = getpagesize(); in c_regular()
77 pagemask = (off_t)pagesize - 1; in c_regular()
/dragonfly/contrib/xz/src/common/
H A Dtuklib_physmem.c146 const long pagesize = sysconf(_SC_PAGESIZE); in tuklib_physmem() local
148 if (pagesize != -1 && pages != -1) in tuklib_physmem()
154 ret = (uint64_t)pagesize * (uint64_t)pages; in tuklib_physmem()
/dragonfly/sys/dev/disk/nata/
H A Datapi-tape.c529 ast_mode_sense(device_t dev, int page, void *pagebuf, int pagesize) in ast_mode_sense() argument
531 int8_t ccb[16] = { ATAPI_MODE_SENSE, 0x08, page, pagesize>>8, pagesize, in ast_mode_sense()
535 error = ata_atapicmd(dev, ccb, pagebuf, pagesize, ATA_R_READ, 10); in ast_mode_sense()
540 ast_mode_select(device_t dev, void *pagebuf, int pagesize) in ast_mode_select() argument
542 int8_t ccb[16] = { ATAPI_MODE_SELECT, 0x10, 0, pagesize>>8, pagesize, in ast_mode_select()
545 return ata_atapicmd(dev, ccb, pagebuf, pagesize, 0, 10); in ast_mode_select()

123