Lines Matching refs:sec_ctx

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()
203 struct sec_ctx *ctx = req->ctx; in sec_cb_status_check()
236 struct sec_ctx *ctx; in sec_req_cb()
274 static int sec_bd_send(struct sec_ctx *ctx, struct sec_req *req) in sec_bd_send()
431 static int sec_alg_resource_alloc(struct sec_ctx *ctx, in sec_alg_resource_alloc()
472 static void sec_alg_resource_free(struct sec_ctx *ctx, in sec_alg_resource_free()
485 static int sec_alloc_qp_ctx_resource(struct hisi_qm *qm, struct sec_ctx *ctx, in sec_alloc_qp_ctx_resource()
530 static void sec_free_qp_ctx_resource(struct sec_ctx *ctx, struct sec_qp_ctx *qp_ctx) in sec_free_qp_ctx_resource()
541 static int sec_create_qp_ctx(struct hisi_qm *qm, struct sec_ctx *ctx, in sec_create_qp_ctx()
578 static void sec_release_qp_ctx(struct sec_ctx *ctx, in sec_release_qp_ctx()
586 static int sec_ctx_base_init(struct sec_ctx *ctx) in sec_ctx_base_init()
630 static void sec_ctx_base_uninit(struct sec_ctx *ctx) in sec_ctx_base_uninit()
641 static int sec_cipher_init(struct sec_ctx *ctx) in sec_cipher_init()
653 static void sec_cipher_uninit(struct sec_ctx *ctx) in sec_cipher_uninit()
662 static int sec_auth_init(struct sec_ctx *ctx) in sec_auth_init()
674 static void sec_auth_uninit(struct sec_ctx *ctx) in sec_auth_uninit()
686 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_fbtfm_init()
707 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_init()
741 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_uninit()
754 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_3des_setkey()
825 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_setkey()
890 static int sec_cipher_pbuf_map(struct sec_ctx *ctx, struct sec_req *req, in GEN_SEC_SETKEY_FUNC()
928 static void sec_cipher_pbuf_unmap(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_pbuf_unmap()
968 static int sec_cipher_map(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_map()
1037 static void sec_cipher_unmap(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_unmap()
1053 static int sec_skcipher_sgl_map(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_sgl_map()
1060 static void sec_skcipher_sgl_unmap(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_sgl_unmap()
1121 struct sec_ctx *ctx = crypto_tfm_ctx(tfm); in sec_aead_setauthsize()
1146 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_setkey()
1226 static int sec_aead_sgl_map(struct sec_ctx *ctx, struct sec_req *req) in GEN_SEC_AEAD_SETKEY_FUNC()
1233 static void sec_aead_sgl_unmap(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_sgl_unmap()
1240 static int sec_request_transfer(struct sec_ctx *ctx, struct sec_req *req) in sec_request_transfer()
1261 static void sec_request_untransfer(struct sec_ctx *ctx, struct sec_req *req) in sec_request_untransfer()
1266 static void sec_skcipher_copy_iv(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_copy_iv()
1274 static int sec_skcipher_bd_fill(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_bd_fill()
1325 static int sec_skcipher_bd_fill_v3(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_bd_fill_v3()
1423 static struct sec_req *sec_back_req_clear(struct sec_ctx *ctx, in sec_back_req_clear()
1441 static void sec_skcipher_callback(struct sec_ctx *ctx, struct sec_req *req, in sec_skcipher_callback()
1469 static void set_aead_auth_iv(struct sec_ctx *ctx, struct sec_req *req) in set_aead_auth_iv()
1512 static void sec_aead_set_iv(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_set_iv()
1623 static int sec_aead_bd_fill(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_bd_fill()
1678 static int sec_aead_bd_fill_v3(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_bd_fill_v3()
1701 static void sec_aead_callback(struct sec_ctx *c, struct sec_req *req, int err) in sec_aead_callback()
1745 static void sec_request_uninit(struct sec_ctx *ctx, struct sec_req *req) in sec_request_uninit()
1751 static int sec_request_init(struct sec_ctx *ctx, struct sec_req *req) in sec_request_init()
1769 static int sec_process(struct sec_ctx *ctx, struct sec_req *req) in sec_process()
1855 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_ctx_init()
1880 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_init()
1922 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_exit()
1931 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_ctx_init()
1953 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_ctx_exit()
1962 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_xcm_ctx_init()
1988 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_xcm_ctx_exit()
2009 static int sec_skcipher_cryptlen_check(struct sec_ctx *ctx, in sec_skcipher_cryptlen_check()
2046 static int sec_skcipher_param_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_skcipher_param_check()
2079 static int sec_skcipher_soft_crypto(struct sec_ctx *ctx, in sec_skcipher_soft_crypto()
2113 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_crypto()
2157 .cra_ctxsize = sizeof(struct sec_ctx),\
2258 static int sec_aead_spec_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_aead_spec_check()
2306 static int sec_aead_param_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_aead_param_check()
2345 static int sec_aead_soft_crypto(struct sec_ctx *ctx, in sec_aead_soft_crypto()
2384 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_crypto()
2422 .cra_ctxsize = sizeof(struct sec_ctx),\