Home
last modified time | relevance | path

Searched refs:sector_addr (Results 1 – 20 of 20) sorted by relevance

/hal_nxp-3.5.0/mcux/mcux-sdk/components/flash/mflash/frdmk66f/
Dmflash_drv.c33 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
36 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
39 result = FLASH_Erase(&s_flashDriver, sector_addr, MFLASH_SECTOR_SIZE, kFLASH_ApiEraseKey); in mflash_drv_sector_erase()
40 DCACHE_InvalidateByRange(sector_addr, MFLASH_SECTOR_SIZE); in mflash_drv_sector_erase()
46 static int32_t mflash_drv_sector_program(uint32_t sector_addr, uint32_t *sector_data, uint32_t sect… in mflash_drv_sector_program() argument
49 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_program()
52 …result = FLASH_Program(&s_flashDriver, (uint32_t)sector_addr, (uint8_t *)sector_data, sector_data_… in mflash_drv_sector_program()
53 DCACHE_InvalidateByRange(sector_addr, sector_data_length); in mflash_drv_sector_program()
/hal_nxp-3.5.0/mcux/mcux-sdk/components/flash/mflash/frdmk64f/
Dmflash_drv.c32 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
35 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
38 result = FLASH_Erase(&s_flashDriver, sector_addr, MFLASH_SECTOR_SIZE, kFLASH_ApiEraseKey); in mflash_drv_sector_erase()
43 static int32_t mflash_drv_sector_program(uint32_t sector_addr, uint32_t *sector_data, uint32_t sect… in mflash_drv_sector_program() argument
46 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_program()
49 …result = FLASH_Program(&s_flashDriver, (uint32_t)sector_addr, (uint8_t *)sector_data, sector_data_… in mflash_drv_sector_program()
/hal_nxp-3.5.0/mcux/mcux-sdk/components/flash/mflash/lpc55s3x_flexspi/
Dmflash_drv.c40 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
42 assert(sector_addr >= FLASH_BASE_ADDR); in mflash_drv_sector_erase()
43 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
46 …return FLEXSPI_NorFlash_Erase(0, (flexspi_nor_config_t *)&flashConfig, (sector_addr - FLASH_BASE_A… in mflash_drv_sector_erase()
/hal_nxp-3.5.0/mcux/mcux-sdk/components/flash/mflash/lpc54s018m/
Dmflash_drv.c128 static int32_t mflash_drv_sector_erase_internal(uint32_t sector_addr) in mflash_drv_sector_erase_internal() argument
140 SPIFI_SetCommandAddress(MFLASH_SPIFI, sector_addr); in mflash_drv_sector_erase_internal()
160 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
162 return mflash_drv_sector_erase_internal(sector_addr); in mflash_drv_sector_erase()
/hal_nxp-3.5.0/mcux/mcux-sdk/components/flash/mflash/lpc54xxx/
Dmflash_drv.c128 static int32_t mflash_drv_sector_erase_internal(uint32_t sector_addr) in mflash_drv_sector_erase_internal() argument
140 SPIFI_SetCommandAddress(MFLASH_SPIFI, sector_addr); in mflash_drv_sector_erase_internal()
160 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
162 return mflash_drv_sector_erase_internal(sector_addr); in mflash_drv_sector_erase()
/hal_nxp-3.5.0/mcux/mcux-sdk/components/flash/mflash/mimxrt1170evkb/
Dmflash_drv.c354 static int32_t mflash_drv_sector_erase_internal(uint32_t sector_addr) in mflash_drv_sector_erase_internal() argument
361 status = flexspi_nor_flash_sector_erase(MFLASH_FLEXSPI, sector_addr); in mflash_drv_sector_erase_internal()
366 DCACHE_InvalidateByRange(MFLASH_BASE_ADDRESS + sector_addr, MFLASH_SECTOR_SIZE); in mflash_drv_sector_erase_internal()
383 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
385 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
388 return mflash_drv_sector_erase_internal(sector_addr); in mflash_drv_sector_erase()
/hal_nxp-3.5.0/mcux/mcux-sdk/components/flash/mflash/mimxrt1160/
Dmflash_drv.c369 static int32_t mflash_drv_sector_erase_internal(uint32_t sector_addr) in mflash_drv_sector_erase_internal() argument
376 status = flexspi_nor_flash_sector_erase(MFLASH_FLEXSPI, sector_addr); in mflash_drv_sector_erase_internal()
381 DCACHE_InvalidateByRange(MFLASH_BASE_ADDRESS + sector_addr, MFLASH_SECTOR_SIZE); in mflash_drv_sector_erase_internal()
398 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
400 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
403 return mflash_drv_sector_erase_internal(sector_addr); in mflash_drv_sector_erase()
/hal_nxp-3.5.0/mcux/mcux-sdk/components/flash/mflash/mimxrt685/
Dmflash_drv.c394 static int32_t mflash_drv_sector_erase_internal(uint32_t sector_addr) in mflash_drv_sector_erase_internal() argument
401 status = flexspi_nor_flash_sector_erase(MFLASH_FLEXSPI, sector_addr); in mflash_drv_sector_erase_internal()
406 DCACHE_InvalidateByRange(MFLASH_BASE_ADDRESS + sector_addr, MFLASH_SECTOR_SIZE); in mflash_drv_sector_erase_internal()
423 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
425 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
428 return mflash_drv_sector_erase_internal(sector_addr); in mflash_drv_sector_erase()
/hal_nxp-3.5.0/mcux/mcux-sdk/components/flash/mflash/mimxrt1021/
Dmflash_drv.c366 static int32_t mflash_drv_sector_erase_internal(uint32_t sector_addr) in mflash_drv_sector_erase_internal() argument
373 status = flexspi_nor_flash_sector_erase(MFLASH_FLEXSPI, sector_addr); in mflash_drv_sector_erase_internal()
378 DCACHE_InvalidateByRange(MFLASH_BASE_ADDRESS + sector_addr, MFLASH_SECTOR_SIZE); in mflash_drv_sector_erase_internal()
395 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
397 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
400 return mflash_drv_sector_erase_internal(sector_addr); in mflash_drv_sector_erase()
/hal_nxp-3.5.0/mcux/mcux-sdk/components/flash/mflash/mimxrt1024/
Dmflash_drv.c366 static int32_t mflash_drv_sector_erase_internal(uint32_t sector_addr) in mflash_drv_sector_erase_internal() argument
373 status = flexspi_nor_flash_sector_erase(MFLASH_FLEXSPI, sector_addr); in mflash_drv_sector_erase_internal()
378 DCACHE_InvalidateByRange(MFLASH_BASE_ADDRESS + sector_addr, MFLASH_SECTOR_SIZE); in mflash_drv_sector_erase_internal()
395 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
397 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
400 return mflash_drv_sector_erase_internal(sector_addr); in mflash_drv_sector_erase()
/hal_nxp-3.5.0/mcux/mcux-sdk/components/flash/mflash/mimxrt1170/
Dmflash_drv.c369 static int32_t mflash_drv_sector_erase_internal(uint32_t sector_addr) in mflash_drv_sector_erase_internal() argument
376 status = flexspi_nor_flash_sector_erase(MFLASH_FLEXSPI, sector_addr); in mflash_drv_sector_erase_internal()
381 DCACHE_InvalidateByRange(MFLASH_BASE_ADDRESS + sector_addr, MFLASH_SECTOR_SIZE); in mflash_drv_sector_erase_internal()
398 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
400 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
403 return mflash_drv_sector_erase_internal(sector_addr); in mflash_drv_sector_erase()
/hal_nxp-3.5.0/mcux/mcux-sdk/components/flash/mflash/mimxrt595/
Dmflash_drv.c380 static int32_t mflash_drv_sector_erase_internal(uint32_t sector_addr) in mflash_drv_sector_erase_internal() argument
387 status = flexspi_nor_flash_sector_erase(MFLASH_FLEXSPI, sector_addr); in mflash_drv_sector_erase_internal()
389 DCACHE_InvalidateByRange(MFLASH_BASE_ADDRESS + sector_addr, MFLASH_SECTOR_SIZE); in mflash_drv_sector_erase_internal()
406 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
408 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
411 return mflash_drv_sector_erase_internal(sector_addr); in mflash_drv_sector_erase()
/hal_nxp-3.5.0/mcux/mcux-sdk/components/flash/mflash/mimxrt685audevk/
Dmflash_drv.c387 static int32_t mflash_drv_sector_erase_internal(uint32_t sector_addr) in mflash_drv_sector_erase_internal() argument
394 status = flexspi_nor_flash_sector_erase(MFLASH_FLEXSPI, sector_addr); in mflash_drv_sector_erase_internal()
396 DCACHE_InvalidateByRange(MFLASH_BASE_ADDRESS + sector_addr, MFLASH_SECTOR_SIZE); in mflash_drv_sector_erase_internal()
413 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
415 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
418 return mflash_drv_sector_erase_internal(sector_addr); in mflash_drv_sector_erase()
/hal_nxp-3.5.0/mcux/mcux-sdk/components/flash/mflash/mimxrt1042/
Dmflash_drv.c366 static int32_t mflash_drv_sector_erase_internal(uint32_t sector_addr) in mflash_drv_sector_erase_internal() argument
373 status = flexspi_nor_flash_sector_erase(MFLASH_FLEXSPI, sector_addr); in mflash_drv_sector_erase_internal()
378 DCACHE_InvalidateByRange(MFLASH_BASE_ADDRESS + sector_addr, MFLASH_SECTOR_SIZE); in mflash_drv_sector_erase_internal()
395 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
397 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
400 return mflash_drv_sector_erase_internal(sector_addr); in mflash_drv_sector_erase()
/hal_nxp-3.5.0/mcux/mcux-sdk/components/flash/mflash/mimxrt1062/
Dmflash_drv.c366 static int32_t mflash_drv_sector_erase_internal(uint32_t sector_addr) in mflash_drv_sector_erase_internal() argument
373 status = flexspi_nor_flash_sector_erase(MFLASH_FLEXSPI, sector_addr); in mflash_drv_sector_erase_internal()
378 DCACHE_InvalidateByRange(MFLASH_BASE_ADDRESS + sector_addr, MFLASH_SECTOR_SIZE); in mflash_drv_sector_erase_internal()
395 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
397 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
400 return mflash_drv_sector_erase_internal(sector_addr); in mflash_drv_sector_erase()
/hal_nxp-3.5.0/mcux/mcux-sdk/components/flash/mflash/mimxrt1064/
Dmflash_drv.c366 static int32_t mflash_drv_sector_erase_internal(uint32_t sector_addr) in mflash_drv_sector_erase_internal() argument
373 status = flexspi_nor_flash_sector_erase(MFLASH_FLEXSPI, sector_addr); in mflash_drv_sector_erase_internal()
378 DCACHE_InvalidateByRange(MFLASH_BASE_ADDRESS + sector_addr, MFLASH_SECTOR_SIZE); in mflash_drv_sector_erase_internal()
395 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
397 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
400 return mflash_drv_sector_erase_internal(sector_addr); in mflash_drv_sector_erase()
/hal_nxp-3.5.0/mcux/mcux-sdk/components/flash/mflash/lpc55s3x/
Dmflash_drv.c48 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
50 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
53 return FLASH_Erase(&g_flash_instance, sector_addr, MFLASH_SECTOR_SIZE, kFLASH_ApiEraseKey); in mflash_drv_sector_erase()
/hal_nxp-3.5.0/mcux/mcux-sdk/components/flash/mflash/lpc55xxx/
Dmflash_drv.c48 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
50 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
53 return FLASH_Erase(&g_flash_instance, sector_addr, MFLASH_SECTOR_SIZE, kFLASH_ApiEraseKey); in mflash_drv_sector_erase()
/hal_nxp-3.5.0/mcux/mcux-sdk/components/flash/mflash/mimxrt1052/
Dmflash_drv.c327 static int32_t mflash_drv_sector_erase_internal(uint32_t sector_addr) in mflash_drv_sector_erase_internal() argument
334 status = flexspi_nor_flash_sector_erase(MFLASH_FLEXSPI, sector_addr); in mflash_drv_sector_erase_internal()
339 DCACHE_InvalidateByRange(MFLASH_BASE_ADDRESS + sector_addr, MFLASH_SECTOR_SIZE); in mflash_drv_sector_erase_internal()
356 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
358 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
361 return mflash_drv_sector_erase_internal(sector_addr); in mflash_drv_sector_erase()
/hal_nxp-3.5.0/mcux/mcux-sdk/components/flash/mflash/
Dmflash_common.h37 int32_t mflash_drv_sector_erase(uint32_t sector_addr);