Home
last modified time | relevance | path

Searched refs:cctx (Results 1 – 19 of 19) sorted by relevance

/Linux-v5.10/drivers/misc/
Dfastrpc.c197 struct fastrpc_channel_ctx *cctx; member
225 struct fastrpc_channel_ctx *cctx; member
329 struct fastrpc_channel_ctx *cctx; in fastrpc_channel_ctx_free() local
331 cctx = container_of(ref, struct fastrpc_channel_ctx, refcount); in fastrpc_channel_ctx_free()
333 kfree(cctx); in fastrpc_channel_ctx_free()
336 static void fastrpc_channel_ctx_get(struct fastrpc_channel_ctx *cctx) in fastrpc_channel_ctx_get() argument
338 kref_get(&cctx->refcount); in fastrpc_channel_ctx_get()
341 static void fastrpc_channel_ctx_put(struct fastrpc_channel_ctx *cctx) in fastrpc_channel_ctx_put() argument
343 kref_put(&cctx->refcount, fastrpc_channel_ctx_free); in fastrpc_channel_ctx_put()
349 struct fastrpc_channel_ctx *cctx; in fastrpc_context_free() local
[all …]
/Linux-v5.10/lib/zstd/
Dcompress.c111 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 …]
Dzstd_internal.h264 void ZSTD_invalidateRepCodes(ZSTD_CCtx *cctx);
266 size_t ZSTD_freeCCtx(ZSTD_CCtx *cctx);
/Linux-v5.10/include/linux/
Dzstd.h406 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.10/drivers/infiniband/hw/bnxt_re/
Dqplib_res.h260 struct bnxt_qplib_chip_ctx *cctx; member
271 static inline bool bnxt_qplib_is_chip_gen_p5(struct bnxt_qplib_chip_ctx *cctx) in bnxt_qplib_is_chip_gen_p5() argument
273 return (cctx->chip_num == CHIP_NUM_57508 || in bnxt_qplib_is_chip_gen_p5()
274 cctx->chip_num == CHIP_NUM_57504 || in bnxt_qplib_is_chip_gen_p5()
275 cctx->chip_num == CHIP_NUM_57502); in bnxt_qplib_is_chip_gen_p5()
280 return bnxt_qplib_is_chip_gen_p5(res->cctx) ? in bnxt_qplib_get_hwq_type()
284 static inline u8 bnxt_qplib_get_ring_type(struct bnxt_qplib_chip_ctx *cctx) in bnxt_qplib_get_ring_type() argument
286 return bnxt_qplib_is_chip_gen_p5(cctx) ? in bnxt_qplib_get_ring_type()
446 struct bnxt_qplib_chip_ctx *cctx, in bnxt_qplib_ring_nq_db() argument
452 if (bnxt_qplib_is_chip_gen_p5(cctx)) in bnxt_qplib_ring_nq_db()
Dqplib_rcfw.c425 rcfw->res->cctx, true); in bnxt_qplib_service_creq()
490 if (bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx)) in bnxt_qplib_init_rcfw()
640 bnxt_qplib_ring_nq_db(&creq->creq_db.dbinfo, rcfw->res->cctx, false); in bnxt_qplib_rcfw_stop_irq()
699 bnxt_qplib_ring_nq_db(&creq->creq_db.dbinfo, rcfw->res->cctx, true); in bnxt_qplib_rcfw_start_irq()
Dmain.c87 struct bnxt_qplib_chip_ctx *cctx; in bnxt_re_set_drv_mode() local
89 cctx = rdev->chip_ctx; in bnxt_re_set_drv_mode()
90 cctx->modes.wqe_mode = bnxt_qplib_is_chip_gen_p5(rdev->chip_ctx) ? in bnxt_re_set_drv_mode()
103 rdev->qplib_res.cctx = NULL; in bnxt_re_destroy_chip_ctx()
126 rdev->qplib_res.cctx = rdev->chip_ctx; in bnxt_re_setup_chip_ctx()
Dqplib_fp.c384 bnxt_qplib_ring_nq_db(&nq->nq_db.dbinfo, nq->res->cctx, true); in bnxt_qplib_service_nq()
409 bnxt_qplib_ring_nq_db(&nq->nq_db.dbinfo, nq->res->cctx, false); in bnxt_qplib_nq_stop_irq()
469 bnxt_qplib_ring_nq_db(&nq->nq_db.dbinfo, nq->res->cctx, true); in bnxt_qplib_nq_start_irq()
899 qp->cctx = res->cctx; in bnxt_qplib_create_qp1()
975 psn_sz = bnxt_qplib_is_chip_gen_p5(res->cctx) ? in bnxt_qplib_create_qp()
1105 qp->cctx = res->cctx; in bnxt_qplib_create_qp()
1572 if (bnxt_qplib_is_chip_gen_p5(qp->cctx)) { in bnxt_qplib_fill_psn_search()
Dqplib_fp.h270 struct bnxt_qplib_chip_ctx *cctx; member
Dqplib_sp.c122 attr->max_qp_sges = bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx) ? in bnxt_qplib_get_dev_attr()
/Linux-v5.10/crypto/
Dzstd.c21 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()
Dcamellia_generic.c971 struct camellia_ctx *cctx = crypto_tfm_ctx(tfm); in camellia_set_key() local
977 cctx->key_length = key_len; in camellia_set_key()
981 camellia_setup128(key, cctx->key_table); in camellia_set_key()
984 camellia_setup192(key, cctx->key_table); in camellia_set_key()
987 camellia_setup256(key, cctx->key_table); in camellia_set_key()
996 const struct camellia_ctx *cctx = crypto_tfm_ctx(tfm); in camellia_encrypt() local
1008 if (cctx->key_length == 16) in camellia_encrypt()
1013 camellia_do_encrypt(cctx->key_table, tmp, max); in camellia_encrypt()
1024 const struct camellia_ctx *cctx = crypto_tfm_ctx(tfm); in camellia_decrypt() local
1036 if (cctx->key_length == 16) in camellia_decrypt()
[all …]
/Linux-v5.10/drivers/crypto/mediatek/
Dmtk-aes.c556 struct mtk_aes_ctr_ctx *cctx = mtk_aes_ctr_ctx_cast(ctx); in mtk_aes_ctr_transfer() local
564 cctx->offset += aes->total; in mtk_aes_ctr_transfer()
565 if (cctx->offset >= req->cryptlen) in mtk_aes_ctr_transfer()
569 datalen = req->cryptlen - cctx->offset; in mtk_aes_ctr_transfer()
571 ctr = be32_to_cpu(cctx->iv[3]); in mtk_aes_ctr_transfer()
583 src = scatterwalk_ffwd(cctx->src, req->src, cctx->offset); in mtk_aes_ctr_transfer()
585 scatterwalk_ffwd(cctx->dst, req->dst, cctx->offset)); in mtk_aes_ctr_transfer()
588 memcpy(ctx->info.state + ctx->keylen, cctx->iv, AES_BLOCK_SIZE); in mtk_aes_ctr_transfer()
595 cctx->iv[3] = cpu_to_be32(ctr); in mtk_aes_ctr_transfer()
596 crypto_inc((u8 *)cctx->iv, AES_BLOCK_SIZE); in mtk_aes_ctr_transfer()
[all …]
/Linux-v5.10/drivers/pinctrl/intel/
Dpinctrl-cherryview.c809 struct intel_community_context *cctx = &pctrl->context.communities[0]; in chv_gpio_request_enable() local
813 for (i = 0; i < ARRAY_SIZE(cctx->intr_lines); i++) { in chv_gpio_request_enable()
814 if (cctx->intr_lines[i] == offset) { in chv_gpio_request_enable()
815 cctx->intr_lines[i] = 0; in chv_gpio_request_enable()
1305 struct intel_community_context *cctx = &pctrl->context.communities[0]; in chv_gpio_irq_startup() local
1322 if (!cctx->intr_lines[intsel]) { in chv_gpio_irq_startup()
1324 cctx->intr_lines[intsel] = pin; in chv_gpio_irq_startup()
1337 struct intel_community_context *cctx = &pctrl->context.communities[0]; in chv_gpio_irq_type() local
1382 cctx->intr_lines[value] = pin; in chv_gpio_irq_type()
1399 struct intel_community_context *cctx = &pctrl->context.communities[0]; in chv_gpio_irq_handler() local
[all …]
/Linux-v5.10/net/tls/
Dtls_main.c339 struct cipher_context *cctx; in do_tls_getsockopt_conf() local
358 cctx = &ctx->tx; in do_tls_getsockopt_conf()
361 cctx = &ctx->rx; in do_tls_getsockopt_conf()
389 cctx->iv + TLS_CIPHER_AES_GCM_128_SALT_SIZE, in do_tls_getsockopt_conf()
391 memcpy(crypto_info_aes_gcm_128->rec_seq, cctx->rec_seq, in do_tls_getsockopt_conf()
413 cctx->iv + TLS_CIPHER_AES_GCM_256_SALT_SIZE, in do_tls_getsockopt_conf()
415 memcpy(crypto_info_aes_gcm_256->rec_seq, cctx->rec_seq, in do_tls_getsockopt_conf()
Dtls_sw.c2301 struct cipher_context *cctx; in tls_set_sw_offload() local
2345 cctx = &ctx->tx; in tls_set_sw_offload()
2354 cctx = &ctx->rx; in tls_set_sw_offload()
2440 cctx->iv = kmalloc(iv_size + salt_size, GFP_KERNEL); in tls_set_sw_offload()
2441 if (!cctx->iv) { in tls_set_sw_offload()
2447 memcpy(cctx->iv, salt, salt_size); in tls_set_sw_offload()
2448 memcpy(cctx->iv + salt_size, iv, iv_size); in tls_set_sw_offload()
2449 cctx->rec_seq = kmemdup(rec_seq, rec_seq_size, GFP_KERNEL); in tls_set_sw_offload()
2450 if (!cctx->rec_seq) { in tls_set_sw_offload()
2499 kfree(cctx->rec_seq); in tls_set_sw_offload()
[all …]
/Linux-v5.10/arch/x86/crypto/
Dcamellia_glue.c1229 int __camellia_setkey(struct camellia_ctx *cctx, const unsigned char *key, in __camellia_setkey() argument
1235 cctx->key_length = key_len; in __camellia_setkey()
1239 camellia_setup128(key, cctx->key_table); in __camellia_setkey()
1242 camellia_setup192(key, cctx->key_table); in __camellia_setkey()
1245 camellia_setup256(key, cctx->key_table); in __camellia_setkey()
/Linux-v5.10/arch/x86/include/asm/crypto/
Dcamellia.h27 extern int __camellia_setkey(struct camellia_ctx *cctx,
/Linux-v5.10/arch/sparc/mm/
Dsrmmu.c594 int cctx, ctx1;
598 cctx = srmmu_get_context();
600 if (cctx != ctx1) {
601 printk("flush ctx %02x curr %02x\n", ctx1, cctx);
606 srmmu_set_context(cctx);