Home
last modified time | relevance | path

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

123

/NextBSD/contrib/netbsd-tests/crypto/opencrypto/
HDh_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()
HDh_aesctr2.c77 co.dst_len = sizeof(obuf); in main()
88 co.dst_len = sizeof(ibuf); in main()
HDh_comp_zlib_rnd.c70 co1.dst_len = sizeof(buf1); in main()
77 z.avail_in = co1.dst_len; in main()
HDh_comp_zlib.c65 co1.dst_len = sizeof(buf1); in main()
73 z.avail_in = co1.dst_len; in main()
/NextBSD/contrib/llvm/tools/lldb/source/API/
HDSBFileSpec.cpp92 SBFileSpec::ResolvePath (const char *src_path, char *dst_path, size_t dst_len) in ResolvePath() argument
96 ::snprintf(dst_path, dst_len, "%s", result.c_str()); in ResolvePath()
97 return std::min(dst_len-1, result.size()); in ResolvePath()
156 SBFileSpec::GetPath (char *dst_path, size_t dst_len) const in GetPath()
160 uint32_t result = m_opaque_ap->GetPath (dst_path, dst_len); in GetPath()
165 static_cast<uint64_t>(dst_len), result); in GetPath()
167 if (result == 0 && dst_path && dst_len > 0) in GetPath()
HDSBCommunication.cpp142 SBCommunication::Read (void *dst, size_t dst_len, uint32_t timeout_usec, ConnectionStatus &status) in Read() argument
148 static_cast<uint64_t>(dst_len), timeout_usec); in Read()
151 bytes_read = m_opaque->Read (dst, dst_len, timeout_usec, status, NULL); in Read()
158 static_cast<uint64_t>(dst_len), timeout_usec, in Read()
HDSBProcess.cpp356 SBProcess::GetSTDOUT (char *dst, size_t dst_len) const in GetSTDOUT()
363 bytes_read = process_sp->GetSTDOUT (dst, dst_len, error); in GetSTDOUT()
371 static_cast<uint64_t>(dst_len), in GetSTDOUT()
378 SBProcess::GetSTDERR (char *dst, size_t dst_len) const in GetSTDERR()
385 bytes_read = process_sp->GetSTDERR (dst, dst_len, error); in GetSTDERR()
393 static_cast<uint64_t>(dst_len), in GetSTDERR()
400 SBProcess::GetAsyncProfileData(char *dst, size_t dst_len) const in GetAsyncProfileData()
407 bytes_read = process_sp->GetAsyncProfileData (dst, dst_len, error); in GetAsyncProfileData()
415 static_cast<uint64_t>(dst_len), in GetAsyncProfileData()
1055 SBProcess::ReadMemory (addr_t addr, void *dst, size_t dst_len, SBError &sb_error) in ReadMemory() argument
[all …]
/NextBSD/contrib/llvm/tools/lldb/source/Target/
HDMemory.cpp151 size_t dst_len, in Read() argument
154 size_t bytes_left = dst_len; in Read()
166 AddrRange read_range(addr, dst_len); in Read()
182 memcpy(dst, pos->second->GetBytes() + addr - chunk_range.GetRangeBase(), dst_len); in Read()
183 return dst_len; in Read()
196 if (dst && dst_len > m_L2_cache_line_byte_size) in Read()
198 size_t bytes_read = m_process.ReadMemoryFromInferior (addr, dst, dst_len, error); in Read()
217 return dst_len - bytes_left; in Read()
229 … memcpy (dst_buf + dst_len - bytes_left, pos->second->GetBytes() + cache_offset, curr_read_size); in Read()
249 … memcpy (dst_buf + dst_len - bytes_left, pos->second->GetBytes(), curr_read_size); in Read()
[all …]
HDRegisterContext.cpp347 const uint32_t dst_len = reg_info->byte_size; in ReadRegisterValueFromMemory() local
349 if (src_len > dst_len) in ReadRegisterValueFromMemory()
351 …Format("%u bytes is too big to store in register %s (%u bytes)", src_len, reg_info->name, dst_len); in ReadRegisterValueFromMemory()
394 uint32_t dst_len, in WriteRegisterValueToMemory() argument
412 dst_len, in WriteRegisterValueToMemory()
/NextBSD/contrib/llvm/tools/lldb/source/Core/
HDCommunication.cpp139 Communication::Read (void *dst, size_t dst_len, uint32_t timeout_usec, ConnectionStatus &status, Er… in Read() argument
145 (uint64_t)dst_len, in Read()
152 size_t cached_bytes = GetCachedBytes (dst, dst_len); in Read()
182 return GetCachedBytes (dst, dst_len); in Read()
200 return connection_sp->Read (dst, dst_len, timeout_usec, status, error_ptr); in Read()
287 Communication::GetCachedBytes (void *dst, size_t dst_len) in GetCachedBytes() argument
297 const size_t len = std::min<size_t>(dst_len, m_bytes.size()); in GetCachedBytes()
332 size_t dst_len, in ReadFromConnection() argument
339 return connection_sp->Read (dst, dst_len, timeout_usec, status, error_ptr); in ReadFromConnection()
HDDataExtractor.cpp998 offset_t dst_len, in CopyByteOrderedData() argument
1009 assert (dst_len > 0); in CopyByteOrderedData()
1013 assert (dst_byte_order == m_byte_order || dst_len == 1 || dst_len == 2 || in CopyByteOrderedData()
1014 dst_len == 4 || dst_len == 8 || dst_len == 10 || dst_len == 16 || in CopyByteOrderedData()
1015 dst_len == 32); in CopyByteOrderedData()
1027 if (dst_len >= src_len) in CopyByteOrderedData()
1032 const size_t num_zeroes = dst_len - src_len; in CopyByteOrderedData()
1077 ::memcpy (dst, src + (src_len - dst_len), dst_len); in CopyByteOrderedData()
1082 for (i=0; i<dst_len; ++i) in CopyByteOrderedData()
1083 dst[i] = src[dst_len - 1 - i]; in CopyByteOrderedData()
[all …]
HDEmulateInstruction.cpp172 size_t dst_len) in ReadMemory() argument
175 return m_read_mem_callback (this, m_baton, context, addr, dst, dst_len) == dst_len; in ReadMemory()
290 size_t dst_len) in ReadMemoryFrame() argument
292 if (!baton || dst == NULL || dst_len == 0) in ReadMemoryFrame()
301 return process_sp->ReadMemory (addr, dst, dst_len, error); in ReadMemoryFrame()
/NextBSD/sys/dev/netmap/
HDnetmap_offloadings.c146 size_t src_len, dst_len; in bdg_mismatch_datapath() local
163 dst_len = src_len; in bdg_mismatch_datapath()
194 dst_len = dst_na->virt_hdr_len + src_len; in bdg_mismatch_datapath()
199 if (dst_len == 0) { in bdg_mismatch_datapath()
203 dst_len = src_len; in bdg_mismatch_datapath()
356 dst_len = 0; in bdg_mismatch_datapath()
361 slot->len = dst_len; in bdg_mismatch_datapath()
373 dst_len = src_len = ft_p->ft_len; in bdg_mismatch_datapath()
/NextBSD/sys/dev/hyperv/utilities/
HDunicode.h44 utf8_to_utf16(uint16_t *dst, size_t dst_len, in utf8_to_utf16() argument
123 if (dst && dpos < dst_len) in utf8_to_utf16()
129 if (dst && dpos < dst_len) in utf8_to_utf16()
144 utf16_to_utf8(char *dst, size_t dst_len, in utf16_to_utf8() argument
151 #define CHECK_LENGTH(l) (dpos > dst_len-(l) ? dst=NULL : NULL) in utf16_to_utf8()
/NextBSD/contrib/llvm/tools/lldb/source/Plugins/UnwindAssembly/InstEmulation/
HDUnwindAssemblyInstEmulation.cpp340 size_t dst_len) in ReadMemory() argument
350 (uint64_t)dst_len); in ReadMemory()
354 memset (dst, 0, dst_len); in ReadMemory()
355 return dst_len; in ReadMemory()
364 size_t dst_len) in WriteMemory() argument
366 if (baton && dst && dst_len) in WriteMemory()
367 …urn ((UnwindAssemblyInstEmulation *)baton)->WriteMemory (instruction, context, addr, dst, dst_len); in WriteMemory()
376 size_t dst_len) in WriteMemory() argument
379 dst_len, in WriteMemory()
390 data.Dump(&strm, 0, eFormatBytes, 1, dst_len, UINT32_MAX, addr, 0, 0); in WriteMemory()
[all …]
/NextBSD/contrib/llvm/tools/lldb/include/lldb/Core/
HDCommunication.h212 size_t dst_len,
380 size_t dst_len,
426 GetCachedBytes (void *dst, size_t dst_len);
HDConnection.h133 size_t dst_len,
161 Write (const void *dst, size_t dst_len, lldb::ConnectionStatus &status, Error *error_ptr) = 0;
/NextBSD/contrib/llvm/tools/lldb/source/Utility/
HDStringExtractor.cpp341 StringExtractor::GetHexBytes (void *dst_void, size_t dst_len, uint8_t fail_fill_value) in GetHexBytes() argument
345 while (bytes_extracted < dst_len && GetBytesLeft ()) in GetHexBytes()
354 for (size_t i = bytes_extracted; i < dst_len; ++i) in GetHexBytes()
367 StringExtractor::GetHexBytesAvail (void *dst_void, size_t dst_len) in GetHexBytesAvail() argument
371 while (bytes_extracted < dst_len) in GetHexBytesAvail()
/NextBSD/contrib/llvm/tools/lldb/source/Host/common/
HDNativeRegisterContext.cpp386 const size_t dst_len = reg_info->byte_size; in ReadRegisterValueFromMemory() local
388 if (src_len > dst_len) in ReadRegisterValueFromMemory()
391 static_cast<uint64_t>(src_len), reg_info->name, static_cast<uint64_t>(dst_len)); in ReadRegisterValueFromMemory()
445 size_t dst_len, in WriteRegisterValueToMemory() argument
467 dst_len, in WriteRegisterValueToMemory()
HDFileCache.cpp101 FileCache::ReadFile(lldb::user_id_t fd, uint64_t offset, void *dst, uint64_t dst_len, Error &error) in ReadFile() argument
122 size_t bytes_read = dst_len; in ReadFile()
/NextBSD/contrib/llvm/tools/lldb/include/lldb/API/
HDSBFileSpec.h55 GetPath (char *dst_path, size_t dst_len) const;
58 ResolvePath (const char *src_path, char *dst_path, size_t dst_len);
HDSBProcess.h75 GetSTDOUT (char *dst, size_t dst_len) const;
78 GetSTDERR (char *dst, size_t dst_len) const;
81 GetAsyncProfileData(char *dst, size_t dst_len) const;
/NextBSD/contrib/llvm/tools/lldb/include/lldb/Utility/
HDStringExtractor.h139 GetHexBytes (void *dst, size_t dst_len, uint8_t fail_fill_value);
142 GetHexBytesAvail (void *dst, size_t dst_len);
/NextBSD/contrib/llvm/tools/lldb/source/Plugins/ObjectFile/JIT/
HDObjectFileJIT.cpp326 size_t dst_len) const in ReadSectionData()
332 if (src_len > dst_len) in ReadSectionData()
333 src_len = dst_len; in ReadSectionData()
/NextBSD/contrib/llvm/tools/lldb/source/Symbol/
HDObjectFile.cpp459 …ectionData (const Section *section, lldb::offset_t section_offset, void *dst, size_t dst_len) const in ReadSectionData()
466 return section->GetObjectFile()->ReadSectionData (section, section_offset, dst, dst_len); in ReadSectionData()
476 … return process_sp->ReadMemory (base_load_addr + section_offset, dst, dst_len, error); in ReadSectionData()
485 size_t section_dst_len = dst_len; in ReadSectionData()
496 uint64_t section_dst_len = dst_len; in ReadSectionData()

123