Home
last modified time | relevance | path

Searched refs:txp (Results 1 – 1 of 1) sorted by relevance

/linux-4.19.296/drivers/rtc/
Drtc-rs5c348.c66 u8 txbuf[5+7], *txp; in rs5c348_rtc_set_time() local
70 txp = txbuf; in rs5c348_rtc_set_time()
76 txp = &txbuf[5]; in rs5c348_rtc_set_time()
77 txp[RS5C348_REG_SECS] = bin2bcd(tm->tm_sec); in rs5c348_rtc_set_time()
78 txp[RS5C348_REG_MINS] = bin2bcd(tm->tm_min); in rs5c348_rtc_set_time()
80 txp[RS5C348_REG_HOURS] = bin2bcd(tm->tm_hour); in rs5c348_rtc_set_time()
83 txp[RS5C348_REG_HOURS] = bin2bcd((tm->tm_hour + 11) % 12 + 1) | in rs5c348_rtc_set_time()
86 txp[RS5C348_REG_WDAY] = bin2bcd(tm->tm_wday); in rs5c348_rtc_set_time()
87 txp[RS5C348_REG_DAY] = bin2bcd(tm->tm_mday); in rs5c348_rtc_set_time()
88 txp[RS5C348_REG_MONTH] = bin2bcd(tm->tm_mon + 1) | in rs5c348_rtc_set_time()
[all …]