Lines Matching refs:pgsz
6316 static int apndShmMap(sqlite3_file*, int iPg, int pgsz, int, void volatile**);
6550 int pgsz,
6555 return pFile->pMethods->xShmMap(pFile,iPg,pgsz,bExtend,pp);
12819 int pgsz;
13322 if( pgno==1 && nPg==p->pgsz && 0==memcmp(p->pPage1Cache, aPg, nPg) ){
14863 u32 pgsz = 0;
14883 for(pgsz2=(pgsz ? pgsz*2 : nMin); pgsz2<=nMax; pgsz2=pgsz2*2){
14887 pgsz = pgsz2;
14894 if( pgsz>(u32)p->detected_pgsz ){
14895 p->detected_pgsz = pgsz;
14902 p->detected_pgsz = pgsz;
14960 u32 pgsz = recoverGetU16(&a[16]);
14968 if( pgsz==0x01 ) pgsz = 65536;
14975 pgsz = p->detected_pgsz;
14979 if( pgsz ){
14980 dbsz = dbFileSize / pgsz;
14990 p->pgsz = nByte;
14999 recoverPutU16(&aHdr[105], pgsz-nReserve);
15000 if( pgsz==65536 ) pgsz = 1;
15001 recoverPutU16(&aHdr[16], pgsz);
15095 sqlite3_file *pFd, int iPg, int pgsz, int bExtend, void volatile **pp
15098 pFd->pMethods->xShmMap(pFd, iPg, pgsz, bExtend, pp)
19226 int pgsz = 0;
19249 rc = sscanf(zLine, "| size %d pagesize %d", &n, &pgsz);
19252 if( pgsz<512 || pgsz>65536 || (pgsz&(pgsz-1))!=0 ) goto readHexDb_error;
19253 n = (n+pgsz-1)&~(pgsz-1); /* Round n up to the next multiple of pgsz */
19257 if( pgsz<512 || pgsz>65536 || (pgsz & (pgsz-1))!=0 ){