Lines Matching refs:txbuf
64 static uchar *txbuf = variable
185 out_be32(&tbdf->cbd_bufaddr, (ulong)txbuf); in spi_init_f()
221 txbuf = (uchar *)malloc(MAX_BUFFER); in spi_init_r()
224 out_be32(&tbdf->cbd_bufaddr, (ulong)txbuf); in spi_init_r()
237 memset(txbuf, 0, MAX_BUFFER); in spi_write()
238 *txbuf = SPI_EEPROM_WREN; /* write enable */ in spi_write()
240 memcpy(txbuf, addr, alen); in spi_write()
241 *txbuf = SPI_EEPROM_WRITE; /* WRITE memory array */ in spi_write()
242 memcpy(alen + txbuf, buffer, len); in spi_write()
246 *txbuf = SPI_EEPROM_RDSR; /* read status */ in spi_write()
247 txbuf[1] = 0; in spi_write()
265 memset(txbuf, 0, MAX_BUFFER); in spi_read()
266 memcpy(txbuf, addr, alen); in spi_read()
267 *txbuf = SPI_EEPROM_READ; /* READ memory array */ in spi_read()