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()
554 nor->bouncebuf[0] = enable << 7; in spansion_set_4byte_addr_mode()
557 struct spi_mem_op op = SPI_NOR_BRWR_OP(nor->bouncebuf); in spansion_set_4byte_addr_mode()
564 nor->bouncebuf, 1); in spansion_set_4byte_addr_mode()
584 ret = spi_nor_read_sr(nor, nor->bouncebuf); in spi_nor_sr_ready()
588 return !(nor->bouncebuf[0] & SR_WIP); in spi_nor_sr_ready()
733 nor->bouncebuf[0] = sr1; in spi_nor_write_sr1_and_check()
735 ret = spi_nor_write_sr(nor, nor->bouncebuf, 1); in spi_nor_write_sr1_and_check()
739 ret = spi_nor_read_sr(nor, nor->bouncebuf); in spi_nor_write_sr1_and_check()
743 if (nor->bouncebuf[0] != sr1) { in spi_nor_write_sr1_and_check()
764 u8 *sr_cr = nor->bouncebuf; in spi_nor_write_16bit_sr_and_check()
838 u8 *sr_cr = nor->bouncebuf; in spi_nor_write_16bit_cr_and_check()
1130 nor->bouncebuf[i] = addr & 0xff; in spi_nor_erase_sector()
1135 nor->bouncebuf, nor->addr_nbytes); in spi_nor_erase_sector()
1528 ret = spi_nor_read_sr(nor, nor->bouncebuf); in spi_nor_sr1_bit6_quad_enable()
1532 if (nor->bouncebuf[0] & SR1_QUAD_EN_BIT6) in spi_nor_sr1_bit6_quad_enable()
1535 nor->bouncebuf[0] |= SR1_QUAD_EN_BIT6; in spi_nor_sr1_bit6_quad_enable()
1537 return spi_nor_write_sr1_and_check(nor, nor->bouncebuf[0]); in spi_nor_sr1_bit6_quad_enable()
1556 ret = spi_nor_read_cr(nor, nor->bouncebuf); in spi_nor_sr2_bit1_quad_enable()
1560 if (nor->bouncebuf[0] & SR2_QUAD_EN_BIT1) in spi_nor_sr2_bit1_quad_enable()
1563 nor->bouncebuf[0] |= SR2_QUAD_EN_BIT1; in spi_nor_sr2_bit1_quad_enable()
1565 return spi_nor_write_16bit_cr_and_check(nor, nor->bouncebuf[0]); in spi_nor_sr2_bit1_quad_enable()
1582 u8 *sr2 = nor->bouncebuf; in spi_nor_sr2_bit7_quad_enable()
1658 u8 *id = nor->bouncebuf; in spi_nor_detect()
2965 nor->bouncebuf = devm_kmalloc(dev, nor->bouncebuf_size, in spi_nor_scan()
2967 if (!nor->bouncebuf) in spi_nor_scan()
3140 devm_kfree(nor->dev, nor->bouncebuf); in spi_nor_probe()
3141 nor->bouncebuf = devm_kmalloc(nor->dev, in spi_nor_probe()
3144 if (!nor->bouncebuf) in spi_nor_probe()