Searched refs:count (Results 1 - 25 of 97) sorted by path

1234

/system/bluetooth/brcm_patchram_plus/
H A Dbrcm_patchram_plus.c573 int count; local
575 while ((count = read(fd, &buffer[i], len)) < len) {
576 i += count;
577 len -= count;
580 i += count;
583 while ((count = read(fd, &buffer[i], len)) < len) {
584 i += count;
585 len -= count;
589 count += i;
591 fprintf(stderr, "received %d\n", count);
[all...]
/system/core/adb/
H A Dadb.c230 unsigned count; local
245 count = p->msg.data_length;
247 if(count > DUMPMAX) {
248 count = DUMPMAX;
253 while(count-- > 0){
975 DWORD count; local
977 ret = ReadFile( pipe_read, temp, 3, &count, NULL );
983 if (count != 3 || temp[0] != 'O' || temp[1] != 'K' || temp[2] != '\n') {
1220 DWORD count; local
1221 WriteFile( GetStdHandle( STD_OUTPUT_HANDLE ), "OK\n", 3, &count, NUL local
[all...]
H A Dfile_sync_client.c254 int count = size - total; local
255 if (count > SYNC_DATA_MAX) {
256 count = SYNC_DATA_MAX;
259 memcpy(sbuf->data, &file_buffer[total], count);
260 sbuf->size = htoll(count);
261 if(writex(fd, sbuf, sizeof(unsigned) * 2 + count)){
265 total += count;
266 total_bytes += count;
H A Dservices.c82 unsigned count = (unsigned) cookie; local
91 while(count > 0) {
92 unsigned xfer = (count > 4096) ? 4096 : count;
95 count -= xfer;
98 if(count == 0) {
H A Dsysdeps_win32.c918 int avail, count = 0; local
960 count += avail;
981 count += avail;
990 assert( count > 0 );
997 BIPD(( "bip_buffer_write: exit %d->%d count %d (as=%d ae=%d be=%d cw=%d cr=%d\n",
998 bip->fdin, bip->fdout, count, bip->a_start, bip->a_end, bip->b_end, bip->can_write, bip->can_read ));
1001 return count;
1007 int avail, count = 0; local
1053 count += avail;
1069 count
[all...]
H A Dtransport.c216 unsigned count; local
220 count = p->msg.data_length;
223 while(count-- > 0){
716 D("transport: %s unref (count=%d)\n", t->serial, t->ref_count);
1171 unsigned count, sum; local
1174 count = p->msg.data_length;
1177 while(count-- > 0) {
H A Dtransport_local.c140 int count = ADB_LOCAL_TRANSPORT_MAX; local
147 for ( ; count > 0; count--, port += 2 ) {
H A Dusb_linux_client.c346 size_t count = 0; local
350 ret = adb_write(bulk_in, buf + count, length - count);
355 count += ret;
357 } while (count < length);
360 return count;
380 size_t count = 0; local
384 ret = adb_read(bulk_out, buf + count, length - count);
387 D("[ bulk_read failed fd=%d length=%d count
[all...]
H A Dusb_osx.c240 int i, count; local
244 count = (req.wLenDone - 1) / 2;
245 for (i = 0; i < count; i++)
/system/core/debuggerd/
H A Dgetevent.c82 int count = nfds - i - 1; local
84 memmove(device_names + i, device_names + i + 1, sizeof(device_names[0]) * count);
85 memmove(ufds + i, ufds + i + 1, sizeof(ufds[0]) * count);
/system/core/fastboot/
H A Dengine.c237 ssize_t count = 0; local
248 while(count < size) {
249 ssize_t actually_read = read(fd, (char*)buffer+count, size-count);
263 count += actually_read;
431 static int match(char *str, const char **value, unsigned count) argument
437 for (n = 0; n < count; n++) {
460 unsigned count = a->size; local
479 yes = match(resp, value, count);
493 for (n = 1; n < count;
[all...]
H A Dfastboot.c409 unsigned n, count; local
434 for(count = 1; count < MAX_OPTIONS; count++) {
435 x = strchr(val[count - 1],'|');
438 val[count] = x + 1;
442 for(n = 0; n < count; n++) val[n] = strip(val[n]);
450 out = malloc(sizeof(char*) * count);
453 for(n = 0; n < count; n++) {
H A Dusb_linux.c314 unsigned count = 0; local
353 count += xfer;
358 return count;
364 unsigned count = 0; local
394 count += n;
403 return count;
H A Dusb_osx.c349 int i, count; local
352 count = (req.wLenDone - 1) / 2;
353 for (i = 0; i < count; i++)
H A Dusb_windows.c157 unsigned count = 0; local
179 count += written;
184 return count;
/system/core/include/cutils/
H A Dabort_socket.h83 int asocket_read(struct asocket *s, void *buf, size_t count, int timeout);
85 int asocket_write(struct asocket *s, const void *buf, size_t count,
H A Duio.h38 extern int readv( int fd, struct iovec* vecs, int count );
39 extern int writev( int fd, const struct iovec* vecs, int count );
/system/core/include/mincrypt/
H A Dsha.h38 uint64_t count; member in struct:SHA_CTX
/system/core/include/sync/
H A Dsync.h57 int sw_sync_timeline_inc(int fd, unsigned count);
/system/core/include/sysutils/
H A DList.h277 ptrdiff_t count = 0; local
280 ++count;
282 return count;
/system/core/init/
H A Dbootchart.c81 int count; member in struct:__anon367
89 buff->count = 0;
97 int avail = sizeof(buff->data) - buff->count;
101 memcpy( buff->data + buff->count, src, avail );
105 buff->count += avail;
106 if (buff->count == FILE_BUFF_SIZE) {
107 unix_write( buff->fd, buff->data, buff->count );
108 buff->count = 0;
116 if (buff->count > 0) {
117 unix_write( buff->fd, buff->data, buff->count );
303 int timeout = 0, count = 0; local
[all...]
H A Dkeychords.c54 keychord->count = svc->nkeycodes;
H A Dlogo.c33 void android_memset16(void *_ptr, unsigned short val, unsigned count) argument
36 count >>= 1;
37 while(count--)
103 /* 565RLE image format: [count(2 bytes), rle(2 bytes)] */
110 unsigned count, max; local
135 count = s.st_size;
137 while (count > 3) {
145 count -= 4;
H A Dproperty_service.c367 if(pa->count == PA_COUNT_MAX) return -1;
369 pi = pa_info_array + pa->count;
374 pa->toc[pa->count] =
377 pa->count++;
/system/core/libcorkscrew/arch-arm/
H A Dbacktrace-arm.c109 int count; local
110 uintptr_t start = (uintptr_t)__gnu_Unwind_Find_exidx((_Unwind_Ptr)pc, &count);
111 *out_exidx_size = count;

Completed in 78 milliseconds

1234