Searched refs:rtc_read (Results 1 – 3 of 3) sorted by relevance
/linux-6.1.9/drivers/rtc/ |
D | rtc-ds1511.c | 108 rtc_read(enum ds1511reg reg) in rtc_read() function 116 rtc_write((rtc_read(RTC_CMD) & ~RTC_TE), RTC_CMD); in rtc_disable_update() 122 rtc_write((rtc_read(RTC_CMD) | RTC_TE), RTC_CMD); in rtc_enable_update() 151 rtc_write(rtc_read(RTC_CMD) | DS1511_WDE | DS1511_WDS, RTC_CMD); in ds1511_wdog_set() 160 rtc_write(rtc_read(RTC_CMD) & ~(DS1511_WDE | DS1511_WDS), RTC_CMD); in ds1511_wdog_disable() 221 rtc_write((rtc_read(RTC_MON) & 0xe0) | mon, RTC_MON); in ds1511_rtc_set_time() 241 rtc_tm->tm_sec = rtc_read(RTC_SEC) & 0x7f; in ds1511_rtc_read_time() 242 rtc_tm->tm_min = rtc_read(RTC_MIN) & 0x7f; in ds1511_rtc_read_time() 243 rtc_tm->tm_hour = rtc_read(RTC_HOUR) & 0x3f; in ds1511_rtc_read_time() 244 rtc_tm->tm_mday = rtc_read(RTC_DOM) & 0x3f; in ds1511_rtc_read_time() [all …]
|
D | rtc-omap.c | 154 static inline u8 rtc_read(struct omap_rtc *rtc, unsigned int reg) in rtc_read() function 206 status = rtc_read(rtc, OMAP_RTC_STATUS_REG); in rtc_wait_not_busy() 220 irq_data = rtc_read(rtc, OMAP_RTC_STATUS_REG); in rtc_irq() 246 reg = rtc_read(rtc, OMAP_RTC_INTERRUPTS_REG); in omap_rtc_alarm_irq_enable() 248 irqwake_reg = rtc_read(rtc, OMAP_RTC_IRQWAKEEN); in omap_rtc_alarm_irq_enable() 293 tm->tm_sec = rtc_read(rtc, OMAP_RTC_SECONDS_REG); in omap_rtc_read_time_raw() 294 tm->tm_min = rtc_read(rtc, OMAP_RTC_MINUTES_REG); in omap_rtc_read_time_raw() 295 tm->tm_hour = rtc_read(rtc, OMAP_RTC_HOURS_REG); in omap_rtc_read_time_raw() 296 tm->tm_mday = rtc_read(rtc, OMAP_RTC_DAYS_REG); in omap_rtc_read_time_raw() 297 tm->tm_mon = rtc_read(rtc, OMAP_RTC_MONTHS_REG); in omap_rtc_read_time_raw() [all …]
|
/linux-6.1.9/tools/testing/selftests/rtc/ |
D | rtctest.c | 97 time_t rtc_read; variable 102 rtc_read = rtc_time_to_timestamp(&rtc_tm); 104 ASSERT_LE(prev_rtc_read, rtc_read); 106 ASSERT_GE(prev_rtc_read + 1, rtc_read); 111 prev_rtc_read = rtc_read;
|