Lines Matching refs:sec_req

118 static inline int sec_alloc_queue_id(struct sec_ctx *ctx, struct sec_req *req)  in sec_alloc_queue_id()
128 static inline void sec_free_queue_id(struct sec_ctx *ctx, struct sec_req *req) in sec_free_queue_id()
136 static int sec_alloc_req_id(struct sec_req *req, struct sec_qp_ctx *qp_ctx) in sec_alloc_req_id()
154 static void sec_free_req_id(struct sec_req *req) in sec_free_req_id()
200 static int sec_cb_status_check(struct sec_req *req, in sec_cb_status_check()
237 struct sec_req *req; in sec_req_cb()
274 static int sec_bd_send(struct sec_ctx *ctx, struct sec_req *req) in sec_bd_send()
493 qp_ctx->req_list = kcalloc(q_depth, sizeof(struct sec_req *), GFP_KERNEL); in sec_alloc_qp_ctx_resource()
712 crypto_skcipher_set_reqsize(tfm, sizeof(struct sec_req)); in sec_skcipher_init()
891 static int sec_cipher_pbuf_map(struct sec_ctx *ctx, struct sec_req *req, in GEN_SEC_SETKEY_FUNC()
929 static void sec_cipher_pbuf_unmap(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_pbuf_unmap()
969 static int sec_cipher_map(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_map()
1038 static void sec_cipher_unmap(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_unmap()
1054 static int sec_skcipher_sgl_map(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_sgl_map()
1061 static void sec_skcipher_sgl_unmap(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_sgl_unmap()
1227 static int sec_aead_sgl_map(struct sec_ctx *ctx, struct sec_req *req) in GEN_SEC_AEAD_SETKEY_FUNC()
1234 static void sec_aead_sgl_unmap(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_sgl_unmap()
1241 static int sec_request_transfer(struct sec_ctx *ctx, struct sec_req *req) in sec_request_transfer()
1262 static void sec_request_untransfer(struct sec_ctx *ctx, struct sec_req *req) in sec_request_untransfer()
1267 static void sec_skcipher_copy_iv(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_copy_iv()
1275 static int sec_skcipher_bd_fill(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_bd_fill()
1326 static int sec_skcipher_bd_fill_v3(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_bd_fill_v3()
1388 static void sec_update_iv(struct sec_req *req, enum sec_alg_type alg_type) in sec_update_iv()
1424 static struct sec_req *sec_back_req_clear(struct sec_ctx *ctx, in sec_back_req_clear()
1427 struct sec_req *backlog_req = NULL; in sec_back_req_clear()
1442 static void sec_skcipher_callback(struct sec_ctx *ctx, struct sec_req *req, in sec_skcipher_callback()
1448 struct sec_req *backlog_req; in sec_skcipher_callback()
1471 static void set_aead_auth_iv(struct sec_ctx *ctx, struct sec_req *req) in set_aead_auth_iv()
1514 static void sec_aead_set_iv(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_set_iv()
1542 struct sec_req *req, struct sec_sqe *sec_sqe) in sec_auth_bd_fill_xcm()
1568 struct sec_req *req, struct sec_sqe3 *sqe3) in sec_auth_bd_fill_xcm_v3()
1593 struct sec_req *req, struct sec_sqe *sec_sqe) in sec_auth_bd_fill_ex()
1625 static int sec_aead_bd_fill(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_bd_fill()
1647 struct sec_req *req, struct sec_sqe3 *sqe3) in sec_auth_bd_fill_ex_v3()
1680 static int sec_aead_bd_fill_v3(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_bd_fill_v3()
1703 static void sec_aead_callback(struct sec_ctx *c, struct sec_req *req, int err) in sec_aead_callback()
1712 struct sec_req *backlog_req; in sec_aead_callback()
1748 static void sec_request_uninit(struct sec_ctx *ctx, struct sec_req *req) in sec_request_uninit()
1754 static int sec_request_init(struct sec_ctx *ctx, struct sec_req *req) in sec_request_init()
1772 static int sec_process(struct sec_ctx *ctx, struct sec_req *req) in sec_process()
1886 crypto_aead_set_reqsize(tfm, sizeof(struct sec_req)); in sec_aead_init()
2013 struct sec_req *sreq) in sec_skcipher_cryptlen_ckeck()
2049 static int sec_skcipher_param_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_skcipher_param_check()
2115 struct sec_req *req = skcipher_request_ctx(sk_req); in sec_skcipher_crypto()
2261 static int sec_aead_spec_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_aead_spec_check()
2309 static int sec_aead_param_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_aead_param_check()
2386 struct sec_req *req = aead_request_ctx(a_req); in sec_aead_crypto()