| /linux-6.15/tools/testing/selftests/bpf/progs/ |
| H A D | crypto_basic.c | 21 struct bpf_crypto_ctx *cctx; in crypto_release() local 26 cctx = bpf_crypto_ctx_create(¶ms, sizeof(params), &err); in crypto_release() 28 if (!cctx) { in crypto_release() 33 bpf_crypto_ctx_release(cctx); in crypto_release() 47 struct bpf_crypto_ctx *cctx; in crypto_acquire() local 52 cctx = bpf_crypto_ctx_create(¶ms, sizeof(params), &err); in crypto_acquire() 54 if (!cctx) { in crypto_acquire() 59 cctx = bpf_crypto_ctx_acquire(cctx); in crypto_acquire() 60 if (!cctx) in crypto_acquire() 63 bpf_crypto_ctx_release(cctx); in crypto_acquire()
|
| H A D | crypto_bench.c | 24 struct bpf_crypto_ctx *cctx; in crypto_setup() local 41 cctx = bpf_crypto_ctx_create(¶ms, sizeof(params), &err); in crypto_setup() 43 if (!cctx) { in crypto_setup() 48 err = crypto_ctx_insert(cctx); in crypto_setup()
|
| H A D | crypto_sanity.c | 61 struct bpf_crypto_ctx *cctx; in skb_crypto_setup() local 73 cctx = bpf_crypto_ctx_create(¶ms, sizeof(params), &err); in skb_crypto_setup() 75 if (!cctx) { in skb_crypto_setup() 80 err = crypto_ctx_insert(cctx); in skb_crypto_setup()
|
| /linux-6.15/lib/zstd/ |
| H A D | zstd_compress_module.c | 32 cctx, ZSTD_reset_session_and_parameters)); in zstd_cctx_init() 34 cctx, pledged_src_size)); in zstd_cctx_init() 36 cctx, ZSTD_c_windowLog, parameters->cParams.windowLog)); in zstd_cctx_init() 38 cctx, ZSTD_c_hashLog, parameters->cParams.hashLog)); in zstd_cctx_init() 40 cctx, ZSTD_c_chainLog, parameters->cParams.chainLog)); in zstd_cctx_init() 44 cctx, ZSTD_c_minMatch, parameters->cParams.minMatch)); in zstd_cctx_init() 48 cctx, ZSTD_c_strategy, parameters->cParams.strategy)); in zstd_cctx_init() 98 return ZSTD_CCtx_setParameter(cctx, param, value); in zstd_cctx_set_param() 168 size_t zstd_free_cctx(zstd_cctx *cctx) in zstd_free_cctx() argument 170 return ZSTD_freeCCtx(cctx); in zstd_free_cctx() [all …]
|
| /linux-6.15/lib/zstd/compress/ |
| H A D | zstd_compress.c | 103 ZSTD_memset(cctx, 0, sizeof(*cctx)); in ZSTD_initCCtx() 146 return cctx; in ZSTD_initStaticCCtx() 156 ZSTD_memset(&cctx->localDict, 0, sizeof(cctx->localDict)); in ZSTD_clearAllDicts() 157 ZSTD_memset(&cctx->prefixDict, 0, sizeof(cctx->prefixDict)); in ZSTD_clearAllDicts() 173 ZSTD_cwksp_free(&cctx->workspace, cctx->customMem); in ZSTD_freeCCtxContent() 192 (void)cctx; in ZSTD_sizeof_mtctx() 201 return (cctx->workspace.workspace == cctx ? 0 : sizeof(*cctx)) in ZSTD_sizeof_CCtx() 4742 ms, &cctx->workspace, &cctx->appliedParams, in ZSTD_compressContinue_internal() 5186 &cctx->ldmState, &cctx->workspace, &cctx->appliedParams, dict, dictSize, in ZSTD_compressBegin_internal() 6238 if (cctx->cdict && !cctx->localDict.cdict) { in ZSTD_CCtx_init_compressStream2() [all …]
|
| H A D | zstd_compress_internal.h | 1516 size_t ZSTD_convertBlockSequences(ZSTD_CCtx* cctx, 1559 size_t ZSTD_compressBegin_advanced_internal(ZSTD_CCtx* cctx, 1569 size_t ZSTD_compress_advanced_internal(ZSTD_CCtx* cctx, 1593 void ZSTD_referenceExternalSequences(ZSTD_CCtx* cctx, rawSeq* seq, size_t nbSeq); 1602 void ZSTD_CCtx_trace(ZSTD_CCtx* cctx, size_t extraCSize); 1615 size_t ZSTD_compressBegin_usingCDict_deprecated(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict); 1617 size_t ZSTD_compressContinue_public(ZSTD_CCtx* cctx, 1621 size_t ZSTD_compressEnd_public(ZSTD_CCtx* cctx, 1625 size_t ZSTD_compressBlock_deprecated(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* sr…
|
| /linux-6.15/drivers/misc/ |
| H A D | fastrpc.c | 488 cctx = ctx->cctx; in fastrpc_context_free() 578 struct fastrpc_channel_ctx *cctx = user->cctx; in fastrpc_context_alloc() local 618 ctx->cctx = cctx; in fastrpc_context_alloc() 1117 cctx = fl->cctx; in fastrpc_invoke_send() 1286 fl->cctx->vmperms, fl->cctx->vmcount); in fastrpc_init_create_static_process() 1474 struct fastrpc_channel_ctx *cctx = fl->cctx; in fastrpc_session_alloc() local 1523 struct fastrpc_channel_ctx *cctx = fl->cctx; in fastrpc_device_release() local 1569 cctx = fdevice->cctx; in fastrpc_device_open() 1585 fl->cctx = cctx; in fastrpc_device_open() 2167 sess = &cctx->session[cctx->sesscount++]; in fastrpc_cb_probe() [all …]
|
| /linux-6.15/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
| H A D | chan.c | 76 if (cctx) { in nvkm_chan_cctx_put() 82 list_del(&cctx->head); in nvkm_chan_cctx_put() 83 kfree(cctx); in nvkm_chan_cctx_put() 97 struct nvkm_cctx *cctx; in nvkm_chan_cctx_get() local 102 cctx = nvkm_list_find(cctx, &chan->cctxs, head, in nvkm_chan_cctx_get() 103 cctx->vctx->ectx->engn == engn && cctx->vctx->vmm == chan->vmm); in nvkm_chan_cctx_get() 104 if (cctx) { in nvkm_chan_cctx_get() 105 refcount_inc(&cctx->refs); in nvkm_chan_cctx_get() 106 *pcctx = cctx; in nvkm_chan_cctx_get() 120 if (!(cctx = *pcctx = kzalloc(sizeof(*cctx), GFP_KERNEL))) { in nvkm_chan_cctx_get() [all …]
|
| H A D | uchan.c | 70 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 …]
|
| H A D | gv100.c | 92 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()
|
| H A D | g84.c | 106 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()
|
| H A D | nv40.c | 125 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()
|
| H A D | nv50.c | 150 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()
|
| /linux-6.15/include/linux/ |
| H A D | zstd_lib.h | 271 ZSTDLIB_API size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx, 602 ZSTDLIB_API size_t ZSTD_compress2( ZSTD_CCtx* cctx, 802 ZSTDLIB_API size_t ZSTD_compressStream2( ZSTD_CCtx* cctx, 1122 ZSTDLIB_API size_t ZSTD_CCtx_refPrefix(ZSTD_CCtx* cctx, 1647 ZSTD_compressSequences(ZSTD_CCtx* cctx, 1672 ZSTD_compressSequencesAndLiterals(ZSTD_CCtx* cctx, 1956 size_t ZSTD_compress_advanced(ZSTD_CCtx* cctx, 1968 size_t ZSTD_compress_usingCDict_advanced(ZSTD_CCtx* cctx, 2394 ZSTD_CCtx* cctx, const ZSTD_CCtx_params* params); 2403 ZSTD_CCtx* cctx, [all …]
|
| H A D | zstd.h | 186 size_t zstd_cctx_set_param(zstd_cctx *cctx, zstd_cparameter param, int value); 241 size_t zstd_compress_cctx(zstd_cctx *cctx, void *dst, size_t dst_capacity, 258 size_t zstd_free_cctx(zstd_cctx* cctx); 305 size_t zstd_compress_using_cdict(zstd_cctx *cctx, void *dst, 627 zstd_cctx *cctx, 686 size_t zstd_compress_sequences_and_literals(zstd_cctx *cctx, void* dst, size_t dst_capacity,
|
| /linux-6.15/drivers/infiniband/hw/bnxt_re/ |
| H A D | qplib_res.h | 311 struct bnxt_qplib_chip_ctx *cctx; member 330 return (cctx->chip_num == CHIP_NUM_58818 || in bnxt_qplib_is_chip_gen_p7() 331 cctx->chip_num == CHIP_NUM_57608); in bnxt_qplib_is_chip_gen_p7() 336 return (cctx->chip_num == CHIP_NUM_57508 || in bnxt_qplib_is_chip_gen_p5() 337 cctx->chip_num == CHIP_NUM_57504 || in bnxt_qplib_is_chip_gen_p5() 338 cctx->chip_num == CHIP_NUM_57502); in bnxt_qplib_is_chip_gen_p5() 343 return bnxt_qplib_is_chip_gen_p5(cctx) || bnxt_qplib_is_chip_gen_p7(cctx); in bnxt_qplib_is_chip_gen_p5_p7() 354 return bnxt_qplib_is_chip_gen_p5_p7(cctx) ? in bnxt_qplib_get_ring_type() 539 struct bnxt_qplib_chip_ctx *cctx, in bnxt_qplib_ring_nq_db() argument 545 if (bnxt_qplib_is_chip_gen_p5_p7(cctx)) in bnxt_qplib_ring_nq_db() [all …]
|
| H A D | main.c | 90 struct bnxt_qplib_chip_ctx *cctx; in bnxt_re_set_db_offset() local 100 cctx = rdev->chip_ctx; in bnxt_re_set_db_offset() 131 struct bnxt_qplib_chip_ctx *cctx; in bnxt_re_set_drv_mode() local 133 cctx = rdev->chip_ctx; in bnxt_re_set_drv_mode() 158 rdev->qplib_res.cctx = NULL; in bnxt_re_destroy_chip_ctx() 571 struct bnxt_qplib_chip_ctx *cctx; in bnxt_re_hwrm_qcaps() local 576 cctx = rdev->chip_ctx; in bnxt_re_hwrm_qcaps() 603 cctx = rdev->chip_ctx; in bnxt_re_hwrm_dbr_pacing_qcfg() 614 cctx->dbr_stat_db_fifo = in bnxt_re_hwrm_dbr_pacing_qcfg() 1970 cctx = rdev->chip_ctx; in bnxt_re_query_hwrm_intf_version() [all …]
|
| H A D | qplib_sp.c | 62 if (!bnxt_qplib_is_chip_gen_p5_p7(rcfw->res->cctx)) in bnxt_qplib_is_atomic_cap() 98 struct bnxt_qplib_chip_ctx *cctx; in bnxt_qplib_get_dev_attr() local 104 cctx = rcfw->res->cctx; in bnxt_qplib_get_dev_attr() 133 if (!bnxt_qplib_is_chip_gen_p5_p7(rcfw->res->cctx)) { in bnxt_qplib_get_dev_attr() 142 if (cctx->modes.wqe_mode == BNXT_QPLIB_WQE_MODE_VARIABLE) in bnxt_qplib_get_dev_attr() 149 if (!bnxt_qplib_is_chip_gen_p7(rcfw->res->cctx)) in bnxt_qplib_get_dev_attr() 165 if (!bnxt_qplib_is_chip_gen_p7(rcfw->res->cctx)) in bnxt_qplib_get_dev_attr() 193 if (rcfw->res->cctx->hwrm_intf_ver >= HWRM_VERSION_DEV_ATTR_MAX_DPI) in bnxt_qplib_get_dev_attr() 968 if (bnxt_qplib_is_chip_gen_p5_p7(res->cctx)) { in bnxt_qplib_modify_cc() 1091 if (bnxt_qplib_is_chip_gen_p5_p7(res->cctx)) in bnxt_qplib_query_cc_param() [all …]
|
| /linux-6.15/drivers/block/zram/ |
| H A D | backend_deflate.c | 15 struct z_stream_s cctx; member 38 if (zctx->cctx.workspace) { in deflate_destroy() 39 zlib_deflateEnd(&zctx->cctx); in deflate_destroy() 40 vfree(zctx->cctx.workspace); in deflate_destroy() 61 zctx->cctx.workspace = vzalloc(sz); in deflate_create() 62 if (!zctx->cctx.workspace) in deflate_create() 65 ret = zlib_deflateInit2(&zctx->cctx, params->level, Z_DEFLATED, in deflate_create() 94 deflate = &zctx->cctx; in deflate_compress()
|
| H A D | backend_zstd.c | 11 zstd_cctx *cctx; member 109 zstd_free_cctx(zctx->cctx); in zstd_destroy() 137 zctx->cctx = zstd_init_cctx(zctx->cctx_mem, sz); in zstd_create() 138 if (!zctx->cctx) in zstd_create() 152 zctx->cctx = zstd_create_cctx_advanced(zp->custom_mem); in zstd_create() 153 if (!zctx->cctx) in zstd_create() 177 ret = zstd_compress_cctx(zctx->cctx, req->dst, req->dst_len, in zstd_compress() 180 ret = zstd_compress_using_cdict(zctx->cctx, req->dst, in zstd_compress()
|
| /linux-6.15/crypto/ |
| H A D | zstd.c | 21 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() 143 out_len = zstd_compress_cctx(zctx->cctx, dst, *dlen, src, slen, ¶ms); in __zstd_compress()
|
| H A D | camellia_generic.c | 963 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.15/drivers/pinctrl/intel/ |
| H A D | pinctrl-cherryview.c | 761 if (cctx->intr_lines[i] == offset) { in chv_gpio_request_enable() 762 cctx->intr_lines[i] = CHV_INVALID_HWIRQ; in chv_gpio_request_enable() 1267 cctx->intr_lines[intsel] = hwirq; in chv_gpio_irq_startup() 1286 if (cctx->intr_lines[intsel] == pin) in chv_gpio_set_intr_line() 1291 cctx->intr_lines[intsel] = pin; in chv_gpio_set_intr_line() 1303 cctx->intr_lines[intsel], pin); in chv_gpio_set_intr_line() 1323 cctx->intr_lines[i] = pin; in chv_gpio_set_intr_line() 1414 offset = cctx->intr_lines[intr_line]; in chv_gpio_irq_handler() 1614 struct intel_community_context *cctx; in chv_pinctrl_probe() local 1660 cctx = &pctrl->context.communities[0]; in chv_pinctrl_probe() [all …]
|
| /linux-6.15/arch/x86/crypto/ |
| H A D | camellia_glue.c | 1230 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()
|
| H A D | camellia.h | 22 extern int __camellia_setkey(struct camellia_ctx *cctx,
|