Home
last modified time | relevance | path

Searched refs:leap_yr (Results 1 – 8 of 8) sorted by relevance

/linux-2.6.39/arch/m68k/mvme16x/
Drtc.c69 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/
Drtc.c74 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/
Drtc.h123 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/
Dds1302.c179 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()
Dgenrtc.c305 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()
Drtc.c549 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/
Dds1302.c262 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/
Dhp_sdc_rtc.c606 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()