Home
last modified time | relevance | path

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

12

/Linux-v6.6/lib/zstd/compress/
Dzstd_compress.c94 static void ZSTD_initCCtx(ZSTD_CCtx* cctx, ZSTD_customMem memManager) in ZSTD_initCCtx() argument
96 assert(cctx != NULL); in ZSTD_initCCtx()
97 ZSTD_memset(cctx, 0, sizeof(*cctx)); in ZSTD_initCCtx()
98 cctx->customMem = memManager; in ZSTD_initCCtx()
99 cctx->bmi2 = ZSTD_cpuSupportsBmi2(); in ZSTD_initCCtx()
100 { size_t const err = ZSTD_CCtx_reset(cctx, ZSTD_reset_parameters); in ZSTD_initCCtx()
111 { ZSTD_CCtx* const cctx = (ZSTD_CCtx*)ZSTD_customMalloc(sizeof(ZSTD_CCtx), customMem); in ZSTD_createCCtx_advanced() local
112 if (!cctx) return NULL; in ZSTD_createCCtx_advanced()
113 ZSTD_initCCtx(cctx, customMem); in ZSTD_createCCtx_advanced()
114 return cctx; in ZSTD_createCCtx_advanced()
[all …]
Dzstd_compress_internal.h1353 size_t ZSTD_compressBegin_advanced_internal(ZSTD_CCtx* cctx,
1363 size_t ZSTD_compress_advanced_internal(ZSTD_CCtx* cctx,
1388 size_t ZSTD_referenceExternalSequences(ZSTD_CCtx* cctx, rawSeq* seq, size_t nbSeq);
1397 void ZSTD_CCtx_trace(ZSTD_CCtx* cctx, size_t extraCSize);
/Linux-v6.6/drivers/misc/
Dfastrpc.c252 struct fastrpc_channel_ctx *cctx; member
287 struct fastrpc_channel_ctx *cctx; member
298 struct fastrpc_channel_ctx *cctx; member
320 int vmid = map->fl->cctx->vmperms[0].vmid; in fastrpc_free_map()
456 struct device *rdev = &fl->cctx->rpdev->dev; in fastrpc_remote_heap_alloc()
463 struct fastrpc_channel_ctx *cctx; in fastrpc_channel_ctx_free() local
465 cctx = container_of(ref, struct fastrpc_channel_ctx, refcount); in fastrpc_channel_ctx_free()
467 kfree(cctx); in fastrpc_channel_ctx_free()
470 static void fastrpc_channel_ctx_get(struct fastrpc_channel_ctx *cctx) in fastrpc_channel_ctx_get() argument
472 kref_get(&cctx->refcount); in fastrpc_channel_ctx_get()
[all …]
/Linux-v6.6/lib/zstd/
Dzstd_compress_module.c27 static size_t zstd_cctx_init(zstd_cctx *cctx, const zstd_parameters *parameters, in zstd_cctx_init() argument
31 cctx, ZSTD_reset_session_and_parameters)); in zstd_cctx_init()
33 cctx, pledged_src_size)); in zstd_cctx_init()
35 cctx, ZSTD_c_windowLog, parameters->cParams.windowLog)); in zstd_cctx_init()
37 cctx, ZSTD_c_hashLog, parameters->cParams.hashLog)); in zstd_cctx_init()
39 cctx, ZSTD_c_chainLog, parameters->cParams.chainLog)); in zstd_cctx_init()
41 cctx, ZSTD_c_searchLog, parameters->cParams.searchLog)); in zstd_cctx_init()
43 cctx, ZSTD_c_minMatch, parameters->cParams.minMatch)); in zstd_cctx_init()
45 cctx, ZSTD_c_targetLength, parameters->cParams.targetLength)); in zstd_cctx_init()
47 cctx, ZSTD_c_strategy, parameters->cParams.strategy)); in zstd_cctx_init()
[all …]
/Linux-v6.6/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Dchan.c42 nvkm_chan_cctx_bind(struct nvkm_chan *chan, struct nvkm_engn *engn, struct nvkm_cctx *cctx) in nvkm_chan_cctx_bind() argument
51 CHAN_TRACE(chan, "%sbind cctx %d[%s]", cctx ? "" : "un", engn->id, engine->subdev.name); in nvkm_chan_cctx_bind()
63 engn->func->bind(engn, cctx, chan); in nvkm_chan_cctx_bind()
75 struct nvkm_cctx *cctx = *pcctx; in nvkm_chan_cctx_put() local
77 if (cctx) { in nvkm_chan_cctx_put()
78 struct nvkm_engn *engn = cctx->vctx->ectx->engn; in nvkm_chan_cctx_put()
80 if (refcount_dec_and_mutex_lock(&cctx->refs, &chan->cgrp->mutex)) { in nvkm_chan_cctx_put()
82 nvkm_cgrp_vctx_put(chan->cgrp, &cctx->vctx); in nvkm_chan_cctx_put()
83 list_del(&cctx->head); in nvkm_chan_cctx_put()
84 kfree(cctx); in nvkm_chan_cctx_put()
[all …]
Duchan.c70 struct nvkm_cctx *cctx; member
79 struct nvkm_cctx *cctx = uobj->cctx; in nvkm_uchan_object_fini_1() local
80 struct nvkm_ectx *ectx = cctx->vctx->ectx; in nvkm_uchan_object_fini_1()
86 if (refcount_dec_and_mutex_lock(&cctx->uses, &chan->cgrp->mutex)) { in nvkm_uchan_object_fini_1()
102 struct nvkm_cctx *cctx = uobj->cctx; in nvkm_uchan_object_init_0() local
103 struct nvkm_ectx *ectx = cctx->vctx->ectx; in nvkm_uchan_object_init_0()
110 if (!refcount_inc_not_zero(&cctx->uses)) { in nvkm_uchan_object_init_0()
112 if (!refcount_inc_not_zero(&cctx->uses)) { in nvkm_uchan_object_init_0()
120 nvkm_chan_cctx_bind(chan, ectx->engn, cctx); in nvkm_uchan_object_init_0()
121 refcount_set(&cctx->uses, 1); in nvkm_uchan_object_init_0()
[all …]
Dgv100.c92 gv100_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chan *chan) in gv100_ectx_bind() argument
96 if (cctx) { in gv100_ectx_bind()
97 addr = cctx->vctx->vma->addr; in gv100_ectx_bind()
104 nvkm_mo32(chan->inst, 0x0ac, 0x00010000, cctx ? 0x00010000 : 0x00000000); in gv100_ectx_bind()
117 gv100_ectx_ce_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chan *chan) in gv100_ectx_ce_bind() argument
119 const u64 bar2 = cctx ? nvkm_memory_bar2(cctx->vctx->inst->memory) : 0ULL; in gv100_ectx_ce_bind()
124 nvkm_mo32(chan->inst, 0x0ac, 0x00020000, cctx ? 0x00020000 : 0x00000000); in gv100_ectx_ce_bind()
Dg84.c106 g84_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chan *chan) in g84_ectx_bind() argument
129 if (!cctx) { in g84_ectx_bind()
139 start = cctx->vctx->inst->addr; in g84_ectx_bind()
140 limit = start + cctx->vctx->inst->size - 1; in g84_ectx_bind()
Dnv40.c125 nv40_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chan *chan) in nv40_ectx_bind() argument
149 if (cctx) in nv40_ectx_bind()
150 inst = cctx->vctx->inst->addr >> 4; in nv40_ectx_bind()
Dnv50.c150 nv50_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chan *chan) in nv50_ectx_bind() argument
165 if (!cctx) { in nv50_ectx_bind()
189 start = cctx->vctx->inst->addr; in nv50_ectx_bind()
190 limit = start + cctx->vctx->inst->size - 1; in nv50_ectx_bind()
Dgk104.c134 gk104_ectx_bind(struct nvkm_engn *engn, struct nvkm_cctx *cctx, struct nvkm_chan *chan) in gk104_ectx_bind() argument
162 if (cctx) { in gk104_ectx_bind()
163 addr = cctx->vctx->vma->addr; in gk104_ectx_bind()
/Linux-v6.6/include/linux/
Dzstd_lib.h195 ZSTDLIB_API size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx); /* accept NULL pointer */
205 ZSTDLIB_API size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx,
462 ZSTDLIB_API size_t ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, int value);
479 ZSTDLIB_API size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize);
501 ZSTDLIB_API size_t ZSTD_CCtx_reset(ZSTD_CCtx* cctx, ZSTD_ResetDirective reset);
513 ZSTDLIB_API size_t ZSTD_compress2( ZSTD_CCtx* cctx,
704 ZSTDLIB_API size_t ZSTD_compressStream2( ZSTD_CCtx* cctx,
862 ZSTDLIB_API size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx,
951 ZSTDLIB_API size_t ZSTD_CCtx_loadDictionary(ZSTD_CCtx* cctx, const void* dict, size_t dictSize);
965 ZSTDLIB_API size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict);
[all …]
Dzstd.h180 size_t zstd_compress_cctx(zstd_cctx *cctx, void *dst, size_t dst_capacity,
/Linux-v6.6/drivers/infiniband/hw/bnxt_re/
Dqplib_res.h275 struct bnxt_qplib_chip_ctx *cctx; member
291 static inline bool bnxt_qplib_is_chip_gen_p5(struct bnxt_qplib_chip_ctx *cctx) in bnxt_qplib_is_chip_gen_p5() argument
293 return (cctx->chip_num == CHIP_NUM_57508 || in bnxt_qplib_is_chip_gen_p5()
294 cctx->chip_num == CHIP_NUM_57504 || in bnxt_qplib_is_chip_gen_p5()
295 cctx->chip_num == CHIP_NUM_57502); in bnxt_qplib_is_chip_gen_p5()
300 return bnxt_qplib_is_chip_gen_p5(res->cctx) ? in bnxt_qplib_get_hwq_type()
304 static inline u8 bnxt_qplib_get_ring_type(struct bnxt_qplib_chip_ctx *cctx) in bnxt_qplib_get_ring_type() argument
306 return bnxt_qplib_is_chip_gen_p5(cctx) ? in bnxt_qplib_get_ring_type()
468 struct bnxt_qplib_chip_ctx *cctx, in bnxt_qplib_ring_nq_db() argument
474 if (bnxt_qplib_is_chip_gen_p5(cctx)) in bnxt_qplib_ring_nq_db()
[all …]
Dmain.c92 struct bnxt_qplib_chip_ctx *cctx; in bnxt_re_set_db_offset() local
102 cctx = rdev->chip_ctx; in bnxt_re_set_db_offset()
120 if (cctx->modes.db_push && l2db_len && en_dev->l2_db_size != barlen) { in bnxt_re_set_db_offset()
128 struct bnxt_qplib_chip_ctx *cctx; in bnxt_re_set_drv_mode() local
130 cctx = rdev->chip_ctx; in bnxt_re_set_drv_mode()
131 cctx->modes.wqe_mode = bnxt_qplib_is_chip_gen_p5(rdev->chip_ctx) ? in bnxt_re_set_drv_mode()
147 rdev->qplib_res.cctx = NULL; in bnxt_re_destroy_chip_ctx()
170 rdev->qplib_res.cctx = rdev->chip_ctx; in bnxt_re_setup_chip_ctx()
419 struct bnxt_qplib_chip_ctx *cctx; in bnxt_re_hwrm_qcaps() local
423 cctx = rdev->chip_ctx; in bnxt_re_hwrm_qcaps()
[all …]
Dqplib_res.c59 struct bnxt_qplib_chip_ctx *cctx,
556 rc = bnxt_qplib_alloc_stats_ctx(res->pdev, res->cctx, &ctx->stats); in bnxt_qplib_alloc_ctx()
808 if (!bnxt_qplib_is_chip_gen_p5(res->cctx)) { in bnxt_qplib_alloc_dpi_tbl()
856 struct bnxt_qplib_chip_ctx *cctx, in bnxt_qplib_alloc_stats_ctx() argument
861 stats->size = cctx->hw_stats_size; in bnxt_qplib_alloc_stats_ctx()
Dqplib_rcfw.c785 rcfw->res->cctx, true); in bnxt_qplib_service_creq()
857 if (bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx)) in bnxt_qplib_init_rcfw()
982 rcfw->max_timeout = res->cctx->hwrm_cmd_max_timeout; in bnxt_qplib_alloc_rcfw_channel()
1002 bnxt_qplib_ring_nq_db(&creq->creq_db.dbinfo, rcfw->res->cctx, false); in bnxt_qplib_rcfw_stop_irq()
1066 bnxt_qplib_ring_nq_db(&creq->creq_db.dbinfo, res->cctx, true); in bnxt_qplib_rcfw_start_irq()
/Linux-v6.6/crypto/
Dzstd.c21 zstd_cctx *cctx; member
44 ctx->cctx = zstd_init_cctx(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_compress_cctx(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-v6.6/drivers/pinctrl/intel/
Dpinctrl-cherryview.c761 struct intel_community_context *cctx = &pctrl->context.communities[0]; in chv_gpio_request_enable() local
765 for (i = 0; i < ARRAY_SIZE(cctx->intr_lines); i++) { in chv_gpio_request_enable()
766 if (cctx->intr_lines[i] == offset) { in chv_gpio_request_enable()
767 cctx->intr_lines[i] = CHV_INVALID_HWIRQ; in chv_gpio_request_enable()
1269 struct intel_community_context *cctx = &pctrl->context.communities[0]; in chv_gpio_irq_startup() local
1286 if (cctx->intr_lines[intsel] == CHV_INVALID_HWIRQ) { in chv_gpio_irq_startup()
1290 cctx->intr_lines[intsel] = hwirq; in chv_gpio_irq_startup()
1302 struct intel_community_context *cctx = &pctrl->context.communities[0]; in chv_gpio_set_intr_line() local
1310 if (cctx->intr_lines[intsel] == pin) in chv_gpio_set_intr_line()
1313 if (cctx->intr_lines[intsel] == CHV_INVALID_HWIRQ) { in chv_gpio_set_intr_line()
[all …]
/Linux-v6.6/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-v6.6/net/tls/
Dtls_sw.c2598 struct cipher_context *cctx; in tls_set_sw_offload() local
2641 cctx = &ctx->tx; in tls_set_sw_offload()
2651 cctx = &ctx->rx; in tls_set_sw_offload()
2693 cctx->iv = kmalloc(cipher_desc->iv + cipher_desc->salt, GFP_KERNEL); in tls_set_sw_offload()
2694 if (!cctx->iv) { in tls_set_sw_offload()
2700 memcpy(cctx->iv, salt, cipher_desc->salt); in tls_set_sw_offload()
2701 memcpy(cctx->iv + cipher_desc->salt, iv, cipher_desc->iv); in tls_set_sw_offload()
2703 cctx->rec_seq = kmemdup(rec_seq, cipher_desc->rec_seq, GFP_KERNEL); in tls_set_sw_offload()
2704 if (!cctx->rec_seq) { in tls_set_sw_offload()
2747 kfree(cctx->rec_seq); in tls_set_sw_offload()
[all …]
Dtls_main.c445 struct cipher_context *cctx; in do_tls_getsockopt_conf() local
464 cctx = &ctx->tx; in do_tls_getsockopt_conf()
467 cctx = &ctx->rx; in do_tls_getsockopt_conf()
488 cctx->iv + cipher_desc->salt, cipher_desc->iv); in do_tls_getsockopt_conf()
490 cctx->rec_seq, cipher_desc->rec_seq); in do_tls_getsockopt_conf()
/Linux-v6.6/arch/sparc/mm/
Dsrmmu.c595 int cctx, ctx1;
599 cctx = srmmu_get_context();
601 if (cctx != ctx1) {
602 printk("flush ctx %02x curr %02x\n", ctx1, cctx);
607 srmmu_set_context(cctx);

12