Home
last modified time | relevance | path

Searched refs:dst_len (Results 1 – 25 of 97) sorted by relevance

1234

/freebsd/contrib/netbsd-tests/crypto/opencrypto/
H A Dh_comp.c65 co1.dst_len = sizeof(buf1); in main()
69 fprintf(stderr, "len %d/%d\n", co1.len, co1.dst_len); in main()
71 buf1[co1.dst_len - 8]++; /* modify CRC */ in main()
73 write(1, buf1, co1.dst_len); in main()
77 co2.len = co1.dst_len; in main()
80 co2.dst_len = sizeof(buf2); in main()
86 fprintf(stderr, "len %d/%d\n", co2.len, co2.dst_len); in main()
87 if (memcmp(text, buf2, co2.dst_len)) in main()
H A Dh_aesctr2.c77 co.dst_len = sizeof(obuf); in main()
88 co.dst_len = sizeof(ibuf); in main()
H A Dh_comp_zlib.c65 co1.dst_len = sizeof(buf1); in main()
73 z.avail_in = co1.dst_len; in main()
H A Dh_comp_zlib_rnd.c70 co1.dst_len = sizeof(buf1); in main()
77 z.avail_in = co1.dst_len; in main()
/freebsd/contrib/llvm-project/lldb/source/API/
H A DSBFileSpec.cpp99 size_t dst_len) { in ResolvePath() argument
100 LLDB_INSTRUMENT_VA(src_path, dst_path, dst_len); in ResolvePath()
104 ::snprintf(dst_path, dst_len, "%s", result.c_str()); in ResolvePath()
105 return std::min(dst_len - 1, result.size()); in ResolvePath()
140 uint32_t SBFileSpec::GetPath(char *dst_path, size_t dst_len) const { in GetPath()
141 LLDB_INSTRUMENT_VA(this, dst_path, dst_len); in GetPath()
143 uint32_t result = m_opaque_up->GetPath(dst_path, dst_len); in GetPath()
145 if (result == 0 && dst_path && dst_len > 0) in GetPath()
H A DSBCommunication.cpp104 size_t SBCommunication::Read(void *dst, size_t dst_len, uint32_t timeout_usec, in Read() argument
106 LLDB_INSTRUMENT_VA(this, dst, dst_len, timeout_usec, status); in Read()
113 bytes_read = m_opaque->Read(dst, dst_len, timeout, status, nullptr); in Read()
H A DSBStructuredData.cpp219 size_t SBStructuredData::GetStringValue(char *dst, size_t dst_len) const { in GetStringValue()
220 LLDB_INSTRUMENT_VA(this, dst, dst_len); in GetStringValue()
222 return m_impl_up->GetStringValue(dst, dst_len); in GetStringValue()
/freebsd/contrib/llvm-project/lldb/source/Target/
H A DMemory.cpp154 size_t MemoryCache::Read(addr_t addr, void *dst, size_t dst_len, in Read() argument
156 if (!dst || dst_len == 0) in Read()
176 AddrRange read_range(addr, dst_len); in Read()
184 dst_len); in Read()
185 return dst_len; in Read()
192 if (dst_len > m_L2_cache_line_byte_size) { in Read()
194 m_process.ReadMemoryFromInferior(addr, dst, dst_len, error); in Read()
220 size_t bytes_left = dst_len; in Read()
225 memcpy(dst_buf + dst_len - bytes_left, in Read()
233 return dst_len - bytes_left; in Read()
[all …]
H A DRegisterContext.cpp315 // Case 1: src_len == dst_len in ReadRegisterValueFromMemory()
320 // Case 2: src_len > dst_len in ReadRegisterValueFromMemory()
324 // Case 3: src_len < dst_len in ReadRegisterValueFromMemory()
329 const uint32_t dst_len = reg_info->byte_size; in ReadRegisterValueFromMemory()
331 if (src_len > dst_len) { in ReadRegisterValueFromMemory()
334 reg_info->name, dst_len); in ReadRegisterValueFromMemory()
370 const RegisterInfo *reg_info, lldb::addr_t dst_addr, uint32_t dst_len, in WriteRegisterValueToMemory()
388 RegisterValue::BytesContainer dst(dst_len); in WriteRegisterValueToMemory()
390 *reg_info, dst.data(), dst_len, process_sp->GetByteOrder(), error); in WriteRegisterValueToMemory()
323 const uint32_t dst_len = reg_info->byte_size; ReadRegisterValueFromMemory() local
364 WriteRegisterValueToMemory(const RegisterInfo * reg_info,lldb::addr_t dst_addr,uint32_t dst_len,const RegisterValue & reg_value) WriteRegisterValueToMemory() argument
/freebsd/contrib/llvm-project/lldb/source/Core/
H A DThreadedCommunication.cpp76 size_t ThreadedCommunication::Read(void *dst, size_t dst_len, in Read() argument
84 this, dst, dst_len, timeout, m_connection_sp.get()); in Read()
88 size_t cached_bytes = GetCachedBytes(dst, dst_len); in Read()
115 cached_bytes = GetCachedBytes(dst, dst_len); in Read()
136 return GetCachedBytes(dst, dst_len); in Read()
155 return Communication::Read(dst, dst_len, timeout, status, error_ptr); in Read()
221 size_t ThreadedCommunication::GetCachedBytes(void *dst, size_t dst_len) { in GetCachedBytes() argument
229 const size_t len = std::min<size_t>(dst_len, m_bytes.size()); in GetCachedBytes()
H A DCommunication.cpp86 size_t Communication::Read(void *dst, size_t dst_len, in Read() argument
93 this, dst, dst_len, timeout, m_connection_sp.get()); in Read()
95 return ReadFromConnection(dst, dst_len, timeout, status, error_ptr); in Read()
127 size_t Communication::ReadFromConnection(void *dst, size_t dst_len, in ReadFromConnection() argument
133 return connection_sp->Read(dst, dst_len, timeout, status, error_ptr); in ReadFromConnection()
/freebsd/sys/dev/netmap/
H A Dnetmap_offloadings.c164 size_t src_len, dst_len; in bdg_mismatch_datapath() local
181 dst_len = src_len; in bdg_mismatch_datapath()
229 dst_len = dst_na->up.virt_hdr_len + src_len; in bdg_mismatch_datapath()
234 if (dst_len == 0) { in bdg_mismatch_datapath()
238 dst_len = src_len; in bdg_mismatch_datapath()
447 dst_len = 0; in bdg_mismatch_datapath()
452 dst_slot->len = dst_len; in bdg_mismatch_datapath()
463 dst_len = src_len = ft_p->ft_len; in bdg_mismatch_datapath()
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DDataExtractor.cpp692 void *dst_void_ptr, offset_t dst_len, in CopyByteOrderedData() argument
702 assert(dst_len > 0); in CopyByteOrderedData()
706 assert(dst_byte_order == m_byte_order || dst_len == 1 || dst_len == 2 || in CopyByteOrderedData()
707 dst_len == 4 || dst_len == 8 || dst_len == 10 || dst_len == 16 || in CopyByteOrderedData()
708 dst_len == 32); in CopyByteOrderedData()
719 if (dst_len >= src_len) { in CopyByteOrderedData()
723 const size_t num_zeroes = dst_len - src_len; in CopyByteOrderedData()
755 ::memcpy(dst, src + (src_len - dst_len), dst_len); in CopyByteOrderedData()
758 for (uint32_t i = 0; i < dst_len; ++i) in CopyByteOrderedData()
759 dst[i] = src[dst_len - 1 - i]; in CopyByteOrderedData()
[all …]
/freebsd/sys/dev/hyperv/utilities/
H A Dunicode.h42 utf8_to_utf16(uint16_t *dst, size_t dst_len, in utf8_to_utf16() argument
121 if (dst && dpos < dst_len) in utf8_to_utf16()
127 if (dst && dpos < dst_len) in utf8_to_utf16()
142 utf16_to_utf8(char *dst, size_t dst_len, in utf16_to_utf8() argument
149 #define CHECK_LENGTH(l) (dpos > dst_len-(l) ? dst=NULL : NULL) in utf16_to_utf8()
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_pwhash/argon2/
H A Dargon2-encoding.c241 encode_string(char *dst, size_t dst_len, argon2_context *ctx, argon2_type type) in encode_string() argument
246 if (pp_len >= dst_len) { \ in encode_string()
251 dst_len -= pp_len; \ in encode_string()
264 if (sodium_bin2base64(dst, dst_len, (buf), (len), \ in encode_string()
270 dst_len -= sb_len; \ in encode_string()
/freebsd/contrib/llvm-project/lldb/source/Plugins/UnwindAssembly/InstEmulation/
H A DUnwindAssemblyInstEmulation.cpp381 size_t dst_len) { in ReadMemory() argument
389 addr, dst, (uint64_t)dst_len); in ReadMemory()
393 memset(dst, 0, dst_len); in ReadMemory()
394 return dst_len; in ReadMemory()
400 const void *dst, size_t dst_len) { in WriteMemory() argument
401 if (baton && dst && dst_len) in WriteMemory()
403 ->WriteMemory(instruction, context, addr, dst, dst_len); in WriteMemory()
409 lldb::addr_t addr, const void *dst, size_t dst_len) { in WriteMemory() argument
410 DataExtractor data(dst, dst_len, in WriteMemory()
420 DumpDataExtractor(data, &strm, 0, eFormatBytes, 1, dst_len, UINT32_MAX, in WriteMemory()
[all …]
/freebsd/crypto/libecc/src/utils/
H A Dutils.c219 u32 dst_len, i; in local_strncat() local
224 ret = local_strlen(dst, &dst_len); EG(ret, err); in local_strncat()
226 dst[dst_len + i] = src[i]; in local_strncat()
228 dst[dst_len + i] = 0; in local_strncat()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dqat_compress.c241 char *dst, int dst_len, char *add, int add_len, size_t *c_len) in qat_compress_impl() argument
257 Cpa32U num_dst_buf = (dst_len >> PAGE_SHIFT) + 2; in qat_compress_impl()
353 bytes_left = dst_len; in qat_compress_impl()
419 if (compressed_sz + hdr_sz + ZLIB_FOOT_SZ > dst_len) { in qat_compress_impl()
506 char *dst, int dst_len, size_t *c_len) in qat_compress() argument
513 add_len = dst_len; in qat_compress()
518 dst_len, add, add_len, c_len); in qat_compress()
/freebsd/sys/contrib/zstd/doc/educational_decoder/
H A Dzstd_decompress.h24 size_t ZSTD_decompress(void *const dst, const size_t dst_len,
29 size_t ZSTD_decompress_with_dict(void *const dst, const size_t dst_len,
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DNativeRegisterContext.cpp334 const size_t dst_len = reg_info->byte_size; in ReadRegisterValueFromMemory() local
336 if (src_len > dst_len) { in ReadRegisterValueFromMemory()
341 static_cast<uint64_t>(dst_len)); in ReadRegisterValueFromMemory()
375 const RegisterInfo *reg_info, lldb::addr_t dst_addr, size_t dst_len, in WriteRegisterValueToMemory() argument
383 RegisterValue::BytesContainer dst(dst_len); in WriteRegisterValueToMemory()
390 *reg_info, dst.data(), dst_len, process.GetByteOrder(), error); in WriteRegisterValueToMemory()
/freebsd/contrib/llvm-project/lldb/bindings/lua/
H A Dlua-typemaps.swig78 %typemap(in) (char *dst, size_t dst_len) {
88 %typemap(in) (void *char_buf, size_t size) = (char *dst, size_t dst_len);
91 %typemap(in) (void *buf, size_t size) = (char *dst, size_t dst_len);
94 %typemap(argout) (char *dst, size_t dst_len) {
107 %typemap(argout) (void *char_buf, size_t size) = (char *dst, size_t dst_len);
110 %typemap(argout) (void *buf, size_t size) = (char *dst, size_t dst_len);
116 %typemap(in) (char *dst_or_null, size_t dst_len) {
124 %typemap(argout) (char *dst_or_null, size_t dst_len) {
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/
H A DStructuredDataImpl.h149 size_t GetStringValue(char *dst, size_t dst_len) const { in GetStringValue() argument
157 if (!dst || !dst_len) { in GetStringValue()
161 return (::snprintf(dst, dst_len, "%s", result.data())); in GetStringValue()
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/
H A DConnection.h118 virtual size_t Read(void *dst, size_t dst_len,
142 virtual size_t Write(const void *dst, size_t dst_len,
/freebsd/crypto/openssl/providers/implementations/kdfs/
H A Dsshkdf.c90 static int sshkdf_set_membuf(unsigned char **dst, size_t *dst_len, in sshkdf_set_membuf() argument
93 OPENSSL_clear_free(*dst, *dst_len); in sshkdf_set_membuf()
95 *dst_len = 0; in sshkdf_set_membuf()
96 return OSSL_PARAM_get_octet_string(p, (void **)dst, 0, dst_len); in sshkdf_set_membuf()
/freebsd/contrib/ofed/librdmacm/
H A Daddrinfo.c98 static int ucma_copy_addr(struct sockaddr **dst, socklen_t *dst_len, in ucma_copy_addr() argument
106 *dst_len = src_len; in ucma_copy_addr()
124 static int ucma_convert_in6(int ps, struct sockaddr_ib **dst, socklen_t *dst_len, in ucma_convert_in6() argument
140 *dst_len = sizeof(struct sockaddr_ib); in ucma_convert_in6()

1234