Home
last modified time | relevance | path

Searched refs:RTC_MONTH (Results 1 – 23 of 23) sorted by relevance

/linux/drivers/rtc/
H A Drtc-max8997.c58 RTC_MONTH, enumerator
89 tm->tm_mon = (data[RTC_MONTH] & 0x0f) - 1; in max8997_rtc_data_to_tm()
102 data[RTC_MONTH] = tm->tm_mon + 1; in max8997_rtc_tm_to_data()
273 if (data[RTC_MONTH] & 0xf) in max8997_rtc_start_alarm()
274 data[RTC_MONTH] |= (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()
H A Drtc-max8925.c22 RTC_MONTH, enumerator
91 tm->tm_mon = ((buf[RTC_MONTH] >> 4) & 0x01) * 10 in tm_calc()
92 + (buf[RTC_MONTH] & 0x0f); in tm_calc()
130 buf[RTC_MONTH] = (high << 4) + low; in data_calc()
H A Drtc-max8907.c25 RTC_MONTH, enumerator
61 tm->tm_mon = bcd2bin(regs[RTC_MONTH] & 0x1f) - 1; in regs_to_tm()
85 regs[RTC_MONTH] = bin2bcd(tm->tm_mon + 1); in tm_to_regs()
H A Drtc-ds1742.c32 #define RTC_MONTH 6 macro
66 writeb(bin2bcd(tm->tm_mon + 1), ioaddr + RTC_MONTH); in ds1742_rtc_set_time()
96 month = readb(ioaddr + RTC_MONTH); in ds1742_rtc_read_time()
H A Drtc-max8998.c61 RTC_MONTH, enumerator
88 tm->tm_mon = bcd2bin(data[RTC_MONTH]); in max8998_data_to_tm()
100 data[RTC_MONTH] = bin2bcd(tm->tm_mon); in max8998_tm_to_data()
H A Drtc-s5m.c37 RTC_MONTH, enumerator
188 tm->tm_mon = (data[RTC_MONTH] & 0x0f) - 1; in s5m8767_data_to_tm()
206 data[RTC_MONTH] = tm->tm_mon + 1; in s5m8767_tm_to_data()
500 if (data[RTC_MONTH] & 0xf) in s5m_rtc_start_alarm()
501 data[RTC_MONTH] |= ALARM_ENABLE_MASK; in s5m_rtc_start_alarm()
H A Drtc-ds1286.c98 month = ds1286_rtc_read(priv, RTC_MONTH); in ds1286_proc()
185 tm->tm_mon = ds1286_rtc_read(priv, RTC_MONTH) & 0x1f; in ds1286_read_time()
250 ds1286_rtc_write(priv, mon, RTC_MONTH); in ds1286_set_time()
H A Drtc-rx6110.c90 RTC_MONTH, enumerator
125 data[RTC_MONTH] = bin2bcd(tm->tm_mon + 1); in rx6110_rtc_tm_to_data()
145 tm->tm_mon = bcd2bin(data[RTC_MONTH] & 0x1f) - 1; in rx6110_data_to_rtc_tm()
H A Drtc-ds1553.c37 #define RTC_MONTH (RTC_OFFSET + 14) macro
82 writeb(bin2bcd(tm->tm_mon + 1), ioaddr + RTC_MONTH); in ds1553_rtc_set_time()
112 month = readb(ioaddr + RTC_MONTH); in ds1553_rtc_read_time()
H A Drtc-stk17ta8.c40 #define RTC_MONTH (RTC_OFFSET + 14) macro
82 writeb(bin2bcd(tm->tm_mon + 1), ioaddr + RTC_MONTH); in stk17ta8_rtc_set_time()
114 month = readb(ioaddr + RTC_MONTH); in stk17ta8_rtc_read_time()
H A Drtc-mc146818-lib.c125 p->time->tm_mon = CMOS_READ(RTC_MONTH); in mc146818_get_time_callback()
293 CMOS_WRITE(mon, RTC_MONTH); in mc146818_set_time()
H A Drtc-max77686.c56 RTC_MONTH, enumerator
305 tm->tm_mon = (data[RTC_MONTH] & 0x0f) - 1; in max77686_rtc_data_to_tm()
326 data[RTC_MONTH] = tm->tm_mon + 1; in max77686_rtc_tm_to_data()
577 if (data[RTC_MONTH] & 0xf) in max77686_rtc_start_alarm()
578 data[RTC_MONTH] |= (1 << ALARM_ENABLE_SHIFT); in max77686_rtc_start_alarm()
H A Drtc-da9063.c33 RTC_MONTH = 4, enumerator
176 tm->tm_mon = MONTHS_FROM_DA9063(data[RTC_MONTH] & in da9063_data_to_tm()
191 data[RTC_MONTH] = MONTHS_TO_DA9063(tm->tm_mon) & in da9063_tm_to_data()
H A Drtc-ds1685.c274 month = rtc->read(rtc, RTC_MONTH); in ds1685_rtc_read_time()
364 rtc->write(rtc, RTC_MONTH, month); in ds1685_rtc_set_time()
/linux/arch/powerpc/platforms/chrp/
H A Dtime.c112 chrp_cmos_clock_write(tm.tm_mon,RTC_MONTH); in chrp_set_rtc_time()
139 mon = chrp_cmos_clock_read(RTC_MONTH); in chrp_get_rtc_time()
/linux/arch/powerpc/platforms/maple/
H A Dtime.c58 tm->tm_mon = maple_clock_read(RTC_MONTH); in maple_get_rtc_time()
110 maple_clock_write(mon, RTC_MONTH); in maple_set_rtc_time()
/linux/include/linux/rtc/
H A Dds1286.h23 #define RTC_MONTH 9 macro
H A Dds1685.h94 #define RTC_MONTH 0x08 /* Month 01-12 */ macro
/linux/include/linux/
H A Dmc146818rtc.h61 #define RTC_MONTH 8 macro
/linux/arch/m68k/atari/
H A Dtime.c270 mon = RTC_READ( RTC_MONTH ); in atari_tt_hwclk()
279 RTC_WRITE( RTC_MONTH, mon ); in atari_tt_hwclk()
/linux/arch/sh/include/asm/
H A Dsmc37c93x.h173 #define RTC_MONTH 8 macro
/linux/arch/mips/include/asm/
H A Dmc146818-time.h101 mon = CMOS_READ(RTC_MONTH); in mc146818_get_cmos_time()
/linux/arch/mips/dec/
H A Dtime.c34 mon = CMOS_READ(RTC_MONTH); in read_persistent_clock64()