Lines Matching refs:fsr
386 int fsr = read_fsr(nor); in spi_nor_fsr_ready() local
388 if (fsr < 0) in spi_nor_fsr_ready()
389 return fsr; in spi_nor_fsr_ready()
391 if (fsr & (FSR_E_ERR | FSR_P_ERR)) { in spi_nor_fsr_ready()
392 if (fsr & FSR_E_ERR) in spi_nor_fsr_ready()
397 if (fsr & FSR_PT_ERR) in spi_nor_fsr_ready()
405 return fsr & FSR_READY; in spi_nor_fsr_ready()
410 int sr, fsr; in spi_nor_ready() local
415 fsr = nor->flags & SNOR_F_USE_FSR ? spi_nor_fsr_ready(nor) : 1; in spi_nor_ready()
416 if (fsr < 0) in spi_nor_ready()
417 return fsr; in spi_nor_ready()
418 return sr && fsr; in spi_nor_ready()