Lines Matching refs:time
32 * can just use the few bytes of actual time data, which means that
36 * (since the time between the hang and the boot might be more
91 static struct rtc_time time = {
103 time.tm_year = (n % 100);
105 time.tm_mon = (n % 12);
107 time.tm_mday = (n % 28) + 1;
109 time.tm_hour = (n % 24);
111 time.tm_min = (n % 20) * 3;
113 mc146818_set_time(&time);
120 struct rtc_time time;
123 if (mc146818_get_time(&time, 1000) < 0) {
124 pr_err("Unable to read current time from RTC\n");
128 pr_info("RTC time: %ptRt, date: %ptRd\n", &time, &time);
129 val = time.tm_year; /* 100 years */
132 val += time.tm_mon * 100; /* 12 months */
133 val += (time.tm_mday-1) * 100 * 12; /* 28 month-days */
134 val += time.tm_hour * 100 * 12 * 28; /* 24 hours */
135 val += (time.tm_min / 3) * 100 * 12 * 28 * 24; /* 20 3-minute intervals */