Searched refs:leap_yr (Results 1 – 8 of 8) sorted by relevance
/linux-2.6.39/arch/m68k/mvme16x/ |
D | rtc.c | 69 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_ioctl() local 87 leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400)); in rtc_ioctl() 92 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in rtc_ioctl()
|
/linux-2.6.39/arch/m68k/bvme6000/ |
D | rtc.c | 74 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_ioctl() local 92 leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400)); in rtc_ioctl() 97 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in rtc_ioctl()
|
/linux-2.6.39/include/asm-generic/ |
D | rtc.h | 123 unsigned int real_yrs, leap_yr; in __set_rtc_time() local 139 leap_yr = ((!((yrs + 1900) % 4) && ((yrs + 1900) % 100)) || in __set_rtc_time() 148 if (!leap_yr && mon < 3) { in __set_rtc_time()
|
/linux-2.6.39/drivers/char/ |
D | ds1302.c | 179 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_ioctl() local 199 leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400)); in rtc_ioctl() 204 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in rtc_ioctl()
|
D | genrtc.c | 305 unsigned char leap_yr; in gen_rtc_ioctl() local 314 leap_yr = ((!(year % 4) && (year % 100)) || in gen_rtc_ioctl() 321 (days_in_mo[wtime.tm_mon] + ((wtime.tm_mon == 1) && leap_yr))) in gen_rtc_ioctl()
|
D | rtc.c | 549 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_do_ioctl() local 573 leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400)); in rtc_do_ioctl() 578 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in rtc_do_ioctl() 598 if (!leap_yr && mon < 3) { in rtc_do_ioctl()
|
/linux-2.6.39/arch/cris/arch-v10/drivers/ |
D | ds1302.c | 262 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_ioctl() local 282 leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400)); in rtc_ioctl() 287 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in rtc_ioctl()
|
/linux-2.6.39/drivers/input/misc/ |
D | hp_sdc_rtc.c | 606 unsigned char mon, day, hrs, min, sec, leap_yr; in hp_sdc_rtc_ioctl() 625 leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400)); in hp_sdc_rtc_ioctl() 629 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in hp_sdc_rtc_ioctl()
|