Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/mtd/spi-nor/
Dcore.c1694 int ret, status_old, status_new; in spi_nor_sr_lock() local
1751 status_new = (status_old & ~mask & ~tb_mask) | val; in spi_nor_sr_lock()
1754 status_new |= SR_SRWD; in spi_nor_sr_lock()
1757 status_new |= tb_mask; in spi_nor_sr_lock()
1760 if (status_new == status_old) in spi_nor_sr_lock()
1764 if ((status_new & mask) < (status_old & mask)) in spi_nor_sr_lock()
1767 return spi_nor_write_sr_and_check(nor, status_new); in spi_nor_sr_lock()
1779 int ret, status_old, status_new; in spi_nor_sr_unlock() local
1833 status_new = (status_old & ~mask & ~tb_mask) | val; in spi_nor_sr_unlock()
1837 status_new &= ~SR_SRWD; in spi_nor_sr_unlock()
[all …]