Lines Matching refs:txp
63 u8 txbuf[5+7], *txp; in rs5c348_rtc_set_time() local
78 txp = txbuf; in rs5c348_rtc_set_time()
84 txp = &txbuf[5]; in rs5c348_rtc_set_time()
85 txp[RS5C348_REG_SECS] = bin2bcd(tm->tm_sec); in rs5c348_rtc_set_time()
86 txp[RS5C348_REG_MINS] = bin2bcd(tm->tm_min); in rs5c348_rtc_set_time()
88 txp[RS5C348_REG_HOURS] = bin2bcd(tm->tm_hour); in rs5c348_rtc_set_time()
91 txp[RS5C348_REG_HOURS] = bin2bcd((tm->tm_hour + 11) % 12 + 1) | in rs5c348_rtc_set_time()
94 txp[RS5C348_REG_WDAY] = bin2bcd(tm->tm_wday); in rs5c348_rtc_set_time()
95 txp[RS5C348_REG_DAY] = bin2bcd(tm->tm_mday); in rs5c348_rtc_set_time()
96 txp[RS5C348_REG_MONTH] = bin2bcd(tm->tm_mon + 1) | in rs5c348_rtc_set_time()
98 txp[RS5C348_REG_YEAR] = bin2bcd(tm->tm_year % 100); in rs5c348_rtc_set_time()