Lines Matching defs: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() local
236 struct sec_ctx *ctx; in sec_req_cb() local
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()
487 static int sec_alloc_qp_ctx_resource(struct hisi_qm *qm, struct sec_ctx *ctx, in sec_alloc_qp_ctx_resource()
532 static void sec_free_qp_ctx_resource(struct sec_ctx *ctx, struct sec_qp_ctx *qp_ctx) in sec_free_qp_ctx_resource()
543 static int sec_create_qp_ctx(struct hisi_qm *qm, struct sec_ctx *ctx, in sec_create_qp_ctx()
580 static void sec_release_qp_ctx(struct sec_ctx *ctx, in sec_release_qp_ctx()
588 static int sec_ctx_base_init(struct sec_ctx *ctx) in sec_ctx_base_init()
632 static void sec_ctx_base_uninit(struct sec_ctx *ctx) in sec_ctx_base_uninit()
643 static int sec_cipher_init(struct sec_ctx *ctx) in sec_cipher_init()
655 static void sec_cipher_uninit(struct sec_ctx *ctx) in sec_cipher_uninit()
664 static int sec_auth_init(struct sec_ctx *ctx) in sec_auth_init()
676 static void sec_auth_uninit(struct sec_ctx *ctx) in sec_auth_uninit()
688 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_fbtfm_init() local
709 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_init() local
743 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_uninit() local
756 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_3des_setkey() local
827 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_setkey() local
930 static void sec_cipher_pbuf_unmap(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_pbuf_unmap()
970 static int sec_cipher_map(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_map()
1039 static void sec_cipher_unmap(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_unmap()
1055 static int sec_skcipher_sgl_map(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_sgl_map()
1062 static void sec_skcipher_sgl_unmap(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_sgl_unmap()
1091 static int sec_aead_auth_set_key(struct sec_auth_ctx *ctx, in sec_aead_auth_set_key()
1123 struct sec_ctx *ctx = crypto_tfm_ctx(tfm); in sec_aead_setauthsize() local
1148 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_setkey() local
1235 static void sec_aead_sgl_unmap(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_sgl_unmap()
1242 static int sec_request_transfer(struct sec_ctx *ctx, struct sec_req *req) in sec_request_transfer()
1263 static void sec_request_untransfer(struct sec_ctx *ctx, struct sec_req *req) in sec_request_untransfer()
1268 static void sec_skcipher_copy_iv(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_copy_iv()
1276 static int sec_skcipher_bd_fill(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_bd_fill()
1327 static int sec_skcipher_bd_fill_v3(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_bd_fill_v3()
1425 static struct sec_req *sec_back_req_clear(struct sec_ctx *ctx, in sec_back_req_clear()
1443 static void sec_skcipher_callback(struct sec_ctx *ctx, struct sec_req *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()
1541 static void sec_auth_bd_fill_xcm(struct sec_auth_ctx *ctx, int dir, in sec_auth_bd_fill_xcm()
1567 static void sec_auth_bd_fill_xcm_v3(struct sec_auth_ctx *ctx, int dir, in sec_auth_bd_fill_xcm_v3()
1592 static void sec_auth_bd_fill_ex(struct sec_auth_ctx *ctx, int dir, 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()
1646 static void sec_auth_bd_fill_ex_v3(struct sec_auth_ctx *ctx, int dir, 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()
1747 static void sec_request_uninit(struct sec_ctx *ctx, struct sec_req *req) in sec_request_uninit()
1753 static int sec_request_init(struct sec_ctx *ctx, struct sec_req *req) in sec_request_init()
1771 static int sec_process(struct sec_ctx *ctx, struct sec_req *req) in sec_process()
1857 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_ctx_init() local
1882 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_init() local
1924 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_exit() local
1933 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_ctx_init() local
1955 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_ctx_exit() local
1964 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_xcm_ctx_init() local
1990 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_xcm_ctx_exit() local
2011 static int sec_skcipher_cryptlen_check(struct sec_ctx *ctx, in sec_skcipher_cryptlen_check()
2048 static int sec_skcipher_param_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_skcipher_param_check()
2081 static int sec_skcipher_soft_crypto(struct sec_ctx *ctx, in sec_skcipher_soft_crypto()
2115 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_crypto() local
2260 static int sec_aead_spec_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_aead_spec_check()
2308 static int sec_aead_param_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_aead_param_check()
2347 static int sec_aead_soft_crypto(struct sec_ctx *ctx, in sec_aead_soft_crypto()
2386 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_crypto() local