Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/crypto/hisilicon/sec/
Dsec_algs.c384 static int sec_send_request(struct sec_request *sec_req, struct sec_queue *queue) in sec_send_request() argument
389 mutex_lock(&sec_req->lock); in sec_send_request()
390 list_for_each_entry_safe(el, temp, &sec_req->elements, head) { in sec_send_request()
404 ret = sec_queue_send(queue, &el->req, sec_req); in sec_send_request()
416 mutex_unlock(&sec_req->lock); in sec_send_request()
427 struct sec_request *sec_req = skcipher_request_ctx(skreq); in sec_skcipher_alg_callback() local
430 struct sec_alg_tfm_ctx *ctx = sec_req->tfm_ctx; in sec_skcipher_alg_callback()
436 sec_req_el = list_first_entry(&sec_req->elements, struct sec_request_el, in sec_skcipher_alg_callback()
444 sec_req->err = -EINVAL; in sec_skcipher_alg_callback()
495 nextrequest->sec_req); in sec_skcipher_alg_callback()
[all …]
Dsec_drv.h311 struct sec_request *sec_req; member
/linux-5.19.10/drivers/crypto/hisilicon/sec2/
Dsec.h42 struct sec_req { struct
78 int (*buf_map)(struct sec_ctx *ctx, struct sec_req *req); argument
79 void (*buf_unmap)(struct sec_ctx *ctx, struct sec_req *req);
80 void (*do_transfer)(struct sec_ctx *ctx, struct sec_req *req);
81 int (*bd_fill)(struct sec_ctx *ctx, struct sec_req *req);
82 int (*bd_send)(struct sec_ctx *ctx, struct sec_req *req);
83 void (*callback)(struct sec_ctx *ctx, struct sec_req *req, int err);
84 int (*process)(struct sec_ctx *ctx, struct sec_req *req);
118 struct sec_req *req_list[QM_Q_DEPTH];
Dsec_crypto.c108 static inline int sec_alloc_queue_id(struct sec_ctx *ctx, struct sec_req *req) in sec_alloc_queue_id()
118 static inline void sec_free_queue_id(struct sec_ctx *ctx, struct sec_req *req) in sec_free_queue_id()
126 static int sec_alloc_req_id(struct sec_req *req, struct sec_qp_ctx *qp_ctx) in sec_alloc_req_id()
146 static void sec_free_req_id(struct sec_req *req) in sec_free_req_id()
192 static int sec_cb_status_check(struct sec_req *req, in sec_cb_status_check()
229 struct sec_req *req; in sec_req_cb()
266 static int sec_bd_send(struct sec_ctx *ctx, struct sec_req *req) in sec_bd_send()
668 crypto_skcipher_set_reqsize(tfm, sizeof(struct sec_req)); in sec_skcipher_init()
847 static int sec_cipher_pbuf_map(struct sec_ctx *ctx, struct sec_req *req, in GEN_SEC_SETKEY_FUNC()
885 static void sec_cipher_pbuf_unmap(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_pbuf_unmap()
[all …]