Lines Matching refs:txbuf
207 u8 txbuf[7]; in pcf2123_rtc_set_time() local
218 txbuf[0] = bin2bcd(tm->tm_sec & 0x7F); in pcf2123_rtc_set_time()
219 txbuf[1] = bin2bcd(tm->tm_min & 0x7F); in pcf2123_rtc_set_time()
220 txbuf[2] = bin2bcd(tm->tm_hour & 0x3F); in pcf2123_rtc_set_time()
221 txbuf[3] = bin2bcd(tm->tm_mday & 0x3F); in pcf2123_rtc_set_time()
222 txbuf[4] = tm->tm_wday & 0x07; in pcf2123_rtc_set_time()
223 txbuf[5] = bin2bcd((tm->tm_mon + 1) & 0x1F); /* rtc mn 1-12 */ in pcf2123_rtc_set_time()
224 txbuf[6] = bin2bcd(tm->tm_year - 100); in pcf2123_rtc_set_time()
226 ret = regmap_bulk_write(pcf2123->map, PCF2123_REG_SC, txbuf, in pcf2123_rtc_set_time()
227 sizeof(txbuf)); in pcf2123_rtc_set_time()
278 u8 txbuf[4]; in pcf2123_rtc_set_alarm() local
294 txbuf[0] = bin2bcd(alm->time.tm_min & 0x7F); in pcf2123_rtc_set_alarm()
295 txbuf[1] = bin2bcd(alm->time.tm_hour & 0x3F); in pcf2123_rtc_set_alarm()
296 txbuf[2] = bin2bcd(alm->time.tm_mday & 0x3F); in pcf2123_rtc_set_alarm()
297 txbuf[3] = ALRM_DISABLE; in pcf2123_rtc_set_alarm()
299 ret = regmap_bulk_write(pcf2123->map, PCF2123_REG_ALRM_MN, txbuf, in pcf2123_rtc_set_alarm()
300 sizeof(txbuf)); in pcf2123_rtc_set_alarm()