Searched refs:nNewSectorCount (Results 1 – 2 of 2) sorted by relevance
734 static TEEC_Result partitionSetSize(uint32_t nPartitionID, uint32_t nNewSectorCount) in partitionSetSize() argument755 if (nNewSectorCount > nCurrentSectorCount) in partitionSetSize()763 nAddedBytesCount = (nNewSectorCount-nCurrentSectorCount)*g_nSectorSize; in partitionSetSize()773 else if (nNewSectorCount < nCurrentSectorCount) in partitionSetSize()778 result = ftruncate(fileno(pFile),nNewSectorCount * g_nSectorSize); in partitionSetSize()784 result = _chsize(_fileno(pFile),nNewSectorCount * g_nSectorSize); in partitionSetSize()
852 static TEEC_Result partitionSetSize(uint32_t nPartitionID, uint32_t nNewSectorCount) in partitionSetSize() argument873 if (nNewSectorCount > nCurrentSectorCount) in partitionSetSize()881 nAddedBytesCount = (nNewSectorCount-nCurrentSectorCount)*g_nSectorSize; in partitionSetSize()891 else if (nNewSectorCount < nCurrentSectorCount) in partitionSetSize()896 result = ftruncate(fileno(pFile),nNewSectorCount * g_nSectorSize); in partitionSetSize()902 result = _chsize(_fileno(pFile),nNewSectorCount * g_nSectorSize); in partitionSetSize()