Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 2259) sorted by relevance

12345678910>>...91

/freebsd-12.1/sys/contrib/zstd/lib/common/
H A Dpool.c72 while (ctx->queueEmpty && !ctx->shutdown) { in POOL_thread()
82 ctx->queueHead = (ctx->queueHead + 1) % ctx->queueSize; in POOL_thread()
84 ctx->queueEmpty = ctx->queueHead == ctx->queueTail; in POOL_thread()
132 if (!ctx->threads || !ctx->queue) { POOL_free(ctx); return NULL; } in POOL_create_advanced()
170 ZSTD_free(ctx->queue, ctx->customMem); in POOL_free()
171 ZSTD_free(ctx->threads, ctx->customMem); in POOL_free()
172 ZSTD_free(ctx, ctx->customMem); in POOL_free()
190 return ctx->queueHead == ((ctx->queueTail + 1) % ctx->queueSize); in isQueueFull()
205 ctx->queue[ctx->queueTail] = job; in POOL_add_internal()
206 ctx->queueTail = (ctx->queueTail + 1) % ctx->queueSize; in POOL_add_internal()
[all …]
/freebsd-12.1/crypto/openssl/crypto/evp/
H A Dbio_b64.c73 if ((ctx = OPENSSL_zalloc(sizeof(*ctx))) == NULL) { in b64_new()
137 OPENSSL_assert(ctx->buf_len >= ctx->buf_off); in b64_read()
138 i = ctx->buf_len - ctx->buf_off; in b64_read()
142 memcpy(out, &(ctx->buf[ctx->buf_off]), i); in b64_read()
147 if (ctx->buf_len == ctx->buf_off) { in b64_read()
316 if (ctx->buf_off == ctx->buf_len) { in b64_read()
353 OPENSSL_assert(ctx->buf_len >= ctx->buf_off); in b64_write()
354 n = ctx->buf_len - ctx->buf_off; in b64_write()
475 ret = ctx->buf_len - ctx->buf_off; in b64_ctrl()
484 ret = ctx->buf_len - ctx->buf_off; in b64_ctrl()
[all …]
H A Dpmeth_fn.c38 if (!ctx || !ctx->pmeth || !ctx->pmeth->sign) { in EVP_PKEY_sign_init()
56 if (!ctx || !ctx->pmeth || !ctx->pmeth->sign) { in EVP_PKEY_sign()
72 if (!ctx || !ctx->pmeth || !ctx->pmeth->verify) { in EVP_PKEY_verify_init()
90 if (!ctx || !ctx->pmeth || !ctx->pmeth->verify) { in EVP_PKEY_verify()
139 if (!ctx || !ctx->pmeth || !ctx->pmeth->encrypt) { in EVP_PKEY_encrypt_init()
157 if (!ctx || !ctx->pmeth || !ctx->pmeth->encrypt) { in EVP_PKEY_encrypt()
173 if (!ctx || !ctx->pmeth || !ctx->pmeth->decrypt) { in EVP_PKEY_decrypt_init()
191 if (!ctx || !ctx->pmeth || !ctx->pmeth->decrypt) { in EVP_PKEY_decrypt()
207 if (!ctx || !ctx->pmeth || !ctx->pmeth->derive) { in EVP_PKEY_derive_init()
224 if (!ctx || !ctx->pmeth in EVP_PKEY_derive_set_peer()
[all …]
H A Dbio_ok.c190 i = ctx->buf_len - ctx->buf_off; in ok_read()
207 ctx->buf_len = ctx->buf_len_save - ctx->buf_off_save; in ok_read()
208 memmove(ctx->buf, &(ctx->buf[ctx->buf_off_save]), in ok_read()
278 n = ctx->buf_len - ctx->buf_off; in ok_write()
293 if (ctx->buf_len == ctx->buf_off) { in ok_write()
354 ret = ctx->blockout ? ctx->buf_len - ctx->buf_off : 0; in ok_ctrl()
373 ctx->buf_off = ctx->buf_len = 0; in ok_ctrl()
521 if (ctx->buf_len != ctx->buf_off) { in sig_in()
522 memmove(ctx->buf, &(ctx->buf[ctx->buf_off]), in sig_in()
525 ctx->buf_len -= ctx->buf_off; in sig_in()
[all …]
H A Devp_enc.c77 if (ctx->engine && ctx->cipher in EVP_CipherInit_ex()
184 memcpy(ctx->iv, ctx->oiv, EVP_CIPHER_CTX_iv_length(ctx)); in EVP_CipherInit_ex()
200 if (!ctx->cipher->init(ctx, key, iv, enc)) in EVP_CipherInit_ex()
205 ctx->block_mask = ctx->cipher->block_size - 1; in EVP_CipherInit_ex()
315 i = ctx->cipher->do_cipher(ctx, out, in, inl); in evp_EncryptDecryptUpdate()
354 if (!ctx->cipher->do_cipher(ctx, out, ctx->buf, bl)) in evp_EncryptDecryptUpdate()
364 if (!ctx->cipher->do_cipher(ctx, out, in, inl)) in evp_EncryptDecryptUpdate()
435 ret = ctx->cipher->do_cipher(ctx, out, ctx->buf, b); in EVP_EncryptFinal_ex()
539 i = ctx->cipher->do_cipher(ctx, out, NULL, 0); in EVP_DecryptFinal_ex()
558 if (ctx->buf_len || !ctx->final_used) { in EVP_DecryptFinal_ex()
[all …]
/freebsd-12.1/contrib/libarchive/libarchive/
H A Darchive_digest.c55 ctx->valid = 0; in win_crypto_init()
70 ctx->valid = 1; in win_crypto_init()
101 ctx->valid = 0; in win_crypto_Final()
114 MD5Init(ctx); in __archive_libc_md5init()
138 MD5Init(ctx); in __archive_libmd_md5init()
231 if (*ctx) { in __archive_openssl_md5final()
384 if (*ctx) { in __archive_openssl_ripemd160final()
544 if (*ctx) { in __archive_openssl_sha1final()
769 if (*ctx) { in __archive_openssl_sha256final()
970 if (*ctx) { in __archive_openssl_sha384final()
[all …]
H A Darchive_cryptor.c152 CCCryptorRef ref = ctx->ctx; in aes_ctr_encrypt_counter()
268 memset(ctx, 0, sizeof(*ctx)); in aes_ctr_release()
281 memset(&ctx->ctx, 0, sizeof(ctx->ctx)); in aes_ctr_init()
288 aes_set_encrypt_key(&ctx->ctx, ctx->key_len, ctx->key); in aes_ctr_encrypt_counter()
289 aes_encrypt(&ctx->ctx, AES_BLOCK_SIZE, ctx->encr_buf, ctx->nonce); in aes_ctr_encrypt_counter()
296 memset(ctx, 0, sizeof(*ctx)); in aes_ctr_release()
322 ctx->ctx = NULL; in aes_ctr_init()
325 EVP_CIPHER_CTX_init(ctx->ctx); in aes_ctr_init()
336 r = EVP_EncryptInit_ex(ctx->ctx, ctx->type, NULL, ctx->key, NULL); in aes_ctr_encrypt_counter()
339 r = EVP_EncryptUpdate(ctx->ctx, ctx->encr_buf, &outl, ctx->nonce, in aes_ctr_encrypt_counter()
[all …]
/freebsd-12.1/sys/crypto/siphash/
H A Dsiphash.c110 ctx->v[3] ^= le64toh(ctx->buf.b64); in SipBuf()
192 r = (ctx->v[0] ^ ctx->v[1]) ^ (ctx->v[2] ^ ctx->v[3]); in SipHash_End()
194 bzero(ctx, sizeof(*ctx)); in SipHash_End()
223 ctx->v[0] += ctx->v[1]; in SipRounds()
224 ctx->v[2] += ctx->v[3]; in SipRounds()
228 ctx->v[1] ^= ctx->v[0]; in SipRounds()
229 ctx->v[3] ^= ctx->v[2]; in SipRounds()
232 ctx->v[2] += ctx->v[1]; in SipRounds()
233 ctx->v[0] += ctx->v[3]; in SipRounds()
237 ctx->v[1] ^= ctx->v[2]; in SipRounds()
[all …]
/freebsd-12.1/sys/crypto/skein/
H A Dskein.c115 ctx->X[i] = Skein_Swap64(ctx->X[i]); in Skein_256_InitExt()
199 memset(&ctx->b[ctx->h.bCnt],0,SKEIN_256_BLOCK_BYTES - ctx->h.bCnt); in Skein_256_Final()
201 Skein_256_Process_Block(ctx,ctx->b,1,ctx->h.bCnt); /* process the final block */ in Skein_256_Final()
397 memset(&ctx->b[ctx->h.bCnt],0,SKEIN_512_BLOCK_BYTES - ctx->h.bCnt); in Skein_512_Final()
594 memset(&ctx->b[ctx->h.bCnt],0,SKEIN1024_BLOCK_BYTES - ctx->h.bCnt); in Skein1024_Final()
638 memset(&ctx->b[ctx->h.bCnt],0,SKEIN_256_BLOCK_BYTES - ctx->h.bCnt); in Skein_256_Final_Pad()
654 memset(&ctx->b[ctx->h.bCnt],0,SKEIN_512_BLOCK_BYTES - ctx->h.bCnt); in Skein_512_Final_Pad()
670 memset(&ctx->b[ctx->h.bCnt],0,SKEIN1024_BLOCK_BYTES - ctx->h.bCnt); in Skein1024_Final_Pad()
815 explicit_bzero(ctx, sizeof(*ctx)); in SKEIN256_Final()
823 explicit_bzero(ctx, sizeof(*ctx)); in SKEIN512_Final()
[all …]
/freebsd-12.1/contrib/bearssl/src/aead/
H A Deax.c112 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, ctx->buf, sizeof ctx->buf); in do_pad()
143 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, in do_cbcmac_chunk()
146 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, data, len); in do_cbcmac_chunk()
201 memcpy(ctx->nonce, ctx->cbcmac, sizeof ctx->cbcmac); in br_eax_reset()
257 memcpy(ctx->ctr, ctx->nonce, sizeof ctx->nonce); in br_eax_reset_post_aad()
331 memcpy(ctx->ctr, ctx->nonce, sizeof ctx->nonce); in br_eax_flip()
396 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, in br_eax_run()
412 (*ctx->bctx)->encrypt(ctx->bctx, ctx->ctr, ctx->cbcmac, in br_eax_run()
415 (*ctx->bctx)->decrypt(ctx->bctx, ctx->ctr, ctx->cbcmac, in br_eax_run()
425 (*ctx->bctx)->ctr(ctx->bctx, ctx->ctr, ctx->buf, sizeof ctx->buf); in br_eax_run()
[all …]
H A Dccm.c97 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, tmp, sizeof tmp); in br_ccm_reset()
126 (*ctx->bctx)->ctr(ctx->bctx, ctx->ctr, in br_ccm_reset()
157 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, in br_ccm_aad_inject()
158 ctx->buf, sizeof ctx->buf); in br_ccm_aad_inject()
166 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, dbuf, len); in br_ccm_aad_inject()
188 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, in br_ccm_flip()
247 ctx->cbcmac, ctx->buf, sizeof ctx->buf); in br_ccm_run()
264 (*ctx->bctx)->decrypt(ctx->bctx, ctx->ctr, ctx->cbcmac, in br_ccm_run()
267 (*ctx->bctx)->encrypt(ctx->bctx, ctx->ctr, ctx->cbcmac, in br_ccm_run()
280 (*ctx->bctx)->ctr(ctx->bctx, ctx->ctr, in br_ccm_run()
[all …]
H A Dgcm.c128 ctx->gh(ctx->y, ctx->h, ctx->buf, 16); in br_gcm_aad_inject()
140 ctx->gh(ctx->y, ctx->h, data, dlen); in br_gcm_aad_inject()
158 ctx->gh(ctx->y, ctx->h, ctx->buf, ptr); in br_gcm_flip()
195 ctx->gh(ctx->y, ctx->h, ctx->buf, 16); in br_gcm_run()
203 ctx->gh(ctx->y, ctx->h, buf, dlen); in br_gcm_run()
205 ctx->jc = (*ctx->bctx)->run(ctx->bctx, ctx->j0_1, ctx->jc, buf, dlen); in br_gcm_run()
207 ctx->gh(ctx->y, ctx->h, buf, dlen); in br_gcm_run()
220 ctx->jc = (*ctx->bctx)->run(ctx->bctx, ctx->j0_1, in br_gcm_run()
248 ctx->gh(ctx->y, ctx->h, ctx->buf, ptr); in br_gcm_get_tag()
256 ctx->gh(ctx->y, ctx->h, tmp, 16); in br_gcm_get_tag()
[all …]
/freebsd-12.1/contrib/unbound/libunbound/
H A Dlibunbound.c107 ctx = (struct ub_ctx*)calloc(1, sizeof(*ctx)); in ub_ctx_create_nopipe()
108 if(!ctx) { in ub_ctx_create_nopipe()
156 ctx->env->alloc = &ctx->superalloc; in ub_ctx_create_nopipe()
168 if(!ctx) in ub_ctx_create()
174 modstack_desetup(&ctx->mods, ctx->env); in ub_ctx_create()
186 modstack_desetup(&ctx->mods, ctx->env); in ub_ctx_create()
200 if(!ctx) in ub_ctx_create_ub_event()
214 if(!ctx) in ub_ctx_create_event()
294 if(ctx->created_bg && ctx->dothread) { in ub_ctx_delete()
305 modstack_desetup(&ctx->mods, ctx->env); in ub_ctx_delete()
[all …]
/freebsd-12.1/sys/opencrypto/
H A Dcbc_mac.c61 bzero(ctx, sizeof(*ctx)); in AES_CBC_MAC_Init()
121 rijndaelEncrypt(ctx->keysched, ctx->rounds, b0, ctx->block); in AES_CBC_MAC_Reinit()
170 if (ctx->authDataCount < ctx->authDataLength) { in AES_CBC_MAC_Update()
188 ctx->blockIndex %= sizeof(ctx->staging_block); in AES_CBC_MAC_Update()
197 xor_and_encrypt(ctx, ctx->staging_block, ctx->block); in AES_CBC_MAC_Update()
200 if (ctx->authDataCount >= ctx->authDataLength) in AES_CBC_MAC_Update()
227 ptr = ctx->staging_block + ctx->blockIndex; in AES_CBC_MAC_Update()
235 xor_and_encrypt(ctx, ctx->staging_block, ctx->block); in AES_CBC_MAC_Update()
253 xor_and_encrypt(ctx, ctx->staging_block, ctx->block); in AES_CBC_MAC_Final()
254 ctx->cryptDataCount += ctx->blockIndex; in AES_CBC_MAC_Final()
[all …]
/freebsd-12.1/contrib/serf/buckets/
H A Dbwtp_buckets.c75 ctx = serf_bucket_mem_alloc(allocator, sizeof(*ctx)); in serf_bucket_bwtp_channel_close()
76 ctx->type = 0; in serf_bucket_bwtp_channel_close()
77 ctx->open = 0; in serf_bucket_bwtp_channel_close()
92 ctx = serf_bucket_mem_alloc(allocator, sizeof(*ctx)); in serf_bucket_bwtp_channel_open()
109 ctx = serf_bucket_mem_alloc(allocator, sizeof(*ctx)); in serf_bucket_bwtp_header_create()
126 ctx = serf_bucket_mem_alloc(allocator, sizeof(*ctx)); in serf_bucket_bwtp_message_create()
324 ctx = serf_bucket_mem_alloc(allocator, sizeof(*ctx)); in serf_bucket_bwtp_incoming_frame_create()
342 if (ctx->state != STATE_STATUS_LINE && ctx->phrase) { in bwtp_incoming_destroy_and_data()
392 if (reason - ctx->linebuf.line < ctx->linebuf.used) { in parse_status_line()
476 ctx->body = serf_bucket_limit_create(ctx->body, ctx->length, in run_machine()
[all …]
H A Ddeflate_buckets.c93 ctx = serf_bucket_mem_alloc(allocator, sizeof(*ctx)); in serf_bucket_deflate_create()
98 ctx->crc = 0; in serf_bucket_deflate_create()
100 memset(&ctx->zstream, 0, sizeof(ctx->zstream)); in serf_bucket_deflate_create()
116 ctx->stream_left = ctx->stream_size = DEFLATE_MAGIC_SIZE; in serf_bucket_deflate_create()
165 memcpy(ctx->hdr_buffer + (ctx->stream_size - ctx->stream_left), in serf_deflate_read()
217 ctx->zstream.next_out = ctx->buffer; in serf_deflate_read()
218 ctx->zstream.avail_out = ctx->bufferSize; in serf_deflate_read()
288 ctx->zstream.next_out = ctx->buffer; in serf_deflate_read()
291 ctx->crc = crc32(ctx->crc, (const Bytef *)ctx->buffer, in serf_deflate_read()
299 ctx->zstream.avail_out = ctx->bufferSize; in serf_deflate_read()
[all …]
H A Dresponse_buckets.c59 if (ctx->sl.code >= 100 && ctx->sl.code < 200) in expect_body()
81 ctx = serf_bucket_mem_alloc(allocator, sizeof(*ctx)); in serf_bucket_response_create()
83 ctx->body = NULL; in serf_bucket_response_create()
86 ctx->chunked = 0; in serf_bucket_response_create()
127 return serf_linebuf_fetch(&ctx->linebuf, ctx->stream, acceptable); in fetch_line()
142 ctx->linebuf.line[ctx->linebuf.used] = '\0'; in parse_status_line()
153 ctx->sl.version = SERF_HTTP_VERSION(ctx->linebuf.line[5] - '0', in parse_status_line()
155 ctx->sl.code = apr_strtoi64(ctx->linebuf.line + 8, &reason, 10); in parse_status_line()
198 for(; c < ctx->linebuf.line + ctx->linebuf.used; c++) in fetch_headers()
210 ctx->linebuf.line, end_key - ctx->linebuf.line, 1, in fetch_headers()
[all …]
/freebsd-12.1/crypto/openssl/crypto/x509/
H A Dx509_vfy.c162 return ctx->verify_cb(0, ctx); in verify_cb_cert()
175 return ctx->verify_cb(0, ctx); in verify_cb_crl()
232 ok = (ctx->verify != NULL) ? ctx->verify(ctx) : internal_verify(ctx); in verify_chain()
249 ok = ctx->check_policy(ctx); in verify_chain()
897 ok = ctx->check_crl(ctx, crl); in check_cert()
1279 if (!X509_STORE_CTX_init(&crl_ctx, ctx->ctx, x, ctx->untrusted)) in check_crl_path()
1460 skcrl = ctx->lookup_crls(ctx, nm); in get_crl_delta()
1654 if (!ctx->verify_cb(2, ctx)) in check_policy()
1769 if (!ctx->verify_cb(1, ctx)) in internal_verify()
2208 ctx->ctx = store; in X509_STORE_CTX_init()
[all …]
/freebsd-12.1/tests/sys/netmap/
H A Dctrl-api-test.c228 ctx->nr_mode, ctx->nr_ringid, (unsigned long long)ctx->nr_flags, in port_register()
312 req.nr_flags = ctx->nr_mode | ctx->nr_flags; in niocregif()
340 ((ctx->nr_mode | ctx->nr_flags) == req.nr_flags) && in niocregif()
433 strncpy(ctx->ifname_ext, "valeX1:Y4", sizeof(ctx->ifname_ext)); in legacy_regif_extra_bufs_pipe_vale()
448 return ctx->nr_tx_rings + ctx->nr_rx_rings; in num_registered_rings()
675 strncpy(ctx->ifname_ext, "per4", sizeof(ctx->ifname_ext)); in vale_persistent_port()
782 strncpy(ctx->ifname_ext, "", sizeof(ctx->ifname_ext)); in pools_info_get_empty_ifname()
823 strncat(ctx->ifname_ext, "{xid", sizeof(ctx->ifname_ext)); in pipe_pools_info_get()
1089 strncpy(ctx->ifname_ext, "vale0:0", sizeof(ctx->ifname_ext)); in _extmem_option()
1179 strncpy(ctx->ifname_ext, "vale0:0", sizeof(ctx->ifname_ext)); in duplicate_extmem_options()
[all …]
/freebsd-12.1/contrib/ntp/lib/isc/
H A Dhmacsha.c47 HMAC_CTX_cleanup(ctx); in isc_hmacsha1_invalidate()
208 memset(ctx->key, 0, sizeof(ctx->key)); in isc_hmacsha1_init()
227 memset(ctx, 0, sizeof(*ctx)); in isc_hmacsha1_invalidate()
276 memset(ctx->key, 0, sizeof(ctx->key)); in isc_hmacsha224_init()
294 memset(ctx, 0, sizeof(*ctx)); in isc_hmacsha224_invalidate()
342 memset(ctx->key, 0, sizeof(ctx->key)); in isc_hmacsha256_init()
360 memset(ctx, 0, sizeof(*ctx)); in isc_hmacsha256_invalidate()
408 memset(ctx->key, 0, sizeof(ctx->key)); in isc_hmacsha384_init()
426 memset(ctx, 0, sizeof(*ctx)); in isc_hmacsha384_invalidate()
474 memset(ctx->key, 0, sizeof(ctx->key)); in isc_hmacsha512_init()
[all …]
H A Dmem.c558 (ctx->memfree)(ctx->arg, ctx->basic_table); in more_basic_blocks()
1027 (ctx->memfree)(ctx->arg, ctx->debuglist); in isc__mem_createx2()
1088 (ctx->memfree)(ctx->arg, ctx->debuglist); in destroy()
1103 (ctx->memfree)(ctx->arg, ctx->stats); in destroy()
1107 (ctx->memfree)(ctx->arg, ctx->basic_table[i]); in destroy()
1108 (ctx->memfree)(ctx->arg, ctx->freelists); in destroy()
1110 (ctx->memfree)(ctx->arg, ctx->basic_table); in destroy()
1117 (ctx->memfree)(ctx->arg, ctx); in destroy()
1145 MCTXLOCK(ctx, &ctx->lock); in isc__mem_detach()
1241 MCTXLOCK(ctx, &ctx->lock); in isc__mem_destroy()
[all …]
/freebsd-12.1/crypto/openssl/crypto/modes/
H A Dccm128.c22 memset(ctx->nonce.c, 0, sizeof(ctx->nonce.c)); in CRYPTO_ccm128_init()
70 (*block) (ctx->nonce.c, ctx->cmac.c, ctx->key), ctx->blocks++; in CRYPTO_ccm128_aad()
102 (*block) (ctx->cmac.c, ctx->cmac.c, ctx->key), ctx->blocks++; in CRYPTO_ccm128_aad()
144 (*block) (ctx->nonce.c, ctx->cmac.c, key), ctx->blocks++; in CRYPTO_ccm128_encrypt()
176 (*block) (ctx->cmac.c, ctx->cmac.c, key); in CRYPTO_ccm128_encrypt()
195 (*block) (ctx->cmac.c, ctx->cmac.c, key); in CRYPTO_ccm128_encrypt()
228 (*block) (ctx->nonce.c, ctx->cmac.c, key); in CRYPTO_ccm128_decrypt()
260 (*block) (ctx->cmac.c, ctx->cmac.c, key); in CRYPTO_ccm128_decrypt()
271 (*block) (ctx->cmac.c, ctx->cmac.c, key); in CRYPTO_ccm128_decrypt()
315 (*block) (ctx->nonce.c, ctx->cmac.c, key), ctx->blocks++; in CRYPTO_ccm128_encrypt_ccm64()
[all …]
H A Docb128.c155 memset(ctx, 0, sizeof(*ctx)); in CRYPTO_ocb128_init()
175 ctx->encrypt(ctx->l_star.c, ctx->l_star.c, ctx->keyenc); in CRYPTO_ocb128_init()
181 ocb_double(&ctx->l_dollar, ctx->l); in CRYPTO_ocb128_init()
184 ocb_double(ctx->l, ctx->l+1); in CRYPTO_ocb128_init()
185 ocb_double(ctx->l+1, ctx->l+2); in CRYPTO_ocb128_init()
186 ocb_double(ctx->l+2, ctx->l+3); in CRYPTO_ocb128_init()
187 ocb_double(ctx->l+3, ctx->l+4); in CRYPTO_ocb128_init()
244 ctx->encrypt(tmp, ktop, ctx->keyenc); in CRYPTO_ocb128_setiv()
397 ocb_block16_xor(&ctx->sess.offset, &ctx->l_star, &ctx->sess.offset); in CRYPTO_ocb128_encrypt()
400 ctx->encrypt(ctx->sess.offset.c, pad.c, ctx->keyenc); in CRYPTO_ocb128_encrypt()
[all …]
/freebsd-12.1/usr.bin/ctlstat/
H A Dctlstat.c407 ctx->prev_idle = ctx->cur_idle; in ctlstat_standard()
408 ctx->cur_idle = ctx->cur_cpu.idle; in ctlstat_standard()
588 memset(&ctx, 0, sizeof(ctx)); in main()
676 if (F_LUNS(&ctx) && F_PORTS(&ctx)) in main()
679 if (!F_LUNS(&ctx) && !F_PORTS(&ctx)) { in main()
691 ctx.prev_stats = ctx.cur_stats; in main()
694 ctx.prev_alloc = ctx.cur_alloc; in main()
697 ctx.prev_items = ctx.cur_items; in main()
699 ctx.prev_time = ctx.cur_time; in main()
700 ctx.prev_cpu = ctx.cur_cpu; in main()
[all …]
/freebsd-12.1/sys/dev/hyperv/vmbus/
H A Dvmbus_xact.c88 xact->x_ctx = ctx; in vmbus_xact_alloc()
122 while ((ctx->xc_flags & dtor_flag) == 0 && ctx->xc_free == NULL) in vmbus_xact_get1()
123 mtx_sleep(&ctx->xc_free, &ctx->xc_lock, 0, "gxact", 0); in vmbus_xact_get1()
128 xact = ctx->xc_free; in vmbus_xact_get1()
148 ctx = malloc(sizeof(*ctx), M_DEVBUF, M_WAITOK | M_ZERO); in vmbus_xact_ctx_create()
153 ctx->xc_free = vmbus_xact_alloc(ctx, dtag); in vmbus_xact_ctx_create()
161 return (ctx); in vmbus_xact_ctx_create()
178 ctx->xc_orphan = vmbus_xact_get1(ctx, 0); in vmbus_xact_ctx_orphan()
193 free(ctx, M_DEVBUF); in vmbus_xact_ctx_free()
230 ctx->xc_free = xact; in vmbus_xact_put()
[all …]

12345678910>>...91