Searched refs:rtc7301_read (Results 1 – 1 of 1) sorted by relevance
/linux-6.6.21/drivers/rtc/ |
D | rtc-r7301.c | 64 static u8 rtc7301_read(struct rtc7301_priv *priv, unsigned int reg) in rtc7301_read() function 96 val = rtc7301_read(priv, RTC7301_CONTROL); in rtc7301_wait_while_busy() 141 tm->tm_sec = rtc7301_read(priv, RTC7301_1_SEC); in rtc7301_get_time() 142 tm->tm_sec += (rtc7301_read(priv, RTC7301_10_SEC) & ~RTC7301_AE) * 10; in rtc7301_get_time() 143 tm->tm_min = rtc7301_read(priv, RTC7301_1_MIN); in rtc7301_get_time() 144 tm->tm_min += (rtc7301_read(priv, RTC7301_10_MIN) & ~RTC7301_AE) * 10; in rtc7301_get_time() 145 tm->tm_hour = rtc7301_read(priv, RTC7301_1_HOUR); in rtc7301_get_time() 146 tm->tm_hour += (rtc7301_read(priv, RTC7301_10_HOUR) & ~RTC7301_AE) * 10; in rtc7301_get_time() 147 tm->tm_mday = rtc7301_read(priv, RTC7301_1_DAY); in rtc7301_get_time() 148 tm->tm_mday += (rtc7301_read(priv, RTC7301_10_DAY) & ~RTC7301_AE) * 10; in rtc7301_get_time() [all …]
|