Lines Matching refs:NSCR
171 if (regs->NSCR & FLASH_STM32_NSLOCK) { in write_nwords()
205 regs->NSCR |= FLASH_STM32_NSPG; in write_nwords()
208 tmp = regs->NSCR; in write_nwords()
219 regs->NSCR &= (~FLASH_STM32_NSPG); in write_nwords()
232 if (regs->NSCR & FLASH_STM32_NSLOCK) { in erase_page()
251 regs->NSCR &= ~FLASH_STM32_NSBKER_MSK; in erase_page()
256 regs->NSCR &= ~FLASH_STM32_NSBKER_MSK; in erase_page()
261 regs->NSCR |= FLASH_STM32_NSBKER; in erase_page()
266 regs->NSCR |= FLASH_STM32_NSBKER; in erase_page()
279 regs->NSCR |= FLASH_STM32_NSPER; in erase_page()
280 regs->NSCR &= ~FLASH_STM32_NSPNB_MSK; in erase_page()
281 regs->NSCR |= (page << FLASH_STM32_NSPNB_POS); in erase_page()
284 regs->NSCR |= FLASH_STM32_NSSTRT; in erase_page()
287 tmp = regs->NSCR; in erase_page()
293 regs->NSCR &= ~(FLASH_STM32_NSPER | FLASH_STM32_NSBKER); in erase_page()
295 regs->NSCR &= ~(FLASH_STM32_NSPER); in erase_page()