Symbol: sec_req
drivers/crypto/hisilicon/sec/sec_algs.c
384
static int sec_send_request(struct sec_request *sec_req, struct sec_queue *queue)
drivers/crypto/hisilicon/sec/sec_algs.c
389
mutex_lock(&sec_req->lock);
drivers/crypto/hisilicon/sec/sec_algs.c
390
list_for_each_entry_safe(el, temp, &sec_req->elements, head) {
drivers/crypto/hisilicon/sec/sec_algs.c
404
ret = sec_queue_send(queue, &el->req, sec_req);
drivers/crypto/hisilicon/sec/sec_algs.c
416
mutex_unlock(&sec_req->lock);
drivers/crypto/hisilicon/sec/sec_algs.c
427
struct sec_request *sec_req = skcipher_request_ctx(skreq);
drivers/crypto/hisilicon/sec/sec_algs.c
430
struct sec_alg_tfm_ctx *ctx = sec_req->tfm_ctx;
drivers/crypto/hisilicon/sec/sec_algs.c
436
sec_req_el = list_first_entry(&sec_req->elements, struct sec_request_el,
drivers/crypto/hisilicon/sec/sec_algs.c
444
sec_req->err = -EINVAL;
drivers/crypto/hisilicon/sec/sec_algs.c
495
nextrequest->sec_req);
drivers/crypto/hisilicon/sec/sec_algs.c
514
mutex_lock(&sec_req->lock);
drivers/crypto/hisilicon/sec/sec_algs.c
516
mutex_unlock(&sec_req->lock);
drivers/crypto/hisilicon/sec/sec_algs.c
523
mutex_lock(&sec_req->lock);
drivers/crypto/hisilicon/sec/sec_algs.c
524
done = list_empty(&sec_req->elements);
drivers/crypto/hisilicon/sec/sec_algs.c
525
mutex_unlock(&sec_req->lock);
drivers/crypto/hisilicon/sec/sec_algs.c
528
dma_unmap_single(dev, sec_req->dma_iv,
drivers/crypto/hisilicon/sec/sec_algs.c
532
dma_unmap_sg(dev, skreq->src, sec_req->len_in,
drivers/crypto/hisilicon/sec/sec_algs.c
535
dma_unmap_sg(dev, skreq->dst, sec_req->len_out,
drivers/crypto/hisilicon/sec/sec_algs.c
537
skcipher_request_complete(skreq, sec_req->err);
drivers/crypto/hisilicon/sec/sec_algs.c
543
struct sec_request *sec_req = shadow;
drivers/crypto/hisilicon/sec/sec_algs.c
545
sec_req->cb(resp, sec_req->req_base);
drivers/crypto/hisilicon/sec/sec_algs.c
714
struct sec_request *sec_req = skcipher_request_ctx(skreq);
drivers/crypto/hisilicon/sec/sec_algs.c
726
mutex_init(&sec_req->lock);
drivers/crypto/hisilicon/sec/sec_algs.c
727
sec_req->req_base = &skreq->base;
drivers/crypto/hisilicon/sec/sec_algs.c
728
sec_req->err = 0;
drivers/crypto/hisilicon/sec/sec_algs.c
730
sec_req->len_in = sg_nents(skreq->src);
drivers/crypto/hisilicon/sec/sec_algs.c
736
sec_req->num_elements = steps;
drivers/crypto/hisilicon/sec/sec_algs.c
738
&splits_in_nents, sec_req->len_in,
drivers/crypto/hisilicon/sec/sec_algs.c
744
sec_req->len_out = sg_nents(skreq->dst);
drivers/crypto/hisilicon/sec/sec_algs.c
747
sec_req->len_out, info->dev, gfp);
drivers/crypto/hisilicon/sec/sec_algs.c
752
sec_req->tfm_ctx = ctx;
drivers/crypto/hisilicon/sec/sec_algs.c
753
sec_req->cb = sec_skcipher_alg_callback;
drivers/crypto/hisilicon/sec/sec_algs.c
754
INIT_LIST_HEAD(&sec_req->elements);
drivers/crypto/hisilicon/sec/sec_algs.c
762
sec_req->dma_iv = dma_map_single(info->dev, skreq->iv,
drivers/crypto/hisilicon/sec/sec_algs.c
765
if (dma_mapping_error(info->dev, sec_req->dma_iv)) {
drivers/crypto/hisilicon/sec/sec_algs.c
785
el->req.cipher_iv_addr_lo = lower_32_bits(sec_req->dma_iv);
drivers/crypto/hisilicon/sec/sec_algs.c
786
el->req.cipher_iv_addr_hi = upper_32_bits(sec_req->dma_iv);
drivers/crypto/hisilicon/sec/sec_algs.c
787
el->sec_req = sec_req;
drivers/crypto/hisilicon/sec/sec_algs.c
788
list_add_tail(&el->head, &sec_req->elements);
drivers/crypto/hisilicon/sec/sec_algs.c
816
list_add_tail(&sec_req->backlog_head, &ctx->backlog);
drivers/crypto/hisilicon/sec/sec_algs.c
824
ret = sec_send_request(sec_req, queue);
drivers/crypto/hisilicon/sec/sec_algs.c
840
list_for_each_entry_safe(el, temp, &sec_req->elements, head) {
drivers/crypto/hisilicon/sec/sec_algs.c
845
dma_unmap_single(info->dev, sec_req->dma_iv,
drivers/crypto/hisilicon/sec/sec_algs.c
851
splits_out_nents, sec_req->len_out,
drivers/crypto/hisilicon/sec/sec_algs.c
855
sec_req->len_in, info->dev);
drivers/crypto/hisilicon/sec/sec_drv.h
311
struct sec_request *sec_req;
drivers/crypto/hisilicon/sec2/sec.h
123
int (*buf_map)(struct sec_ctx *ctx, struct sec_req *req);
drivers/crypto/hisilicon/sec2/sec.h
124
void (*buf_unmap)(struct sec_ctx *ctx, struct sec_req *req);
drivers/crypto/hisilicon/sec2/sec.h
125
void (*do_transfer)(struct sec_ctx *ctx, struct sec_req *req);
drivers/crypto/hisilicon/sec2/sec.h
126
int (*bd_fill)(struct sec_ctx *ctx, struct sec_req *req);
drivers/crypto/hisilicon/sec2/sec.h
127
int (*bd_send)(struct sec_ctx *ctx, struct sec_req *req);
drivers/crypto/hisilicon/sec2/sec.h
128
void (*callback)(struct sec_ctx *ctx, struct sec_req *req, int err);
drivers/crypto/hisilicon/sec2/sec.h
129
int (*process)(struct sec_ctx *ctx, struct sec_req *req);
drivers/crypto/hisilicon/sec2/sec.h
161
struct sec_req **req_list;
drivers/crypto/hisilicon/sec2/sec_crypto.c
1013
static void sec_cipher_pbuf_unmap(struct sec_ctx *ctx, struct sec_req *req,
drivers/crypto/hisilicon/sec2/sec_crypto.c
1111
static int sec_cipher_map_sgl(struct device *dev, struct sec_req *req,
drivers/crypto/hisilicon/sec2/sec_crypto.c
1139
static int sec_cipher_map_inner(struct sec_ctx *ctx, struct sec_req *req,
drivers/crypto/hisilicon/sec2/sec_crypto.c
1211
static int sec_cipher_map(struct sec_ctx *ctx, struct sec_req *req,
drivers/crypto/hisilicon/sec2/sec_crypto.c
125
static int sec_alloc_req_id(struct sec_req *req, struct sec_qp_ctx *qp_ctx)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1277
static void sec_cipher_unmap(struct sec_ctx *ctx, struct sec_req *req,
drivers/crypto/hisilicon/sec2/sec_crypto.c
1316
static int sec_skcipher_sgl_map(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1323
static void sec_skcipher_sgl_unmap(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
135
static void sec_free_req_id(struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1472
static int sec_aead_sgl_map(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1479
static void sec_aead_sgl_unmap(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1486
static int sec_request_transfer(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1507
static void sec_request_untransfer(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1512
static void sec_skcipher_copy_iv(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1520
static int sec_skcipher_bd_fill(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1575
static int sec_skcipher_bd_fill_v3(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1642
static void sec_update_iv(struct sec_req *req, enum sec_alg_type alg_type)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1673
static void sec_skcipher_callback(struct sec_ctx *ctx, struct sec_req *req,
drivers/crypto/hisilicon/sec2/sec_crypto.c
1690
static void set_aead_auth_iv(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1734
static void sec_aead_set_iv(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
174
static int sec_cb_status_check(struct sec_req *req,
drivers/crypto/hisilicon/sec2/sec_crypto.c
1756
struct sec_req *req, struct sec_sqe *sec_sqe)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1784
struct sec_req *req, struct sec_sqe3 *sqe3)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1811
struct sec_req *req, struct sec_sqe *sec_sqe)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1843
static int sec_aead_bd_fill(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1865
struct sec_req *req, struct sec_sqe3 *sqe3)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1898
static int sec_aead_bd_fill_v3(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1921
static void sec_aead_callback(struct sec_ctx *c, struct sec_req *req, int err)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1948
static void sec_request_uninit(struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1954
static int sec_request_init(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
1969
static int sec_process(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
204
static int qp_send_message(struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
2091
crypto_aead_set_reqsize_dma(tfm, sizeof(struct sec_req));
drivers/crypto/hisilicon/sec2/sec_crypto.c
2228
static int sec_skcipher_cryptlen_check(struct sec_ctx *ctx, struct sec_req *sreq)
drivers/crypto/hisilicon/sec2/sec_crypto.c
2259
struct sec_req *sreq, bool *need_fallback)
drivers/crypto/hisilicon/sec2/sec_crypto.c
2328
struct sec_req *req = skcipher_request_ctx_dma(sk_req);
drivers/crypto/hisilicon/sec2/sec_crypto.c
239
struct sec_req *req, *tmp;
drivers/crypto/hisilicon/sec2/sec_crypto.c
2457
static int sec_aead_spec_check(struct sec_ctx *ctx, struct sec_req *sreq)
drivers/crypto/hisilicon/sec2/sec_crypto.c
2492
static int sec_aead_param_check(struct sec_ctx *ctx, struct sec_req *sreq, bool *need_fallback)
drivers/crypto/hisilicon/sec2/sec_crypto.c
2560
struct sec_req *req = aead_request_ctx_dma(a_req);
drivers/crypto/hisilicon/sec2/sec_crypto.c
264
struct sec_req *req, *tmp;
drivers/crypto/hisilicon/sec2/sec_crypto.c
292
struct sec_req *req = container_of(sqe, struct sec_req, sec_sqe);
drivers/crypto/hisilicon/sec2/sec_crypto.c
316
struct sec_req *req;
drivers/crypto/hisilicon/sec2/sec_crypto.c
336
static int sec_alg_send_message_retry(struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
348
static int sec_alg_try_enqueue(struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
361
static int sec_alg_send_message_maybacklog(struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
379
static int sec_bd_send(struct sec_ctx *ctx, struct sec_req *req)
drivers/crypto/hisilicon/sec2/sec_crypto.c
572
qp_ctx->req_list = kzalloc_objs(struct sec_req *, q_depth);
drivers/crypto/hisilicon/sec2/sec_crypto.c
787
crypto_skcipher_set_reqsize_dma(tfm, sizeof(struct sec_req));
drivers/crypto/hisilicon/sec2/sec_crypto.c
965
static int sec_cipher_pbuf_map(struct sec_ctx *ctx, struct sec_req *req,