Lines Matching defs:iPg
1307 int (*xShmMap)(sqlite3_file*, int iPg, int pgsz, int, void volatile**);
27447 int iPg;
27451 for(iPg=(sStat.st_size/pgsz); iPg<(nByte/pgsz); iPg++){
27452 if( seekAndWriteFd(pShmNode->h, iPg*pgsz + pgsz-1, "", 1, 0)!=1 ){
41277 ** Parameter iPg is the page number of said page. The pCtx argument
41280 ** If page iPg is present in the cache, and has no outstanding references,
41286 static int pagerUndoCallback(void *pCtx, Pgno iPg){
41292 pPg = sqlite3PagerLookup(pPager, iPg);
46847 u32 iPg = pSegment->aPgno[pSegment->aIndex[pSegment->iNext]];
46848 if( iPg>iMin ){
46849 if( iPg<iRet ){
46850 iRet = iPg;
57281 ** corresponds to page iPg is already set.
57283 static int getPageReferenced(IntegrityCk *pCheck, Pgno iPg){
57284 assert( iPg<=pCheck->nPage && sizeof(pCheck->aPgRef[0])==1 );
57285 return (pCheck->aPgRef[iPg/8] & (1 << (iPg & 0x07)));
57289 ** Set the bit in the IntegrityCk.aPgRef[] array that corresponds to page iPg.
57291 static void setPageReferenced(IntegrityCk *pCheck, Pgno iPg){
57292 assert( iPg<=pCheck->nPage && sizeof(pCheck->aPgRef[0])==1 );
57293 pCheck->aPgRef[iPg/8] |= (1 << (iPg & 0x07));
58511 Pgno iPg;
58530 for(iPg=nDestTruncate; rc==SQLITE_OK && iPg<=(Pgno)nDstPage; iPg++){
58531 if( iPg!=PENDING_BYTE_PAGE(p->pDest->pBt) ){
58533 rc = sqlite3PagerGet(pDestPager, iPg, &pPg);