/external/libunwind/src/ |
D | os-linux.h | 218 ssize_t bytes_left = mi->buf_end - mi->buf; in maps_next() local 221 for (i = 0; i < bytes_left; ++i) in maps_next() 234 if (bytes_left > 0) in maps_next() 235 memmove (mi->buf_end - mi->buf_size, mi->buf, bytes_left); in maps_next() 238 nread = read (mi->fd, mi->buf + bytes_left, in maps_next() 239 mi->buf_size - bytes_left); in maps_next() 242 else if ((size_t) (nread + bytes_left) < mi->buf_size) in maps_next() 247 memmove (mi->buf_end - nread - bytes_left, mi->buf, in maps_next() 248 nread + bytes_left); in maps_next() 249 mi->buf = mi->buf_end - nread - bytes_left; in maps_next() [all …]
|
/external/mesa3d/src/gallium/auxiliary/vl/ |
D | vl_vlc.h | 51 unsigned bytes_left; member 100 vlc->bytes_left -= len; in vl_vlc_next_input() 127 unsigned bytes_left = vlc->end - vlc->data; in vl_vlc_fillbits() local 130 if (bytes_left == 0) { in vl_vlc_fillbits() 139 } else if (bytes_left >= 4) { in vl_vlc_fillbits() 182 vlc->bytes_left = 0; in vl_vlc_init() 185 vlc->bytes_left += sizes[i]; in vl_vlc_init() 207 signed bytes_left = vlc->end - vlc->data; in vl_vlc_bits_left() local 208 bytes_left += vlc->bytes_left; in vl_vlc_bits_left() 209 return bytes_left * 8 + vl_vlc_valid_bits(vlc); in vl_vlc_bits_left()
|
/external/webrtc/webrtc/base/ |
D | sslidentity.cc | 194 size_t bytes_left = length; in ASN1TimeToSec() local 215 if (bytes_left < 11) in ASN1TimeToSec() 218 year = ASN1ReadInt(&s, &bytes_left, 4); in ASN1TimeToSec() 224 if (bytes_left < 9) in ASN1TimeToSec() 227 year = ASN1ReadInt(&s, &bytes_left, 2); in ASN1TimeToSec() 237 tm.tm_mon = ASN1ReadInt(&s, &bytes_left, 2) - 1; in ASN1TimeToSec() 238 tm.tm_mday = ASN1ReadInt(&s, &bytes_left, 2); in ASN1TimeToSec() 239 tm.tm_hour = ASN1ReadInt(&s, &bytes_left, 2); in ASN1TimeToSec() 240 tm.tm_min = ASN1ReadInt(&s, &bytes_left, 2); in ASN1TimeToSec() 241 tm.tm_sec = ASN1ReadInt(&s, &bytes_left, 2); in ASN1TimeToSec() [all …]
|
/external/webrtc/webrtc/modules/audio_device/ |
D | fine_audio_buffer.cc | 83 int bytes_left = in GetPlayoutData() local 86 size_t number_of_requests = 1 + (bytes_left - 1) / (bytes_per_10_ms_); in GetPlayoutData() 96 RTC_CHECK_GE(bytes_left, 0); in GetPlayoutData() 97 bytes_left -= static_cast<int>(bytes_per_10_ms_); in GetPlayoutData() 99 RTC_CHECK_LE(bytes_left, 0); in GetPlayoutData() 109 RTC_CHECK_EQ(static_cast<size_t>(-bytes_left), playout_cached_bytes_); in GetPlayoutData()
|
/external/openssh/ |
D | progressmeter.c | 127 off_t bytes_left; in refresh_progress_meter() local 136 bytes_left = end_pos - cur_pos; in refresh_progress_meter() 138 if (bytes_left > 0) in refresh_progress_meter() 200 else if (bytes_per_second == 0 && bytes_left) in refresh_progress_meter() 203 if (bytes_left > 0) in refresh_progress_meter() 204 seconds = bytes_left / bytes_per_second; in refresh_progress_meter() 220 if (bytes_left > 0) in refresh_progress_meter()
|
/external/compiler-rt/test/dfsan/ |
D | write_callback.c | 38 int bytes_left = strlen(string); in write_string_to_stdout() local 39 while (bytes_left > 0) { in write_string_to_stdout() 40 int res = write(fileno(stdout), cur, bytes_left); in write_string_to_stdout() 43 bytes_left -= res; in write_string_to_stdout()
|
/external/nanopb-c/ |
D | pb_decode.c | 113 if (stream->bytes_left < count) in pb_read() 124 stream->bytes_left -= count; in pb_read() 132 if (stream->bytes_left == 0) in pb_readbyte() 143 stream->bytes_left--; in pb_readbyte() 157 stream.bytes_left = bufsize; in pb_istream_from_buffer() 255 if (stream->bytes_left == 0) in pb_decode_tag() 324 if (substream->bytes_left < size) in pb_make_string_substream() 327 substream->bytes_left = size; in pb_make_string_substream() 328 stream->bytes_left -= size; in pb_make_string_substream() 437 while (substream.bytes_left > 0 && *size < iter->pos->array_size) in decode_static_field() [all …]
|
D | pb_decode.h | 41 size_t bytes_left; member
|
/external/libvpx/libvpx/vp8/decoder/ |
D | dboolhuff.c | 39 size_t bytes_left = br->user_buffer_end - bufptr; in vp8dx_bool_decoder_fill() local 40 size_t bits_left = bytes_left * CHAR_BIT; in vp8dx_bool_decoder_fill() 46 size_t n = VPXMIN(sizeof(decrypted), bytes_left); in vp8dx_bool_decoder_fill()
|
/external/nanopb-c/tests/decode_unittests/ |
D | decode_unittests.c | 52 TEST(stream.bytes_left == sizeof(buffer1) - 6) in main() 53 TEST(pb_read(&stream, buffer2 + 6, stream.bytes_left)) in main() 55 TEST(stream.bytes_left == 0) in main() 93 TEST((s = S("\x00""foobar"), pb_skip_varint(&s) && s.bytes_left == 6)) in main() 94 TEST((s = S("\xAC\x02""foobar"), pb_skip_varint(&s) && s.bytes_left == 6)) in main() 96 pb_skip_varint(&s) && s.bytes_left == 6)) in main() 103 TEST((s = S("\x00""foobar"), pb_skip_string(&s) && s.bytes_left == 6)) in main() 104 TEST((s = S("\x04""testfoobar"), pb_skip_string(&s) && s.bytes_left == 6)) in main()
|
/external/syslinux/core/fs/ |
D | getfssec.c | 95 uint32_t bytes_left = inode->size - file->offset; in generic_getfssec() local 97 (bytes_left + SECTOR_SIZE(fs) - 1) >> SECTOR_SHIFT(fs); in generic_getfssec() 187 bytes_read = min(bytes_read, bytes_left); in generic_getfssec() 191 *have_more = bytes_read < bytes_left; in generic_getfssec()
|
/external/libvpx/libvpx/vpx_dsp/ |
D | bitreader.c | 44 const size_t bytes_left = buffer_end - buffer; in vpx_reader_fill() local 45 const size_t bits_left = bytes_left * CHAR_BIT; in vpx_reader_fill() 49 size_t n = VPXMIN(sizeof(r->clear_buffer), bytes_left); in vpx_reader_fill()
|
/external/e2fsprogs/lib/ext2fs/ |
D | inode.c | 50 int bytes_left; member 175 scan->bytes_left = 0; in ext2fs_open_inode_scan() 277 scan->bytes_left = 0; in get_next_blockgroup() 517 if (scan->bytes_left) in get_next_blocks() 546 scan->bytes_left = num_blocks * scan->fs->blocksize; in get_next_blocks() 566 if (scan->bytes_left == 0) 569 for (i=0; i < scan->bytes_left; i++) 632 if (scan->bytes_left < scan->inode_size) { in ext2fs_get_next_inode_full() 633 memcpy(scan->temp_buffer, scan->ptr, scan->bytes_left); in ext2fs_get_next_inode_full() 634 extra_bytes = scan->bytes_left; in ext2fs_get_next_inode_full() [all …]
|
/external/ltp/testcases/kernel/mem/mmapstress/ |
D | mmapstress01.c | 158 off64_t bytes_left; local 160 off_t bytes_left; local 314 for (bytes_left = filesize; bytes_left; bytes_left -= c) { 315 write_cnt = min(pagesize, bytes_left);
|
D | mmapstress10.c | 185 off64_t bytes_left; local 187 off_t bytes_left; local 365 for (bytes_left = filesize; bytes_left; bytes_left -= c) { 366 write_cnt = min(pagesize, bytes_left);
|
/external/fio/exp/ |
D | expression-parser.y | 193 int bytes_left = strlen(lexer_input_buffer) - lexer_read_offset; in lexer_input() local 195 if (bytes_requested > bytes_left ) in lexer_input() 196 bytes_requested = bytes_left; in lexer_input()
|
/external/pdfium/third_party/libjpeg/ |
D | fpdfapi_jmemmgr.c | 97 size_t bytes_left; /* bytes still available in this pool */ member 108 size_t bytes_left; /* bytes still available in this pool */ member 211 (long) shdr_ptr->hdr.bytes_left); in print_mem_stats() 282 if (hdr_ptr->hdr.bytes_left >= sizeofobject) in alloc_small() 312 hdr_ptr->hdr.bytes_left = sizeofobject + slop; in alloc_small() 323 hdr_ptr->hdr.bytes_left -= sizeofobject; in alloc_small() 376 hdr_ptr->hdr.bytes_left = 0; in alloc_large() 975 lhdr_ptr->hdr.bytes_left + in free_pool() 989 shdr_ptr->hdr.bytes_left + in free_pool()
|
/external/libjpeg-turbo/ |
D | jmemmgr.c | 107 size_t bytes_left; /* bytes still available in this pool */ member 115 size_t bytes_left; /* bytes still available in this pool */ member 215 (long) shdr_ptr->bytes_left); in print_mem_stats() 299 if (hdr_ptr->bytes_left >= sizeofobject) in alloc_small() 329 hdr_ptr->bytes_left = sizeofobject + slop; in alloc_small() 343 hdr_ptr->bytes_left -= sizeofobject; in alloc_small() 405 hdr_ptr->bytes_left = 0; in alloc_large() 1036 lhdr_ptr->bytes_left + in free_pool() 1050 shdr_ptr->bytes_left + in free_pool()
|
/external/nanopb-c/tests/callbacks/ |
D | decode_callbacks.c | 15 if (stream->bytes_left > sizeof(buffer) - 1) in print_string() 18 if (!pb_read(stream, buffer, stream->bytes_left)) in print_string()
|
/external/nanopb-c/docs/ |
D | concepts.rst | 58 #) *bytes_written* and *bytes_left* are updated by pb_write and pb_read. 59 #) Your callback may be used with substreams. In this case *bytes_left*, *bytes_written* and *max_s… 104 …h of the message in advance. After getting EOF error when reading, set bytes_left to 0 and return … 112 size_t bytes_left; 137 stream->bytes_left = 0; 216 …g* and *bytes*, the length value has already been parsed, and is available at *stream->bytes_left*. 226 while (stream->bytes_left) 314 5) Exceeding the max_size or bytes_left of a stream.
|
/external/netperf/src/ |
D | netlib.c | 1533 int bytes_left; in allocate_buffer_ring() local 1597 bytes_left = buffer_size; in allocate_buffer_ring() 1598 while (bytes_left) { in allocate_buffer_ring() 1601 bytes_left, in allocate_buffer_ring() 1607 bytes_left -= bytes_read; in allocate_buffer_ring() 1700 int bytes_left; in allocate_exs_buffer_ring() local 1794 bytes_left = buffer_size; in allocate_exs_buffer_ring() 1795 while (bytes_left) { in allocate_exs_buffer_ring() 1798 bytes_left, in allocate_exs_buffer_ring() 1803 bytes_left -= bytes_read; in allocate_exs_buffer_ring() [all …]
|
/external/autotest/client/cros/ |
D | network.py | 248 bytes_left = bytes_to_fetch - bytes_fetched 249 bytes_to_read = min(bytes_left, _MAX_FETCH_READ_BYTES)
|
/external/nanopb-c/examples/network_server/ |
D | common.c | 25 stream->bytes_left = 0; /* EOF */ in read_callback()
|
/external/google-breakpad/src/common/dwarf/ |
D | dwarf2reader.cc | 1357 size_t bytes_left = entry_->end - cursor_; in ParseOperands() local 1361 if (len > bytes_left) return ReportIncomplete(); in ParseOperands() 1367 if (len > bytes_left) return ReportIncomplete(); in ParseOperands() 1373 if (len > bytes_left) return ReportIncomplete(); in ParseOperands() 1381 if (len > bytes_left) return ReportIncomplete(); in ParseOperands() 1386 if (1 > bytes_left) return ReportIncomplete(); in ParseOperands() 1391 if (2 > bytes_left) return ReportIncomplete(); in ParseOperands() 1397 if (4 > bytes_left) return ReportIncomplete(); in ParseOperands() 1403 if (8 > bytes_left) return ReportIncomplete(); in ParseOperands() 1410 if (len > bytes_left || expression_length > bytes_left - len) in ParseOperands()
|
/external/nanopb-c/tests/basic_stream/ |
D | decode_stream.c | 66 stream->bytes_left = 0; in callback()
|