Home
last modified time | relevance | path

Searched refs:total (Results 1 – 24 of 24) sorted by relevance

/system/core/liblog/
Duio.c24 int total = 0; in readv() local
33 if (total == 0) in readv()
34 total = -1; in readv()
40 total += ret; in readv()
46 return total; in readv()
51 int total = 0; in writev() local
60 if (total == 0) in writev()
61 total = -1; in writev()
67 total += ret; in writev()
73 return total; in writev()
/system/bt/osi/src/
Dringbuffer.c26 size_t total; member
45 p->total = p->available = size; in ringbuffer_init()
63 return rb->total - rb->available; in ringbuffer_size()
75 if (rb->tail >= (rb->base + rb->total)) in ringbuffer_insert()
90 if (rb->head >= (rb->base + rb->total)) in ringbuffer_delete()
91 rb->head -= rb->total; in ringbuffer_delete()
106 if (b >= (rb->base + rb->total)) in ringbuffer_peek()
120 if (rb->head >= (rb->base + rb->total)) in ringbuffer_pop()
121 rb->head -= rb->total; in ringbuffer_pop()
/system/bt/test/suite/cases/
Drfcomm.c34 size_t total = 0; in handshake() local
35 while (!strstr(response, HANDSHAKE_RESPONSE) && total < sizeof(response)) { in handshake()
36 ssize_t len = read(fd, response + total, sizeof(response) - total); in handshake()
38 total += len; in handshake()
/system/bt/gki/common/
Dgki_buffer.c48 static void gki_init_free_queue (UINT8 id, UINT16 size, UINT16 total, void *p_mem) in gki_init_free_queue() argument
66 p_cb->pool_end[id] = (UINT8 *)p_mem + (act_size * total); in gki_init_free_queue()
72 p_cb->freeq[id].total = total; in gki_init_free_queue()
81 for (i = 0; i < total; i++) in gki_init_free_queue()
158 p_cb->freeq[i].total = 0; in gki_buffer_init()
497 return (gki_cb.com.freeq[pool_id].total); in GKI_poolcount()
521 return ((UINT16)(Q->total - Q->cur_cnt)); in GKI_poolfreecount()
564 if (Q->total == 0) in GKI_poolutilization()
567 return ((Q->cur_cnt * 100) / Q->total); in GKI_poolutilization()
Dgki_common.h37 UINT16 total; /* toatal number of buffers */ member
/system/extras/tests/memtest/
Dmemtest.cpp118 size_t total = 0; in malloc_test() local
126 total += size; in malloc_test()
128 size, addr, total, total / (1024*1024)); in malloc_test()
137 printf("done. allocated %zd MB\n", total / (1024*1024)); in malloc_test()
Dfptest.cpp66 float total = 0; in test_mad() local
102 float total = 0; in test_fma() local
/system/core/libdiskconfig/
Ddiskutils.c42 uint64_t total = 0; in write_raw_image() local
77 total += nr_bytes; in write_raw_image()
105 ALOGI("Wrote %" PRIu64 " bytes to %s @ %lld", total, dst, (long long)offset); in write_raw_image()
/system/extras/latencytop/
Dlatencytop.c38 unsigned long total; member
329 unsigned long count, max, total; in read_latency_file() local
346 sscanf(line, "%ld %ld %ld %s", &count, &total, &max, reason); in read_latency_file()
347 if (max > 0 || total > 0) { in read_latency_file()
353 e->total += total; in read_latency_file()
358 e->total = total; in read_latency_file()
397 average = e->total / e->count; in print_latency_entries()
/system/extras/verity/
Dverify_boot_signature.c240 uint64_t total = 0; in hash_image() local
264 if ((length - total) < BUFFER_SIZE) { in hash_image()
265 bytes = length - total; in hash_image()
274 total += bytes; in hash_image()
275 } while (total < length); in hash_image()
/system/core/fs_mgr/
Dfs_mgr_fstab.c83 uint64_t total; in calculate_zram_size() local
85 total = sysconf(_SC_PHYS_PAGES); in calculate_zram_size()
86 total *= percentage; in calculate_zram_size()
87 total /= 100; in calculate_zram_size()
89 total *= sysconf(_SC_PAGESIZE); in calculate_zram_size()
91 return total; in calculate_zram_size()
/system/bt/embdrv/sbc/decoder/srce/
Dbitalloc.c260 OI_UINT32 total = 0; in adjustToFitBitpool() local
278 total += n; in adjustToFitBitpool()
281 count = (total & 0xFFFF) + (total >> 16); in adjustToFitBitpool()
/system/extras/tests/directiotest/
Ddirectiotest.c162 static void update_progress(int current, int total) in update_progress() argument
164 double pct_done = (double)current * 100 / total; in update_progress()
165 printf("Testing area %d/%d (%6.2f%% complete)\r", current, total, in update_progress()
/system/extras/sound/
Dplaywav.c200 unsigned total = 0; in wav_rec() local
276 total += sz; in wav_rec()
283 hdr.data_sz = total; in wav_rec()
284 hdr.riff_sz = total + 8 + 16 + 8; in wav_rec()
/system/extras/taskstats/
Dtaskstats.c168 double average_ms(unsigned long long total, unsigned long long count) { in average_ms() argument
172 return ((double)total) / count / 1e6; in average_ms()
175 unsigned long long average_ns(unsigned long long total, in average_ns() argument
180 return total / count; in average_ns()
/system/extras/tests/binder/benchmarks/
DbinderAddInts.cpp243 double min = FLT_MAX, max = 0.0, total = 0.0; // Time in seconds for all in client() local
289 total += delta; in client()
302 << " avg: " << (total / options.iterations) in client()
/system/extras/tests/workloads/
Ddefs.sh227 total=0
234 total=$4
247 echo $total $janky $l90 $l95 $l99
/system/core/adb/
Dfile_sync_client.cpp284 int total = 0; in write_data_buffer() local
287 while (total < size) { in write_data_buffer()
288 int count = size - total; in write_data_buffer()
293 memcpy(sbuf->data, &file_buffer[total], count); in write_data_buffer()
299 total += count; in write_data_buffer()
303 print_transfer_progress(total, size); in write_data_buffer()
Dcommandline.cpp312 long total = 0; in copy_to_file() local
344 total += len; in copy_to_file()
351 D("copy_to_file() finished after %lu bytes\n", total); in copy_to_file()
462 unsigned total = sz; in adb_download_buffer() local
481 printf("sending: '%s' %4d%% \r", fn, (int)(100LL - ((100LL * sz) / (total)))); in adb_download_buffer()
/system/core/libsparse/
Doutput_file.c320 size_t total = 0; in read_all() local
324 while (total < len) { in read_all()
325 ret = read(fd, ptr, len - total); in read_all()
334 total += ret; in read_all()
/system/core/logcat/tests/
Dlogcat_test.cpp510 static const char total[] = "total "; in TEST() local
517 } else if (strncmp(buffer, total, sizeof(total) - 1)) { in TEST()
/system/bt/stack/sdp/
Dsdp_discovery.c291 UINT16 total, cur_handles, orig; in process_service_search_rsp() local
296 BE_STREAM_TO_UINT16 (total, p_reply); in process_service_search_rsp()
309 if (total > sdp_cb.max_recs_per_search) in process_service_search_rsp()
310 total = sdp_cb.max_recs_per_search; in process_service_search_rsp()
/system/core/lmkd/
Dlmkd.c516 int total; in proc_get_size() local
530 sscanf(line, "%d %d ", &total, &rss); in proc_get_size()
/system/core/fastboot/
Dfastboot_protocol.txt45 the total data size to transfer.