Lines Matching refs:CR
62 if (regs->CR & FLASH_CR_LOCK) { in write_byte()
72 regs->CR &= ~FLASH_CR_PSIZE; in write_byte()
73 regs->CR |= FLASH_PSIZE_BYTE; in write_byte()
74 regs->CR |= FLASH_CR_PG; in write_byte()
77 tmp = regs->CR; in write_byte()
85 regs->CR &= (~FLASH_CR_PG); in write_byte()
97 if (regs->CR & FLASH_CR_LOCK) { in erase_sector()
107 regs->CR &= ~FLASH_CR_SNB; in erase_sector()
108 regs->CR |= FLASH_CR_SER | (sector << 3); in erase_sector()
109 regs->CR |= FLASH_CR_STRT; in erase_sector()
112 tmp = regs->CR; in erase_sector()
119 regs->CR &= ~(FLASH_CR_SER | FLASH_CR_SNB); in erase_sector()