/external/qemu/ |
D | cbuffer.c | 55 int avail = cb->size - cb->count; in cbuffer_write_peek() local 62 if (wpos + avail > cb->size) in cbuffer_write_peek() 63 avail = cb->size - wpos; in cbuffer_write_peek() 66 return avail; in cbuffer_write_peek() 88 int avail = cb->size - cb->count; in cbuffer_write() local 91 ASSERT(avail >= 0, "avail is negative: %d", avail); in cbuffer_write() 93 if (avail == 0) in cbuffer_write() 101 if (wpos + avail > cb->size) in cbuffer_write() 102 avail = cb->size - wpos; in cbuffer_write() 104 if (avail > len2) in cbuffer_write() [all …]
|
D | charpipe.c | 167 int avail; in charpipehalf_poll() local 191 avail = cbuffer_read_peek( bip->cb, &base ); in charpipehalf_poll() 192 if (avail > size) in charpipehalf_poll() 193 avail = size; in charpipehalf_poll() 195 avail, ph, quote_bytes( base, avail )); in charpipehalf_poll() 197 qemu_chr_read( peer->cs, base, avail ); in charpipehalf_poll() 198 cbuffer_read_step( bip->cb, avail ); in charpipehalf_poll() 356 int avail; in charbuffer_poll() local 362 avail = cbuffer_read_peek( bip->cb, &base ); in charbuffer_poll() 363 if (avail == 0) { in charbuffer_poll() [all …]
|
D | loadpng.c | 141 png_size_t avail = (png_size_t)(reader->end - reader->cursor); in png_reader_read_data() local 143 if (avail > length) in png_reader_read_data() 144 avail = length; in png_reader_read_data() 146 memcpy( data, reader->cursor, avail ); in png_reader_read_data() 147 reader->cursor += avail; in png_reader_read_data()
|
/external/webkit/WebCore/platform/ |
D | Arena.h | 53 uword avail; // points to next available byte in arena member 76 uword _p = _a->avail; \ 81 _a->avail = _q; \ 87 uword _p = _a->avail; \ 91 _a->avail = _q; \ 96 #define ARENA_MARK(pool) ((void *) (pool)->current->avail) 101 #define CLEAR_UNUSED(a) ASSERT((a)->avail <= (a)->limit); \ 102 memset((void*)(a)->avail, FREE_PATTERN, \ 103 (a)->limit - (a)->avail) 114 if (UPTRDIFF(_m, _a->base) <= UPTRDIFF(_a->avail, _a->base)) { \ [all …]
|
D | Arena.cpp | 99 pool->first.base = pool->first.avail = pool->first.limit = in InitArenaPool() 138 if ( a->avail +nb <= a->limit ) { in ArenaAllocate() 140 rp = (char *)a->avail; in ArenaAllocate() 141 a->avail += nb; in ArenaAllocate() 157 a->avail = a->base; in ArenaAllocate() 158 rp = (char *)a->avail; in ArenaAllocate() 159 a->avail += nb; in ArenaAllocate() 184 a->base = a->avail = (uword)ARENA_ALIGN(pool, a + 1); in ArenaAllocate() 185 rp = (char *)a->avail; in ArenaAllocate() 186 a->avail += nb; in ArenaAllocate() [all …]
|
/external/opencore/oscl/oscl/osclutil/src/ |
D | oscl_snprintf.cpp | 636 size_t avail = str_m - str_l; local 637 oscl_strncpy(str + str_l, p, (n > avail ? avail : n)); 1163 size_t avail = str_m - str_l; local 1164 … oscl_strset(str + str_l, (zero_padding ? '0' : ' '), (n > (int)avail ? avail : n)); 1185 size_t avail = str_m - str_l; local 1186 oscl_strncpy(str + str_l, str_arg, (n > (int)avail ? avail : n)); 1196 size_t avail = str_m - str_l; local 1197 oscl_strset(str + str_l, '0', (n > (int)avail ? avail : n)); 1210 size_t avail = str_m - str_l; local 1212 (n > (int)avail ? avail : n)); [all …]
|
/external/icu4c/i18n/ |
D | basictz.cpp | 135 UBool avail; in getSimpleRulesNear() local 138 avail = getNextTransition(date, FALSE, tr); in getSimpleRulesNear() 139 if (avail) { in getSimpleRulesNear() 165 avail = getNextTransition(nextTransitionTime, FALSE, tr); in getSimpleRulesNear() 166 if (avail) { in getSimpleRulesNear() 184 …avail = ar2->getPreviousStart(date, tr.getFrom()->getRawOffset(), tr.getFrom()->getDSTSavings(), T… in getSimpleRulesNear() 185 if (!avail || d > date in getSimpleRulesNear() 196 avail = getPreviousTransition(date, TRUE, tr); in getSimpleRulesNear() 197 if (avail) { in getSimpleRulesNear() 213 …avail = ar2->getNextStart(date, tr.getFrom()->getRawOffset(), tr.getFrom()->getDSTSavings(), FALSE… in getSimpleRulesNear() [all …]
|
D | rbtz.cpp | 184 UBool avail; in complete() local 194 … avail = r->getNextStart(lastTransitionTime, curStdOffset, curDstSavings, false, tt); in complete() 195 if (!avail) { in complete() 234 … avail = r->getNextStart(lastTransitionTime, curStdOffset, curDstSavings, false, tt); in complete() 235 if (avail) { in complete() 483 UBool avail = findNext(now, FALSE, time, from, to); in useDaylightTime() local 484 if (avail && to->getDSTSavings() != 0) { in useDaylightTime()
|
/external/qemu/android/ |
D | hw-qemud.c | 117 int avail = ss->size - ss->len; in qemud_sink_fill() local 119 if (avail <= 0) in qemud_sink_fill() 122 if (avail > *plen) in qemud_sink_fill() 123 avail = *plen; in qemud_sink_fill() 125 memcpy(ss->buff + ss->len, *pmsg, avail); in qemud_sink_fill() 126 *pmsg += avail; in qemud_sink_fill() 127 *plen -= avail; in qemud_sink_fill() 128 ss->len += avail; in qemud_sink_fill() 238 int avail; in qemud_serial_read() local 242 avail = s->overflow; in qemud_serial_read() [all …]
|
D | config.c | 377 int avail = w->end - w->p; in writer_write() local 379 if (avail > len) in writer_write() 380 avail = len; in writer_write() 382 memcpy( w->p, src, avail ); in writer_write() 383 src += avail; in writer_write() 384 len -= avail; in writer_write() 386 w->p += avail; in writer_write()
|
/external/webkit/WebCore/platform/image-decoders/gif/ |
D | GIFImageReader.cpp | 230 int avail = gs->avail; in do_lzw() local 283 avail = clear_code + 2; in do_lzw() 306 if (code >= avail) { in do_lzw() 329 if (avail < 4096) { in do_lzw() 330 prefix[avail] = oldcode; in do_lzw() 331 suffix[avail] = firstchar; in do_lzw() 332 avail++; in do_lzw() 338 if (((avail & codemask) == 0) && (avail < 4096)) { in do_lzw() 340 codemask += avail; in do_lzw() 358 gs->avail = avail; in do_lzw() [all …]
|
D | GIFImageReader.h | 88 int avail; /* Index of next available slot in dictionary */ member 126 datasize = codesize = codemask = clear_code = avail = oldcode = 0; in GIFFrameReader()
|
/external/webkit/WebCore/platform/image-decoders/skia/ |
D | GIFImageReader.cpp | 229 int avail = gs->avail; in do_lzw() local 282 avail = clear_code + 2; in do_lzw() 305 if (code >= avail) { in do_lzw() 332 if (avail < 4096) { in do_lzw() 333 prefix[avail] = oldcode; in do_lzw() 334 suffix[avail] = firstchar; in do_lzw() 335 avail++; in do_lzw() 341 if (((avail & codemask) == 0) && (avail < 4096)) { in do_lzw() 343 codemask += avail; in do_lzw() 361 gs->avail = avail; in do_lzw() [all …]
|
D | GIFImageReader.h | 88 int avail; /* Index of next available slot in dictionary */ member 126 datasize = codesize = codemask = clear_code = avail = oldcode = 0; in GIFFrameReader()
|
/external/qemu/audio/ |
D | sdlaudio.c | 280 int avail = audio_MIN( AUDIO_BUFFER_SIZE - s->pos, s->count ); in sdl_callback() local 282 if (avail == 0) in sdl_callback() 285 if (avail > len) in sdl_callback() 286 avail = len; in sdl_callback() 288 memcpy( buf, s->data + s->pos, avail ); in sdl_callback() 289 buf += avail; in sdl_callback() 290 len -= avail; in sdl_callback() 292 s->count -= avail; in sdl_callback() 293 s->pos += avail; in sdl_callback() 371 int live, avail, end, total; in sdl_run_out() local [all …]
|
D | alsaaudio.c | 577 snd_pcm_sframes_t avail; in alsa_get_avail() local 579 avail = FF(snd_pcm_avail_update) (handle); in alsa_get_avail() 580 if (avail < 0) { in alsa_get_avail() 581 if (avail == -EPIPE) { in alsa_get_avail() 583 avail = FF(snd_pcm_avail_update) (handle); in alsa_get_avail() 587 if (avail < 0) { in alsa_get_avail() 588 alsa_logerr (avail, in alsa_get_avail() 594 return avail; in alsa_get_avail() 604 snd_pcm_sframes_t avail; in alsa_run_out() local 611 avail = alsa_get_avail (alsa->handle); in alsa_run_out() [all …]
|
/external/qemu/telephony/ |
D | simulator.c | 146 int avail; in client_append() local 151 avail = sizeof(client->out_buff) - client->out_size; in client_append() 152 if (len > avail) in client_append() 153 len = avail; in client_append()
|
D | test2.c | 159 int avail; in client_append() local 164 avail = sizeof(client->out_buff) - client->out_size; in client_append() 165 if (len > avail) in client_append() 166 len = avail; in client_append()
|
/external/qemu/proxy/ |
D | proxy_common.c | 121 int avail = str->n - conn->str_pos; in proxy_connection_send() local 125 if (avail <= 0) in proxy_connection_send() 129 PROXY_LOG("%s: sending %d bytes:", conn->name, avail ); in proxy_connection_send() 130 hex_dump( str->s + conn->str_pos, avail, ">> " ); in proxy_connection_send() 133 while (avail > 0) { in proxy_connection_send() 134 int n = socket_send(fd, str->s + conn->str_pos, avail); in proxy_connection_send() 149 avail -= n; in proxy_connection_send()
|
D | proxy_http_rewriter.c | 698 int wanted = 0, current, avail; in rewrite_connection_read_body() local 793 avail = MAX_BODY_BUFFER - current; in rewrite_connection_read_body() 794 if (avail <= 0) { in rewrite_connection_read_body() 802 if (wanted > avail) in rewrite_connection_read_body() 803 wanted = avail; in rewrite_connection_read_body() 820 avail = root->str_recv; in rewrite_connection_read_body() 825 conn->chunk_total += avail; in rewrite_connection_read_body() 826 conn->chunk_length -= avail; in rewrite_connection_read_body() 838 conn->body_length -= avail; in rewrite_connection_read_body() 839 conn->body_total += avail; in rewrite_connection_read_body() [all …]
|
/external/qemu/hw/ |
D | goldfish_audio.c | 402 goldfish_audio_in_callback(void *opaque, int avail) in goldfish_audio_in_callback() argument 412 avail, s->read_pos, s->read_size ); in goldfish_audio_in_callback() 414 while (avail > 0) { in goldfish_audio_in_callback() 419 int avail2 = (avail > missing) ? missing : avail; in goldfish_audio_in_callback() 430 avail -= read; in goldfish_audio_in_callback()
|
/external/clearsilver/util/regex/ |
D | regex.c | 1032 unsigned avail; /* Offset of next open position. */ member 1035 #define FAIL_STACK_EMPTY() (fail_stack.avail == 0) 1036 #define FAIL_STACK_PTR_EMPTY() (fail_stack_ptr->avail == 0) 1037 #define FAIL_STACK_FULL() (fail_stack.avail == fail_stack.size) 1053 fail_stack.avail = 0; \ 1060 fail_stack.avail = 0; \ 1095 : ((FAIL_STACK).stack[(FAIL_STACK).avail++].pointer = POINTER, \ 1102 fail_stack.stack[fail_stack.avail++].pointer = (unsigned char *) (item) 1108 fail_stack.stack[fail_stack.avail++].integer = (item) 1114 fail_stack.stack[fail_stack.avail++] = (item) [all …]
|
/external/freetype/src/sfnt/ |
D | ttkern.c | 53 FT_UInt32 avail = 0, ordered = 0; in tt_face_load_kern() local 120 avail |= mask; in tt_face_load_kern() 157 face->kern_avail_bits = avail; in tt_face_load_kern()
|
/external/icu4c/test/intltest/ |
D | rbbiapts.cpp | 929 StringEnumeration* avail = BreakIterator::getAvailableLocales(); in TestRegistration() local 932 while ((p = avail->snext(status))) { in TestRegistration() 938 delete avail; in TestRegistration() 966 StringEnumeration* avail = BreakIterator::getAvailableLocales(); in TestRegistration() local 969 while ((p = avail->snext(status))) { in TestRegistration() 975 delete avail; in TestRegistration() 984 const Locale *avail = BreakIterator::getAvailableLocales(count); in TestRegistration() local 986 if (avail[i] == Locale::getEnglish()) { in TestRegistration()
|
/external/libxml2/ |
D | HTMLparser.c | 4575 int avail = 0; in htmlParseTryOrFinish() local 4636 avail = in->length - (in->cur - in->base); in htmlParseTryOrFinish() 4638 avail = in->buf->buffer->use - (in->cur - in->base); in htmlParseTryOrFinish() 4639 if ((avail == 0) && (terminate)) { in htmlParseTryOrFinish() 4650 if (avail < 1) in htmlParseTryOrFinish() 4672 avail = in->length - (in->cur - in->base); in htmlParseTryOrFinish() 4674 avail = in->buf->buffer->use - (in->cur - in->base); in htmlParseTryOrFinish() 4714 avail = in->length - (in->cur - in->base); in htmlParseTryOrFinish() 4716 avail = in->buf->buffer->use - (in->cur - in->base); in htmlParseTryOrFinish() 4717 if (avail < 2) in htmlParseTryOrFinish() [all …]
|