Lines Matching refs:sec_req
121 static inline u32 sec_alloc_queue_id(struct sec_ctx *ctx, struct sec_req *req) in sec_alloc_queue_id()
131 static inline void sec_free_queue_id(struct sec_ctx *ctx, struct sec_req *req) in sec_free_queue_id()
139 static int sec_alloc_req_id(struct sec_req *req, struct sec_qp_ctx *qp_ctx) in sec_alloc_req_id()
157 static void sec_free_req_id(struct sec_req *req) in sec_free_req_id()
203 static int sec_cb_status_check(struct sec_req *req, in sec_cb_status_check()
240 struct sec_req *req; in sec_req_cb()
277 static int sec_bd_send(struct sec_ctx *ctx, struct sec_req *req) in sec_bd_send()
496 qp_ctx->req_list = kcalloc(q_depth, sizeof(struct sec_req *), GFP_KERNEL); in sec_alloc_qp_ctx_resource()
714 crypto_skcipher_set_reqsize(tfm, sizeof(struct sec_req)); in sec_skcipher_init()
888 static int sec_cipher_pbuf_map(struct sec_ctx *ctx, struct sec_req *req, in GEN_SEC_SETKEY_FUNC()
926 static void sec_cipher_pbuf_unmap(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_pbuf_unmap()
966 static int sec_cipher_map(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_map()
1036 static void sec_cipher_unmap(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_unmap()
1052 static int sec_skcipher_sgl_map(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_sgl_map()
1059 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()
1470 static void set_aead_auth_iv(struct sec_ctx *ctx, struct sec_req *req) in set_aead_auth_iv()
1513 static void sec_aead_set_iv(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_set_iv()
1541 struct sec_req *req, struct sec_sqe *sec_sqe) in sec_auth_bd_fill_xcm()
1567 struct sec_req *req, struct sec_sqe3 *sqe3) in sec_auth_bd_fill_xcm_v3()
1592 struct sec_req *req, struct sec_sqe *sec_sqe) in sec_auth_bd_fill_ex()
1624 static int sec_aead_bd_fill(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_bd_fill()
1646 struct sec_req *req, struct sec_sqe3 *sqe3) in sec_auth_bd_fill_ex_v3()
1679 static int sec_aead_bd_fill_v3(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_bd_fill_v3()
1702 static void sec_aead_callback(struct sec_ctx *c, struct sec_req *req, int err) in sec_aead_callback()
1711 struct sec_req *backlog_req; in sec_aead_callback()
1746 static void sec_request_uninit(struct sec_ctx *ctx, struct sec_req *req) in sec_request_uninit()
1752 static int sec_request_init(struct sec_ctx *ctx, struct sec_req *req) in sec_request_init()
1770 static int sec_process(struct sec_ctx *ctx, struct sec_req *req) in sec_process()
1884 crypto_aead_set_reqsize(tfm, sizeof(struct sec_req)); in sec_aead_init()
2011 struct sec_req *sreq) in sec_skcipher_cryptlen_check()
2045 static int sec_skcipher_param_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_skcipher_param_check()
2111 struct sec_req *req = skcipher_request_ctx(sk_req); in sec_skcipher_crypto()
2232 static int sec_aead_spec_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_aead_spec_check()
2280 static int sec_aead_param_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_aead_param_check()
2357 struct sec_req *req = aead_request_ctx(a_req); in sec_aead_crypto()