Home
last modified time | relevance | path

Searched refs:SOC_NV_FLASH_SIZE (Results 1 – 8 of 8) sorted by relevance

/Zephyr-latest/drivers/flash/
Dflash_gd32_v2.c24 #if (PRE_KB(512) >= SOC_NV_FLASH_SIZE)
25 #define GD32_NV_FLASH_V2_BANK0_SIZE SOC_NV_FLASH_SIZE
30 #define GD32_NV_FLASH_V2_BANK1_SIZE (SOC_NV_FLASH_SIZE - KB(512))
40 #if (PRE_KB(256) >= SOC_NV_FLASH_SIZE)
41 #define GD32_NV_FLASH_V2_BANK0_SIZE SOC_NV_FLASH_SIZE
46 #define GD32_NV_FLASH_V2_BANK1_SIZE (SOC_NV_FLASH_SIZE - KB(256))
304 if ((offset > SOC_NV_FLASH_SIZE) || in flash_gd32_valid_range()
305 ((offset + len) > SOC_NV_FLASH_SIZE)) { in flash_gd32_valid_range()
Dflash_gd32_v3.c23 #if (PRE_KB(512) == SOC_NV_FLASH_SIZE)
29 #elif (PRE_KB(1024) == SOC_NV_FLASH_SIZE)
35 #elif (PRE_KB(2048) == SOC_NV_FLASH_SIZE)
44 #elif (PRE_KB(3072) == SOC_NV_FLASH_SIZE)
98 if ((offset > SOC_NV_FLASH_SIZE) || in flash_gd32_valid_range()
99 ((offset + len) > SOC_NV_FLASH_SIZE)) { in flash_gd32_valid_range()
Dflash_stm32l4x.c141 #define SOC_NV_FLASH_SIZE DT_REG_SIZE(DT_INST(0, soc_nv_flash)) macro
152 pages_per_bank = SOC_NV_FLASH_SIZE >> 11; in erase_page()
157 (SOC_NV_FLASH_SIZE == (1024*1024))) { in erase_page()
159 pages_per_bank = SOC_NV_FLASH_SIZE >> 12; in erase_page()
169 pages_per_bank = SOC_NV_FLASH_SIZE >> 13; in erase_page()
Dflash_gd32_v1.c36 .pages_count = SOC_NV_FLASH_SIZE / GD32_NV_FLASH_V1_PAGE_SIZE
67 if ((offset > SOC_NV_FLASH_SIZE) || in flash_gd32_valid_range()
68 ((offset + len) > SOC_NV_FLASH_SIZE)) { in flash_gd32_valid_range()
Dflash_ambiq.c20 #define SOC_NV_FLASH_SIZE DT_REG_SIZE(SOC_NV_FLASH_NODE) macro
60 if ((offset < 0) || offset >= SOC_NV_FLASH_SIZE || (SOC_NV_FLASH_SIZE - offset) < len) { in flash_ambiq_valid_range()
200 .pages_count = SOC_NV_FLASH_SIZE / FLASH_ERASE_BLOCK_SIZE,
Dflash_si32.c25 #define SOC_NV_FLASH_SIZE DT_REG_SIZE(SOC_NV_FLASH_NODE) macro
50 if ((offset > SOC_NV_FLASH_SIZE) || ((offset + size) > SOC_NV_FLASH_SIZE)) { in flash_si32_valid_range()
169 .pages_count = SOC_NV_FLASH_SIZE / SOC_NV_FLASH_ERASE_BLOCK_SIZE,
Dflash_gd32.c34 if ((offset > SOC_NV_FLASH_SIZE) || in flash_gd32_read()
35 ((offset + len) > SOC_NV_FLASH_SIZE)) { in flash_gd32_read()
Dflash_gd32.h15 #define SOC_NV_FLASH_SIZE DT_REG_SIZE(SOC_NV_FLASH_NODE) macro