Home
last modified time | relevance | path

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

/openbmc/linux/drivers/rtc/
H A Drtc-zynqmp.c182 unsigned int tick_mult = do_div(rtc_ppb, xrtcdev->freq); in xlnx_rtc_read_offset() local
190 offset_val = offset_val * tick_mult; in xlnx_rtc_read_offset()
195 * (tick_mult / RTC_FR_MAX_TICKS); in xlnx_rtc_read_offset()
205 unsigned int tick_mult = do_div(rtc_ppb, xrtcdev->freq); in xlnx_rtc_set_offset() local
215 max_tick = div_s64_rem(offset, tick_mult, &fract_offset); in xlnx_rtc_set_offset()
220 fract_offset = fract_offset + tick_mult; in xlnx_rtc_set_offset()
223 if (fract_offset > (tick_mult / RTC_FR_MAX_TICKS)) { in xlnx_rtc_set_offset()
227 (tick_mult / RTC_FR_MAX_TICKS))) in xlnx_rtc_set_offset()