Lines Matching refs:rtc7301_read
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()
159 tm->tm_wday = (rtc7301_read(priv, RTC7301_DAY_OF_WEEK) & ~RTC7301_AE); in rtc7301_get_time()
160 tm->tm_mon = rtc7301_read(priv, RTC7301_10_MONTH) * 10 + in rtc7301_get_time()
161 rtc7301_read(priv, RTC7301_1_MONTH) - 1; in rtc7301_get_time()
162 year = rtc7301_read(priv, RTC7301_1000_YEAR) * 1000 + in rtc7301_get_time()
163 rtc7301_read(priv, RTC7301_100_YEAR) * 100 + in rtc7301_get_time()
164 rtc7301_read(priv, RTC7301_10_YEAR) * 10 + in rtc7301_get_time()
165 rtc7301_read(priv, RTC7301_1_YEAR); in rtc7301_get_time()
264 alrm_ctrl = rtc7301_read(priv, RTC7301_ALARM_CONTROL); in rtc7301_read_alarm()
330 alrm_ctrl = rtc7301_read(priv, RTC7301_ALARM_CONTROL); in rtc7301_irq_handler()