/kernel/linux/linux-5.10/drivers/lightnvm/ |
H A D | pblk-write.c | 23 struct pblk_c_ctx *c_ctx) in pblk_end_w_bio() 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() 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() 22 pblk_end_w_bio(struct pblk *pblk, struct nvm_rq *rqd, struct pblk_c_ctx *c_ctx) pblk_end_w_bio() argument 68 pblk_end_queued_w_bio(struct pblk *pblk, struct nvm_rq *rqd, struct pblk_c_ctx *c_ctx) pblk_end_queued_w_bio() argument 76 pblk_complete_write(struct pblk *pblk, struct nvm_rq *rqd, struct pblk_c_ctx *c_ctx) pblk_complete_write() argument 186 pblk_queue_resubmit(struct pblk *pblk, struct pblk_c_ctx *c_ctx) pblk_queue_resubmit() argument 214 struct pblk_c_ctx *c_ctx = nvm_rq_to_pdu(rqd); pblk_submit_rec() local 255 struct pblk_c_ctx *c_ctx = nvm_rq_to_pdu(rqd); pblk_end_io_write() local 320 struct pblk_c_ctx *c_ctx = nvm_rq_to_pdu(rqd); pblk_setup_w_rq() local 547 struct pblk_c_ctx *c_ctx = nvm_rq_to_pdu(rqd); pblk_free_write_rqd() local [all...] |
H A 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()
|
H A 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-6.6/drivers/crypto/hisilicon/sec2/ |
H A D | sec_crypto.c | 643 struct sec_cipher_ctx *c_ctx = &ctx->c_ctx; in sec_cipher_init() local 645 c_ctx->c_key = dma_alloc_coherent(ctx->dev, SEC_MAX_KEY_SIZE, in sec_cipher_init() 646 &c_ctx->c_key_dma, GFP_KERNEL); in sec_cipher_init() 647 if (!c_ctx->c_key) in sec_cipher_init() 655 struct sec_cipher_ctx *c_ctx = &ctx->c_ctx; in sec_cipher_uninit() local 657 memzero_explicit(c_ctx->c_key, SEC_MAX_KEY_SIZE); in sec_cipher_uninit() 659 c_ctx->c_key, c_ctx in sec_cipher_uninit() 687 struct sec_cipher_ctx *c_ctx = &ctx->c_ctx; sec_skcipher_fbtfm_init() local 755 struct sec_cipher_ctx *c_ctx = &ctx->c_ctx; sec_skcipher_3des_setkey() local 776 sec_skcipher_aes_sm4_setkey(struct sec_cipher_ctx *c_ctx, const u32 keylen, const enum sec_cmode c_mode) sec_skcipher_aes_sm4_setkey() argument 826 struct sec_cipher_ctx *c_ctx = &ctx->c_ctx; sec_skcipher_setkey() local 1067 sec_aead_aes_set_key(struct sec_cipher_ctx *c_ctx, struct crypto_authenc_keys *keys) sec_aead_aes_set_key() argument 1147 struct sec_cipher_ctx *c_ctx = &ctx->c_ctx; sec_aead_setkey() local 1276 struct sec_cipher_ctx *c_ctx = &ctx->c_ctx; sec_skcipher_bd_fill() local 1328 struct sec_cipher_ctx *c_ctx = &ctx->c_ctx; sec_skcipher_bd_fill_v3() local 2082 struct sec_cipher_ctx *c_ctx = &ctx->c_ctx; sec_skcipher_soft_crypto() local [all...] |
H A D | sec.h | 155 struct sec_cipher_ctx c_ctx; member
|
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/sec2/ |
H A D | sec_crypto.c | 496 struct sec_cipher_ctx *c_ctx = &ctx->c_ctx; in sec_cipher_init() local 498 c_ctx->c_key = dma_alloc_coherent(ctx->dev, SEC_MAX_KEY_SIZE, in sec_cipher_init() 499 &c_ctx->c_key_dma, GFP_KERNEL); in sec_cipher_init() 500 if (!c_ctx->c_key) in sec_cipher_init() 508 struct sec_cipher_ctx *c_ctx = &ctx->c_ctx; in sec_cipher_uninit() local 510 memzero_explicit(c_ctx->c_key, SEC_MAX_KEY_SIZE); in sec_cipher_uninit() 512 c_ctx->c_key, c_ctx in sec_cipher_uninit() 572 sec_skcipher_3des_setkey(struct sec_cipher_ctx *c_ctx, const u32 keylen, const enum sec_cmode c_mode) sec_skcipher_3des_setkey() argument 590 sec_skcipher_aes_sm4_setkey(struct sec_cipher_ctx *c_ctx, const u32 keylen, const enum sec_cmode c_mode) sec_skcipher_aes_sm4_setkey() argument 631 struct sec_cipher_ctx *c_ctx = &ctx->c_ctx; sec_skcipher_setkey() local 831 sec_aead_aes_set_key(struct sec_cipher_ctx *c_ctx, struct crypto_authenc_keys *keys) sec_aead_aes_set_key() argument 888 struct sec_cipher_ctx *c_ctx = &ctx->c_ctx; sec_aead_setkey() local 986 struct sec_cipher_ctx *c_ctx = &ctx->c_ctx; sec_skcipher_bd_fill() local [all...] |
H A D | sec.h | 139 struct sec_cipher_ctx c_ctx; member
|
/kernel/linux/linux-5.10/drivers/crypto/chelsio/ |
H A 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(tf in chcr_handle_cipher_resp() [all...] |
H A D | chcr_crypto.h | 163 static inline struct chcr_context *c_ctx(struct crypto_skcipher *tfm) in c_ctx() function
|
/kernel/linux/linux-6.6/drivers/crypto/chelsio/ |
H A D | chcr_algo.c | 801 struct chcr_context *ctx = c_ctx(tfm); in create_cipher_wr() 882 create_wreq(c_ctx(tfm), chcr_req, &(wrparam->req->base), reqctx->imm, 0, in create_cipher_wr() 917 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher)); in chcr_cipher_fallback_setkey() 930 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher)); in chcr_aes_cbc_setkey() 961 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher)); in chcr_aes_ctr_setkey() 991 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(cipher)); in chcr_aes_rfc3686_setkey() 1058 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(tfm)); in chcr_update_tweak() 1162 struct ablk_ctx *ablkctx = ABLK_CTX(c_ctx(tfm)); in chcr_handle_cipher_resp() 1163 struct uld_ctx *u_ctx = ULD_CTX(c_ctx(tfm)); in chcr_handle_cipher_resp() 1164 struct chcr_dev *dev = c_ctx(tf in chcr_handle_cipher_resp() [all...] |
H A D | chcr_crypto.h | 163 static inline struct chcr_context *c_ctx(struct crypto_skcipher *tfm) in c_ctx() function
|