Home
last modified time | relevance | path

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

/linux-3.4.99/arch/m68k/mvme16x/
Drtc.c68 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/
Drtc.c73 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/
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-3.4.99/drivers/char/
Dds1302.c178 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()
Dgenrtc.c304 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()
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-3.4.99/arch/cris/arch-v10/drivers/
Dds1302.c261 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/
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()