Lines Matching refs:ciph_req
192 struct skcipher_request *ciph_req; in blk_crypto_alloc_cipher_req() local
197 ciph_req = skcipher_request_alloc(slotp->tfms[slotp->crypto_mode], in blk_crypto_alloc_cipher_req()
199 if (!ciph_req) in blk_crypto_alloc_cipher_req()
202 skcipher_request_set_callback(ciph_req, in blk_crypto_alloc_cipher_req()
206 *ciph_req_ret = ciph_req; in blk_crypto_alloc_cipher_req()
267 struct skcipher_request *ciph_req = NULL; in blk_crypto_fallback_encrypt_bio() local
302 if (!blk_crypto_alloc_cipher_req(slot, &ciph_req, &wait)) { in blk_crypto_fallback_encrypt_bio()
311 skcipher_request_set_crypt(ciph_req, &src, &dst, data_unit_size, in blk_crypto_fallback_encrypt_bio()
336 if (crypto_wait_req(crypto_skcipher_encrypt(ciph_req), in blk_crypto_fallback_encrypt_bio()
361 skcipher_request_free(ciph_req); in blk_crypto_fallback_encrypt_bio()
382 struct skcipher_request *ciph_req = NULL; in blk_crypto_fallback_decrypt_bio() local
404 if (!blk_crypto_alloc_cipher_req(slot, &ciph_req, &wait)) { in blk_crypto_fallback_decrypt_bio()
411 skcipher_request_set_crypt(ciph_req, &sg, &sg, data_unit_size, in blk_crypto_fallback_decrypt_bio()
423 if (crypto_wait_req(crypto_skcipher_decrypt(ciph_req), in blk_crypto_fallback_decrypt_bio()
434 skcipher_request_free(ciph_req); in blk_crypto_fallback_decrypt_bio()