Home
last modified time | relevance | path

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

/Linux-v5.15/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.15/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.15/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.15/drivers/infiniband/hw/bnxt_re/
Dqplib_res.h255 struct bnxt_qplib_chip_ctx *cctx; member
266 static inline bool bnxt_qplib_is_chip_gen_p5(struct bnxt_qplib_chip_ctx *cctx) in bnxt_qplib_is_chip_gen_p5() argument
268 return (cctx->chip_num == CHIP_NUM_57508 || in bnxt_qplib_is_chip_gen_p5()
269 cctx->chip_num == CHIP_NUM_57504 || in bnxt_qplib_is_chip_gen_p5()
270 cctx->chip_num == CHIP_NUM_57502); in bnxt_qplib_is_chip_gen_p5()
275 return bnxt_qplib_is_chip_gen_p5(res->cctx) ? in bnxt_qplib_get_hwq_type()
279 static inline u8 bnxt_qplib_get_ring_type(struct bnxt_qplib_chip_ctx *cctx) in bnxt_qplib_get_ring_type() argument
281 return bnxt_qplib_is_chip_gen_p5(cctx) ? in bnxt_qplib_get_ring_type()
442 struct bnxt_qplib_chip_ctx *cctx, in bnxt_qplib_ring_nq_db() argument
448 if (bnxt_qplib_is_chip_gen_p5(cctx)) in bnxt_qplib_ring_nq_db()
Dqplib_rcfw.c429 rcfw->res->cctx, true); in bnxt_qplib_service_creq()
494 if (bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx)) in bnxt_qplib_init_rcfw()
644 bnxt_qplib_ring_nq_db(&creq->creq_db.dbinfo, rcfw->res->cctx, false); in bnxt_qplib_rcfw_stop_irq()
703 bnxt_qplib_ring_nq_db(&creq->creq_db.dbinfo, rcfw->res->cctx, true); in bnxt_qplib_rcfw_start_irq()
Dqplib_res.c59 struct bnxt_qplib_chip_ctx *cctx,
563 rc = bnxt_qplib_alloc_stats_ctx(res->pdev, res->cctx, &ctx->stats); in bnxt_qplib_alloc_ctx()
893 struct bnxt_qplib_chip_ctx *cctx, in bnxt_qplib_alloc_stats_ctx() argument
898 stats->size = cctx->hw_stats_size; in bnxt_qplib_alloc_stats_ctx()
Dmain.c88 struct bnxt_qplib_chip_ctx *cctx; in bnxt_re_set_drv_mode() local
90 cctx = rdev->chip_ctx; in bnxt_re_set_drv_mode()
91 cctx->modes.wqe_mode = bnxt_qplib_is_chip_gen_p5(rdev->chip_ctx) ? in bnxt_re_set_drv_mode()
104 rdev->qplib_res.cctx = NULL; in bnxt_re_destroy_chip_ctx()
128 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_sp.c61 if (!bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx)) in bnxt_qplib_is_atomic_cap()
133 attr->max_qp_sges = bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx) ? in bnxt_qplib_get_dev_attr()
Dqplib_fp.h272 struct bnxt_qplib_chip_ctx *cctx; member
/Linux-v5.15/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.c963 struct camellia_ctx *cctx = crypto_tfm_ctx(tfm); in camellia_set_key() local
969 cctx->key_length = key_len; in camellia_set_key()
973 camellia_setup128(key, cctx->key_table); in camellia_set_key()
976 camellia_setup192(key, cctx->key_table); in camellia_set_key()
979 camellia_setup256(key, cctx->key_table); in camellia_set_key()
988 const struct camellia_ctx *cctx = crypto_tfm_ctx(tfm); in camellia_encrypt() local
998 if (cctx->key_length == 16) in camellia_encrypt()
1003 camellia_do_encrypt(cctx->key_table, tmp, max); in camellia_encrypt()
1014 const struct camellia_ctx *cctx = crypto_tfm_ctx(tfm); in camellia_decrypt() local
1024 if (cctx->key_length == 16) in camellia_decrypt()
[all …]
/Linux-v5.15/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.15/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.c2311 struct cipher_context *cctx; in tls_set_sw_offload() local
2355 cctx = &ctx->tx; in tls_set_sw_offload()
2364 cctx = &ctx->rx; in tls_set_sw_offload()
2465 cctx->iv = kmalloc(iv_size + salt_size, GFP_KERNEL); in tls_set_sw_offload()
2466 if (!cctx->iv) { in tls_set_sw_offload()
2472 memcpy(cctx->iv, salt, salt_size); in tls_set_sw_offload()
2473 memcpy(cctx->iv + salt_size, iv, iv_size); in tls_set_sw_offload()
2474 cctx->rec_seq = kmemdup(rec_seq, rec_seq_size, GFP_KERNEL); in tls_set_sw_offload()
2475 if (!cctx->rec_seq) { in tls_set_sw_offload()
2524 kfree(cctx->rec_seq); in tls_set_sw_offload()
[all …]
/Linux-v5.15/arch/x86/crypto/
Dcamellia_glue.c1230 int __camellia_setkey(struct camellia_ctx *cctx, const unsigned char *key, in __camellia_setkey() argument
1236 cctx->key_length = key_len; in __camellia_setkey()
1240 camellia_setup128(key, cctx->key_table); in __camellia_setkey()
1243 camellia_setup192(key, cctx->key_table); in __camellia_setkey()
1246 camellia_setup256(key, cctx->key_table); in __camellia_setkey()
Dcamellia.h22 extern int __camellia_setkey(struct camellia_ctx *cctx,
/Linux-v5.15/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);