Lines Matching refs:sr
62 volatile uint32_t *sr; member
182 uint32_t sr; local
189 sr = regs->ISR;
190 if (sr & (FLASH_FLAG_SNECCERR)) {
197 if (sr & (FLASH_FLAG_DBECCERR)) {
206 if (sr & error_bank) {
211 sr = regs->SR1;
212 if (sr & (FLASH_FLAG_SNECCERR_BANK1 | FLASH_FLAG_DBECCERR_BANK1)) {
221 if (sr & error_bank1) {
223 LOG_ERR("Status Bank%d: 0x%08x", 1, sr);
228 sr = regs->SR2;
229 if (sr & (FLASH_FLAG_SNECCERR_BANK1 | FLASH_FLAG_DBECCERR_BANK1)) {
236 if (sr & error_bank2) {
245 if (sr & FLASH_FLAG_STRBERR_BANK2) {
249 LOG_ERR("Status Bank%d: 0x%08x", 2, sr);
297 sector.sr = ®s->SR1;
302 sector.sr = ®s->SR2;
306 sector.sr = ®s->SR1;
311 sector.sr = ®s->SR2;
316 sector.sr = NULL;
323 sector.sr = ®s->SR1;
328 sector.sr = NULL;
386 while (*(sector->sr) & FLASH_SR_QW) {