Home
last modified time | relevance | path

Searched refs:nFree (Results 1 – 14 of 14) sorted by relevance

/external/chromium_org/third_party/sqlite/src/src/
Dtest_pcache.c104 int nFree; /* Number of unused slots in a[] */ member
144 p->nFree = TESTPCACHE_NPAGE; in testpcacheCreate()
178 return TESTPCACHE_NPAGE - p->nFree; in testpcachePagecount()
200 assert( p->nPinned <= TESTPCACHE_NPAGE - p->nFree ); in testpcacheFetch()
234 if( p->nFree>TESTPCACHE_RESERVE || (createFlag==2 && p->nFree>0) ){ in testpcacheFetch()
242 p->nFree--; in testpcacheFetch()
243 assert( p->nPinned <= TESTPCACHE_NPAGE - p->nFree ); in testpcacheFetch()
268 assert( p->nPinned <= TESTPCACHE_NPAGE - p->nFree ); in testpcacheFetch()
311 p->nFree++; in testpcacheUnpin()
312 assert( p->nFree<=TESTPCACHE_NPAGE ); in testpcacheUnpin()
[all …]
Dtest_wsd.c29 int nFree; member
46 pGlobal->nFree = nMalloc - sizeof(ProcessLocalStorage); in sqlite3_wsd_init()
71 assert( pGlobal->nFree>=nByte ); in sqlite3_wsd_find()
76 pGlobal->nFree -= nByte; in sqlite3_wsd_find()
Dpcache1.c930 int nFree = 0; in sqlite3PcacheReleaseMemory() local
936 while( (nReq<0 || nFree<nReq) && ((p=pcache1.grp.pLruTail)!=0) ){ in sqlite3PcacheReleaseMemory()
937 nFree += pcache1MemSize(PGHDR1_TO_PAGE(p)); in sqlite3PcacheReleaseMemory()
944 return nFree; in sqlite3PcacheReleaseMemory()
Dbtree.c1126 if( cbrk-iCellFirst!=pPage->nFree ){ in defragmentPage()
1158 assert( pPage->nFree>=nByte ); in allocateSpace()
1288 pPage->nFree = pPage->nFree + (u16)size; in freeSpace()
1386 int nFree; /* Number of unused bytes on the page */ in btreeInitPage() local
1443 nFree = data[hdr+7] + top; in btreeInitPage()
1457 nFree = nFree + size; in btreeInitPage()
1468 if( nFree>usableSize ){ in btreeInitPage()
1471 pPage->nFree = (u16)(nFree - iCellFirst); in btreeInitPage()
1500 pPage->nFree = (u16)(pBt->usableSize - first); in zeroPage()
3017 Pgno nFree; /* Number of pages on the freelist initially */ in autoVacuumCommit() local
[all …]
DbtreeInt.h283 u16 nFree; /* Number of free bytes on the page */ member
/external/chromium_org/third_party/sqlite/src/test/
Ddbstatus.test189 set nFree [expr {$nAlloc1-$nAlloc2}]
202 do_test dbstatus-2.$tn.ax { expr {($nSchema1-$nSchema2)<=$nFree} } 1
204 do_test dbstatus-2.$tn.a { expr {$nSchema1-$nSchema2} } $nFree
327 set nFree [expr {$nAlloc1-$nAlloc2}]
337 #puts "$nStmt1 $nFree"
339 do_test dbstatus-3.$tn.bx { expr $nStmt1<=$nFree } {1}
341 do_test dbstatus-3.$tn.b { expr $nStmt1==$nFree } {1}
Dincrvacuum_ioerr.test143 set nFree [execsql {pragma freelist_count} db1]
170 } [expr {$nFree - $nFree2}]
/external/chromium/third_party/libjingle/source/talk/p2p/base/
Dpseudotcp.cc695 for (uint32 nFree = nAcked; nFree > 0; ) { in process() local
697 if (nFree < m_slist.front().len) { in process()
698 m_slist.front().len -= nFree; in process()
699 nFree = 0; in process()
704 nFree -= m_slist.front().len; in process()
/external/chromium_org/third_party/libjingle/source/talk/p2p/base/
Dpseudotcp.cc761 for (uint32 nFree = nAcked; nFree > 0; ) { in process() local
763 if (nFree < m_slist.front().len) { in process()
764 m_slist.front().len -= nFree; in process()
765 nFree = 0; in process()
770 nFree -= m_slist.front().len; in process()
/external/yaffs2/yaffs2/
Dyaffs_guts.c6529 int nFree; in yaffs_CountFreeChunks() local
6534 for (nFree = 0, b = dev->internalStartBlock; b <= dev->internalEndBlock; in yaffs_CountFreeChunks()
6543 nFree += in yaffs_CountFreeChunks()
6553 return nFree; in yaffs_CountFreeChunks()
6560 int nFree; in yaffs_GetNumberOfFreeChunks() local
6565 nFree = dev->nFreeChunks; in yaffs_GetNumberOfFreeChunks()
6567 nFree = yaffs_CountFreeChunks(dev); in yaffs_GetNumberOfFreeChunks()
6570 nFree += dev->nDeletedFiles; in yaffs_GetNumberOfFreeChunks()
6582 nFree -= nDirtyCacheChunks; in yaffs_GetNumberOfFreeChunks()
6584 nFree -= ((dev->nReservedBlocks + 1) * dev->nChunksPerBlock); in yaffs_GetNumberOfFreeChunks()
[all …]
/external/chromium_org/third_party/sqlite/src/ext/fts3/
Dfts3_snippet.c844 int nFree = 0; in fts3ExprGlobalHitsCb() local
845 int rc = sqlite3Fts3ExprLoadFtDoclist(pCsr, pExpr, &pFree, &nFree); in fts3ExprGlobalHitsCb()
848 pEnd = &pFree[nFree]; in fts3ExprGlobalHitsCb()
/external/chromium_org/third_party/sqlite/amalgamation/
Dsqlite3.c35857 int nFree = 0;
35863 while( (nReq<0 || nFree<nReq) && ((p=pcache1.grp.pLruTail)!=0) ){
35864 nFree += pcache1MemSize(PGHDR1_TO_PAGE(p));
35871 return nFree;
46664 u16 nFree; /* Number of free bytes on the page */
48424 if( cbrk-iCellFirst!=pPage->nFree ){
48456 assert( pPage->nFree>=nByte );
48586 pPage->nFree = pPage->nFree + (u16)size;
48684 int nFree; /* Number of unused bytes on the page */
48741 nFree = data[hdr+7] + top;
[all …]
/external/sqlite/dist/orig/
Dsqlite3.c37819 int nFree = 0;
37825 while( (nReq<0 || nFree<nReq) && ((p=pcache1.grp.pLruTail)!=0) ){
37826 nFree += pcache1MemSize(p->page.pBuf);
37828 nFree += sqlite3MemSize(p);
37836 return nFree;
48721 u16 nFree; /* Number of free bytes on the page */
50497 if( cbrk-iCellFirst!=pPage->nFree ){
50529 assert( pPage->nFree>=nByte );
50659 pPage->nFree = pPage->nFree + (u16)size;
50758 int nFree; /* Number of unused bytes on the page */
[all …]
/external/sqlite/dist/
Dsqlite3.c37847 int nFree = 0;
37853 while( (nReq<0 || nFree<nReq) && ((p=pcache1.grp.pLruTail)!=0) ){
37854 nFree += pcache1MemSize(p->page.pBuf);
37856 nFree += sqlite3MemSize(p);
37864 return nFree;
48749 u16 nFree; /* Number of free bytes on the page */
50525 if( cbrk-iCellFirst!=pPage->nFree ){
50557 assert( pPage->nFree>=nByte );
50687 pPage->nFree = pPage->nFree + (u16)size;
50786 int nFree; /* Number of unused bytes on the page */
[all …]