Home
last modified time | relevance | path

Searched refs:sbuf (Results 1 – 8 of 8) sorted by relevance

/optee_os/core/pta/
A Dgprof.c82 if (s->sbuf) { in gprof_start_pc_sampling()
92 sbuf = calloc(1, sizeof(*sbuf)); in gprof_start_pc_sampling()
93 if (!sbuf) in gprof_start_pc_sampling()
97 sbuf->nsamples = len / sizeof(*sbuf->samples); in gprof_start_pc_sampling()
102 s->sbuf = sbuf; in gprof_start_pc_sampling()
121 sbuf = s->sbuf; in gprof_stop_pc_sampling()
122 if (!sbuf) in gprof_stop_pc_sampling()
130 rate = ((uint64_t)sbuf->count * sbuf->freq) / sbuf->usr; in gprof_stop_pc_sampling()
134 " cntfrq=%" PRIu32 " rate=%" PRIu32, sbuf->count, sbuf->usr, in gprof_stop_pc_sampling()
137 free(sbuf); in gprof_stop_pc_sampling()
[all …]
/optee_os/lib/libutils/ext/
A Dtrace.c216 if (sbuf->ptr == NULL) in append()
217 sbuf->ptr = sbuf->buf; in append()
218 left = sizeof(sbuf->buf) - (sbuf->ptr - sbuf->buf); in append()
230 sbuf->ptr += MIN(left, len); in append()
239 struct strbuf sbuf; in dhex_dump() local
243 sbuf.ptr = NULL; in dhex_dump()
255 ok = append(&sbuf, " "); in dhex_dump()
260 sbuf.buf); in dhex_dump()
261 sbuf.ptr = NULL; in dhex_dump()
264 if (sbuf.ptr) { in dhex_dump()
[all …]
A Dsnprintk.c101 static int kprintf(const char *fmt0, int oflags, void *vp, char *sbuf,
213 if (sbuf && ((vp == NULL) || (sbuf < tailp))) \
214 *sbuf++ = (C); \
242 kprintf(const char *fmt0, int oflags, void *vp, char *sbuf, va_list ap, in kprintf() argument
620 *(char **)vp = sbuf; in kprintf()
/optee_os/core/kernel/
A Dtee_ta_manager.c301 free(s->ts_sess.sbuf); in destroy_session()
877 sbuf = s->sbuf; in tee_ta_gprof_sample_pc()
878 if (!sbuf || !sbuf->enabled) in tee_ta_gprof_sample_pc()
881 idx = (((uint64_t)pc - sbuf->offset)/2 * sbuf->scale)/65536; in tee_ta_gprof_sample_pc()
892 sbuf->samples[idx]++; in tee_ta_gprof_sample_pc()
894 sbuf->count++; in tee_ta_gprof_sample_pc()
900 struct sample_buf *sbuf = s->sbuf; in gprof_update_session_utime() local
902 if (!sbuf) in gprof_update_session_utime()
907 sbuf->usr += now - sbuf->usr_entered; in gprof_update_session_utime()
908 sbuf->usr_entered = 0; in gprof_update_session_utime()
[all …]
/optee_os/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_generate_pqg.c34 unsigned char *wbuf, *sbuf, digest[MAXBLOCKSIZE]; in _dsa_make_params() local
116 …if ((sbuf = XMALLOC(seedbytes)) == NULL) { err = CRYPT_MEM; … in _dsa_make_params()
131 …if (prng_descriptor[wprng]->read(sbuf, seedbytes, prng) != seedbytes) { err = CRYPT_ERROR_RE… in _dsa_make_params()
133 if ((err = hash_memory(hash, sbuf, seedbytes, digest, &i)) != CRYPT_OK) { goto cleanup; } in _dsa_make_params()
143 if ((err = mp_read_unsigned_bin(seedinc, sbuf, seedbytes)) != CRYPT_OK) { goto cleanup; } in _dsa_make_params()
151 zeromem(sbuf, seedbytes); in _dsa_make_params()
152 if ((err = mp_to_unsigned_bin(seedinc, sbuf + seedbytes-i)) != CRYPT_OK) { goto cleanup; } in _dsa_make_params()
154 err = hash_memory(hash, sbuf, seedbytes, wbuf+(n-j)*outbytes, &i); in _dsa_make_params()
199 XFREE(sbuf); in _dsa_make_params()
/optee_os/core/lib/libtomcrypt/src/stream/sober128/
A Dsober128_stream.c262 *out++ = *in++ ^ (unsigned char)(st->sbuf & 0xFF); in sober128_stream_crypt()
263 st->sbuf >>= 8; in sober128_stream_crypt()
307 st->sbuf = nltap(st); in sober128_stream_crypt()
310 *out++ = *in++ ^ (unsigned char)(st->sbuf & 0xFF); in sober128_stream_crypt()
311 st->sbuf >>= 8; in sober128_stream_crypt()
/optee_os/core/include/kernel/
A Dts_manager.h24 struct sample_buf *sbuf; /* Profiling data (PC sampling) */ member
/optee_os/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_cipher.h1133 sbuf; /* partial word encryption buffer */ member

Completed in 29 milliseconds