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()
202 u8 txbuf[3]; in b53_spi_write8() local
208 txbuf[0] = B53_SPI_CMD_NORMAL | B53_SPI_CMD_WRITE; in b53_spi_write8()
209 txbuf[1] = reg; in b53_spi_write8()
210 txbuf[2] = value; in b53_spi_write8()
212 return spi_write(spi, txbuf, sizeof(txbuf)); in b53_spi_write8()
219 u8 txbuf[4]; in b53_spi_write16() local
225 txbuf[0] = B53_SPI_CMD_NORMAL | B53_SPI_CMD_WRITE; in b53_spi_write16()
226 txbuf[1] = reg; in b53_spi_write16()
227 put_unaligned_le16(value, &txbuf[2]); in b53_spi_write16()
229 return spi_write(spi, txbuf, sizeof(txbuf)); in b53_spi_write16()
236 u8 txbuf[6]; in b53_spi_write32() local
242 txbuf[0] = B53_SPI_CMD_NORMAL | B53_SPI_CMD_WRITE; in b53_spi_write32()
243 txbuf[1] = reg; in b53_spi_write32()
244 put_unaligned_le32(value, &txbuf[2]); in b53_spi_write32()
246 return spi_write(spi, txbuf, sizeof(txbuf)); in b53_spi_write32()
253 u8 txbuf[10]; in b53_spi_write48() local
259 txbuf[0] = B53_SPI_CMD_NORMAL | B53_SPI_CMD_WRITE; in b53_spi_write48()
260 txbuf[1] = reg; in b53_spi_write48()
261 put_unaligned_le64(value, &txbuf[2]); in b53_spi_write48()
263 return spi_write(spi, txbuf, sizeof(txbuf) - 2); in b53_spi_write48()
270 u8 txbuf[10]; in b53_spi_write64() local
276 txbuf[0] = B53_SPI_CMD_NORMAL | B53_SPI_CMD_WRITE; in b53_spi_write64()
277 txbuf[1] = reg; in b53_spi_write64()
278 put_unaligned_le64(value, &txbuf[2]); in b53_spi_write64()
280 return spi_write(spi, txbuf, sizeof(txbuf)); in b53_spi_write64()