Lines Matching refs:wtime
53 convert_to_efi_time(struct rtc_time *wtime, efi_time_t *eft) in convert_to_efi_time() argument
55 eft->year = wtime->tm_year + 1900; in convert_to_efi_time()
56 eft->month = wtime->tm_mon + 1; in convert_to_efi_time()
57 eft->day = wtime->tm_mday; in convert_to_efi_time()
58 eft->hour = wtime->tm_hour; in convert_to_efi_time()
59 eft->minute = wtime->tm_min; in convert_to_efi_time()
60 eft->second = wtime->tm_sec; in convert_to_efi_time()
62 eft->daylight = wtime->tm_isdst ? EFI_ISDST : 0; in convert_to_efi_time()
67 convert_from_efi_time(efi_time_t *eft, struct rtc_time *wtime) in convert_from_efi_time() argument
69 memset(wtime, 0, sizeof(*wtime)); in convert_from_efi_time()
73 wtime->tm_sec = eft->second; in convert_from_efi_time()
77 wtime->tm_min = eft->minute; in convert_from_efi_time()
81 wtime->tm_hour = eft->hour; in convert_from_efi_time()
85 wtime->tm_mday = eft->day; in convert_from_efi_time()
89 wtime->tm_mon = eft->month - 1; in convert_from_efi_time()
93 wtime->tm_year = eft->year - 1900; in convert_from_efi_time()
96 wtime->tm_yday = compute_yday(eft); in convert_from_efi_time()
99 wtime->tm_wday = compute_wday(eft, wtime->tm_yday); in convert_from_efi_time()
103 wtime->tm_isdst = 1; in convert_from_efi_time()
106 wtime->tm_isdst = 0; in convert_from_efi_time()
109 wtime->tm_isdst = -1; in convert_from_efi_time()