Searched refs:RTC_YEAR (Results 1 - 27 of 27) sorted by relevance

/linux-4.1.27/include/linux/
H A Dds1286.h24 #define RTC_YEAR 10 macro
H A Dmc146818rtc.h59 #define RTC_YEAR 9 macro
/linux-4.1.27/drivers/rtc/
H A Drtc-da9063.c40 #define RTC_YEAR 5 macro
61 tm->tm_year = YEARS_FROM_DA9063(data[RTC_YEAR] & da9063_data_to_tm()
83 data[RTC_YEAR] &= ~DA9063_COUNT_YEAR_MASK; da9063_tm_to_data()
84 data[RTC_YEAR] |= YEARS_TO_DA9063(tm->tm_year) & da9063_tm_to_data()
168 alrm->enabled = !!(data[RTC_YEAR] & DA9063_ALARM_ON); da9063_rtc_read_alarm()
H A Drtc-max8997.c65 RTC_YEAR, enumerator in enum:__anon8385
96 tm->tm_year = (data[RTC_YEAR] & 0x7f) + 100; max8997_rtc_data_to_tm()
109 data[RTC_YEAR] = tm->tm_year > 100 ? (tm->tm_year - 100) : 0; max8997_rtc_tm_to_data()
281 if (data[RTC_YEAR] & 0x7f) max8997_rtc_start_alarm()
282 data[RTC_YEAR] |= (1 << ALARM_ENABLE_SHIFT); max8997_rtc_start_alarm()
309 data[RTC_YEAR] + 2000, data[RTC_MONTH], data[RTC_DATE], max8997_rtc_set_alarm()
H A Drtc-max77686.c52 RTC_YEAR, enumerator in enum:__anon8381
92 tm->tm_year = (data[RTC_YEAR] & 0x7f) + 100; max77686_rtc_data_to_tm()
105 data[RTC_YEAR] = tm->tm_year > 100 ? (tm->tm_year - 100) : 0; max77686_rtc_tm_to_data()
309 if (data[RTC_YEAR] & 0x7f) max77686_rtc_start_alarm()
310 data[RTC_YEAR] |= (1 << ALARM_ENABLE_SHIFT); max77686_rtc_start_alarm()
H A Drtc-ds1742.c39 #define RTC_YEAR 7 macro
74 writeb(bin2bcd(tm->tm_year % 100), ioaddr + RTC_YEAR); ds1742_rtc_set_time() local
107 year = readb(ioaddr + RTC_YEAR); ds1742_rtc_read_time()
H A Drtc-ds1553.c43 #define RTC_YEAR (RTC_OFFSET + 15) macro
87 writeb(bin2bcd(tm->tm_year % 100), ioaddr + RTC_YEAR); ds1553_rtc_set_time() local
120 year = readb(ioaddr + RTC_YEAR); ds1553_rtc_read_time()
H A Drtc-max77802.c55 RTC_YEAR, enumerator in enum:__anon8382
96 tm->tm_year = data[RTC_YEAR] & 0xff; max77802_rtc_data_to_tm()
109 data[RTC_YEAR] = tm->tm_year; max77802_rtc_tm_to_data()
H A Drtc-stk17ta8.c46 #define RTC_YEAR (RTC_OFFSET + 15) macro
87 writeb(bin2bcd(tm->tm_year % 100), ioaddr + RTC_YEAR); stk17ta8_rtc_set_time() local
122 year = readb(ioaddr + RTC_YEAR); stk17ta8_rtc_read_time()
H A Drtc-ds1511.c83 #define RTC_YEAR DS1511_YEAR macro
231 rtc_write(yrs, RTC_YEAR); ds1511_rtc_set_time()
258 rtc_tm->tm_year = rtc_read(RTC_YEAR) & 0x7f; ds1511_rtc_read_time()
H A Drtc-ds1286.c192 tm->tm_year = ds1286_rtc_read(priv, RTC_YEAR); ds1286_read_time()
255 ds1286_rtc_write(priv, yrs, RTC_YEAR); ds1286_set_time()
H A Drtc-mrst.c102 time->tm_year = vrtc_cmos_read(RTC_YEAR); mrst_read_time()
131 vrtc_cmos_write(yrs, RTC_YEAR); mrst_set_time()
H A Drtc-ds1685.c265 years = rtc->read(rtc, RTC_YEAR); ds1685_rtc_read_time()
357 rtc->write(rtc, RTC_YEAR, years); ds1685_rtc_set_time()
1550 { "year", RTC_YEAR, RTC_YEAR_BCD_MASK, 0, 99 },
1567 { "year", RTC_YEAR, RTC_YEAR_BIN_MASK, 0x00, 0x63 },
/linux-4.1.27/arch/powerpc/platforms/chrp/
H A Dtime.c113 chrp_cmos_clock_write(tm.tm_year,RTC_YEAR); chrp_set_rtc_time()
139 year = chrp_cmos_clock_read(RTC_YEAR); chrp_get_rtc_time()
/linux-4.1.27/arch/m32r/include/asm/
H A Drtc.h11 # define RTC_YEAR 6 macro
/linux-4.1.27/arch/x86/platform/intel-mid/
H A Dintel_mid_vrtc.c75 year = vrtc_cmos_read(RTC_YEAR); vrtc_get_time()
104 vrtc_cmos_write(year, RTC_YEAR); vrtc_set_mmss()
/linux-4.1.27/arch/powerpc/platforms/maple/
H A Dtime.c65 tm->tm_year = maple_clock_read(RTC_YEAR); maple_get_rtc_time()
118 maple_clock_write(year, RTC_YEAR); maple_set_rtc_time()
/linux-4.1.27/include/asm-generic/
H A Drtc.h78 time->tm_year = CMOS_READ(RTC_YEAR); __get_rtc_time()
182 CMOS_WRITE(yrs, RTC_YEAR); __set_rtc_time()
/linux-4.1.27/arch/mips/include/asm/
H A Dmc146818-time.h102 year = CMOS_READ(RTC_YEAR); mc146818_get_cmos_time()
/linux-4.1.27/drivers/char/
H A Dds1302.c130 rtc_tm->tm_year = CMOS_READ(RTC_YEAR); get_rtc_time()
223 CMOS_WRITE(yrs, RTC_YEAR); rtc_ioctl()
H A Drtc.c631 CMOS_WRITE(yrs, RTC_YEAR); rtc_do_ioctl()
1083 year = CMOS_READ(RTC_YEAR); rtc_init()
1328 rtc_tm->tm_year = CMOS_READ(RTC_YEAR); rtc_get_rtc_time()
/linux-4.1.27/arch/m68k/atari/
H A Dtime.c236 year = RTC_READ( RTC_YEAR ); atari_tt_hwclk()
245 RTC_WRITE( RTC_YEAR, year ); atari_tt_hwclk()
/linux-4.1.27/arch/x86/kernel/
H A Drtc.c83 year = CMOS_READ(RTC_YEAR); mach_get_cmos_time()
/linux-4.1.27/arch/mips/dec/
H A Dtime.c34 year = CMOS_READ(RTC_YEAR); read_persistent_clock()
/linux-4.1.27/arch/sh/include/asm/
H A Dsmc37c93x.h173 #define RTC_YEAR 9 macro
/linux-4.1.27/arch/alpha/kernel/
H A Drtc.c61 year = CMOS_READ(RTC_YEAR); init_rtc_epoch()
/linux-4.1.27/include/linux/rtc/
H A Dds1685.h103 #define RTC_YEAR 0x09 /* Year 00-99 */ macro

Completed in 1049 milliseconds