| /freebsd-12-stable/sys/dev/vmware/vmci/ |
| D | vmci_kernel_if.c | 771 size_t to_copy = MIN(iov->iov_len, len); in vmci_memcpy_toiovec() local 772 memcpy(iov->iov_base, src, to_copy); in vmci_memcpy_toiovec() 773 src += to_copy; in vmci_memcpy_toiovec() 774 len -= to_copy; in vmci_memcpy_toiovec() 776 to_copy); in vmci_memcpy_toiovec() 777 iov->iov_len -= to_copy; in vmci_memcpy_toiovec() 789 size_t to_copy = MIN(iov->iov_len, len); in vmci_memcpy_fromiovec() local 790 memcpy(dst, iov->iov_base, to_copy); in vmci_memcpy_fromiovec() 791 dst += to_copy; in vmci_memcpy_fromiovec() 792 len -= to_copy; in vmci_memcpy_fromiovec() [all …]
|
| /freebsd-12-stable/contrib/subversion/subversion/libsvn_subr/ |
| D | fnv1a.c | 231 apr_size_t to_copy = SCALING - context->buffered; in svn_fnv1a_32x4__update() local 232 if (to_copy > len) in svn_fnv1a_32x4__update() 239 memcpy(context->buffer + context->buffered, data, to_copy); in svn_fnv1a_32x4__update() 240 data = (const char *)data + to_copy; in svn_fnv1a_32x4__update() 241 len -= to_copy; in svn_fnv1a_32x4__update()
|
| D | string.c | 755 apr_size_t to_copy; in svn_stringbuf_replace_all() local 778 to_copy = pos - str->data - current; in svn_stringbuf_replace_all() 779 svn_stringbuf_ensure(str, str->len + to_copy + replacement_len); in svn_stringbuf_replace_all() 781 if (to_copy) in svn_stringbuf_replace_all() 782 memcpy(str->data + str->len, str->data + current, to_copy); in svn_stringbuf_replace_all() 783 current += to_copy + to_find_len; in svn_stringbuf_replace_all() 785 str->len += to_copy; in svn_stringbuf_replace_all() 791 to_copy = original_length - current; in svn_stringbuf_replace_all() 792 if (to_copy) in svn_stringbuf_replace_all() 794 svn_stringbuf_ensure(str, str->len + to_copy); in svn_stringbuf_replace_all() [all …]
|
| D | subst.c | 1283 apr_size_t to_copy; in translated_stream_read() local 1309 to_copy = (buffer_remainder > unsatisfied) in translated_stream_read() 1311 memcpy(buffer + off, b->readbuf->data + b->readbuf_off, to_copy); in translated_stream_read() 1312 off += to_copy; in translated_stream_read() 1313 b->readbuf_off += to_copy; in translated_stream_read() 1314 unsatisfied -= to_copy; in translated_stream_read()
|
| /freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/Process/Utility/ |
| D | MemoryTagManagerAArch64MTE.cpp | 193 for (size_t to_copy = 0; granules > 0; granules -= to_copy) { in RepeatTagsForRange() local 194 to_copy = granules > tags.size() ? tags.size() : granules; in RepeatTagsForRange() 195 new_tags.insert(new_tags.end(), tags.begin(), tags.begin() + to_copy); in RepeatTagsForRange()
|
| /freebsd-12-stable/contrib/ncurses/ncurses/base/ |
| D | lib_scroll.c | 58 size_t to_copy = (sizeof(NCURSES_CH_T) * (size_t) (win->_maxx + 1)); in NCURSES_EXPORT() local 88 to_copy); in NCURSES_EXPORT() 106 to_copy); in NCURSES_EXPORT()
|
| /freebsd-12-stable/contrib/libarchive/libarchive/ |
| D | archive_write.c | 377 ssize_t remaining, to_copy; in archive_write_client_write() local 404 to_copy = ((size_t)remaining > state->avail) ? in archive_write_client_write() 406 memcpy(state->next, buff, to_copy); in archive_write_client_write() 407 state->next += to_copy; in archive_write_client_write() 408 state->avail -= to_copy; in archive_write_client_write() 409 buff += to_copy; in archive_write_client_write() 410 remaining -= to_copy; in archive_write_client_write()
|
| /freebsd-12-stable/contrib/ofed/libmlx4/ |
| D | qp.c | 372 int off, to_copy; in mlx4_post_send() local 395 to_copy = MLX4_INLINE_ALIGN - off; in mlx4_post_send() 396 memcpy(wqe, addr, to_copy); in mlx4_post_send() 397 len -= to_copy; in mlx4_post_send() 398 wqe += to_copy; in mlx4_post_send() 399 addr += to_copy; in mlx4_post_send() 400 seg_len += to_copy; in mlx4_post_send()
|
| /freebsd-12-stable/contrib/subversion/subversion/libsvn_fs_x/ |
| D | string_table.c | 507 apr_size_t to_copy = len - header->head_length; in table_copy_string() local 515 while (to_copy >= copied + sizeof(apr_uint64_t)) in table_copy_string() 526 mask = *(const apr_uint64_t *)copy_masks[to_copy - copied]; in table_copy_string()
|
| D | pack.c | 422 apr_size_t to_copy = (apr_size_t)(MIN(size, ffd->block_size)); in copy_file_data() local 426 SVN_ERR(svn_io_file_read_full2(source, buffer, to_copy, in copy_file_data() 428 SVN_ERR(svn_io_file_write_full(dest, buffer, to_copy, in copy_file_data() 431 size -= to_copy; in copy_file_data()
|
| /freebsd-12-stable/contrib/subversion/subversion/libsvn_fs_fs/ |
| D | pack.c | 457 apr_size_t to_copy = (apr_size_t)(MIN(size, ffd->block_size)); in copy_file_data() local 461 SVN_ERR(svn_io_file_read_full2(source, buffer, to_copy, in copy_file_data() 463 SVN_ERR(svn_io_file_write_full(dest, buffer, to_copy, in copy_file_data() 466 size -= to_copy; in copy_file_data()
|
| /freebsd-12-stable/contrib/wpa/wpa_supplicant/ |
| D | scan.c | 3181 const u8 *to_copy; in wpas_mac_addr_rand_scan_get_mask() local 3187 to_copy = wpa_s->mac_addr_scan; in wpas_mac_addr_rand_scan_get_mask() 3189 to_copy = wpa_s->mac_addr_sched_scan; in wpas_mac_addr_rand_scan_get_mask() 3191 to_copy = wpa_s->mac_addr_pno; in wpas_mac_addr_rand_scan_get_mask() 3199 os_memcpy(mask, to_copy + ETH_ALEN, ETH_ALEN); in wpas_mac_addr_rand_scan_get_mask()
|
| /freebsd-12-stable/libexec/rtld-elf/ |
| D | rtld.c | 4829 int to_copy; in tls_get_addr_slow() local 4836 to_copy = dtv[1]; in tls_get_addr_slow() 4837 if (to_copy > tls_max_index) in tls_get_addr_slow() 4838 to_copy = tls_max_index; in tls_get_addr_slow() 4839 memcpy(&newdtv[2], &dtv[2], to_copy * sizeof(Elf_Addr)); in tls_get_addr_slow()
|