Lines Matching refs:sec_req
126 static int sec_alloc_req_id(struct sec_req *req, struct sec_qp_ctx *qp_ctx) in sec_alloc_req_id()
136 static void sec_free_req_id(struct sec_req *req) in sec_free_req_id()
179 static int sec_cb_status_check(struct sec_req *req, in sec_cb_status_check()
209 static int qp_send_message(struct sec_req *req) in qp_send_message()
244 struct sec_req *req, *tmp; in sec_alg_send_backlog_soft()
268 struct sec_req *req, *tmp; in sec_alg_send_backlog()
300 struct sec_req *req; in sec_req_cb()
337 static int sec_alg_send_message_retry(struct sec_req *req) in sec_alg_send_message_retry()
349 static int sec_alg_try_enqueue(struct sec_req *req) in sec_alg_try_enqueue()
360 static int sec_alg_send_message_maybacklog(struct sec_req *req) in sec_alg_send_message_maybacklog()
377 static int sec_bd_send(struct sec_ctx *ctx, struct sec_req *req) in sec_bd_send()
570 qp_ctx->req_list = kcalloc(q_depth, sizeof(struct sec_req *), GFP_KERNEL); in sec_alloc_qp_ctx_resource()
784 crypto_skcipher_set_reqsize_dma(tfm, sizeof(struct sec_req)); in sec_skcipher_init()
958 static int sec_cipher_pbuf_map(struct sec_ctx *ctx, struct sec_req *req, in GEN_SEC_SETKEY_FUNC()
1006 static void sec_cipher_pbuf_unmap(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_pbuf_unmap()
1104 static int sec_cipher_map_sgl(struct device *dev, struct sec_req *req, in sec_cipher_map_sgl()
1132 static int sec_cipher_map_inner(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_map_inner()
1204 static int sec_cipher_map(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_map()
1270 static void sec_cipher_unmap(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_unmap()
1309 static int sec_skcipher_sgl_map(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_sgl_map()
1316 static void sec_skcipher_sgl_unmap(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_sgl_unmap()
1462 static int sec_aead_sgl_map(struct sec_ctx *ctx, struct sec_req *req) in GEN_SEC_AEAD_SETKEY_FUNC()
1469 static void sec_aead_sgl_unmap(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_sgl_unmap()
1476 static int sec_request_transfer(struct sec_ctx *ctx, struct sec_req *req) in sec_request_transfer()
1497 static void sec_request_untransfer(struct sec_ctx *ctx, struct sec_req *req) in sec_request_untransfer()
1502 static void sec_skcipher_copy_iv(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_copy_iv()
1510 static int sec_skcipher_bd_fill(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_bd_fill()
1565 static int sec_skcipher_bd_fill_v3(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_bd_fill_v3()
1632 static void sec_update_iv(struct sec_req *req, enum sec_alg_type alg_type) in sec_update_iv()
1663 static void sec_skcipher_callback(struct sec_ctx *ctx, struct sec_req *req, in sec_skcipher_callback()
1680 static void set_aead_auth_iv(struct sec_ctx *ctx, struct sec_req *req) in set_aead_auth_iv()
1724 static void sec_aead_set_iv(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_set_iv()
1746 struct sec_req *req, struct sec_sqe *sec_sqe) in sec_auth_bd_fill_xcm()
1774 struct sec_req *req, struct sec_sqe3 *sqe3) in sec_auth_bd_fill_xcm_v3()
1801 struct sec_req *req, struct sec_sqe *sec_sqe) in sec_auth_bd_fill_ex()
1833 static int sec_aead_bd_fill(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_bd_fill()
1855 struct sec_req *req, struct sec_sqe3 *sqe3) in sec_auth_bd_fill_ex_v3()
1888 static int sec_aead_bd_fill_v3(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_bd_fill_v3()
1911 static void sec_aead_callback(struct sec_ctx *c, struct sec_req *req, int err) in sec_aead_callback()
1938 static void sec_request_uninit(struct sec_req *req) in sec_request_uninit()
1944 static int sec_request_init(struct sec_ctx *ctx, struct sec_req *req) in sec_request_init()
1962 static int sec_process(struct sec_ctx *ctx, struct sec_req *req) in sec_process()
2081 crypto_aead_set_reqsize_dma(tfm, sizeof(struct sec_req)); in sec_aead_init()
2218 static int sec_skcipher_cryptlen_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_skcipher_cryptlen_check()
2249 struct sec_req *sreq, bool *need_fallback) in sec_skcipher_param_check()
2318 struct sec_req *req = skcipher_request_ctx_dma(sk_req); in sec_skcipher_crypto()
2441 static int sec_aead_spec_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_aead_spec_check()
2476 static int sec_aead_param_check(struct sec_ctx *ctx, struct sec_req *sreq, bool *need_fallback) in sec_aead_param_check()
2544 struct sec_req *req = aead_request_ctx_dma(a_req); in sec_aead_crypto()