Home
last modified time | relevance | path

Searched refs:pgsize (Results 1 – 25 of 36) sorted by relevance

12

/titanic_50/usr/src/cmd/sendmail/db/db/
H A Ddb.c207 dbp->pgsize = 0;
215 if ((dbp->pgsize = dbinfo->db_pagesize) != 0 &&
216 (u_int32_t)1 << __db_log2(dbp->pgsize) != dbp->pgsize) {
220 dbp->pgsize = dbinfo->db_pagesize;
302 if (dbp->pgsize == 0) {
321 dbp->pgsize = iopsize;
398 dbp->pgsize = btm->pagesize;
437 dbp->pgsize = hashm->pagesize;
487 if (dbp->pgsize == 0) {
489 dbp->pgsize = 8 * 1024;
[all …]
H A Ddb_dup.c57 if (dbt->size > 0.25 * dbc->dbp->pgsize) {
219 size_t pgsize; local
227 pgsize = dbp->pgsize;
230 if ((ret = __os_malloc(pgsize, NULL, &tp)) != 0)
235 __os_free(tp, pgsize);
239 P_INIT(np, pgsize, PGNO(np), PGNO(h), NEXT_PGNO(h), 0,
241 P_INIT(tp, pgsize, PGNO(h), PREV_PGNO(h), PGNO(np), 0,
245 halfbytes = (pgsize - HOFFSET(h)) / 2;
287 page_dbt.size = dbp->pgsize;
292 __os_free(tp, pgsize);
[all …]
H A Ddb_overflow.c188 pagespace = P_MAXSPACE(dbp->pgsize);
225 P_INIT(pagep, dbp->pgsize,
H A Ddb_ret.c57 len = LEN_HKEYDATA(h, dbp->pgsize, indx);
/titanic_50/usr/src/cmd/sendmail/db/os/
H A Dos_seek.c31 __os_seek(fd, pgsize, pageno, relative, isrewind, whence) in __os_seek() argument
33 size_t pgsize;
43 pgsize, pageno, relative, isrewind, whence);
45 offset = (off_t)pgsize * pageno + relative;
/titanic_50/usr/src/cmd/sendmail/db/btree/
H A Dbt_rec.c91 P_INIT(pagep, file_dbp->pgsize,
98 P_INIT(pagep, file_dbp->pgsize,
183 P_INIT(pagep, file_dbp->pgsize,
309 if ((ret = __os_malloc(file_dbp->pgsize, NULL, &_lp)) != 0 ||
310 (ret = __os_malloc(file_dbp->pgsize, NULL, &_rp)) != 0)
313 P_INIT(_lp, file_dbp->pgsize, argp->left,
317 P_INIT(_rp, file_dbp->pgsize, argp->right,
321 P_INIT(_lp, file_dbp->pgsize, PGNO(sp),
325 P_INIT(_rp, file_dbp->pgsize, argp->right,
345 memcpy(lp, _lp, file_dbp->pgsize);
[all …]
H A Dbt_split.c197 P_INIT(lp, dbp->pgsize, lp->pgno,
200 P_INIT(rp, dbp->pgsize, rp->pgno,
214 __a.size = dbp->pgsize;
272 P_INIT(rp, dbp->pgsize, rp->pgno,
278 if ((ret = __os_malloc(dbp->pgsize, NULL, &lp)) != 0)
280 P_INIT(lp, dbp->pgsize, cp->page->pgno,
330 __a.size = dbp->pgsize;
348 (u_int8_t *)lp + HOFFSET(lp), dbp->pgsize - HOFFSET(lp));
349 __os_free(lp, dbp->pgsize);
372 __os_free(lp, dbp->pgsize);
[all …]
H A Dbt_open.c196 t->bt_ovflsize = (dbp->pgsize - P_OVERHEAD) / (t->bt_minkey * P_INDX)
256 meta->pagesize = dbp->pgsize;
281 P_INIT(root, dbp->pgsize, PGNO_ROOT, PGNO_INVALID,
H A Dbt_page.c118 P_INIT(h, dbp->pgsize, h->pgno, PGNO_INVALID, PGNO_INVALID, 0, type);
204 memset(h, 0xdb, dbp->pgsize);
209 P_INIT(h, dbp->pgsize, h->pgno, PGNO_INVALID, meta->free, 0, P_INVALID);
H A Dbt_delete.c529 a.size = dbp->pgsize;
554 memcpy(parent, child, dbp->pgsize);
/titanic_50/usr/src/lib/libumem/common/
H A Dinit_stand.c46 umem_type_init(caddr_t base, size_t len, size_t pgsize) in umem_type_init() argument
48 pagesize = pgsize; in umem_type_init()
H A Dinit_lib.c59 umem_type_init(caddr_t start, size_t len, size_t pgsize) in umem_type_init() argument
/titanic_50/usr/src/cmd/csh/
H A Dsh.time.c124 #define pgtok(p) ((p * pgsize) / 1024) in prusage()
125 static int pgsize; in prusage() local
141 if (pgsize == 0) { in prusage()
142 pgsize = getpagesize(); in prusage()
/titanic_50/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_umemglue.c114 mdb_umem_startup(caddr_t base, size_t len, size_t pgsize) in mdb_umem_startup() argument
116 umem_startup(base, len, pgsize, base, base + len); in mdb_umem_startup()
/titanic_50/usr/src/cmd/sendmail/db/hash/
H A Dhash_page.c897 dbp->pgsize, H_DATAINDEX(hcp->bndx));
995 __ham_onpage_replace(hcp->pagep, dbp->pgsize,
1016 __ham_onpage_replace(pagep, pgsize, ndx, off, change, dbt) in __ham_onpage_replace() argument
1018 size_t pgsize;
1034 else if ((u_int32_t)off >= LEN_HKEYDATA(pagep, pgsize, ndx)) {
1036 LEN_HKEYDATA(pagep, pgsize, ndx) - src;
1150 __ham_copy_item(dbp->pgsize,
1152 __ham_copy_item(dbp->pgsize,
1393 __ham_copy_item(pgsize, src_page, src_ndx, dest_page) in __ham_copy_item() argument
1394 size_t pgsize; in __ham_copy_item()
[all …]
H A Dhash_rec.c238 P_INIT(pagep, file_dbp->pgsize, argp->new_pgno,
437 file_dbp->pgsize, argp->ndx, argp->off, grow, &dbt);
551 P_INIT(pagep, file_dbp->pgsize, argp->pgno, PGNO_INVALID,
556 P_INIT(pagep, file_dbp->pgsize, argp->pgno, PGNO_INVALID,
737 P_INIT(pagep, file_dbp->pgsize, argp->pgno,
818 P_INIT(pagep, file_dbp->pgsize, pgno, PGNO_INVALID,
H A Dhash_dup.c148 pval.size = LEN_HDATA(hcp->pagep, dbp->pgsize,
535 __ham_copy_item(dbp->pgsize,
537 __ham_copy_item(dbp->pgsize,
/titanic_50/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/
H A Dbt_debug.c209 u_long pgsize; local
236 pgsize = ((BTREE *)dbp->internal)->bt_mp->pagesize;
237 lim = (pgsize - BTDATAOFF) / sizeof(indx_t);
/titanic_50/usr/src/uts/i86pc/os/
H A Dfakebop.c280 uint_t pgsize; in do_bsys_alloc() local
314 pgsize = xbootp->bi_use_pae ? TWO_MEG : FOUR_MEG; in do_bsys_alloc()
315 if (xbootp->bi_use_largepage && a == pgsize) { in do_bsys_alloc()
316 while (IS_P2ALIGNED(pa, pgsize) && IS_P2ALIGNED(va, pgsize) && in do_bsys_alloc()
317 s >= pgsize) { in do_bsys_alloc()
319 va += pgsize; in do_bsys_alloc()
320 pa += pgsize; in do_bsys_alloc()
321 s -= pgsize; in do_bsys_alloc()
329 pgsize = MMU_PAGESIZE; in do_bsys_alloc()
332 va += pgsize; in do_bsys_alloc()
[all …]
/titanic_50/usr/src/cmd/drd/
H A Ddrd_rcm.c1242 int pgsize; in drd_rcm_mem_op() local
1252 if ((pgsize = sysconf(_SC_PAGE_SIZE)) == -1 || in drd_rcm_mem_op()
1265 assert(change % pgsize == 0); in drd_rcm_mem_op()
1267 oldpages = newpages - (long)(change / pgsize); in drd_rcm_mem_op()
1269 assert(newpages >= change / pgsize); in drd_rcm_mem_op()
1271 newpages = oldpages + (long)(change / pgsize); in drd_rcm_mem_op()
1279 nvlist_add_int32(nvl, "page_size", pgsize) != 0 || in drd_rcm_mem_op()
/titanic_50/usr/src/lib/libsmbios/common/
H A Dsmb_lib.c113 size_t pgsize, pgmask, pgoff; in smb_biosopen() local
210 pgsize = getpagesize(); in smb_biosopen()
211 pgmask = ~(pgsize - 1); in smb_biosopen()
/titanic_50/usr/src/uts/i86pc/vm/
H A Dhat_i86.c1638 size_t pgsize; in hat_memload_array() local
1664 pgsize = LEVEL_SIZE(level); in hat_memload_array()
1668 if (!IS_P2ALIGNED(va, pgsize) || in hat_memload_array()
1669 (eaddr - va) < pgsize || in hat_memload_array()
1670 !IS_P2ALIGNED(pfn_to_pa(pfn), pgsize)) in hat_memload_array()
1681 for (i = 0; i < mmu_btop(pgsize); ++i) { in hat_memload_array()
1690 if (i == mmu_btop(pgsize)) { in hat_memload_array()
1710 pgsize = LEVEL_SIZE(level); in hat_memload_array()
1716 va += pgsize; in hat_memload_array()
1717 pgindx += mmu_btop(pgsize); in hat_memload_array()
[all …]
/titanic_50/usr/src/cmd/sendmail/db/include/
H A Ddb_page.h298 #define LEN_HITEM(pg, pgsize, indx) \ argument
299 (((indx) == 0 ? pgsize : pg->inp[indx - 1]) - pg->inp[indx])
/titanic_50/usr/src/uts/common/fs/udfs/
H A Dudf_vnops.c1656 int32_t pgsize = PAGESIZE; in udf_getpage() local
1808 pgoff += pgsize; in udf_getpage()
1809 pgaddr += pgsize; in udf_getpage()
1830 pgoff += pgsize; in udf_getpage()
1831 pgaddr += pgsize; in udf_getpage()
1832 len -= pgsize; in udf_getpage()
1833 plsz -= pgsize; in udf_getpage()
1846 pgoff += pgsize; in udf_getpage()
1847 pgaddr += pgsize; in udf_getpage()
1848 len -= pgsize; in udf_getpage()
[all …]
/titanic_50/usr/src/uts/i86pc/dboot/
H A Ddboot_startkern.c449 uint64_t pgsize; in dump_tables() local
466 pgsize = 1ull << shift_amt[l]; in dump_tables()
503 if (pa1 != pa + i * pgsize) in dump_tables()
508 va += pgsize * (i - 2); in dump_tables()
512 va += pgsize; in dump_tables()

12