Lines Matching refs:pgsz
150 int pgsz; /* Page size */ member
877 static void tvfsAllocPage(TestvfsBuffer *p, int iPage, int pgsz){ in tvfsAllocPage() argument
880 p->aPage[iPage] = (u8 *)ckalloc(pgsz); in tvfsAllocPage()
881 memset(p->aPage[iPage], 0, pgsz); in tvfsAllocPage()
882 p->pgsz = pgsz; in tvfsAllocPage()
889 int pgsz, /* Size of pages */ in tvfsShmMap() argument
899 return pReal->pMethods->xShmMap(pReal, iPage, pgsz, isWrite, pp); in tvfsShmMap()
913 Tcl_ListObjAppendElement(p->interp, pArg, Tcl_NewIntObj(pgsz)); in tvfsShmMap()
926 tvfsAllocPage(pFd->pShm, iPage, pgsz); in tvfsShmMap()
1152 int pgsz = pBuffer->pgsz; in testvfs_obj_cmd() local
1153 if( pgsz==0 ) pgsz = 65536; in testvfs_obj_cmd()
1154 for(i=0; i*pgsz<n; i++){ in testvfs_obj_cmd()
1155 int nByte = pgsz; in testvfs_obj_cmd()
1156 tvfsAllocPage(pBuffer, i, pgsz); in testvfs_obj_cmd()
1157 if( n-i*pgsz<pgsz ){ in testvfs_obj_cmd()
1160 memcpy(pBuffer->aPage[i], &a[i*pgsz], nByte); in testvfs_obj_cmd()
1166 int pgsz = pBuffer->pgsz; in testvfs_obj_cmd() local
1167 if( pgsz==0 ) pgsz = 65536; in testvfs_obj_cmd()
1168 Tcl_AppendObjToObj(pObj, Tcl_NewByteArrayObj(pBuffer->aPage[i], pgsz)); in testvfs_obj_cmd()