/Linux-v5.4/drivers/misc/ |
D | fastrpc.c | 169 struct fastrpc_channel_ctx *cctx; member 196 struct fastrpc_channel_ctx *cctx; member 298 struct fastrpc_channel_ctx *cctx; in fastrpc_channel_ctx_free() local 300 cctx = container_of(ref, struct fastrpc_channel_ctx, refcount); in fastrpc_channel_ctx_free() 302 kfree(cctx); in fastrpc_channel_ctx_free() 305 static void fastrpc_channel_ctx_get(struct fastrpc_channel_ctx *cctx) in fastrpc_channel_ctx_get() argument 307 kref_get(&cctx->refcount); in fastrpc_channel_ctx_get() 310 static void fastrpc_channel_ctx_put(struct fastrpc_channel_ctx *cctx) in fastrpc_channel_ctx_put() argument 312 kref_put(&cctx->refcount, fastrpc_channel_ctx_free); in fastrpc_channel_ctx_put() 318 struct fastrpc_channel_ctx *cctx; in fastrpc_context_free() local [all …]
|
/Linux-v5.4/lib/zstd/ |
D | compress.c | 111 ZSTD_CCtx *cctx; in ZSTD_createCCtx_advanced() local 114 cctx = (ZSTD_CCtx *)ZSTD_malloc(sizeof(ZSTD_CCtx), customMem); in ZSTD_createCCtx_advanced() 115 if (!cctx) in ZSTD_createCCtx_advanced() 117 memset(cctx, 0, sizeof(ZSTD_CCtx)); in ZSTD_createCCtx_advanced() 118 cctx->customMem = customMem; in ZSTD_createCCtx_advanced() 119 return cctx; in ZSTD_createCCtx_advanced() 125 ZSTD_CCtx *cctx = ZSTD_createCCtx_advanced(stackMem); in ZSTD_initCCtx() local 126 if (cctx) { in ZSTD_initCCtx() 127 cctx->workSpace = ZSTD_stackAllocAll(cctx->customMem.opaque, &cctx->workSpaceSize); in ZSTD_initCCtx() 129 return cctx; in ZSTD_initCCtx() [all …]
|
D | zstd_internal.h | 254 void ZSTD_invalidateRepCodes(ZSTD_CCtx *cctx); 256 size_t ZSTD_freeCCtx(ZSTD_CCtx *cctx);
|
/Linux-v5.4/include/linux/ |
D | zstd.h | 406 size_t ZSTD_compress_usingCDict(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, 1005 size_t ZSTD_compressBegin(ZSTD_CCtx *cctx, int compressionLevel); 1006 size_t ZSTD_compressBegin_usingDict(ZSTD_CCtx *cctx, const void *dict, 1008 size_t ZSTD_compressBegin_advanced(ZSTD_CCtx *cctx, const void *dict, 1011 size_t ZSTD_copyCCtx(ZSTD_CCtx *cctx, const ZSTD_CCtx *preparedCCtx, 1013 size_t ZSTD_compressBegin_usingCDict(ZSTD_CCtx *cctx, const ZSTD_CDict *cdict, 1015 size_t ZSTD_compressContinue(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, 1017 size_t ZSTD_compressEnd(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, 1149 size_t ZSTD_getBlockSizeMax(ZSTD_CCtx *cctx); 1150 size_t ZSTD_compressBlock(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity,
|
/Linux-v5.4/drivers/infiniband/hw/bnxt_re/ |
D | qplib_res.h | 193 struct bnxt_qplib_chip_ctx *cctx; member 204 static inline bool bnxt_qplib_is_chip_gen_p5(struct bnxt_qplib_chip_ctx *cctx) in bnxt_qplib_is_chip_gen_p5() argument 206 return (cctx->chip_num == CHIP_NUM_57500); in bnxt_qplib_is_chip_gen_p5() 211 return bnxt_qplib_is_chip_gen_p5(res->cctx) ? in bnxt_qplib_get_hwq_type() 215 static inline u8 bnxt_qplib_get_ring_type(struct bnxt_qplib_chip_ctx *cctx) in bnxt_qplib_get_ring_type() argument 217 return bnxt_qplib_is_chip_gen_p5(cctx) ? in bnxt_qplib_get_ring_type()
|
D | qplib_rcfw.c | 368 bool gen_p5 = bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx); in bnxt_qplib_service_creq() 497 if (is_virtfn || bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx)) in bnxt_qplib_init_rcfw() 623 bool gen_p5 = bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx); in bnxt_qplib_rcfw_stop_irq() 666 bool gen_p5 = bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx); in bnxt_qplib_rcfw_start_irq()
|
D | qplib_fp.c | 248 bool gen_p5 = bnxt_qplib_is_chip_gen_p5(nq->res->cctx); in bnxt_qplib_service_nq() 343 bool gen_p5 = bnxt_qplib_is_chip_gen_p5(nq->res->cctx); in bnxt_qplib_nq_stop_irq() 382 bool gen_p5 = bnxt_qplib_is_chip_gen_p5(nq->res->cctx); in bnxt_qplib_nq_start_irq() 886 psn_sz = bnxt_qplib_is_chip_gen_p5(res->cctx) ? in bnxt_qplib_create_qp() 1020 max_rsge = bnxt_qplib_is_chip_gen_p5(res->cctx) ? 6 : rq->max_sge; in bnxt_qplib_create_qp() 1067 qp->cctx = res->cctx; in bnxt_qplib_create_qp() 1763 if (bnxt_qplib_is_chip_gen_p5(qp->cctx)) { in bnxt_qplib_post_send()
|
D | qplib_fp.h | 256 struct bnxt_qplib_chip_ctx *cctx; member
|
D | main.c | 86 rdev->qplib_res.cctx = NULL; in bnxt_re_destroy_chip_ctx() 100 rdev->qplib_res.cctx = &rdev->chip_ctx; in bnxt_re_setup_chip_ctx()
|
D | qplib_sp.c | 122 attr->max_qp_sges = bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx) ? in bnxt_qplib_get_dev_attr()
|
/Linux-v5.4/crypto/ |
D | zstd.c | 21 ZSTD_CCtx *cctx; member 44 ctx->cctx = ZSTD_initCCtx(ctx->cwksp, wksp_size); in zstd_comp_init() 45 if (!ctx->cctx) { in zstd_comp_init() 83 ctx->cctx = NULL; in zstd_comp_exit() 157 out_len = ZSTD_compressCCtx(zctx->cctx, dst, *dlen, src, slen, params); in __zstd_compress()
|
D | camellia_generic.c | 971 struct camellia_ctx *cctx = crypto_tfm_ctx(tfm); in camellia_set_key() local 980 cctx->key_length = key_len; in camellia_set_key() 984 camellia_setup128(key, cctx->key_table); in camellia_set_key() 987 camellia_setup192(key, cctx->key_table); in camellia_set_key() 990 camellia_setup256(key, cctx->key_table); in camellia_set_key() 999 const struct camellia_ctx *cctx = crypto_tfm_ctx(tfm); in camellia_encrypt() local 1011 if (cctx->key_length == 16) in camellia_encrypt() 1016 camellia_do_encrypt(cctx->key_table, tmp, max); in camellia_encrypt() 1027 const struct camellia_ctx *cctx = crypto_tfm_ctx(tfm); in camellia_decrypt() local 1039 if (cctx->key_length == 16) in camellia_decrypt() [all …]
|
/Linux-v5.4/drivers/crypto/mediatek/ |
D | mtk-aes.c | 573 struct mtk_aes_ctr_ctx *cctx = mtk_aes_ctr_ctx_cast(ctx); in mtk_aes_ctr_transfer() local 581 cctx->offset += aes->total; in mtk_aes_ctr_transfer() 582 if (cctx->offset >= req->nbytes) in mtk_aes_ctr_transfer() 586 datalen = req->nbytes - cctx->offset; in mtk_aes_ctr_transfer() 588 ctr = be32_to_cpu(cctx->iv[3]); in mtk_aes_ctr_transfer() 600 src = scatterwalk_ffwd(cctx->src, req->src, cctx->offset); in mtk_aes_ctr_transfer() 602 scatterwalk_ffwd(cctx->dst, req->dst, cctx->offset)); in mtk_aes_ctr_transfer() 605 mtk_aes_write_state_le(ctx->info.state + ctx->keylen, cctx->iv, in mtk_aes_ctr_transfer() 613 cctx->iv[3] = cpu_to_be32(ctr); in mtk_aes_ctr_transfer() 614 crypto_inc((u8 *)cctx->iv, AES_BLOCK_SIZE); in mtk_aes_ctr_transfer() [all …]
|
/Linux-v5.4/arch/x86/crypto/ |
D | camellia_glue.c | 1231 int __camellia_setkey(struct camellia_ctx *cctx, const unsigned char *key, in __camellia_setkey() argument 1239 cctx->key_length = key_len; in __camellia_setkey() 1243 camellia_setup128(key, cctx->key_table); in __camellia_setkey() 1246 camellia_setup192(key, cctx->key_table); in __camellia_setkey() 1249 camellia_setup256(key, cctx->key_table); in __camellia_setkey()
|
/Linux-v5.4/net/tls/ |
D | tls_sw.c | 2214 struct cipher_context *cctx; in tls_set_sw_offload() local 2257 cctx = &ctx->tx; in tls_set_sw_offload() 2265 cctx = &ctx->rx; in tls_set_sw_offload() 2351 cctx->iv = kmalloc(iv_size + salt_size, GFP_KERNEL); in tls_set_sw_offload() 2352 if (!cctx->iv) { in tls_set_sw_offload() 2358 memcpy(cctx->iv, salt, salt_size); in tls_set_sw_offload() 2359 memcpy(cctx->iv + salt_size, iv, iv_size); in tls_set_sw_offload() 2360 cctx->rec_seq = kmemdup(rec_seq, rec_seq_size, GFP_KERNEL); in tls_set_sw_offload() 2361 if (!cctx->rec_seq) { in tls_set_sw_offload() 2409 kfree(cctx->rec_seq); in tls_set_sw_offload() [all …]
|
/Linux-v5.4/arch/x86/include/asm/crypto/ |
D | camellia.h | 27 extern int __camellia_setkey(struct camellia_ctx *cctx,
|
/Linux-v5.4/arch/sparc/mm/ |
D | srmmu.c | 607 int cctx, ctx1; 611 cctx = srmmu_get_context(); 613 if (cctx != ctx1) { 614 printk("flush ctx %02x curr %02x\n", ctx1, cctx); 619 srmmu_set_context(cctx);
|