Searched refs:cpcap_tm (Results 1 – 1 of 1) sorted by relevance
/Linux-v6.1/drivers/rtc/ |
D | rtc-cpcap.c | 94 struct cpcap_time cpcap_tm; in cpcap_rtc_read_time() local 101 ret |= regmap_read(rtc->regmap, CPCAP_REG_DAY, &cpcap_tm.day); in cpcap_rtc_read_time() 102 ret |= regmap_read(rtc->regmap, CPCAP_REG_TOD1, &cpcap_tm.tod1); in cpcap_rtc_read_time() 103 ret |= regmap_read(rtc->regmap, CPCAP_REG_TOD2, &cpcap_tm.tod2); in cpcap_rtc_read_time() 105 if (temp_tod2 > cpcap_tm.tod2) in cpcap_rtc_read_time() 106 ret |= regmap_read(rtc->regmap, CPCAP_REG_DAY, &cpcap_tm.day); in cpcap_rtc_read_time() 113 cpcap2rtc_time(tm, &cpcap_tm); in cpcap_rtc_read_time() 121 struct cpcap_time cpcap_tm; in cpcap_rtc_set_time() local 126 rtc2cpcap_time(&cpcap_tm, tm); in cpcap_rtc_set_time() 138 TOD1_MASK, cpcap_tm.tod1); in cpcap_rtc_set_time() [all …]
|