| /freebsd-14.2/sys/kern/ |
| H A D | subr_clock.c | 215 !validbcd(bct->day) || !validbcd(bct->hour) || in clock_bcd_to_ts() 216 !validbcd(bct->min) || !validbcd(bct->sec)) { in clock_bcd_to_ts() 220 bct->year, bct->mon, bct->day, in clock_bcd_to_ts() 221 bct->hour, bct->min, bct->sec); in clock_bcd_to_ts() 231 ct.dow = bct->dow; in clock_bcd_to_ts() 238 if (bct->ispm) in clock_bcd_to_ts() 314 bct->ispm = false; in clock_ts_to_bcd() 342 bct->year, bct->mon, bct->day, in clock_print_bcd() 343 bct->hour, bct->min, bct->sec, in clock_print_bcd() 347 bct->year, bct->mon, bct->day, in clock_print_bcd() [all …]
|
| H A D | subr_rtc.c | 169 clock_dbgprint_bcd(device_t dev, int rw, const struct bcd_clocktime *bct) in clock_dbgprint_bcd() argument 174 clock_print_bcd(bct, 9); in clock_dbgprint_bcd()
|
| /freebsd-14.2/sys/dev/iicbus/pmic/rockchip/ |
| H A D | rk8xx_rtc.c | 41 struct bcd_clocktime bct; in rk8xx_gettime() local 84 memset(&bct, 0, sizeof(bct)); in rk8xx_gettime() 93 if (bct.dow == 7) in rk8xx_gettime() 94 bct.dow = 0; in rk8xx_gettime() 95 bct.ispm = 0; in rk8xx_gettime() 101 bct.year, bct.mon, bct.day, bct.hour, bct.min, bct.sec); in rk8xx_gettime() 110 struct bcd_clocktime bct; in rk8xx_settime() local 117 clock_ts_to_bcd(ts, &bct, false); in rk8xx_settime() 126 bct.year &= 0x00ff; in rk8xx_settime() 130 data[sc->rtc_regs.days] = bct.day; in rk8xx_settime() [all …]
|
| /freebsd-14.2/sys/dev/iicbus/rtc/ |
| H A D | hym8563.c | 146 bzero(&bct, sizeof(bct)); in hym8563_gettime() 147 bct.sec = buf[0] & 0x7F; in hym8563_gettime() 148 bct.min = buf[1] & 0x7F; in hym8563_gettime() 149 bct.hour = buf[2] & 0x3f; in hym8563_gettime() 155 bct.year += 0x100; in hym8563_gettime() 175 buf[1] = bct.min; in hym8563_settime() 176 buf[2] = bct.hour; in hym8563_settime() 177 buf[3] = bct.day; in hym8563_settime() 178 buf[4] = bct.dow; in hym8563_settime() 179 buf[5] = bct.mon; in hym8563_settime() [all …]
|
| H A D | s35390a.c | 298 struct bcd_clocktime bct; in s390rtc_gettime() local 311 bct.nsec = 0; in s390rtc_gettime() 315 bct.day = bcd[S390_RT1_DAY]; in s390rtc_gettime() 317 bct.mon = bcd[S390_RT1_MONTH]; in s390rtc_gettime() 318 bct.year = bcd[S390_RT1_YEAR]; in s390rtc_gettime() 328 struct bcd_clocktime bct; in s390rtc_settime() local 337 bcd[S390_RT1_SECOND] = bct.sec; in s390rtc_settime() 338 bcd[S390_RT1_MINUTE] = bct.min; in s390rtc_settime() 340 bcd[S390_RT1_DAY] = bct.day; in s390rtc_settime() 341 bcd[S390_RT1_WDAY] = bct.dow; in s390rtc_settime() [all …]
|
| H A D | isl12xx.c | 236 struct bcd_clocktime bct; in isl12xx_gettime() local 266 bct.nsec = 0; in isl12xx_gettime() 267 bct.sec = tregs.sec; in isl12xx_gettime() 268 bct.min = tregs.min; in isl12xx_gettime() 270 bct.day = tregs.day; in isl12xx_gettime() 271 bct.mon = tregs.month; in isl12xx_gettime() 272 bct.year = tregs.year; in isl12xx_gettime() 303 tregs.sec = bct.sec; in isl12xx_settime() 304 tregs.min = bct.min; in isl12xx_settime() 306 tregs.day = bct.day; in isl12xx_settime() [all …]
|
| H A D | rtc8583.c | 193 struct bcd_clocktime bct; in rtc8583_gettime() local 235 bct.sec = tregs.sec; in rtc8583_gettime() 236 bct.min = tregs.min; in rtc8583_gettime() 237 bct.hour = tregs.hour & 0x3f; in rtc8583_gettime() 238 bct.day = tregs.day & 0x3f; in rtc8583_gettime() 250 struct bcd_clocktime bct; in rtc8583_settime() local 262 tregs.sec = bct.sec; in rtc8583_settime() 263 tregs.min = bct.min; in rtc8583_settime() 264 tregs.hour = bct.hour; in rtc8583_settime() 265 tregs.day = bct.day | (bct.year & 0x03 << 6); in rtc8583_settime() [all …]
|
| H A D | ds13rtc.c | 347 struct bcd_clocktime bct; in ds13rtc_gettime() local 381 bct.nsec = 0; in ds13rtc_gettime() 406 struct bcd_clocktime bct; in ds13rtc_settime() local 431 if (bct.ispm) in ds13rtc_settime() 438 if (bct.year >= 2000) in ds13rtc_settime() 442 tregs.sec = bct.sec; in ds13rtc_settime() 443 tregs.min = bct.min; in ds13rtc_settime() 445 tregs.day = bct.day; in ds13rtc_settime() 446 tregs.month = bct.mon | cflag; in ds13rtc_settime() 447 tregs.year = bct.year & 0xff; in ds13rtc_settime() [all …]
|
| H A D | ds1307.c | 452 struct bcd_clocktime bct; in ds1307_gettime() local 487 bct.nsec = 0; in ds1307_gettime() 503 struct bcd_clocktime bct; in ds1307_settime() local 526 if (bct.ispm) in ds1307_settime() 534 data[DS1307_SECS] = bct.sec; in ds1307_settime() 535 data[DS1307_MINS] = bct.min; in ds1307_settime() 537 data[DS1307_DATE] = bct.day; in ds1307_settime() 538 data[DS1307_WEEKDAY] = bct.dow; in ds1307_settime() 539 data[DS1307_MONTH] = bct.mon; in ds1307_settime() 540 data[DS1307_YEAR] = bct.year & 0xff; in ds1307_settime() [all …]
|
| H A D | ds3231.c | 482 struct bcd_clocktime bct; in ds3231_gettime() local 510 bct.nsec = 0; in ds3231_gettime() 531 bct.year |= sc->sc_year0; in ds3231_gettime() 541 struct bcd_clocktime bct; in ds3231_settime() local 559 if (bct.ispm) in ds3231_settime() 564 data[DS3231_SECS] = bct.sec; in ds3231_settime() 565 data[DS3231_MINS] = bct.min; in ds3231_settime() 567 data[DS3231_DATE] = bct.day; in ds3231_settime() 568 data[DS3231_WEEKDAY] = bct.dow + 1; in ds3231_settime() 569 data[DS3231_MONTH] = bct.mon; in ds3231_settime() [all …]
|
| H A D | nxprtc.c | 742 struct bcd_clocktime bct; in nxprtc_gettime() local 792 if (bct.year < 0x70) in nxprtc_gettime() 794 } else if (bct.year >= 0x70) in nxprtc_gettime() 808 struct bcd_clocktime bct; in nxprtc_settime() local 845 if (bct.year >= 0x2000) in nxprtc_settime() 851 tregs.sec = bct.sec; in nxprtc_settime() 852 tregs.min = bct.min; in nxprtc_settime() 853 tregs.hour = bct.hour | (bct.ispm ? PCF8523_B_HOUR_PM : 0); in nxprtc_settime() 854 tregs.day = bct.day; in nxprtc_settime() 855 tregs.month = bct.mon; in nxprtc_settime() [all …]
|
| /freebsd-14.2/sys/x86/isa/ |
| H A D | atrtc.c | 564 struct bcd_clocktime bct; in atrtc_settime() local 566 clock_ts_to_bcd(ts, &bct, false); in atrtc_settime() 576 rtcout_locked(RTC_SEC, bct.sec); in atrtc_settime() 577 rtcout_locked(RTC_MIN, bct.min); in atrtc_settime() 601 struct bcd_clocktime bct; in atrtc_gettime() local 621 bct.sec = rtcin_locked(RTC_SEC); in atrtc_gettime() 622 bct.min = rtcin_locked(RTC_MIN); in atrtc_gettime() 623 bct.hour = rtcin_locked(RTC_HRS); in atrtc_gettime() 624 bct.day = rtcin_locked(RTC_DAY); in atrtc_gettime() 632 bct.dow = 0; in atrtc_gettime() [all …]
|
| /freebsd-14.2/sys/sys/ |
| H A D | clock.h | 182 void clock_print_bcd(const struct bcd_clocktime *bct, int nsdig); 193 void clock_dbgprint_bcd(device_t dev, int rw, const struct bcd_clocktime *bct);
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZInstrInfo.td | 203 def BCT : BranchUnaryRX<"bct", 0x46,GR32>;
|
| /freebsd-14.2/share/termcap/ |
| H A D | termcap | 301 b610|610|610bct|tty610:\
|