/linux/drivers/rtc/ |
A D | rtc-aspeed.c | 16 #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()
|
A D | rtc-max8997.c | 59 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()
|
A D | rtc-ds1742.c | 34 #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()
|
A D | rtc-max77686.c | 59 RTC_YEAR, enumerator 290 tm->tm_year = data[RTC_YEAR] & mask; in max77686_rtc_data_to_tm() 313 data[RTC_YEAR] = tm->tm_year; in max77686_rtc_tm_to_data() 317 data[RTC_YEAR] = tm->tm_year > 100 ? (tm->tm_year - 100) : 0; in max77686_rtc_tm_to_data() 563 if (data[RTC_YEAR] & info->drv_data->mask) in max77686_rtc_start_alarm() 564 data[RTC_YEAR] |= (1 << ALARM_ENABLE_SHIFT); in max77686_rtc_start_alarm()
|
A D | rtc-da9063.c | 33 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()
|
A D | rtc-rx6110.c | 93 RTC_YEAR, enumerator 128 data[RTC_YEAR] = bin2bcd(tm->tm_year % 100); in rx6110_rtc_tm_to_data() 148 tm->tm_year = bcd2bin(data[RTC_YEAR]) + 100; in rx6110_data_to_rtc_tm()
|
A D | rtc-mc146818-lib.c | 64 time->tm_year = CMOS_READ(RTC_YEAR); in mc146818_get_time() 199 CMOS_WRITE(yrs, RTC_YEAR); in mc146818_set_time()
|
A D | rtc-ds1553.c | 38 #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()
|
A D | rtc-stk17ta8.c | 41 #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()
|
A D | rtc-ds1511.c | 78 #define RTC_YEAR DS1511_YEAR macro 220 rtc_write(yrs, RTC_YEAR); in ds1511_rtc_set_time() 247 rtc_tm->tm_year = rtc_read(RTC_YEAR) & 0x7f; in ds1511_rtc_read_time()
|
A D | rtc-ds1286.c | 186 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()
|
A D | rtc-ds1685.c | 275 years = rtc->read(rtc, RTC_YEAR); in ds1685_rtc_read_time() 365 rtc->write(rtc, RTC_YEAR, years); in ds1685_rtc_set_time()
|
/linux/arch/powerpc/platforms/chrp/ |
A D | time.c | 116 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/arch/powerpc/platforms/maple/ |
A D | time.c | 59 tm->tm_year = maple_clock_read(RTC_YEAR); in maple_get_rtc_time() 112 maple_clock_write(year, RTC_YEAR); in maple_set_rtc_time()
|
/linux/include/linux/rtc/ |
A D | ds1286.h | 24 #define RTC_YEAR 10 macro
|
A D | ds1685.h | 96 #define RTC_YEAR 0x09 /* Year 00-99 */ macro
|
/linux/include/linux/ |
A D | mc146818rtc.h | 62 #define RTC_YEAR 9 macro
|
/linux/arch/m68k/atari/ |
A D | time.c | 269 year = RTC_READ( RTC_YEAR ); in atari_tt_hwclk() 278 RTC_WRITE( RTC_YEAR, year ); in atari_tt_hwclk()
|
/linux/arch/sh/include/asm/ |
A D | smc37c93x.h | 174 #define RTC_YEAR 9 macro
|
/linux/arch/mips/include/asm/ |
A D | mc146818-time.h | 102 year = CMOS_READ(RTC_YEAR); in mc146818_get_cmos_time()
|
/linux/arch/mips/dec/ |
A D | time.c | 35 year = CMOS_READ(RTC_YEAR); in read_persistent_clock64()
|
/linux/arch/alpha/kernel/ |
A D | rtc.c | 60 year = CMOS_READ(RTC_YEAR); in init_rtc_epoch()
|
/linux/arch/x86/kernel/ |
A D | rtc.c | 93 year = CMOS_READ(RTC_YEAR); in mach_get_cmos_time()
|