/titanic_41/usr/src/lib/libc/i386/gen/ |
H A D | strcmp.c | 73 static int pagesize; in strcmp() local 102 if (pagesize == 0) in strcmp() 103 pagesize = _sysconfig(_CONFIG_PAGESIZE); in strcmp() 104 count = (pagesize - ((int)str1 & (pagesize - 1))) / in strcmp() 107 if (pagesize == 0) in strcmp() 108 pagesize = _sysconfig(_CONFIG_PAGESIZE); in strcmp() 109 count = (pagesize - ((int)str2 & (pagesize - 1))) / in strcmp()
|
/titanic_41/usr/src/lib/krb5/plugins/kdb/db2/libdb2/mpool/ |
H A D | mpool.c | 59 mpool_open(key, fd, pagesize, maxcache) in mpool_open() argument 62 db_pgno_t pagesize, maxcache; 88 mp->npages = sb.st_size / pagesize; 89 mp->pagesize = pagesize; 229 off = mp->pagesize * pgno; 230 if (off / mp->pagesize != pgno) { 239 if ((nr = read(mp->fd, bp->page, mp->pagesize)) != mp->pagesize) { 249 memset(bp->page, 0, mp->pagesize); 383 memset(bp, 0xff, sizeof(BKT) + mp->pagesize); 391 new: if ((bp = (BKT *)malloc(sizeof(BKT) + mp->pagesize)) == NULL) [all …]
|
/titanic_41/usr/src/psm/stand/boot/sparc/common/ |
H A D | sun4x_standalloc.c | 52 extern int pagesize; 172 bytes = numpages * pagesize; in get_low_vpage() 250 bytes = roundup(bytes, pagesize); in resalloc() 263 vaddr = get_low_vpage((bytes/pagesize), type); in resalloc() 309 memlistpage = (caddr_t)roundup((uintptr_t)_end, pagesize); in reset_alloc() 315 scratchresvp = (caddr_t)(memlistpage + pagesize); in reset_alloc() 317 le_page = (caddr_t)(scratchmemp + pagesize); in reset_alloc() 318 ie_page = (caddr_t)(le_page + pagesize); in reset_alloc() 320 bzero(memlistpage, pagesize); in reset_alloc() 321 bzero(scratchmemp, pagesize); in reset_alloc()
|
/titanic_41/usr/src/cmd/sendmail/db/db/ |
H A D | db_conv.c | 70 __db_pgin(pg, pagesize, pp) in __db_pgin() argument 72 size_t pagesize; 75 return (__db_convert(pg, pp, pagesize, 1)); 84 __db_pgout(pg, pagesize, pp) in __db_pgout() argument 86 size_t pagesize; 89 return (__db_convert(pg, pp, pagesize, 0)); 97 __db_convert(pg, pp, pagesize, pgin) in __db_convert() argument 100 size_t pagesize; 134 len = LEN_HKEYDATA(h, pagesize, i);
|
/titanic_41/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | kgrep.c | 78 size_t pagesize = kg->kg_pagesize; in kgrep_range_basic() local 81 uintptr_t *page_end = &page[pagesize / sizeof (uintptr_t)]; in kgrep_range_basic() 90 base = P2ALIGN(base, pagesize); in kgrep_range_basic() 91 lim = P2ROUNDUP(lim, pagesize); in kgrep_range_basic() 93 for (addr = base; addr < lim; addr += pagesize) { in kgrep_range_basic() 94 if (mdb_vread(page, pagesize, addr) == -1) in kgrep_range_basic() 131 size_t pagesize = kg->kg_pagesize; \ 148 size = MIN(lim, P2END(addr, pagesize)) - addr; \ 226 size_t pagesize = kgrep_subr_pagesize(); in kgrep() local 300 kg.kg_page = mdb_alloc(pagesize, UM_SLEEP | UM_GC); in kgrep() [all …]
|
/titanic_41/usr/src/lib/libbc/libc/gen/common/ |
H A D | valloc.c | 32 static unsigned pagesize; local 33 if (!pagesize) 34 pagesize = getpagesize(); 35 return memalign(pagesize, size);
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | valloc.c | 39 static unsigned pagesize; in valloc() local 44 if (!pagesize) in valloc() 45 pagesize = sysconf(_SC_PAGESIZE); in valloc() 47 return (memalign(pagesize, size)); in valloc()
|
/titanic_41/usr/src/lib/libc/port/sys/ |
H A D | getpagesizes.c | 49 getpagesizes(size_t pagesize[], int nelem) in getpagesizes() argument 51 return (syscall(SYS_getpagesizes, 1, pagesize, nelem)); in getpagesizes() 55 getpagesizes2(size_t pagesize[], int nelem) in getpagesizes2() argument 57 return (syscall(SYS_getpagesizes, 0, pagesize, nelem)); in getpagesizes2()
|
/titanic_41/usr/src/lib/libsqlite/tool/ |
H A D | showdb.c | 16 static int pagesize = 1024; variable 28 aData = malloc(pagesize); in print_page() 30 lseek(db, (iPg-1)*pagesize, SEEK_SET); in print_page() 31 read(db, aData, pagesize); in print_page() 33 for(i=0; i<pagesize; i += 16){ in print_page() 58 mxPage = sbuf.st_size/pagesize + 1; in main()
|
H A D | showjournal.c | 16 static int pagesize = 1024; variable 28 aData = malloc(pagesize); in print_page() 30 read(db, aData, pagesize); in print_page() 32 for(i=0; i<pagesize; i += 16){ in print_page()
|
/titanic_41/usr/src/cmd/sendmail/db/mp/ |
H A D | mp_fopen.c | 35 memp_fopen(dbmp, path, flags, mode, pagesize, finfop, retp) in memp_fopen() argument 40 size_t pagesize; 54 if (pagesize == 0) { 58 if (finfop != NULL && finfop->clear_len > pagesize) 62 NULL, path, flags, mode, pagesize, 1, finfop, retp)); 73 __memp_fopen(dbmp, mfp, path, flags, mode, pagesize, needlock, finfop, retp) in __memp_fopen() argument 79 size_t pagesize; 170 if (bytes % pagesize != 0) { 178 last_pgno = mbytes * (MEGABYTE / pagesize); 179 last_pgno += bytes / pagesize; [all …]
|
H A D | mp_bh.c | 155 size_t len, pagesize; local 161 pagesize = mfp->stat.st_pagesize; 184 db_io.pagesize = db_io.bytes = pagesize; 192 if (nr < (ssize_t)pagesize) 210 if (nr != (ssize_t)pagesize) { 211 len = mfp->clear_len == 0 ? pagesize : mfp->clear_len; 217 if (len < pagesize) 218 memset(bhp->buf + len, 0xdb, pagesize - len); 355 db_io.pagesize = db_io.bytes = mfp->stat.st_pagesize;
|
/titanic_41/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_context.c | 59 size_t pagesize = mdb.m_pagesize; in mdb_context_create() local 65 c->ctx_stacksize = pagesize * 4; in mdb_context_create() 66 c->ctx_stack = mdb_alloc_align(c->ctx_stacksize, pagesize, UM_NOSLEEP); in mdb_context_create()
|
/titanic_41/usr/src/uts/sun/io/ |
H A D | sbusmem.c | 51 uint_t pagesize; member 218 un->pagesize = ddi_ptob(devi, 1); in sbmem_attach() 336 uint_t pagesize, msize; in sbmem_rw() local 350 pagesize = un->pagesize; in sbmem_rw() 369 msize = pagesize - (uio->uio_offset & (pagesize - 1)); in sbmem_rw()
|
/titanic_41/usr/src/cmd/savecore/ |
H A D | savecore.c | 73 static long pagesize; /* dump pagesize */ variable 366 pagesize = dumphdr.dump_pagesize; in read_dumphdr() 394 datahdr.dump_maxcsize = pagesize; in read_dumphdr() 429 datasize = dumphdr.dump_npages * pagesize; in check_space() 458 corehdr.dump_data = corehdr.dump_map + roundup(dump_mapsize, pagesize); in build_dump_map() 533 char *cbuf = Zalloc(pagesize); in CopyPages() 546 if (csize > pagesize || csize == 0) { in CopyPages() 550 pagesize); in CopyPages() 594 coreoff = roundup(coreoff, pagesize); in copy_crashfile() 602 coreoff = roundup(coreoff, pagesize); in copy_crashfile() [all …]
|
/titanic_41/usr/src/lib/scsi/libses/common/ |
H A D | ses_snap.c | 452 size_t pages, pagesize, pagelen; in ses_snap_new() local 545 pagesize = PAGESIZE; in ses_snap_new() 556 pages += (P2ROUNDUP(pp->ssp_len, pagesize) / in ses_snap_new() 557 pagesize) + 1; in ses_snap_new() 560 if ((scratch = mmap(NULL, pages * pagesize, in ses_snap_new() 573 pages = P2ROUNDUP(pp->ssp_len, pagesize) / pagesize; in ses_snap_new() 575 pp->ssp_mmap_len = pages * pagesize; in ses_snap_new() 585 (void) munmap(pp->ssp_mmap_base + pages * pagesize, in ses_snap_new() 586 pagesize); in ses_snap_new() 587 scratch += (pages + 1) * pagesize; in ses_snap_new()
|
/titanic_41/usr/src/lib/libumem/common/ |
H A D | vmem_stand.c | 69 stand_chunksize = MAX(DEF_CHUNKSIZE, pagesize); in vmem_stand_init() 79 ASSERT(pagesize != 0); in vmem_stand_add() 156 "stand_heap", NULL, 0, pagesize, vmem_alloc, vmem_free); in vmem_stand_arena()
|
/titanic_41/usr/src/cmd/sendmail/db/os/ |
H A D | os_rw.c | 44 db_iop->bytes, (off_t)db_iop->pgno * db_iop->pagesize); 50 db_iop->bytes, (off_t)db_iop->pgno * db_iop->pagesize); 61 db_iop->pagesize, db_iop->pgno, 0, 0, SEEK_SET)) != 0)
|
/titanic_41/usr/src/lib/udapl/udapl_tavor/tavor/ |
H A D | dapl_tavor_hca.c | 181 size_t pagesize; in dapli_process_tavor_node() local 225 pagesize = (size_t)sysconf(_SC_PAGESIZE); in dapli_process_tavor_node() 226 if (pagesize == 0) { in dapli_process_tavor_node() 267 MLNX_UMAP_UARPG_RSRC) * pagesize; in dapli_process_tavor_node() 269 mapaddr = mmap64((void *)0, pagesize, PROT_READ | PROT_WRITE, in dapli_process_tavor_node() 281 g_tavor_state[idx].uarpg_size = pagesize; in dapli_process_tavor_node() 288 MLNX_UMAP_BLUEFLAMEPG_RSRC) * pagesize; in dapli_process_tavor_node() 290 mapaddr = mmap64((void *)0, pagesize, PROT_READ | PROT_WRITE, in dapli_process_tavor_node()
|
/titanic_41/usr/src/cmd/ptools/pmap/ |
H A D | pmap.c | 789 pagesize(const prxmap_t *pmp) in pagesize() function 791 int pagesize = pmp->pr_hatpagesize; in pagesize() local 794 if (pagesize == 0) { in pagesize() 798 if (pagesize >= KILOBYTE && (pagesize % KILOBYTE) == 0) { in pagesize() 799 if ((pagesize % GIGABYTE) == 0) in pagesize() 801 pagesize / GIGABYTE); in pagesize() 802 else if ((pagesize % MEGABYTE) == 0) in pagesize() 804 pagesize / MEGABYTE); in pagesize() 807 pagesize / KILOBYTE); in pagesize() 809 (void) snprintf(buf, sizeof (buf), "%db", pagesize); in pagesize() [all …]
|
/titanic_41/usr/src/cmd/sendmail/db/hash/ |
H A D | hash_dup.c | 125 hcp->hdr->pagesize, H_DATAINDEX(hcp->bndx)); 172 hcp->hdr->pagesize, hcp->bndx); 306 LEN_HDATA(hcp->pagep, hcp->hdr->pagesize, hcp->bndx); 333 LEN_HDATA(hcp->pagep, hcp->hdr->pagesize, hcp->bndx); 443 LEN_HITEM(hcp->pagep, hcp->hdr->pagesize, H_DATAINDEX(hcp->bndx)); 509 hcp->hdr->pagesize, hcp->bndx); 520 hcp->hdr->pagesize, hcp->bndx); 590 old_dbt.size = LEN_HITEM(pagep, hcp->hdr->pagesize, ndx); 598 LEN_HITEM(pagep, hcp->hdr->pagesize, ndx) - HOFFDUP_SIZE; 644 while (i < LEN_HDATA(hcp->pagep, hcp->hdr->pagesize, hcp->bndx)) {
|
/titanic_41/usr/src/cmd/prtconf/ |
H A D | prtconf.c | 177 long pagesize, npages; in main() local 353 pagesize = sysconf(_SC_PAGESIZE); in main() 356 if (pagesize == -1 || npages == -1) in main() 361 int64_t ii = (int64_t)pagesize * npages; in main()
|
/titanic_41/usr/src/lib/libmapmalloc/common/ |
H A D | textmem.c | 89 static int pagesize; variable 112 if (pagesize == 0) in malloc_unlocked() 113 pagesize = (int)sysconf(_SC_PAGESIZE); in malloc_unlocked() 133 size_t totpage = align(totsize, pagesize); in malloc_unlocked()
|
/titanic_41/usr/src/lib/krb5/kdb/ |
H A D | kdb_log.c | 26 static int pagesize = 0; variable 42 if (!pagesize) in ulog_sync_update() 43 pagesize = getpagesize(); in ulog_sync_update() 45 start = ((ulong_t)upd) & (~(pagesize-1)); in ulog_sync_update() 48 (pagesize-1)) & (~(pagesize-1)); in ulog_sync_update() 65 if (!pagesize) in ulog_sync_header() 66 pagesize = getpagesize(); in ulog_sync_header() 68 if (msync((caddr_t)ulog, pagesize, MS_SYNC)) { in ulog_sync_header()
|
/titanic_41/usr/src/stand/lib/sa/ |
H A D | standalloc.c | 49 extern int pagesize; 87 n = (uintptr_t)vaddr & (pagesize - 1); in get_progmemory()
|