Lines Matching refs:PgHdr

101 typedef struct PgHdr PgHdr;  typedef
102 struct PgHdr { struct
105 PgHdr *pNextHash, *pPrevHash; /* Hash collision chain for PgHdr.pgno */ argument
107 PgHdr *pNextFree, *pPrevFree; /* Freelist of pages where nRef==0 */ argument
108 PgHdr *pNextAll, *pPrevAll; /* A list of all pages */ argument
109 PgHdr *pNextCkpt, *pPrevCkpt; /* List of pages in the checkpoint journal */ argument
115 PgHdr *pDirty; /* Dirty pages sorted by PgHdr.pgno */ argument
135 #define DATA_TO_PGHDR(D) (&((PgHdr*)(D))[-1])
190 PgHdr *pFirst, *pLast; /* List of free pages */
191 PgHdr *pFirstSynced; /* First free page with PgHdr.needSync==0 */
192 PgHdr *pAll; /* List of all pages */
193 PgHdr *pCkpt; /* List of pages in the checkpoint journal */
194 PgHdr *aHash[N_PG_HASH]; /* Hash table to map page number of PgHdr */
292 static void pager_refinfo(PgHdr *p){ in pager_refinfo()
356 static void store32bits(u32 val, PgHdr *p, int offset){ in store32bits()
393 static void page_add_to_ckpt_list(PgHdr *pPg){ in page_add_to_ckpt_list()
405 static void page_remove_from_ckpt_list(PgHdr *pPg){ in page_remove_from_ckpt_list()
427 static PgHdr *pager_lookup(Pager *pPager, Pgno pgno){ in pager_lookup()
428 PgHdr *p = pPager->aHash[pager_hash(pgno)]; in pager_lookup()
442 PgHdr *pPg, *pNext; in pager_reset()
475 PgHdr *pPg; in pager_unwritelock()
530 PgHdr *pPg; /* An existing page in the cache */ in pager_playback_one_page()
728 PgHdr *pPg; in pager_playback()
1068 PgHdr *pPg, *pNext; in sqlitepager_close()
1111 PgHdr *p = DATA_TO_PGHDR(pData); in sqlitepager_pagenumber()
1121 static void _page_ref(PgHdr *pPg){ in _page_ref()
1125 PgHdr *p = pPg->pNextFree; in _page_ref()
1150 PgHdr *pPg = DATA_TO_PGHDR(pData); in sqlitepager_ref()
1176 PgHdr *pPg; in syncJournal()
1251 static int pager_write_pagelist(PgHdr *pList){ in pager_write_pagelist()
1276 static PgHdr *pager_get_all_dirty_pages(Pager *pPager){ in pager_get_all_dirty_pages()
1277 PgHdr *p, *pList; in pager_get_all_dirty_pages()
1312 PgHdr *pPg; in sqlitepager_get()
1452 PgHdr *p = pPg->pNextFree; in sqlitepager_get()
1558 PgHdr *pPg; in sqlitepager_lookup()
1584 PgHdr *pPg; in sqlitepager_unref()
1715 PgHdr *pPg = DATA_TO_PGHDR(pData); in sqlitepager_begin()
1754 PgHdr *pPg = DATA_TO_PGHDR(pData); in sqlitepager_write()
1880 PgHdr *pPg = DATA_TO_PGHDR(pData); in sqlitepager_iswriteable()
1928 PgHdr *pPg; in sqlitepager_dont_write()
1956 PgHdr *pPg = DATA_TO_PGHDR(pData); in sqlitepager_dont_rollback()
1988 PgHdr *pPg; in sqlitepager_commit()
2155 PgHdr *pPg, *pNext; in sqlitepager_ckpt_commit()
2213 PgHdr *pPg; in sqlitepager_refdump()