Lines Matching refs:req_ctx
232 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req);
235 switch (req_ctx->op) {
248 if (req_ctx->decrypt) {
287 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req);
292 if (req_ctx->op != COP_AES_CBC)
301 struct mv_req_hash_ctx *req_ctx = ahash_request_ctx(req);
306 switch (req_ctx->op) {
318 req_ctx->
329 is_last = req_ctx->last_chunk
331 && (req_ctx->count <= MAX_HW_HASH_SIZE);
332 if (req_ctx->first_hash) {
338 req_ctx->first_hash = 0;
370 struct mv_req_hash_ctx *req_ctx = ahash_request_ctx(req);
379 if (unlikely(req_ctx->first_hash)) {
381 crypto_shash_update(&desc.shash, req_ctx->buffer,
382 req_ctx->extra_bytes);
386 rc = mv_hash_import_sha1_ctx(req_ctx, &desc.shash);
630 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req);
632 req_ctx->op = COP_AES_ECB;
633 req_ctx->decrypt = 0;
641 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req);
643 req_ctx->op = COP_AES_ECB;
644 req_ctx->decrypt = 1;
652 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req);
654 req_ctx->op = COP_AES_CBC;
655 req_ctx->decrypt = 0;
663 struct mv_req_ctx *req_ctx = ablkcipher_request_ctx(req);
665 req_ctx->op = COP_AES_CBC;
666 req_ctx->decrypt = 1;