Searched refs:leap_yr (Results 1 – 5 of 5) sorted by relevance
/Linux-v4.19/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-v4.19/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-v4.19/drivers/rtc/ |
D | rtc-mc146818-lib.c | 109 unsigned int real_yrs, leap_yr; in mc146818_set_time() local 126 leap_yr = ((!((yrs + 1900) % 4) && ((yrs + 1900) % 100)) || in mc146818_set_time() 135 if (!leap_yr && mon < 3) { in mc146818_set_time()
|
/Linux-v4.19/drivers/input/misc/ |
D | hp_sdc_rtc.c | 601 unsigned char mon, day, hrs, min, sec, leap_yr; in hp_sdc_rtc_ioctl() 620 leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400)); in hp_sdc_rtc_ioctl() 624 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in hp_sdc_rtc_ioctl()
|
/Linux-v4.19/drivers/char/ |
D | rtc.c | 536 unsigned char mon, day, hrs, min, sec, leap_yr; in rtc_do_ioctl() local 560 leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400)); in rtc_do_ioctl() 565 if (day > (days_in_mo[mon] + ((mon == 2) && leap_yr))) in rtc_do_ioctl() 585 if (!leap_yr && mon < 3) { in rtc_do_ioctl()
|