Home
last modified time | relevance | path

Searched refs:bouncebuf (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/mtd/spi-nor/
H A Dspansion.c105 0, nor->bouncebuf); in cypress_nor_sr_ready_and_clear_reg()
118 if (nor->bouncebuf[0] & (SR_E_ERR | SR_P_ERR)) { in cypress_nor_sr_ready_and_clear_reg()
119 if (nor->bouncebuf[0] & SR_E_ERR) in cypress_nor_sr_ready_and_clear_reg()
133 return !(nor->bouncebuf[0] & SR_WIP); in cypress_nor_sr_ready_and_clear_reg()
165 u8 *buf = nor->bouncebuf; in cypress_nor_set_memlat()
195 u8 *buf = nor->bouncebuf; in cypress_nor_set_octal_dtr_bits()
209 u8 *buf = nor->bouncebuf; in cypress_nor_octal_dtr_en()
242 u8 *buf = nor->bouncebuf; in cypress_nor_set_single_spi_bits()
259 u8 *buf = nor->bouncebuf; in cypress_nor_octal_dtr_dis()
292 nor->bouncebuf); in cypress_nor_quad_enable_volatile_reg()
[all …]
H A Datmel.c81 ret = spi_nor_read_sr(nor, nor->bouncebuf); in atmel_nor_set_global_protection()
85 sr = nor->bouncebuf[0]; in atmel_nor_set_global_protection()
111 nor->bouncebuf[0] = sr; in atmel_nor_set_global_protection()
118 return spi_nor_write_sr(nor, nor->bouncebuf, 1); in atmel_nor_set_global_protection()
139 ret = spi_nor_read_sr(nor, nor->bouncebuf); in atmel_nor_is_global_protected()
143 return ((nor->bouncebuf[0] & ATMEL_SR_GLOBAL_PROTECT_MASK) == ATMEL_SR_GLOBAL_PROTECT_MASK); in atmel_nor_is_global_protected()
H A Dswp.c170 ret = spi_nor_read_sr(nor, nor->bouncebuf); in spi_nor_sr_lock()
174 status_old = nor->bouncebuf[0]; in spi_nor_sr_lock()
260 ret = spi_nor_read_sr(nor, nor->bouncebuf); in spi_nor_sr_unlock()
264 status_old = nor->bouncebuf[0]; in spi_nor_sr_unlock()
337 ret = spi_nor_read_sr(nor, nor->bouncebuf); in spi_nor_sr_is_locked()
341 return spi_nor_is_locked_sr(nor, ofs, len, nor->bouncebuf[0]); in spi_nor_sr_is_locked()
H A Dmicron-st.c54 u8 *buf = nor->bouncebuf; in micron_st_nor_octal_dtr_en()
91 u8 *buf = nor->bouncebuf; in micron_st_nor_octal_dtr_dis()
581 ret = micron_st_nor_read_fsr(nor, nor->bouncebuf); in micron_st_nor_ready()
593 if (nor->bouncebuf[0] & (FSR_E_ERR | FSR_P_ERR)) { in micron_st_nor_ready()
594 if (nor->bouncebuf[0] & FSR_E_ERR) in micron_st_nor_ready()
599 if (nor->bouncebuf[0] & FSR_PT_ERR) in micron_st_nor_ready()
618 return sr_ready && !!(nor->bouncebuf[0] & FSR_READY); in micron_st_nor_ready()
H A Dcore.c138 op->data.buf.in = nor->bouncebuf; in spi_nor_spimem_bounce()
280 memcpy(nor->bouncebuf, buf, op.data.nbytes); in spi_nor_spimem_write_data()
589 nor->bouncebuf[0] = enable << 7; in spi_nor_set_4byte_addr_mode_brwr()
592 struct spi_mem_op op = SPI_NOR_BRWR_OP(nor->bouncebuf); in spi_nor_set_4byte_addr_mode_brwr()
599 nor->bouncebuf, 1); in spi_nor_set_4byte_addr_mode_brwr()
619 ret = spi_nor_read_sr(nor, nor->bouncebuf); in spi_nor_sr_ready()
623 return !(nor->bouncebuf[0] & SR_WIP); in spi_nor_sr_ready()
837 nor->bouncebuf[0] = sr1; in spi_nor_write_sr1_and_check()
839 ret = spi_nor_write_sr(nor, nor->bouncebuf, 1); in spi_nor_write_sr1_and_check()
843 ret = spi_nor_read_sr(nor, nor->bouncebuf); in spi_nor_write_sr1_and_check()
[all …]
H A Dwinbond.c272 nor->bouncebuf[0] = ear; in winbond_nor_write_ear()
275 struct spi_mem_op op = WINBOND_NOR_WREAR_OP(nor->bouncebuf); in winbond_nor_write_ear()
283 nor->bouncebuf, 1); in winbond_nor_write_ear()
H A Dsst.c29 ret = spi_nor_read_cr(nor, nor->bouncebuf); in sst26vf_nor_unlock()
33 if (!(nor->bouncebuf[0] & SST26VF_CR_BPNV)) { in sst26vf_nor_unlock()
H A Dmacronix.c215 u8 *buf = nor->bouncebuf, i; in macronix_nor_octal_dtr_en()
250 u8 *buf = nor->bouncebuf; in macronix_nor_octal_dtr_dis()
H A Dotp.c177 u8 *cr = nor->bouncebuf; in spi_nor_otp_lock_sr2()
209 u8 *cr = nor->bouncebuf; in spi_nor_otp_is_locked_sr2()
/linux/include/linux/mtd/
H A Dspi-nor.h394 u8 *bouncebuf; member