/third_party/rust/crates/nix/test/sys/ |
D | test_uio.rs | 19 let mut to_write = Vec::with_capacity(16 * 128); in test_writev() localVariable 27 to_write.extend(b.iter().cloned()); in test_writev() 32 while consumed < to_write.len() { in test_writev() 33 let left = to_write.len() - consumed; in test_writev() 39 let b = &to_write[consumed..consumed + slice_len]; in test_writev() 51 assert_eq!(to_write.len(), written); in test_writev() 57 assert_eq!(&to_write, &read_buf); in test_writev() 70 let to_write = s.as_bytes().to_vec(); in test_readv() localVariable 73 while allocated < to_write.len() { in test_readv() 74 let left = to_write.len() - allocated; in test_readv() [all …]
|
/third_party/selinux/libselinux/utils/ |
D | sefcontext_compile.c | 184 uint32_t to_write; in write_binary_file() local 187 to_write = strlen(context) + 1; in write_binary_file() 188 len = fwrite(&to_write, sizeof(uint32_t), 1, bin_file); in write_binary_file() 193 len = fwrite(context, sizeof(char), to_write, bin_file); in write_binary_file() 194 if (len != to_write) in write_binary_file() 198 to_write = strlen(regex_str) + 1; in write_binary_file() 199 len = fwrite(&to_write, sizeof(uint32_t), 1, bin_file); in write_binary_file() 204 len = fwrite(regex_str, sizeof(char), to_write, bin_file); in write_binary_file() 205 if (len != to_write) in write_binary_file() 209 to_write = mode; in write_binary_file() [all …]
|
/third_party/mesa3d/src/util/ |
D | blob.c | 143 size_t to_write) in blob_overwrite_bytes() argument 146 if (offset + to_write < offset || blob->size < offset + to_write) in blob_overwrite_bytes() 149 VG(VALGRIND_CHECK_MEM_IS_DEFINED(bytes, to_write)); in blob_overwrite_bytes() 152 memcpy(blob->data + offset, bytes, to_write); in blob_overwrite_bytes() 158 blob_write_bytes(struct blob *blob, const void *bytes, size_t to_write) in blob_write_bytes() argument 160 if (! grow_to_fit(blob, to_write)) in blob_write_bytes() 163 VG(VALGRIND_CHECK_MEM_IS_DEFINED(bytes, to_write)); in blob_write_bytes() 165 if (blob->data && to_write > 0) in blob_write_bytes() 166 memcpy(blob->data + blob->size, bytes, to_write); in blob_write_bytes() 167 blob->size += to_write; in blob_write_bytes() [all …]
|
D | blob.h | 142 blob_write_bytes(struct blob *blob, const void *bytes, size_t to_write); 155 blob_reserve_bytes(struct blob *blob, size_t to_write); 189 size_t to_write);
|
/third_party/ltp/testcases/kernel/syscalls/splice/ |
D | splice02.c | 120 size_t i, size, written, max_pipe_size, to_write; in run() local 130 to_write = file_size; in run() 137 while (to_write > 0) { in run() 138 size = to_write > BUFSIZE ? BUFSIZE : to_write; in run() 141 buf[i] = get_letter(file_size - to_write + i); in run() 144 to_write -= written; in run()
|
/third_party/selinux/libselinux/src/ |
D | regex.c | 155 uint32_t to_write = 0; in regex_writef() local 166 to_write = serialized_size; in regex_writef() 170 len = fwrite(&to_write, sizeof(uint32_t), 1, fp); in regex_writef() 178 len = fwrite(bytes, 1, to_write, fp); in regex_writef() 179 if (len != to_write) in regex_writef() 439 uint32_t to_write; in regex_writef() local 449 to_write = size; in regex_writef() 450 len = fwrite(&to_write, sizeof(uint32_t), 1, fp); in regex_writef() 455 len = fwrite(regex->regex, 1, to_write, fp); in regex_writef() 456 if (len != to_write) in regex_writef() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/ |
D | output.cc | 35 size_t to_write = std::min(v.size(), size_); in Write() local 36 std::memcpy(buffer_, v.data(), to_write); in Write() 37 buffer_ += to_write; in Write() 38 size_ -= to_write; in Write()
|
D | arg.h | 149 size_t to_write = value.size(); 153 to_write = (std::min)(to_write, static_cast<size_t>(precision)); 155 space_remaining = Excess(to_write, space_remaining); 160 if (piece.size() > to_write) { 161 piece.remove_suffix(piece.size() - to_write); 162 to_write = 0; 164 to_write -= piece.size(); 167 if (to_write == 0) {
|
/third_party/ffmpeg/libavutil/ |
D | fifo.c | 129 static int fifo_check_space(AVFifo *f, size_t to_write) in fifo_check_space() argument 132 const size_t need_grow = to_write > can_write ? to_write - can_write : 0; in fifo_check_space() 152 size_t to_write = *nb_elems; in fifo_write_common() local 156 ret = fifo_check_space(f, to_write); in fifo_write_common() 162 while (to_write > 0) { in fifo_write_common() 163 size_t len = FFMIN(f->nb_elems - offset_w, to_write); in fifo_write_common() 177 to_write -= len; in fifo_write_common() 181 if (*nb_elems != to_write) in fifo_write_common() 183 *nb_elems -= to_write; in fifo_write_common()
|
/third_party/node/src/crypto/ |
D | crypto_bio.cc | 364 size_t to_write = left; in Write() local 368 if (to_write > avail) in Write() 369 to_write = avail; in Write() 374 to_write); in Write() 377 left -= to_write; in Write() 378 offset += to_write; in Write() 379 length_ += to_write; in Write() 380 write_head_->write_pos_ += to_write; in Write()
|
/third_party/pulseaudio/src/modules/bluetooth/ |
D | a2dp-codec-sbc.c | 787 size_t to_write, to_encode; in encode_buffer() local 799 to_write = output_size - sizeof(*header) - sizeof(*payload); in encode_buffer() 802 while (PA_LIKELY(to_encode > 0 && to_write > 0 && frame_count < 15)) { in encode_buffer() 808 d, to_write, in encode_buffer() 824 pa_assert_fp((size_t) written <= to_write); in encode_buffer() 831 to_write -= written; in encode_buffer() 870 size_t to_write, to_decode; in decode_buffer() local 889 to_write = output_size; in decode_buffer() 891 while (PA_LIKELY(to_decode > 0 && to_write > 0 && frame_count > 0)) { in decode_buffer() 897 d, to_write, in decode_buffer() [all …]
|
/third_party/ntfs-3g/libntfs-3g/ |
D | compress.c | 1024 s64 offs, s32 to_write, const char *outbuf) in write_clusters() argument 1044 if ((to_write - put) < count) in write_clusters() 1045 count = to_write - put; in write_clusters() 1054 } while ((xput == count) && (put < to_write)); in write_clusters() 1584 char *outbuf, s64 to_write, const void *b) in ntfs_read_append() argument 1594 memcpy(&outbuf[pos],b,to_write); in ntfs_read_append() 1609 memcpy(&outbuf[pos],b,to_write); in ntfs_read_append() 1671 s64 offs, s64 to_write, s64 rounded, in ntfs_compressed_pwrite() argument 1734 endwrite = offs + to_write + (wrl->vcn << vol->cluster_size_bits); in ntfs_compressed_pwrite() 1740 to_write = rounded = nextblock in ntfs_compressed_pwrite() [all …]
|
D | win32_io.c | 1638 s64 old_pos, to_write, i, bw = 0; in ntfs_device_win32_write() local 1646 to_write = (ofs + count + fd->geo_sector_size - 1) & in ntfs_device_win32_write() 1649 if (to_write > 0x80000000) { in ntfs_device_win32_write() 1650 int delta = to_write - count; in ntfs_device_win32_write() 1651 to_write = 0x80000000; in ntfs_device_win32_write() 1652 count = to_write - delta; in ntfs_device_win32_write() 1657 (long long)to_write); in ntfs_device_win32_write() 1673 readbuffer = (BYTE *)VirtualAlloc(NULL, to_write, in ntfs_device_win32_write() 1699 ((to_write > fd->geo_sector_size) || !ofs)) { in ntfs_device_win32_write() 1703 to_write - fd->geo_sector_size); in ntfs_device_win32_write() [all …]
|
D | runlist.c | 1205 s64 written, to_write, total = 0; in ntfs_rl_pwrite() local 1233 to_write = min(count, (rl->length << in ntfs_rl_pwrite() 1236 total += to_write; in ntfs_rl_pwrite() 1237 count -= to_write; in ntfs_rl_pwrite() 1238 b = (u8*)b + to_write; in ntfs_rl_pwrite() 1242 to_write = min(count, (rl->length << vol->cluster_size_bits) - in ntfs_rl_pwrite() 1248 to_write, b); in ntfs_rl_pwrite() 1250 written = to_write; in ntfs_rl_pwrite()
|
D | attrib.c | 1304 s64 to_write; in ntfs_attr_fill_hole() local 1323 to_write = min(count, ((*rl)->length << vol->cluster_size_bits) - *ofs); in ntfs_attr_fill_hole() 1330 (long long)from_vcn, (long long)to_write, (long long)*ofs); in ntfs_attr_fill_hole() 1391 need = ((*ofs + to_write - 1) >> vol->cluster_size_bits) in ntfs_attr_fill_hole() 1850 s64 written, to_write, ofs, old_initialized_size, old_data_size; local 2224 to_write = min(count, (rl->length << vol->cluster_size_bits) - ofs); 2227 "%lld.\n", (long long)to_write, (long long)rl->vcn, 2232 s64 wend = (rl->vcn << vol->cluster_size_bits) + ofs + to_write; 2251 rounding += to_write; 2257 memcpy(cb, b, to_write); [all …]
|
/third_party/mesa3d/src/intel/tools/ |
D | aub_mem.c | 228 uint32_t to_write = size; in aub_mem_phys_write() local 232 uint32_t size_this_page = MIN2(to_write, 4096 - offset); in aub_mem_phys_write() 233 to_write -= size_this_page; in aub_mem_phys_write() 245 uint32_t to_write = size; in aub_mem_ggtt_write() local 251 uint32_t size_this_page = MIN2(to_write, 4096 - offset); in aub_mem_ggtt_write() 252 to_write -= size_this_page; in aub_mem_ggtt_write()
|
/third_party/ffmpeg/libavcodec/ |
D | opus_rc.c | 163 const int to_write = FFMIN(32 - rc->rb.cachelen, count); in ff_opus_rc_put_raw() local 166 rc->rb.cacheval |= av_mod_uintp2(val, to_write) << rc->rb.cachelen; in ff_opus_rc_put_raw() 167 rc->rb.cachelen = (rc->rb.cachelen + to_write) % 32; in ff_opus_rc_put_raw() 173 rc->rb.cachelen = count - to_write; in ff_opus_rc_put_raw() 174 rc->rb.cacheval = av_mod_uintp2(val >> to_write, rc->rb.cachelen); in ff_opus_rc_put_raw()
|
/third_party/node/deps/openssl/openssl/providers/implementations/kdfs/ |
D | kbkdf.c | 159 size_t written = 0, to_write, k_i_len = iv_len; in derive() local 197 to_write = ko_len - written; in derive() 198 memcpy(ko + written, k_i, ossl_min(to_write, h)); in derive()
|
/third_party/openssl/providers/implementations/kdfs/ |
D | kbkdf.c | 159 size_t written = 0, to_write, k_i_len = iv_len; in derive() local 197 to_write = ko_len - written; in derive() 198 memcpy(ko + written, k_i, ossl_min(to_write, h)); in derive()
|
/third_party/ntfs-3g/include/ntfs-3g/ |
D | compress.h | 33 s64 offs, s64 to_write, s64 rounded,
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
D | d3d12_compute_transforms.cpp | 205 …nir_ssa_def *to_write = nir_vec4(&b, vertex_count, nir_imm_int(&b, 1), nir_imm_int(&b, 0), nir_imm… in get_draw_auto() local 206 …nir_store_ssbo(&b, to_write, nir_imm_int(&b, 0), nir_imm_int(&b, 4), 0xf, (gl_access_qualifier)0, … in get_draw_auto()
|
/third_party/pulseaudio/src/utils/ |
D | padsp.c | 872 size_t to_write; in fd_info_copy_data() local 892 to_write = pa_frame_align(r + i->leftover, &i->sample_spec); in fd_info_copy_data() 894 … if (pa_stream_write(i->play_stream, i->buf, to_write, NULL, 0LL, PA_SEEK_RELATIVE) < 0) { in fd_info_copy_data() 899 i->leftover += r - to_write; in fd_info_copy_data() 901 memmove(i->buf, ((uint8_t *) i->buf) + to_write, i->leftover); in fd_info_copy_data() 903 assert(n >= (size_t) to_write); in fd_info_copy_data() 904 n -= (size_t) to_write; in fd_info_copy_data()
|
/third_party/libuv/test/ |
D | test-spawn.c | 1891 DWORD to_write; in spawn_stdin_stdout() local 1896 to_write = n_read; in spawn_stdin_stdout() 1898 while (to_write) { in spawn_stdin_stdout() 1899 ASSERT(WriteFile(h_stdout, pbuf, to_write, &n_written, NULL)); in spawn_stdin_stdout() 1900 to_write -= n_written; in spawn_stdin_stdout()
|
/third_party/node/deps/brotli/c/dec/ |
D | decode.c | 1272 size_t to_write = UnwrittenBytes(s, BROTLI_TRUE); in WriteRingBuffer() local 1274 if (num_written > to_write) { in WriteRingBuffer() 1275 num_written = to_write; in WriteRingBuffer() 1289 BROTLI_LOG_UINT(to_write); in WriteRingBuffer() 1295 if (num_written < to_write) { in WriteRingBuffer()
|
/third_party/skia/third_party/externals/brotli/c/dec/ |
D | decode.c | 1272 size_t to_write = UnwrittenBytes(s, BROTLI_TRUE); in WriteRingBuffer() local 1274 if (num_written > to_write) { in WriteRingBuffer() 1275 num_written = to_write; in WriteRingBuffer() 1289 BROTLI_LOG_UINT(to_write); in WriteRingBuffer() 1295 if (num_written < to_write) { in WriteRingBuffer()
|