| /linux/drivers/crypto/tegra/ |
| H A D | tegra-se-aes.c | 107 struct tegra_aes_reqctx *rctx = skcipher_request_ctx(req); in tegra_cbc_iv_copyback() local 112 if (rctx->encrypt) in tegra_cbc_iv_copyback() 113 memcpy(req->iv, rctx->datbuf.buf + offset, ctx->ivsize); in tegra_cbc_iv_copyback() 210 struct tegra_aes_reqctx *rctx) in tegra_aes_prep_cmd() argument 215 dma_addr_t addr = rctx->datbuf.addr; in tegra_aes_prep_cmd() 217 data_count = rctx->len / AES_BLOCK_SIZE; in tegra_aes_prep_cmd() 218 res_bits = (rctx->len % AES_BLOCK_SIZE) * 8; in tegra_aes_prep_cmd() 227 if (rctx->iv) { in tegra_aes_prep_cmd() 231 cpuvaddr[i++] = rctx->iv[j]; in tegra_aes_prep_cmd() 239 cpuvaddr[i++] = rctx->config; in tegra_aes_prep_cmd() [all …]
|
| H A D | tegra-se-hash.c | 116 struct tegra_sha_reqctx *rctx = ahash_request_ctx(req); in tegra_sha_fallback_init() local 120 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_init() 121 ahash_request_set_callback(&rctx->fallback_req, in tegra_sha_fallback_init() 125 return crypto_ahash_init(&rctx->fallback_req); in tegra_sha_fallback_init() 130 struct tegra_sha_reqctx *rctx = ahash_request_ctx(req); in tegra_sha_fallback_update() local 134 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm); in tegra_sha_fallback_update() 135 ahash_request_set_callback(&rctx->fallback_req, in tegra_sha_fallback_update() 138 ahash_request_set_crypt(&rctx->fallback_req, req->src, NULL, req->nbytes); in tegra_sha_fallback_update() 140 return crypto_ahash_update(&rctx->fallback_req); in tegra_sha_fallback_update() 145 struct tegra_sha_reqctx *rctx = ahash_request_ctx(req); in tegra_sha_fallback_final() local [all …]
|
| /linux/drivers/crypto/ccp/ |
| H A D | ccp-crypto-aes-cmac.c | 28 struct ccp_aes_cmac_req_ctx *rctx = ahash_request_ctx_dma(req); in ccp_aes_cmac_complete() local 34 if (rctx->hash_rem) { in ccp_aes_cmac_complete() 36 unsigned int offset = rctx->nbytes - rctx->hash_rem; in ccp_aes_cmac_complete() 38 scatterwalk_map_and_copy(rctx->buf, rctx->src, in ccp_aes_cmac_complete() 39 offset, rctx->hash_rem, 0); in ccp_aes_cmac_complete() 40 rctx->buf_count = rctx->hash_rem; in ccp_aes_cmac_complete() 42 rctx->buf_count = 0; in ccp_aes_cmac_complete() 46 if (req->result && rctx->final) in ccp_aes_cmac_complete() 47 memcpy(req->result, rctx->iv, digest_size); in ccp_aes_cmac_complete() 50 sg_free_table(&rctx->data_sg); in ccp_aes_cmac_complete() [all …]
|
| /linux/drivers/crypto/cavium/nitrox/ |
| H A D | nitrox_aead.c | 151 static int nitrox_set_creq(struct nitrox_aead_rctx *rctx) in nitrox_set_creq() argument 153 struct se_crypto_request *creq = &rctx->nkreq.creq; in nitrox_set_creq() 157 creq->flags = rctx->flags; in nitrox_set_creq() 158 creq->gfp = (rctx->flags & CRYPTO_TFM_REQ_MAY_SLEEP) ? GFP_KERNEL : in nitrox_set_creq() 163 creq->ctrl.s.arg = rctx->ctrl_arg; in nitrox_set_creq() 165 creq->gph.param0 = cpu_to_be16(rctx->cryptlen); in nitrox_set_creq() 166 creq->gph.param1 = cpu_to_be16(rctx->cryptlen + rctx->assoclen); in nitrox_set_creq() 167 creq->gph.param2 = cpu_to_be16(rctx->ivsize + rctx->assoclen); in nitrox_set_creq() 169 param3.auth_offset = rctx->ivsize; in nitrox_set_creq() 172 creq->ctx_handle = rctx->ctx_handle; in nitrox_set_creq() [all …]
|
| /linux/drivers/crypto/allwinner/sun8i-ss/ |
| H A D | sun8i-ss-hash.c | 146 struct sun8i_ss_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ss_hash_init() local 150 memset(rctx, 0, sizeof(struct sun8i_ss_hash_reqctx)); in sun8i_ss_hash_init() 152 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_init() 153 ahash_request_set_callback(&rctx->fallback_req, in sun8i_ss_hash_init() 157 return crypto_ahash_init(&rctx->fallback_req); in sun8i_ss_hash_init() 162 struct sun8i_ss_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ss_hash_export() local 166 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm); in sun8i_ss_hash_export() 167 ahash_request_set_callback(&rctx->fallback_req, in sun8i_ss_hash_export() 171 return crypto_ahash_export(&rctx->fallback_req, out); in sun8i_ss_hash_export() 176 struct sun8i_ss_hash_reqctx *rctx = ahash_request_ctx(areq); in sun8i_ss_hash_import() local [all …]
|
| /linux/drivers/crypto/bcm/ |
| H A D | cipher.c | 135 struct iproc_reqctx_s *rctx, in spu_skcipher_rx_sg_create() argument 141 struct iproc_ctx_s *ctx = rctx->ctx; in spu_skcipher_rx_sg_create() 144 mssg->spu.dst = kmalloc_objs(struct scatterlist, rx_frag_num, rctx->gfp); in spu_skcipher_rx_sg_create() 151 sg_set_buf(sg++, rctx->msg_buf.spu_resp_hdr, ctx->spu_resp_hdr_len); in spu_skcipher_rx_sg_create() 156 sg_set_buf(sg++, rctx->msg_buf.c.supdt_tweak, in spu_skcipher_rx_sg_create() 160 datalen = spu_msg_sg_add(&sg, &rctx->dst_sg, &rctx->dst_skip, in spu_skcipher_rx_sg_create() 161 rctx->dst_nents, chunksize); in spu_skcipher_rx_sg_create() 169 sg_set_buf(sg++, rctx->msg_buf.rx_stat_pad, stat_pad_len); in spu_skcipher_rx_sg_create() 171 memset(rctx->msg_buf.rx_stat, 0, SPU_RX_STATUS_LEN); in spu_skcipher_rx_sg_create() 172 sg_set_buf(sg, rctx->msg_buf.rx_stat, spu->spu_rx_status_len()); in spu_skcipher_rx_sg_create() [all …]
|
| /linux/drivers/crypto/rockchip/ |
| H A D | rk3288_crypto_skcipher.c | 72 struct rk_cipher_rctx *rctx = skcipher_request_ctx(areq); in rk_cipher_fallback() local 79 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in rk_cipher_fallback() 80 skcipher_request_set_callback(&rctx->fallback_req, areq->base.flags, in rk_cipher_fallback() 82 skcipher_request_set_crypt(&rctx->fallback_req, areq->src, areq->dst, in rk_cipher_fallback() 84 if (rctx->mode & RK_CRYPTO_DEC) in rk_cipher_fallback() 85 err = crypto_skcipher_decrypt(&rctx->fallback_req); in rk_cipher_fallback() 87 err = crypto_skcipher_encrypt(&rctx->fallback_req); in rk_cipher_fallback() 93 struct rk_cipher_rctx *rctx = skcipher_request_ctx(req); in rk_cipher_handle_req() local 103 rctx->dev = rkc; in rk_cipher_handle_req() 157 struct rk_cipher_rctx *rctx = skcipher_request_ctx(req); in rk_aes_ecb_encrypt() local [all …]
|
| /linux/drivers/crypto/gemini/ |
| H A D | sl3516-ce-cipher.c | 107 struct sl3516_ce_cipher_req_ctx *rctx = skcipher_request_ctx(areq); in sl3516_ce_cipher_fallback() local 115 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in sl3516_ce_cipher_fallback() 116 skcipher_request_set_callback(&rctx->fallback_req, areq->base.flags, in sl3516_ce_cipher_fallback() 118 skcipher_request_set_crypt(&rctx->fallback_req, areq->src, areq->dst, in sl3516_ce_cipher_fallback() 120 if (rctx->op_dir == CE_DECRYPTION) in sl3516_ce_cipher_fallback() 121 err = crypto_skcipher_decrypt(&rctx->fallback_req); in sl3516_ce_cipher_fallback() 123 err = crypto_skcipher_encrypt(&rctx->fallback_req); in sl3516_ce_cipher_fallback() 132 struct sl3516_ce_cipher_req_ctx *rctx = skcipher_request_ctx(areq); in sl3516_ce_cipher() local 148 rctx->op_dir, areq->iv, crypto_skcipher_ivsize(tfm), in sl3516_ce_cipher() 185 rctx->t_src[i].addr = sg_dma_address(sg); in sl3516_ce_cipher() [all …]
|
| H A D | sl3516-ce.h | 337 struct sl3516_ce_cipher_req_ctx *rctx, const char *name);
|
| /linux/drivers/crypto/amlogic/ |
| H A D | amlogic-gxl-cipher.c | 62 struct meson_cipher_req_ctx *rctx = skcipher_request_ctx(areq); in meson_cipher_do_fallback() local 71 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm); in meson_cipher_do_fallback() 72 skcipher_request_set_callback(&rctx->fallback_req, areq->base.flags, in meson_cipher_do_fallback() 74 skcipher_request_set_crypt(&rctx->fallback_req, areq->src, areq->dst, in meson_cipher_do_fallback() 77 if (rctx->op_dir == MESON_DECRYPT) in meson_cipher_do_fallback() 78 err = crypto_skcipher_decrypt(&rctx->fallback_req); in meson_cipher_do_fallback() 80 err = crypto_skcipher_encrypt(&rctx->fallback_req); in meson_cipher_do_fallback() 88 struct meson_cipher_req_ctx *rctx = skcipher_request_ctx(areq); in meson_cipher() local 92 int flow = rctx->flow; in meson_cipher() 109 rctx->op_dir, crypto_skcipher_ivsize(tfm), in meson_cipher() [all …]
|
| /linux/kernel/events/ |
| H A D | callchain.c | 154 struct perf_callchain_entry *get_callchain_entry(int *rctx) in get_callchain_entry() argument 159 *rctx = get_recursion_context(this_cpu_ptr(callchain_recursion)); in get_callchain_entry() 160 if (*rctx == -1) in get_callchain_entry() 165 put_recursion_context(this_cpu_ptr(callchain_recursion), *rctx); in get_callchain_entry() 172 (*rctx * perf_callchain_entry__sizeof())); in get_callchain_entry() 176 put_callchain_entry(int rctx) in put_callchain_entry() argument 178 put_recursion_context(this_cpu_ptr(callchain_recursion), rctx); in put_callchain_entry() 225 int rctx, start_entry_idx; in get_perf_callchain() local 231 entry = get_callchain_entry(&rctx); in get_perf_callchain() 275 put_callchain_entry(rctx); in get_perf_callchain()
|
| H A D | internal.h | 216 unsigned char rctx = interrupt_context_level(); in DEFINE_OUTPUT_COPY() local 218 if (recursion[rctx]) in DEFINE_OUTPUT_COPY() 221 recursion[rctx]++; in DEFINE_OUTPUT_COPY() 224 return rctx; in DEFINE_OUTPUT_COPY() 227 static inline void put_recursion_context(u8 *recursion, unsigned char rctx) in put_recursion_context() argument 230 recursion[rctx]--; in put_recursion_context()
|
| H A D | core.c | 7648 int rctx; in perf_pending_disable() local 7654 rctx = perf_swevent_get_recursion_context(); in perf_pending_disable() 7656 if (rctx >= 0) in perf_pending_disable() 7657 perf_swevent_put_recursion_context(rctx); in perf_pending_disable() 7663 int rctx; in perf_pending_irq() local 7669 rctx = perf_swevent_get_recursion_context(); in perf_pending_irq() 7680 if (rctx >= 0) in perf_pending_irq() 7681 perf_swevent_put_recursion_context(rctx); in perf_pending_irq() 7687 int rctx; in perf_pending_task() local 7693 rctx = perf_swevent_get_recursion_context(); in perf_pending_task() [all …]
|
| /linux/drivers/crypto/allwinner/sun4i-ss/ |
| H A D | sun4i-ss-cipher.c | 401 struct sun4i_cipher_req_ctx *rctx = skcipher_request_ctx(areq); in sun4i_ss_cbc_aes_encrypt() local 403 rctx->mode = SS_OP_AES | SS_CBC | SS_ENABLED | SS_ENCRYPTION | in sun4i_ss_cbc_aes_encrypt() 412 struct sun4i_cipher_req_ctx *rctx = skcipher_request_ctx(areq); in sun4i_ss_cbc_aes_decrypt() local 414 rctx->mode = SS_OP_AES | SS_CBC | SS_ENABLED | SS_DECRYPTION | in sun4i_ss_cbc_aes_decrypt() 424 struct sun4i_cipher_req_ctx *rctx = skcipher_request_ctx(areq); in sun4i_ss_ecb_aes_encrypt() local 426 rctx->mode = SS_OP_AES | SS_ECB | SS_ENABLED | SS_ENCRYPTION | in sun4i_ss_ecb_aes_encrypt() 435 struct sun4i_cipher_req_ctx *rctx = skcipher_request_ctx(areq); in sun4i_ss_ecb_aes_decrypt() local 437 rctx->mode = SS_OP_AES | SS_ECB | SS_ENABLED | SS_DECRYPTION | in sun4i_ss_ecb_aes_decrypt() 447 struct sun4i_cipher_req_ctx *rctx = skcipher_request_ctx(areq); in sun4i_ss_cbc_des_encrypt() local 449 rctx->mode = SS_OP_DES | SS_CBC | SS_ENABLED | SS_ENCRYPTION | in sun4i_ss_cbc_des_encrypt() [all …]
|
| /linux/crypto/ |
| H A D | essiv.c | 172 struct essiv_aead_request_ctx *rctx = aead_request_ctx(req); in essiv_aead_done() local 177 kfree(rctx->assoc); in essiv_aead_done() 187 struct essiv_aead_request_ctx *rctx = aead_request_ctx(req); in essiv_aead_crypt() local 188 struct aead_request *subreq = &rctx->aead_req; in essiv_aead_crypt() 204 rctx->assoc = NULL; in essiv_aead_crypt() 217 sg_init_table(rctx->sg, 4); in essiv_aead_crypt() 224 rctx->assoc = kmalloc(ssize, GFP_ATOMIC); in essiv_aead_crypt() 225 if (!rctx->assoc) in essiv_aead_crypt() 228 scatterwalk_map_and_copy(rctx->assoc, req->src, 0, in essiv_aead_crypt() 230 sg_set_buf(rctx->sg, rctx->assoc, ssize); in essiv_aead_crypt() [all …]
|
| /linux/drivers/crypto/marvell/octeontx/ |
| H A D | otx_cptvf_algs.c | 101 struct otx_cpt_req_ctx *rctx; in validate_hmac_cipher_null() local 107 rctx = aead_request_ctx_dma(req); in validate_hmac_cipher_null() 108 if (memcmp(rctx->fctx.hmac.s.hmac_calc, in validate_hmac_cipher_null() 109 rctx->fctx.hmac.s.hmac_recv, in validate_hmac_cipher_null() 150 struct otx_cpt_req_ctx *rctx; in output_iv_copyback() local 159 rctx = skcipher_request_ctx_dma(sreq); in output_iv_copyback() 160 req_info = &rctx->cpt_req; in output_iv_copyback() 237 struct otx_cpt_req_ctx *rctx = skcipher_request_ctx_dma(req); in create_ctx_hdr() local 238 struct otx_cpt_req_info *req_info = &rctx->cpt_req; in create_ctx_hdr() 241 struct otx_cpt_fc_ctx *fctx = &rctx->fctx; in create_ctx_hdr() [all …]
|
| /linux/drivers/crypto/cavium/cpt/ |
| H A D | cptvf_algs.c | 100 struct cvm_req_ctx *rctx = skcipher_request_ctx_dma(req); in create_ctx_hdr() local 101 struct fc_context *fctx = &rctx->fctx; in create_ctx_hdr() 103 struct cpt_request_info *req_info = &rctx->cpt_req; in create_ctx_hdr() 132 offset_control = (__be64 *)&rctx->control_word; in create_ctx_hdr() 154 struct cvm_req_ctx *rctx = skcipher_request_ctx_dma(req); in create_input_list() local 155 struct cpt_request_info *req_info = &rctx->cpt_req; in create_input_list() 176 struct cvm_req_ctx *rctx = skcipher_request_ctx_dma(req); in create_output_list() local 177 struct cpt_request_info *req_info = &rctx->cpt_req; in create_output_list() 196 struct cvm_req_ctx *rctx = skcipher_request_ctx_dma(req); in cvm_enc_dec() local 198 struct fc_context *fctx = &rctx->fctx; in cvm_enc_dec() [all …]
|
| /linux/drivers/crypto/caam/ |
| H A D | caamalg.c | 1050 struct caam_aead_req_ctx *rctx = aead_request_ctx(req); in aead_crypt_done() local 1058 edesc = rctx->edesc; in aead_crypt_done() 1090 struct caam_skcipher_req_ctx *rctx = skcipher_request_ctx(req); in skcipher_crypt_done() local 1099 edesc = rctx->edesc; in skcipher_crypt_done() 1392 struct caam_aead_req_ctx *rctx = aead_request_ctx(req); in aead_edesc_alloc() local 1493 rctx->edesc = edesc; in aead_edesc_alloc() 1528 struct caam_aead_req_ctx *rctx = aead_request_ctx(req); in aead_enqueue_req() local 1529 struct aead_edesc *edesc = rctx->edesc; in aead_enqueue_req() 1546 kfree(rctx->edesc); in aead_enqueue_req() 1624 struct caam_aead_req_ctx *rctx = aead_request_ctx(req); in aead_do_one_req() local [all …]
|
| H A D | caamalg_qi.c | 1438 struct caam_skcipher_req_ctx *rctx = skcipher_request_ctx(req); in skcipher_crypt() local 1440 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback); in skcipher_crypt() 1441 skcipher_request_set_callback(&rctx->fallback_req, in skcipher_crypt() 1445 skcipher_request_set_crypt(&rctx->fallback_req, req->src, in skcipher_crypt() 1448 return encrypt ? crypto_skcipher_encrypt(&rctx->fallback_req) : in skcipher_crypt() 1449 crypto_skcipher_decrypt(&rctx->fallback_req); in skcipher_crypt()
|
| /linux/drivers/infiniband/sw/siw/ |
| H A D | siw.h | 473 #define rx_wqe(rctx) (&(rctx)->wqe_active) argument 474 #define rx_mem(rctx) ((rctx)->wqe_active.mem[0]) argument
|
| /linux/kernel/trace/ |
| H A D | trace_fprobe.c | 459 int rctx; in fentry_perf_func() local 470 entry = perf_trace_buf_alloc(size, ®s, &rctx); in fentry_perf_func() 479 perf_trace_buf_submit(entry, size, rctx, call->event.type, 1, regs, in fentry_perf_func() 495 int rctx; in fexit_perf_func() local 506 entry = perf_trace_buf_alloc(size, ®s, &rctx); in fexit_perf_func() 515 perf_trace_buf_submit(entry, size, rctx, call->event.type, 1, regs, in fexit_perf_func()
|
| H A D | trace_uprobe.c | 1396 int rctx; in __uprobe_perf_func() local 1425 entry = perf_trace_buf_alloc(size, NULL, &rctx); in __uprobe_perf_func() 1443 perf_trace_buf_submit(entry, size, rctx, call->event.type, 1, regs, in __uprobe_perf_func()
|
| /linux/include/linux/ |
| H A D | perf_event.h | 1742 extern struct perf_callchain_entry *get_callchain_entry(int *rctx); 1743 extern void put_callchain_entry(int rctx); 1816 struct hlist_head *head, int rctx, 1922 extern void perf_swevent_put_recursion_context(int rctx); 2012 static inline void perf_swevent_put_recursion_context(int rctx) { } in perf_swevent_put_recursion_context() argument
|
| /linux/drivers/scsi/megaraid/ |
| H A D | megaraid_sas_fusion.c | 2743 struct RAID_CONTEXT *rctx; in megasas_build_ldio_fusion() local 2751 rctx = &io_request->RaidContext.raid_context; in megasas_build_ldio_fusion() 2754 rctx->virtual_disk_tgt_id = cpu_to_le16(device_id); in megasas_build_ldio_fusion() 2755 rctx->status = 0; in megasas_build_ldio_fusion() 2756 rctx->ex_status = 0; in megasas_build_ldio_fusion() 2831 rctx->reg_lock_flags = 0; in megasas_build_ldio_fusion() 2834 if (MR_BuildRaidContext(instance, &io_info, rctx, in megasas_build_ldio_fusion() 2900 rctx->type = MPI2_TYPE_CUDA; in megasas_build_ldio_fusion() 2901 rctx->nseg = 0x1; in megasas_build_ldio_fusion() 2903 rctx->reg_lock_flags |= in megasas_build_ldio_fusion() [all …]
|
| /linux/drivers/accel/ivpu/ |
| H A D | ivpu_drv.h | 150 struct ivpu_mmu_context rctx; member
|