Lines Matching refs:CR
93 if (regs->CR & FLASH_CR_LOCK) { in write_value()
113 regs->CR &= CR_PSIZE_MASK; in write_value()
114 regs->CR |= FLASH_PROGRAM_SIZE; in write_value()
115 regs->CR |= FLASH_CR_PG; in write_value()
118 tmp = regs->CR; in write_value()
123 regs->CR &= (~FLASH_CR_PG); in write_value()
144 if (regs->CR & FLASH_CR_LOCK) { in erase_sector()
171 regs->CR &= CR_PSIZE_MASK; in erase_sector()
172 regs->CR |= FLASH_PROGRAM_SIZE; in erase_sector()
174 regs->CR &= ~FLASH_CR_SNB; in erase_sector()
175 regs->CR |= FLASH_CR_SER | (sector << 3); in erase_sector()
176 regs->CR |= FLASH_CR_STRT; in erase_sector()
179 tmp = regs->CR; in erase_sector()
182 regs->CR &= ~(FLASH_CR_SER | FLASH_CR_SNB); in erase_sector()