Home
last modified time | relevance | path

Searched refs:to_write (Results 1 – 25 of 30) sorted by relevance

12

/third_party/rust/crates/nix/test/sys/
Dtest_uio.rs19 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/
Dsefcontext_compile.c184 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/
Dblob.c143 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 …]
Dblob.h142 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/
Dsplice02.c120 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/
Dregex.c166 uint32_t to_write = 0; in regex_writef() local
177 to_write = serialized_size; in regex_writef()
181 len = fwrite(&to_write, sizeof(uint32_t), 1, fp); in regex_writef()
189 len = fwrite(bytes, 1, to_write, fp); in regex_writef()
190 if (len != to_write) in regex_writef()
394 uint32_t to_write; in regex_writef() local
404 to_write = size; in regex_writef()
405 len = fwrite(&to_write, sizeof(uint32_t), 1, fp); in regex_writef()
410 len = fwrite(regex->regex, 1, to_write, fp); in regex_writef()
411 if (len != to_write) in regex_writef()
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/
Doutput.cc35 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()
Darg.h149 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/pulseaudio/src/modules/bluetooth/
Da2dp-codec-sbc.c524 size_t to_write, to_encode; in encode_buffer() local
536 to_write = output_size - sizeof(*header) - sizeof(*payload); in encode_buffer()
539 while (PA_LIKELY(to_encode > 0 && to_write > 0 && frame_count < 15)) { in encode_buffer()
545 d, to_write, in encode_buffer()
561 pa_assert_fp((size_t) written <= to_write); in encode_buffer()
568 to_write -= written; in encode_buffer()
607 size_t to_write, to_decode; in decode_buffer() local
626 to_write = output_size; in decode_buffer()
628 while (PA_LIKELY(to_decode > 0 && to_write > 0 && frame_count > 0)) { in decode_buffer()
634 d, to_write, in decode_buffer()
[all …]
/third_party/node/src/
Dnode_crypto_bio.cc368 size_t to_write = left; in Write() local
372 if (to_write > avail) in Write()
373 to_write = avail; in Write()
378 to_write); in Write()
381 left -= to_write; in Write()
382 offset += to_write; in Write()
383 length_ += to_write; in Write()
384 write_head_->write_pos_ += to_write; in Write()
/third_party/gstreamer/gstplugins_bad/sys/magicleap/
Dmlaudiosink.c356 guint to_write; in gst_ml_audio_sink_write() local
372 to_write = MIN (length, self->buffer.size - self->buffer_offset); in gst_ml_audio_sink_write()
373 memcpy (self->buffer.ptr + self->buffer_offset, input + written, to_write); in gst_ml_audio_sink_write()
374 self->buffer_offset += to_write; in gst_ml_audio_sink_write()
385 length -= to_write; in gst_ml_audio_sink_write()
386 written += to_write; in gst_ml_audio_sink_write()
/third_party/gstreamer/gstreamer/gst/
Dgstregistrybinary.c427 GList *to_write = NULL; in priv_gst_registry_binary_write_cache() local
454 if (!_priv_gst_registry_chunks_save_plugin (&to_write, registry, plugin)) { in priv_gst_registry_binary_write_cache()
460 _priv_gst_registry_chunks_save_global_header (&to_write, registry, in priv_gst_registry_binary_write_cache()
479 for (walk = to_write; walk; walk = g_list_next (walk)) { in priv_gst_registry_binary_write_cache()
490 g_list_free (to_write); in priv_gst_registry_binary_write_cache()
500 for (walk = to_write; walk; walk = g_list_next (walk)) { in priv_gst_registry_binary_write_cache()
506 g_list_free (to_write); in priv_gst_registry_binary_write_cache()
Dgstpluginloader.c781 guint32 to_write, magic; in write_one() local
795 to_write = GST_READ_UINT32_BE (out + 4) + HEADER_SIZE; in write_one()
797 if (to_write > l->tx_buf_size) { in write_one()
802 l->tx_buf_read += to_write; in write_one()
804 GST_LOG ("Writing packet of size %d bytes to fd %d", to_write, l->fd_w.fd); in write_one()
807 res = write (l->fd_w.fd, out, to_write); in write_one()
814 to_write -= res; in write_one()
816 } while (to_write > 0); in write_one()
/third_party/ntfs-3g/libntfs-3g/
Dcompress.c1024 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 …]
Dwin32_io.c1638 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 …]
Drunlist.c1205 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()
Dattrib.c1304 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/
Daub_mem.c228 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/
Dopus_rc.c163 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/gstreamer/gstplugins_bad/ext/dtls/
Dgstdtlsenc.c527 gsize to_write, written = 0; in sink_chain() local
545 to_write = map_info.size; in sink_chain()
547 while (to_write > 0 && ret == GST_FLOW_OK) { in sink_chain()
557 g_assert (written <= to_write); in sink_chain()
558 to_write -= written; in sink_chain()
/third_party/openssl/providers/implementations/kdfs/
Dkbkdf.c159 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/
Dcompress.h33 s64 offs, s64 to_write, s64 rounded,
/third_party/libffi/src/
Dclosures.c748 off_t to_write = (len < page_size) ? len : page_size; in allocate_space() local
749 if (write (fd, buf, to_write) < to_write) in allocate_space()
751 len -= to_write; in allocate_space()
/third_party/gstreamer/gstreamer/plugins/elements/
Dgstqueue2.c2000 guint to_write; in gst_queue2_create_write() local
2016 to_write = MIN (size, space); in gst_queue2_create_write()
2020 new_writing_pos = (writing_pos + to_write) % rb_size; in gst_queue2_create_write()
2083 guint64 new_wpos_virt = writing_pos + to_write; in gst_queue2_create_write()
2121 to_write = size; in gst_queue2_create_write()
2122 new_writing_pos = writing_pos + to_write; in gst_queue2_create_write()
2132 "] (rb wpos %" G_GUINT64_FORMAT ")", to_write, queue->current->offset, in gst_queue2_create_write()
2136 if (fwrite (data, to_write, 1, queue->temp_file) != 1) in gst_queue2_create_write()
2139 memcpy (ring_buffer + writing_pos, data, to_write); in gst_queue2_create_write()
2175 block_two = to_write - block_one; in gst_queue2_create_write()
[all …]
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_compute_transforms.cpp205 …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()

12