Home
last modified time | relevance | path

Searched refs:bcd (Results 1 – 18 of 18) sorted by relevance

/openbsd-src/sys/dev/i2c/
H A Drs5c372.c246 uint8_t bcd[RICOHRTC_NRTC_REGS]; in ricohrtc_clock_read() local
252 &cmd, sizeof cmd, bcd, RICOHRTC_NRTC_REGS, I2C_F_POLL)) { in ricohrtc_clock_read()
263 dt->dt_sec = FROMBCD(bcd[RICOHRTC_SECONDS] & RICOHRTC_SECONDS_MASK); in ricohrtc_clock_read()
264 dt->dt_min = FROMBCD(bcd[RICOHRTC_MINUTES] & RICOHRTC_MINUTES_MASK); in ricohrtc_clock_read()
265 dt->dt_hour = FROMBCD(bcd[RICOHRTC_HOURS] & RICOHRTC_HOURS_24MASK); in ricohrtc_clock_read()
266 dt->dt_day = FROMBCD(bcd[RICOHRTC_DATE] & RICOHRTC_DATE_MASK); in ricohrtc_clock_read()
267 dt->dt_mon = FROMBCD(bcd[RICOHRTC_MONTH] & RICOHRTC_MONTH_MASK); in ricohrtc_clock_read()
268 dt->dt_year = FROMBCD(bcd[RICOHRTC_YEAR]) + POSIX_BASE_YEAR; in ricohrtc_clock_read()
275 uint8_t bcd[RICOHRTC_NRTC_REGS]; in ricohrtc_clock_write() local
282 bcd[RICOHRTC_SECONDS] = TOBCD(dt->dt_sec); in ricohrtc_clock_write()
[all …]
/openbsd-src/gnu/gcc/libdecnumber/
H A DdecUtility.c235 uInt bcd; /* BCD result */ in decDenseUnpackCoeff() local
292 bcd = DPD2BCD[dpd]; /* convert 10 bits to 12 bits BCD */ in decDenseUnpackCoeff()
296 nibble = bcd & 0x000f; in decDenseUnpackCoeff()
312 nibble = bcd & 0x00f0; in decDenseUnpackCoeff()
327 nibble = bcd & 0x0f00; in decDenseUnpackCoeff()
/openbsd-src/games/bcd/
H A DMakefile3 PROG= bcd
4 MAN= bcd.6
/openbsd-src/gnu/usr.bin/binutils/gdb/testsuite/gdb.base/
H A Dscope0.c11 int autovars (int bcd, int abc);
82 autovars (int bcd, int abc) in autovars() argument
85 autovars (bcd, abc) in autovars()
86 int bcd; in autovars()
148 useit (abc); useit (bcd);
160 + i91 + i92 + i93 + i94 + i95 + i96 + i97 + i98 + i99 + abc + bcd;
/openbsd-src/regress/usr.bin/sed/
H A Dhanoi.expected8 :a : :bcd :
9 : :a :bcd :
/openbsd-src/sys/arch/luna88k/stand/boot/
H A Dgetsecs.c47 bcdtobin(unsigned int bcd) in bcdtobin() argument
50 return (((bcd >> 4) & 0x0f) * 10 + (bcd & 0x0f)); in bcdtobin()
/openbsd-src/gnu/usr.bin/perl/lib/Tie/
H A DSubstrHash.t13 $a{bcd} = 234;
21 is( $a{bcd}, 234 );
/openbsd-src/gnu/usr.bin/perl/t/op/
H A Dstudy.t64 ok(/bcd|xyz/);
65 ok(/xyz|bcd/);
H A Drange.t24 ($a,@bcd[0..2],$e) = ('a','b','c','d','e');
25 is(join(':',$a,@bcd[0..2],$e), 'a:b:c:d:e');
H A Dsubstr.t625 is($_, 'bcd');
659 is($_, 'bcd');
H A Dtr.t731 is($_, '.bcd....ijklm.op');
747 'abcdef' =~ /(bcd)/;
751 'abcdef' =~ /(bcd)/;
/openbsd-src/usr.sbin/tcpdump/
H A Dprint-gtp.c391 u_int8_t *data, bcd; in gtp_print_tbcd() local
396 bcd = *data & 0xf; in gtp_print_tbcd()
397 if (bcd != 0xf) in gtp_print_tbcd()
398 printf("%u", bcd); in gtp_print_tbcd()
399 bcd = *data >> 4; in gtp_print_tbcd()
400 if (bcd != 0xf) in gtp_print_tbcd()
401 printf("%u", bcd); in gtp_print_tbcd()
/openbsd-src/games/
H A DMakefile3 SUBDIR= adventure arithmetic atc backgammon banner battlestar bcd boggle \
/openbsd-src/sys/dev/usb/
H A Dusb_subr.c70 int usbd_printBCD(char *cp, size_t len, int bcd);
279 usbd_printBCD(char *cp, size_t len, int bcd) in usbd_printBCD() argument
283 l = snprintf(cp, len, "%x.%02x", bcd >> 8, bcd & 0xff); in usbd_printBCD()
/openbsd-src/gnu/usr.bin/perl/t/re/
H A Dpat.t113 ok /bcd|xyz/, qq [\$_ = '$_'; /bcd|xyz/];
114 ok /xyz|bcd/, qq [\$_ = '$_'; /xyz|bcd/];
H A Dre_tests226 ([abc])*bcd abcd y $&-$1 abcd-a
240 (a|b)c*d abcd y $&-$1 bcd-b
258 a[bcd]*dcdcde adcdcde y $& adcdcde
259 a[bcd]+dcdcde adcdcde n - -
425 '([abc])*bcd'i ABCD y $&-$1 ABCD-A
441 'a[bcd]*dcdcde'i ADCDCDE y $& ADCDCDE
442 'a[bcd]+dcdcde'i ADCDCDE n - -
646 ^[^bcd]*(c+) aexycd y $1 c
651 ^[^bcd]*(c+) aexycd y $1 c
1969 [bcd]
[all...]
/openbsd-src/gnu/gcc/libcpp/
H A Ducnid.tab71 0ba3-0ba4 0ba8-0baa 0bae-0bb5 0bb7-0bb9 0bbe-0bc2 0bc6-0bc8 0bca-0bcd
/openbsd-src/regress/lib/libc/regex/
H A Dtests173 \(a\)\1bcd b aabcd aabcd