Lines Matching refs:hpre_ctx

20 struct hpre_ctx;
63 typedef void (*hpre_cb)(struct hpre_ctx *ctx, void *sqe);
117 struct hpre_ctx { struct
140 struct hpre_ctx *ctx; argument
163 static int hpre_alloc_req_id(struct hpre_ctx *ctx) in hpre_alloc_req_id()
175 static void hpre_free_req_id(struct hpre_ctx *ctx, int req_id) in hpre_free_req_id()
186 struct hpre_ctx *ctx; in hpre_add_req_to_ctx()
207 struct hpre_ctx *ctx = hpre_req->ctx; in hpre_rm_req_from_ctx()
265 struct hpre_ctx *ctx = hpre_req->ctx; in hpre_prepare_dma_buf()
293 struct hpre_ctx *ctx = hpre_req->ctx; in hpre_hw_data_init()
315 static void hpre_hw_data_clr_all(struct hpre_ctx *ctx, in hpre_hw_data_clr_all()
349 static int hpre_alg_res_post_hf(struct hpre_ctx *ctx, struct hpre_sqe *sqe, in hpre_alg_res_post_hf()
382 static int hpre_ctx_set(struct hpre_ctx *ctx, struct hisi_qp *qp, int qlen) in hpre_ctx_set()
405 static void hpre_ctx_clear(struct hpre_ctx *ctx, bool is_clear_all) in hpre_ctx_clear()
435 static void hpre_dh_cb(struct hpre_ctx *ctx, void *resp) in hpre_dh_cb()
456 static void hpre_rsa_cb(struct hpre_ctx *ctx, void *resp) in hpre_rsa_cb()
479 struct hpre_ctx *ctx = qp->qp_ctx; in hpre_alg_cb()
498 static int hpre_ctx_init(struct hpre_ctx *ctx, u8 type) in hpre_ctx_init()
517 static int hpre_msg_request_set(struct hpre_ctx *ctx, void *req, bool is_rsa) in hpre_msg_request_set()
570 static int hpre_send(struct hpre_ctx *ctx, struct hpre_sqe *msg) in hpre_send()
598 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_dh_compute_value()
658 static int hpre_dh_set_params(struct hpre_ctx *ctx, struct dh *params) in hpre_dh_set_params()
697 static void hpre_dh_clear_ctx(struct hpre_ctx *ctx, bool is_clear_all) in hpre_dh_clear_ctx()
723 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_dh_set_secret()
749 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_dh_max_size()
756 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_dh_init_tfm()
765 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_dh_exit_tfm()
801 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_enc()
849 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_dec()
901 static int hpre_rsa_set_n(struct hpre_ctx *ctx, const char *value, in hpre_rsa_set_n()
939 static int hpre_rsa_set_e(struct hpre_ctx *ctx, const char *value, in hpre_rsa_set_e()
954 static int hpre_rsa_set_d(struct hpre_ctx *ctx, const char *value, in hpre_rsa_set_d()
984 static int hpre_rsa_setkey_crt(struct hpre_ctx *ctx, struct rsa_key *rsa_key) in hpre_rsa_setkey_crt()
1042 static void hpre_rsa_clear_ctx(struct hpre_ctx *ctx, bool is_clear_all) in hpre_rsa_clear_ctx()
1089 static int hpre_rsa_setkey(struct hpre_ctx *ctx, const void *key, in hpre_rsa_setkey()
1139 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_setpubkey()
1152 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_setprivkey()
1164 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_max_size()
1176 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_init_tfm()
1197 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_exit_tfm()
1213 static void hpre_ecc_clear_ctx(struct hpre_ctx *ctx, bool is_clear_all, in hpre_ecc_clear_ctx()
1275 static int hpre_ecdh_fill_curve(struct hpre_ctx *ctx, struct ecdh *params, in hpre_ecdh_fill_curve()
1327 static int hpre_ecdh_set_param(struct hpre_ctx *ctx, struct ecdh *params) in hpre_ecdh_set_param()
1376 static int ecdh_gen_privkey(struct hpre_ctx *ctx, struct ecdh *params) in ecdh_gen_privkey()
1399 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_set_secret()
1446 static void hpre_ecdh_hw_data_clr_all(struct hpre_ctx *ctx, in hpre_ecdh_hw_data_clr_all()
1472 static void hpre_ecdh_cb(struct hpre_ctx *ctx, void *resp) in hpre_ecdh_cb()
1500 static int hpre_ecdh_msg_request_set(struct hpre_ctx *ctx, in hpre_ecdh_msg_request_set()
1539 struct hpre_ctx *ctx = hpre_req->ctx; in hpre_ecdh_src_data_init()
1569 struct hpre_ctx *ctx = hpre_req->ctx; in hpre_ecdh_dst_data_init()
1592 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_compute_value()
1634 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_max_size()
1642 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_nist_p192_init_tfm()
1653 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_nist_p256_init_tfm()
1664 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_nist_p384_init_tfm()
1675 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_exit_tfm()
1680 static void hpre_curve25519_fill_curve(struct hpre_ctx *ctx, const void *buf, in hpre_curve25519_fill_curve()
1711 static int hpre_curve25519_set_param(struct hpre_ctx *ctx, const void *buf, in hpre_curve25519_set_param()
1738 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_curve25519_set_secret()
1762 static void hpre_curve25519_hw_data_clr_all(struct hpre_ctx *ctx, in hpre_curve25519_hw_data_clr_all()
1788 static void hpre_curve25519_cb(struct hpre_ctx *ctx, void *resp) in hpre_curve25519_cb()
1812 static int hpre_curve25519_msg_request_set(struct hpre_ctx *ctx, in hpre_curve25519_msg_request_set()
1862 struct hpre_ctx *ctx = hpre_req->ctx; in hpre_curve25519_src_init()
1921 struct hpre_ctx *ctx = hpre_req->ctx; in hpre_curve25519_dst_init()
1944 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_curve25519_compute_value()
1987 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_curve25519_max_size()
1994 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_curve25519_init_tfm()
2003 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_curve25519_exit_tfm()
2019 .cra_ctxsize = sizeof(struct hpre_ctx),
2035 .cra_ctxsize = sizeof(struct hpre_ctx),
2052 .cra_ctxsize = sizeof(struct hpre_ctx),
2066 .cra_ctxsize = sizeof(struct hpre_ctx),
2080 .cra_ctxsize = sizeof(struct hpre_ctx),
2097 .cra_ctxsize = sizeof(struct hpre_ctx),