Lines Matching refs:txbuf
63 u8 txbuf[5+7], *txp;
70 txbuf[0] = RS5C348_CMD_W(RS5C348_REG_CTL2);
71 txbuf[1] = 0;
72 ret = spi_write_then_read(spi, txbuf, 2, NULL, 0);
78 txp = txbuf;
79 txbuf[0] = RS5C348_CMD_R(RS5C348_REG_CTL2); /* cmd, ctl2 */
80 txbuf[1] = 0; /* dummy */
81 txbuf[2] = RS5C348_CMD_R(RS5C348_REG_CTL2); /* cmd, ctl2 */
82 txbuf[3] = 0; /* dummy */
83 txbuf[4] = RS5C348_CMD_MW(RS5C348_REG_SECS); /* cmd, sec, ... */
84 txp = &txbuf[5];
100 ret = spi_write_then_read(spi, txbuf, sizeof(txbuf), NULL, 0);
110 u8 txbuf[5], rxbuf[7];
124 txbuf[0] = RS5C348_CMD_R(RS5C348_REG_CTL2); /* cmd, ctl2 */
125 txbuf[1] = 0; /* dummy */
126 txbuf[2] = RS5C348_CMD_R(RS5C348_REG_CTL2); /* cmd, ctl2 */
127 txbuf[3] = 0; /* dummy */
128 txbuf[4] = RS5C348_CMD_MR(RS5C348_REG_SECS); /* cmd, sec, ... */
131 ret = spi_write_then_read(spi, txbuf, sizeof(txbuf),