Home
last modified time | relevance | path

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

/linux/drivers/mtd/spi-nor/
A Dswp.c158 int ret, status_old, status_new; in spi_nor_sr_lock() local
215 status_new = (status_old & ~mask & ~tb_mask) | val; in spi_nor_sr_lock()
218 status_new |= SR_SRWD; in spi_nor_sr_lock()
221 status_new |= tb_mask; in spi_nor_sr_lock()
224 if (status_new == status_old) in spi_nor_sr_lock()
228 if ((status_new & mask) < (status_old & mask)) in spi_nor_sr_lock()
243 int ret, status_old, status_new; in spi_nor_sr_unlock() local
301 status_new &= ~SR_SRWD; in spi_nor_sr_unlock()
304 status_new |= tb_mask; in spi_nor_sr_unlock()
307 if (status_new == status_old) in spi_nor_sr_unlock()
[all …]

Completed in 4 milliseconds