Home
last modified time | relevance | path

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

/Linux-v6.1/lib/zstd/compress/
Dzstd_compress.c79 static void ZSTD_initCCtx(ZSTD_CCtx* cctx, ZSTD_customMem memManager) in ZSTD_initCCtx() argument
81 assert(cctx != NULL); in ZSTD_initCCtx()
82 ZSTD_memset(cctx, 0, sizeof(*cctx)); in ZSTD_initCCtx()
83 cctx->customMem = memManager; in ZSTD_initCCtx()
84 cctx->bmi2 = ZSTD_cpuid_bmi2(ZSTD_cpuid()); in ZSTD_initCCtx()
85 { size_t const err = ZSTD_CCtx_reset(cctx, ZSTD_reset_parameters); in ZSTD_initCCtx()
96 { ZSTD_CCtx* const cctx = (ZSTD_CCtx*)ZSTD_customMalloc(sizeof(ZSTD_CCtx), customMem); in ZSTD_createCCtx_advanced() local
97 if (!cctx) return NULL; in ZSTD_createCCtx_advanced()
98 ZSTD_initCCtx(cctx, customMem); in ZSTD_createCCtx_advanced()
99 return cctx; in ZSTD_createCCtx_advanced()
[all …]
Dzstd_compress_internal.h1142 size_t ZSTD_compressBegin_advanced_internal(ZSTD_CCtx* cctx,
1152 size_t ZSTD_compress_advanced_internal(ZSTD_CCtx* cctx,
1177 size_t ZSTD_referenceExternalSequences(ZSTD_CCtx* cctx, rawSeq* seq, size_t nbSeq);
1186 void ZSTD_CCtx_trace(ZSTD_CCtx* cctx, size_t extraCSize);
/Linux-v6.1/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.1/drivers/misc/
Dfastrpc.c236 struct fastrpc_channel_ctx *cctx; member
268 struct fastrpc_channel_ctx *cctx; member
279 struct fastrpc_channel_ctx *cctx; member
306 &(map->fl->cctx->vmperms[0].vmid), &perm, 1); in fastrpc_free_map()
409 struct fastrpc_channel_ctx *cctx; in fastrpc_channel_ctx_free() local
411 cctx = container_of(ref, struct fastrpc_channel_ctx, refcount); in fastrpc_channel_ctx_free()
413 kfree(cctx); in fastrpc_channel_ctx_free()
416 static void fastrpc_channel_ctx_get(struct fastrpc_channel_ctx *cctx) in fastrpc_channel_ctx_get() argument
418 kref_get(&cctx->refcount); in fastrpc_channel_ctx_get()
421 static void fastrpc_channel_ctx_put(struct fastrpc_channel_ctx *cctx) in fastrpc_channel_ctx_put() argument
[all …]
/Linux-v6.1/include/linux/
Dzstd_lib.h187 ZSTDLIB_API size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx); /* accept NULL pointer */
197 ZSTDLIB_API size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx,
451 ZSTDLIB_API size_t ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, int value);
468 ZSTDLIB_API size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize);
490 ZSTDLIB_API size_t ZSTD_CCtx_reset(ZSTD_CCtx* cctx, ZSTD_ResetDirective reset);
502 ZSTDLIB_API size_t ZSTD_compress2( ZSTD_CCtx* cctx,
693 ZSTDLIB_API size_t ZSTD_compressStream2( ZSTD_CCtx* cctx,
851 ZSTDLIB_API size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx,
934 ZSTDLIB_API size_t ZSTD_CCtx_loadDictionary(ZSTD_CCtx* cctx, const void* dict, size_t dictSize);
948 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.1/drivers/infiniband/hw/bnxt_re/
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()
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()
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()
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.c385 bnxt_qplib_ring_nq_db(&nq->nq_db.dbinfo, nq->res->cctx, true); in bnxt_qplib_service_nq()
410 bnxt_qplib_ring_nq_db(&nq->nq_db.dbinfo, nq->res->cctx, false); in bnxt_qplib_nq_stop_irq()
470 bnxt_qplib_ring_nq_db(&nq->nq_db.dbinfo, nq->res->cctx, true); in bnxt_qplib_nq_start_irq()
901 qp->cctx = res->cctx; in bnxt_qplib_create_qp1()
977 psn_sz = bnxt_qplib_is_chip_gen_p5(res->cctx) ? in bnxt_qplib_create_qp()
1110 qp->cctx = res->cctx; in bnxt_qplib_create_qp()
1575 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-v6.1/net/tls/
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()
410 cctx->iv + TLS_CIPHER_AES_GCM_128_SALT_SIZE, in do_tls_getsockopt_conf()
412 memcpy(crypto_info_aes_gcm_128->rec_seq, cctx->rec_seq, in do_tls_getsockopt_conf()
434 cctx->iv + TLS_CIPHER_AES_GCM_256_SALT_SIZE, in do_tls_getsockopt_conf()
436 memcpy(crypto_info_aes_gcm_256->rec_seq, cctx->rec_seq, in do_tls_getsockopt_conf()
456 cctx->iv + TLS_CIPHER_AES_CCM_128_SALT_SIZE, in do_tls_getsockopt_conf()
458 memcpy(aes_ccm_128->rec_seq, cctx->rec_seq, in do_tls_getsockopt_conf()
477 cctx->iv + TLS_CIPHER_CHACHA20_POLY1305_SALT_SIZE, in do_tls_getsockopt_conf()
[all …]
Dtls_sw.c2470 struct cipher_context *cctx; in tls_set_sw_offload() local
2513 cctx = &ctx->tx; in tls_set_sw_offload()
2523 cctx = &ctx->rx; in tls_set_sw_offload()
2696 cctx->iv = kmalloc(iv_size + salt_size, GFP_KERNEL); in tls_set_sw_offload()
2697 if (!cctx->iv) { in tls_set_sw_offload()
2703 memcpy(cctx->iv, salt, salt_size); in tls_set_sw_offload()
2704 memcpy(cctx->iv + salt_size, iv, iv_size); in tls_set_sw_offload()
2705 cctx->rec_seq = kmemdup(rec_seq, rec_seq_size, GFP_KERNEL); in tls_set_sw_offload()
2706 if (!cctx->rec_seq) { in tls_set_sw_offload()
2750 kfree(cctx->rec_seq); in tls_set_sw_offload()
[all …]
/Linux-v6.1/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.1/drivers/pinctrl/intel/
Dpinctrl-cherryview.c811 struct intel_community_context *cctx = &pctrl->context.communities[0]; in chv_gpio_request_enable() local
815 for (i = 0; i < ARRAY_SIZE(cctx->intr_lines); i++) { in chv_gpio_request_enable()
816 if (cctx->intr_lines[i] == offset) { in chv_gpio_request_enable()
817 cctx->intr_lines[i] = CHV_INVALID_HWIRQ; in chv_gpio_request_enable()
1314 struct intel_community_context *cctx = &pctrl->context.communities[0]; in chv_gpio_irq_startup() local
1331 if (cctx->intr_lines[intsel] == CHV_INVALID_HWIRQ) { in chv_gpio_irq_startup()
1335 cctx->intr_lines[intsel] = hwirq; in chv_gpio_irq_startup()
1347 struct intel_community_context *cctx = &pctrl->context.communities[0]; in chv_gpio_set_intr_line() local
1355 if (cctx->intr_lines[intsel] == pin) in chv_gpio_set_intr_line()
1358 if (cctx->intr_lines[intsel] == CHV_INVALID_HWIRQ) { in chv_gpio_set_intr_line()
[all …]
/Linux-v6.1/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.1/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);
/Linux-v6.1/lib/zstd/common/
Dzstd_internal.h427 void ZSTD_invalidateRepCodes(ZSTD_CCtx* cctx); /* zstdmt, adaptive_compression (shouldn't get thi…