Home
last modified time | relevance | path

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

/freebsd-12.1/sys/kern/
H A Dsubr_clock.c221 !validbcd(bct->day) || !validbcd(bct->hour) || in clock_bcd_to_ts()
222 !validbcd(bct->min) || !validbcd(bct->sec)) { in clock_bcd_to_ts()
226 bct->year, bct->mon, bct->day, in clock_bcd_to_ts()
227 bct->hour, bct->min, bct->sec); in clock_bcd_to_ts()
237 ct.dow = bct->dow; in clock_bcd_to_ts()
244 if (bct->ispm) in clock_bcd_to_ts()
320 bct->ispm = false; in clock_ts_to_bcd()
348 bct->year, bct->mon, bct->day, in clock_print_bcd()
349 bct->hour, bct->min, bct->sec, in clock_print_bcd()
353 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-12.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.c236 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 Drtc8583.c193 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 Dds1307.c325 struct bcd_clocktime bct; in ds1307_gettime() local
353 bct.nsec = 0; in ds1307_gettime()
369 struct bcd_clocktime bct; in ds1307_settime() local
388 if (bct.ispm) in ds1307_settime()
393 data[DS1307_SECS] = bct.sec; in ds1307_settime()
394 data[DS1307_MINS] = bct.min; in ds1307_settime()
396 data[DS1307_DATE] = bct.day; in ds1307_settime()
397 data[DS1307_WEEKDAY] = bct.dow; in ds1307_settime()
398 data[DS1307_MONTH] = bct.mon; in ds1307_settime()
399 data[DS1307_YEAR] = bct.year & 0xff; in ds1307_settime()
[all …]
H A Dds13rtc.c348 struct bcd_clocktime bct; in ds13rtc_gettime() local
382 bct.nsec = 0; in ds13rtc_gettime()
407 struct bcd_clocktime bct; in ds13rtc_settime() local
432 if (bct.ispm) in ds13rtc_settime()
439 if (bct.year >= 2000) in ds13rtc_settime()
443 tregs.sec = bct.sec; in ds13rtc_settime()
444 tregs.min = bct.min; in ds13rtc_settime()
446 tregs.day = bct.day; in ds13rtc_settime()
447 tregs.month = bct.mon | cflag; in ds13rtc_settime()
448 tregs.year = bct.year & 0xff; in ds13rtc_settime()
[all …]
H A Dds3231.c480 struct bcd_clocktime bct; in ds3231_gettime() local
508 bct.nsec = 0; in ds3231_gettime()
529 bct.year |= sc->sc_year0; in ds3231_gettime()
539 struct bcd_clocktime bct; in ds3231_settime() local
557 if (bct.ispm) in ds3231_settime()
562 data[DS3231_SECS] = bct.sec; in ds3231_settime()
563 data[DS3231_MINS] = bct.min; in ds3231_settime()
565 data[DS3231_DATE] = bct.day; in ds3231_settime()
566 data[DS3231_WEEKDAY] = bct.dow + 1; in ds3231_settime()
567 data[DS3231_MONTH] = bct.mon; in ds3231_settime()
[all …]
H A Dnxprtc.c743 struct bcd_clocktime bct; in nxprtc_gettime() local
793 if (bct.year < 0x70) in nxprtc_gettime()
795 } else if (bct.year >= 0x70) in nxprtc_gettime()
809 struct bcd_clocktime bct; in nxprtc_settime() local
846 if (bct.year >= 0x2000) in nxprtc_settime()
852 tregs.sec = bct.sec; in nxprtc_settime()
853 tregs.min = bct.min; in nxprtc_settime()
854 tregs.hour = bct.hour | (bct.ispm ? PCF8523_B_HOUR_PM : 0); in nxprtc_settime()
855 tregs.day = bct.day; in nxprtc_settime()
856 tregs.month = bct.mon; in nxprtc_settime()
[all …]
/freebsd-12.1/sys/x86/isa/
H A Datrtc.c532 struct bcd_clocktime bct; in atrtc_settime() local
534 clock_ts_to_bcd(ts, &bct, false); in atrtc_settime()
544 rtcout_locked(RTC_SEC, bct.sec); in atrtc_settime()
545 rtcout_locked(RTC_MIN, bct.min); in atrtc_settime()
570 struct bcd_clocktime bct; in atrtc_gettime() local
589 bct.sec = rtcin_locked(RTC_SEC); in atrtc_gettime()
590 bct.min = rtcin_locked(RTC_MIN); in atrtc_gettime()
591 bct.hour = rtcin_locked(RTC_HRS); in atrtc_gettime()
592 bct.day = rtcin_locked(RTC_DAY); in atrtc_gettime()
601 bct.dow = 0; in atrtc_gettime()
[all …]
/freebsd-12.1/sys/sys/
H A Dclock.h190 void clock_print_bcd(const struct bcd_clocktime *bct, int nsdig);
201 void clock_dbgprint_bcd(device_t dev, int rw, const struct bcd_clocktime *bct);
/freebsd-12.1/contrib/binutils/opcodes/
H A Ds390-opc.txt27 46 bct RX_RRRD "branch on count" g5 esa,zarch
/freebsd-12.1/contrib/llvm/lib/Target/SystemZ/
H A DSystemZInstrInfo.td177 def BCT : BranchUnaryRX<"bct", 0x46,GR32>;
/freebsd-12.1/sys/arm/conf/
H A Dmach-types3538 bct MACH_BCT BCT 3582
/freebsd-12.1/contrib/gcc/config/s390/
H A Ds390.md6845 return "bct\t%1,%a0";
/freebsd-12.1/share/termcap/
H A Dtermcap302 b610|610|610bct|tty610:\