Lines Matching full:page
110 int page; in erase_page() local
131 page = offset / STM32G0_FLASH_PAGE_SIZE; in erase_page()
136 /* big page-nr w/o swap or small page-nr w/ swap indicate bank2 */ in erase_page()
137 if ((page >= STM32G0_PAGES_PER_BANK) != swap_enabled) { in erase_page()
138 page = (page % STM32G0_PAGES_PER_BANK) + STM32G0_BANK2_START_PAGE_NR; in erase_page()
140 LOG_DBG("Erase page %d on bank 2", page); in erase_page()
142 page = page % STM32G0_PAGES_PER_BANK; in erase_page()
144 LOG_DBG("Erase page %d on bank 1", page); in erase_page()
148 /* Set the PER bit and select the page you wish to erase */ in erase_page()
151 tmp |= ((page << FLASH_CR_PNB_Pos) & FLASH_CR_PNB_Msk); in erase_page()
201 * Only the "physical" flash page-NRs are not continuous on those SoCs.
202 * As a result the page numbers used in the zephyr flash api differs
203 * from the "physical" flash page number.
204 * The first is equal to the address offset divided by the page size, while
206 * As a result only a single homogeneous flash page layout needs to be defined.