Lines Matching refs:ftfxConfig
47 config->ftfxConfig.flashDesc.type = (uint8_t)kFTFx_MemTypeFlexnvm; in FLEXNVM_Init()
48 config->ftfxConfig.flashDesc.index = 0U; in FLEXNVM_Init()
51 …config->ftfxConfig.opsConfig.addrAligment.blockWriteUnitSize = FSL_FEATURE_FLASH_FLEX_NVM_BLOCK_WR… in FLEXNVM_Init()
52 …config->ftfxConfig.opsConfig.addrAligment.sectorCmd = FSL_FEATURE_FLASH_FLEX_NVM_SECTOR_CMD_ADDR… in FLEXNVM_Init()
53 …config->ftfxConfig.opsConfig.addrAligment.sectionCmd = FSL_FEATURE_FLASH_FLEX_NVM_SECTION_CMD_ADD… in FLEXNVM_Init()
54 …config->ftfxConfig.opsConfig.addrAligment.resourceCmd = FSL_FEATURE_FLASH_FLEX_NVM_RESOURCE_CMD_AD… in FLEXNVM_Init()
55 …config->ftfxConfig.opsConfig.addrAligment.checkCmd = FSL_FEATURE_FLASH_FLEX_NVM_CHECK_CMD_ADDRE… in FLEXNVM_Init()
58 config->ftfxConfig.flashDesc.blockBase = FSL_FEATURE_FLASH_FLEX_NVM_START_ADDRESS; in FLEXNVM_Init()
60 config->ftfxConfig.flashDesc.aliasBlockBase = FSL_FEATURE_FLASH_FLEX_NVM_ALIAS_START_ADDRESS; in FLEXNVM_Init()
62 config->ftfxConfig.flashDesc.sectorSize = FSL_FEATURE_FLASH_FLEX_NVM_BLOCK_SECTOR_SIZE; in FLEXNVM_Init()
63 config->ftfxConfig.flashDesc.blockCount = FSL_FEATURE_FLASH_FLEX_NVM_BLOCK_COUNT; in FLEXNVM_Init()
66 FTFx_API_Init(&config->ftfxConfig); in FLEXNVM_Init()
68 returnCode = FTFx_API_UpdateFlexnvmPartitionStatus(&config->ftfxConfig); in FLEXNVM_Init()
89 return FTFx_CMD_Erase(&config->ftfxConfig, start, lengthInBytes, key); in FLEXNVM_DflashErase()
97 return FTFx_CMD_EraseAll(&config->ftfxConfig, key); in FLEXNVM_EraseAll()
106 return FTFx_CMD_EraseAllUnsecure(&config->ftfxConfig, key); in FLEXNVM_EraseAllUnsecure()
122 return FTFx_CMD_Program(&config->ftfxConfig, start, src, lengthInBytes); in FLEXNVM_DflashProgram()
139 return FTFx_CMD_ProgramSection(&config->ftfxConfig, start, src, lengthInBytes); in FLEXNVM_DflashProgramSection()
152 …return FTFx_CMD_ProgramPartition(&config->ftfxConfig, option, eepromDataSizeCode, flexnvmPartition… in FLEXNVM_ProgramPartition()
162 return FTFx_CMD_ReadResource(&config->ftfxConfig, start, dst, lengthInBytes, option); in FLEXNVM_ReadResource()
181 return FTFx_CMD_VerifyErase(&config->ftfxConfig, start, lengthInBytes, margin); in FLEXNVM_DflashVerifyErase()
189 return FTFx_CMD_VerifyEraseAll(&config->ftfxConfig, margin); in FLEXNVM_VerifyEraseAll()
210 …return FTFx_CMD_VerifyProgram(&config->ftfxConfig, start, lengthInBytes, expectedData, margin, fai… in FLEXNVM_DflashVerifyProgram()
219 return FTFx_REG_GetSecurityState(&config->ftfxConfig, state); in FLEXNVM_GetSecurityState()
227 return FTFx_CMD_SecurityBypass(&config->ftfxConfig, backdoorKey); in FLEXNVM_SecurityBypass()
236 return FTFx_CMD_SetFlexramFunction(&config->ftfxConfig, option); in FLEXNVM_SetFlexramFunction()
254 if ((start < config->ftfxConfig.flexramBlockBase) || in FLEXNVM_EepromWrite()
255 …((start + lengthInBytes) > (config->ftfxConfig.flexramBlockBase + config->ftfxConfig.eepromTotalSi… in FLEXNVM_EepromWrite()
267 …returnCode = FTFx_CMD_SetFlexramFunction(&config->ftfxConfig, kFTFx_FlexramFuncOptAvailableForEepr… in FLEXNVM_EepromWrite()
313 … returnCode = FTFx_CMD_SetFlexramFunction(&config->ftfxConfig, kFTFx_FlexramFuncOptAvailableAsRam); in FLEXNVM_EepromWrite()
333 …if ((config->ftfxConfig.flashDesc.totalSize == 0U) || (config->ftfxConfig.flashDesc.totalSize == 0… in FLEXNVM_DflashSetProtection()
361 …if ((config->ftfxConfig.flashDesc.totalSize == 0U) || (config->ftfxConfig.flashDesc.totalSize == 0… in FLEXNVM_DflashGetProtection()
382 … if ((config->ftfxConfig.eepromTotalSize == 0U) || (config->ftfxConfig.eepromTotalSize == 0xFFFFU)) in FLEXNVM_EepromSetProtection()
409 … if ((config->ftfxConfig.eepromTotalSize == 0U) || (config->ftfxConfig.eepromTotalSize == 0xFFFFU)) in FLEXNVM_EepromGetProtection()
436 *value = config->ftfxConfig.flashDesc.sectorSize; in FLEXNVM_GetProperty()
440 *value = config->ftfxConfig.flashDesc.totalSize; in FLEXNVM_GetProperty()
444 … *value = config->ftfxConfig.flashDesc.totalSize / config->ftfxConfig.flashDesc.blockCount; in FLEXNVM_GetProperty()
448 *value = config->ftfxConfig.flashDesc.blockCount; in FLEXNVM_GetProperty()
452 *value = config->ftfxConfig.flashDesc.blockBase; in FLEXNVM_GetProperty()
456 *value = config->ftfxConfig.flashDesc.aliasBlockBase; in FLEXNVM_GetProperty()
460 *value = config->ftfxConfig.flexramBlockBase; in FLEXNVM_GetProperty()
464 *value = config->ftfxConfig.flexramTotalSize; in FLEXNVM_GetProperty()
468 *value = config->ftfxConfig.eepromTotalSize; in FLEXNVM_GetProperty()
490 if (start >= config->ftfxConfig.flashDesc.blockBase) in flexnvm_convert_start_address()
492 …config->ftfxConfig.opsConfig.convertedAddress = start - config->ftfxConfig.flashDesc.blockBase + 0… in flexnvm_convert_start_address()
497 else if (start >= config->ftfxConfig.flashDesc.aliasBlockBase) in flexnvm_convert_start_address()
499 …config->ftfxConfig.opsConfig.convertedAddress = start - config->ftfxConfig.flashDesc.aliasBlockBas… in flexnvm_convert_start_address()