Home
last modified time | relevance | path

Searched refs:SPI_FLASH_MMU_PAGE_SIZE (Results 1 – 12 of 12) sorted by relevance

/hal_espressif-3.6.0/components/spi_flash/
Dflash_mmap.c147 int phys_page = src_addr / SPI_FLASH_MMU_PAGE_SIZE; in spi_flash_mmap()
148 int page_count = (size + SPI_FLASH_MMU_PAGE_SIZE - 1) / SPI_FLASH_MMU_PAGE_SIZE; in spi_flash_mmap()
184 if (pages[i] < 0 || pages[i]*SPI_FLASH_MMU_PAGE_SIZE >= g_rom_flashchip.chip_size) { in spi_flash_mmap_pages()
264 …_Invalidate_Addr(region_addr + (i - region_begin) * SPI_FLASH_MMU_PAGE_SIZE, SPI_FLASH_MMU_PAGE_SI… in spi_flash_mmap_pages()
277 temp_ptr = (void*) (region_addr + (start - region_begin) * SPI_FLASH_MMU_PAGE_SIZE); in spi_flash_mmap_pages()
409 …cache_page = (c - SOC_MMU_VADDR0_START_ADDR) / SPI_FLASH_MMU_PAGE_SIZE + SOC_MMU_DROM0_PAGES_START; in spi_flash_cache2phys()
417 …cache_page = (c - SOC_MMU_VADDR1_START_ADDR) / SPI_FLASH_MMU_PAGE_SIZE + SOC_MMU_IROM0_PAGES_START; in spi_flash_cache2phys()
434 uint32_t phys_offs = ((phys_page & SOC_MMU_ADDR_MASK) + offset) * SPI_FLASH_MMU_PAGE_SIZE; in spi_flash_cache2phys()
435 return phys_offs | (c & (SPI_FLASH_MMU_PAGE_SIZE-1)); in spi_flash_cache2phys()
440 uint32_t phys_page = phys_offs / SPI_FLASH_MMU_PAGE_SIZE; in spi_flash_phys2cache()
[all …]
Dflash_ops.c869 size_t map_src = src & ~(SPI_FLASH_MMU_PAGE_SIZE - 1); in spi_flash_read_encrypted()
/hal_espressif-3.6.0/components/spi_flash/test/
Dtest_mmap.c228 nopages=(end-start)/SPI_FLASH_MMU_PAGE_SIZE;
231 startpage=start/SPI_FLASH_MMU_PAGE_SIZE;
336 uint32_t flash_pages = spi_flash_get_chip_size() / SPI_FLASH_MMU_PAGE_SIZE;
339 printf("Mapping %x (+%x)\n", 0, free_pages * SPI_FLASH_MMU_PAGE_SIZE);
341 …ESP_ERROR_CHECK( spi_flash_mmap(0, free_pages * SPI_FLASH_MMU_PAGE_SIZE, SPI_FLASH_MMAP_DATA, &ptr…
397 const size_t test_size = 2 * SPI_FLASH_MMU_PAGE_SIZE;
427 TEST_ESP_OK( esp_partition_mmap(p, 0, SPI_FLASH_MMU_PAGE_SIZE,
433 TEST_ESP_OK( esp_partition_mmap(p, SPI_FLASH_MMU_PAGE_SIZE, SPI_FLASH_MMU_PAGE_SIZE,
449 TEST_ESP_OK(esp_partition_mmap(p, 0, SPI_FLASH_MMU_PAGE_SIZE,
452 TEST_ESP_OK(esp_partition_erase_range(p, 0, SPI_FLASH_MMU_PAGE_SIZE));
/hal_espressif-3.6.0/components/soc/esp32/include/soc/
Dmmu.h36 …(SOC_MMU_VADDR1_FIRST_USABLE_ADDR - SOC_MMU_VADDR1_START_ADDR) / SPI_FLASH_MMU_PAGE_SIZE + SOC_MMU…
/hal_espressif-3.6.0/components/soc/esp32c3/include/soc/
Dmmu.h37 …DR0_START_ADDR (SOC_DROM_LOW + (SOC_MMU_DROM0_PAGES_START * SPI_FLASH_MMU_PAGE_SIZE))
/hal_espressif-3.6.0/components/soc/esp32h2/include/soc/
Dmmu.h37 …DR0_START_ADDR (SOC_DROM_LOW + (SOC_MMU_DROM0_PAGES_START * SPI_FLASH_MMU_PAGE_SIZE))
/hal_espressif-3.6.0/components/soc/esp32s3/include/soc/
Dmmu.h37 …DR0_START_ADDR (SOC_DROM_LOW + (SOC_MMU_DROM0_PAGES_START * SPI_FLASH_MMU_PAGE_SIZE))
/hal_espressif-3.6.0/components/soc/esp32s2/include/soc/
Dmmu.h36 …(SOC_MMU_VADDR1_FIRST_USABLE_ADDR - SOC_MMU_VADDR1_START_ADDR) / SPI_FLASH_MMU_PAGE_SIZE + SOC_MMU…
/hal_espressif-3.6.0/components/spi_flash/include/
Desp_spi_flash.h34 #define SPI_FLASH_MMU_PAGE_SIZE 0x10000 /**< Flash cache MMU mapping page size */ macro
/hal_espressif-3.6.0/components/bootloader_support/src/
Desp_image_format.c564 … data_len = MIN(data_len_remain, ((free_page_count - offset_page) * SPI_FLASH_MMU_PAGE_SIZE)); in process_segment()
663 … && ((segment_data_offs % SPI_FLASH_MMU_PAGE_SIZE) != (load_addr % SPI_FLASH_MMU_PAGE_SIZE))) { in verify_segment_header()
Dbootloader_flash.c75 uint32_t src_page = src_addr & ~(SPI_FLASH_MMU_PAGE_SIZE - 1); in bootloader_mmap()
Dbootloader_utility.c915 …image_len = MIN(len, ((mmu_free_pages_count - mmu_page_offset) * SPI_FLASH_MMU_PAGE_SIZE)); /* Rea…