Lines Matching refs:Crc32

1779     crc = Crc32( ( uint8_t* ) &nvmData->Crypto, sizeof( nvmData->Crypto ) -  in LoRaMacHandleNvm()
1780 sizeof( nvmData->Crypto.Crc32 ) ); in LoRaMacHandleNvm()
1781 if( crc != nvmData->Crypto.Crc32 ) in LoRaMacHandleNvm()
1783 nvmData->Crypto.Crc32 = crc; in LoRaMacHandleNvm()
1788 crc = Crc32( ( uint8_t* ) &nvmData->MacGroup1, sizeof( nvmData->MacGroup1 ) - in LoRaMacHandleNvm()
1789 sizeof( nvmData->MacGroup1.Crc32 ) ); in LoRaMacHandleNvm()
1790 if( crc != nvmData->MacGroup1.Crc32 ) in LoRaMacHandleNvm()
1792 nvmData->MacGroup1.Crc32 = crc; in LoRaMacHandleNvm()
1797 crc = Crc32( ( uint8_t* ) &nvmData->MacGroup2, sizeof( nvmData->MacGroup2 ) - in LoRaMacHandleNvm()
1798 sizeof( nvmData->MacGroup2.Crc32 ) ); in LoRaMacHandleNvm()
1799 if( crc != nvmData->MacGroup2.Crc32 ) in LoRaMacHandleNvm()
1801 nvmData->MacGroup2.Crc32 = crc; in LoRaMacHandleNvm()
1806 crc = Crc32( ( uint8_t* ) &nvmData->SecureElement, sizeof( nvmData->SecureElement ) - in LoRaMacHandleNvm()
1807 sizeof( nvmData->SecureElement.Crc32 ) ); in LoRaMacHandleNvm()
1808 if( crc != nvmData->SecureElement.Crc32 ) in LoRaMacHandleNvm()
1810 nvmData->SecureElement.Crc32 = crc; in LoRaMacHandleNvm()
1815 crc = Crc32( ( uint8_t* ) &nvmData->RegionGroup1, sizeof( nvmData->RegionGroup1 ) - in LoRaMacHandleNvm()
1816 sizeof( nvmData->RegionGroup1.Crc32 ) ); in LoRaMacHandleNvm()
1817 if( crc != nvmData->RegionGroup1.Crc32 ) in LoRaMacHandleNvm()
1819 nvmData->RegionGroup1.Crc32 = crc; in LoRaMacHandleNvm()
1823 crc = Crc32( ( uint8_t* ) &nvmData->RegionGroup2, sizeof( nvmData->RegionGroup2 ) - in LoRaMacHandleNvm()
1824 sizeof( nvmData->RegionGroup2.Crc32 ) ); in LoRaMacHandleNvm()
1825 if( crc != nvmData->RegionGroup2.Crc32 ) in LoRaMacHandleNvm()
1827 nvmData->RegionGroup2.Crc32 = crc; in LoRaMacHandleNvm()
1832 crc = Crc32( ( uint8_t* ) &nvmData->ClassB, sizeof( nvmData->ClassB ) - in LoRaMacHandleNvm()
1833 sizeof( nvmData->ClassB.Crc32 ) ); in LoRaMacHandleNvm()
1834 if( crc != nvmData->ClassB.Crc32 ) in LoRaMacHandleNvm()
1836 nvmData->ClassB.Crc32 = crc; in LoRaMacHandleNvm()
3477 crc = Crc32( ( uint8_t* ) &nvm->Crypto, sizeof( nvm->Crypto ) - in RestoreNvmData()
3478 sizeof( nvm->Crypto.Crc32 ) ); in RestoreNvmData()
3479 if( crc == nvm->Crypto.Crc32 ) in RestoreNvmData()
3486 crc = Crc32( ( uint8_t* ) &nvm->MacGroup1, sizeof( nvm->MacGroup1 ) - in RestoreNvmData()
3487 sizeof( nvm->MacGroup1.Crc32 ) ); in RestoreNvmData()
3488 if( crc == nvm->MacGroup1.Crc32 ) in RestoreNvmData()
3495 crc = Crc32( ( uint8_t* ) &nvm->MacGroup2, sizeof( nvm->MacGroup2 ) - in RestoreNvmData()
3496 sizeof( nvm->MacGroup2.Crc32 ) ); in RestoreNvmData()
3497 if( crc == nvm->MacGroup2.Crc32 ) in RestoreNvmData()
3516 crc = Crc32( ( uint8_t* ) &nvm->SecureElement, sizeof( nvm->SecureElement ) - in RestoreNvmData()
3517 sizeof( nvm->SecureElement.Crc32 ) ); in RestoreNvmData()
3518 if( crc == nvm->SecureElement.Crc32 ) in RestoreNvmData()
3525 crc = Crc32( ( uint8_t* ) &nvm->RegionGroup1, sizeof( nvm->RegionGroup1 ) - in RestoreNvmData()
3526 sizeof( nvm->RegionGroup1.Crc32 ) ); in RestoreNvmData()
3527 if( crc == nvm->RegionGroup1.Crc32 ) in RestoreNvmData()
3534 crc = Crc32( ( uint8_t* ) &nvm->RegionGroup2, sizeof( nvm->RegionGroup2 ) - in RestoreNvmData()
3535 sizeof( nvm->RegionGroup2.Crc32 ) ); in RestoreNvmData()
3536 if( crc == nvm->RegionGroup2.Crc32 ) in RestoreNvmData()
3542 crc = Crc32( ( uint8_t* ) &nvm->ClassB, sizeof( nvm->ClassB ) - in RestoreNvmData()
3543 sizeof( nvm->ClassB.Crc32 ) ); in RestoreNvmData()
3544 if( crc == nvm->ClassB.Crc32 ) in RestoreNvmData()