Home
last modified time | relevance | path

Searched refs:hpre_req (Results 1 – 1 of 1) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/crypto/hisilicon/hpre/
H A Dhpre_crypto.c122 static int hpre_add_req_to_ctx(struct hpre_asym_request *hpre_req) in hpre_add_req_to_ctx() argument
128 ctx = hpre_req->ctx; in hpre_add_req_to_ctx()
133 ctx->req_list[id] = hpre_req; in hpre_add_req_to_ctx()
134 hpre_req->req_id = id; in hpre_add_req_to_ctx()
138 ktime_get_ts64(&hpre_req->req_time); in hpre_add_req_to_ctx()
143 static void hpre_rm_req_from_ctx(struct hpre_asym_request *hpre_req) in hpre_rm_req_from_ctx() argument
145 struct hpre_ctx *ctx = hpre_req->ctx; in hpre_rm_req_from_ctx()
146 int id = hpre_req->req_id; in hpre_rm_req_from_ctx()
148 if (hpre_req->req_id >= 0) { in hpre_rm_req_from_ctx()
149 hpre_req->req_id = HPRE_INVLD_REQ_ID; in hpre_rm_req_from_ctx()
[all …]