Searched refs:sec_req (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/drivers/crypto/hisilicon/sec/ |
H A 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 …]
|
H A D | sec_drv.h | 311 struct sec_request *sec_req; member
|
/openbmc/linux/drivers/crypto/hisilicon/sec2/ |
H A D | sec.h | 43 struct sec_req { struct 79 int (*buf_map)(struct sec_ctx *ctx, struct sec_req *req); argument 80 void (*buf_unmap)(struct sec_ctx *ctx, struct sec_req *req); 81 void (*do_transfer)(struct sec_ctx *ctx, struct sec_req *req); 82 int (*bd_fill)(struct sec_ctx *ctx, struct sec_req *req); 83 int (*bd_send)(struct sec_ctx *ctx, struct sec_req *req); 84 void (*callback)(struct sec_ctx *ctx, struct sec_req *req, int err); 85 int (*process)(struct sec_ctx *ctx, struct sec_req *req); 119 struct sec_req **req_list;
|
H A D | sec_crypto.c | 118 static inline int sec_alloc_queue_id(struct sec_ctx *ctx, struct sec_req *req) in sec_alloc_queue_id() 128 static inline void sec_free_queue_id(struct sec_ctx *ctx, struct sec_req *req) in sec_free_queue_id() 136 static int sec_alloc_req_id(struct sec_req *req, struct sec_qp_ctx *qp_ctx) in sec_alloc_req_id() 154 static void sec_free_req_id(struct sec_req *req) in sec_free_req_id() 200 static int sec_cb_status_check(struct sec_req *req, in sec_cb_status_check() 237 struct sec_req *req; in sec_req_cb() 274 static int sec_bd_send(struct sec_ctx *ctx, struct sec_req *req) in sec_bd_send() 494 qp_ctx->req_list = kcalloc(q_depth, sizeof(struct sec_req *), GFP_KERNEL); in sec_alloc_qp_ctx_resource() 713 crypto_skcipher_set_reqsize(tfm, sizeof(struct sec_req)); in sec_skcipher_init() 892 static int sec_cipher_pbuf_map(struct sec_ctx *ctx, struct sec_req *req, in GEN_SEC_SETKEY_FUNC() [all …]
|