Home
last modified time | relevance | path

Searched refs:buf_used (Results 1 – 10 of 10) sorted by relevance

/external/valgrind/coregrind/
Dm_libcprint.c96 Int buf_used; member
107 if (b->buf_used > sizeof(b->buf) - 2 ) { in add_to__printf_buf()
108 send_bytes_to_logging_sink( b->sink, b->buf, b->buf_used ); in add_to__printf_buf()
109 b->buf_used = 0; in add_to__printf_buf()
111 b->buf[b->buf_used++] = c; in add_to__printf_buf()
112 b->buf[b->buf_used] = 0; in add_to__printf_buf()
113 vg_assert(b->buf_used < sizeof(b->buf)); in add_to__printf_buf()
135 if (myprintf_buf.buf_used > 0) { in vprintf_WRK()
138 myprintf_buf.buf_used ); in vprintf_WRK()
247 Int buf_used; member
[all …]
Dm_errormgr.c1092 static Int buf_used = 0; in get_char() local
1094 vg_assert(buf_used >= 0 && buf_used <= buf_size); in get_char()
1095 if (buf_used == buf_size) { in get_char()
1100 buf_used = 0; in get_char()
1105 vg_assert(buf_used >= 0 && buf_used < buf_size); in get_char()
1106 *out_buf = buf[buf_used]; in get_char()
1107 buf_used++; in get_char()
/external/boringssl/src/crypto/poly1305/
Dpoly1305_arm.c178 unsigned int buf_used; member
204 st->buf_used = 0; in CRYPTO_poly1305_init_neon()
216 if (st->buf_used) { in CRYPTO_poly1305_update_neon()
217 unsigned int todo = 32 - st->buf_used; in CRYPTO_poly1305_update_neon()
222 st->buf[st->buf_used + i] = in[i]; in CRYPTO_poly1305_update_neon()
224 st->buf_used += todo; in CRYPTO_poly1305_update_neon()
228 if (st->buf_used == sizeof(st->buf) && in_len) { in CRYPTO_poly1305_update_neon()
234 st->buf_used = 0; in CRYPTO_poly1305_update_neon()
252 st->buf_used = in_len; in CRYPTO_poly1305_update_neon()
265 if (st->buf_used > 16) { in CRYPTO_poly1305_finish_neon()
[all …]
Dpoly1305.c67 unsigned int buf_used; member
210 state->buf_used = 0; in CRYPTO_poly1305_init()
226 if (state->buf_used) { in CRYPTO_poly1305_update()
227 unsigned int todo = 16 - state->buf_used; in CRYPTO_poly1305_update()
232 state->buf[state->buf_used + i] = in[i]; in CRYPTO_poly1305_update()
234 state->buf_used += todo; in CRYPTO_poly1305_update()
238 if (state->buf_used == 16) { in CRYPTO_poly1305_update()
240 state->buf_used = 0; in CRYPTO_poly1305_update()
255 state->buf_used = in_len; in CRYPTO_poly1305_update()
272 if (state->buf_used) { in CRYPTO_poly1305_finish()
[all …]
/external/valgrind/exp-sgcheck/tests/
Dbad_percentify.c63 Int buf_used; member
74 if (b->buf_used > sizeof(b->buf) - 2 ) { in add_to__printf_buf()
75 send_bytes_to_logging_sink( b->sink, b->buf, b->buf_used ); in add_to__printf_buf()
76 b->buf_used = 0; in add_to__printf_buf()
78 b->buf[b->buf_used++] = c; in add_to__printf_buf()
79 b->buf[b->buf_used] = 0; in add_to__printf_buf()
80 assert(b->buf_used < sizeof(b->buf)); in add_to__printf_buf()
104 if (myprintf_buf.buf_used > 0) { in vprintf_WRK()
107 myprintf_buf.buf_used ); in vprintf_WRK()
/external/valgrind/coregrind/m_debuginfo/
Dreadexidx.c230 /*OUT*/SizeT* buf_used) in ExtabEntryExtract() argument
237 *buf_used = 0; in ExtabEntryExtract()
240 do { if (!MemoryRange__covers(&mr_out, &buf[*buf_used], 1)) \ in ExtabEntryExtract()
242 buf[(*buf_used)++] = (_byte); } while (0) in ExtabEntryExtract()
335 if (*buf_used > 0 && buf[(*buf_used) - 1] != ARM_EXTBL_OP_FINISH) in ExtabEntryExtract()
1024 SizeT buf_used = 0; in ML_() local
1027 entry_img, buf, sizeof(buf), &buf_used); in ML_()
1071 Int ret = ExtabEntryDecode( &state, buf, buf_used ); in ML_()
/external/selinux/libsepol/src/
Dservices.c320 int len, buf_used; in get_class_info() local
331 buf_used = 0; in get_class_info()
335 len = snprintf(p, class_buf_len - buf_used, "%s", statements[state_num]); in get_class_info()
336 if (len < 0 || len >= class_buf_len - buf_used) in get_class_info()
341 buf_used += len; in get_class_info()
342 len = snprintf(p, class_buf_len - buf_used, "%s ", in get_class_info()
344 if (len < 0 || len >= class_buf_len - buf_used) in get_class_info()
349 buf_used += len; in get_class_info()
351 len = snprintf(p, class_buf_len - buf_used, "{%s } (", in get_class_info()
355 len = snprintf(p, class_buf_len - buf_used, "("); in get_class_info()
[all …]
/external/e2fsprogs/misc/
Dbadblocks.c742 unsigned long buf_used; in test_nd() local
813 buf_used = 0; in test_nd()
829 got = try = granularity - buf_used; in test_nd()
874 buf_used += got; in test_nd()
892 if ((buf_used != granularity) && in test_nd()
956 buf_used = 0; in test_nd()
/external/fio/
Diolog.c723 size_t buf_used; member
736 flush_samples(f, iter->buf, iter->buf_used); in finish_chunk()
739 iter->buf_size = iter->buf_used = 0; in finish_chunk()
771 size_t this_out = iter->buf_size - iter->buf_used; in inflate_chunk()
775 stream->next_out = iter->buf + iter->buf_used; in inflate_chunk()
784 iter->buf_used += this_out - stream->avail_out; in inflate_chunk()
/external/iproute2/misc/
Dss.c561 int buf_used = 0; in find_entry() local
574 ptr = *buf + buf_used; in find_entry()
577 len = snprintf(ptr, buf_len - buf_used, in find_entry()
582 len = snprintf(ptr, buf_len - buf_used, in find_entry()
588 len = snprintf(ptr, buf_len - buf_used, in find_entry()
599 if (len < 0 || len >= buf_len - buf_used) { in find_entry()
610 buf_used += len; in find_entry()
618 if (buf_used) { in find_entry()
619 ptr = *buf + buf_used; in find_entry()