Lines Matching refs:txbuf

92 	u8 txbuf[1], rxbuf[1];  in pcf2123_show()  local
102 txbuf[0] = PCF2123_READ | reg; in pcf2123_show()
103 ret = spi_write_then_read(spi, txbuf, 1, rxbuf, 1); in pcf2123_show()
114 u8 txbuf[2]; in pcf2123_store() local
130 txbuf[0] = PCF2123_WRITE | reg; in pcf2123_store()
131 txbuf[1] = val; in pcf2123_store()
132 ret = spi_write(spi, txbuf, sizeof(txbuf)); in pcf2123_store()
142 u8 txbuf[1], rxbuf[7]; in pcf2123_rtc_read_time() local
145 txbuf[0] = PCF2123_READ | PCF2123_REG_SC; in pcf2123_rtc_read_time()
146 ret = spi_write_then_read(spi, txbuf, sizeof(txbuf), in pcf2123_rtc_read_time()
174 u8 txbuf[8]; in pcf2123_rtc_set_time() local
184 txbuf[0] = PCF2123_WRITE | PCF2123_REG_CTRL1; in pcf2123_rtc_set_time()
185 txbuf[1] = 0x20; in pcf2123_rtc_set_time()
186 ret = spi_write(spi, txbuf, 2); in pcf2123_rtc_set_time()
192 txbuf[0] = PCF2123_WRITE | PCF2123_REG_SC; in pcf2123_rtc_set_time()
193 txbuf[1] = bin2bcd(tm->tm_sec & 0x7F); in pcf2123_rtc_set_time()
194 txbuf[2] = bin2bcd(tm->tm_min & 0x7F); in pcf2123_rtc_set_time()
195 txbuf[3] = bin2bcd(tm->tm_hour & 0x3F); in pcf2123_rtc_set_time()
196 txbuf[4] = bin2bcd(tm->tm_mday & 0x3F); in pcf2123_rtc_set_time()
197 txbuf[5] = tm->tm_wday & 0x07; in pcf2123_rtc_set_time()
198 txbuf[6] = bin2bcd((tm->tm_mon + 1) & 0x1F); /* rtc mn 1-12 */ in pcf2123_rtc_set_time()
199 txbuf[7] = bin2bcd(tm->tm_year < 100 ? tm->tm_year : tm->tm_year - 100); in pcf2123_rtc_set_time()
201 ret = spi_write(spi, txbuf, sizeof(txbuf)); in pcf2123_rtc_set_time()
207 txbuf[0] = PCF2123_WRITE | PCF2123_REG_CTRL1; in pcf2123_rtc_set_time()
208 txbuf[1] = 0x00; in pcf2123_rtc_set_time()
209 ret = spi_write(spi, txbuf, 2); in pcf2123_rtc_set_time()
226 u8 txbuf[2], rxbuf[2]; in pcf2123_probe() local
236 txbuf[0] = PCF2123_WRITE | PCF2123_REG_CTRL1; in pcf2123_probe()
237 txbuf[1] = 0x58; in pcf2123_probe()
239 txbuf[0], txbuf[1]); in pcf2123_probe()
240 ret = spi_write(spi, txbuf, 2 * sizeof(u8)); in pcf2123_probe()
246 txbuf[0] = PCF2123_WRITE | PCF2123_REG_CTRL1; in pcf2123_probe()
247 txbuf[1] = 0x20; in pcf2123_probe()
249 txbuf[0], txbuf[1]); in pcf2123_probe()
250 ret = spi_write(spi, txbuf, 2 * sizeof(u8)); in pcf2123_probe()
256 txbuf[0] = PCF2123_READ | PCF2123_REG_CTRL1; in pcf2123_probe()
258 txbuf[0]); in pcf2123_probe()
259 ret = spi_write_then_read(spi, txbuf, 1 * sizeof(u8), in pcf2123_probe()
278 txbuf[0] = PCF2123_WRITE | PCF2123_REG_CTRL1; in pcf2123_probe()
279 txbuf[1] = 0x00; in pcf2123_probe()
280 ret = spi_write(spi, txbuf, sizeof(txbuf)); in pcf2123_probe()