Lines Matching refs:bouncebuf

135 		op->data.buf.in = nor->bouncebuf;  in spi_nor_spimem_bounce()
277 memcpy(nor->bouncebuf, buf, op.data.nbytes); in spi_nor_spimem_write_data()
544 nor->bouncebuf[0] = enable << 7; in spansion_set_4byte_addr_mode()
551 SPI_MEM_OP_DATA_OUT(1, nor->bouncebuf, 0)); in spansion_set_4byte_addr_mode()
558 nor->bouncebuf, 1); in spansion_set_4byte_addr_mode()
578 nor->bouncebuf[0] = ear; in spi_nor_write_ear()
585 SPI_MEM_OP_DATA_OUT(1, nor->bouncebuf, 0)); in spi_nor_write_ear()
592 nor->bouncebuf, 1); in spi_nor_write_ear()
645 ret = spi_nor_xread_sr(nor, nor->bouncebuf); in spi_nor_xsr_ready()
649 return !!(nor->bouncebuf[0] & XSR_RDY); in spi_nor_xsr_ready()
688 int ret = spi_nor_read_sr(nor, nor->bouncebuf); in spi_nor_sr_ready()
694 nor->bouncebuf[0] & (SR_E_ERR | SR_P_ERR)) { in spi_nor_sr_ready()
695 if (nor->bouncebuf[0] & SR_E_ERR) in spi_nor_sr_ready()
715 return !(nor->bouncebuf[0] & SR_WIP); in spi_nor_sr_ready()
754 int ret = spi_nor_read_fsr(nor, nor->bouncebuf); in spi_nor_fsr_ready()
759 if (nor->bouncebuf[0] & (FSR_E_ERR | FSR_P_ERR)) { in spi_nor_fsr_ready()
760 if (nor->bouncebuf[0] & FSR_E_ERR) in spi_nor_fsr_ready()
765 if (nor->bouncebuf[0] & FSR_PT_ERR) in spi_nor_fsr_ready()
784 return !!(nor->bouncebuf[0] & FSR_READY); in spi_nor_fsr_ready()
944 nor->bouncebuf[0] = sr1; in spi_nor_write_sr1_and_check()
946 ret = spi_nor_write_sr(nor, nor->bouncebuf, 1); in spi_nor_write_sr1_and_check()
950 ret = spi_nor_read_sr(nor, nor->bouncebuf); in spi_nor_write_sr1_and_check()
954 if (nor->bouncebuf[0] != sr1) { in spi_nor_write_sr1_and_check()
975 u8 *sr_cr = nor->bouncebuf; in spi_nor_write_16bit_sr_and_check()
1040 u8 *sr_cr = nor->bouncebuf; in spi_nor_write_16bit_cr_and_check()
1346 nor->bouncebuf[i] = addr & 0xff; in spi_nor_erase_sector()
1351 nor->bouncebuf, nor->addr_width); in spi_nor_erase_sector()
1744 ret = spi_nor_read_sr(nor, nor->bouncebuf); in spi_nor_sr1_bit6_quad_enable()
1748 if (nor->bouncebuf[0] & SR1_QUAD_EN_BIT6) in spi_nor_sr1_bit6_quad_enable()
1751 nor->bouncebuf[0] |= SR1_QUAD_EN_BIT6; in spi_nor_sr1_bit6_quad_enable()
1753 return spi_nor_write_sr1_and_check(nor, nor->bouncebuf[0]); in spi_nor_sr1_bit6_quad_enable()
1772 ret = spi_nor_read_cr(nor, nor->bouncebuf); in spi_nor_sr2_bit1_quad_enable()
1776 if (nor->bouncebuf[0] & SR2_QUAD_EN_BIT1) in spi_nor_sr2_bit1_quad_enable()
1779 nor->bouncebuf[0] |= SR2_QUAD_EN_BIT1; in spi_nor_sr2_bit1_quad_enable()
1781 return spi_nor_write_16bit_cr_and_check(nor, nor->bouncebuf[0]); in spi_nor_sr2_bit1_quad_enable()
1798 u8 *sr2 = nor->bouncebuf; in spi_nor_sr2_bit7_quad_enable()
1869 u8 *id = nor->bouncebuf; in spi_nor_read_id()
3102 nor->bouncebuf = devm_kmalloc(dev, nor->bouncebuf_size, in spi_nor_scan()
3104 if (!nor->bouncebuf) in spi_nor_scan()
3346 devm_kfree(nor->dev, nor->bouncebuf); in spi_nor_probe()
3347 nor->bouncebuf = devm_kmalloc(nor->dev, in spi_nor_probe()
3350 if (!nor->bouncebuf) in spi_nor_probe()