Lines Matching full:time

51 	u_int8_t time[PCF50633_TI_EXTENT];  member
64 rtc->tm_sec = bcd2bin(pcf->time[PCF50633_TI_SEC]); in pcf2rtc_time()
65 rtc->tm_min = bcd2bin(pcf->time[PCF50633_TI_MIN]); in pcf2rtc_time()
66 rtc->tm_hour = bcd2bin(pcf->time[PCF50633_TI_HOUR]); in pcf2rtc_time()
67 rtc->tm_wday = bcd2bin(pcf->time[PCF50633_TI_WKDAY]); in pcf2rtc_time()
68 rtc->tm_mday = bcd2bin(pcf->time[PCF50633_TI_DAY]); in pcf2rtc_time()
69 rtc->tm_mon = bcd2bin(pcf->time[PCF50633_TI_MONTH]) - 1; in pcf2rtc_time()
70 rtc->tm_year = bcd2bin(pcf->time[PCF50633_TI_YEAR]) + 100; in pcf2rtc_time()
75 pcf->time[PCF50633_TI_SEC] = bin2bcd(rtc->tm_sec); in rtc2pcf_time()
76 pcf->time[PCF50633_TI_MIN] = bin2bcd(rtc->tm_min); in rtc2pcf_time()
77 pcf->time[PCF50633_TI_HOUR] = bin2bcd(rtc->tm_hour); in rtc2pcf_time()
78 pcf->time[PCF50633_TI_WKDAY] = bin2bcd(rtc->tm_wday); in rtc2pcf_time()
79 pcf->time[PCF50633_TI_DAY] = bin2bcd(rtc->tm_mday); in rtc2pcf_time()
80 pcf->time[PCF50633_TI_MONTH] = bin2bcd(rtc->tm_mon + 1); in rtc2pcf_time()
81 pcf->time[PCF50633_TI_YEAR] = bin2bcd(rtc->tm_year % 100); in rtc2pcf_time()
113 &pcf_tm.time[0]); in pcf50633_rtc_read_time()
115 dev_err(dev, "Failed to read time\n"); in pcf50633_rtc_read_time()
120 pcf_tm.time[PCF50633_TI_DAY], in pcf50633_rtc_read_time()
121 pcf_tm.time[PCF50633_TI_MONTH], in pcf50633_rtc_read_time()
122 pcf_tm.time[PCF50633_TI_YEAR], in pcf50633_rtc_read_time()
123 pcf_tm.time[PCF50633_TI_HOUR], in pcf50633_rtc_read_time()
124 pcf_tm.time[PCF50633_TI_MIN], in pcf50633_rtc_read_time()
125 pcf_tm.time[PCF50633_TI_SEC]); in pcf50633_rtc_read_time()
147 pcf_tm.time[PCF50633_TI_DAY], in pcf50633_rtc_set_time()
148 pcf_tm.time[PCF50633_TI_MONTH], in pcf50633_rtc_set_time()
149 pcf_tm.time[PCF50633_TI_YEAR], in pcf50633_rtc_set_time()
150 pcf_tm.time[PCF50633_TI_HOUR], in pcf50633_rtc_set_time()
151 pcf_tm.time[PCF50633_TI_MIN], in pcf50633_rtc_set_time()
152 pcf_tm.time[PCF50633_TI_SEC]); in pcf50633_rtc_set_time()
163 &pcf_tm.time[0]); in pcf50633_rtc_set_time()
183 PCF50633_TI_EXTENT, &pcf_tm.time[0]); in pcf50633_rtc_read_alarm()
185 dev_err(dev, "Failed to read time\n"); in pcf50633_rtc_read_alarm()
189 pcf2rtc_time(&alrm->time, &pcf_tm); in pcf50633_rtc_read_alarm()
191 return rtc_valid_tm(&alrm->time); in pcf50633_rtc_read_alarm()
202 rtc2pcf_time(&pcf_tm, &alrm->time); in pcf50633_rtc_set_alarm()
205 pcf_tm.time[PCF50633_TI_WKDAY] = 7; in pcf50633_rtc_set_alarm()
215 PCF50633_TI_EXTENT, &pcf_tm.time[0]); in pcf50633_rtc_set_alarm()