Home
last modified time | relevance | path

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

12

/freebsd/sys/dev/iicbus/rtc/
H A Dpcf85063.c125 struct bcd_clocktime bcd; in pcf85063_get_time() local
145 bcd.nsec = 0; in pcf85063_get_time()
146 bcd.sec = data.sec & 0x7F; in pcf85063_get_time()
147 bcd.min = data.min & 0x7F; in pcf85063_get_time()
151 bcd.hour = data.hour & 0x1F; in pcf85063_get_time()
153 bcd.ispm = data.hour & 0x20; in pcf85063_get_time()
156 bcd.hour = data.hour & 0x3F; in pcf85063_get_time()
157 bcd.ispm = false; in pcf85063_get_time()
160 bcd.dow = (data.dow & 0x7) + 1; in pcf85063_get_time()
161 bcd.day = data.day & 0x3F; in pcf85063_get_time()
[all …]
H A Drx8803.c108 struct bcd_clocktime bcd; in rx8803_gettime() local
122 bcd.nsec = 0; in rx8803_gettime()
123 bcd.sec = data.sec & 0x7F; in rx8803_gettime()
124 bcd.min = data.min & 0x7F; in rx8803_gettime()
125 bcd.hour = data.hour & 0x3F; in rx8803_gettime()
126 bcd.dow = flsl(data.dow & 0x7F) - 1; in rx8803_gettime()
127 bcd.day = data.day & 0x3F; in rx8803_gettime()
128 bcd.mon = (data.mon & 0x1F); in rx8803_gettime()
129 bcd.year = data.year; in rx8803_gettime()
131 clock_dbgprint_bcd(dev, CLOCK_DBG_READ, &bcd); in rx8803_gettime()
[all …]
H A Ds35390a.c297 uint8_t bcd[S390_RT1_NBYTES]; in s390rtc_gettime() local
301 error = s390rtc_read(dev, S390_REALTIME1, bcd, S390_RT1_NBYTES); in s390rtc_gettime()
312 bct.sec = bcd[S390_RT1_SECOND]; in s390rtc_gettime()
313 bct.min = bcd[S390_RT1_MINUTE]; in s390rtc_gettime()
314 bct.hour = bcd[S390_RT1_HOUR] & 0x3f; in s390rtc_gettime()
315 bct.day = bcd[S390_RT1_DAY]; in s390rtc_gettime()
316 bct.dow = bcd[S390_RT1_WDAY] & 0x07; in s390rtc_gettime()
317 bct.mon = bcd[S390_RT1_MONTH]; in s390rtc_gettime()
318 bct.year = bcd[S390_RT1_YEAR]; in s390rtc_gettime()
327 uint8_t bcd[S390_RT1_NBYTES]; in s390rtc_settime() local
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/regex/data/att/
H A Drepetition.dat108 # "ab" then "a" then "bcd".
113 :HA#260:E (a|ab|c|bcd){0,}(d*) ababcd (0,6)(3,6)(6,6)
114 :HA#261:E (a|ab|c|bcd){1,}(d*) ababcd (0,6)(3,6)(6,6)
115 :HA#262:E (a|ab|c|bcd){2,}(d*) ababcd (0,6)(3,6)(6,6)
116 :HA#263:E (a|ab|c|bcd){3,}(d*) ababcd (0,6)(3,6)(6,6)
117 :HA#264:E (a|ab|c|bcd){4,}(d*) ababcd NOMATCH
118 :HA#265:E (a|ab|c|bcd){0,10}(d*) ababcd (0,6)(3,6)(6,6)
119 :HA#266:E (a|ab|c|bcd){1,10}(d*) ababcd (0,6)(3,6)(6,6)
120 :HA#267:E (a|ab|c|bcd){2,10}(d*) ababcd (0,6)(3,6)(6,6)
121 :HA#268:E (a|ab|c|bcd){3,10}(d*) ababcd (0,6)(3,6)(6,6)
[all …]
H A Dforcedassoc.dat3 E (a|ab)(c|bcd) abcd (0,4)(0,1)(1,4)
4 E (a|ab)(bcd|c) abcd (0,4)(0,1)(1,4)
5 E (ab|a)(c|bcd) abcd (0,4)(0,1)(1,4)
6 E (ab|a)(bcd|c) abcd (0,4)(0,1)(1,4)
7 E ((a|ab)(c|bcd))(d*) abcd (0,4)(0,4)(0,1)(1,4)(4,4)
8 E ((a|ab)(bcd|c))(d*) abcd (0,4)(0,4)(0,1)(1,4)(4,4)
9 E ((ab|a)(c|bcd))(d*) abcd (0,4)(0,4)(0,1)(1,4)(4,4)
10 E ((ab|a)(bcd|c))(d*) abcd (0,4)(0,4)(0,1)(1,4)(4,4)
11 E (a|ab)((c|bcd)(d*)) abcd (0,4)(0,2)(2,4)(2,3)(3,4)
12 E (a|ab)((bcd|c)(d*)) abcd (0,4)(0,2)(2,4)(2,3)(3,4)
[all …]
H A Dleftassoc.dat3 E (a|ab)(c|bcd)(d*) abcd (0,4)(0,1)(1,4)(4,4)
4 E (a|ab)(bcd|c)(d*) abcd (0,4)(0,1)(1,4)(4,4)
5 E (ab|a)(c|bcd)(d*) abcd (0,4)(0,1)(1,4)(4,4)
6 E (ab|a)(bcd|c)(d*) abcd (0,4)(0,1)(1,4)(4,4)
13 E (a|ab)(c|bcd)(d|.*) abcd (0,4)(0,1)(1,4)(4,4)
14 E (a|ab)(bcd|c)(d|.*) abcd (0,4)(0,1)(1,4)(4,4)
15 E (ab|a)(c|bcd)(d|.*) abcd (0,4)(0,1)(1,4)(4,4)
16 E (ab|a)(bcd|c)(d|.*) abcd (0,4)(0,1)(1,4)(4,4)
H A Drightassoc.dat3 E (a|ab)(c|bcd)(d*) abcd (0,4)(0,2)(2,3)(3,4)
4 E (a|ab)(bcd|c)(d*) abcd (0,4)(0,2)(2,3)(3,4)
5 E (ab|a)(c|bcd)(d*) abcd (0,4)(0,2)(2,3)(3,4)
6 E (ab|a)(bcd|c)(d*) abcd (0,4)(0,2)(2,3)(3,4)
13 E (a|ab)(c|bcd)(d|.*) abcd (0,4)(0,2)(2,3)(3,4)
14 E (a|ab)(bcd|c)(d|.*) abcd (0,4)(0,2)(2,3)(3,4)
15 E (ab|a)(c|bcd)(d|.*) abcd (0,4)(0,2)(2,3)(3,4)
16 E (ab|a)(bcd|c)(d|.*) abcd (0,4)(0,2)(2,3)(3,4)
/freebsd/crypto/libecc/scripts/
H A Dsha3.py54 bcd = [0] * 25
57 bcd[i] = state[i] ^ state[i + (5*1)] ^ state[i + (5*2)] ^ state[i + (5*3)] ^ state[i + (5*4)]
60 tmp = bcd[(i+4)%5] ^ keccak_rotl(bcd[(i+1)%5], 1)
66 bcd[j + (5*(((2*i)+(3*j)) % 5))] = keccak_rotl(state[i + (5*j)], keccak_rot[i][j])
70 state[i + (5*j)] = bcd[i + (5*j)] ^ (~bcd[((i+1)%5) + (5*j)] & bcd[((i+2)%5) + (5*j)])
/freebsd/sys/sys/
H A Dlibkern.h56 bcd2bin(int bcd) in bcd2bin() argument
59 KASSERT(bcd >= 0 && bcd < LIBKERN_LEN_BCD2BIN, in bcd2bin()
60 ("invalid bcd %d", bcd)); in bcd2bin()
61 return (bcd2bin_data[bcd]); in bcd2bin()
83 validbcd(int bcd) in validbcd() argument
86 return (bcd == 0 || (bcd > 0 && bcd <= 0x99 && bcd2bin_data[bcd] != 0)); in validbcd()
/freebsd/stand/userboot/userboot/
H A Duserboot_disk.c193 struct bcache_devdata bcd; in userdisk_strategy() local
197 bcd.dv_strategy = userdisk_realstrategy; in userdisk_strategy()
198 bcd.dv_devdata = devdata; in userdisk_strategy()
199 bcd.dv_cache = ud_info[dev->dd.d_unit].ud_bcache; in userdisk_strategy()
200 return (bcache_strategy(&bcd, rw, dblk + dev->d_offset, in userdisk_strategy()
/freebsd/sys/dev/smbios/
H A Dsmbios.c245 const uint8_t bcd = eps->BCD_revision; in smbios_attach() local
250 if (bcd < LIBKERN_LEN_BCD2BIN && bcd2bin(bcd) != 0) in smbios_attach()
252 bcd2bin(bcd >> 4), bcd2bin(bcd & 0x0f)); in smbios_attach()
/freebsd/sys/dev/usb/
H A Dusb_util.c134 usb_printbcd(char *p, uint16_t p_len, uint16_t bcd) in usb_printbcd() argument
136 if (snprintf(p, p_len, "%x.%02x", bcd >> 8, bcd & 0xff)) { in usb_printbcd()
H A Dusb_util.h35 void usb_printbcd(char *p, uint16_t p_len, uint16_t bcd);
/freebsd/usr.bin/sed/tests/
H A Dregress.hanoi.out8 :a : :bcd :
9 : :a :bcd :
/freebsd/stand/libsa/
H A Dstand.h392 #define bcd2bin(bcd) (bcd2bin_data[bcd]) argument
395 #define validbcd(bcd) (bcd == 0 || (bcd > 0 && bcd <= 0x99 && bcd2bin_data[bcd] != 0)) argument
/freebsd/sys/powerpc/powernv/
H A Dopal_dev.c235 bcd2bin32(int bcd) in bcd2bin32() argument
239 out += bcd2bin(bcd & 0xff); in bcd2bin32()
240 out += 100*bcd2bin((bcd & 0x0000ff00) >> 8); in bcd2bin32()
241 out += 10000*bcd2bin((bcd & 0x00ff0000) >> 16); in bcd2bin32()
242 out += 1000000*bcd2bin((bcd & 0xffff0000) >> 24); in bcd2bin32()
/freebsd/usr.sbin/apm/
H A Dapm.c97 bcd2int(int bcd) in bcd2int() argument
102 if (bcd > 0x9999) in bcd2int()
105 while (bcd) { in bcd2int()
106 retval += (bcd & 0xf) * place; in bcd2int()
107 bcd >>= 4; in bcd2int()
/freebsd/contrib/bmake/unit-tests/
H A Dvarmod-sysv.mk101 .if ${a.bcd.e:L:a.%=%} != "bcd.e"
105 .if ${a.bcd.e:L:a.%=&} != "&"
/freebsd/contrib/ntp/kernel/sys/
H A Di8253.h26 unsigned int bcd : 1; member
/freebsd/stand/efi/libefi/
H A Defipart.c1046 struct bcache_devdata bcd; in efipart_strategy() local
1062 bcd.dv_strategy = efipart_realstrategy; in efipart_strategy()
1063 bcd.dv_devdata = devdata; in efipart_strategy()
1064 bcd.dv_cache = pd->pd_bcache; in efipart_strategy()
1071 return (bcache_strategy(&bcd, rw, blk + offset, in efipart_strategy()
1074 return (bcache_strategy(&bcd, rw, blk, size, buf, rsize)); in efipart_strategy()
/freebsd/lib/libpmc/pmu-events/arch/powerpc/
H A Dmapfile.csv16 004[bcd][[:xdigit:]]{4},1,power8,core
/freebsd/bin/sh/tests/builtins/
H A Dcase9.025 check b bcd
/freebsd/sys/contrib/device-tree/include/dt-bindings/usb/
H A Dpd.h150 #define VDO_PRODUCT(pid, bcd) (((pid) & 0xffff) << 16 | ((bcd) & 0xffff)) argument
/freebsd/contrib/netbsd-tests/lib/libc/regex/data/
H A Dbackref.in16 \(a\)\1bcd b aabcd aabcd
/freebsd/stand/i386/libi386/
H A Dbiosdisk.c942 struct bcache_devdata bcd; in bd_strategy() local
951 bcd.dv_strategy = bd_realstrategy; in bd_strategy()
952 bcd.dv_devdata = devdata; in bd_strategy()
953 bcd.dv_cache = bd->bd_bcache; in bd_strategy()
961 return (bcache_strategy(&bcd, rw, dblk + offset, size, in bd_strategy()

12