/third_party/ntfs-3g/libntfs-3g/ |
D | compress.c | 711 s64 br, to_read, ofs, total, total2; in ntfs_compressed_attr_pread() local 825 to_read = min(count, cb_size - ofs); in ntfs_compressed_attr_pread() 826 memset(b, 0, to_read); in ntfs_compressed_attr_pread() 828 total += to_read; in ntfs_compressed_attr_pread() 829 count -= to_read; in ntfs_compressed_attr_pread() 830 b = (u8*)b + to_read; in ntfs_compressed_attr_pread() 846 to_read = min(count, cb_size - ofs); in ntfs_compressed_attr_pread() 854 br = ntfs_attr_pread(na, ofs, to_read, b); in ntfs_compressed_attr_pread() 879 to_read -= br; in ntfs_compressed_attr_pread() 881 } while (to_read > 0); in ntfs_compressed_attr_pread() [all …]
|
D | win32_io.c | 1445 s64 old_pos, to_read, i, br = 0; in ntfs_device_win32_read() local 1452 to_read = (ofs + count + fd->geo_sector_size - 1) & in ntfs_device_win32_read() 1455 if (to_read > 0x80000000) { in ntfs_device_win32_read() 1456 int delta = to_read - count; in ntfs_device_win32_read() 1457 to_read = 0x80000000; in ntfs_device_win32_read() 1458 count = to_read - delta; in ntfs_device_win32_read() 1463 (long long)to_read); in ntfs_device_win32_read() 1468 alignedbuffer = (BYTE *)VirtualAlloc(NULL, to_read, MEM_COMMIT, in ntfs_device_win32_read() 1484 to_read -= br; in ntfs_device_win32_read() 1497 fd->pos & ~(s64)(fd->geo_sector_size - 1), to_read, in ntfs_device_win32_read()
|
D | runlist.c | 1116 s64 bytes_read, to_read, ofs, total; in ntfs_rl_pread() local 1141 to_read = min(count, (rl->length << in ntfs_rl_pread() 1143 memset(b, 0, to_read); in ntfs_rl_pread() 1145 total += to_read; in ntfs_rl_pread() 1146 count -= to_read; in ntfs_rl_pread() 1147 b = (u8*)b + to_read; in ntfs_rl_pread() 1151 to_read = min(count, (rl->length << vol->cluster_size_bits) - in ntfs_rl_pread() 1155 vol->cluster_size_bits) + ofs, to_read, b); in ntfs_rl_pread()
|
/third_party/gstreamer/gstplugins_good/ext/wavpack/ |
D | gstwavpackstreamreader.c | 36 uint32_t to_read = MIN (left, bcount); in gst_wavpack_stream_reader_read_bytes() local 41 if (to_read > 0) { in gst_wavpack_stream_reader_read_bytes() 42 memmove (data, rid->buffer + rid->position, to_read); in gst_wavpack_stream_reader_read_bytes() 43 rid->position += to_read; in gst_wavpack_stream_reader_read_bytes() 44 return to_read; in gst_wavpack_stream_reader_read_bytes()
|
/third_party/vk-gl-cts/external/openglcts/modules/glesext/geometry_shader/ |
D | esextcGeometryShaderBlitting.hpp | 49 glw::GLint to_read) = 0; 108 glw::GLint to_read); 141 glw::GLint to_read); 171 glw::GLint to_read);
|
D | esextcGeometryShaderBlitting.cpp | 280 glw::GLint to_draw, glw::GLint to_read) in setUpFramebuffersForRendering() argument 289 gl.framebufferTexture(GL_READ_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, to_read, 0 /* level */); in setUpFramebuffersForRendering() 314 glw::GLint to_draw, glw::GLint to_read) in setUpFramebuffersForRendering() argument 323 gl.framebufferTextureLayer(GL_READ_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, to_read, 0, 0); in setUpFramebuffersForRendering() 348 glw::GLint to_read) in setUpFramebuffersForRendering() argument 357 gl.framebufferTexture(GL_READ_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, to_read, 0 /* level */); in setUpFramebuffersForRendering()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/ |
D | seed_material.cc | 147 size_t to_read = std::min<size_t>(buffer_size, 256); 148 int result = getentropy(buffer, to_read); 154 ABSL_ANNOTATE_MEMORY_IS_INITIALIZED(buffer, to_read); 155 buffer += to_read; 156 buffer_size -= to_read;
|
/third_party/flutter/skia/third_party/externals/spirv-tools/test/ |
D | bit_stream.cpp | 684 size_t to_read = 5; in TEST() local 685 while (reader.ReadBits(&bits, to_read) > 0) { in TEST() 687 PadToWord<64>(total_stream.substr(pos, to_read))); in TEST() 688 pos += to_read; in TEST() 689 to_read = (to_read + 35) % 64 + 1; in TEST() 839 size_t to_read = 5; in TEST() local 840 while (reader.ReadBits(&bits, to_read) > 0) { in TEST() 842 PadToWord<64>(total_stream.substr(pos, to_read))); in TEST() 843 pos += to_read; in TEST() 844 to_read = (to_read + 35) % 64 + 1; in TEST() [all …]
|
/third_party/gstreamer/gstreamer/plugins/elements/ |
D | gstfilesrc.c | 314 guint to_read, bytes_read; in gst_file_src_fill() local 336 to_read = length; in gst_file_src_fill() 337 while (to_read > 0) { in gst_file_src_fill() 339 to_read, offset + bytes_read); in gst_file_src_fill() 341 ret = read (src->fd, data + bytes_read, to_read); in gst_file_src_fill() 356 to_read -= ret; in gst_file_src_fill()
|
/third_party/gstreamer/gstplugins_bad/ext/gs/ |
D | gstgssrc.cpp | 433 guint to_read = 0; in gst_gs_src_fill() local 450 to_read = length; in gst_gs_src_fill() 451 while (to_read > 0) { in gst_gs_src_fill() 453 to_read, offset + bytes_read); in gst_gs_src_fill() 455 ret = gst_gs_read_stream(src, data + bytes_read, offset, to_read); in gst_gs_src_fill() 466 to_read -= ret; in gst_gs_src_fill()
|
/third_party/gstreamer/gstreamer/gst/ |
D | gstpluginloader.c | 1064 guint32 to_read, packet_len, tag; in read_one() local 1068 to_read = HEADER_SIZE; in read_one() 1071 res = read (l->fd_r.fd, in, to_read); in read_one() 1078 to_read -= res; in read_one() 1080 } while (to_read > 0); in read_one() 1106 to_read = packet_len; in read_one() 1108 res = read (l->fd_r.fd, in, to_read); in read_one() 1115 to_read -= res; in read_one() 1117 } while (to_read > 0); in read_one()
|
/third_party/ffmpeg/libavformat/ |
D | async.c | 335 int to_read = size; in async_read_internal() local 340 while (to_read > 0) { in async_read_internal() 347 to_copy = FFMIN(to_read, fifo_size); in async_read_internal() 353 to_read -= to_copy; in async_read_internal() 354 ret = size - to_read; in async_read_internal() 356 if (to_read <= 0 || !read_complete) in async_read_internal()
|
D | mpeg.c | 962 int n, to_read, startcode; in vobsub_read_packet() local 973 to_read = ret & 0xffff; in vobsub_read_packet() 986 ret = av_grow_packet(pkt, to_read); in vobsub_read_packet() 990 n = avio_read(pb, pkt->data + (pkt->size - to_read), to_read); in vobsub_read_packet() 991 if (n < to_read) in vobsub_read_packet() 992 pkt->size -= to_read - n; in vobsub_read_packet()
|
/third_party/gstreamer/gstplugins_good/gst/multifile/ |
D | gstsplitfilesrc.c | 420 guint to_read; in gst_split_file_src_create() local 460 to_read = MIN (size, bytes_to_end_of_part); in gst_split_file_src_create() 463 "part: %u)", to_read, src->cur_part, (guint) bytes_to_end_of_part); in gst_split_file_src_create() 468 if (!g_input_stream_read_all (stream, data, to_read, &read, cancel, &err)) in gst_split_file_src_create() 485 if (read < to_read) { in gst_split_file_src_create()
|
/third_party/gstreamer/gstplugins_bad/sys/wasapi2/ |
D | gstwasapi2ringbuffer.cpp | 452 UINT32 to_read = 0; in gst_wasapi2_ring_buffer_read() local 470 hr = capture_client->GetBuffer (&data, &to_read, &flags, &position, nullptr); in gst_wasapi2_ring_buffer_read() 471 if (hr == AUDCLNT_S_BUFFER_EMPTY || to_read == 0) { in gst_wasapi2_ring_buffer_read() 473 to_read = 0; in gst_wasapi2_ring_buffer_read() 477 to_read_bytes = to_read * GST_AUDIO_INFO_BPF (info); in gst_wasapi2_ring_buffer_read() 480 ", expected position %" G_GUINT64_FORMAT, to_read, position, in gst_wasapi2_ring_buffer_read() 484 self->expected_position = position + to_read; in gst_wasapi2_ring_buffer_read() 495 self->expected_position = position + to_read; in gst_wasapi2_ring_buffer_read() 553 hr = capture_client->ReleaseBuffer (to_read); in gst_wasapi2_ring_buffer_read()
|
/third_party/glib/gio/ |
D | ginputstream.c | 699 gsize to_read; member 732 g_assert_cmpint (nread, <=, data->to_read); in read_all_callback() 733 data->to_read -= nread; in read_all_callback() 738 if (got_eof || data->to_read == 0) in read_all_callback() 747 data->to_read, in read_all_callback() 764 if (g_input_stream_read_all (stream, data->buffer, data->to_read, &data->bytes_read, in read_all_async_thread() 813 data->to_read = count; in g_input_stream_read_all_async()
|
D | gwin32file-sync-stream.c | 243 ULONG to_read = buffer_size; in _file_sync_stream_copy_to() local 246 to_read = (ULONG) counter.QuadPart; in _file_sync_stream_copy_to() 249 hr = self_ptr->lpVtbl->Read (self_ptr, buffer, to_read, &bytes_read); in _file_sync_stream_copy_to()
|
/third_party/gettext/gettext-runtime/intl/ |
D | loadmsgcat.c | 803 size_t to_read; in _nl_load_domain() local 810 to_read = size; in _nl_load_domain() 814 long int nb = (long int) read (fd, read_ptr, to_read); in _nl_load_domain() 825 to_read -= nb; in _nl_load_domain() 827 while (to_read > 0); in _nl_load_domain()
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/audio/ |
D | gstaudioringbuffer.c | 1758 guint to_read; in gst_audio_ring_buffer_read() local 1774 to_read = len; in gst_audio_ring_buffer_read() 1776 while (to_read > 0) { in gst_audio_ring_buffer_read() 1799 segdone, sample, readseg, sampleoff, to_read, diff, segtotal, in gst_audio_ring_buffer_read() 1805 sampleslen = MIN (sps, to_read); in gst_audio_ring_buffer_read() 1822 sampleslen = MIN (sps - sampleoff, to_read); in gst_audio_ring_buffer_read() 1845 to_read -= sampleslen; in gst_audio_ring_buffer_read() 1856 return len - to_read; in gst_audio_ring_buffer_read() 1862 return len - to_read; in gst_audio_ring_buffer_read()
|
/third_party/grpc/test/core/tsi/ |
D | transport_security_test_lib.cc | 177 size_t to_read = *buf_size < *bytes_written - *bytes_read in receive_bytes_from_peer() local 181 memcpy(*buf, channel + *bytes_read, to_read); in receive_bytes_from_peer() 182 *buf_size = to_read; in receive_bytes_from_peer() 183 *bytes_read += to_read; in receive_bytes_from_peer()
|
/third_party/glib/glib/tests/ |
D | mainloop.c | 1164 gssize *to_read = user_data; in read_bytes() local 1166 *to_read -= read (fd, buffer, sizeof buffer); in read_bytes() 1179 gssize to_read; in test_unix_fd() local 1189 to_read = fill_a_pipe (fds[1]); in test_unix_fd() 1196 to_read += 128 * 1024 * 1024; in test_unix_fd() 1198 b = g_unix_fd_add (fds[0], G_IO_IN, read_bytes, &to_read); in test_unix_fd() 1208 gssize to_read_was = to_read; in test_unix_fd() 1216 g_assert_true (to_write == to_write_was || to_read == to_read_was); in test_unix_fd() 1220 g_assert_cmpint (to_read, ==, 0); in test_unix_fd()
|
/third_party/gstreamer/gstplugins_base/gst/tcp/ |
D | gstmultifdsink.c | 615 gint to_read = MIN (avail, 512); in gst_multi_fd_sink_handle_client_read() local 618 mhclient->debug, to_read); in gst_multi_fd_sink_handle_client_read() 620 nread = read (fd, dummy, to_read); in gst_multi_fd_sink_handle_client_read() 623 mhclient->debug, to_read, g_strerror (errno), errno); in gst_multi_fd_sink_handle_client_read()
|
/third_party/gstreamer/gstplugins_bad/gst/mpegtsdemux/ |
D | mpegtspacketizer.c | 160 guint8 last_section_number, guint8 * data_start, gsize to_read) in seen_section_before() argument 188 return (memcmp (stream->section_data, data_start, to_read) != 0); in seen_section_before() 968 gsize to_read; in mpegts_packetizer_push_section() local 1061 to_read = MIN (stream->section_length - stream->section_offset, in mpegts_packetizer_push_section() 1063 memcpy (stream->section_data + stream->section_offset, data_start, to_read); in mpegts_packetizer_push_section() 1064 stream->section_offset += to_read; in mpegts_packetizer_push_section() 1066 data = data_start + to_read; in mpegts_packetizer_push_section() 1196 to_read = MIN (section_length, packet->data_end - data_start); in mpegts_packetizer_push_section() 1207 to_read)) { in mpegts_packetizer_push_section() 1213 data = data_start + to_read; in mpegts_packetizer_push_section()
|
/third_party/ntfs-3g/ntfsprogs/ |
D | ntfsdecrypt.c | 319 int f, to_read, total, attempts, br; in ntfs_pkcs12_load_pfxfile() local 352 to_read = key_stat.st_size; in ntfs_pkcs12_load_pfxfile() 355 br = read(f, *pfx + total, to_read); in ntfs_pkcs12_load_pfxfile() 362 to_read -= br; in ntfs_pkcs12_load_pfxfile() 364 } while (to_read > 0 && attempts < 3); in ntfs_pkcs12_load_pfxfile()
|
/third_party/boost/libs/beast/test/bench/parser/nodejs-parser/ |
D | http_parser.c | 1883 uint64_t to_read = MIN(parser->content_length, in http_parser_execute() local 1895 parser->content_length -= to_read; in http_parser_execute() 1896 p += to_read - 1; in http_parser_execute() 2016 uint64_t to_read = MIN(parser->content_length, in http_parser_execute() local 2027 parser->content_length -= to_read; in http_parser_execute() 2028 p += to_read - 1; in http_parser_execute()
|