Lines Matching refs:NSCR
117 if (regs->NSCR & FLASH_STM32_NSLOCK) { in write_qword()
136 regs->NSCR |= FLASH_STM32_NSPG; in write_qword()
139 tmp = regs->NSCR; in write_qword()
151 regs->NSCR &= (~FLASH_STM32_NSPG); in write_qword()
164 if (regs->NSCR & FLASH_STM32_NSLOCK) { in erase_page()
179 regs->NSCR |= FLASH_STM32_NSPER; in erase_page()
180 regs->NSCR &= ~FLASH_STM32_NSPNB_MSK; in erase_page()
181 regs->NSCR |= (page << FLASH_STM32_NSPNB_POS); in erase_page()
184 regs->NSCR |= FLASH_STM32_NSSTRT; in erase_page()
187 tmp = regs->NSCR; in erase_page()
192 regs->NSCR &= ~(FLASH_STM32_NSPER); in erase_page()