Lines Matching +full:retry +full:- +full:time
1 // SPDX-License-Identifier: GPL-2.0
2 /* rtc-sun4v.c: Hypervisor based RTC for SUN4V systems.
21 unsigned long ret, time; in hypervisor_get_time() local
24 retry: in hypervisor_get_time()
25 ret = sun4v_tod_get(&time); in hypervisor_get_time()
27 return time; in hypervisor_get_time()
29 if (--retries > 0) { in hypervisor_get_time()
31 goto retry; in hypervisor_get_time()
51 retry: in hypervisor_set_time()
56 if (--retries > 0) { in hypervisor_set_time()
58 goto retry; in hypervisor_set_time()
61 return -EAGAIN; in hypervisor_set_time()
64 return -EOPNOTSUPP; in hypervisor_set_time()
81 rtc = devm_rtc_allocate_device(&pdev->dev); in sun4v_rtc_probe()
85 rtc->ops = &sun4v_rtc_ops; in sun4v_rtc_probe()
86 rtc->range_max = U64_MAX; in sun4v_rtc_probe()
94 .name = "rtc-sun4v",