Searched refs:c_ctx (Results 1 – 7 of 7) sorted by relevance
/kernel/linux/linux-5.10/drivers/lightnvm/ |
D | pblk-write.c | 23 struct pblk_c_ctx *c_ctx) in pblk_end_w_bio() argument 30 for (i = 0; i < c_ctx->nr_valid; i++) { in pblk_end_w_bio() 32 int pos = c_ctx->sentry + i; in pblk_end_w_bio() 52 if (c_ctx->nr_padded) in pblk_end_w_bio() 53 pblk_bio_free_pages(pblk, rqd->bio, c_ctx->nr_valid, in pblk_end_w_bio() 54 c_ctx->nr_padded); in pblk_end_w_bio() 60 ret = pblk_rb_sync_advance(&pblk->rwb, c_ctx->nr_valid); in pblk_end_w_bio() 70 struct pblk_c_ctx *c_ctx) in pblk_end_queued_w_bio() argument 72 list_del(&c_ctx->list); in pblk_end_queued_w_bio() 73 return pblk_end_w_bio(pblk, rqd, c_ctx); in pblk_end_queued_w_bio() [all …]
|
D | pblk-rb.c | 556 struct pblk_c_ctx *c_ctx = nvm_rq_to_pdu(rqd); in pblk_rb_read_to_bio() local 572 c_ctx->sentry = pos; in pblk_rb_read_to_bio() 573 c_ctx->nr_valid = to_read; in pblk_rb_read_to_bio() 574 c_ctx->nr_padded = pad; in pblk_rb_read_to_bio()
|
D | pblk.h | 770 struct pblk_c_ctx *c_ctx); 929 static inline struct nvm_rq *nvm_rq_from_c_ctx(void *c_ctx) in nvm_rq_from_c_ctx() argument 931 return c_ctx - sizeof(struct nvm_rq); in nvm_rq_from_c_ctx()
|
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/sec2/ |
D | sec_crypto.c | 498 struct sec_cipher_ctx *c_ctx = &ctx->c_ctx; in sec_cipher_init() local 500 c_ctx->c_key = dma_alloc_coherent(SEC_CTX_DEV(ctx), SEC_MAX_KEY_SIZE, in sec_cipher_init() 501 &c_ctx->c_key_dma, GFP_KERNEL); in sec_cipher_init() 502 if (!c_ctx->c_key) in sec_cipher_init() 510 struct sec_cipher_ctx *c_ctx = &ctx->c_ctx; in sec_cipher_uninit() local 512 memzero_explicit(c_ctx->c_key, SEC_MAX_KEY_SIZE); in sec_cipher_uninit() 514 c_ctx->c_key, c_ctx->c_key_dma); in sec_cipher_uninit() 545 ctx->c_ctx.ivsize = crypto_skcipher_ivsize(tfm); in sec_skcipher_init() 546 if (ctx->c_ctx.ivsize > SEC_IV_SIZE) { in sec_skcipher_init() 574 static int sec_skcipher_3des_setkey(struct sec_cipher_ctx *c_ctx, in sec_skcipher_3des_setkey() argument [all …]
|
D | sec.h | 141 struct sec_cipher_ctx c_ctx; member
|
/kernel/linux/linux-5.10/drivers/crypto/chelsio/ |
D | chcr_algo.c | 808 struct chcr_context *ctx = c_ctx(tfm); in create_cipher_wr() 889 create_wreq(c_ctx(tfm), chcr_req, &(wrparam->req->base), reqctx->imm, 0, in create_cipher_wr() 924 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher)); in chcr_cipher_fallback_setkey() 937 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher)); in chcr_aes_cbc_setkey() 968 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher)); in chcr_aes_ctr_setkey() 998 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher)); in chcr_aes_rfc3686_setkey() 1065 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(tfm)); in chcr_update_tweak() 1169 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(tfm)); in chcr_handle_cipher_resp() 1170 struct uld_ctx *u_ctx = ULD_CTX(c_ctx(tfm)); in chcr_handle_cipher_resp() 1171 struct chcr_dev *dev = c_ctx(tfm)->dev; in chcr_handle_cipher_resp() [all …]
|
D | chcr_crypto.h | 163 static inline struct chcr_context *c_ctx(struct crypto_skcipher *tfm) in c_ctx() function
|