Lines Matching refs:req

34 	struct skcipher_givcrypt_request *req)  in skcipher_givcrypt_reqtfm()  argument
36 return crypto_ablkcipher_reqtfm(&req->creq); in skcipher_givcrypt_reqtfm()
40 struct skcipher_givcrypt_request *req) in crypto_skcipher_givencrypt() argument
43 crypto_ablkcipher_crt(skcipher_givcrypt_reqtfm(req)); in crypto_skcipher_givencrypt()
44 return crt->givencrypt(req); in crypto_skcipher_givencrypt()
48 struct skcipher_givcrypt_request *req) in crypto_skcipher_givdecrypt() argument
51 crypto_ablkcipher_crt(skcipher_givcrypt_reqtfm(req)); in crypto_skcipher_givdecrypt()
52 return crt->givdecrypt(req); in crypto_skcipher_givdecrypt()
56 struct skcipher_givcrypt_request *req, struct crypto_ablkcipher *tfm) in skcipher_givcrypt_set_tfm() argument
58 req->creq.base.tfm = crypto_ablkcipher_tfm(tfm); in skcipher_givcrypt_set_tfm()
62 struct crypto_async_request *req) in skcipher_givcrypt_cast() argument
64 return container_of(ablkcipher_request_cast(req), in skcipher_givcrypt_cast()
71 struct skcipher_givcrypt_request *req; in skcipher_givcrypt_alloc() local
73 req = kmalloc(sizeof(struct skcipher_givcrypt_request) + in skcipher_givcrypt_alloc()
76 if (likely(req)) in skcipher_givcrypt_alloc()
77 skcipher_givcrypt_set_tfm(req, tfm); in skcipher_givcrypt_alloc()
79 return req; in skcipher_givcrypt_alloc()
82 static inline void skcipher_givcrypt_free(struct skcipher_givcrypt_request *req) in skcipher_givcrypt_free() argument
84 kfree(req); in skcipher_givcrypt_free()
88 struct skcipher_givcrypt_request *req, u32 flags, in skcipher_givcrypt_set_callback() argument
91 ablkcipher_request_set_callback(&req->creq, flags, compl, data); in skcipher_givcrypt_set_callback()
95 struct skcipher_givcrypt_request *req, in skcipher_givcrypt_set_crypt() argument
99 ablkcipher_request_set_crypt(&req->creq, src, dst, nbytes, iv); in skcipher_givcrypt_set_crypt()
103 struct skcipher_givcrypt_request *req, u8 *giv, u64 seq) in skcipher_givcrypt_set_giv() argument
105 req->giv = giv; in skcipher_givcrypt_set_giv()
106 req->seq = seq; in skcipher_givcrypt_set_giv()