| /freebsd-12.1/sys/amd64/vmm/io/ |
| H A D | vrtc.c | 221 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 D | subr_rtc.c | 140 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 D | clk_rawdcf.c | 407 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 D | clk_varitext.c | 196 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 D | clk_wharton.c | 138 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 D | clk_schmid.c | 206 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 D | clk_rcc8000.c | 142 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 D | clk_computime.c | 158 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 D | clk_trimtaip.c | 156 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 D | clk_dcf7000.c | 159 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 D | clk_hopf6021.c | 222 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 D | moxart.dtsi | 76 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 D | kirkwood-6192.dtsi | 58 rtc: rtc@10300 { label 59 compatible = "marvell,kirkwood-rtc", "marvell,orion-rtc";
|
| H A D | pxa168.dtsi | 139 rtc: rtc@d4010000 { label 140 compatible = "mrvl,mmp-rtc"; 143 interrupt-names = "rtc 1Hz", "rtc alarm";
|
| H A D | kirkwood-6281.dtsi | 58 rtc: rtc@10300 { label 59 compatible = "marvell,kirkwood-rtc", "marvell,orion-rtc";
|
| H A D | s3c2416.dtsi | 108 rtc: rtc@57000000 { label 109 compatible = "samsung,s3c2416-rtc"; 111 clock-names = "rtc";
|
| H A D | pxa910.dtsi | 155 rtc: rtc@d4010000 { label 156 compatible = "mrvl,mmp-rtc"; 159 interrupt-names = "rtc 1Hz", "rtc alarm";
|
| H A D | kirkwood-6282.dtsi | 96 rtc: rtc@10300 { label 97 compatible = "marvell,kirkwood-rtc", "marvell,orion-rtc";
|
| H A D | qcom-pma8084.dtsi | 14 rtc@6000 { 15 compatible = "qcom,pm8941-rtc"; 18 reg-names = "rtc", "alarm";
|
| /freebsd-12.1/sys/gnu/dts/mips/ingenic/ |
| H A D | x1000.dtsi | 42 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 D | pm8994.dtsi | 14 rtc@6000 { 15 compatible = "qcom,pm8941-rtc"; 17 reg-names = "rtc", "alarm";
|
| H A D | pm8998.dtsi | 85 rtc@6000 { 86 compatible = "qcom,pm8941-rtc"; 88 reg-names = "rtc", "alarm";
|
| /freebsd-12.1/contrib/netbsd-tests/lib/libc/gen/ |
| H A D | t_sleep.c | 156 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 D | dcfd.c | 535 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 D | zynqmp-zc1751-xm016-dc2.dts | 25 rtc0 = &rtc; 111 rtc@68 { 117 &rtc {
|