Searched refs:yrs (Results 1 – 9 of 9) sorted by relevance
/linux-2.4.37.9/arch/m68k/bvme6000/ |
D | rtc.c | 78 unsigned int yrs; in rtc_ioctl() local 87 yrs = rtc_tm.tm_year; in rtc_ioctl() 88 if (yrs < 1900) in rtc_ioctl() 89 yrs += 1900; in rtc_ioctl() 96 leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400)); in rtc_ioctl() 107 if (yrs >= 2070) in rtc_ioctl() 116 rtc->t0cr_rtmr = yrs%4; in rtc_ioctl() 123 rtc->bcd_year = BIN2BCD(yrs%100); in rtc_ioctl() 126 rtc->t0cr_rtmr = yrs%4 | 0x08; in rtc_ioctl()
|
/linux-2.4.37.9/arch/m68k/mvme16x/ |
D | rtc.c | 74 unsigned int yrs; in rtc_ioctl() local 83 yrs = rtc_tm.tm_year; in rtc_ioctl() 84 if (yrs < 1900) in rtc_ioctl() 85 yrs += 1900; in rtc_ioctl() 92 leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400)); in rtc_ioctl() 103 if (yrs >= 2070) in rtc_ioctl() 115 rtc->bcd_year = BIN2BCD(yrs%100); in rtc_ioctl()
|
/linux-2.4.37.9/drivers/char/ |
D | ip27-rtc.c | 94 unsigned int yrs; in rtc_ioctl() local 103 yrs = rtc_tm.tm_year + 1900; in rtc_ioctl() 110 if (yrs < 1970) in rtc_ioctl() 113 leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400)); in rtc_ioctl() 124 if ((yrs -= epoch) > 255) /* They are unsigned */ in rtc_ioctl() 127 if (yrs > 169) { in rtc_ioctl() 130 if (yrs >= 100) in rtc_ioctl() 131 yrs -= 100; in rtc_ioctl() 138 BIN_TO_BCD(yrs); in rtc_ioctl() 142 rtc->year = yrs; in rtc_ioctl()
|
D | ds1286.c | 456 unsigned int yrs, flags; in ds1286_set_time() local 459 yrs = rtc_tm->tm_year + 1900; in ds1286_set_time() 466 if (yrs < 1970) in ds1286_set_time() 469 leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400)); in ds1286_set_time() 480 if ((yrs -= 1940) > 255) /* They are unsigned */ in ds1286_set_time() 483 if (yrs >= 100) in ds1286_set_time() 484 yrs -= 100; in ds1286_set_time() 491 BIN_TO_BCD(yrs); in ds1286_set_time() 497 CMOS_WRITE(yrs, RTC_YEAR); in ds1286_set_time()
|
D | rtc.c | 432 unsigned int yrs; in rtc_ioctl() local 444 yrs = rtc_tm.tm_year + 1900; in rtc_ioctl() 451 if (yrs < 1970) in rtc_ioctl() 454 leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400)); in rtc_ioctl() 465 if ((yrs -= epoch) > 255) /* They are unsigned */ in rtc_ioctl() 470 real_yrs = yrs; in rtc_ioctl() 471 yrs = 72; in rtc_ioctl() 480 yrs = 73; in rtc_ioctl() 486 if (yrs > 169) { in rtc_ioctl() 490 if (yrs >= 100) in rtc_ioctl() [all …]
|
/linux-2.4.37.9/arch/cris/drivers/ |
D | ds1302.c | 360 unsigned int yrs; in rtc_ioctl() local 368 yrs = rtc_tm.tm_year + 1900; in rtc_ioctl() 376 if ((yrs < 1970) || (yrs > 2069)) in rtc_ioctl() 379 leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400)); in rtc_ioctl() 390 if (yrs >= 2000) in rtc_ioctl() 391 yrs -= 2000; /* RTC (0, 1, ... 69) */ in rtc_ioctl() 393 yrs -= 1900; /* RTC (70, 71, ... 99) */ in rtc_ioctl() 400 BIN_TO_BCD(yrs); in rtc_ioctl() 404 CMOS_WRITE(yrs, RTC_YEAR); in rtc_ioctl()
|
/linux-2.4.37.9/arch/mips/sgi-ip22/ |
D | ip22-time.c | 35 unsigned int yrs, mon, day, hrs, min, sec; in indy_rtc_get_time() local 46 yrs = hpc3c0->rtcregs[RTC_YEAR] & 0xff; in indy_rtc_get_time() 55 BCD_TO_BIN(yrs); in indy_rtc_get_time() 57 if (yrs < 45) in indy_rtc_get_time() 58 yrs += 30; in indy_rtc_get_time() 59 if ((yrs += 40) < 70) in indy_rtc_get_time() 60 yrs += 100; in indy_rtc_get_time() 62 return mktime(yrs + 1900, mon, day, hrs, min, sec); in indy_rtc_get_time()
|
/linux-2.4.37.9/arch/ppc64/kernel/ |
D | rtc.c | 108 unsigned int yrs; in rtc_ioctl() local 117 yrs = rtc_tm.tm_year; in rtc_ioctl() 124 if (yrs < 70) in rtc_ioctl() 127 leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400)); in rtc_ioctl() 138 if ( yrs > 169 ) in rtc_ioctl()
|
/linux-2.4.37.9/drivers/hil/ |
D | hp_sdc_rtc.c | 621 unsigned int yrs; in hp_sdc_rtc_ioctl() 629 yrs = hp_sdc_rtc_tm.tm_year + 1900; in hp_sdc_rtc_ioctl() 636 if (yrs < 1970) in hp_sdc_rtc_ioctl() 639 leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400)); in hp_sdc_rtc_ioctl() 648 if ((yrs -= eH) > 255) /* They are unsigned */ in hp_sdc_rtc_ioctl()
|