Home
last modified time | relevance | path

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

/linux/drivers/rtc/
H A Drtc-amlogic-a4.c195 int sign, match_counter, enable; in aml_rtc_read_offset() local
207 match_counter = FIELD_GET(RTC_MATCH_COUNTER, reg_val); in aml_rtc_read_offset()
208 val = 1000000000 / (match_counter + 1); in aml_rtc_read_offset()
221 int match_counter = 0; in aml_rtc_set_offset() local
232 match_counter = 1000000000 / abs(offset) - 1; in aml_rtc_set_offset()
233 if (match_counter < 0 || match_counter > RTC_MATCH_COUNTER) in aml_rtc_set_offset()
239 FIELD_PREP(RTC_MATCH_COUNTER, match_counter); in aml_rtc_set_offset()