Lines Matching defs:ctx

69 static inline int sec_alloc_queue_id(struct sec_ctx *ctx, struct sec_req *req)  in sec_alloc_queue_id()
79 static inline void sec_free_queue_id(struct sec_ctx *ctx, struct sec_req *req) in sec_free_queue_id()
150 struct sec_ctx *ctx; in sec_req_cb() local
194 static int sec_bd_send(struct sec_ctx *ctx, struct sec_req *req) in sec_bd_send()
322 static int sec_alg_resource_alloc(struct sec_ctx *ctx, in sec_alg_resource_alloc()
356 static void sec_alg_resource_free(struct sec_ctx *ctx, in sec_alg_resource_free()
369 static int sec_create_qp_ctx(struct hisi_qm *qm, struct sec_ctx *ctx, in sec_create_qp_ctx()
425 static void sec_release_qp_ctx(struct sec_ctx *ctx, in sec_release_qp_ctx()
439 static int sec_ctx_base_init(struct sec_ctx *ctx) in sec_ctx_base_init()
483 static void sec_ctx_base_uninit(struct sec_ctx *ctx) in sec_ctx_base_uninit()
494 static int sec_cipher_init(struct sec_ctx *ctx) in sec_cipher_init()
506 static void sec_cipher_uninit(struct sec_ctx *ctx) in sec_cipher_uninit()
515 static int sec_auth_init(struct sec_ctx *ctx) in sec_auth_init()
527 static void sec_auth_uninit(struct sec_ctx *ctx) in sec_auth_uninit()
538 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_init() local
566 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_uninit() local
630 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_setkey() local
720 static void sec_cipher_pbuf_unmap(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_pbuf_unmap()
743 static int sec_cipher_map(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_map()
801 static void sec_cipher_unmap(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_unmap()
817 static int sec_skcipher_sgl_map(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_sgl_map()
824 static void sec_skcipher_sgl_unmap(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_sgl_unmap()
853 static int sec_aead_auth_set_key(struct sec_auth_ctx *ctx, in sec_aead_auth_set_key()
887 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_setkey() local
942 static void sec_aead_sgl_unmap(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_sgl_unmap()
949 static int sec_request_transfer(struct sec_ctx *ctx, struct sec_req *req) in sec_request_transfer()
971 static void sec_request_untransfer(struct sec_ctx *ctx, struct sec_req *req) in sec_request_untransfer()
976 static void sec_skcipher_copy_iv(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_copy_iv()
984 static int sec_skcipher_bd_fill(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_bd_fill()
1065 static struct sec_req *sec_back_req_clear(struct sec_ctx *ctx, in sec_back_req_clear()
1083 static void sec_skcipher_callback(struct sec_ctx *ctx, struct sec_req *req, in sec_skcipher_callback()
1112 static void sec_aead_copy_iv(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_copy_iv()
1120 static void sec_auth_bd_fill_ex(struct sec_auth_ctx *ctx, int dir, in sec_auth_bd_fill_ex()
1153 static int sec_aead_bd_fill(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_bd_fill()
1216 static void sec_request_uninit(struct sec_ctx *ctx, struct sec_req *req) in sec_request_uninit()
1222 static int sec_request_init(struct sec_ctx *ctx, struct sec_req *req) in sec_request_init()
1240 static int sec_process(struct sec_ctx *ctx, struct sec_req *req) in sec_process()
1306 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_ctx_init() local
1320 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_init() local
1356 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_exit() local
1365 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_ctx_init() local
1387 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_ctx_exit() local
1408 static int sec_skcipher_param_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_skcipher_param_check()
1447 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_crypto() local
1532 static int sec_aead_param_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_aead_param_check()
1575 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_crypto() local