Searched refs:sr2 (Results 1 – 2 of 2) sorted by relevance
/drivers/mtd/spi-nor/ |
D | core.c | 935 static int spi_nor_write_sr2(struct spi_nor *nor, const u8 *sr2) in spi_nor_write_sr2() argument 948 SPI_MEM_OP_DATA_OUT(1, sr2, 1)); in spi_nor_write_sr2() 953 sr2, 1); in spi_nor_write_sr2() 973 static int spi_nor_read_sr2(struct spi_nor *nor, u8 *sr2) in spi_nor_read_sr2() argument 982 SPI_MEM_OP_DATA_IN(1, sr2, 1)); in spi_nor_read_sr2() 987 sr2, 1); in spi_nor_read_sr2() 1990 u8 *sr2 = nor->bouncebuf; in spi_nor_sr2_bit7_quad_enable() local 1995 ret = spi_nor_read_sr2(nor, sr2); in spi_nor_sr2_bit7_quad_enable() 1998 if (*sr2 & SR2_QUAD_EN_BIT7) in spi_nor_sr2_bit7_quad_enable() 2002 *sr2 |= SR2_QUAD_EN_BIT7; in spi_nor_sr2_bit7_quad_enable() [all …]
|
/drivers/mtd/devices/ |
D | st_spi_fsm.c | 1478 uint8_t sr1, sr2; in stfsm_w25q_config() local 1488 stfsm_read_status(fsm, SPINOR_OP_RDCR, &sr2, 1); in stfsm_w25q_config() 1491 if (!(sr2 & W25Q_STATUS_QE)) { in stfsm_w25q_config() 1493 sr2 |= W25Q_STATUS_QE; in stfsm_w25q_config() 1497 if (sr2 & W25Q_STATUS_QE) { in stfsm_w25q_config() 1499 sr2 &= ~W25Q_STATUS_QE; in stfsm_w25q_config() 1506 sr_wr = ((uint16_t)sr2 << 8) | sr1; in stfsm_w25q_config()
|