Home
last modified time | relevance | path

Searched refs:pagep (Results 1 – 18 of 18) sorted by relevance

/titanic_41/usr/src/lib/krb5/plugins/kdb/db2/libdb2/hash/
H A Dhash_bigkey.c88 __big_insert(hashp, pagep, key, val) in __big_insert() argument
90 PAGE16 *pagep;
102 NUM_ENT(pagep) = NUM_ENT(pagep) + 1;
106 pagep =
107 __add_bigpage(hashp, pagep, NUM_ENT(pagep) - 1, base_page);
108 if (!pagep)
112 NUM_ENT(pagep) = 1;
115 key_move_bytes = MIN(FREESPACE(pagep), key_size);
117 BIGKEYLEN(pagep) = key_move_bytes;
119 MIN(FREESPACE(pagep) - key_move_bytes, val_size);
[all …]
H A Dhash_page.c100 if (!cursorp->pagep) {
102 cursorp->pagep =
104 cursorp->pgno = ADDR(cursorp->pagep);
108 cursorp->pagep =
110 if (!cursorp->pagep) {
116 FREESPACE(cursorp->pagep) > item_info->seek_size)
119 if (cursorp->pgndx == NUM_ENT(cursorp->pagep)) {
121 if (NEXT_PGNO(cursorp->pagep) == INVALID_PGNO) {
125 next_pgno = NEXT_PGNO(cursorp->pagep);
127 __put_page(hashp, cursorp->pagep, A_RAW, 0);
[all …]
H A Dhash.c747 cursor.pagep = NULL;
857 new_curs->pagep = NULL;
917 __big_keydata(hashp, cursorp->pagep, key, val,
925 __put_page(hashp, cursorp->pagep, A_RAW, 0);
929 cursorp->pagep = NULL;
H A Dhash.h71 u_int16_t *pagep; member
/titanic_41/usr/src/cmd/sendmail/db/db/
H A Ddb_rec.c46 PAGE *pagep; local
53 if ((ret = memp_fget(mpf, &argp->pgno, 0, &pagep)) != 0) {
64 &argp->pgno, DB_MPOOL_CREATE, &pagep)) != 0)
68 cmp_n = log_compare(lsnp, &LSN(pagep));
69 cmp_p = log_compare(&LSN(pagep), &argp->pagelsn);
75 if ((ret = __db_pitem(dbc, pagep, argp->indx, argp->nbytes,
86 pagep, argp->indx, argp->nbytes)) != 0)
93 LSN(pagep) = *lsnp;
95 LSN(pagep) = argp->pagelsn;
97 if ((ret = memp_fput(mpf, pagep, change)) != 0)
[all …]
H A Ddb_dup.c48 PAGE *pagep; local
77 pagep = *pp;
78 if (size > P_FREESPACE(pagep)) {
89 pagep = *pp;
97 pagep, (u_int32_t)*indxp, isize, hdr_dbtp, data_dbtp)) != 0)
100 (void)memp_fset(dbc->dbp->mpf, pagep, DB_MPOOL_DIRTY);
118 PAGE *pagep; local
121 pagep = *pp;
124 if (B_TYPE(GET_BKEYDATA(pagep, indx)->type) == B_OVERFLOW) {
126 GET_BOVERFLOW(pagep, indx)->pgno, freefunc)) != 0)
[all …]
H A Ddb_overflow.c174 PAGE *pagep, *lastp; local
205 if ((ret = newfunc(dbc, P_OVERFLOW, &pagep)) != 0)
213 PGNO(pagep), lastp ? PGNO(lastp) : PGNO_INVALID,
214 PGNO_INVALID, &tmp_dbt, &LSN(pagep),
222 LSN(pagep) = new_lsn;
225 P_INIT(pagep, dbp->pgsize,
226 PGNO(pagep), PGNO_INVALID, PGNO_INVALID, 0, P_OVERFLOW);
227 OV_LEN(pagep) = pagespace;
228 OV_REF(pagep) = 1;
229 memcpy((u_int8_t *)pagep + P_OVERHEAD, p, pagespace);
[all …]
/titanic_41/usr/src/cmd/sendmail/db/hash/
H A Dhash_rec.c87 PAGE *pagep; local
97 ret = memp_fget(mpf, &argp->pgno, 0, &pagep);
108 DB_MPOOL_CREATE, &pagep)) != 0)
117 cmp_n = log_compare(lsnp, &LSN(pagep));
118 cmp_p = log_compare(&LSN(pagep), &argp->pagelsn);
140 argp->ndx == (u_int32_t)H_NUMPAIRS(pagep)) {
141 __ham_putitem(pagep, &argp->key,
144 __ham_putitem(pagep, &argp->data,
148 (void) __ham_reputpair(pagep, hcp->hdr->pagesize,
151 LSN(pagep) = redo ? *lsnp : argp->pagelsn;
[all …]
H A Dhash_dup.c123 hk = H_PAIRDATA(hcp->pagep, hcp->bndx);
124 new_size = DUP_SIZE(nval->size) - del_len + LEN_HKEYDATA(hcp->pagep,
134 DUP_SIZE(nval->size) - del_len > P_FREESPACE(hcp->pagep))) {
139 hk = H_PAIRDATA(hcp->pagep, hcp->bndx);
148 pval.size = LEN_HDATA(hcp->pagep, dbp->pgsize,
171 tmp_val.doff = LEN_HDATA(hcp->pagep,
180 dbt.data = HKEYDATA_DATA(H_PAIRDATA(hcp->pagep,
199 ret = __ham_dirty_page(dbp, hcp->pagep);
265 hcp->pgno = PGNO(hcp->pagep);
302 switch (HPAGE_PTYPE(H_PAIRDATA(hcp->pagep, hcp->bndx))) {
[all …]
H A Dhash_page.c112 && hcp->seek_size < P_FREESPACE(hcp->pagep))
123 HKEYDATA_DATA(H_PAIRDATA(hcp->pagep, hcp->bndx)) +
152 if (hcp->bndx >= (db_indx_t)H_NUMPAIRS(hcp->pagep)) {
154 if (NEXT_PGNO(hcp->pagep) == PGNO_INVALID) {
162 next_pgno = NEXT_PGNO(hcp->pagep);
186 if (hcp->pagep != NULL)
187 ret = __ham_put_page(dbp, hcp->pagep, 0);
217 hcp->pagep = NULL;
247 if (hcp->pagep)
248 ret = __ham_put_page(dbp, hcp->pagep,
[all …]
H A Dhash.c455 memcpy(HOFFDUP_PGNO(P_ENTRY(hcp->pagep,
465 ret = __ham_put_page(dbp, hcp->pagep, 1);
466 hcp->pagep = NULL;
474 LEN_HDATA(hcp->pagep, hcp->hdr->pagesize, hcp->bndx))
483 HKEYDATA_DATA(H_PAIRDATA(hcp->pagep, hcp->bndx));
601 if (get_key && (ret = __db_ret(dbp, hcp->pagep,
635 hcp->pagep = NULL;
917 type = HPAGE_TYPE(hcp->pagep, ndx);
918 pp = hcp->pagep;
937 hcp->dup_tlen = LEN_HDATA(hcp->pagep,
[all …]
/titanic_41/usr/src/uts/common/os/
H A Dschedctl.c139 sc_page_ctl_t *pagep; in schedctl_lwp_cleanup() local
162 pagep = schedctl_page_lookup(ssp); in schedctl_lwp_cleanup()
163 index = (index_t)(ssp - pagep->spc_base); in schedctl_lwp_cleanup()
164 BT_CLEAR(pagep->spc_map, index); in schedctl_lwp_cleanup()
165 pagep->spc_space += sizeof (sc_shared_t); in schedctl_lwp_cleanup()
178 sc_page_ctl_t *pagep; in schedctl_proc_cleanup() local
187 pagep = p->p_pagep; in schedctl_proc_cleanup()
189 while (pagep != NULL) { in schedctl_proc_cleanup()
190 ASSERT(pagep->spc_space == sc_pagesize); in schedctl_proc_cleanup()
191 next = pagep->spc_next; in schedctl_proc_cleanup()
[all …]
/titanic_41/usr/src/cmd/sendmail/db/btree/
H A Dbt_rec.c47 PAGE *pagep; local
73 if ((ret = memp_fget(mpf, &argp->pgno, DB_MPOOL_CREATE, &pagep)) != 0) {
87 cmp_n = log_compare(lsnp, &LSN(pagep));
88 cmp_p = log_compare(&LSN(pagep), &argp->page_lsn);
91 P_INIT(pagep, file_dbp->pgsize,
94 pagep->lsn = *lsnp;
98 P_INIT(pagep, file_dbp->pgsize,
101 pagep->lsn = argp->page_lsn;
104 if ((ret = memp_fput(mpf, pagep, modified ? DB_MPOOL_DIRTY : 0)) != 0) {
153 PAGE *pagep; local
[all …]
/titanic_41/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_misc.c78 hermon_udbr_page_t *pagep; in hermon_dbr_new_user_page() local
85 pagep = kmem_alloc(sizeof (*pagep), KM_SLEEP); in hermon_dbr_new_user_page()
86 pagep->upg_index = page; in hermon_dbr_new_user_page()
87 pagep->upg_nfree = pagesize / sizeof (hermon_dbr_t); in hermon_dbr_new_user_page()
90 pagep->upg_free = kmem_zalloc(pagesize / sizeof (hermon_dbr_t) / 8, in hermon_dbr_new_user_page()
92 pagep->upg_kvaddr = ddi_umem_alloc(pagesize, DDI_UMEM_SLEEP, in hermon_dbr_new_user_page()
93 &pagep->upg_umemcookie); /* not HERMON_PAGESIZE here */ in hermon_dbr_new_user_page()
95 pagep->upg_buf = ddi_umem_iosetup(pagep->upg_umemcookie, 0, in hermon_dbr_new_user_page()
104 DDI_DMA_SLEEP, NULL, &pagep->upg_dmahdl); in hermon_dbr_new_user_page()
110 status = ddi_dma_buf_bind_handle(pagep->upg_dmahdl, in hermon_dbr_new_user_page()
[all …]
H A Dhermon_umap.c416 hermon_udbr_page_t *pagep; in hermon_umap_dbrecmem() local
423 pagep = (hermon_udbr_page_t *)rsrcp; in hermon_umap_dbrecmem()
437 &hermon_devmap_dbrecmem_cbops, pagep->upg_umemcookie, offset, in hermon_umap_dbrecmem()
/titanic_41/usr/src/cmd/fm/modules/common/cpumem-retire/
H A Dcma_page.c250 cma_page_t **pagep; in cma_page_retry() local
256 pagep = &cma.cma_pages; in cma_page_retry()
257 while (*pagep != NULL) { in cma_page_retry()
258 cma_page_t *page = *pagep; in cma_page_retry()
265 *pagep = page->pg_next; in cma_page_retry()
273 pagep = &page->pg_next; in cma_page_retry()
/titanic_41/usr/src/cmd/sendmail/db/include/
H A Dbtree.h138 #define BT_STK_ENTER(c, pagep, page_indx, lock, ret) do { \ argument
141 (c)->csp->page = pagep; \
147 #define BT_STK_PUSH(c, pagep, page_indx, lock, ret) do { \ argument
148 BT_STK_ENTER(c, pagep, page_indx, lock, ret); \
H A Dhash.h63 PAGE *pagep; /* The current page. */ member