Home
last modified time | relevance | path

Searched refs:RTC_YEAR (Results 1 – 25 of 26) sorted by relevance

12

/Linux-v5.4/drivers/rtc/
Drtc-aspeed.c16 #define RTC_YEAR 0x04 macro
34 reg2 = readl(rtc->base + RTC_YEAR); in aspeed_rtc_read_time()
36 } while (reg2 != readl(rtc->base + RTC_YEAR)); in aspeed_rtc_read_time()
72 writel(reg2, rtc->base + RTC_YEAR); in aspeed_rtc_set_time()
Drtc-max8997.c59 RTC_YEAR, enumerator
90 tm->tm_year = (data[RTC_YEAR] & 0x7f) + 100; in max8997_rtc_data_to_tm()
103 data[RTC_YEAR] = tm->tm_year > 100 ? (tm->tm_year - 100) : 0; in max8997_rtc_tm_to_data()
275 if (data[RTC_YEAR] & 0x7f) in max8997_rtc_start_alarm()
276 data[RTC_YEAR] |= (1 << ALARM_ENABLE_SHIFT); in max8997_rtc_start_alarm()
303 data[RTC_YEAR] + 2000, data[RTC_MONTH], data[RTC_DATE], in max8997_rtc_set_alarm()
Drtc-ds1742.c34 #define RTC_YEAR 7 macro
66 writeb(bin2bcd(tm->tm_year % 100), ioaddr + RTC_YEAR); in ds1742_rtc_set_time()
98 year = readb(ioaddr + RTC_YEAR); in ds1742_rtc_read_time()
Drtc-rx6110.c100 RTC_YEAR, enumerator
135 data[RTC_YEAR] = bin2bcd(tm->tm_year % 100); in rx6110_rtc_tm_to_data()
155 tm->tm_year = bcd2bin(data[RTC_YEAR]) + 100; in rx6110_data_to_rtc_tm()
Drtc-mc146818-lib.c59 time->tm_year = CMOS_READ(RTC_YEAR); in mc146818_get_time()
180 CMOS_WRITE(yrs, RTC_YEAR); in mc146818_set_time()
Drtc-da9063.c33 RTC_YEAR = 5, enumerator
177 tm->tm_year = YEARS_FROM_DA9063(data[RTC_YEAR] & in da9063_data_to_tm()
192 data[RTC_YEAR] = YEARS_TO_DA9063(tm->tm_year) & in da9063_tm_to_data()
289 alrm->enabled = !!(data[RTC_YEAR] & config->rtc_alarm_on_mask); in da9063_rtc_read_alarm()
Drtc-max77686.c59 RTC_YEAR, enumerator
275 tm->tm_year = data[RTC_YEAR] & mask; in max77686_rtc_data_to_tm()
298 data[RTC_YEAR] = tm->tm_year; in max77686_rtc_tm_to_data()
302 data[RTC_YEAR] = tm->tm_year > 100 ? (tm->tm_year - 100) : 0; in max77686_rtc_tm_to_data()
548 if (data[RTC_YEAR] & info->drv_data->mask) in max77686_rtc_start_alarm()
549 data[RTC_YEAR] |= (1 << ALARM_ENABLE_SHIFT); in max77686_rtc_start_alarm()
Drtc-stk17ta8.c41 #define RTC_YEAR (RTC_OFFSET + 15) macro
81 writeb(bin2bcd(tm->tm_year % 100), ioaddr + RTC_YEAR); in stk17ta8_rtc_set_time()
115 year = readb(ioaddr + RTC_YEAR); in stk17ta8_rtc_read_time()
Drtc-ds1553.c38 #define RTC_YEAR (RTC_OFFSET + 15) macro
81 writeb(bin2bcd(tm->tm_year % 100), ioaddr + RTC_YEAR); in ds1553_rtc_set_time()
113 year = readb(ioaddr + RTC_YEAR); in ds1553_rtc_read_time()
Drtc-ds1511.c78 #define RTC_YEAR DS1511_YEAR macro
226 rtc_write(yrs, RTC_YEAR); in ds1511_rtc_set_time()
253 rtc_tm->tm_year = rtc_read(RTC_YEAR) & 0x7f; in ds1511_rtc_read_time()
Drtc-ds1286.c186 tm->tm_year = ds1286_rtc_read(priv, RTC_YEAR); in ds1286_read_time()
249 ds1286_rtc_write(priv, yrs, RTC_YEAR); in ds1286_set_time()
Drtc-mrst.c97 time->tm_year = vrtc_cmos_read(RTC_YEAR); in mrst_read_time()
126 vrtc_cmos_write(yrs, RTC_YEAR); in mrst_set_time()
/Linux-v5.4/arch/x86/platform/intel-mid/
Dintel_mid_vrtc.c72 year = vrtc_cmos_read(RTC_YEAR); in vrtc_get_time()
101 vrtc_cmos_write(year, RTC_YEAR); in vrtc_set_mmss()
/Linux-v5.4/arch/powerpc/platforms/chrp/
Dtime.c116 chrp_cmos_clock_write(tm.tm_year,RTC_YEAR); in chrp_set_rtc_time()
142 year = chrp_cmos_clock_read(RTC_YEAR); in chrp_get_rtc_time()
/Linux-v5.4/arch/powerpc/platforms/maple/
Dtime.c60 tm->tm_year = maple_clock_read(RTC_YEAR); in maple_get_rtc_time()
113 maple_clock_write(year, RTC_YEAR); in maple_set_rtc_time()
/Linux-v5.4/include/linux/rtc/
Dds1286.h24 #define RTC_YEAR 10 macro
Dds1685.h98 #define RTC_YEAR 0x09 /* Year 00-99 */ macro
/Linux-v5.4/include/linux/
Dmc146818rtc.h62 #define RTC_YEAR 9 macro
/Linux-v5.4/arch/mips/include/asm/
Dmc146818-time.h102 year = CMOS_READ(RTC_YEAR); in mc146818_get_cmos_time()
/Linux-v5.4/arch/sh/include/asm/
Dsmc37c93x.h174 #define RTC_YEAR 9 macro
/Linux-v5.4/arch/m68k/atari/
Dtime.c268 year = RTC_READ( RTC_YEAR ); in atari_tt_hwclk()
277 RTC_WRITE( RTC_YEAR, year ); in atari_tt_hwclk()
/Linux-v5.4/arch/mips/dec/
Dtime.c35 year = CMOS_READ(RTC_YEAR); in read_persistent_clock64()
/Linux-v5.4/arch/alpha/kernel/
Drtc.c60 year = CMOS_READ(RTC_YEAR); in init_rtc_epoch()
/Linux-v5.4/arch/x86/kernel/
Drtc.c93 year = CMOS_READ(RTC_YEAR); in mach_get_cmos_time()
/Linux-v5.4/drivers/char/
Drtc.c614 CMOS_WRITE(yrs, RTC_YEAR); in rtc_do_ioctl()
973 year = CMOS_READ(RTC_YEAR); in rtc_init()
1212 rtc_tm->tm_year = CMOS_READ(RTC_YEAR); in rtc_get_rtc_time()

12