Lines Matching refs:txbuf
68 u8 txbuf[5+7], *txp; in rs5c348_rtc_set_time() local
72 txp = txbuf; in rs5c348_rtc_set_time()
73 txbuf[0] = RS5C348_CMD_R(RS5C348_REG_CTL2); /* cmd, ctl2 */ in rs5c348_rtc_set_time()
74 txbuf[1] = 0; /* dummy */ in rs5c348_rtc_set_time()
75 txbuf[2] = RS5C348_CMD_R(RS5C348_REG_CTL2); /* cmd, ctl2 */ in rs5c348_rtc_set_time()
76 txbuf[3] = 0; /* dummy */ in rs5c348_rtc_set_time()
77 txbuf[4] = RS5C348_CMD_MW(RS5C348_REG_SECS); /* cmd, sec, ... */ in rs5c348_rtc_set_time()
78 txp = &txbuf[5]; in rs5c348_rtc_set_time()
94 ret = spi_write_then_read(spi, txbuf, sizeof(txbuf), NULL, 0); in rs5c348_rtc_set_time()
104 u8 txbuf[5], rxbuf[7]; in rs5c348_rtc_read_time() local
108 txbuf[0] = RS5C348_CMD_R(RS5C348_REG_CTL2); /* cmd, ctl2 */ in rs5c348_rtc_read_time()
109 txbuf[1] = 0; /* dummy */ in rs5c348_rtc_read_time()
110 txbuf[2] = RS5C348_CMD_R(RS5C348_REG_CTL2); /* cmd, ctl2 */ in rs5c348_rtc_read_time()
111 txbuf[3] = 0; /* dummy */ in rs5c348_rtc_read_time()
112 txbuf[4] = RS5C348_CMD_MR(RS5C348_REG_SECS); /* cmd, sec, ... */ in rs5c348_rtc_read_time()
115 ret = spi_write_then_read(spi, txbuf, sizeof(txbuf), in rs5c348_rtc_read_time()