Lines Matching refs:CR
87 if (regs->CR & FLASH_CR_LOCK) { in write_dword()
121 regs->CR |= FLASH_CR_PG; in write_dword()
124 tmp = regs->CR; in write_dword()
134 regs->CR &= (~FLASH_CR_PG); in write_dword()
156 if (regs->CR & FLASH_CR_LOCK) { in erase_page()
174 regs->CR &= ~FLASH_CR_BKER_Msk; in erase_page()
179 regs->CR &= ~FLASH_CR_BKER_Msk; in erase_page()
184 regs->CR |= FLASH_CR_BKER; in erase_page()
189 regs->CR |= FLASH_CR_BKER; in erase_page()
202 regs->CR |= FLASH_CR_PER; in erase_page()
203 regs->CR &= ~FLASH_CR_PNB_Msk; in erase_page()
204 regs->CR |= (page << FLASH_CR_PNB_Pos); in erase_page()
207 regs->CR |= FLASH_CR_STRT; in erase_page()
210 tmp = regs->CR; in erase_page()
218 regs->CR &= ~(FLASH_CR_PER | FLASH_CR_BKER); in erase_page()
220 regs->CR &= ~(FLASH_CR_PER); in erase_page()
264 if (regs->CR & FLASH_CR_OPTLOCK) { in flash_stm32_option_bytes_write()
278 regs->CR |= FLASH_CR_OPTSTRT; in flash_stm32_option_bytes_write()