Lines Matching refs:status_new
376 uint8_t status_old, status_new; in stm_lock() local
382 status_new = status_old | SR_BP2 | SR_BP1 | SR_BP0; in stm_lock()
384 status_new = (status_old & ~SR_BP0) | SR_BP2 | SR_BP1; in stm_lock()
386 status_new = (status_old & ~SR_BP1) | SR_BP2 | SR_BP0; in stm_lock()
388 status_new = (status_old & ~(SR_BP0 | SR_BP1)) | SR_BP2; in stm_lock()
390 status_new = (status_old & ~SR_BP2) | SR_BP1 | SR_BP0; in stm_lock()
392 status_new = (status_old & ~(SR_BP2 | SR_BP0)) | SR_BP1; in stm_lock()
394 status_new = (status_old & ~(SR_BP2 | SR_BP1)) | SR_BP0; in stm_lock()
397 if ((status_new & (SR_BP2 | SR_BP1 | SR_BP0)) > in stm_lock()
400 ret = write_sr(nor, status_new); in stm_lock()
410 uint8_t status_old, status_new; in stm_unlock() local
416 status_new = status_old & ~(SR_BP2 | SR_BP1 | SR_BP0); in stm_unlock()
418 status_new = (status_old & ~(SR_BP2 | SR_BP1)) | SR_BP0; in stm_unlock()
420 status_new = (status_old & ~(SR_BP2 | SR_BP0)) | SR_BP1; in stm_unlock()
422 status_new = (status_old & ~SR_BP2) | SR_BP1 | SR_BP0; in stm_unlock()
424 status_new = (status_old & ~(SR_BP0 | SR_BP1)) | SR_BP2; in stm_unlock()
426 status_new = (status_old & ~SR_BP1) | SR_BP2 | SR_BP0; in stm_unlock()
428 status_new = (status_old & ~SR_BP0) | SR_BP2 | SR_BP1; in stm_unlock()
431 if ((status_new & (SR_BP2 | SR_BP1 | SR_BP0)) < in stm_unlock()
434 ret = write_sr(nor, status_new); in stm_unlock()