Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 1482) sorted by relevance

12345678910>>...60

/freebsd-12-stable/stand/libsa/
Dzalloc.c91 znalloc(MemPool *mp, uintptr_t bytes, size_t align) in znalloc() argument
101 bytes = (bytes + MEMNODE_SIZE_MASK) & ~MEMNODE_SIZE_MASK; in znalloc()
103 if (bytes == 0) in znalloc()
111 if (bytes > mp->mp_Size - mp->mp_Used) in znalloc()
124 if (bytes + extra > mn->mr_Bytes) in znalloc()
151 if (mn->mr_Bytes == bytes) { in znalloc()
154 mn = (MemNode *)((char *)mn + bytes); in znalloc()
156 mn->mr_Bytes = ((MemNode *)ptr)->mr_Bytes - bytes; in znalloc()
159 mp->mp_Used += bytes; in znalloc()
175 zfree(MemPool *mp, void *ptr, uintptr_t bytes) in zfree() argument
[all …]
Dzalloc_malloc.c56 Malloc(size_t bytes, const char *file __unused, int line __unused) in Malloc() argument
58 return (Malloc_align(bytes, 1)); in Malloc()
62 Memalign(size_t alignment, size_t bytes, const char *file __unused, in Memalign() argument
68 return (Malloc_align(bytes, alignment)); in Memalign()
72 Malloc_align(size_t bytes, size_t alignment) in Malloc_align() argument
77 bytes += MALLOCALIGN + 1; in Malloc_align()
79 bytes += MALLOCALIGN; in Malloc_align()
82 while ((res = znalloc(&MallocPool, bytes, alignment)) == NULL) { in Malloc_align()
83 int incr = (bytes + BLKEXTENDMASK) & ~BLKEXTENDMASK; in Malloc_align()
98 res->ga_Bytes = bytes; in Malloc_align()
[all …]
/freebsd-12-stable/sys/amd64/pci/
Dpci_cfgreg.c48 int bytes);
50 unsigned reg, unsigned bytes);
52 unsigned reg, int data, unsigned bytes);
53 static int pcireg_cfgread(int bus, int slot, int func, int reg, int bytes);
54 static void pcireg_cfgwrite(int bus, int slot, int func, int reg, int data, int bytes);
82 pci_docfgregread(int bus, int slot, int func, int reg, int bytes) in pci_docfgregread() argument
88 return (pciereg_cfgread(bus, slot, func, reg, bytes)); in pci_docfgregread()
90 return (pcireg_cfgread(bus, slot, func, reg, bytes)); in pci_docfgregread()
97 pci_cfgregread(int bus, int slot, int func, int reg, int bytes) in pci_cfgregread() argument
109 if (reg == PCIR_INTLINE && bytes == 1) { in pci_cfgregread()
[all …]
/freebsd-12-stable/contrib/processor-trace/libipt/test/src/
Dptunit-section.c163 uint8_t bytes[] = { 0xcc, 0xcc, 0xcc, 0xcc, 0xcc }; in create() local
166 sfix_write(sfix, bytes); in create()
194 uint8_t bytes[] = { 0xcc, 0xcc, 0xcc, 0xcc, 0xcc }; in create_truncated() local
197 sfix_write(sfix, bytes); in create_truncated()
209 ptu_uint_eq(size, sizeof(bytes) - 1); in create_truncated()
357 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in get_overflow() local
360 sfix_write(sfix, bytes); in get_overflow()
378 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in attach_overflow() local
381 sfix_write(sfix, bytes); in attach_overflow()
399 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in attach_bad_ucount() local
[all …]
/freebsd-12-stable/tools/tools/crypto/
DREADME19 0.129 sec, 2048 des crypts, 8 bytes, 127120 byte/sec, 1.0 Mb/sec
20 0.129 sec, 2048 des crypts, 16 bytes, 253915 byte/sec, 1.9 Mb/sec
21 0.129 sec, 2048 des crypts, 32 bytes, 508942 byte/sec, 3.9 Mb/sec
22 0.128 sec, 2048 des crypts, 64 bytes, 1020135 byte/sec, 7.8 Mb/sec
23 0.134 sec, 2048 des crypts, 128 bytes, 1954869 byte/sec, 14.9 Mb/sec
24 0.142 sec, 2048 des crypts, 256 bytes, 3698107 byte/sec, 28.2 Mb/sec
25 0.190 sec, 2048 des crypts, 1024 bytes, 11037700 byte/sec, 84.2 Mb/sec
26 0.264 sec, 2048 des crypts, 2048 bytes, 15891127 byte/sec, 121.2 Mb/sec
27 0.403 sec, 2048 des crypts, 4096 bytes, 20828998 byte/sec, 158.9 Mb/sec
28 0.687 sec, 2048 des crypts, 8192 bytes, 24426602 byte/sec, 186.4 Mb/sec
[all …]
/freebsd-12-stable/contrib/file/magic/Magdir/
Dforth25 >>>24 lelong x Text length: %d bytes,
26 >>>28 lelong x Data length: %d bytes,
27 >>>32 lelong x Text Relocation Table length: %d bytes,
28 >>>36 lelong x Data Relocation Table length: %d bytes,
30 >>>44 lelong x BSS length: %d bytes
35 >>2 leshort x + %d bytes,
47 >4 belong x Text length: %d bytes,
48 >8 belong x Data length: %d bytes,
49 >12 belong x BSS length: %d bytes,
50 >16 belong x Symbol Table length: %d bytes,
[all …]
/freebsd-12-stable/share/examples/sound/
Dbasic.c52 int bytes = config.buffer_info.bytes; in main() local
53 int8_t *ibuf = malloc(bytes); in main()
54 int8_t *obuf = malloc(bytes); in main()
55 sample_t *channels = malloc(bytes); in main()
59 bytes, in main()
68 ret = read(config.fd, ibuf, bytes); in main()
69 if (ret < bytes) { in main()
73 bytes, in main()
81 ret = write(config.fd, obuf, bytes); in main()
82 if (ret < bytes) { in main()
[all …]
/freebsd-12-stable/contrib/gcclibs/libdecnumber/
Ddecimal128.c117 decDensePackCoeff (dn, d128->bytes, sizeof (d128->bytes), 0); in decimal128FromNumber()
124 d128->bytes[0] = top; in decimal128FromNumber()
144 d128->bytes[0] = (uByte) (comb << 2); in decimal128FromNumber()
162 decDensePackCoeff (dn, d128->bytes, sizeof (d128->bytes), pad); in decimal128FromNumber()
165 msd = ((unsigned) d128->bytes[1] << 2) & 0x0c; /* top 2 bits */ in decimal128FromNumber()
166 msd |= ((unsigned) d128->bytes[2] >> 6); /* low 2 bits */ in decimal128FromNumber()
167 d128->bytes[1] &= 0xfc; in decimal128FromNumber()
168 d128->bytes[2] &= 0x3f; in decimal128FromNumber()
175 d128->bytes[0] = (uByte) (comb << 2); in decimal128FromNumber()
200 uInt top = d128->bytes[0] & 0x7f; /* top byte, less sign bit */ in decimal128ToNumber()
[all …]
Ddecimal32.c117 decDensePackCoeff (dn, d32->bytes, sizeof (d32->bytes), 0); in decimal32FromNumber()
124 d32->bytes[0] = top; in decimal32FromNumber()
144 d32->bytes[0] = (uByte) (comb << 2); in decimal32FromNumber()
162 decDensePackCoeff (dn, d32->bytes, sizeof (d32->bytes), pad); in decimal32FromNumber()
165 msd = ((unsigned) d32->bytes[1] >> 4); in decimal32FromNumber()
166 d32->bytes[1] &= 0x0f; in decimal32FromNumber()
172 d32->bytes[0] = (uByte) (comb << 2); in decimal32FromNumber()
197 uInt top = d32->bytes[0] & 0x7f; /* top byte, less sign bit */ in decimal32ToNumber()
241 wk.bytes[0] = 0; /* clear all but coecon */ in decimal32ToNumber()
242 wk.bytes[1] &= 0x0f; /* .. */ in decimal32ToNumber()
[all …]
Ddecimal64.c117 decDensePackCoeff (dn, d64->bytes, sizeof (d64->bytes), 0); in decimal64FromNumber()
124 d64->bytes[0] = top; in decimal64FromNumber()
144 d64->bytes[0] = (uByte) (comb << 2); in decimal64FromNumber()
161 decDensePackCoeff (dn, d64->bytes, sizeof (d64->bytes), pad); in decimal64FromNumber()
164 msd = ((unsigned) d64->bytes[1] >> 2) & 0x0f; in decimal64FromNumber()
165 d64->bytes[1] &= 0x03; in decimal64FromNumber()
171 d64->bytes[0] = (uByte) (comb << 2); in decimal64FromNumber()
196 uInt top = d64->bytes[0] & 0x7f; /* top byte, less sign bit */ in decimal64ToNumber()
240 wk.bytes[0] = 0; /* clear all but coecon */ in decimal64ToNumber()
241 wk.bytes[1] &= 0x03; /* .. */ in decimal64ToNumber()
[all …]
Ddecimal128.h65 uint8_t bytes[DECIMAL128_Bytes]; /* decimal128: 1, 5, 12, 110 bits */ member
79 #define decimal128Sign(d) ((unsigned)(d)->bytes[0]>>7)
82 #define decimal128Comb(d) (((d)->bytes[0] & 0x7c)>>2)
85 #define decimal128ExpCon(d) ((((d)->bytes[0] & 0x03)<<10) \
86 | ((unsigned)(d)->bytes[1]<<2) \
87 | ((unsigned)(d)->bytes[2]>>6))
91 (d)->bytes[0]|=((unsigned)(b)<<7);}
97 (d)->bytes[0]|=(uint8_t)((e)>>10); \
98 (d)->bytes[1] =(uint8_t)(((e)&0x3fc)>>2); \
99 (d)->bytes[2]|=(uint8_t)(((e)&0x03)<<6);}
/freebsd-12-stable/contrib/netbsd-tests/ipf/expected/
Df2927 FWD: IN pkts 2 bytes 56 OUT pkts 2 bytes 56
28 REV: IN pkts 0 bytes 0 OUT pkts 0 bytes 0
33 FWD: IN pkts 2 bytes 56 OUT pkts 2 bytes 56
34 REV: IN pkts 0 bytes 0 OUT pkts 0 bytes 0
39 FWD: IN pkts 2 bytes 56 OUT pkts 2 bytes 56
40 REV: IN pkts 0 bytes 0 OUT pkts 0 bytes 0
45 FWD: IN pkts 2 bytes 56 OUT pkts 2 bytes 56
46 REV: IN pkts 0 bytes 0 OUT pkts 0 bytes 0
/freebsd-12-stable/contrib/llvm-project/lldb/include/lldb/Utility/
DUUID.h45 static UUID fromData(const void *bytes, uint32_t num_bytes) { in fromData() argument
46 if (bytes) in fromData()
47 return fromData({reinterpret_cast<const uint8_t *>(bytes), num_bytes}); in fromData()
53 static UUID fromData(llvm::ArrayRef<uint8_t> bytes) { return UUID(bytes); } in fromData() argument
57 static UUID fromOptionalData(const void *bytes, uint32_t num_bytes) { in fromOptionalData() argument
58 if (bytes) in fromOptionalData()
60 {reinterpret_cast<const uint8_t *>(bytes), num_bytes}); in fromOptionalData()
66 static UUID fromOptionalData(llvm::ArrayRef<uint8_t> bytes) { in fromOptionalData() argument
67 if (llvm::all_of(bytes, [](uint8_t b) { return b == 0; })) in fromOptionalData()
69 return UUID(bytes); in fromOptionalData()
[all …]
/freebsd-12-stable/usr.sbin/bhyve/
Dinout.c68 default_inout(struct vmctx *ctx, int vcpu, int in, int port, int bytes, in default_inout() argument
72 switch (bytes) { in default_inout()
108 int addrsize, bytes, flags, in, port, prot, rep; in emulate_inout() local
118 bytes = vmexit->u.inout.bytes; in emulate_inout()
123 assert(bytes == 1 || bytes == 2 || bytes == 4); in emulate_inout()
161 vis->seg_name, &vis->seg_desc, index, bytes, in emulate_inout()
168 bytes, prot, iov, nitems(iov), &fault); in emulate_inout()
177 if (vie_alignment_check(vis->paging.cpl, bytes, in emulate_inout()
185 vm_copyin(ctx, vcpu, iov, &val, bytes); in emulate_inout()
187 retval = handler(ctx, vcpu, in, port, bytes, &val, arg); in emulate_inout()
[all …]
/freebsd-12-stable/sys/i386/pci/
Dpci_cfgreg.c81 int bytes);
82 static int pcireg_cfgread(int bus, int slot, int func, int reg, int bytes);
83 static void pcireg_cfgwrite(int bus, int slot, int func, int reg, int data, int bytes);
86 unsigned reg, unsigned bytes);
88 unsigned reg, int data, unsigned bytes);
156 pci_docfgregread(int bus, int slot, int func, int reg, int bytes) in pci_docfgregread() argument
162 return (pciereg_cfgread(bus, slot, func, reg, bytes)); in pci_docfgregread()
164 return (pcireg_cfgread(bus, slot, func, reg, bytes)); in pci_docfgregread()
171 pci_cfgregread(int bus, int slot, int func, int reg, int bytes) in pci_cfgregread() argument
180 if (reg == PCIR_INTLINE && bytes == 1) { in pci_cfgregread()
[all …]
/freebsd-12-stable/contrib/sendmail/libsm/
Dutf8_valid.c44 const unsigned char *bytes; local
47 bytes = (const unsigned char *)b;
56 byte1 = bytes[index++];
63 if (byte1 < 0xC2 || bytes[index++] > 0xBF)
71 unsigned char byte2 = bytes[index++];
78 || bytes[index++] > 0xBF)
87 int byte2 = bytes[index++];
95 || bytes[index++] > 0xBF
97 || bytes[index++] > 0xBF)
/freebsd-12-stable/stand/efi/libefi/
Defichar.c136 int c, bytes; in utf8_to_ucs2() local
148 bytes = 0; in utf8_to_ucs2()
157 if (bytes != 0) in utf8_to_ucs2()
161 bytes = 3; in utf8_to_ucs2()
164 bytes = 2; in utf8_to_ucs2()
167 bytes = 1; in utf8_to_ucs2()
170 bytes = 0; in utf8_to_ucs2()
174 if (bytes > 0) { in utf8_to_ucs2()
176 bytes--; in utf8_to_ucs2()
177 } else if (bytes == 0) in utf8_to_ucs2()
[all …]
/freebsd-12-stable/contrib/libxo/tests/gettext/saved/
Dgt_01.XP.out12 <bytes>0</bytes>
13 <bytes>1</bytes>
14 <bytes>2</bytes>
15 <bytes>3</bytes>
16 <bytes>4</bytes>
Dgt_01.X.out1 …ymay</owner><target>ouchcay</target><bytes>0</bytes><bytes>1</bytes><bytes>2</bytes><bytes>3</byte…
/freebsd-12-stable/contrib/gcc/
Ddfp.c160 buf[0] = *(uint32_t *) d32.bytes; in encode_decimal32()
162 buf[0] = dfp_byte_swap (*(uint32_t *) d32.bytes); in encode_decimal32()
179 *((uint32_t *) d32.bytes) = (uint32_t) buf[0]; in decode_decimal32()
181 *((uint32_t *) d32.bytes) = dfp_byte_swap ((uint32_t) buf[0]); in decode_decimal32()
205 buf[0] = *(uint32_t *) &d64.bytes[0]; in encode_decimal64()
206 buf[1] = *(uint32_t *) &d64.bytes[4]; in encode_decimal64()
210 buf[1] = dfp_byte_swap (*(uint32_t *) &d64.bytes[0]); in encode_decimal64()
211 buf[0] = dfp_byte_swap (*(uint32_t *) &d64.bytes[4]); in encode_decimal64()
230 *((uint32_t *) &d64.bytes[0]) = (uint32_t) buf[0]; in decode_decimal64()
231 *((uint32_t *) &d64.bytes[4]) = (uint32_t) buf[1]; in decode_decimal64()
[all …]
Dtree-object-size.c171 tree bytes; in addr_object_size() local
200 bytes = compute_object_offset (TREE_OPERAND (ptr, 0), var); in addr_object_size()
201 if (bytes != error_mark_node) in addr_object_size()
203 if (TREE_CODE (bytes) == INTEGER_CST in addr_object_size()
204 && tree_int_cst_lt (TYPE_SIZE_UNIT (TREE_TYPE (var)), bytes)) in addr_object_size()
205 bytes = size_zero_node; in addr_object_size()
207 bytes = size_binop (MINUS_EXPR, in addr_object_size()
208 TYPE_SIZE_UNIT (TREE_TYPE (var)), bytes); in addr_object_size()
212 bytes = TYPE_SIZE_UNIT (TREE_TYPE (pt_var)); in addr_object_size()
214 if (host_integerp (bytes, 1)) in addr_object_size()
[all …]
/freebsd-12-stable/crypto/openssh/
Dprogressmeter.c88 format_rate(char *buf, int size, off_t bytes) in format_rate() argument
92 bytes *= 100; in format_rate()
93 for (i = 0; bytes >= 100*1000 && unit[i] != 'T'; i++) in format_rate()
94 bytes = (bytes + 512) / 1024; in format_rate()
97 bytes = (bytes + 512) / 1024; in format_rate()
100 (long long) (bytes + 5) / 100, in format_rate()
101 (long long) (bytes + 5) / 10 % 10, in format_rate()
107 format_size(char *buf, int size, off_t bytes) in format_size() argument
111 for (i = 0; bytes >= 10000 && unit[i] != 'T'; i++) in format_size()
112 bytes = (bytes + 512) / 1024; in format_size()
[all …]
/freebsd-12-stable/sys/contrib/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/
Dpoly1305_donna.c16 unsigned long long bytes) in poly1305_update() argument
24 if (want > bytes) { in poly1305_update()
25 want = bytes; in poly1305_update()
30 bytes -= want; in poly1305_update()
41 if (bytes >= poly1305_block_size) { in poly1305_update()
42 unsigned long long want = (bytes & ~(poly1305_block_size - 1)); in poly1305_update()
46 bytes -= want; in poly1305_update()
50 if (bytes) { in poly1305_update()
51 for (i = 0; i < bytes; i++) { in poly1305_update()
54 st->leftover += bytes; in poly1305_update()
/freebsd-12-stable/lib/libc/isc/
Dev_streams.c50 static void consume(evStream *str, size_t bytes);
234 consume(evStream *str, size_t bytes) { in consume() argument
235 while (bytes > 0U) { in consume()
236 if (bytes < (size_t)str->iovCur->iov_len) { in consume()
237 str->iovCur->iov_len -= bytes; in consume()
239 ((u_char *)str->iovCur->iov_base + bytes); in consume()
240 str->ioDone += bytes; in consume()
241 bytes = 0; in consume()
243 bytes -= str->iovCur->iov_len; in consume()
273 int bytes; in writable() local
[all …]
/freebsd-12-stable/contrib/pam_modules/pam_passwdqc/
Dpasswdqc_random.c44 unsigned char bytes[2]; in _passwdqc_random() local
60 if (read_loop(fd, bytes, sizeof(bytes)) != sizeof(bytes)) { in _passwdqc_random()
65 i = (((int)bytes[1] & 0x0f) << 8) | (int)bytes[0]; in _passwdqc_random()
78 i = ((int)bytes[1] & 0x70) >> 4; in _passwdqc_random()
86 memset(bytes, 0, sizeof(bytes)); in _passwdqc_random()

12345678910>>...60