Home
last modified time | relevance | path

Searched refs:status_new (Results 1 – 1 of 1) sorted by relevance

/linux-4.1.27/drivers/mtd/spi-nor/
Dspi-nor.c376 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()
[all …]