Home
last modified time | relevance | path

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

/optee_os/core/pta/
H A Dgprof.c73 struct sample_buf *sbuf = NULL; in gprof_start_pc_sampling() local
82 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()
96 sbuf->samples = (uint16_t *)buf; in gprof_start_pc_sampling()
97 sbuf->nsamples = len / sizeof(*sbuf->samples); in gprof_start_pc_sampling()
98 sbuf->offset = offset; in gprof_start_pc_sampling()
99 sbuf->scale = scale; in gprof_start_pc_sampling()
100 sbuf->freq = read_cntfrq(); in gprof_start_pc_sampling()
101 sbuf->enabled = true; in gprof_start_pc_sampling()
[all …]
/optee_os/lib/libutils/ext/
H A Dtrace.c232 static int __printf(2, 3) append(struct strbuf *sbuf, const char *fmt, ...) in append() argument
238 if (sbuf->ptr == NULL) in append()
239 sbuf->ptr = sbuf->buf; in append()
240 left = sizeof(sbuf->buf) - (sbuf->ptr - sbuf->buf); in append()
242 len = vsnprintk(sbuf->ptr, left, fmt, ap); in append()
252 sbuf->ptr += MIN(left, len); in append()
261 struct strbuf sbuf; in dhex_dump() local
265 sbuf.ptr = NULL; in dhex_dump()
268 ok = append(&sbuf, "%0*" PRIxVA " ", in dhex_dump()
273 ok = append(&sbuf, "%02x ", in[i]); in dhex_dump()
[all …]
H 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/lib/libtomcrypt/src/pk/dsa/
H A Ddsa_generate_pqg.c27 unsigned char *wbuf, *sbuf, digest[MAXBLOCKSIZE]; in s_dsa_make_params() local
109 …if ((sbuf = XMALLOC(seedbytes)) == NULL) { err = CRYPT_MEM; … in s_dsa_make_params()
124 …if (prng_descriptor[wprng]->read(sbuf, seedbytes, prng) != seedbytes) { err = CRYPT_ERROR_RE… in s_dsa_make_params()
126 if ((err = hash_memory(hash, sbuf, seedbytes, digest, &i)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params()
136 if ((err = mp_read_unsigned_bin(seedinc, sbuf, seedbytes)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params()
144 zeromem(sbuf, seedbytes); in s_dsa_make_params()
145 if ((err = mp_to_unsigned_bin(seedinc, sbuf + seedbytes-i)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params()
147 err = hash_memory(hash, sbuf, seedbytes, wbuf+(n-j)*outbytes, &i); in s_dsa_make_params()
192 XFREE(sbuf); in s_dsa_make_params()
/optee_os/core/kernel/
H A Dtee_ta_manager.c312 free(s->ts_sess.sbuf); in destroy_session()
1054 struct sample_buf *sbuf = NULL; in tee_ta_gprof_sample_pc() local
1058 sbuf = s->sbuf; in tee_ta_gprof_sample_pc()
1059 if (!sbuf || !sbuf->enabled) in tee_ta_gprof_sample_pc()
1062 idx = (((uint64_t)pc - sbuf->offset)/2 * sbuf->scale)/65536; in tee_ta_gprof_sample_pc()
1063 if (idx < sbuf->nsamples) { in tee_ta_gprof_sample_pc()
1069 (uaddr_t)&sbuf->samples[idx], in tee_ta_gprof_sample_pc()
1070 sizeof(*sbuf->samples)); in tee_ta_gprof_sample_pc()
1073 sbuf->samples[idx]++; in tee_ta_gprof_sample_pc()
1075 sbuf->count++; in tee_ta_gprof_sample_pc()
[all …]
/optee_os/core/lib/libtomcrypt/src/stream/sober128/
H A Dsober128_stream.c255 *out++ = *in++ ^ (unsigned char)(st->sbuf & 0xFF); in sober128_stream_crypt()
256 st->sbuf >>= 8; in sober128_stream_crypt()
300 st->sbuf = nltap(st); in sober128_stream_crypt()
303 *out++ = *in++ ^ (unsigned char)(st->sbuf & 0xFF); in sober128_stream_crypt()
304 st->sbuf >>= 8; in sober128_stream_crypt()
/optee_os/core/include/kernel/
H A Dts_manager.h24 struct sample_buf *sbuf; /* Profiling data (PC sampling) */ member
/optee_os/core/lib/libtomcrypt/src/headers/
H A Dtomcrypt_cipher.h1160 sbuf; /* partial word encryption buffer */ member