yrs                75 arch/m68k/bvme6000/rtc.c 		unsigned int yrs;
yrs                83 arch/m68k/bvme6000/rtc.c 		yrs = rtc_tm.tm_year;
yrs                84 arch/m68k/bvme6000/rtc.c 		if (yrs < 1900)
yrs                85 arch/m68k/bvme6000/rtc.c 			yrs += 1900;
yrs                92 arch/m68k/bvme6000/rtc.c 		leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400));
yrs               103 arch/m68k/bvme6000/rtc.c 		if (yrs >= 2070)
yrs               111 arch/m68k/bvme6000/rtc.c 		rtc->t0cr_rtmr = yrs%4;
yrs               118 arch/m68k/bvme6000/rtc.c 		rtc->bcd_year  = bin2bcd(yrs%100);
yrs               121 arch/m68k/bvme6000/rtc.c 		rtc->t0cr_rtmr = yrs%4 | 0x08;
yrs                70 arch/m68k/mvme16x/rtc.c 		unsigned int yrs;
yrs                78 arch/m68k/mvme16x/rtc.c 		yrs = rtc_tm.tm_year;
yrs                79 arch/m68k/mvme16x/rtc.c 		if (yrs < 1900)
yrs                80 arch/m68k/mvme16x/rtc.c 			yrs += 1900;
yrs                87 arch/m68k/mvme16x/rtc.c 		leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400));
yrs                98 arch/m68k/mvme16x/rtc.c 		if (yrs >= 2070)
yrs               109 arch/m68k/mvme16x/rtc.c 		rtc->bcd_year = bin2bcd(yrs%100);
yrs               534 drivers/char/rtc.c 		unsigned int yrs;
yrs               546 drivers/char/rtc.c 		yrs = rtc_tm.tm_year + 1900;
yrs               553 drivers/char/rtc.c 		if (yrs < 1970)
yrs               556 drivers/char/rtc.c 		leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400));
yrs               567 drivers/char/rtc.c 		yrs -= epoch;
yrs               568 drivers/char/rtc.c 		if (yrs > 255)		/* They are unsigned */
yrs               573 drivers/char/rtc.c 		real_yrs = yrs;
yrs               574 drivers/char/rtc.c 		yrs = 72;
yrs               583 drivers/char/rtc.c 			yrs = 73;
yrs               589 drivers/char/rtc.c 		if (yrs > 169) {
yrs               593 drivers/char/rtc.c 		if (yrs >= 100)
yrs               594 drivers/char/rtc.c 			yrs -= 100;
yrs               603 drivers/char/rtc.c 			yrs = bin2bcd(yrs);
yrs               614 drivers/char/rtc.c 		CMOS_WRITE(yrs, RTC_YEAR);
yrs               600 drivers/input/misc/hp_sdc_rtc.c                 unsigned int yrs;
yrs               608 drivers/input/misc/hp_sdc_rtc.c                 yrs = hp_sdc_rtc_tm.tm_year + 1900;
yrs               615 drivers/input/misc/hp_sdc_rtc.c                 if (yrs < 1970)
yrs               618 drivers/input/misc/hp_sdc_rtc.c                 leap_yr = ((!(yrs % 4) && (yrs % 100)) || !(yrs % 400));
yrs               627 drivers/input/misc/hp_sdc_rtc.c                 if ((yrs -= eH) > 255)    /* They are unsigned */
yrs                95 drivers/rtc/rtc-bq4802.c 	u8 sec, min, hrs, day, mon, yrs, century, val;
yrs               101 drivers/rtc/rtc-bq4802.c 	yrs = year % 100;
yrs               114 drivers/rtc/rtc-bq4802.c 	yrs = bin2bcd(yrs);
yrs               127 drivers/rtc/rtc-bq4802.c 	p->write(p, 0x0a, yrs);
yrs               218 drivers/rtc/rtc-ds1286.c 	unsigned int yrs;
yrs               221 drivers/rtc/rtc-ds1286.c 	yrs = tm->tm_year + 1900;
yrs               228 drivers/rtc/rtc-ds1286.c 	if (yrs < 1970)
yrs               231 drivers/rtc/rtc-ds1286.c 	yrs -= 1940;
yrs               232 drivers/rtc/rtc-ds1286.c 	if (yrs > 255)    /* They are unsigned */
yrs               235 drivers/rtc/rtc-ds1286.c 	if (yrs >= 100)
yrs               236 drivers/rtc/rtc-ds1286.c 		yrs -= 100;
yrs               243 drivers/rtc/rtc-ds1286.c 	yrs = bin2bcd(yrs);
yrs               249 drivers/rtc/rtc-ds1286.c 	ds1286_rtc_write(priv, yrs, RTC_YEAR);
yrs               182 drivers/rtc/rtc-ds1511.c 	u8 mon, day, dow, hrs, min, sec, yrs, cen;
yrs               194 drivers/rtc/rtc-ds1511.c 	yrs = rtc_tm->tm_year % 100;
yrs               220 drivers/rtc/rtc-ds1511.c 	yrs = bin2bcd(yrs) & 0xff;
yrs               226 drivers/rtc/rtc-ds1511.c 	rtc_write(yrs, RTC_YEAR);
yrs                90 drivers/rtc/rtc-m48t35.c 	unsigned int yrs;
yrs                93 drivers/rtc/rtc-m48t35.c 	yrs = tm->tm_year + 1900;
yrs               100 drivers/rtc/rtc-m48t35.c 	if (yrs < 1970)
yrs               103 drivers/rtc/rtc-m48t35.c 	yrs -= 1970;
yrs               104 drivers/rtc/rtc-m48t35.c 	if (yrs > 255)    /* They are unsigned */
yrs               107 drivers/rtc/rtc-m48t35.c 	if (yrs > 169)
yrs               110 drivers/rtc/rtc-m48t35.c 	if (yrs >= 100)
yrs               111 drivers/rtc/rtc-m48t35.c 		yrs -= 100;
yrs               118 drivers/rtc/rtc-m48t35.c 	yrs = bin2bcd(yrs);
yrs               123 drivers/rtc/rtc-m48t35.c 	writeb(yrs, &priv->reg->year);
yrs               108 drivers/rtc/rtc-mc146818-lib.c 	unsigned int yrs;
yrs               114 drivers/rtc/rtc-mc146818-lib.c 	yrs = time->tm_year;
yrs               121 drivers/rtc/rtc-mc146818-lib.c 	if (yrs > 255)	/* They are unsigned */
yrs               126 drivers/rtc/rtc-mc146818-lib.c 	real_yrs = yrs;
yrs               127 drivers/rtc/rtc-mc146818-lib.c 	leap_yr = ((!((yrs + 1900) % 4) && ((yrs + 1900) % 100)) ||
yrs               128 drivers/rtc/rtc-mc146818-lib.c 			!((yrs + 1900) % 400));
yrs               129 drivers/rtc/rtc-mc146818-lib.c 	yrs = 72;
yrs               138 drivers/rtc/rtc-mc146818-lib.c 		yrs = 73;
yrs               145 drivers/rtc/rtc-mc146818-lib.c 		century = (yrs + 1900) / 100;
yrs               146 drivers/rtc/rtc-mc146818-lib.c 		yrs %= 100;
yrs               153 drivers/rtc/rtc-mc146818-lib.c 	if (yrs > 169) {
yrs               158 drivers/rtc/rtc-mc146818-lib.c 	if (yrs >= 100)
yrs               159 drivers/rtc/rtc-mc146818-lib.c 		yrs -= 100;
yrs               168 drivers/rtc/rtc-mc146818-lib.c 		yrs = bin2bcd(yrs);
yrs               180 drivers/rtc/rtc-mc146818-lib.c 	CMOS_WRITE(yrs, RTC_YEAR);
yrs               111 drivers/rtc/rtc-mrst.c 	unsigned int yrs;
yrs               113 drivers/rtc/rtc-mrst.c 	yrs = time->tm_year;
yrs               120 drivers/rtc/rtc-mrst.c 	if (yrs < 72 || yrs > 172)
yrs               122 drivers/rtc/rtc-mrst.c 	yrs -= 72;
yrs               126 drivers/rtc/rtc-mrst.c 	vrtc_cmos_write(yrs, RTC_YEAR);