Home
last modified time | relevance | path

Searched refs:bytes_left (Results 1 – 25 of 57) sorted by relevance

123

/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_vlc.h50 unsigned bytes_left; member
96 assert(vlc->bytes_left); in vl_vlc_next_input()
98 if (len < vlc->bytes_left) in vl_vlc_next_input()
99 vlc->bytes_left -= len; in vl_vlc_next_input()
101 len = vlc->bytes_left; in vl_vlc_next_input()
102 vlc->bytes_left = 0; in vl_vlc_next_input()
136 unsigned bytes_left = vlc->end - vlc->data; in vl_vlc_fillbits() local
139 if (bytes_left == 0) { in vl_vlc_fillbits()
141 if (vlc->bytes_left) { in vl_vlc_fillbits()
149 } else if (bytes_left >= 4) { in vl_vlc_fillbits()
[all …]
/external/libunwind/src/
Dos-linux.h218 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/webrtc/webrtc/base/
Dsslidentity.cc194 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/
Dfine_audio_buffer.cc83 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/
Dprogressmeter.c126 off_t bytes_left; in refresh_progress_meter() local
135 bytes_left = end_pos - cur_pos; in refresh_progress_meter()
137 if (bytes_left > 0) in refresh_progress_meter()
199 else if (bytes_per_second == 0 && bytes_left) in refresh_progress_meter()
202 if (bytes_left > 0) in refresh_progress_meter()
203 seconds = bytes_left / bytes_per_second; in refresh_progress_meter()
219 if (bytes_left > 0) in refresh_progress_meter()
/external/compiler-rt/test/dfsan/
Dwrite_callback.c38 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/
Dpb_decode.c113 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 …]
/external/libvpx/libvpx/vp8/decoder/
Ddboolhuff.c39 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/v4l2_codec2/vda/
Dvp9_parser.cc341 off_t bytes_left = bytes_left_; in ParseSuperframe() local
347 if (bytes_left < 1) in ParseSuperframe()
352 uint8_t marker = *(stream + bytes_left - 1); in ParseSuperframe()
354 return {FrameInfo(stream, bytes_left)}; in ParseSuperframe()
366 if (bytes_left < index_size) in ParseSuperframe()
369 const uint8_t* index_ptr = stream + bytes_left - index_size; in ParseSuperframe()
374 bytes_left -= index_size; in ParseSuperframe()
386 if (base::checked_cast<off_t>(size) > bytes_left) { in ParseSuperframe()
393 bytes_left -= size; in ParseSuperframe()
Dvp8_bool_decoder.cc105 size_t bytes_left = user_buffer_end_ - user_buffer_; in FillDecoder() local
106 size_t bits_left = bytes_left * CHAR_BIT; in FillDecoder()
Dvp8_parser.cc845 size_t bytes_left = fhdr->frame_size - first_dct_pos; in ParsePartitions() local
857 if (bytes_left < fhdr->dct_partition_sizes[i]) in ParsePartitions()
860 bytes_left -= fhdr->dct_partition_sizes[i]; in ParsePartitions()
867 fhdr->dct_partition_sizes[fhdr->num_of_dct_partitions - 1] = bytes_left; in ParsePartitions()
Dh264_parser.cc217 off_t bytes_left = data_size; in FindStartCode() local
219 while (bytes_left >= 3) { in FindStartCode()
222 *offset = data_size - bytes_left; in FindStartCode()
236 --bytes_left; in FindStartCode()
244 *offset = data_size - bytes_left; in FindStartCode()
303 off_t bytes_left = data_size - (start - data); in FindStartCodeInClearRanges() local
305 if (!FindStartCode(start, bytes_left, offset, start_code_size)) in FindStartCodeInClearRanges()
319 start += std::min(*offset + 1, bytes_left); in FindStartCodeInClearRanges()
/external/nanopb-c/tests/decode_unittests/
Ddecode_unittests.c52 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/fio/engines/
Dlibhdfs.c250 uint64_t bytes_left; in fio_hdfsio_init() local
273 bytes_left = options->chunck_size; in fio_hdfsio_init()
275 while( bytes_left > CHUNCK_CREATION_BUFFER_SIZE) { in fio_hdfsio_init()
282 bytes_left -= CHUNCK_CREATION_BUFFER_SIZE; in fio_hdfsio_init()
284 if(bytes_left > 0) { in fio_hdfsio_init()
285 if( hdfsWrite(hd->fs, fp, buffer, bytes_left) in fio_hdfsio_init()
286 != bytes_left) { in fio_hdfsio_init()
/external/syslinux/core/fs/
Dgetfssec.c95 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/
Dbitreader.c44 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/
Dinode.c50 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/
Dmmapstress01.c158 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);
Dmmapstress10.c185 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/
Dexpression-parser.y193 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/nanopb-c/tests/callbacks/
Ddecode_callbacks.c15 if (stream->bytes_left > sizeof(buffer) - 1) in print_string()
18 if (!pb_read(stream, buffer, stream->bytes_left)) in print_string()
/external/pdfium/third_party/libjpeg/
Dfpdfapi_jmemmgr.c97 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/
Djmemmgr.c107 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/docs/
Dconcepts.rst58 #) *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/
Dnetlib.c1533 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 …]

123