Lines Matching refs:stm32g4_flash_layout
337 static struct flash_pages_layout stm32g4_flash_layout[3]; in flash_stm32_page_layout() local
339 if (stm32g4_flash_layout[0].pages_count == 0) { in flash_stm32_page_layout()
341 stm32g4_flash_layout[0].pages_count = PAGES_PER_BANK; in flash_stm32_page_layout()
342 stm32g4_flash_layout[0].pages_size = FLASH_PAGE_SIZE; in flash_stm32_page_layout()
344 stm32g4_flash_layout[1].pages_count = 1; in flash_stm32_page_layout()
345 stm32g4_flash_layout[1].pages_size = BANK2_OFFSET in flash_stm32_page_layout()
348 stm32g4_flash_layout[2].pages_count = PAGES_PER_BANK; in flash_stm32_page_layout()
349 stm32g4_flash_layout[2].pages_size = FLASH_PAGE_SIZE; in flash_stm32_page_layout()
352 static struct flash_pages_layout stm32g4_flash_layout[1]; in flash_stm32_page_layout() local
354 if (stm32g4_flash_layout[0].pages_count == 0) { in flash_stm32_page_layout()
355 stm32g4_flash_layout[0].pages_count = FLASH_SIZE in flash_stm32_page_layout()
357 stm32g4_flash_layout[0].pages_size = FLASH_PAGE_SIZE; in flash_stm32_page_layout()
361 *layout = stm32g4_flash_layout; in flash_stm32_page_layout()
362 *layout_size = ARRAY_SIZE(stm32g4_flash_layout); in flash_stm32_page_layout()