Lines Matching refs:hpre_ctx

20 struct hpre_ctx;
60 typedef void (*hpre_cb)(struct hpre_ctx *ctx, void *sqe);
114 struct hpre_ctx { struct
137 struct hpre_ctx *ctx; argument
160 static int hpre_alloc_req_id(struct hpre_ctx *ctx) in hpre_alloc_req_id()
172 static void hpre_free_req_id(struct hpre_ctx *ctx, int req_id) in hpre_free_req_id()
183 struct hpre_ctx *ctx; in hpre_add_req_to_ctx()
204 struct hpre_ctx *ctx = hpre_req->ctx; in hpre_rm_req_from_ctx()
262 struct hpre_ctx *ctx = hpre_req->ctx; in hpre_prepare_dma_buf()
290 struct hpre_ctx *ctx = hpre_req->ctx; in hpre_hw_data_init()
312 static void hpre_hw_data_clr_all(struct hpre_ctx *ctx, in hpre_hw_data_clr_all()
346 static int hpre_alg_res_post_hf(struct hpre_ctx *ctx, struct hpre_sqe *sqe, in hpre_alg_res_post_hf()
379 static int hpre_ctx_set(struct hpre_ctx *ctx, struct hisi_qp *qp, int qlen) in hpre_ctx_set()
402 static void hpre_ctx_clear(struct hpre_ctx *ctx, bool is_clear_all) in hpre_ctx_clear()
432 static void hpre_dh_cb(struct hpre_ctx *ctx, void *resp) in hpre_dh_cb()
453 static void hpre_rsa_cb(struct hpre_ctx *ctx, void *resp) in hpre_rsa_cb()
476 struct hpre_ctx *ctx = qp->qp_ctx; in hpre_alg_cb()
495 static int hpre_ctx_init(struct hpre_ctx *ctx, u8 type) in hpre_ctx_init()
514 static int hpre_msg_request_set(struct hpre_ctx *ctx, void *req, bool is_rsa) in hpre_msg_request_set()
567 static int hpre_send(struct hpre_ctx *ctx, struct hpre_sqe *msg) in hpre_send()
593 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_dh_compute_value()
653 static int hpre_dh_set_params(struct hpre_ctx *ctx, struct dh *params) in hpre_dh_set_params()
692 static void hpre_dh_clear_ctx(struct hpre_ctx *ctx, bool is_clear_all) in hpre_dh_clear_ctx()
718 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_dh_set_secret()
744 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_dh_max_size()
751 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_dh_init_tfm()
760 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_dh_exit_tfm()
796 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_enc()
844 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_dec()
896 static int hpre_rsa_set_n(struct hpre_ctx *ctx, const char *value, in hpre_rsa_set_n()
934 static int hpre_rsa_set_e(struct hpre_ctx *ctx, const char *value, in hpre_rsa_set_e()
949 static int hpre_rsa_set_d(struct hpre_ctx *ctx, const char *value, in hpre_rsa_set_d()
979 static int hpre_rsa_setkey_crt(struct hpre_ctx *ctx, struct rsa_key *rsa_key) in hpre_rsa_setkey_crt()
1037 static void hpre_rsa_clear_ctx(struct hpre_ctx *ctx, bool is_clear_all) in hpre_rsa_clear_ctx()
1084 static int hpre_rsa_setkey(struct hpre_ctx *ctx, const void *key, in hpre_rsa_setkey()
1134 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_setpubkey()
1147 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_setprivkey()
1159 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_max_size()
1171 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_init_tfm()
1192 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_exit_tfm()
1208 static void hpre_ecc_clear_ctx(struct hpre_ctx *ctx, bool is_clear_all, in hpre_ecc_clear_ctx()
1270 static int hpre_ecdh_fill_curve(struct hpre_ctx *ctx, struct ecdh *params, in hpre_ecdh_fill_curve()
1322 static int hpre_ecdh_set_param(struct hpre_ctx *ctx, struct ecdh *params) in hpre_ecdh_set_param()
1371 static int ecdh_gen_privkey(struct hpre_ctx *ctx, struct ecdh *params) in ecdh_gen_privkey()
1394 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_set_secret()
1441 static void hpre_ecdh_hw_data_clr_all(struct hpre_ctx *ctx, in hpre_ecdh_hw_data_clr_all()
1467 static void hpre_ecdh_cb(struct hpre_ctx *ctx, void *resp) in hpre_ecdh_cb()
1495 static int hpre_ecdh_msg_request_set(struct hpre_ctx *ctx, in hpre_ecdh_msg_request_set()
1534 struct hpre_ctx *ctx = hpre_req->ctx; in hpre_ecdh_src_data_init()
1564 struct hpre_ctx *ctx = hpre_req->ctx; in hpre_ecdh_dst_data_init()
1587 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_compute_value()
1629 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_max_size()
1637 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_nist_p192_init_tfm()
1648 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_nist_p256_init_tfm()
1659 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_nist_p384_init_tfm()
1670 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_exit_tfm()
1675 static void hpre_curve25519_fill_curve(struct hpre_ctx *ctx, const void *buf, in hpre_curve25519_fill_curve()
1706 static int hpre_curve25519_set_param(struct hpre_ctx *ctx, const void *buf, in hpre_curve25519_set_param()
1733 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_curve25519_set_secret()
1757 static void hpre_curve25519_hw_data_clr_all(struct hpre_ctx *ctx, in hpre_curve25519_hw_data_clr_all()
1783 static void hpre_curve25519_cb(struct hpre_ctx *ctx, void *resp) in hpre_curve25519_cb()
1807 static int hpre_curve25519_msg_request_set(struct hpre_ctx *ctx, in hpre_curve25519_msg_request_set()
1857 struct hpre_ctx *ctx = hpre_req->ctx; in hpre_curve25519_src_init()
1916 struct hpre_ctx *ctx = hpre_req->ctx; in hpre_curve25519_dst_init()
1939 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_curve25519_compute_value()
1982 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_curve25519_max_size()
1989 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_curve25519_init_tfm()
1998 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_curve25519_exit_tfm()
2014 .cra_ctxsize = sizeof(struct hpre_ctx),
2030 .cra_ctxsize = sizeof(struct hpre_ctx),
2047 .cra_ctxsize = sizeof(struct hpre_ctx),
2061 .cra_ctxsize = sizeof(struct hpre_ctx),
2075 .cra_ctxsize = sizeof(struct hpre_ctx),
2092 .cra_ctxsize = sizeof(struct hpre_ctx),