/linux-2.4.37.9/drivers/char/ |
D | efirtc.c | 104 convert_to_efi_time(struct rtc_time *wtime, efi_time_t *eft) in convert_to_efi_time() argument 107 eft->year = wtime->tm_year + 1900; in convert_to_efi_time() 108 eft->month = wtime->tm_mon + 1; in convert_to_efi_time() 109 eft->day = wtime->tm_mday; in convert_to_efi_time() 110 eft->hour = wtime->tm_hour; in convert_to_efi_time() 111 eft->minute = wtime->tm_min; in convert_to_efi_time() 112 eft->second = wtime->tm_sec; in convert_to_efi_time() 114 eft->daylight = wtime->tm_isdst ? EFI_ISDST: 0; in convert_to_efi_time() 119 convert_from_efi_time(efi_time_t *eft, struct rtc_time *wtime) in convert_from_efi_time() argument 121 memset(wtime, 0, sizeof(struct rtc_time)); in convert_from_efi_time() [all …]
|
D | genrtc.c | 278 struct rtc_time wtime; in gen_rtc_ioctl() local 306 memset(&wtime, 0, sizeof(wtime)); in gen_rtc_ioctl() 307 get_rtc_time(&wtime); in gen_rtc_ioctl() 309 return copy_to_user((void *)arg, &wtime, sizeof(wtime)) ? -EFAULT : 0; in gen_rtc_ioctl() 319 if (copy_from_user(&wtime, (struct rtc_time *)arg, in gen_rtc_ioctl() 320 sizeof(wtime))) in gen_rtc_ioctl() 323 year = wtime.tm_year + 1900; in gen_rtc_ioctl() 327 if ((wtime.tm_mon < 0 || wtime.tm_mon > 11) || (wtime.tm_mday < 1)) in gen_rtc_ioctl() 330 if (wtime.tm_mday < 0 || wtime.tm_mday > in gen_rtc_ioctl() 331 (days_in_mo[wtime.tm_mon] + ((wtime.tm_mon == 1) && leap_yr))) in gen_rtc_ioctl() [all …]
|
D | ip27-rtc.c | 81 struct rtc_time wtime; in rtc_ioctl() local 86 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_ioctl() 87 get_rtc_time(&wtime); in rtc_ioctl() 156 return copy_to_user((void *)arg, &wtime, sizeof wtime) ? -EFAULT : 0; in rtc_ioctl()
|
D | ds1286.c | 102 struct rtc_time wtime; in ds1286_ioctl() local 176 memset(&wtime, 0, sizeof(struct rtc_time)); in ds1286_ioctl() 177 ds1286_get_alm_time(&wtime); in ds1286_ioctl() 219 memset(&wtime, 0, sizeof(struct rtc_time)); in ds1286_ioctl() 220 ds1286_get_time(&wtime); in ds1286_ioctl() 239 return copy_to_user((void *)arg, &wtime, sizeof wtime) ? -EFAULT : 0; in ds1286_ioctl()
|
D | rtc.c | 299 struct rtc_time wtime; in rtc_ioctl() local 379 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_ioctl() 380 get_rtc_alm_time(&wtime); in rtc_ioctl() 423 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_ioctl() 424 get_rtc_time(&wtime); in rtc_ioctl() 586 return copy_to_user((void *)arg, &wtime, sizeof wtime) ? -EFAULT : 0; in rtc_ioctl()
|
/linux-2.4.37.9/include/asm-parisc/ |
D | rtc.h | 41 static inline unsigned int get_rtc_time(struct rtc_time *wtime) in get_rtc_time() argument 67 wtime->tm_hour = rem / SECS_PER_HOUR; in get_rtc_time() 69 wtime->tm_min = rem / 60; in get_rtc_time() 70 wtime->tm_sec = rem % 60; in get_rtc_time() 88 wtime->tm_year = y - 1900; in get_rtc_time() 96 wtime->tm_mon = y; in get_rtc_time() 97 wtime->tm_mday = days + 1; in get_rtc_time() 102 static inline int set_rtc_time(struct rtc_time *wtime) in set_rtc_time() argument 106 secs = mktime(wtime->tm_year + 1900, wtime->tm_mon + 1, wtime->tm_mday, in set_rtc_time() 107 wtime->tm_hour, wtime->tm_min, wtime->tm_sec); in set_rtc_time()
|
/linux-2.4.37.9/arch/m68k/bvme6000/ |
D | rtc.c | 47 struct rtc_time wtime; in rtc_ioctl() local 57 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_ioctl() 59 wtime.tm_sec = BCD2BIN(rtc->bcd_sec); in rtc_ioctl() 60 wtime.tm_min = BCD2BIN(rtc->bcd_min); in rtc_ioctl() 61 wtime.tm_hour = BCD2BIN(rtc->bcd_hr); in rtc_ioctl() 62 wtime.tm_mday = BCD2BIN(rtc->bcd_dom); in rtc_ioctl() 63 wtime.tm_mon = BCD2BIN(rtc->bcd_mth)-1; in rtc_ioctl() 64 wtime.tm_year = BCD2BIN(rtc->bcd_year); in rtc_ioctl() 65 if (wtime.tm_year < 70) in rtc_ioctl() 66 wtime.tm_year += 100; in rtc_ioctl() [all …]
|
/linux-2.4.37.9/arch/m68k/mvme16x/ |
D | rtc.c | 46 struct rtc_time wtime; in rtc_ioctl() local 55 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_ioctl() 56 wtime.tm_sec = BCD2BIN(rtc->bcd_sec); in rtc_ioctl() 57 wtime.tm_min = BCD2BIN(rtc->bcd_min); in rtc_ioctl() 58 wtime.tm_hour = BCD2BIN(rtc->bcd_hr); in rtc_ioctl() 59 wtime.tm_mday = BCD2BIN(rtc->bcd_dom); in rtc_ioctl() 60 wtime.tm_mon = BCD2BIN(rtc->bcd_mth)-1; in rtc_ioctl() 61 wtime.tm_year = BCD2BIN(rtc->bcd_year); in rtc_ioctl() 62 if (wtime.tm_year < 70) in rtc_ioctl() 63 wtime.tm_year += 100; in rtc_ioctl() [all …]
|
/linux-2.4.37.9/arch/ppc64/kernel/ |
D | rtc.c | 95 struct rtc_time wtime; in rtc_ioctl() local 100 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_ioctl() 101 ppc_md.get_rtc_time(&wtime); in rtc_ioctl() 166 return copy_to_user((void *)arg, &wtime, sizeof wtime) ? -EFAULT : 0; in rtc_ioctl()
|
/linux-2.4.37.9/drivers/hil/ |
D | hp_sdc_rtc.c | 542 struct rtc_time wtime; in hp_sdc_rtc_ioctl() 613 memset(&wtime, 0, sizeof(struct rtc_time)); in hp_sdc_rtc_ioctl() 614 if (hp_sdc_rtc_read_bbrtc(&wtime)) return -EFAULT; in hp_sdc_rtc_ioctl() 674 return copy_to_user((void *)arg, &wtime, sizeof wtime) ? -EFAULT : 0; in hp_sdc_rtc_ioctl()
|