Searched refs:req_ctx (Results 1 – 5 of 5) sorted by relevance
/linux-4.1.27/drivers/crypto/ |
D | mv_cesa.c | 257 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req); in mv_process_current_q() local 260 switch (req_ctx->op) { in mv_process_current_q() 273 if (req_ctx->decrypt) { in mv_process_current_q() 311 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req); in mv_crypto_algo_completion() local 316 if (req_ctx->op != COP_AES_CBC) in mv_crypto_algo_completion() 326 struct mv_req_hash_ctx *req_ctx = ahash_request_ctx(req); in mv_process_hash_current() local 331 switch (req_ctx->op) { in mv_process_hash_current() 345 req_ctx-> in mv_process_hash_current() 356 is_last = req_ctx->last_chunk in mv_process_hash_current() 358 && (req_ctx->count <= MAX_HW_HASH_SIZE); in mv_process_hash_current() [all …]
|
D | talitos.c | 1510 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); in common_nonsnoop_hash_unmap() local 1523 talitos_sg_unmap(dev, edesc, req_ctx->psrc, NULL); in common_nonsnoop_hash_unmap() 1538 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); in ahash_done() local 1540 if (!req_ctx->last && req_ctx->to_hash_later) { in ahash_done() 1542 memcpy(req_ctx->buf, req_ctx->bufnext, req_ctx->to_hash_later); in ahash_done() 1543 req_ctx->nbuf = req_ctx->to_hash_later; in ahash_done() 1560 struct talitos_ahash_req_ctx *req_ctx = ahash_request_ctx(areq); in common_nonsnoop_hash() local 1569 if (!req_ctx->first || req_ctx->swinit) { in common_nonsnoop_hash() 1571 req_ctx->hw_context_size, in common_nonsnoop_hash() 1572 (char *)req_ctx->hw_context, 0, in common_nonsnoop_hash() [all …]
|
D | ixp4xx_crypto.c | 339 struct aead_ctx *req_ctx = aead_request_ctx(req); in finish_scattered_hmac() local 344 if (req_ctx->encrypt) { in finish_scattered_hmac() 345 scatterwalk_map_and_copy(req_ctx->hmac_virt, in finish_scattered_hmac() 348 dma_pool_free(buffer_pool, req_ctx->hmac_virt, crypt->icv_rev_aes); in finish_scattered_hmac() 365 struct aead_ctx *req_ctx = aead_request_ctx(req); in one_packet() local 367 free_buf_chain(dev, req_ctx->buffer, crypt->src_buf); in one_packet() 368 if (req_ctx->hmac_virt) { in one_packet() 376 struct ablk_ctx *req_ctx = ablkcipher_request_ctx(req); in one_packet() local 378 if (req_ctx->dst) { in one_packet() 379 free_buf_chain(dev, req_ctx->dst, crypt->dst_buf); in one_packet() [all …]
|
/linux-4.1.27/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.1.27/arch/x86/crypto/sha-mb/ |
D | sha1_mb.c | 431 struct mcryptd_hash_request_ctx *req_ctx; in sha_complete_job() local 450 req_ctx = cast_hash_to_mcryptd_ctx(sha_ctx); in sha_complete_job() 451 ret = sha_finish_walk(&req_ctx, cstate, false); in sha_complete_job() 452 if (req_ctx) { in sha_complete_job() 454 list_del(&req_ctx->waiter); in sha_complete_job() 457 req = cast_mcryptd_ctx_to_req(req_ctx); in sha_complete_job() 459 req_ctx->complete(&req->base, ret); in sha_complete_job() 462 req_ctx->complete(&req->base, ret); in sha_complete_job()
|