/freebsd-13-stable/lib/libc/db/btree/ |
H A D | bt_split.c | 100 h = sp->pgno == P_ROOT ? 118 if (sp->pgno == P_ROOT && 151 if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL) 212 h = h->pgno == P_ROOT ? 232 ((BINTERNAL *)dest)->pgno = rchild->pgno; 238 rchild->pgno, bl->flags & P_BIGKEY); 241 pgno_t pgno; local 242 memcpy(&pgno, bl->bytes, sizeof(pgno)); 552 pgno_t pgno; local [all...] |
H A D | bt_delete.c | 97 if ((h = mpool_get(t->bt_mp, c->pg.pgno, 0)) == NULL) 148 pgno_t pgno; local 163 if (h->pgno == c->pg.pgno) 172 while (h->pgno != c->pg.pgno) { 180 if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL) 186 BT_PUSH(t, h->pgno, idx); 196 pgno = bi->pgno; [all...] |
H A D | bt_seq.c | 115 __bt_setcur(t, e.page->pgno, e.index); 186 pg = GETBINTERNAL(h, 0)->pgno; 207 pg = GETBINTERNAL(h, NEXTINDEX(h) - 1)->pgno; 259 if ((h = mpool_get(t->bt_mp, c->pg.pgno, 0)) == NULL) 362 if (save.page->pgno != ep->page->pgno) { 376 if (h->pgno != save.page->pgno) 380 if (h->pgno == save.page->pgno) 429 __bt_setcur(BTREE *t, pgno_t pgno, u_int idx) argument [all...] |
H A D | bt_put.c | 153 if ((h = mpool_get(t->bt_mp, t->bt_cursor.pg.pgno, 0)) == NULL) 222 t->bt_cursor.pg.pgno == h->pgno && t->bt_cursor.pg.index >= idx) 230 t->bt_last.pgno = h->pgno; 236 t->bt_last.pgno = h->pgno; 245 __bt_setcur(t, e->page->pgno, e->index); 272 if ((h = mpool_get(t->bt_mp, t->bt_last.pgno, 0)) == NULL) {
|
H A D | btree.h | 67 pgno_t pgno; /* this page's page number */ member in struct:_page 111 * For the btree internal pages, the item is a key. BINTERNALs are {key, pgno} 121 pgno_t pgno; /* page number stored on */ member in struct:_binternal 137 #define WR_BINTERNAL(p, size, pgno, flags) { \ 140 *(pgno_t *)p = pgno; \ 152 pgno_t pgno; /* page number stored below */ member in struct:_rinternal 164 #define WR_RINTERNAL(p, nrecs, pgno) { \ 167 *(pgno_t *)p = pgno; \ 241 pgno_t pgno; /* the page number */ member in struct:_epgno 314 t->bt_sp->pgno [all...] |
H A D | bt_page.c | 65 t->bt_free = h->pgno;
|
H A D | bt_debug.c | 133 __bt_dnpage(DB *dbp, pgno_t pgno) argument 139 if ((h = mpool_get(t->bt_mp, pgno, MPOOL_IGNOREPIN)) != NULL) 159 (void)fprintf(stderr, " page %u: (", h->pgno); 189 "size %03d pgno %03d", bi->ksize, bi->pgno); 198 (void)fprintf(stderr, "entries %03d pgno %03d", 199 ri->nrecs, ri->pgno); 287 GETRINTERNAL(h, 0)->pgno : 288 GETBINTERNAL(h, 0)->pgno;
|
H A D | bt_overflow.c | 128 * pgno: storage page number 152 h->pgno = npg; 161 last->nextpg = h->pgno; 164 *pg = h->pgno;
|
H A D | bt_search.c | 128 next: BT_PUSH(t, h->pgno, idx); 129 pg = GETBINTERNAL(h, idx)->pgno;
|
H A D | bt_conv.c | 76 M_32_SWAP(h->pgno); 182 M_32_SWAP(h->pgno);
|
H A D | bt_open.c | 357 root->pgno == 0 && 378 root->pgno = npg;
|
/freebsd-13-stable/lib/libc/db/mpool/ |
H A D | mpool.c | 136 bp->pgno = *pgnoaddr; 138 bp->pgno = *pgnoaddr = mp->npages++; 142 head = &mp->hqh[HASHKEY(bp->pgno)]; 159 "mpool_delete: page %d not pinned\n", bp->pgno); 165 head = &mp->hqh[HASHKEY(bp->pgno)]; 180 mpool_get(MPOOL *mp, pgno_t pgno, argument 193 if ((bp = mpool_look(mp, pgno)) != NULL) { 197 "mpool_get: page %d already pinned\n", bp->pgno); 205 head = &mp->hqh[HASHKEY(bp->pgno)]; 221 off = mp->pagesize * pgno; 430 mpool_look(MPOOL *mp, pgno_t pgno) argument [all...] |
/freebsd-13-stable/include/ |
H A D | mpool.h | 48 #define HASHKEY(pgno) ((pgno - 1 + HASHSIZE) % HASHSIZE) 55 pgno_t pgno; /* page number */ member in struct:_bkt
|
/freebsd-13-stable/lib/libc/db/recno/ |
H A D | rec_search.c | 93 pg = r->pgno; 113 if ((h = mpool_get(t->bt_mp, parent->pgno, 0)) == NULL)
|
/freebsd-13-stable/sys/fs/nfsserver/ |
H A D | nfs_nfsdsubs.c | 1286 int i, lastlen, pgno, plen, tlen, trim; local 1325 pgno = m->m_epg_npgs - 1; 1326 off = (pgno == 0) ? m->m_epg_1st_off : 0; 1327 plen = m_epg_pagelen(m, pgno, off); 1332 KASSERT(pgno > 0, 1335 pg = PHYS_TO_VM_PAGE(m->m_epg_pa[pgno]); 1340 pgno--; 1341 off = (pgno == 0) ? m->m_epg_1st_off : 0; 1342 plen = m_epg_pagelen(m, pgno, off); 1348 cp = (char *)(void *)PHYS_TO_DMAP(m->m_epg_pa[pgno]); [all...] |
H A D | nfs_nfsdport.c | 855 int i, left, pgno, siz; local 878 pgno = 0; 884 iv->iov_base = (void *)PHYS_TO_DMAP(m->m_epg_pa[pgno]); 887 if (pgno == m->m_epg_npgs - 1) 892 pgno++; 894 if (pgno == m->m_epg_npgs && left > 0) { 898 pgno = 0;
|
/freebsd-13-stable/contrib/sqlite3/ |
H A D | sqlite3.c | 15018 SQLITE_PRIVATE int sqlite3PagerGet(Pager *pPager, Pgno pgno, DbPage **ppPage, int clrFlag); 15019 SQLITE_PRIVATE DbPage *sqlite3PagerLookup(Pager *pPager, Pgno pgno); 15069 SQLITE_PRIVATE int sqlite3PagerDirectReadOk(Pager *pPager, Pgno pgno); 16191 PgHdr *pDirty; /* Transient list of dirty sorted by pgno */ 16193 Pgno pgno; /* Page number for this page */ member in struct:PgHdr 16269 /* Remove all pages with pgno>x. Reset the cache if x==0 */ 48793 int pgno; local 49680 sqlite3PcacheFetch( PCache *pCache, Pgno pgno, int createFlag ) argument 49721 sqlite3PcacheFetchStress( PCache *pCache, Pgno pgno, sqlite3_pcache_page **ppPage ) argument 49777 pcacheFetchFinishWithInit( PCache *pCache, Pgno pgno, sqlite3_pcache_page *pPage ) argument 49803 sqlite3PcacheFetchFinish( PCache *pCache, Pgno pgno, sqlite3_pcache_page *pPage ) argument 49959 sqlite3PcacheTruncate(PCache *pCache, Pgno pgno) argument 52960 sqlite3PagerDirectReadOk(Pager *pPager, Pgno pgno) argument 53216 Pgno pgno = pPg->pgno; local 53933 addToSavepointBitvecs(Pager *pPager, Pgno pgno) argument 54393 Pgno pgno; /* The page number of a page in journal */ local 56138 pagerAcquireMapPage( Pager *pPager, Pgno pgno, void *pData, PgHdr **ppPage ) argument 56526 Pgno pgno = pList->pgno; local 57613 getPageNormal( Pager *pPager, Pgno pgno, DbPage **ppPage, int flags ) argument 57715 getPageMMap( Pager *pPager, Pgno pgno, DbPage **ppPage, int flags ) argument 57784 getPageError( Pager *pPager, Pgno pgno, DbPage **ppPage, int flags ) argument 57800 sqlite3PagerGet( Pager *pPager, Pgno pgno, DbPage **ppPage, int flags ) argument 57820 sqlite3PagerLookup(Pager *pPager, Pgno pgno) argument 59204 sqlite3PagerMovepage(Pager *pPager, DbPage *pPg, Pgno pgno, int isCommit) argument 60647 u32 pgno; /* Page number of the frame */ local 61118 u32 pgno; /* Database page number for frame */ local 62380 u32 pgno; /* Database page number for frame */ local 62714 u32 pgno; /* Page number in db file */ local 62888 sqlite3WalFindFrame( Wal *pWal, Pgno pgno, u32 *piRead ) argument 64208 Pgno pgno; /* Page number for this page */ member in struct:MemPage 65559 btreeSetHasContent(BtShared *pBt, Pgno pgno) argument 65581 btreeGetHasContent(BtShared *pBt, Pgno pgno) argument 65929 ptrmapPageno(BtShared *pBt, Pgno pgno) argument 67066 btreePageFromDbPage(DbPage *pDbPage, Pgno pgno, BtShared *pBt) argument 67090 btreeGetPage( BtShared *pBt, Pgno pgno, MemPage **ppPage, int flags ) argument 67112 btreePageLookup(BtShared *pBt, Pgno pgno) argument 67147 getAndInitPage( BtShared *pBt, Pgno pgno, MemPage **ppPage, BtCursor *pCur, int bReadOnly ) argument 67238 btreeGetUnusedPage( BtShared *pBt, Pgno pgno, MemPage **ppPage, int flags ) argument 68548 Pgno pgno = pPage->pgno; local 69682 Pgno pgno; local 70269 Pgno pgno; local 70294 Pgno pgno; local 72547 Pgno pgno; /* Temp var to store a page number in */ local 74385 clearDatabasePage( BtShared *pBt, Pgno pgno, int freePageFlag, int *pnChange ) argument 74997 int pgno; /* Page number */ local 92241 Pgno pgno; local 167694 sqlite3CorruptPgnoError(int lineno, Pgno pgno) argument 167696 sqlite3_snprintf(sizeof(zMsg), zMsg, "database corruption page %d", pgno); local 205197 int pgno; /* Current page number */ member in struct:DbpageCursor 205460 Pgno pgno; local 220153 int pgno; /* Page number for this page */ member in struct:Fts5PageWriter 220160 int pgno; /* Page number for this page */ member in struct:Fts5DlidxWriter 221933 int pgno; local 222873 int pgno = pSeg->iLeafPgno; local 225555 int pgno = fts5DlidxIterPgno(pDlidx); local 225567 int pgno = fts5DlidxIterPgno(pDlidx); local 226463 int segid, pgno; local [all...] |
H A D | shell.c | 10364 ** pgno INTEGER, 10391 ** INSERT INTO sqlite_dbdata(pgno, cell, field, value) VALUES 10407 ** pgno INTEGER, 10471 " pgno INTEGER," \ 10484 " pgno INTEGER," \ 10534 ** pgno=? 10537 ** the 0x01 bit in idxNum is set. If pgno=? is present, the 0x02 bit 10540 ** If both parameters are present, schema is in position 0 and pgno in 10654 ** Load page pgno from the database via the sqlite_dbpage virtual table. 10665 unsigned int pgno, /* Pag 10663 dbdataLoadPage( DbdataCursor *pCsr, unsigned int pgno, u8 **ppPage, int *pnPage ) argument [all...] |
/freebsd-13-stable/sys/fs/nfsclient/ |
H A D | nfs_clrpcops.c | 8642 int i, j, left, pgno, plen, trim; local 8664 pgno = 0; 8667 if (pgno == 0) 8670 plen = m_epg_pagelen(m, pgno, 0); 8674 pgno++; 8675 } while (pgno < m->m_epg_npgs); 8676 if (pgno == m->m_epg_npgs) 8700 cp = (char *)(void *)PHYS_TO_DMAP(m->m_epg_pa[pgno]); 8701 if (pgno == 0) 8705 if (pgno [all...] |