Home
last modified time | relevance | path

Searched refs:bytes (Results 26 – 50 of 1588) sorted by relevance

12345678910>>...64

/freebsd/sys/contrib/zstd/lib/compress/
H A Dzstd_cwksp.h240 assert(bytes != ZSTD_CWKSP_ALIGNMENT_BYTES); in ZSTD_cwksp_bytes_to_align_ptr()
241 return bytes; in ZSTD_cwksp_bytes_to_align_ptr()
254 void* const alloc = (BYTE*)ws->allocStart - bytes; in ZSTD_cwksp_reserve_internal_buffer_space()
257 alloc, bytes, ZSTD_cwksp_available_space(ws) - bytes); in ZSTD_cwksp_reserve_internal_buffer_space()
340 bytes += 2 * ZSTD_CWKSP_ASAN_REDZONE_SIZE; in ZSTD_cwksp_reserve_internal()
394 end = (BYTE *)alloc + bytes; in ZSTD_cwksp_reserve_table()
398 alloc, bytes, ZSTD_cwksp_available_space(ws) - bytes); in ZSTD_cwksp_reserve_table()
399 assert((bytes & (sizeof(U32)-1)) == 0); in ZSTD_cwksp_reserve_table()
411 __asan_unpoison_memory_region(alloc, bytes); in ZSTD_cwksp_reserve_table()
439 assert(bytes % ZSTD_ALIGNOF(void*) == 0); in ZSTD_cwksp_reserve_object()
[all …]
/freebsd/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/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/lib/libc/isc/
H A Dev_streams.c229 while (bytes > 0U) { in consume()
231 str->iovCur->iov_len -= bytes; in consume()
234 str->ioDone += bytes; in consume()
235 bytes = 0; in consume()
267 int bytes; in writable() local
272 if (bytes > 0) { in writable()
275 consume(str, bytes); in writable()
290 int bytes; in readable() local
295 if (bytes > 0) { in readable()
298 consume(str, bytes); in readable()
[all …]
/freebsd/crypto/openssl/test/recipes/30-test_evp_data/
H A Devpciph_aes_cts.txt17 # 32 bytes input
24 # 48 bytes input
31 # 64 bytes input
53 # 31 bytes input
62 # 32 bytes input
71 # 47 bytes input
91 # 47 bytes input
99 # 127 bytes
107 # 129 bytes
187 # 47 bytes input
[all …]
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_cwksp.h229 alloc = (BYTE *)ws->allocStart - bytes; in ZSTD_cwksp_reserve_internal()
237 alloc, bytes, ZSTD_cwksp_available_space(ws) - bytes); in ZSTD_cwksp_reserve_internal()
254 __asan_unpoison_memory_region(alloc, bytes); in ZSTD_cwksp_reserve_internal()
271 assert((bytes & (sizeof(U32)-1)) == 0); in ZSTD_cwksp_reserve_aligned()
283 void* end = (BYTE *)alloc + bytes; in ZSTD_cwksp_reserve_table()
287 alloc, bytes, ZSTD_cwksp_available_space(ws) - bytes); in ZSTD_cwksp_reserve_table()
288 assert((bytes & (sizeof(U32)-1)) == 0); in ZSTD_cwksp_reserve_table()
300 __asan_unpoison_memory_region(alloc, bytes); in ZSTD_cwksp_reserve_table()
310 size_t roundedBytes = ZSTD_cwksp_align(bytes, sizeof(void*)); in ZSTD_cwksp_reserve_object()
323 assert((bytes & (sizeof(void*)-1)) == 0); in ZSTD_cwksp_reserve_object()
[all …]
/freebsd/crypto/openssl/crypto/x509/
H A Dx509name.c148 ne = X509_NAME_ENTRY_create_by_OBJ(NULL, obj, type, bytes, len); in X509_NAME_add_entry_by_OBJ()
162 ne = X509_NAME_ENTRY_create_by_NID(NULL, nid, type, bytes, len); in X509_NAME_add_entry_by_NID()
176 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()
318 const unsigned char *bytes, int len) in X509_NAME_ENTRY_set_data() argument
322 if ((ne == NULL) || ((bytes == NULL) && (len != 0))) in X509_NAME_ENTRY_set_data()
325 return ASN1_STRING_set_by_NID(&ne->value, bytes, in X509_NAME_ENTRY_set_data()
329 len = strlen((const char *)bytes); in X509_NAME_ENTRY_set_data()
330 i = ASN1_STRING_set(ne->value, bytes, len); in X509_NAME_ENTRY_set_data()
[all …]
/freebsd/sys/amd64/vmm/
H A Dvmm_ioport.c74 switch (vmexit->u.inout.bytes) { in inout_instruction()
115 mask = vie_size2mask(vmexit->u.inout.bytes); in emulate_inout_port()
122 vmexit->u.inout.port, vmexit->u.inout.bytes, &val); in emulate_inout_port()
156 int bytes __diagused, error; in vm_handle_inout()
158 bytes = vmexit->u.inout.bytes; in vm_handle_inout()
159 KASSERT(bytes == 1 || bytes == 2 || bytes == 4, in vm_handle_inout()
160 ("vm_handle_inout: invalid operand size %d", bytes)); in vm_handle_inout()
/freebsd/usr.sbin/fstyp/
H A Dhammer2.c72 size_t bytes, io_bytes, boff; in read_media() local
75 if (bytes) in read_media()
76 bytes = (size_t)1 << bytes; in read_media()
77 *media_bytes = bytes; in read_media()
79 if (!bytes) { in read_media()
89 while (io_bytes + boff < bytes) in read_media()
107 memcpy(media, (char *)media + boff, bytes); in read_media()
118 size_t bytes; in find_pfs() local
121 media = read_media(fp, bref, &bytes); in find_pfs()
208 size_t bytes; in read_label() local
[all …]
/freebsd/usr.sbin/bhyve/amd64/
H A Dpm.c61 int port __unused, int bytes, uint32_t *eax, void *arg __unused) in reset_handler() argument
67 if (bytes != 1) in reset_handler()
162 if (bytes != 2) in pm1_status_handler()
186 if (bytes != 2) in pm1_enable_handler()
240 if (bytes != 2) in pm1_control_handler()
286 int bytes, uint32_t *eax, void *arg __unused) in gpe0_sts() argument
292 if (bytes != 1) in gpe0_sts()
310 int bytes, uint32_t *eax, void *arg __unused) in gpe0_en() argument
312 if (bytes != 1) in gpe0_en()
334 int bytes, uint32_t *eax, void *arg __unused) in smi_cmd_handler() argument
[all …]
/freebsd/tests/atf_python/sys/net/
H A Drtsock.py205 def ip4_sa(ip: str) -> bytes:
208 return bytes(sin)
218 return bytes(sin6)
223 return bytes(sa)
254 def print_sa_inet(sa: bytes): argument
261 def print_sa_inet6(sa: bytes): argument
291 def print_sa_unknown(sa: bytes): argument
502 return bytes(buf)
542 if isinstance(gw, bytes):
563 def print_hd(self, data: bytes): argument
[all …]
/freebsd/crypto/openssl/doc/man3/
H A DEVP_EncodeInit.pod35 bytes of binary data provided 4 bytes of base 64 encoded data will be produced
48 is output plus an additional newline character (i.e. 65 bytes in total). The
49 final block (which may be less than 48 bytes) will output 4 bytes for every 3
50 bytes of input. If the data length is not divisible by 3 then a full 4 bytes is
60 blocks of data (48 bytes) will be immediately processed and output by this
77 65 bytes plus an additional NUL terminator (i.e. 66 bytes in total).
86 B<n> and stores it in B<t>. For every 3 bytes of input provided 4 bytes of
90 example if 16 bytes of input data is provided then 24 bytes of encoded data is
123 by 4. For every 4 input bytes exactly 3 output bytes will be produced. The
125 always 3 bytes for every 4 input bytes. This function will return the length of
[all …]
/freebsd/contrib/cortex-strings/scripts/
H A Dplot-top.py12 def plot(records, bytes): argument
13 records = [x for x in records if x.bytes==bytes]
33 vals = [match.bytes*match.loops/match.elapsed/(1024*1024) for
46 pylab.title('Performance of different variants for %d byte blocks' % bytes)
50 pylab.savefig('top-%06d.png' % bytes, dpi=72)
55 for bytes in libplot.unique(records, 'bytes'):
56 plot(records, bytes)
H A Dbench.py58 def run(cache, variant, function, bytes, loops, alignment, run_id, quiet=False): argument
60 key = ':'.join('%s' % x for x in (variant, function, bytes, loops, alignment, run_id))
84 def run_many(cache, variants, bytes, all_functions): argument
87 bytes = sorted(bytes)
88 mid = bytes[int(len(bytes)/1.5)]
124 for b in sorted(bytes):
143 bytes = []
149 bytes.extend([int(step**x) for x in range(0, steps+1)])
151 run_many(cache, args.variants, bytes, args.functions)
/freebsd/contrib/netbsd-tests/ipf/expected/
H A Dni626 FWD: IN pkts 2 bytes 96 OUT pkts 1 bytes 68
27 REV: IN pkts 1 bytes 52 OUT pkts 1 bytes 52
32 FWD: IN pkts 1 bytes 28 OUT pkts 0 bytes 0
33 REV: IN pkts 0 bytes 0 OUT pkts 0 bytes 0
38 FWD: IN pkts 1 bytes 84 OUT pkts 1 bytes 84
39 REV: IN pkts 1 bytes 56 OUT pkts 1 bytes 56
H A Df2511 FWD: IN pkts 1 bytes 129 OUT pkts 0 bytes 0
12 REV: IN pkts 0 bytes 0 OUT pkts 0 bytes 0
17 FWD: IN pkts 1 bytes 129 OUT pkts 0 bytes 0
18 REV: IN pkts 0 bytes 0 OUT pkts 1 bytes 264
/freebsd/contrib/kyua/utils/
H A Dunits.hpp74 class bytes { class
79 bytes(void);
80 explicit bytes(const uint64_t);
82 static bytes parse(const std::string&);
89 std::istream& operator>>(std::istream&, bytes&);
90 std::ostream& operator<<(std::ostream&, const bytes&);
/freebsd/contrib/ldns/
H A Dnet.c685 ssize_t bytes; local
698 if (bytes == -1 || (size_t) bytes != ldns_buffer_position(qbin) + 2 ) {
701 return bytes;
709 ssize_t bytes; local
714 if (bytes == -1 || (size_t)bytes != ldns_buffer_position(qbin)) {
717 return bytes;
763 while (bytes < 2) {
787 bytes = 0;
805 *size = (size_t) bytes;
822 while (bytes < 2) {
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A DBytesOutputStyle.cpp107 if (opts::bytes::DumpByteRange) { in dump()
123 if (opts::bytes::Fpm) { in dump()
133 if (opts::bytes::NameMap) { in dump()
143 if (opts::bytes::SectionMap) { in dump()
148 if (opts::bytes::ModuleInfos) { in dump()
153 if (opts::bytes::FileInfo) { in dump()
158 if (opts::bytes::TypeServerMap) { in dump()
163 if (opts::bytes::ECData) { in dump()
178 if (opts::bytes::ModuleSyms) { in dump()
183 if (opts::bytes::ModuleC11) { in dump()
[all …]
/freebsd/crypto/openssl/crypto/cms/
H A Dcms_att.c105 const void *bytes, int len) in CMS_signed_add1_attr_by_OBJ() argument
107 if (ossl_x509at_add1_attr_by_OBJ(&si->signedAttrs, obj, type, bytes, len)) in CMS_signed_add1_attr_by_OBJ()
113 int nid, int type, const void *bytes, int len) in CMS_signed_add1_attr_by_NID() argument
115 if (ossl_x509at_add1_attr_by_NID(&si->signedAttrs, nid, type, bytes, len)) in CMS_signed_add1_attr_by_NID()
122 const void *bytes, int len) in CMS_signed_add1_attr_by_txt() argument
124 if (ossl_x509at_add1_attr_by_txt(&si->signedAttrs, attrname, type, bytes, in CMS_signed_add1_attr_by_txt()
173 const void *bytes, int len) in CMS_unsigned_add1_attr_by_OBJ() argument
175 if (ossl_x509at_add1_attr_by_OBJ(&si->unsignedAttrs, obj, type, bytes, len)) in CMS_unsigned_add1_attr_by_OBJ()
182 const void *bytes, int len) in CMS_unsigned_add1_attr_by_NID() argument
191 const void *bytes, int len) in CMS_unsigned_add1_attr_by_txt() argument
[all …]
/freebsd/crypto/openssl/test/
H A Dpackettest.c156 const unsigned char *bytes = NULL; in test_PACKET_get_bytes() local
161 || !TEST_uchar_eq(bytes[0], 2) in test_PACKET_get_bytes()
162 || !TEST_uchar_eq(bytes[1], 4) in test_PACKET_get_bytes()
163 || !TEST_uchar_eq(bytes[2], 6) in test_PACKET_get_bytes()
164 || !TEST_uchar_eq(bytes[3], 8) in test_PACKET_get_bytes()
168 || !TEST_uchar_eq(bytes[0], 0xf8) in test_PACKET_get_bytes()
180 unsigned char bytes[4]; in test_PACKET_copy_bytes() local
185 || !TEST_char_eq(bytes[0], 2) in test_PACKET_copy_bytes()
186 || !TEST_char_eq(bytes[1], 4) in test_PACKET_copy_bytes()
187 || !TEST_char_eq(bytes[2], 6) in test_PACKET_copy_bytes()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Core/
H A DOpcode.cpp49 s->Printf("%2.2x", m_data.inst.bytes[i]); in Dump()
90 swap_buf[0] = m_data.inst.bytes[2]; in GetData()
91 swap_buf[1] = m_data.inst.bytes[3]; in GetData()
92 swap_buf[2] = m_data.inst.bytes[0]; in GetData()
93 swap_buf[3] = m_data.inst.bytes[1]; in GetData()
110 swap_buf[0] = m_data.inst.bytes[1]; in GetData()
111 swap_buf[1] = m_data.inst.bytes[0]; in GetData()
112 swap_buf[2] = m_data.inst.bytes[3]; in GetData()
113 swap_buf[3] = m_data.inst.bytes[2]; in GetData()
/freebsd/sys/libkern/
H A Dmurmur3_32.c45 const uint8_t *bytes; in murmur3_32_hash() local
50 bytes = data; in murmur3_32_hash()
57 k = le32dec(bytes); in murmur3_32_hash()
58 bytes += 4; in murmur3_32_hash()
75 k |= bytes[2] << 16; in murmur3_32_hash()
77 k |= bytes[1] << 8; in murmur3_32_hash()
79 k |= bytes[0]; in murmur3_32_hash()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dreadmmap.c58 int fd = -1, bytes, retval = 0; in main() local
83 bytes = write(fd, buf, size); in main()
84 if (bytes != size) { in main()
85 (void) printf("short write: %d != %zd\n", bytes, size); in main()
114 bytes = pread(fd, buf, size, 0); in main()
115 if (bytes != size) { in main()
116 (void) printf("short read: %d != %zd\n", bytes, size); in main()
/freebsd/tests/sys/cddl/zfs/bin/
H A Dreadmmap.c58 int fd = -1, bytes, retval = 0; in main() local
83 bytes = write(fd, buf, size); in main()
84 if (bytes != size) { in main()
85 (void) printf("short write: %d != %zu\n", bytes, size); in main()
114 bytes = pread(fd, buf, size, 0); in main()
115 if (bytes != size) { in main()
116 (void) printf("short read: %d != %zu\n", bytes, size); in main()

12345678910>>...64