Lines Matching +full:timer +full:- +full:adjust
1 // SPDX-License-Identifier: GPL-2.0
25 * We don't want to use the rtc-cmos driver, because we don't want to support
26 * alarms, as that would be indistinguishable from timer interrupts.
31 * than 1900, and so it's easy to adjust.
54 /* The epoch was specified on the command-line. */ in init_rtc_epoch()
64 /* PC-like is standard; used for year >= 70 */ in init_rtc_epoch()
90 /* Adjust for non-default epochs. It's easier to depend on the in alpha_rtc_read_time()
91 generic __get_rtc_time and adjust the epoch here than create in alpha_rtc_read_time()
94 int year = tm->tm_year; in alpha_rtc_read_time()
97 year -= 100; in alpha_rtc_read_time()
98 year += rtc_epoch - 1900; in alpha_rtc_read_time()
102 tm->tm_year = year; in alpha_rtc_read_time()
115 xtm.tm_year -= rtc_epoch - 1900; in alpha_rtc_set_time()
130 return -EINVAL; in alpha_rtc_ioctl()
134 return -ENOIOCTLCMD; in alpha_rtc_ioctl()
162 x->retval = alpha_rtc_read_time(NULL, x->tm); in do_remote_read()
181 x->retval = alpha_rtc_set_time(NULL, x->tm); in do_remote_set()
211 pdev = platform_device_register_simple("rtc-alpha", -1, NULL, 0); in alpha_rtc_init()
212 rtc = devm_rtc_allocate_device(&pdev->dev); in alpha_rtc_init()
217 rtc->ops = &alpha_rtc_ops; in alpha_rtc_init()
221 rtc->ops = &remote_rtc_ops; in alpha_rtc_init()