Home
last modified time | relevance | path

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

/freebsd-13.1/sys/kern/
H A Dsubr_clock.c217 !validbcd(bct->day) || !validbcd(bct->hour) || in clock_bcd_to_ts()
218 !validbcd(bct->min) || !validbcd(bct->sec)) { in clock_bcd_to_ts()
222 bct->year, bct->mon, bct->day, in clock_bcd_to_ts()
223 bct->hour, bct->min, bct->sec); in clock_bcd_to_ts()
233 ct.dow = bct->dow; in clock_bcd_to_ts()
240 if (bct->ispm) in clock_bcd_to_ts()
316 bct->ispm = false; in clock_ts_to_bcd()
344 bct->year, bct->mon, bct->day, in clock_print_bcd()
345 bct->hour, bct->min, bct->sec, in clock_print_bcd()
349 bct->year, bct->mon, bct->day, in clock_print_bcd()
[all …]
H A Dsubr_rtc.c171 clock_dbgprint_bcd(device_t dev, int rw, const struct bcd_clocktime *bct) in clock_dbgprint_bcd() argument
176 clock_print_bcd(bct, 9); in clock_dbgprint_bcd()
/freebsd-13.1/sys/dev/iicbus/rtc/
H A Dhym8563.c148 bzero(&bct, sizeof(bct)); in hym8563_gettime()
149 bct.sec = buf[0] & 0x7F; in hym8563_gettime()
150 bct.min = buf[1] & 0x7F; in hym8563_gettime()
151 bct.hour = buf[2] & 0x3f; in hym8563_gettime()
157 bct.year += 0x100; in hym8563_gettime()
177 buf[1] = bct.min; in hym8563_settime()
178 buf[2] = bct.hour; in hym8563_settime()
179 buf[3] = bct.day; in hym8563_settime()
180 buf[4] = bct.dow; in hym8563_settime()
181 buf[5] = bct.mon; in hym8563_settime()
[all …]
/freebsd-13.1/sys/dev/iicbus/
H A Ds35390a.c300 struct bcd_clocktime bct; in s390rtc_gettime() local
313 bct.nsec = 0; in s390rtc_gettime()
317 bct.day = bcd[S390_RT1_DAY]; in s390rtc_gettime()
319 bct.mon = bcd[S390_RT1_MONTH]; in s390rtc_gettime()
320 bct.year = bcd[S390_RT1_YEAR]; in s390rtc_gettime()
330 struct bcd_clocktime bct; in s390rtc_settime() local
339 bcd[S390_RT1_SECOND] = bct.sec; in s390rtc_settime()
340 bcd[S390_RT1_MINUTE] = bct.min; in s390rtc_settime()
342 bcd[S390_RT1_DAY] = bct.day; in s390rtc_settime()
343 bcd[S390_RT1_WDAY] = bct.dow; in s390rtc_settime()
[all …]
H A Disl12xx.c238 struct bcd_clocktime bct; in isl12xx_gettime() local
268 bct.nsec = 0; in isl12xx_gettime()
269 bct.sec = tregs.sec; in isl12xx_gettime()
270 bct.min = tregs.min; in isl12xx_gettime()
272 bct.day = tregs.day; in isl12xx_gettime()
273 bct.mon = tregs.month; in isl12xx_gettime()
274 bct.year = tregs.year; in isl12xx_gettime()
305 tregs.sec = bct.sec; in isl12xx_settime()
306 tregs.min = bct.min; in isl12xx_settime()
308 tregs.day = bct.day; in isl12xx_settime()
[all …]
H A Drtc8583.c195 struct bcd_clocktime bct; in rtc8583_gettime() local
237 bct.sec = tregs.sec; in rtc8583_gettime()
238 bct.min = tregs.min; in rtc8583_gettime()
239 bct.hour = tregs.hour & 0x3f; in rtc8583_gettime()
240 bct.day = tregs.day & 0x3f; in rtc8583_gettime()
252 struct bcd_clocktime bct; in rtc8583_settime() local
264 tregs.sec = bct.sec; in rtc8583_settime()
265 tregs.min = bct.min; in rtc8583_settime()
266 tregs.hour = bct.hour; in rtc8583_settime()
267 tregs.day = bct.day | (bct.year & 0x03 << 6); in rtc8583_settime()
[all …]
H A Dds1307.c320 struct bcd_clocktime bct; in ds1307_gettime() local
348 bct.nsec = 0; in ds1307_gettime()
364 struct bcd_clocktime bct; in ds1307_settime() local
383 if (bct.ispm) in ds1307_settime()
388 data[DS1307_SECS] = bct.sec; in ds1307_settime()
389 data[DS1307_MINS] = bct.min; in ds1307_settime()
391 data[DS1307_DATE] = bct.day; in ds1307_settime()
392 data[DS1307_WEEKDAY] = bct.dow; in ds1307_settime()
393 data[DS1307_MONTH] = bct.mon; in ds1307_settime()
394 data[DS1307_YEAR] = bct.year & 0xff; in ds1307_settime()
[all …]
H A Dds13rtc.c349 struct bcd_clocktime bct; in ds13rtc_gettime() local
383 bct.nsec = 0; in ds13rtc_gettime()
408 struct bcd_clocktime bct; in ds13rtc_settime() local
433 if (bct.ispm) in ds13rtc_settime()
440 if (bct.year >= 2000) in ds13rtc_settime()
444 tregs.sec = bct.sec; in ds13rtc_settime()
445 tregs.min = bct.min; in ds13rtc_settime()
447 tregs.day = bct.day; in ds13rtc_settime()
448 tregs.month = bct.mon | cflag; in ds13rtc_settime()
449 tregs.year = bct.year & 0xff; in ds13rtc_settime()
[all …]
H A Dds3231.c484 struct bcd_clocktime bct; in ds3231_gettime() local
512 bct.nsec = 0; in ds3231_gettime()
533 bct.year |= sc->sc_year0; in ds3231_gettime()
543 struct bcd_clocktime bct; in ds3231_settime() local
561 if (bct.ispm) in ds3231_settime()
566 data[DS3231_SECS] = bct.sec; in ds3231_settime()
567 data[DS3231_MINS] = bct.min; in ds3231_settime()
569 data[DS3231_DATE] = bct.day; in ds3231_settime()
570 data[DS3231_WEEKDAY] = bct.dow + 1; in ds3231_settime()
571 data[DS3231_MONTH] = bct.mon; in ds3231_settime()
[all …]
H A Dnxprtc.c744 struct bcd_clocktime bct; in nxprtc_gettime() local
794 if (bct.year < 0x70) in nxprtc_gettime()
796 } else if (bct.year >= 0x70) in nxprtc_gettime()
810 struct bcd_clocktime bct; in nxprtc_settime() local
847 if (bct.year >= 0x2000) in nxprtc_settime()
853 tregs.sec = bct.sec; in nxprtc_settime()
854 tregs.min = bct.min; in nxprtc_settime()
855 tregs.hour = bct.hour | (bct.ispm ? PCF8523_B_HOUR_PM : 0); in nxprtc_settime()
856 tregs.day = bct.day; in nxprtc_settime()
857 tregs.month = bct.mon; in nxprtc_settime()
[all …]
/freebsd-13.1/sys/arm64/rockchip/
H A Drk805.c640 struct bcd_clocktime bct; in rk805_gettime() local
677 memset(&bct, 0, sizeof(bct)); in rk805_gettime()
686 if (bct.dow == 7) in rk805_gettime()
687 bct.dow = 0; in rk805_gettime()
688 bct.ispm = 0; in rk805_gettime()
692 bct.year, bct.mon, bct.day, bct.hour, bct.min, bct.sec); in rk805_gettime()
700 struct bcd_clocktime bct; in rk805_settime() local
710 data[RK805_RTC_DAYS] = bct.day; in rk805_settime()
713 data[RK805_RTC_SECS] = bct.sec; in rk805_settime()
736 bct.year, bct.mon, bct.day, bct.hour, bct.min, bct.sec, in rk805_settime()
[all …]
/freebsd-13.1/sys/x86/isa/
H A Datrtc.c559 struct bcd_clocktime bct; in atrtc_settime() local
561 clock_ts_to_bcd(ts, &bct, false); in atrtc_settime()
571 rtcout_locked(RTC_SEC, bct.sec); in atrtc_settime()
572 rtcout_locked(RTC_MIN, bct.min); in atrtc_settime()
596 struct bcd_clocktime bct; in atrtc_gettime() local
615 bct.sec = rtcin_locked(RTC_SEC); in atrtc_gettime()
616 bct.min = rtcin_locked(RTC_MIN); in atrtc_gettime()
617 bct.hour = rtcin_locked(RTC_HRS); in atrtc_gettime()
618 bct.day = rtcin_locked(RTC_DAY); in atrtc_gettime()
626 bct.dow = 0; in atrtc_gettime()
[all …]
/freebsd-13.1/sys/sys/
H A Dclock.h184 void clock_print_bcd(const struct bcd_clocktime *bct, int nsdig);
195 void clock_dbgprint_bcd(device_t dev, int rw, const struct bcd_clocktime *bct);
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZInstrInfo.td199 def BCT : BranchUnaryRX<"bct", 0x46,GR32>;
/freebsd-13.1/share/termcap/
H A Dtermcap302 b610|610|610bct|tty610:\