Lines Matching refs:pgsz
1180 int (*xShmMap)(sqlite3_file*, int iPg, int pgsz, int, void volatile**);
26717 int pgsz, in sqlite3OsShmMap() argument
26722 return id->pMethods->xShmMap(id, iPage, pgsz, bExtend, pp); in sqlite3OsShmMap()
43361 int pgsz = osGetpagesize(); /* System page size */ in unixShmRegionPerMap() local
43362 assert( ((pgsz-1)&pgsz)==0 ); /* Page size must be a power of 2 */ in unixShmRegionPerMap()
43363 if( pgsz<shmsz ) return 1; in unixShmRegionPerMap()
43364 return pgsz/shmsz; in unixShmRegionPerMap()
43737 static const int pgsz = 4096; in unixShmMap() local
43741 assert( (nByte % pgsz)==0 ); in unixShmMap()
43742 for(iPg=(sStat.st_size/pgsz); iPg<(nByte/pgsz); iPg++){ in unixShmMap()
43744 if( seekAndWriteFd(pShmNode->hShm, iPg*pgsz + pgsz-1,"",1,&x)!=1 ){ in unixShmMap()
104419 int pgsz; /* Main database page size */
104753 int pgsz = pTask->pSorter->pgsz;
104754 int iBuf = pReadr->iReadOff % pgsz;
104756 pReadr->aBuffer = (u8*)sqlite3Malloc(pgsz);
104758 pReadr->nBuffer = pgsz;
104761 int nRead = pgsz - iBuf;
105035 int pgsz; /* Page size of main database */
105086 pSorter->pgsz = pgsz = sqlite3BtreeGetPageSize(pBt);
105100 pSorter->mnPmaSize = szPma * pgsz;
105108 mxCache = mxCache * pgsz;
105117 pSorter->nMemory = pgsz;
105118 pSorter->list.aMemory = (u8*)sqlite3Malloc(pgsz);
105693 vdbePmaWriterInit(pTask->file.pFd, &writer, pTask->pSorter->pgsz,
105999 vdbePmaWriterInit(pOut->pFd, &writer, pTask->pSorter->pgsz, iStart);
200968 int pgsz = p->nPgsz;
200971 assert( pgsz>0 );
200983 if( (nBlob+35)>pgsz ){
200984 nOvfl += (nBlob + 34)/pgsz;
221661 int pgsz;
224312 p->aBuf = rbuMalloc(p, p->pgsz);
224326 if( nSectorSize>p->pgsz ){
224327 p->nPagePerSector = nSectorSize / p->pgsz;
224355 pRbu->pgsz = iAmt;
224379 pRbu->aFrame[pRbu->nFrame-1].iDbPage = (u32)(iOff / pRbu->pgsz) + 1;
224394 iOff = (i64)(pFrame->iWalFrame-1) * (p->pgsz + 24) + 32 + 24;
224395 p->rc = pWal->pMethods->xRead(pWal, p->aBuf, p->pgsz, iOff);
224398 iOff = (i64)(pFrame->iDbPage-1) * p->pgsz;
224399 p->rc = pDb->pMethods->xWrite(pDb, p->aBuf, p->pgsz, iOff);
227225 int pgsz = sqlite3BtreeGetPageSize(pBt);
227230 pPg->aPg = (u8*)sqlite3_malloc(pgsz + DBSTAT_PAGE_PADDING_BYTES);
227234 memset(&pPg->aPg[pgsz], 0, DBSTAT_PAGE_PADDING_BYTES);
227240 memcpy(pPg->aPg, a, pgsz);
235758 int pgsz; /* Approximate page size used in %_data */
240145 int pgsz = 0;
240147 pgsz = sqlite3_value_int(pVal);
240149 if( pgsz<32 || pgsz>FTS5_MAX_PAGE_SIZE ){
240152 pConfig->pgsz = pgsz;
240275 pConfig->pgsz = FTS5_DEFAULT_PAGE_SIZE;
245468 if( p->rc==SQLITE_OK && (pConfig->pgsz==0 || pConfig->iCookie!=iCookie) ){
248536 if( pDlidx->buf.n>=p->pConfig->pgsz ){
248645 if( (pPage->buf.n + pPgidx->n + nTerm + 2)>=p->pConfig->pgsz ){
248719 if( (pPage->buf.n + pPage->pgidx.n)>=p->pConfig->pgsz ){
248756 assert( p->pConfig->pgsz>0 || p->rc!=SQLITE_OK );
248758 && (pPage->buf.n + pPage->pgidx.n + n)>=p->pConfig->pgsz
248760 int nReq = p->pConfig->pgsz - pPage->buf.n - pPage->pgidx.n;
248813 const int nBuffer = p->pConfig->pgsz + FTS5_DATA_PADDING;
249774 const int pgsz = p->pConfig->pgsz;
249789 assert( p->rc || pBuf->nSpace>=(pgsz + FTS5_DATA_PADDING) );
249790 assert( p->rc || pPgidx->nSpace>=(pgsz + FTS5_DATA_PADDING) );
249811 if( !bSecureDelete && pgsz>=(pBuf->n + pPgidx->n + nDoclist + 1) ){
249882 if( (pBuf->n + pPgidx->n)>=pgsz ){
249896 if( (pBuf->n + pPgidx->n + nCopy) <= pgsz ){
249907 int nSpace = pgsz - pBuf->n - pPgidx->n;
249917 if( (pBuf->n + pPgidx->n)>=pgsz ){
252146 int nSlotPerPage = MAX(MINSLOT, (p->pConfig->pgsz - 8) / szKey);
255604 if( pConfig->pgsz==0 ){
255800 pTab->p.pConfig->pgsz = 0;
256845 pTab->p.pConfig->pgsz = 0;