Lines Matching refs:sec_ctx
70 static inline int sec_alloc_queue_id(struct sec_ctx *ctx, struct sec_req *req) in sec_alloc_queue_id()
80 static inline void sec_free_queue_id(struct sec_ctx *ctx, struct sec_req *req) in sec_free_queue_id()
151 struct sec_ctx *ctx; in sec_req_cb()
195 static int sec_bd_send(struct sec_ctx *ctx, struct sec_req *req) in sec_bd_send()
323 static int sec_alg_resource_alloc(struct sec_ctx *ctx, in sec_alg_resource_alloc()
357 static void sec_alg_resource_free(struct sec_ctx *ctx, in sec_alg_resource_free()
370 static int sec_create_qp_ctx(struct hisi_qm *qm, struct sec_ctx *ctx, in sec_create_qp_ctx()
426 static void sec_release_qp_ctx(struct sec_ctx *ctx, in sec_release_qp_ctx()
440 static int sec_ctx_base_init(struct sec_ctx *ctx) in sec_ctx_base_init()
485 static void sec_ctx_base_uninit(struct sec_ctx *ctx) in sec_ctx_base_uninit()
496 static int sec_cipher_init(struct sec_ctx *ctx) in sec_cipher_init()
508 static void sec_cipher_uninit(struct sec_ctx *ctx) in sec_cipher_uninit()
517 static int sec_auth_init(struct sec_ctx *ctx) in sec_auth_init()
529 static void sec_auth_uninit(struct sec_ctx *ctx) in sec_auth_uninit()
540 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_init()
568 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_uninit()
632 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_setkey()
686 static int sec_cipher_pbuf_map(struct sec_ctx *ctx, struct sec_req *req, in GEN_SEC_SETKEY_FUNC()
722 static void sec_cipher_pbuf_unmap(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_pbuf_unmap()
746 static int sec_cipher_map(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_map()
804 static void sec_cipher_unmap(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_unmap()
820 static int sec_skcipher_sgl_map(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_sgl_map()
827 static void sec_skcipher_sgl_unmap(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_sgl_unmap()
890 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_setkey()
937 static int sec_aead_sgl_map(struct sec_ctx *ctx, struct sec_req *req) in GEN_SEC_AEAD_SETKEY_FUNC()
944 static void sec_aead_sgl_unmap(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_sgl_unmap()
951 static int sec_request_transfer(struct sec_ctx *ctx, struct sec_req *req) in sec_request_transfer()
973 static void sec_request_untransfer(struct sec_ctx *ctx, struct sec_req *req) in sec_request_untransfer()
978 static void sec_skcipher_copy_iv(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_copy_iv()
986 static int sec_skcipher_bd_fill(struct sec_ctx *ctx, struct sec_req *req) in sec_skcipher_bd_fill()
1067 static struct sec_req *sec_back_req_clear(struct sec_ctx *ctx, in sec_back_req_clear()
1085 static void sec_skcipher_callback(struct sec_ctx *ctx, struct sec_req *req, in sec_skcipher_callback()
1114 static void sec_aead_copy_iv(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_copy_iv()
1155 static int sec_aead_bd_fill(struct sec_ctx *ctx, struct sec_req *req) in sec_aead_bd_fill()
1172 static void sec_aead_callback(struct sec_ctx *c, struct sec_req *req, int err) in sec_aead_callback()
1218 static void sec_request_uninit(struct sec_ctx *ctx, struct sec_req *req) in sec_request_uninit()
1224 static int sec_request_init(struct sec_ctx *ctx, struct sec_req *req) in sec_request_init()
1242 static int sec_process(struct sec_ctx *ctx, struct sec_req *req) in sec_process()
1308 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_ctx_init()
1322 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_init()
1358 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_exit()
1367 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_ctx_init()
1389 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_ctx_exit()
1410 static int sec_skcipher_param_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_skcipher_param_check()
1449 struct sec_ctx *ctx = crypto_skcipher_ctx(tfm); in sec_skcipher_crypto()
1486 .cra_ctxsize = sizeof(struct sec_ctx),\
1534 static int sec_aead_param_check(struct sec_ctx *ctx, struct sec_req *sreq) in sec_aead_param_check()
1576 struct sec_ctx *ctx = crypto_aead_ctx(tfm); in sec_aead_crypto()
1610 .cra_ctxsize = sizeof(struct sec_ctx),\