Lines Matching refs:txbuf
45 u8 txbuf[2]; in b53_spi_read_reg() local
47 txbuf[0] = B53_SPI_CMD_NORMAL | B53_SPI_CMD_READ; in b53_spi_read_reg()
48 txbuf[1] = reg; in b53_spi_read_reg()
50 return spi_write_then_read(spi, txbuf, 2, val, len); in b53_spi_read_reg()
78 u8 txbuf[3]; in b53_spi_set_page() local
80 txbuf[0] = B53_SPI_CMD_NORMAL | B53_SPI_CMD_WRITE; in b53_spi_set_page()
81 txbuf[1] = B53_SPI_PAGE_SELECT; in b53_spi_set_page()
82 txbuf[2] = page; in b53_spi_set_page()
84 return spi_write(spi, txbuf, sizeof(txbuf)); in b53_spi_set_page()
192 u8 txbuf[3]; in b53_spi_write8() local
198 txbuf[0] = B53_SPI_CMD_NORMAL | B53_SPI_CMD_WRITE; in b53_spi_write8()
199 txbuf[1] = reg; in b53_spi_write8()
200 txbuf[2] = value; in b53_spi_write8()
202 return spi_write(spi, txbuf, sizeof(txbuf)); in b53_spi_write8()
209 u8 txbuf[4]; in b53_spi_write16() local
215 txbuf[0] = B53_SPI_CMD_NORMAL | B53_SPI_CMD_WRITE; in b53_spi_write16()
216 txbuf[1] = reg; in b53_spi_write16()
217 put_unaligned_le16(value, &txbuf[2]); in b53_spi_write16()
219 return spi_write(spi, txbuf, sizeof(txbuf)); in b53_spi_write16()
226 u8 txbuf[6]; in b53_spi_write32() local
232 txbuf[0] = B53_SPI_CMD_NORMAL | B53_SPI_CMD_WRITE; in b53_spi_write32()
233 txbuf[1] = reg; in b53_spi_write32()
234 put_unaligned_le32(value, &txbuf[2]); in b53_spi_write32()
236 return spi_write(spi, txbuf, sizeof(txbuf)); in b53_spi_write32()
243 u8 txbuf[10]; in b53_spi_write48() local
249 txbuf[0] = B53_SPI_CMD_NORMAL | B53_SPI_CMD_WRITE; in b53_spi_write48()
250 txbuf[1] = reg; in b53_spi_write48()
251 put_unaligned_le64(value, &txbuf[2]); in b53_spi_write48()
253 return spi_write(spi, txbuf, sizeof(txbuf) - 2); in b53_spi_write48()
260 u8 txbuf[10]; in b53_spi_write64() local
266 txbuf[0] = B53_SPI_CMD_NORMAL | B53_SPI_CMD_WRITE; in b53_spi_write64()
267 txbuf[1] = reg; in b53_spi_write64()
268 put_unaligned_le64(value, &txbuf[2]); in b53_spi_write64()
270 return spi_write(spi, txbuf, sizeof(txbuf)); in b53_spi_write64()