Searched refs:sbuf (Results 1 – 8 of 8) sorted by relevance
/optee_os-3.20.0/core/pta/ |
A D | gprof.c | 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() 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-3.20.0/lib/libutils/ext/ |
A D | trace.c | 216 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 D | snprintk.c | 101 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-3.20.0/core/lib/libtomcrypt/src/pk/dsa/ |
A D | dsa_generate_pqg.c | 27 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-3.20.0/core/kernel/ |
A D | tee_ta_manager.c | 319 free(s->ts_sess.sbuf); in destroy_session() 1068 sbuf = s->sbuf; in tee_ta_gprof_sample_pc() 1069 if (!sbuf || !sbuf->enabled) in tee_ta_gprof_sample_pc() 1072 idx = (((uint64_t)pc - sbuf->offset)/2 * sbuf->scale)/65536; in tee_ta_gprof_sample_pc() 1083 sbuf->samples[idx]++; in tee_ta_gprof_sample_pc() 1085 sbuf->count++; in tee_ta_gprof_sample_pc() 1091 struct sample_buf *sbuf = s->sbuf; in gprof_update_session_utime() local 1093 if (!sbuf) in gprof_update_session_utime() 1098 sbuf->usr += now - sbuf->usr_entered; in gprof_update_session_utime() 1099 sbuf->usr_entered = 0; in gprof_update_session_utime() [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/sober128/ |
A D | sober128_stream.c | 255 *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-3.20.0/core/include/kernel/ |
A D | ts_manager.h | 24 struct sample_buf *sbuf; /* Profiling data (PC sampling) */ member
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_cipher.h | 1145 sbuf; /* partial word encryption buffer */ member
|
Completed in 14 milliseconds