Home
last modified time | relevance | path

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

12345678910>>...60

/freebsd-13.1/contrib/kyua/utils/
H A Dunits_test.cpp98 ATF_REQUIRE_EQ(units::bytes(TB), units::bytes::parse("1T")); in ATF_TEST_CASE_BODY()
99 ATF_REQUIRE_EQ(units::bytes(TB), units::bytes::parse("1t")); in ATF_TEST_CASE_BODY()
111 ATF_REQUIRE_EQ(units::bytes(GB), units::bytes::parse("1G")); in ATF_TEST_CASE_BODY()
112 ATF_REQUIRE_EQ(units::bytes(GB), units::bytes::parse("1g")); in ATF_TEST_CASE_BODY()
124 ATF_REQUIRE_EQ(units::bytes(MB), units::bytes::parse("1M")); in ATF_TEST_CASE_BODY()
185 units::bytes bytes; in ATF_TEST_CASE_BODY() local
188 ATF_REQUIRE_EQ(units::bytes(12 * units::MB), bytes); in ATF_TEST_CASE_BODY()
197 units::bytes bytes; in ATF_TEST_CASE_BODY() local
200 ATF_REQUIRE_EQ(units::bytes(12 * units::MB), bytes); in ATF_TEST_CASE_BODY()
213 units::bytes bytes(123456789); in ATF_TEST_CASE_BODY() local
[all …]
H A Dunits.cpp45 units::bytes::bytes(void) : in bytes() function in units::bytes
54 units::bytes::bytes(const uint64_t count_) : in bytes() function in units::bytes
67 units::bytes
68 units::bytes::parse(const std::string& in_str) in parse()
105 return bytes(uint64_t(count * multiplier)); in parse()
113 units::bytes::format(void) const in format()
130 units::bytes::operator uint64_t(void) const in operator uint64_t()
146 units::operator>>(std::istream& input, bytes& rhs) in operator >>()
152 rhs = bytes::parse(word); in operator >>()
169 units::operator<<(std::ostream& output, const bytes& rhs) in operator <<()
/freebsd-13.1/stand/libsa/
H A Dzalloc.c101 bytes = (bytes + MEMNODE_SIZE_MASK) & ~MEMNODE_SIZE_MASK; in znalloc()
103 if (bytes == 0) in znalloc()
159 mp->mp_Used += bytes; in znalloc()
184 bytes = (bytes + MEMNODE_SIZE_MASK) & ~MEMNODE_SIZE_MASK; in zfree()
186 if (bytes == 0) in zfree()
201 mp->mp_Used -= bytes; in zfree()
216 (uintmax_t)bytes); in zfree()
226 bytes + mn->mr_Bytes; in zfree()
251 (uintmax_t)bytes); in zfree()
286 mp->mp_Used = bytes; in zextendPool()
[all …]
H A Dzalloc_malloc.c62 return (Malloc_align(bytes, 1)); in Malloc()
72 return (Malloc_align(bytes, alignment)); in Memalign()
76 Malloc_align(size_t bytes, size_t alignment) in Malloc_align() argument
81 bytes += MALLOCALIGN + 1; in Malloc_align()
83 bytes += MALLOCALIGN; in Malloc_align()
102 res->ga_Bytes = bytes; in Malloc_align()
104 *((signed char *)res + bytes - 1) = -2; in Malloc_align()
113 size_t bytes; in Free() local
148 bytes = res->ga_Bytes; in Free()
149 zfree(&MallocPool, res, bytes); in Free()
[all …]
/freebsd-13.1/sys/amd64/pci/
H A Dpci_cfgreg.c48 int bytes);
50 unsigned reg, unsigned bytes);
52 unsigned reg, int data, unsigned bytes);
109 if (reg == PCIR_INTLINE && bytes == 1) { in pci_cfgregread()
145 (unsigned)bytes <= 4 && (reg & (bytes - 1)) == 0) { in pci_cfgenable()
173 switch (bytes) { in pcireg_cfgread()
198 switch (bytes) { in pcireg_cfgwrite()
274 unsigned bytes) in pciereg_cfgread() argument
285 switch (bytes) { in pciereg_cfgread()
305 unsigned bytes) in pciereg_cfgwrite() argument
[all …]
/freebsd-13.1/tools/tools/crypto/
H A 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-13.1/share/examples/sound/
H A 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-13.1/contrib/file/magic/Magdir/
H A Dforth25 >>>24 lelong x Text length: %d bytes,
26 >>>28 lelong x Data 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,
56 >4 lelong x Text length: %d bytes,
57 >8 lelong x Data length: %d bytes,
58 >12 lelong x BSS length: %d bytes,
[all …]
/freebsd-13.1/contrib/llvm-project/lldb/include/lldb/Utility/
H A 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-13.1/contrib/netbsd-tests/ipf/expected/
H A 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-13.1/contrib/processor-trace/libipt/test/src/
H A Dptunit-section.c167 sfix_write(sfix, bytes); in create()
202 sfix_write(sfix, bytes); in create_truncated()
369 sfix_write(sfix, bytes); in get_overflow()
391 sfix_write(sfix, bytes); in attach_overflow()
413 sfix_write(sfix, bytes); in attach_bad_ucount()
434 sfix_write(sfix, bytes); in map_change()
440 sfix_write(sfix, bytes); in map_change()
453 sfix_write(sfix, bytes); in map_put()
476 sfix_write(sfix, bytes); in unmap_nomap()
493 sfix_write(sfix, bytes); in map_overflow()
[all …]
/freebsd-13.1/usr.sbin/bhyve/
H A Dinout.c73 switch (bytes) { in default_inout()
119 bytes = vmexit->u.inout.bytes; in emulate_inout()
124 assert(bytes == 1 || bytes == 2 || bytes == 4); in emulate_inout()
170 bytes, prot, iov, nitems(iov), &fault); in emulate_inout()
187 vm_copyin(ctx, vcpu, iov, &val, bytes); in emulate_inout()
194 vm_copyout(ctx, vcpu, &val, iov, bytes); in emulate_inout()
198 index -= bytes; in emulate_inout()
200 index += bytes; in emulate_inout()
227 val = eax & vie_size2mask(bytes); in emulate_inout()
230 eax &= ~vie_size2mask(bytes); in emulate_inout()
[all …]
/freebsd-13.1/sys/i386/pci/
H A Dpci_cfgreg.c81 int bytes);
86 unsigned reg, unsigned bytes);
216 && bytes != 3 in pci_cfgenable()
217 && (unsigned)bytes <= 4 in pci_cfgenable()
218 && (reg & (bytes - 1)) == 0) { in pci_cfgenable()
266 switch (bytes) { in pcireg_cfgread()
291 switch (bytes) { in pcireg_cfgwrite()
576 unsigned bytes) in pciereg_cfgread() argument
588 switch (bytes) { in pciereg_cfgread()
609 unsigned bytes) in pciereg_cfgwrite() argument
[all …]
/freebsd-13.1/contrib/libxo/tests/gettext/saved/
H A Dgt_01.XP.out12 <bytes>0</bytes>
13 <bytes>1</bytes>
14 <bytes>2</bytes>
15 <bytes>3</bytes>
16 <bytes>4</bytes>
H A Dgt_01.X.out1 …ymay</owner><target>ouchcay</target><bytes>0</bytes><bytes>1</bytes><bytes>2</bytes><bytes>3</byte…
/freebsd-13.1/stand/efi/libefi/
H A 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-13.1/sys/contrib/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/
H A 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-13.1/contrib/pam_modules/pam_passwdqc/
H A 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()
/freebsd-13.1/crypto/openssh/
H A 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-13.1/contrib/tcpdump/
H A Dprint-medsa.c49 u_char bytes[6]; member
54 #define TAG(medsa) (medsa->bytes[2] >> 6)
58 #define SRC_TAG(medsa) ((medsa->bytes[2] >> 5) & 0x01)
59 #define SRC_DEV(medsa) (medsa->bytes[2] & 0x1f)
60 #define SRC_PORT(medsa) ((medsa->bytes[3] >> 3) & 0x01f)
61 #define TRUNK(medsa) ((medsa->bytes[3] >> 2) & 0x01)
62 #define CODE(medsa) ((medsa->bytes[3] & 0x06) | \
63 ((medsa->bytes[4] >> 4) & 0x01))
67 #define CFI(medsa) (medsa->bytes[3] & 0x01)
68 #define PRI(medsa) (medsa->bytes[4] >> 5)
[all …]
/freebsd-13.1/lib/libc/isc/
H A Dev_streams.c235 while (bytes > 0U) { in consume()
237 str->iovCur->iov_len -= bytes; in consume()
240 str->ioDone += bytes; in consume()
241 bytes = 0; in consume()
273 int bytes; in writable() local
278 if (bytes > 0) { in writable()
281 consume(str, bytes); in writable()
296 int bytes; in readable() local
301 if (bytes > 0) { in readable()
304 consume(str, bytes); in readable()
[all …]
/freebsd-13.1/contrib/llvm-project/lldb/source/Utility/
H A DRegisterValue.cpp201 memset(buffer.bytes, 0, sizeof(buffer.bytes)); in SetValueFromData()
287 std::vector<uint8_t> bytes; in ParseVectorEncoding() local
294 bytes.push_back(byte); in ParseVectorEncoding()
299 if (bytes.size() != byte_size) in ParseVectorEncoding()
499 ::memcpy(buffer.bytes, rhs.buffer.bytes, kMaxRegisterByteSize); in CopyValue()
705 m_scalar.GetBytes(buffer.bytes); in GetBytes()
706 return buffer.bytes; in GetBytes()
708 return buffer.bytes; in GetBytes()
757 if (bytes && length > 0) { in SetBytes()
762 memcpy(buffer.bytes, bytes, length); in SetBytes()
[all …]
/freebsd-13.1/crypto/openssl/crypto/x509/
H A Dx509name.c143 ne = X509_NAME_ENTRY_create_by_OBJ(NULL, obj, type, bytes, len); in X509_NAME_add_entry_by_OBJ()
157 ne = X509_NAME_ENTRY_create_by_NID(NULL, nid, type, bytes, len); in X509_NAME_add_entry_by_NID()
171 ne = X509_NAME_ENTRY_create_by_txt(NULL, field, type, bytes, len); in X509_NAME_add_entry_by_txt()
256 nentry = X509_NAME_ENTRY_create_by_OBJ(ne, obj, type, bytes, len); in X509_NAME_ENTRY_create_by_txt()
294 if (!X509_NAME_ENTRY_set_data(ret, type, bytes, len)) in X509_NAME_ENTRY_create_by_OBJ()
319 const unsigned char *bytes, int len) in X509_NAME_ENTRY_set_data() argument
323 if ((ne == NULL) || ((bytes == NULL) && (len != 0))) in X509_NAME_ENTRY_set_data()
326 return ASN1_STRING_set_by_NID(&ne->value, bytes, in X509_NAME_ENTRY_set_data()
330 len = strlen((const char *)bytes); in X509_NAME_ENTRY_set_data()
331 i = ASN1_STRING_set(ne->value, bytes, len); in X509_NAME_ENTRY_set_data()
[all …]
/freebsd-13.1/sys/amd64/vmm/
H A Dvmm_ioport.c77 switch (vmexit->u.inout.bytes) { in inout_instruction()
119 mask = vie_size2mask(vmexit->u.inout.bytes); in emulate_inout_port()
126 vmexit->u.inout.port, vmexit->u.inout.bytes, &val); in emulate_inout_port()
160 int bytes, error; in vm_handle_inout() local
162 bytes = vmexit->u.inout.bytes; in vm_handle_inout()
163 KASSERT(bytes == 1 || bytes == 2 || bytes == 4, in vm_handle_inout()
164 ("vm_handle_inout: invalid operand size %d", bytes)); in vm_handle_inout()
/freebsd-13.1/usr.sbin/fstyp/
H A Dhammer2.c74 size_t bytes, io_bytes, boff; in read_media() local
77 if (bytes) in read_media()
78 bytes = (size_t)1 << bytes; in read_media()
79 *media_bytes = bytes; in read_media()
81 if (!bytes) { in read_media()
91 while (io_bytes + boff < bytes) in read_media()
109 memcpy(media, (char *)media + boff, bytes); in read_media()
120 size_t bytes; in find_pfs() local
123 media = read_media(fp, bref, &bytes); in find_pfs()
210 size_t bytes; in read_label() local
[all …]

12345678910>>...60