Searched refs:leap_yr (Results 1 – 8 of 8) sorted by relevance
/linux-3.4.99/arch/m68k/mvme16x/ |
D | rtc.c | 68 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_ioctl() local 86 leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400)); in rtc_ioctl() 91 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in rtc_ioctl()
|
/linux-3.4.99/arch/m68k/bvme6000/ |
D | rtc.c | 73 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_ioctl() local 91 leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400)); in rtc_ioctl() 96 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in rtc_ioctl()
|
/linux-3.4.99/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-3.4.99/drivers/char/ |
D | ds1302.c | 178 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_ioctl() local 198 leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400)); in rtc_ioctl() 203 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in rtc_ioctl()
|
D | genrtc.c | 304 unsigned char leap_yr; in gen_rtc_ioctl() local 313 leap_yr = ((!(year % 4) && (year % 100)) || in gen_rtc_ioctl() 320 (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-3.4.99/arch/cris/arch-v10/drivers/ |
D | ds1302.c | 261 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_ioctl() local 281 leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400)); in rtc_ioctl() 286 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in rtc_ioctl()
|
/linux-3.4.99/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()
|