Lines Matching defs:cbCluster
185 uint32_t cbCluster;
314 pHeader->u32ClusterSize = RT_H2LE_U32(pImage->cbCluster);
315 pHeader->u32TableSize = RT_H2LE_U32(pImage->cbTable / pImage->cbCluster);
694 cClusterBits = qedGetPowerOfTwo(pImage->cbCluster);
699 pImage->fOffsetMask = ((uint64_t)pImage->cbCluster - 1);
737 return cClusters * pImage->cbCluster;
749 return cb / pImage->cbCluster + (cb % pImage->cbCluster ? 1 : 0);
764 pImage->cbImage += cClusters*pImage->cbCluster;
825 Assert(!(pImage->cbTable % pImage->cbCluster));
874 Assert(!(pImage->cbTable % pImage->cbCluster));
916 * @param cbCluster The cluster size in bytes.
918 DECLINLINE(bool) qedIsClusterOffsetValid(uint64_t offCluster, uint64_t cbFile, size_t cbCluster)
920 return (offCluster <= cbFile - cbCluster)
921 && !(offCluster & (cbCluster - 1));
931 * @param cbCluster The cluster size in bytes.
933 DECLINLINE(bool) qedIsTblOffsetValid(uint64_t offTbl, uint64_t cbFile, size_t cbTable, size_t cbCluster)
936 && !(offTbl & (cbCluster - 1));
983 pImage->cbCluster = pHeader->u32ClusterSize;
1255 pImage->cbCluster = Header.u32ClusterSize;
1256 pImage->cbTable = Header.u32TableSize * pImage->cbCluster;
1345 pImage->cbCluster = QED_CLUSTER_SIZE_DEFAULT;
1349 pImage->cbImage = (1 * pImage->cbCluster) + pImage->cbTable; /* Header + L1 table size. */
1813 cbToRead = RT_MIN(cbToRead, pImage->cbCluster - offCluster);
1872 cbToWrite = RT_MIN(cbToWrite, pImage->cbCluster - offCluster);
1882 if ( cbToWrite == pImage->cbCluster
2002 *pcbPostRead = pImage->cbCluster - cbToWrite - *pcbPreRead;
2549 offData + pImage->cbCluster);
2593 if (qedByte2Cluster(pImage, pImage->cbTable)*pImage->cTableEntries*pImage->cTableEntries*pImage->cbCluster < cbSize)