Searched refs:SOC_NV_FLASH_SIZE (Results 1 – 8 of 8) sorted by relevance
24 #if (PRE_KB(512) >= SOC_NV_FLASH_SIZE)25 #define GD32_NV_FLASH_V2_BANK0_SIZE SOC_NV_FLASH_SIZE30 #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_SIZE46 #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()
23 #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()
141 #define SOC_NV_FLASH_SIZE DT_REG_SIZE(DT_INST(0, soc_nv_flash)) macro152 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()
36 .pages_count = SOC_NV_FLASH_SIZE / GD32_NV_FLASH_V1_PAGE_SIZE67 if ((offset > SOC_NV_FLASH_SIZE) || in flash_gd32_valid_range()68 ((offset + len) > SOC_NV_FLASH_SIZE)) { in flash_gd32_valid_range()
20 #define SOC_NV_FLASH_SIZE DT_REG_SIZE(SOC_NV_FLASH_NODE) macro60 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,
25 #define SOC_NV_FLASH_SIZE DT_REG_SIZE(SOC_NV_FLASH_NODE) macro50 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,
34 if ((offset > SOC_NV_FLASH_SIZE) || in flash_gd32_read()35 ((offset + len) > SOC_NV_FLASH_SIZE)) { in flash_gd32_read()
15 #define SOC_NV_FLASH_SIZE DT_REG_SIZE(SOC_NV_FLASH_NODE) macro