Home
last modified time | relevance | path

Searched refs:nNewSectorCount (Results 1 – 2 of 2) sorted by relevance

/hardware/ti/omap4xxx/security/tf_daemon/
Ddelegation_client.c734 static TEEC_Result partitionSetSize(uint32_t nPartitionID, uint32_t nNewSectorCount) in partitionSetSize() argument
755 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()
/hardware/ti/omap4-aah/security/tf_daemon/
Ddelegation_client.c852 static TEEC_Result partitionSetSize(uint32_t nPartitionID, uint32_t nNewSectorCount) in partitionSetSize() argument
873 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()