Home
last modified time | relevance | path

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

/external/u-boot/drivers/mtd/spi/
Dspi_flash.c904 u8 status_old, status_new; in stm_lock() local
940 status_new = (status_old & ~mask) | val; in stm_lock()
943 if ((status_new & mask) <= (status_old & mask)) in stm_lock()
946 write_sr(flash, status_new); in stm_lock()
958 uint8_t status_old, status_new; in stm_unlock() local
990 status_new = (status_old & ~mask) | val; in stm_unlock()
993 if ((status_new & mask) >= (status_old & mask)) in stm_unlock()
996 write_sr(flash, status_new); in stm_unlock()