/openbmc/linux/io_uring/ |
H A D | tctx.c | 56 kfree(tctx); in __io_uring_free() 66 tctx = kzalloc(sizeof(*tctx), GFP_KERNEL); in io_uring_alloc_task_context() 67 if (unlikely(!tctx)) in io_uring_alloc_task_context() 72 kfree(tctx); in io_uring_alloc_task_context() 80 kfree(tctx); in io_uring_alloc_task_context() 84 xa_init(&tctx->xa); in io_uring_alloc_task_context() 88 task->io_uring = tctx; in io_uring_alloc_task_context() 160 if (!tctx) in io_uring_del_tctx_node() 174 tctx->last = NULL; in io_uring_del_tctx_node() 194 tctx->io_wq = NULL; in io_uring_clean_tctx() [all …]
|
H A D | cancel.c | 75 static int io_async_cancel_one(struct io_uring_task *tctx, in io_async_cancel_one() argument 82 if (!tctx || !tctx->io_wq) in io_async_cancel_one() 110 ret = io_async_cancel_one(tctx, cd); in io_try_cancel() 157 struct io_uring_task *tctx, in __io_async_cancel() argument 166 ret = io_try_cancel(tctx, cd, issue_flags); in __io_async_cancel() 178 struct io_uring_task *tctx = node->task->io_uring; in __io_async_cancel() local 180 ret = io_async_cancel_one(tctx, cd); in __io_async_cancel() 201 struct io_uring_task *tctx = req->task->io_uring; in io_async_cancel() local 220 ret = __io_async_cancel(&cd, tctx, issue_flags); in io_async_cancel() 238 static int __io_sync_cancel(struct io_uring_task *tctx, in __io_sync_cancel() argument [all …]
|
H A D | tctx.h | 14 void io_uring_clean_tctx(struct io_uring_task *tctx); 27 struct io_uring_task *tctx = current->io_uring; in io_uring_add_tctx_node() local 29 if (likely(tctx && tctx->last == ctx)) in io_uring_add_tctx_node()
|
H A D | io_uring.c | 500 BUG_ON(!tctx); in io_queue_iowq() 501 BUG_ON(!tctx->io_wq); in io_queue_iowq() 736 wake_up(&tctx->wait); in io_put_task_remote() 770 tctx->cached_refs = 0; in io_uring_drop_tctx_refs() 2502 if (!tctx) in current_pending_io() 3055 if (tctx && !atomic_read(&tctx->in_cancel)) in io_tctx_exit_cb() 3257 if (!tctx || !tctx->io_wq) in io_uring_try_cancel_iowq() 3288 } else if (tctx && tctx->io_wq) { in io_uring_try_cancel_requests() 3345 if (tctx->io_wq) in io_uring_cancel_generic() 4005 tctx = current->io_uring; in io_uring_create() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-connectivity/samba/samba/ |
H A D | samba-4.3.9-remove-getpwent_r.patch | 26 static bool test_getgrgid(struct torture_context *tctx, 34 static bool test_enum_r_passwd(struct torture_context *tctx, 49 - torture_assert(tctx, test_enum_r_passwd(tctx, &pwd, &num_pwd), 50 + torture_assert(tctx, test_enum_passwd(tctx, &pwd, &num_pwd), 58 - torture_assert(tctx, test_enum_r_passwd(tctx, &pwd, &num_pwd), 59 + torture_assert(tctx, test_enum_passwd(tctx, &pwd, &num_pwd), 68 static bool test_enum_r_group(struct torture_context *tctx, 83 - torture_assert(tctx, test_enum_r_group(tctx, &grp, &num_grp), 84 + torture_assert(tctx, test_enum_group(tctx, &grp, &num_grp), 92 - torture_assert(tctx, test_enum_r_group(tctx, &grp, &num_grp), [all …]
|
/openbmc/linux/drivers/crypto/ |
H A D | geode-aes.c | 97 _writefield(AES_WRITEKEY0_REG, tctx->key); in geode_aes_crypt() 115 tctx->keylen = len; in geode_setkey_cip() 118 memcpy(tctx->key, key, len); in geode_setkey_cip() 130 tctx->fallback.cip->base.crt_flags |= in geode_setkey_cip() 141 tctx->keylen = len; in geode_setkey_skcipher() 144 memcpy(tctx->key, key, len); in geode_setkey_skcipher() 200 if (IS_ERR(tctx->fallback.cip)) { in fallback_init_cip() 202 return PTR_ERR(tctx->fallback.cip); in fallback_init_cip() 212 crypto_free_cipher(tctx->fallback.cip); in fallback_exit_cip() 243 tctx->fallback.skcipher = in geode_init_skcipher() [all …]
|
/openbmc/linux/crypto/ |
H A D | hctr2.c | 86 u8 *p = (u8 *)tctx + sizeof(*tctx); in hctr2_hashed_tweaklen() 115 shash->tfm = tctx->polyval; in hctr2_hash_tweaklen() 155 memset(tctx->L, 0, sizeof(tctx->L)); in hctr2_setkey() 156 tctx->L[0] = 0x01; in hctr2_setkey() 157 crypto_cipher_encrypt_one(tctx->blockcipher, tctx->L, tctx->L); in hctr2_setkey() 167 return hctr2_hash_tweaklen(tctx, true) ?: hctr2_hash_tweaklen(tctx, false); in hctr2_setkey() 179 hash_desc->tfm = tctx->polyval; in hctr2_hash_tweak() 240 hash_desc->tfm = tctx->polyval; in hctr2_finish() 361 tctx->xctr = xctr; in hctr2_init_tfm() 362 tctx->blockcipher = blockcipher; in hctr2_init_tfm() [all …]
|
H A D | essiv.c | 112 desc->tfm = tctx->hash; in essiv_aead_setkey() 271 struct essiv_tfm_ctx *tctx) in essiv_init_tfm() argument 287 tctx->essiv_cipher = essiv_cipher; in essiv_init_tfm() 288 tctx->hash = hash; in essiv_init_tfm() 312 err = essiv_init_tfm(ictx, tctx); in essiv_skcipher_init_tfm() 318 tctx->u.skcipher = skcipher; in essiv_skcipher_init_tfm() 345 err = essiv_init_tfm(ictx, tctx); in essiv_aead_init_tfm() 351 tctx->u.aead = aead; in essiv_aead_init_tfm() 361 crypto_free_shash(tctx->hash); in essiv_skcipher_exit_tfm() 368 crypto_free_aead(tctx->u.aead); in essiv_aead_exit_tfm() [all …]
|
H A D | adiantum.c | 133 crypto_skcipher_set_flags(tctx->streamcipher, in adiantum_setkey() 161 crypto_cipher_set_flags(tctx->blockcipher, in adiantum_setkey() 164 err = crypto_cipher_setkey(tctx->blockcipher, keyp, in adiantum_setkey() 171 poly1305_core_setkey(&tctx->header_hash_key, keyp); in adiantum_setkey() 259 hash_desc->tfm = tctx->hash; in adiantum_hash_message() 423 tctx->streamcipher = streamcipher; in adiantum_init_tfm() 424 tctx->blockcipher = blockcipher; in adiantum_init_tfm() 425 tctx->hash = hash; in adiantum_init_tfm() 452 crypto_free_skcipher(tctx->streamcipher); in adiantum_exit_tfm() 453 crypto_free_cipher(tctx->blockcipher); in adiantum_exit_tfm() [all …]
|
H A D | vmac.c | 403 const u64 *kptr = tctx->nhkey; in vhash_blocks() 404 const u64 pkh = tctx->polykey[0]; in vhash_blocks() 405 const u64 pkl = tctx->polykey[1]; in vhash_blocks() 450 tctx->nhkey[i] = be64_to_cpu(out[0]); in vmac_setkey() 471 tctx->l3key[i] = be64_to_cpu(out[0]); in vmac_setkey() 474 } while (tctx->l3key[i] >= p64 || tctx->l3key[i+1] >= p64); in vmac_setkey() 552 poly_step(ch, cl, tctx->polykey[0], tctx->polykey[1], in vhash_final() 559 return l3hash(ch, cl, tctx->l3key[0], tctx->l3key[1], partial * 8); in vhash_final() 582 hash = vhash_final(tctx, dctx); in vmac_final() 608 tctx->cipher = cipher; in vmac_init_tfm() [all …]
|
H A D | xxhash_generic.c | 23 struct xxhash64_tfm_ctx *tctx = crypto_shash_ctx(tfm); in xxhash64_setkey() local 25 if (keylen != sizeof(tctx->seed)) in xxhash64_setkey() 27 tctx->seed = get_unaligned_le64(key); in xxhash64_setkey() 33 struct xxhash64_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in xxhash64_init() local 36 xxh64_reset(&dctx->xxhstate, tctx->seed); in xxhash64_init() 63 struct xxhash64_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in xxhash64_digest() local 65 put_unaligned_le64(xxh64(data, length, tctx->seed), out); in xxhash64_digest()
|
/openbmc/linux/drivers/crypto/intel/keembay/ |
H A D | keembay-ocs-aes-core.c | 125 if (tctx->aes_dev) { in kmb_ocs_aes_find_dev() 132 tctx->aes_dev = aes_dev; in kmb_ocs_aes_find_dev() 176 tctx->cipher = cipher; in save_key() 901 rc = ocs_aes_ccm_op(tctx->aes_dev, tctx->cipher, in kmb_ocs_aead_run() 910 rc = ocs_aes_gcm_op(tctx->aes_dev, tctx->cipher, in kmb_ocs_aead_run() 959 err = ocs_aes_set_key(tctx->aes_dev, tctx->key_len, tctx->key, in kmb_ocs_aes_sk_do_one_request() 980 if (!tctx->aes_dev) in kmb_ocs_aes_aead_do_one_request() 983 err = ocs_aes_set_key(tctx->aes_dev, tctx->key_len, tctx->key, in kmb_ocs_aes_aead_do_one_request() 1178 if (tctx->aes_dev) in clear_key() 1187 clear_key(tctx); in ocs_exit_tfm() [all …]
|
H A D | keembay-ocs-ecc.c | 205 if (tctx->ecc_dev) in kmb_ocs_ecc_find_dev() 206 return tctx->ecc_dev; in kmb_ocs_ecc_find_dev() 216 return tctx->ecc_dev; in kmb_ocs_ecc_find_dev() 554 rc = kmb_ecc_gen_privkey(tctx->curve, tctx->private_key); in kmb_ocs_ecdh_set_secret() 569 tctx->curve = NULL; in kmb_ocs_ecdh_set_secret() 729 if (!tctx->curve) in kmb_ocs_ecdh_generate_public_key() 754 if (!tctx->curve) in kmb_ocs_ecdh_compute_shared_secret() 778 memset(tctx, 0, sizeof(*tctx)); in kmb_ecc_tctx_init() 780 tctx->ecc_dev = kmb_ocs_ecc_find_dev(tctx); in kmb_ecc_tctx_init() 789 if (!tctx->curve) in kmb_ecc_tctx_init() [all …]
|
/openbmc/qemu/hw/intc/ |
H A D | xive.c | 59 return tctx->os_output; in xive_tctx_output() 70 uint8_t *regs = &tctx->regs[ring]; in xive_tctx_accept() 144 xive_tctx_notify(tctx, ring); in xive_tctx_set_cppr() 153 xive_tctx_notify(tctx, ring); in xive_tctx_ipb_update() 680 if (!tctx) { in xive_tctx_pic_print_info() 684 cpu_index = tctx->cs ? tctx->cs->cpu_index : -1; in xive_tctx_pic_print_info() 709 memset(tctx->regs, 0, sizeof(tctx->regs)); in xive_tctx_reset() 732 assert(tctx->cs); in xive_tctx_realize() 733 assert(tctx->xptr); in xive_tctx_realize() 735 cpu = POWERPC_CPU(tctx->cs); in xive_tctx_realize() [all …]
|
H A D | spapr_xive_kvm.c | 79 SpaprXive *xive = SPAPR_XIVE(tctx->xptr); in kvmppc_xive_cpu_set_state() 86 state[0] = *((uint64_t *) &tctx->regs[TM_QW1_OS]); in kvmppc_xive_cpu_set_state() 92 kvm_arch_vcpu_id(tctx->cs)); in kvmppc_xive_cpu_set_state() 101 SpaprXive *xive = SPAPR_XIVE(tctx->xptr); in kvmppc_xive_cpu_get_state() 111 kvm_arch_vcpu_id(tctx->cs)); in kvmppc_xive_cpu_get_state() 122 XiveTCTX *tctx; member 138 .tctx = tctx, in kvmppc_xive_cpu_synchronize_state() 154 SpaprXive *xive = SPAPR_XIVE(tctx->xptr); in kvmppc_xive_cpu_connect() 161 if (kvm_cpu_is_enabled(tctx->cs)) { in kvmppc_xive_cpu_connect() 165 vcpu_id = kvm_arch_vcpu_id(tctx->cs); in kvmppc_xive_cpu_connect() [all …]
|
H A D | xive2.c | 188 CPUPPCState *env = &POWERPC_CPU(tctx->cs)->env; in xive2_tctx_save_os_ctx() 191 uint8_t *regs = &tctx->regs[TM_QW1_OS]; in xive2_tctx_save_os_ctx() 249 uint32_t qw1w2 = xive_tctx_word2(&tctx->regs[TM_QW1_OS]); in xive2_tm_pull_os_ctx() 266 memcpy(&tctx->regs[TM_QW1_OS + TM_WORD2], &qw1w2_new, 4); in xive2_tm_pull_os_ctx() 272 xive_tctx_reset_os_signal(tctx); in xive2_tm_pull_os_ctx() 280 CPUPPCState *env = &POWERPC_CPU(tctx->cs)->env; in xive2_tctx_restore_os_ctx() 294 tctx->regs[TM_QW1_OS + TM_CPPR] = cppr; in xive2_tctx_restore_os_ctx() 356 xive_tctx_ipb_update(tctx, TM_QW1_OS, ipb); in xive2_tctx_need_resend() 375 memcpy(&tctx->regs[TM_QW1_OS + TM_WORD2], &qw1w2, 4); in xive2_tm_push_os_ctx() 463 CPUPPCState *env = &POWERPC_CPU(tctx->cs)->env; in xive2_tctx_hw_cam_line() [all …]
|
H A D | spapr_xive.c | 219 XiveTCTX *tctx = spapr_cpu_state(POWERPC_CPU(current_cpu))->tctx; in spapr_xive_tm_write() local 226 XiveTCTX *tctx = spapr_cpu_state(POWERPC_CPU(current_cpu))->tctx; in spapr_xive_tm_read() local 442 XiveTCTX *tctx = spapr_cpu_state(cpu)->tctx; in spapr_xive_match_nvt() local 449 if (!tctx) { in spapr_xive_match_nvt() 463 if (match->tctx) { in spapr_xive_match_nvt() 470 match->tctx = tctx; in spapr_xive_match_nvt() 651 spapr_cpu->tctx = XIVE_TCTX(obj); in spapr_xive_cpu_intc_create() 664 XiveTCTX *tctx = spapr_cpu_state(cpu)->tctx; in spapr_xive_cpu_intc_reset() local 668 xive_tctx_reset(tctx); in spapr_xive_cpu_intc_reset() 685 xive_tctx_destroy(spapr_cpu->tctx); in spapr_xive_cpu_intc_destroy() [all …]
|
/openbmc/hiomapd/test/ |
H A D | windows_equally_evictable.c | 36 static int mbox_create_read_window(struct test_context *tctx, size_t offset, in mbox_create_read_window() argument 43 regs.msg.seq = ++tctx->seq; in mbox_create_read_window() 47 return mbox_command_dispatch(tctx->ctx, regs.raw, sizeof(regs.raw)); in mbox_create_read_window() 52 struct test_context _tctx = {0}, *tctx = &_tctx; in main() local 60 tctx->ctx = mbox_create_test_context(N_WINDOWS, WINDOW_SIZE); in main() 62 rc = mbox_command_dispatch(tctx->ctx, get_info, sizeof(get_info)); in main() 70 rc = mbox_create_read_window(tctx, pos, (WINDOW_SIZE / BLOCK_SIZE)); in main() 73 mbox_rspcpy(tctx->ctx, msg); in main() 79 windows_reset_all(tctx->ctx); in main() 81 rc = mbox_create_read_window(tctx, pos, (WINDOW_SIZE / BLOCK_SIZE)); in main()
|
/openbmc/phosphor-mboxd/vpnor/test/ |
H A D | dump_flash.cpp | 44 static int mbox_create_read_window(struct test_context *tctx, size_t offset, in mbox_create_read_window() argument 51 regs.msg.seq = ++tctx->seq; in mbox_create_read_window() 55 return mbox_command_dispatch(tctx->ctx, regs.raw, sizeof(regs.raw)); in mbox_create_read_window() 62 struct test_context _tctx = {0}, *tctx = &_tctx; in main() local 70 tctx->ctx = mbox_create_test_context(N_WINDOWS, WINDOW_SIZE); in main() 71 test::VpnorRoot root(tctx->ctx, toc, BLOCK_SIZE); in main() 72 init_vpnor_from_paths(tctx->ctx); in main() 74 rc = mbox_command_dispatch(tctx->ctx, get_info, sizeof(get_info)); in main() 82 rc = mbox_create_read_window(tctx, pos, (WINDOW_SIZE / BLOCK_SIZE)); in main() 85 mbox_rspcpy(tctx->ctx, msg); in main()
|
/openbmc/hiomapd/vpnor/test/ |
H A D | dump_flash.cpp | 45 static int mbox_create_read_window(struct test_context* tctx, size_t offset, in mbox_create_read_window() argument 52 regs.msg.seq = ++tctx->seq; in mbox_create_read_window() 56 return mbox_command_dispatch(tctx->ctx, regs.raw, sizeof(regs.raw)); in mbox_create_read_window() 63 test_context _tctx{}, *tctx = &_tctx; in main() local 71 tctx->ctx = mbox_create_frontend_context(N_WINDOWS, WINDOW_SIZE); in main() 72 test::VpnorRoot root(&tctx->ctx->backend, toc, BLOCK_SIZE); in main() 74 rc = mbox_command_dispatch(tctx->ctx, get_info, sizeof(get_info)); in main() 82 rc = mbox_create_read_window(tctx, pos, (WINDOW_SIZE / BLOCK_SIZE)); in main() 85 mbox_rspcpy(tctx->ctx, msg); in main()
|
/openbmc/linux/arch/arm64/crypto/ |
H A D | polyval-ce-glue.c | 75 struct polyval_tfm_ctx *tctx = crypto_shash_ctx(tfm); in polyval_arm64_setkey() local 81 memcpy(tctx->key_powers[NUM_KEY_POWERS-1], key, POLYVAL_BLOCK_SIZE); in polyval_arm64_setkey() 84 memcpy(tctx->key_powers[i], key, POLYVAL_BLOCK_SIZE); in polyval_arm64_setkey() 85 internal_polyval_mul(tctx->key_powers[i], in polyval_arm64_setkey() 86 tctx->key_powers[i+1]); in polyval_arm64_setkey() 105 const struct polyval_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in polyval_arm64_update() local 122 tctx->key_powers[NUM_KEY_POWERS-1]); in polyval_arm64_update() 128 internal_polyval_update(tctx, src, nblocks, dctx->buffer); in polyval_arm64_update() 146 const struct polyval_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in polyval_arm64_final() local 150 tctx->key_powers[NUM_KEY_POWERS-1]); in polyval_arm64_final()
|
/openbmc/linux/arch/x86/crypto/ |
H A D | polyval-clmulni_glue.c | 84 struct polyval_tfm_ctx *tctx = polyval_tfm_ctx(tfm); in polyval_x86_setkey() local 90 memcpy(tctx->key_powers[NUM_KEY_POWERS-1], key, POLYVAL_BLOCK_SIZE); in polyval_x86_setkey() 93 memcpy(tctx->key_powers[i], key, POLYVAL_BLOCK_SIZE); in polyval_x86_setkey() 94 internal_polyval_mul(tctx->key_powers[i], in polyval_x86_setkey() 95 tctx->key_powers[i+1]); in polyval_x86_setkey() 114 const struct polyval_tfm_ctx *tctx = polyval_tfm_ctx(desc->tfm); in polyval_x86_update() local 131 tctx->key_powers[NUM_KEY_POWERS-1]); in polyval_x86_update() 137 internal_polyval_update(tctx, src, nblocks, dctx->buffer); in polyval_x86_update() 155 const struct polyval_tfm_ctx *tctx = polyval_tfm_ctx(desc->tfm); in polyval_x86_final() local 159 tctx->key_powers[NUM_KEY_POWERS-1]); in polyval_x86_final()
|
/openbmc/qemu/include/hw/ppc/ |
H A D | xive.h | 425 XiveTCTX *tctx; member 448 int xive_presenter_tctx_match(XivePresenter *xptr, XiveTCTX *tctx, 531 void xive_tctx_pic_print_info(XiveTCTX *tctx, Monitor *mon); 533 void xive_tctx_reset(XiveTCTX *tctx); 534 void xive_tctx_destroy(XiveTCTX *tctx); 535 void xive_tctx_ipb_update(XiveTCTX *tctx, uint8_t ring, uint8_t ipb); 536 void xive_tctx_reset_os_signal(XiveTCTX *tctx); 544 int kvmppc_xive_cpu_connect(XiveTCTX *tctx, Error **errp); 545 int kvmppc_xive_cpu_synchronize_state(XiveTCTX *tctx, Error **errp); 546 int kvmppc_xive_cpu_get_state(XiveTCTX *tctx, Error **errp); [all …]
|
/openbmc/linux/include/crypto/internal/ |
H A D | blake2b.h | 75 struct blake2b_tfm_ctx *tctx = crypto_shash_ctx(tfm); in crypto_blake2b_setkey() local 80 memcpy(tctx->key, key, keylen); in crypto_blake2b_setkey() 81 tctx->keylen = keylen; in crypto_blake2b_setkey() 88 const struct blake2b_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm); in crypto_blake2b_init() local 92 __blake2b_init(state, outlen, tctx->key, tctx->keylen); in crypto_blake2b_init()
|
/openbmc/linux/drivers/crypto/aspeed/ |
H A D | aspeed-hace-hash.c | 353 struct aspeed_sha_hmac_ctx *bctx = tctx->base; in aspeed_ahash_hmac_resume() 539 struct aspeed_hace_dev *hace_dev = tctx->hace_dev; in aspeed_ahash_do_request() 667 struct aspeed_sha_hmac_ctx *bctx = tctx->base; in aspeed_sham_init() 736 if (tctx->flags & SHA_FLAGS_HMAC) { in aspeed_sham_init() 756 struct aspeed_sha_hmac_ctx *bctx = tctx->base; in aspeed_sham_setkey() 795 tctx->hace_dev = ast_alg->hace_dev; in aspeed_sham_cra_init() 796 tctx->flags = 0; in aspeed_sham_cra_init() 803 struct aspeed_sha_hmac_ctx *bctx = tctx->base; in aspeed_sham_cra_init() 805 tctx->flags |= SHA_FLAGS_HMAC; in aspeed_sham_cra_init() 826 if (tctx->flags & SHA_FLAGS_HMAC) { in aspeed_sham_cra_exit() [all …]
|