Searched refs:avail (Results 1 - 6 of 6) sorted by relevance

/system/core/adb/
H A Dutils.c24 int avail = buffEnd - buff; local
26 if (avail <= 0) /* already in overflow mode */
29 if (avail == 1) { /* overflowing, the last byte is reserved for zero */
50 int avail = (buffEnd - buff); local
52 if (avail <= 0 || len <= 0) /* already overflowing */
55 if (len > avail)
56 len = avail;
74 int avail; local
76 avail = (buffEnd - buff);
78 if (avail >
[all...]
H A Dsysdeps_win32.c918 int avail, count = 0; local
951 avail = BIP_BUFFER_SIZE - bip->a_end;
952 if (avail > 0)
955 if (avail > len)
956 avail = len;
958 memcpy( bip->buff + bip->a_end, src, avail );
959 src += avail;
960 count += avail;
961 len -= avail;
963 bip->a_end += avail;
1007 int avail, count = 0; local
[all...]
H A Dsockets.c323 size_t avail = MAX_PAYLOAD; local
327 while(avail > 0) {
328 r = adb_read(fd, x, avail);
329 D("LS(%d): post adb_read(fd=%d,...) r=%d (errno=%d) avail=%d\n", s->id, s->fd, r, r<0?errno:0, avail);
331 avail -= r;
344 D("LS(%d): fd=%d post avail loop. r=%d is_eof=%d forced_eof=%d\n",
346 if((avail == MAX_PAYLOAD) || (s->peer == 0)) {
349 p->len = MAX_PAYLOAD - avail;
/system/core/init/
H A Dbootchart.c97 int avail = sizeof(buff->data) - buff->count; local
98 if (avail > len)
99 avail = len;
101 memcpy( buff->data + buff->count, src, avail );
102 len -= avail;
103 src = (char*)src + avail;
105 buff->count += avail;
/system/extras/tests/wifi/stress/
H A DwifiLoadScanAssoc.c480 int chosenAvail, avail, cpu, currentCPU; local
488 avail = 0;
491 if (chosenAvail == avail) {
495 avail++;
/system/extras/sound/
H A Dplaywav.c123 static unsigned avail; variable
127 if (sz > avail)
131 avail -= sz;
147 avail = count;

Completed in 58 milliseconds