Home
last modified time | relevance | path

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

/hal_nxp-3.7.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.7.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.7.0/mcux/mcux-sdk/components/flash/mflash/mcxnx4x_fmu/
Dmflash_drv.c104 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
109 if ((sector_addr % MFLASH_SECTOR_SIZE) != 0) in mflash_drv_sector_erase()
129 *(uint32_t *)(sector_addr) = 0UL; in mflash_drv_sector_erase()
130 *(uint32_t *)(sector_addr + 0x04) = 0UL; in mflash_drv_sector_erase()
131 *(uint32_t *)(sector_addr + 0x08) = 0UL; in mflash_drv_sector_erase()
132 *(uint32_t *)(sector_addr + 0x0C) = 0UL; in mflash_drv_sector_erase()
/hal_nxp-3.7.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.7.0/mcux/mcux-sdk/components/flash/mflash/mcxnx4x_flexspi/
Dmflash_drv.c78 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
83 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
88 status = FLEXSPI_NorFlash_Erase(0, (flexspi_nor_config_t *)&flashConfig, sector_addr, in mflash_drv_sector_erase()
91 DCACHE_InvalidateByRange(MFLASH_BASE_ADDRESS + sector_addr, MFLASH_SECTOR_SIZE); in mflash_drv_sector_erase()
/hal_nxp-3.7.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.7.0/mcux/mcux-sdk/components/flash/mflash/mimxrt1170evkb/
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.7.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.7.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.7.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.7.0/mcux/mcux-sdk/components/flash/mflash/mimxrt1021/
Dmflash_drv.c378 static int32_t mflash_drv_sector_erase_internal(uint32_t sector_addr) in mflash_drv_sector_erase_internal() argument
385 status = flexspi_nor_flash_sector_erase(MFLASH_FLEXSPI, sector_addr); in mflash_drv_sector_erase_internal()
390 DCACHE_InvalidateByRange(MFLASH_BASE_ADDRESS + sector_addr, MFLASH_SECTOR_SIZE); in mflash_drv_sector_erase_internal()
407 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
409 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
412 return mflash_drv_sector_erase_internal(sector_addr); in mflash_drv_sector_erase()
/hal_nxp-3.7.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.7.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.7.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.7.0/mcux/mcux-sdk/components/flash/mflash/mimxrt1160/
Dmflash_drv.c381 static int32_t mflash_drv_sector_erase_internal(uint32_t sector_addr) in mflash_drv_sector_erase_internal() argument
388 status = flexspi_nor_flash_sector_erase(MFLASH_FLEXSPI, sector_addr); in mflash_drv_sector_erase_internal()
393 DCACHE_InvalidateByRange(MFLASH_BASE_ADDRESS + sector_addr, MFLASH_SECTOR_SIZE); in mflash_drv_sector_erase_internal()
410 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
412 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
415 return mflash_drv_sector_erase_internal(sector_addr); in mflash_drv_sector_erase()
/hal_nxp-3.7.0/mcux/mcux-sdk/components/flash/mflash/mimxrt1170/
Dmflash_drv.c381 static int32_t mflash_drv_sector_erase_internal(uint32_t sector_addr) in mflash_drv_sector_erase_internal() argument
388 status = flexspi_nor_flash_sector_erase(MFLASH_FLEXSPI, sector_addr); in mflash_drv_sector_erase_internal()
393 DCACHE_InvalidateByRange(MFLASH_BASE_ADDRESS + sector_addr, MFLASH_SECTOR_SIZE); in mflash_drv_sector_erase_internal()
410 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
412 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
415 return mflash_drv_sector_erase_internal(sector_addr); in mflash_drv_sector_erase()
/hal_nxp-3.7.0/mcux/mcux-sdk/components/flash/mflash/evkcmimxrt1060/
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.7.0/mcux/mcux-sdk/components/flash/mflash/rdrw612bga/
Dmflash_drv.c398 static int32_t mflash_drv_sector_erase_internal(uint32_t sector_addr) in mflash_drv_sector_erase_internal() argument
405 status = flexspi_nor_flash_sector_erase(MFLASH_FLEXSPI, sector_addr); in mflash_drv_sector_erase_internal()
407 DCACHE_InvalidateByRange(MFLASH_BASE_ADDRESS + sector_addr, MFLASH_SECTOR_SIZE); in mflash_drv_sector_erase_internal()
424 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
426 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
429 return mflash_drv_sector_erase_internal(sector_addr); in mflash_drv_sector_erase()
/hal_nxp-3.7.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.7.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.7.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.7.0/mcux/mcux-sdk/components/flash/mflash/mcxnx4x/
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.7.0/mcux/mcux-sdk/components/flash/mflash/lpc55s3x/
Dmflash_drv.c53 int32_t mflash_drv_sector_erase(uint32_t sector_addr) in mflash_drv_sector_erase() argument
55 if (0 == mflash_drv_is_sector_aligned(sector_addr)) in mflash_drv_sector_erase()
58 return FLASH_Erase(&g_flash_instance, sector_addr, MFLASH_SECTOR_SIZE, kFLASH_ApiEraseKey); in mflash_drv_sector_erase()
/hal_nxp-3.7.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.7.0/mcux/mcux-sdk/components/flash/mflash/
Dmflash_common.h37 int32_t mflash_drv_sector_erase(uint32_t sector_addr);