Lines Matching refs:sr_cr
865 u8 *sr_cr = nor->bouncebuf; in spi_nor_write_16bit_sr_and_check() local
870 ret = spi_nor_read_cr(nor, &sr_cr[1]); in spi_nor_write_16bit_sr_and_check()
890 sr_cr[1] = SR2_QUAD_EN_BIT1; in spi_nor_write_16bit_sr_and_check()
892 sr_cr[1] = 0; in spi_nor_write_16bit_sr_and_check()
895 sr_cr[0] = sr1; in spi_nor_write_16bit_sr_and_check()
897 ret = spi_nor_write_sr(nor, sr_cr, 2); in spi_nor_write_16bit_sr_and_check()
901 ret = spi_nor_read_sr(nor, sr_cr); in spi_nor_write_16bit_sr_and_check()
905 if (sr1 != sr_cr[0]) { in spi_nor_write_16bit_sr_and_check()
913 cr_written = sr_cr[1]; in spi_nor_write_16bit_sr_and_check()
915 ret = spi_nor_read_cr(nor, &sr_cr[1]); in spi_nor_write_16bit_sr_and_check()
919 if (cr_written != sr_cr[1]) { in spi_nor_write_16bit_sr_and_check()
940 u8 *sr_cr = nor->bouncebuf; in spi_nor_write_16bit_cr_and_check() local
944 ret = spi_nor_read_sr(nor, sr_cr); in spi_nor_write_16bit_cr_and_check()
948 sr_cr[1] = cr; in spi_nor_write_16bit_cr_and_check()
950 ret = spi_nor_write_sr(nor, sr_cr, 2); in spi_nor_write_16bit_cr_and_check()
954 sr_written = sr_cr[0]; in spi_nor_write_16bit_cr_and_check()
956 ret = spi_nor_read_sr(nor, sr_cr); in spi_nor_write_16bit_cr_and_check()
960 if (sr_written != sr_cr[0]) { in spi_nor_write_16bit_cr_and_check()
968 ret = spi_nor_read_cr(nor, &sr_cr[1]); in spi_nor_write_16bit_cr_and_check()
972 if (cr != sr_cr[1]) { in spi_nor_write_16bit_cr_and_check()