Lines Matching defs:ctx

137 	struct hpre_ctx *ctx;  member
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() local
204 struct hpre_ctx *ctx = hpre_req->ctx; in hpre_rm_req_from_ctx() local
262 struct hpre_ctx *ctx = hpre_req->ctx; in hpre_prepare_dma_buf() local
290 struct hpre_ctx *ctx = hpre_req->ctx; in hpre_hw_data_init() local
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() local
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() local
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() local
744 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_dh_max_size() local
751 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_dh_init_tfm() local
760 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_dh_exit_tfm() local
796 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_enc() local
844 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_dec() local
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() local
1147 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_setprivkey() local
1159 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_max_size() local
1171 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_init_tfm() local
1192 struct hpre_ctx *ctx = akcipher_tfm_ctx(tfm); in hpre_rsa_exit_tfm() local
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() local
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() local
1564 struct hpre_ctx *ctx = hpre_req->ctx; in hpre_ecdh_dst_data_init() local
1587 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_compute_value() local
1629 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_max_size() local
1637 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_nist_p192_init_tfm() local
1648 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_nist_p256_init_tfm() local
1659 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_nist_p384_init_tfm() local
1670 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_ecdh_exit_tfm() local
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() local
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() local
1916 struct hpre_ctx *ctx = hpre_req->ctx; in hpre_curve25519_dst_init() local
1939 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_curve25519_compute_value() local
1982 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_curve25519_max_size() local
1989 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_curve25519_init_tfm() local
1998 struct hpre_ctx *ctx = kpp_tfm_ctx(tfm); in hpre_curve25519_exit_tfm() local