Lines Matching refs:CR
81 if (regs->CR & FLASH_CR_LOCK) { in write_dword()
114 regs->CR |= FLASH_CR_PG; in write_dword()
117 tmp = regs->CR; in write_dword()
127 regs->CR &= (~FLASH_CR_PG); in write_dword()
178 if (regs->CR & FLASH_CR_LOCK) { in erase_page()
191 regs->CR |= FLASH_CR_PER; in erase_page()
193 regs->CR &= ~FLASH_CR_BKER_Msk; in erase_page()
196 regs->CR |= FLASH_CR_BKER; in erase_page()
199 regs->CR &= ~FLASH_CR_PNB_Msk; in erase_page()
200 regs->CR |= ((page % pages_per_bank) << 3); in erase_page()
203 regs->CR |= FLASH_CR_STRT; in erase_page()
206 tmp = regs->CR; in erase_page()
211 regs->CR &= ~FLASH_CR_PER; in erase_page()
255 if (regs->CR & FLASH_CR_OPTLOCK) { in flash_stm32_option_bytes_write()
269 regs->CR |= FLASH_CR_OPTSTRT; in flash_stm32_option_bytes_write()