Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/mtd/spi-nor/
Datmel.c79 ret = spi_nor_read_sr(nor, nor->bouncebuf); in atmel_set_global_protection()
83 sr = nor->bouncebuf[0]; in atmel_set_global_protection()
109 nor->bouncebuf[0] = sr; in atmel_set_global_protection()
116 return spi_nor_write_sr(nor, nor->bouncebuf, 1); in atmel_set_global_protection()
136 ret = spi_nor_read_sr(nor, nor->bouncebuf); in atmel_is_global_protected()
140 return ((nor->bouncebuf[0] & ATMEL_SR_GLOBAL_PROTECT_MASK) == ATMEL_SR_GLOBAL_PROTECT_MASK); in atmel_is_global_protected()
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()
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()
[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()
Dxilinx.c45 ret = spi_nor_xread_sr(nor, nor->bouncebuf); in xilinx_nor_setup()
65 if (nor->bouncebuf[0] & XSR_PAGESIZE) { in xilinx_nor_setup()
Dspansion.c35 u8 *buf = nor->bouncebuf; in spi_nor_cypress_octal_dtr_enable()
156 SPI_MEM_OP_DATA_IN(1, nor->bouncebuf, 1)); in s28hs512t_post_bfpt_fixup()
163 if (nor->bouncebuf[0] & SPINOR_REG_CYPRESS_CFR3V_PGSZ) in s28hs512t_post_bfpt_fixup()
Dsst.c26 ret = spi_nor_read_cr(nor, nor->bouncebuf); in sst26vf_unlock()
30 if (!(nor->bouncebuf[0] & SST26VF_CR_BPNV)) { in sst26vf_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()
Dmicron-st.c22 u8 *buf = nor->bouncebuf; in spi_nor_micron_octal_dtr_enable()
/Linux-v5.15/drivers/net/wan/
Dcosa.c145 char *bouncebuf; member
404 kfree(cosa->bouncebuf); in cosa_exit()
535 cosa->bouncebuf = kmalloc(COSA_MTU, GFP_KERNEL | GFP_DMA); in cosa_probe()
536 if (!cosa->bouncebuf) { in cosa_probe()
596 kfree(cosa->bouncebuf); in cosa_probe()
1715 memcpy(cosa->bouncebuf, cosa->chan[cosa->txchan].txbuf, in tx_interrupt()
1717 cosa->txbuf = cosa->bouncebuf; in tx_interrupt()
1867 cosa->rxbuf = cosa->bouncebuf; in rx_interrupt()
1878 set_dma_addr(cosa->dma, virt_to_bus(cosa->bouncebuf)); in rx_interrupt()
1923 if (cosa->rxbuf == cosa->bouncebuf) in eot_interrupt()
[all …]
/Linux-v5.15/include/linux/mtd/
Dspi-nor.h400 u8 *bouncebuf; member