Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/mtd/spi-nor/
Dspansion.c50 u8 *buf = nor->bouncebuf; in cypress_nor_octal_dtr_en()
89 u8 *buf = nor->bouncebuf; in cypress_nor_octal_dtr_dis()
142 nor->bouncebuf); in cypress_nor_quad_enable_volatile()
148 if (nor->bouncebuf[0] & SPINOR_REG_CYPRESS_CFR1V_QUAD_EN) in cypress_nor_quad_enable_volatile()
152 nor->bouncebuf[0] |= SPINOR_REG_CYPRESS_CFR1V_QUAD_EN; in cypress_nor_quad_enable_volatile()
156 nor->bouncebuf); in cypress_nor_quad_enable_volatile()
161 cfr1v_written = nor->bouncebuf[0]; in cypress_nor_quad_enable_volatile()
167 nor->bouncebuf); in cypress_nor_quad_enable_volatile()
172 if (nor->bouncebuf[0] != cfr1v_written) { in cypress_nor_quad_enable_volatile()
195 nor->bouncebuf); in cypress_nor_set_page_size()
[all …]
Datmel.c79 ret = spi_nor_read_sr(nor, nor->bouncebuf); in atmel_nor_set_global_protection()
83 sr = nor->bouncebuf[0]; in atmel_nor_set_global_protection()
109 nor->bouncebuf[0] = sr; in atmel_nor_set_global_protection()
116 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()
Dxilinx.c108 ret = xilinx_nor_read_sr(nor, nor->bouncebuf); in xilinx_nor_sr_ready()
112 return !!(nor->bouncebuf[0] & XSR_RDY); in xilinx_nor_sr_ready()
121 ret = xilinx_nor_read_sr(nor, nor->bouncebuf); in xilinx_nor_setup()
141 if (nor->bouncebuf[0] & XSR_PAGESIZE) { in xilinx_nor_setup()
Dmicron-st.c53 u8 *buf = nor->bouncebuf; in micron_st_nor_octal_dtr_en()
87 u8 *buf = nor->bouncebuf; in micron_st_nor_octal_dtr_dis()
401 ret = micron_st_nor_read_fsr(nor, nor->bouncebuf); in micron_st_nor_ready()
413 if (nor->bouncebuf[0] & (FSR_E_ERR | FSR_P_ERR)) { in micron_st_nor_ready()
414 if (nor->bouncebuf[0] & FSR_E_ERR) in micron_st_nor_ready()
419 if (nor->bouncebuf[0] & FSR_PT_ERR) in micron_st_nor_ready()
438 return sr_ready && !!(nor->bouncebuf[0] & FSR_READY); in micron_st_nor_ready()
Dcore.c135 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()
[all …]
Dswp.c166 ret = spi_nor_read_sr(nor, nor->bouncebuf); in spi_nor_sr_lock()
170 status_old = nor->bouncebuf[0]; in spi_nor_sr_lock()
251 ret = spi_nor_read_sr(nor, nor->bouncebuf); in spi_nor_sr_unlock()
255 status_old = nor->bouncebuf[0]; in spi_nor_sr_unlock()
328 ret = spi_nor_read_sr(nor, nor->bouncebuf); in spi_nor_sr_is_locked()
332 return spi_nor_is_locked_sr(nor, ofs, len, nor->bouncebuf[0]); in spi_nor_sr_is_locked()
Dwinbond.c155 nor->bouncebuf[0] = ear; in winbond_nor_write_ear()
158 struct spi_mem_op op = WINBOND_NOR_WREAR_OP(nor->bouncebuf); in winbond_nor_write_ear()
166 nor->bouncebuf, 1); in winbond_nor_write_ear()
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()
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-v6.1/include/linux/mtd/
Dspi-nor.h380 u8 *bouncebuf; member