| /src/tests/lib/libc/sys/ |
| t_swapcontext.c | 41 ucontext_t nctx; variable 64 ATF_REQUIRE(swapcontext(&nctx, &octx)); 79 ATF_REQUIRE(getcontext(&nctx) == 0); 81 nctx.uc_stack.ss_sp = stack; 82 nctx.uc_stack.ss_size = sizeof(stack); 84 ATF_REQUIRE(nctx.uc_flags & _UC_TLSBASE); 86 nctx.uc_flags &= ~_UC_TLSBASE; 88 makecontext(&nctx, swapfunc, 0); 93 ATF_REQUIRE(swapcontext(&octx, &nctx) == 0);
|
| /src/tests/lib/libpthread/ |
| t_swapcontext.c | 46 ucontext_t nctx; variable 70 nctx.uc_stack.ss_sp = stack; 71 nctx.uc_stack.ss_size = sizeof(stack); 72 nctx.uc_link = &octx; 74 makecontext(&nctx, swapfunc, 0); 78 ATF_REQUIRE_MSG(swapcontext(&octx, &nctx) != -1, "swapcontext failed: %s", 100 ATF_REQUIRE_MSG(getcontext(&nctx) != -1, "getcontext failed: %s",
|
| /src/crypto/external/apache2/openssl/dist/crypto/async/ |
| async.c | 37 async_ctx *nctx; local 42 nctx = OPENSSL_malloc(sizeof(*nctx)); 43 if (nctx == NULL) 46 async_fibre_init_dispatcher(&nctx->dispatcher); 47 nctx->currjob = NULL; 48 nctx->blocked = 0; 49 if (!CRYPTO_THREAD_set_local(&ctxkey, nctx)) 52 return nctx; 54 OPENSSL_free(nctx); [all...] |
| /src/crypto/external/bsd/openssl/dist/crypto/async/ |
| async.c | 37 async_ctx *nctx; local 42 nctx = OPENSSL_malloc(sizeof(*nctx)); 43 if (nctx == NULL) { 48 async_fibre_init_dispatcher(&nctx->dispatcher); 49 nctx->currjob = NULL; 50 nctx->blocked = 0; 51 if (!CRYPTO_THREAD_set_local(&ctxkey, nctx)) 54 return nctx; 56 OPENSSL_free(nctx); [all...] |
| /src/crypto/external/bsd/openssl.old/dist/crypto/async/ |
| async.c | 35 async_ctx *nctx; local 40 nctx = OPENSSL_malloc(sizeof(*nctx)); 41 if (nctx == NULL) { 46 async_fibre_init_dispatcher(&nctx->dispatcher); 47 nctx->currjob = NULL; 48 nctx->blocked = 0; 49 if (!CRYPTO_THREAD_set_local(&ctxkey, nctx)) 52 return nctx; 54 OPENSSL_free(nctx); [all...] |
| /src/sys/external/bsd/drm2/dist/drm/i915/gem/selftests/ |
| i915_gem_context.c | 43 const unsigned int nctx = 1024; local 67 ctx = kcalloc(nctx, sizeof(*ctx), GFP_KERNEL); 73 for (n = 0; n < nctx; n++) { 87 for (n = 0; n < nctx; n++) { 103 pr_err("Failed to populated %d contexts\n", nctx); 114 nctx, engine->name, ktime_to_ns(times[1] - times[0])); 128 this = igt_request_alloc(ctx[n % nctx], engine);
|
| /src/crypto/external/apache2/openssl/dist/test/ |
| bntest.c | 2782 BN_CTX *nctx = NULL; local 2787 if (!TEST_ptr(nctx = BN_CTX_new()) 2792 BN_CTX *c = i == 0 ? nctx : sctx; 2800 BN_CTX_free(nctx);
|
| /src/crypto/external/bsd/openssl/dist/test/ |
| bntest.c | 2561 BN_CTX *nctx = NULL; local 2566 if (!TEST_ptr(nctx = BN_CTX_new()) 2571 BN_CTX *c = i == 0 ? nctx : sctx; 2579 BN_CTX_free(nctx);
|
| /src/crypto/external/bsd/openssl.old/dist/test/ |
| bntest.c | 2477 BN_CTX *nctx = NULL; local 2482 if (!TEST_ptr(nctx = BN_CTX_new()) 2487 BN_CTX *c = i == 0 ? nctx : sctx; 2495 BN_CTX_free(nctx);
|
| /src/external/gpl3/binutils/dist/gprofng/libcollector/ |
| unwind.c | 1582 #define DELETE_CURCTX() __collector_memcpy (cur, buf + (--nctx), sizeof (*cur)) 1924 int nctx = 1; /* number of contexts being processed */ local 2087 if (nctx == 0 && (num_jmp_reg == expected_num_jmp_reg || jmp_reg_switch_mode == 1)) 2153 struct AdvWalkContext *new = buf + nctx; 2154 nctx += 1; 2193 if (nctx == 0) 2203 if (jmp_reg_switch_mode == 1 && nctx == 1 && jmp_reg_switch_pc == NULL) 2205 DprintfT (SP_DUMP_UNWIND, "unwind.c:%d old target, cur->pc=%p, jmp_reg_switch_pc=%p, nctx=%d\n", 2206 __LINE__, cur->pc, jmp_reg_switch_pc, nctx); 2212 if (cur >= buf + nctx) [all...] |
| /src/external/gpl3/binutils.old/dist/gprofng/libcollector/ |
| unwind.c | 1582 #define DELETE_CURCTX() __collector_memcpy (cur, buf + (--nctx), sizeof (*cur)) 1924 int nctx = 1; /* number of contexts being processed */ local 2087 if (nctx == 0 && (num_jmp_reg == expected_num_jmp_reg || jmp_reg_switch_mode == 1)) 2153 struct AdvWalkContext *new = buf + nctx; 2154 nctx += 1; 2193 if (nctx == 0) 2203 if (jmp_reg_switch_mode == 1 && nctx == 1 && jmp_reg_switch_pc == NULL) 2205 DprintfT (SP_DUMP_UNWIND, "unwind.c:%d old target, cur->pc=%p, jmp_reg_switch_pc=%p, nctx=%d\n", 2206 __LINE__, cur->pc, jmp_reg_switch_pc, nctx); 2212 if (cur >= buf + nctx) [all...] |