Searched refs:sec_req (Results 1 – 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/sec/ |
D | sec_algs.c | 384 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 …]
|
D | sec_drv.h | 311 struct sec_request *sec_req; member
|
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/sec2/ |
D | sec.h | 42 struct sec_req { struct 70 int (*buf_map)(struct sec_ctx *ctx, struct sec_req *req); argument 71 void (*buf_unmap)(struct sec_ctx *ctx, struct sec_req *req); 72 void (*do_transfer)(struct sec_ctx *ctx, struct sec_req *req); 73 int (*bd_fill)(struct sec_ctx *ctx, struct sec_req *req); 74 int (*bd_send)(struct sec_ctx *ctx, struct sec_req *req); 75 void (*callback)(struct sec_ctx *ctx, struct sec_req *req, int err); 76 int (*process)(struct sec_ctx *ctx, struct sec_req *req); 104 struct sec_req *req_list[QM_Q_DEPTH];
|
D | sec_crypto.c | 70 static inline int sec_alloc_queue_id(struct sec_ctx *ctx, struct sec_req *req) in sec_alloc_queue_id() 80 static inline void sec_free_queue_id(struct sec_ctx *ctx, struct sec_req *req) in sec_free_queue_id() 88 static int sec_alloc_req_id(struct sec_req *req, struct sec_qp_ctx *qp_ctx) in sec_alloc_req_id() 107 static void sec_free_req_id(struct sec_req *req) in sec_free_req_id() 125 static int sec_aead_verify(struct sec_req *req) in sec_aead_verify() 152 struct sec_req *req; in sec_req_cb() 195 static int sec_bd_send(struct sec_ctx *ctx, struct sec_req *req) in sec_bd_send() 544 crypto_skcipher_set_reqsize(tfm, sizeof(struct sec_req)); in sec_skcipher_init() 686 static int sec_cipher_pbuf_map(struct sec_ctx *ctx, struct sec_req *req, in GEN_SEC_SETKEY_FUNC() 722 static void sec_cipher_pbuf_unmap(struct sec_ctx *ctx, struct sec_req *req, in sec_cipher_pbuf_unmap() [all …]
|