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