Searched refs:status_new (Results 1 – 1 of 1) sorted by relevance
1694 int ret, status_old, status_new; in spi_nor_sr_lock() local1751 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() local1833 status_new = (status_old & ~mask & ~tb_mask) | val; in spi_nor_sr_unlock()1837 status_new &= ~SR_SRWD; in spi_nor_sr_unlock()[all …]