/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_thread_registry.cpp | 141 if (tctx) { in CreateThread() 142 tid = tctx->tid; in CreateThread() 158 CHECK_NE(tctx, 0); in CreateThread() 183 if (tctx == 0) in RunCallbackForEachThreadLocked() 185 cb(tctx, arg); in RunCallbackForEachThreadLocked() 193 if (tctx != 0 && cb(tctx, arg)) in FindThread() 204 if (tctx != 0 && cb(tctx, arg)) in FindThreadContextLocked() 205 return tctx; in FindThreadContextLocked() 329 tctx->Reset(); in QuarantinePush() 341 return tctx; in QuarantinePop() [all …]
|
H A D | sanitizer_thread_registry.h | 111 typedef void (*ThreadCallback)(ThreadContextBase *tctx, void *arg); 116 typedef bool (*FindThreadCallback)(ThreadContextBase *tctx, void *arg); 160 void QuarantinePush(ThreadContextBase *tctx);
|
/freebsd/sbin/hastd/ |
H A D | proto_tcp.c | 201 tctx = malloc(sizeof(*tctx)); in tcp_setup_new() 207 free(tctx); in tcp_setup_new() 216 free(tctx); in tcp_setup_new() 231 *ctxp = tctx; in tcp_setup_new() 246 tctx = malloc(sizeof(*tctx)); in tcp_setup_wrap() 254 *ctxp = tctx; in tcp_setup_wrap() 269 tctx = *ctxp; in tcp_client() 314 if (connect(tctx->tc_fd, (struct sockaddr *)&tctx->tc_sa, in tcp_connect() 415 tctx = *ctxp; in tcp_server() 424 if (bind(tctx->tc_fd, (struct sockaddr *)&tctx->tc_sa, in tcp_server() [all …]
|
/freebsd/contrib/openbsm/bin/auditdistd/ |
H A D | proto_tcp.c | 207 tctx = malloc(sizeof(*tctx)); in tcp_setup_new() 214 free(tctx); in tcp_setup_new() 223 free(tctx); in tcp_setup_new() 239 *tctxp = tctx; in tcp_setup_new() 305 ret = connect(tctx->tc_fd, (struct sockaddr *)&tctx->tc_sa, in tcp_connect() 331 *ctxp = tctx; in tcp_connect() 422 if (bind(tctx->tc_fd, (struct sockaddr *)&tctx->tc_sa, in tcp_server() 434 *ctxp = tctx; in tcp_server() 482 tctx = malloc(sizeof(*tctx)); in tcp_wrap() 491 *ctxp = tctx; in tcp_wrap() [all …]
|
/freebsd/crypto/openssl/providers/implementations/ciphers/ |
H A D | cipher_tdes_default_hw.c | 26 PROV_TDES_CTX *tctx = (PROV_TDES_CTX *)ctx; in ossl_cipher_hw_tdes_ede2_initkey() local 29 tctx->tstream.cbc = NULL; in ossl_cipher_hw_tdes_ede2_initkey() 35 memcpy(&tctx->ks3, &tctx->ks1, sizeof(tctx->ks1)); in ossl_cipher_hw_tdes_ede2_initkey() 44 memcpy(&tctx->ks3, &tctx->ks1, sizeof(tctx->ks1)); in ossl_cipher_hw_tdes_ede2_initkey() 55 DES_ede3_ofb64_encrypt(in, out, (long)MAXCHUNK, &tctx->ks1, &tctx->ks2, in ossl_cipher_hw_tdes_ofb() 62 DES_ede3_ofb64_encrypt(in, out, (long)inl, &tctx->ks1, &tctx->ks2, in ossl_cipher_hw_tdes_ofb() 78 &tctx->ks1, &tctx->ks2, &tctx->ks3, in ossl_cipher_hw_tdes_cfb() 86 &tctx->ks1, &tctx->ks2, &tctx->ks3, in ossl_cipher_hw_tdes_cfb() 109 &tctx->ks1, &tctx->ks2, &tctx->ks3, in ossl_cipher_hw_tdes_cfb1() 125 &tctx->ks1, &tctx->ks2, &tctx->ks3, in ossl_cipher_hw_tdes_cfb8() [all …]
|
H A D | cipher_tdes_hw.c | 26 PROV_TDES_CTX *tctx = (PROV_TDES_CTX *)ctx; in ossl_cipher_hw_tdes_ede3_initkey() local 29 tctx->tstream.cbc = NULL; in ossl_cipher_hw_tdes_ede3_initkey() 42 DES_set_key_unchecked(&deskey[0], &tctx->ks1); in ossl_cipher_hw_tdes_ede3_initkey() 43 DES_set_key_unchecked(&deskey[1], &tctx->ks2); in ossl_cipher_hw_tdes_ede3_initkey() 61 PROV_TDES_CTX *tctx = (PROV_TDES_CTX *)ctx; in ossl_cipher_hw_tdes_cbc() local 63 if (tctx->tstream.cbc != NULL) { in ossl_cipher_hw_tdes_cbc() 64 (*tctx->tstream.cbc) (in, out, inl, tctx->tks.ks, ctx->iv); in ossl_cipher_hw_tdes_cbc() 69 DES_ede3_cbc_encrypt(in, out, (long)MAXCHUNK, &tctx->ks1, &tctx->ks2, in ossl_cipher_hw_tdes_cbc() 76 DES_ede3_cbc_encrypt(in, out, (long)inl, &tctx->ks1, &tctx->ks2, in ossl_cipher_hw_tdes_cbc() 85 PROV_TDES_CTX *tctx = (PROV_TDES_CTX *)ctx; in ossl_cipher_hw_tdes_ecb() local [all …]
|
H A D | cipher_desx_hw.c | 30 PROV_TDES_CTX *tctx = (PROV_TDES_CTX *)ctx; in cipher_hw_desx_cbc_initkey() local 33 DES_set_key_unchecked(deskey, &tctx->ks1); in cipher_hw_desx_cbc_initkey() 34 memcpy(&tctx->ks2, &key[8], 8); in cipher_hw_desx_cbc_initkey() 35 memcpy(&tctx->ks3, &key[16], 8); in cipher_hw_desx_cbc_initkey() 53 PROV_TDES_CTX *tctx = (PROV_TDES_CTX *)ctx; in cipher_hw_desx_cbc() local 56 DES_xcbc_encrypt(in, out, (long)MAXCHUNK, &tctx->ks1, in cipher_hw_desx_cbc() 57 (DES_cblock *)ctx->iv, &tctx->ks2, &tctx->ks3, in cipher_hw_desx_cbc() 64 DES_xcbc_encrypt(in, out, (long)inl, &tctx->ks1, in cipher_hw_desx_cbc() 65 (DES_cblock *)ctx->iv, &tctx->ks2, &tctx->ks3, in cipher_hw_desx_cbc()
|
H A D | cipher_tdes_common.c | 26 PROV_TDES_CTX *tctx; in ossl_tdes_newctx() local 31 tctx = OPENSSL_zalloc(sizeof(*tctx)); in ossl_tdes_newctx() 32 if (tctx != NULL) in ossl_tdes_newctx() 33 ossl_cipher_generic_initkey(tctx, kbits, blkbits, ivbits, mode, flags, in ossl_tdes_newctx() 35 return tctx; in ossl_tdes_newctx()
|
/freebsd/contrib/jemalloc/include/jemalloc/internal/ |
H A D | prof_inlines_b.h | 50 alloc_ctx_t *alloc_ctx, prof_tctx_t *tctx) { in prof_tctx_set() argument 62 arena_prof_tctx_reset(tsdn, ptr, tctx); in prof_tctx_reset() 167 prof_tctx_t *tctx) { in prof_malloc() argument 172 if (unlikely((uintptr_t)tctx > (uintptr_t)1U)) { in prof_malloc() 173 prof_malloc_sample_object(tsdn, ptr, usize, tctx); in prof_malloc() 199 prof_alloc_rollback(tsd, tctx, true); in prof_realloc() 200 tctx = (prof_tctx_t *)(uintptr_t)1U; in prof_realloc() 204 sampled = ((uintptr_t)tctx > (uintptr_t)1U); in prof_realloc() 220 prof_tctx_reset(tsd_tsdn(tsd), ptr, tctx); in prof_realloc() 245 if (unlikely((uintptr_t)tctx > (uintptr_t)1U)) { in prof_free() [all …]
|
H A D | prof_externs.h | 46 void prof_alloc_rollback(tsd_t *tsd, prof_tctx_t *tctx, bool updated); 48 prof_tctx_t *tctx); 50 prof_tctx_t *tctx);
|
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_rtl_thread.cpp | 35 ThreadContext *tctx; member 42 if (tctx->detached || tctx->status != ThreadStatusFinished) in CollectThreadLeaks() 45 if (leaks[i].tctx->creation_stack_id == tctx->creation_stack_id) { in CollectThreadLeaks() 50 leaks.PushBack({tctx, 1}); in CollectThreadLeaks() 58 if (tctx->tid == kMainTid) { in ReportIgnoresEnabled() 62 " created at:\n", tctx->tid, tctx->name); in ReportIgnoresEnabled() 161 Free(thr->tctx->sync); in ThreadStart() 208 thr->tctx = this; in OnStarted() 232 if (!thr->tctx->detached) { in ThreadFinish() 275 thr->tctx = nullptr; in OnFinished() [all …]
|
H A D | tsan_rtl_report.cpp | 213 rt->id = tctx->tid; in AddThread() 214 rt->os_id = tctx->os_id; in AddThread() 237 ThreadState *thr = tctx->thr; in IsInStackOrTls() 245 ThreadContext *tctx = in IsThreadStackOrTls() local 248 if (!tctx) in IsThreadStackOrTls() 253 return tctx; in IsThreadStackOrTls() 322 loc->tid = tctx->tid; in AddLocation() 324 AddThread(tctx); in AddLocation() 458 ThreadContext *tctx = in RestoreStack() local 474 if (tctx->thr) in RestoreStack() [all …]
|
H A D | tsan_rtl.cpp | 84 Trace* trace = &thr->tctx->trace; in TracePartAlloc() 149 auto trace = &tctx->trace; in DoResetImpl() 151 bool attached = tctx->thr && tctx->thr->slot; in DoResetImpl() 171 &tctx->thr->trace_pos, in DoResetImpl() 180 if (tctx->thr && !tctx->thr->slot) { in DoResetImpl() 181 atomic_store_relaxed(&tctx->thr->trace_pos, 0); in DoResetImpl() 182 tctx->thr->trace_prev_pc = 0; in DoResetImpl() 326 auto* trace = &thr->tctx->trace; in SlotDetachImpl() 335 thr->tctx->trace.local_head = nullptr; in SlotDetachImpl() 910 Trace *trace = &thr->tctx->trace; in TraceSkipGap() [all …]
|
H A D | tsan_debugging.cpp | 221 ThreadContext *tctx = IsThreadStackOrTls(addr, &is_stack); in __tsan_locate_address() local 223 if (tctx) { in __tsan_locate_address() 257 ThreadContextBase *tctx = ctx->thread_registry.GetThreadLocked(b->tid); in __tsan_get_alloc_stack() local 258 *os_id = tctx->os_id; in __tsan_get_alloc_stack()
|
/freebsd/contrib/jemalloc/src/ |
H A D | prof.c | 354 tctx->cnts.curobjs++; in prof_malloc_sample_object() 527 tctx->cnts.curobjs--; in prof_free_sampled_object() 891 if (tctx->prepared) { in prof_tctx_should_destroy() 1340 memcpy(&tctx->dump_cnts, &tctx->cnts, sizeof(prof_cnt_t)); in prof_tctx_merge_tdata() 1381 prof_tctx_merge_gctx(tsdn, tctx, tctx->gctx); in prof_tctx_merge_iter() 1411 "%"FMTu64"]\n", tctx->thr_uid, tctx->dump_cnts.curobjs, in prof_tctx_dump_iter() 1412 tctx->dump_cnts.curbytes, tctx->dump_cnts.accumobjs, in prof_tctx_dump_iter() 1414 return tctx; in prof_tctx_dump_iter() 1438 ret = tctx; in prof_tctx_finish_iter() 1552 } tctx; in prof_tdata_merge_iter() local [all …]
|
H A D | jemalloc.c | 2120 prof_tctx_t *tctx = prof_alloc_prep( in imalloc_body() local 2142 prof_alloc_rollback(tsd, tctx, true); in imalloc_body() 2514 if (tctx == NULL) { in irealloc_prof_sample() 2537 prof_tctx_t *old_tctx, *tctx; in irealloc_prof() local 2550 prof_alloc_rollback(tsd, tctx, true); in irealloc_prof() 3139 if (tctx == NULL) { in irallocx_prof_sample() 3164 prof_tctx_t *old_tctx, *tctx; in irallocx_prof() local 3177 prof_alloc_rollback(tsd, tctx, false); in irallocx_prof() 3314 if (tctx == NULL) { in ixallocx_prof_sample() 3328 prof_tctx_t *old_tctx, *tctx; in ixallocx_prof() local [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_thread.cpp | 410 AsanThread *t = tctx->thread; in ThreadStackContainsAddress() 431 AsanThreadContext *tctx = GetThreadContextByTidLocked(kMainTid); in GetCurrentThread() local 432 if (tctx && ThreadStackContainsAddress(tctx, &context)) { in GetCurrentThread() 433 SetCurrentThread(tctx->thread); in GetCurrentThread() 434 return tctx->thread; in GetCurrentThread() 459 AsanThreadContext *tctx = static_cast<AsanThreadContext *>( in FindThreadByStackAddress() local 462 return tctx ? tctx->thread : nullptr; in FindThreadByStackAddress() 538 [](ThreadContextBase *tctx, void *arg) { in GetThreadExtraStackRangesLocked() argument 551 [](ThreadContextBase *tctx, void *threads) { in GetRunningThreadsLocked() argument 552 if (tctx->status == ThreadStatusRunning) in GetRunningThreadsLocked() [all …]
|
/freebsd/contrib/tcpdump/ |
H A D | signature.c | 63 MD5_CTX tctx; in signature_compute_hmac_md5() local 65 MD5_Init(&tctx); in signature_compute_hmac_md5() 66 MD5_Update(&tctx, key, key_len); in signature_compute_hmac_md5() 67 MD5_Final(tk, &tctx); in signature_compute_hmac_md5()
|
/freebsd/sys/nfs/ |
H A D | bootp_subr.c | 1259 if (tctx->badtag != 0 || tctx->badopt != 0) in bootpc_tag_helper() 1272 tctx->badopt = 1; in bootpc_tag_helper() 1283 memcpy(tctx->buf + tctx->taglen, in bootpc_tag_helper() 1298 tctx->overload = 0; in bootpc_tag() 1299 tctx->badopt = 0; in bootpc_tag() 1300 tctx->badtag = 0; in bootpc_tag() 1301 tctx->foundopt = 0; in bootpc_tag() 1302 tctx->taglen = 0; in bootpc_tag() 1321 if (tctx->badopt != 0 || tctx->badtag != 0 || tctx->foundopt == 0) in bootpc_tag() 1323 tctx->buf[tctx->taglen] = '\0'; in bootpc_tag() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/lsan/ |
H A D | lsan_thread.cpp | 103 [](ThreadContextBase *tctx, void *threads) { in GetRunningThreadsLocked() argument 104 if (tctx->status == ThreadStatusRunning) { in GetRunningThreadsLocked() 106 tctx->os_id); in GetRunningThreadsLocked()
|
H A D | lsan_linux.cpp | 24 void SetCurrentThread(ThreadContextLsanBase *tctx) { current_thread = tctx; } in SetCurrentThread() argument
|
H A D | lsan_fuchsia.cpp | 73 [](ThreadContextBase *tctx, void *arg) { in GetAllThreadAllocatorCachesLocked() argument 74 auto ctx = static_cast<ThreadContext *>(tctx); in GetAllThreadAllocatorCachesLocked()
|
/freebsd/contrib/dma/ |
H A D | crypto.c | 239 MD5_CTX tctx; in hmac_md5() local 241 MD5_Init(&tctx); in hmac_md5() 242 MD5_Update(&tctx, key, key_len); in hmac_md5() 243 MD5_Final(tk, &tctx); in hmac_md5()
|
/freebsd/sys/dev/ixl/ |
H A D | ixl_pf_iflib.c | 518 struct i40e_hmc_obj_txq tctx; in ixl_initialize_vsi() local 522 bzero(&tctx, sizeof(tctx)); in ixl_initialize_vsi() 523 tctx.new_context = 1; in ixl_initialize_vsi() 525 tctx.qlen = scctx->isc_ntxd[0]; in ixl_initialize_vsi() 526 tctx.fc_ena = 0; /* Disable FCoE */ in ixl_initialize_vsi() 531 tctx.rdylist = vsi->info.qs_handle[0]; in ixl_initialize_vsi() 538 tctx.head_wb_ena = 1; in ixl_initialize_vsi() 539 tctx.head_wb_addr = txr->tx_paddr + in ixl_initialize_vsi() 542 tctx.head_wb_ena = 0; in ixl_initialize_vsi() 543 tctx.head_wb_addr = 0; in ixl_initialize_vsi() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/ |
H A D | memprof_stats.cpp | 76 MemprofThreadContext *tctx = static_cast<MemprofThreadContext *>(tctx_base); in MergeThreadStats() local 77 if (MemprofThread *t = tctx->thread) in MergeThreadStats()
|