Searched refs:req_ctx (Results 1 – 5 of 5) sorted by relevance
/linux-4.4.14/drivers/crypto/ |
D | talitos.c | 1655 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); in common_nonsnoop_hash_unmap() local 1661 unmap_sg_talitos_ptr(dev, req_ctx->psrc, NULL, 0, edesc); in common_nonsnoop_hash_unmap() 1685 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); in ahash_done() local 1687 if (!req_ctx->last && req_ctx->to_hash_later) { in ahash_done() 1689 memcpy(req_ctx->buf, req_ctx->bufnext, req_ctx->to_hash_later); in ahash_done() 1690 req_ctx->nbuf = req_ctx->to_hash_later; in ahash_done() 1728 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); in common_nonsnoop_hash() local 1739 if (!req_ctx->first || req_ctx->swinit) { in common_nonsnoop_hash() 1741 req_ctx->hw_context_size, in common_nonsnoop_hash() 1742 (char *)req_ctx->hw_context, in common_nonsnoop_hash() [all …]
|
D | mv_cesa.c | 262 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req); in mv_process_current_q() local 265 switch (req_ctx->op) { in mv_process_current_q() 278 if (req_ctx->decrypt) { in mv_process_current_q() 316 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req); in mv_crypto_algo_completion() local 321 if (req_ctx->op != COP_AES_CBC) in mv_crypto_algo_completion() 331 struct mv_req_hash_ctx *req_ctx = ahash_request_ctx(req); in mv_process_hash_current() local 336 switch (req_ctx->op) { in mv_process_hash_current() 350 req_ctx-> in mv_process_hash_current() 361 is_last = req_ctx->last_chunk in mv_process_hash_current() 363 && (req_ctx->count <= MAX_HW_HASH_SIZE); in mv_process_hash_current() [all …]
|
D | ixp4xx_crypto.c | 349 struct aead_ctx *req_ctx = aead_request_ctx(req); in finish_scattered_hmac() local 354 if (req_ctx->encrypt) { in finish_scattered_hmac() 355 scatterwalk_map_and_copy(req_ctx->hmac_virt, in finish_scattered_hmac() 358 dma_pool_free(buffer_pool, req_ctx->hmac_virt, crypt->icv_rev_aes); in finish_scattered_hmac() 375 struct aead_ctx *req_ctx = aead_request_ctx(req); in one_packet() local 377 free_buf_chain(dev, req_ctx->src, crypt->src_buf); in one_packet() 378 free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); in one_packet() 379 if (req_ctx->hmac_virt) { in one_packet() 387 struct ablk_ctx *req_ctx = ablkcipher_request_ctx(req); in one_packet() local 389 if (req_ctx->dst) { in one_packet() [all …]
|
/linux-4.4.14/drivers/crypto/ux500/hash/ |
D | hash_core.c | 568 struct hash_req_ctx *req_ctx = ahash_request_ctx(req); in hash_init() local 573 memset(&req_ctx->state, 0, sizeof(struct hash_state)); in hash_init() 574 req_ctx->updated = 0; in hash_init() 577 req_ctx->dma_mode = false; /* Don't use DMA */ in hash_init() 584 req_ctx->dma_mode = true; in hash_init() 586 req_ctx->dma_mode = false; in hash_init() 779 struct hash_ctx *ctx, struct hash_req_ctx *req_ctx, in hash_process_data() argument 795 if (req_ctx->updated) { in hash_process_data() 798 memmove(req_ctx->state.buffer, in hash_process_data() 815 req_ctx->updated = 1; in hash_process_data() [all …]
|
/linux-4.4.14/arch/x86/crypto/sha-mb/ |
D | sha1_mb.c | 428 struct mcryptd_hash_request_ctx *req_ctx; in sha_complete_job() local 447 req_ctx = cast_hash_to_mcryptd_ctx(sha_ctx); in sha_complete_job() 448 ret = sha_finish_walk(&req_ctx, cstate, false); in sha_complete_job() 449 if (req_ctx) { in sha_complete_job() 451 list_del(&req_ctx->waiter); in sha_complete_job() 454 req = cast_mcryptd_ctx_to_req(req_ctx); in sha_complete_job() 456 req_ctx->complete(&req->base, ret); in sha_complete_job() 459 req_ctx->complete(&req->base, ret); in sha_complete_job()
|