Lines Matching refs:time
46 /* We can set a 24 hour value for the time, but the RTC always gives us back
85 pmic_rtc_set_tval(pmic_rtc_t* dev, int base, const struct rtc_time* time)
88 count = pmic_rtc_reg_write(dev, base, time, sizeof(*time));
89 return !(count == sizeof(*time));
93 pmic_rtc_get_tval(pmic_rtc_t* dev, int base, struct rtc_time* time)
96 count = pmic_rtc_reg_read(dev, base, time, sizeof(*time));
97 time->hour &= ~RTC_HOUR_PM;
98 return !(count == sizeof(*time));
138 pmic_rtc_get_time(pmic_rtc_t* pmic_rtc, struct rtc_time* time)
143 return pmic_rtc_get_tval(pmic_rtc, RTCREG_TIME, time);
147 pmic_rtc_set_time(pmic_rtc_t* pmic_rtc, const struct rtc_time* time)
149 if (pmic_rtc_set_tval(pmic_rtc, RTCREG_TIME, time)) {