Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/lib/zstd/compress/
A Dzstd_compress.c97 ZSTD_memset(cctx, 0, sizeof(*cctx)); in ZSTD_initCCtx()
139 return cctx; in ZSTD_initStaticCCtx()
149 ZSTD_memset(&cctx->localDict, 0, sizeof(cctx->localDict)); in ZSTD_clearAllDicts()
166 ZSTD_cwksp_free(&cctx->workspace, cctx->customMem); in ZSTD_freeCCtxContent()
178 ZSTD_customFree(cctx, cctx->customMem); in ZSTD_freeCCtx()
187 (void)cctx; in ZSTD_sizeof_mtctx()
196 return (cctx->workspace.workspace == cctx ? 0 : sizeof(*cctx)) in ZSTD_sizeof_CCtx()
4056 ms, &cctx->workspace, &cctx->appliedParams, in ZSTD_compressContinue_internal()
4432 &cctx->ldmState, &cctx->workspace, &cctx->appliedParams, dict, dictSize, in ZSTD_compressBegin_internal()
5432 if (cctx->cdict && !cctx->localDict.cdict) { in ZSTD_CCtx_init_compressStream2()
[all …]
A 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-6.3-rc2/lib/zstd/
A Dzstd_compress_module.c31 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()
51 cctx, ZSTD_c_checksumFlag, parameters->fParams.checksumFlag)); in zstd_cctx_init()
[all …]
/linux-6.3-rc2/drivers/misc/
A Dfastrpc.c485 cctx = ctx->cctx; in fastrpc_context_free()
575 struct fastrpc_channel_ctx *cctx = user->cctx; in fastrpc_context_alloc() local
615 ctx->cctx = cctx; in fastrpc_context_alloc()
803 fl->cctx->vmperms, fl->cctx->vmcount); in fastrpc_map_create()
1097 cctx = fl->cctx; in fastrpc_invoke_send()
1272 fl->cctx->vmperms, fl->cctx->vmcount); in fastrpc_init_create_static_process()
1499 struct fastrpc_channel_ctx *cctx = fl->cctx; in fastrpc_device_release() local
1545 cctx = fdevice->cctx; in fastrpc_device_open()
1562 fl->cctx = cctx; in fastrpc_device_open()
2137 sess = &cctx->session[cctx->sesscount++]; in fastrpc_cb_probe()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
A Dchan.c77 if (cctx) { in nvkm_chan_cctx_put()
83 list_del(&cctx->head); in nvkm_chan_cctx_put()
84 kfree(cctx); in nvkm_chan_cctx_put()
98 struct nvkm_cctx *cctx; in nvkm_chan_cctx_get() local
103 cctx = nvkm_list_find(cctx, &chan->cctxs, head, in nvkm_chan_cctx_get()
104 cctx->vctx->ectx->engn == engn && cctx->vctx->vmm == chan->vmm); in nvkm_chan_cctx_get()
105 if (cctx) { in nvkm_chan_cctx_get()
106 refcount_inc(&cctx->refs); in nvkm_chan_cctx_get()
107 *pcctx = cctx; in nvkm_chan_cctx_get()
121 if (!(cctx = *pcctx = kzalloc(sizeof(*cctx), GFP_KERNEL))) { in nvkm_chan_cctx_get()
[all …]
A 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()
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()
121 refcount_set(&cctx->uses, 1); in nvkm_uchan_object_init_0()
136 if (!uobj->cctx) in nvkm_uchan_object_dtor()
139 engn = uobj->cctx->vctx->ectx->engn; in nvkm_uchan_object_dtor()
[all …]
A 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()
A 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()
A 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()
A 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()
A 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-6.3-rc2/include/linux/
A Dzstd_lib.h205 ZSTDLIB_API size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx,
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,
985 ZSTDLIB_API size_t ZSTD_CCtx_refPrefix(ZSTD_CCtx* cctx,
1047 ZSTDLIB_API size_t ZSTD_sizeof_CCtx(const ZSTD_CCtx* cctx);
1657 size_t ZSTD_compress_advanced(ZSTD_CCtx* cctx,
1668 size_t ZSTD_compress_usingCDict_advanced(ZSTD_CCtx* cctx,
2001 ZSTD_CCtx* cctx, const ZSTD_CCtx_params* params);
2010 ZSTD_CCtx* cctx,
[all …]
A Dzstd.h180 size_t zstd_compress_cctx(zstd_cctx *cctx, void *dst, size_t dst_capacity,
/linux-6.3-rc2/drivers/infiniband/hw/bnxt_re/
A Dqplib_res.h249 struct bnxt_qplib_chip_ctx *cctx; member
260 static inline bool bnxt_qplib_is_chip_gen_p5(struct bnxt_qplib_chip_ctx *cctx) in bnxt_qplib_is_chip_gen_p5() argument
262 return (cctx->chip_num == CHIP_NUM_57508 || in bnxt_qplib_is_chip_gen_p5()
263 cctx->chip_num == CHIP_NUM_57504 || in bnxt_qplib_is_chip_gen_p5()
264 cctx->chip_num == CHIP_NUM_57502); in bnxt_qplib_is_chip_gen_p5()
269 return bnxt_qplib_is_chip_gen_p5(res->cctx) ? in bnxt_qplib_get_hwq_type()
273 static inline u8 bnxt_qplib_get_ring_type(struct bnxt_qplib_chip_ctx *cctx) in bnxt_qplib_get_ring_type() argument
275 return bnxt_qplib_is_chip_gen_p5(cctx) ? in bnxt_qplib_get_ring_type()
435 struct bnxt_qplib_chip_ctx *cctx, in bnxt_qplib_ring_nq_db() argument
441 if (bnxt_qplib_is_chip_gen_p5(cctx)) in bnxt_qplib_ring_nq_db()
A 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()
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()
A Dqplib_res.c59 struct bnxt_qplib_chip_ctx *cctx,
564 rc = bnxt_qplib_alloc_stats_ctx(res->pdev, res->cctx, &ctx->stats); in bnxt_qplib_alloc_ctx()
834 struct bnxt_qplib_chip_ctx *cctx, in bnxt_qplib_alloc_stats_ctx() argument
839 stats->size = cctx->hw_stats_size; in bnxt_qplib_alloc_stats_ctx()
A Dmain.c89 struct bnxt_qplib_chip_ctx *cctx; in bnxt_re_set_drv_mode() local
91 cctx = rdev->chip_ctx; in bnxt_re_set_drv_mode()
92 cctx->modes.wqe_mode = bnxt_qplib_is_chip_gen_p5(rdev->chip_ctx) ? in bnxt_re_set_drv_mode()
105 rdev->qplib_res.cctx = NULL; in bnxt_re_destroy_chip_ctx()
127 rdev->qplib_res.cctx = rdev->chip_ctx; in bnxt_re_setup_chip_ctx()
/linux-6.3-rc2/crypto/
A 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()
A 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-6.3-rc2/net/tls/
A Dtls_main.c360 struct cipher_context *cctx; in do_tls_getsockopt_conf() local
379 cctx = &ctx->tx; in do_tls_getsockopt_conf()
382 cctx = &ctx->rx; in do_tls_getsockopt_conf()
409 cctx->iv + TLS_CIPHER_AES_GCM_128_SALT_SIZE, in do_tls_getsockopt_conf()
431 cctx->iv + TLS_CIPHER_AES_GCM_256_SALT_SIZE, in do_tls_getsockopt_conf()
453 memcpy(aes_ccm_128->rec_seq, cctx->rec_seq, in do_tls_getsockopt_conf()
472 memcpy(chacha20_poly1305->rec_seq, cctx->rec_seq, in do_tls_getsockopt_conf()
489 cctx->iv + TLS_CIPHER_SM4_GCM_SALT_SIZE, in do_tls_getsockopt_conf()
491 memcpy(sm4_gcm_info->rec_seq, cctx->rec_seq, in do_tls_getsockopt_conf()
507 cctx->iv + TLS_CIPHER_SM4_CCM_SALT_SIZE, in do_tls_getsockopt_conf()
[all …]
A Dtls_sw.c2503 struct cipher_context *cctx; in tls_set_sw_offload() local
2546 cctx = &ctx->tx; in tls_set_sw_offload()
2556 cctx = &ctx->rx; in tls_set_sw_offload()
2730 if (!cctx->iv) { in tls_set_sw_offload()
2736 memcpy(cctx->iv, salt, salt_size); in tls_set_sw_offload()
2737 memcpy(cctx->iv + salt_size, iv, iv_size); in tls_set_sw_offload()
2739 if (!cctx->rec_seq) { in tls_set_sw_offload()
2783 kfree(cctx->rec_seq); in tls_set_sw_offload()
2784 cctx->rec_seq = NULL; in tls_set_sw_offload()
2786 kfree(cctx->iv); in tls_set_sw_offload()
[all …]
/linux-6.3-rc2/drivers/pinctrl/intel/
A Dpinctrl-cherryview.c818 if (cctx->intr_lines[i] == offset) { in chv_gpio_request_enable()
819 cctx->intr_lines[i] = CHV_INVALID_HWIRQ; in chv_gpio_request_enable()
1337 cctx->intr_lines[intsel] = hwirq; in chv_gpio_irq_startup()
1357 if (cctx->intr_lines[intsel] == pin) in chv_gpio_set_intr_line()
1362 cctx->intr_lines[intsel] = pin; in chv_gpio_set_intr_line()
1374 cctx->intr_lines[intsel], pin); in chv_gpio_set_intr_line()
1394 cctx->intr_lines[i] = pin; in chv_gpio_set_intr_line()
1491 offset = cctx->intr_lines[intr_line]; in chv_gpio_irq_handler()
1695 struct intel_community_context *cctx; in chv_pinctrl_probe() local
1743 cctx = &pctrl->context.communities[0]; in chv_pinctrl_probe()
[all …]
/linux-6.3-rc2/arch/x86/crypto/
A 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()
A Dcamellia.h22 extern int __camellia_setkey(struct camellia_ctx *cctx,
/linux-6.3-rc2/arch/sparc/mm/
A 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);

Completed in 103 milliseconds

12