Home
last modified time | relevance | path

Searched refs:rtc (Results 1 – 25 of 545) sorted by relevance

12345678910>>...22

/freebsd-12.1/sys/amd64/vmm/io/
H A Dvrtc.c221 rtc->sec = rtcset(rtc, ct.sec); in secs_to_rtc()
222 rtc->min = rtcset(rtc, ct.min); in secs_to_rtc()
246 rtc->hour = rtcset(rtc, hour); in secs_to_rtc()
252 rtc->day_of_month = rtcset(rtc, ct.day); in secs_to_rtc()
253 rtc->month = rtcset(rtc, ct.mon); in secs_to_rtc()
254 rtc->year = rtcset(rtc, ct.year % 100); in secs_to_rtc()
255 rtc->century = rtcset(rtc, ct.year / 100); in secs_to_rtc()
294 error = rtcget(rtc, rtc->sec, &ct.sec); in rtc_to_secs()
300 error = rtcget(rtc, rtc->min, &ct.min); in rtc_to_secs()
358 error = rtcget(rtc, rtc->month, &ct.mon); in rtc_to_secs()
[all …]
/freebsd-12.1/sys/kern/
H A Dsubr_rtc.c140 struct rtc_instance *rtc; in settime_task_func() local
143 rtc = arg; in settime_task_func()
259 struct rtc_instance *rtc, *tmp; in clock_unregister() local
269 if (rtc != NULL) { in clock_unregister()
272 free(rtc, M_DEVBUF); in clock_unregister()
279 struct rtc_instance *rtc; in clock_schedule() local
284 rtc->schedns = offsetns; in clock_schedule()
294 struct rtc_instance *rtc; in read_clocks() local
312 device_printf(rtc->clockdev, in read_clocks()
380 struct rtc_instance *rtc; in resettodr() local
[all …]
/freebsd-12.1/contrib/ntp/libparse/
H A Dclk_rawdcf.c407 u_long rtc = CVT_NONE; in cvt_rawdcf() local
451 rtc = CVT_FAIL|CVT_BADFMT; in cvt_rawdcf()
547 if (rtc == CVT_NONE) in cvt_rawdcf()
550 if (rtc == CVT_OK) in cvt_rawdcf()
555 if ((rtc == CVT_OK) && t) in cvt_rawdcf()
565 rtc = CVT_SKIP; in cvt_rawdcf()
572 return rtc; in cvt_rawdcf()
732 unsigned int rtc; in inp_rawdcf() local
734 rtc = parse_addchar(parseio, ch); in inp_rawdcf()
735 if (rtc == PARSE_INP_SKIP) in inp_rawdcf()
[all …]
H A Dclk_varitext.c196 int rtc; in inp_varitext() local
220 if ((rtc = parse_addchar(parseio, ch)) != PARSE_INP_SKIP) in inp_varitext()
225 return rtc; in inp_varitext()
235 if ((rtc = parse_addchar(parseio, 0)) == PARSE_INP_SKIP) in inp_varitext()
238 return rtc; in inp_varitext()
H A Dclk_wharton.c138 unsigned int rtc; in inp_wharton_400a() local
154 if ((rtc = parse_addchar(parseio, ch)) == PARSE_INP_SKIP) in inp_wharton_400a()
157 return rtc; in inp_wharton_400a()
H A Dclk_schmid.c206 unsigned int rtc; in inp_schmid() local
214 if ((rtc = parse_addchar(parseio, ch)) == PARSE_INP_SKIP) in inp_schmid()
217 return rtc; in inp_schmid()
H A Dclk_rcc8000.c142 unsigned int rtc; in inp_rcc8000() local
150 if ((rtc = parse_addchar(parseio, ch)) == PARSE_INP_SKIP) in inp_rcc8000()
153 return rtc; in inp_rcc8000()
H A Dclk_computime.c158 unsigned int rtc; in inp_computime() local
174 if ((rtc = parse_addchar(parseio, ch)) == PARSE_INP_SKIP) in inp_computime()
177 return rtc; in inp_computime()
H A Dclk_trimtaip.c156 unsigned int rtc; in inp_trimtaip() local
172 if ((rtc = parse_addchar(parseio, ch)) == PARSE_INP_SKIP) in inp_trimtaip()
175 return rtc; in inp_trimtaip()
H A Dclk_dcf7000.c159 unsigned int rtc; in inp_dcf7000() local
168 if ((rtc = parse_addchar(parseio, ch)) == PARSE_INP_SKIP) in inp_dcf7000()
171 return rtc; in inp_dcf7000()
H A Dclk_hopf6021.c222 unsigned int rtc; in inp_hopf6021() local
231 if ((rtc = parse_addchar(parseio, ch)) == PARSE_INP_SKIP) in inp_hopf6021()
234 return rtc; in inp_hopf6021()
/freebsd-12.1/sys/gnu/dts/arm/
H A Dmoxart.dtsi76 rtc: rtc { label
77 compatible = "moxa,moxart-rtc";
78 gpio-rtc-sclk = <&gpio 5 0>;
79 gpio-rtc-data = <&gpio 6 0>;
80 gpio-rtc-reset = <&gpio 7 0>;
H A Dkirkwood-6192.dtsi58 rtc: rtc@10300 { label
59 compatible = "marvell,kirkwood-rtc", "marvell,orion-rtc";
H A Dpxa168.dtsi139 rtc: rtc@d4010000 { label
140 compatible = "mrvl,mmp-rtc";
143 interrupt-names = "rtc 1Hz", "rtc alarm";
H A Dkirkwood-6281.dtsi58 rtc: rtc@10300 { label
59 compatible = "marvell,kirkwood-rtc", "marvell,orion-rtc";
H A Ds3c2416.dtsi108 rtc: rtc@57000000 { label
109 compatible = "samsung,s3c2416-rtc";
111 clock-names = "rtc";
H A Dpxa910.dtsi155 rtc: rtc@d4010000 { label
156 compatible = "mrvl,mmp-rtc";
159 interrupt-names = "rtc 1Hz", "rtc alarm";
H A Dkirkwood-6282.dtsi96 rtc: rtc@10300 { label
97 compatible = "marvell,kirkwood-rtc", "marvell,orion-rtc";
H A Dqcom-pma8084.dtsi14 rtc@6000 {
15 compatible = "qcom,pm8941-rtc";
18 reg-names = "rtc", "alarm";
/freebsd-12.1/sys/gnu/dts/mips/ingenic/
H A Dx1000.dtsi42 rtc: rtc { label
52 clocks = <&ext>, <&rtc>;
53 clock-names = "ext", "rtc";
76 clocks = <&rtc>;
77 clock-names = "rtc";
81 compatible = "ingenic,jz4780-rtc";
/freebsd-12.1/sys/gnu/dts/arm64/qcom/
H A Dpm8994.dtsi14 rtc@6000 {
15 compatible = "qcom,pm8941-rtc";
17 reg-names = "rtc", "alarm";
H A Dpm8998.dtsi85 rtc@6000 {
86 compatible = "qcom,pm8941-rtc";
88 reg-names = "rtc", "alarm";
/freebsd-12.1/contrib/netbsd-tests/lib/libc/gen/
H A Dt_sleep.c156 int rtc, kq, kerrno; in do_kevent() local
174 rtc = kevent(kq, &ktimer, 1, &kresult, 1, delay); in do_kevent()
179 if (rtc == -1) { in do_kevent()
186 ATF_REQUIRE_MSG(rtc > 0, in do_kevent()
/freebsd-12.1/contrib/ntp/parseutil/
H A Ddcfd.c535 register unsigned rtc = CVT_NONE; in cvt_rawdcf() local
601 rtc = CVT_FAIL|CVT_BADFMT; in cvt_rawdcf()
750 if (rtc != CVT_NONE) in cvt_rawdcf()
755 return (rtc == CVT_NONE) ? convert_rawdcf(buffer, size, clock_time) : rtc; in cvt_rawdcf()
1527 unsigned int rtc = CVT_NONE; in main() local
1681 if ((rtc = cvt_rawdcf((unsigned char *)buf, i, &clock_time)) != CVT_OK) in main()
1734 if (i == 0 && rtc == CVT_OK) in main()
1740 if ((utc_time = dcf_to_unixtime(&clock_time, &rtc)) == -1) in main()
1758 rtc = CVT_FAIL|CVT_BADTIME|CVT_BADDATE; in main()
1766 if (rtc == CVT_OK) in main()
/freebsd-12.1/sys/gnu/dts/arm64/xilinx/
H A Dzynqmp-zc1751-xm016-dc2.dts25 rtc0 = &rtc;
111 rtc@68 {
117 &rtc {

12345678910>>...22