Home
last modified time | relevance | path

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

/linux/lib/zstd/
H A Dzstd_compress_module.c28 static size_t zstd_cctx_init(zstd_cctx *cctx, const zstd_parameters *parameters, in zstd_cctx_init() argument
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()
42 cctx, ZSTD_c_searchLog, parameters->cParams.searchLog)); in zstd_cctx_init()
44 cctx, ZSTD_c_minMatch, parameters->cParams.minMatch)); in zstd_cctx_init()
46 cctx, ZSTD_c_targetLength, parameters->cParams.targetLength)); in zstd_cctx_init()
48 cctx, ZSTD_c_strategy, parameters->cParams.strategy)); in zstd_cctx_init()
[all …]
/linux/lib/zstd/compress/
H A Dzstd_compress.c100 static void ZSTD_initCCtx(ZSTD_CCtx* cctx, ZSTD_customMem memManager) in ZSTD_initCCtx() argument
102 assert(cctx != NULL); in ZSTD_initCCtx()
103 ZSTD_memset(cctx, 0, sizeof(*cctx)); in ZSTD_initCCtx()
104 cctx->customMem = memManager; in ZSTD_initCCtx()
105 cctx->bmi2 = ZSTD_cpuSupportsBmi2(); in ZSTD_initCCtx()
106 { size_t const err = ZSTD_CCtx_reset(cctx, ZSTD_reset_parameters); in ZSTD_initCCtx()
117 { ZSTD_CCtx* const cctx = (ZSTD_CCtx*)ZSTD_customMalloc(sizeof(ZSTD_CCtx), customMem); in ZSTD_createCCtx_advanced() local
118 if (!cctx) return NULL; in ZSTD_createCCtx_advanced()
119 ZSTD_initCCtx(cctx, customMem); in ZSTD_createCCtx_advanced()
120 return cctx; in ZSTD_createCCtx_advanced()
[all …]
H A Dzstd_compress_internal.h1516 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/tools/testing/selftests/bpf/progs/
H A Dcrypto_basic.c21 struct bpf_crypto_ctx *cctx; in crypto_release() local
26 cctx = bpf_crypto_ctx_create(&params, 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(&params, 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 Dcrypto_bench.c33 struct bpf_crypto_ctx *cctx; in crypto_setup()
48 cctx = bpf_crypto_ctx_create(&params, sizeof(params), &err); in crypto_setup()
50 if (!cctx) { in crypto_setup()
55 err = crypto_ctx_insert(cctx);
24 struct bpf_crypto_ctx *cctx; crypto_setup() local
H A Dcrypto_sanity.c65 struct bpf_crypto_ctx *cctx; in skb_crypto_setup()
80 cctx = bpf_crypto_ctx_create(&params, sizeof(params), &err); in skb_crypto_setup()
81 if (!cctx) { in skb_crypto_setup()
86 err = crypto_ctx_insert(cctx); in decrypt_sanity()
61 struct bpf_crypto_ctx *cctx; skb_crypto_setup() local
/linux/drivers/misc/
H A Dfastrpc.c250 struct fastrpc_channel_ctx *cctx; member
291 struct fastrpc_channel_ctx *cctx; member
302 struct fastrpc_channel_ctx *cctx; member
318 static inline dma_addr_t fastrpc_ipa_to_dma_addr(struct fastrpc_channel_ctx *cctx, dma_addr_t iova) in fastrpc_ipa_to_dma_addr()
320 if (!cctx->soc_data->sid_pos) in fastrpc_ipa_to_dma_addr()
322 return iova & GENMASK_ULL(cctx->soc_data->sid_pos - 1, 0);
329 static inline u64 fastrpc_sid_offset(struct fastrpc_channel_ctx *cctx, in fastrpc_sid_offset()
332 return (u64)sctx->sid << cctx->soc_data->sid_pos;
344 int vmid = map->fl->cctx->vmperms[0].vmid; in fastrpc_free_map()
426 fastrpc_ipa_to_dma_addr(buf->fl->cctx, bu in __fastrpc_buf_alloc()
316 fastrpc_ipa_to_dma_addr(struct fastrpc_channel_ctx * cctx,dma_addr_t iova) fastrpc_ipa_to_dma_addr() argument
327 fastrpc_sid_offset(struct fastrpc_channel_ctx * cctx,struct fastrpc_session_ctx * sctx) fastrpc_sid_offset() argument
483 struct fastrpc_channel_ctx *cctx; fastrpc_channel_ctx_free() local
490 fastrpc_channel_ctx_get(struct fastrpc_channel_ctx * cctx) fastrpc_channel_ctx_get() argument
495 fastrpc_channel_ctx_put(struct fastrpc_channel_ctx * cctx) fastrpc_channel_ctx_put() argument
503 struct fastrpc_channel_ctx *cctx; fastrpc_context_free() local
598 struct fastrpc_channel_ctx *cctx = user->cctx; fastrpc_context_alloc() local
1167 struct fastrpc_channel_ctx *cctx; fastrpc_invoke_send() local
1532 struct fastrpc_channel_ctx *cctx = fl->cctx; fastrpc_session_alloc() local
1552 fastrpc_session_free(struct fastrpc_channel_ctx * cctx,struct fastrpc_session_ctx * session) fastrpc_session_free() argument
1581 struct fastrpc_channel_ctx *cctx = fl->cctx; fastrpc_device_release() local
1621 struct fastrpc_channel_ctx *cctx; fastrpc_device_open() local
1780 struct fastrpc_channel_ctx *cctx = fl->cctx; fastrpc_get_info_from_kernel() local
2195 struct fastrpc_channel_ctx *cctx; fastrpc_cb_probe() local
2250 struct fastrpc_channel_ctx *cctx = dev_get_drvdata(pdev->dev.parent); fastrpc_cb_remove() local
2280 fastrpc_device_register(struct device * dev,struct fastrpc_channel_ctx * cctx,bool is_secured,const char * domain) fastrpc_device_register() argument
2475 struct fastrpc_channel_ctx *cctx = dev_get_drvdata(&rpdev->dev); fastrpc_rpmsg_remove() local
2507 struct fastrpc_channel_ctx *cctx = dev_get_drvdata(&rpdev->dev); fastrpc_rpmsg_callback() local
[all...]
/linux/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
H A Dchan.c41 nvkm_chan_cctx_bind(struct nvkm_chan *chan, struct nvkm_engn *engn, struct nvkm_cctx *cctx) in nvkm_chan_cctx_bind() argument
50 CHAN_TRACE(chan, "%sbind cctx %d[%s]", cctx ? "" : "un", engn->id, engine->subdev.name); in nvkm_chan_cctx_bind()
62 engn->func->bind(engn, cctx, chan); in nvkm_chan_cctx_bind()
74 struct nvkm_cctx *cctx = *pcctx; in nvkm_chan_cctx_put() local
76 if (cctx) { in nvkm_chan_cctx_put()
77 struct nvkm_engn *engn = cctx->vctx->ectx->engn; in nvkm_chan_cctx_put()
79 if (refcount_dec_and_mutex_lock(&cctx->refs, &chan->cgrp->mutex)) { in nvkm_chan_cctx_put()
81 nvkm_cgrp_vctx_put(chan->cgrp, &cctx->vctx); in nvkm_chan_cctx_put()
82 list_del(&cctx->head); in nvkm_chan_cctx_put()
83 kfree(cctx); in nvkm_chan_cctx_put()
[all …]
H 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()
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 …]
H 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()
/linux/include/linux/
H A Dzstd_lib.h261 ZSTDLIB_API size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx); /* compatible with NULL pointer */
271 ZSTDLIB_API size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx,
549 ZSTDLIB_API size_t ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, int value);
566 ZSTDLIB_API size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize);
588 ZSTDLIB_API size_t ZSTD_CCtx_reset(ZSTD_CCtx* cctx, ZSTD_ResetDirective reset);
602 ZSTDLIB_API size_t ZSTD_compress2( ZSTD_CCtx* cctx,
802 ZSTDLIB_API size_t ZSTD_compressStream2( ZSTD_CCtx* cctx,
991 ZSTDLIB_API size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx,
1087 ZSTDLIB_API size_t ZSTD_CCtx_loadDictionary(ZSTD_CCtx* cctx, const void* dict, size_t dictSize);
1101 ZSTDLIB_API size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict);
[all …]
H A Dzstd.h186 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/drivers/block/zram/
H A Dbackend_deflate.c15 struct z_stream_s cctx; member
40 if (zctx->cctx.workspace) { in deflate_destroy()
41 zlib_deflateEnd(&zctx->cctx); in deflate_destroy()
42 vfree(zctx->cctx.workspace); in deflate_destroy()
63 zctx->cctx.workspace = vzalloc(sz); in deflate_create()
64 if (!zctx->cctx.workspace) in deflate_create()
67 ret = zlib_deflateInit2(&zctx->cctx, params->level, Z_DEFLATED, in deflate_create()
96 deflate = &zctx->cctx; in deflate_compress()
H A Dbackend_zstd.c11 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/crypto/
H A Dzstd.c25 zstd_cctx *cctx; member
83 ctx->cctx = zstd_init_cctx(ctx->wksp, ctx->wksp_size); in zstd_compress_one()
84 if (!ctx->cctx) in zstd_compress_one()
87 out_len = zstd_compress_cctx(ctx->cctx, dst, req->dlen, src, req->slen, in zstd_compress_one()
118 ctx->cctx = zstd_init_cstream(&ctx->params, 0, ctx->wksp, ctx->wksp_size); in zstd_compress()
119 if (!ctx->cctx) { in zstd_compress()
154 num_bytes = zstd_compress_stream(ctx->cctx, &outbuf, &inbuf); in zstd_compress()
160 pending_bytes = zstd_flush_stream(ctx->cctx, &outbuf); in zstd_compress()
173 num_bytes = zstd_end_stream(ctx->cctx, &outbuf); in zstd_compress()
/linux/drivers/infiniband/hw/bng_re/
H A Dbng_dev.c63 rdev->bng_res.cctx = NULL; in bng_re_destroy_chip_ctx()
84 rdev->bng_res.cctx = rdev->chip_ctx; in bng_re_setup_chip_ctx()
218 struct bng_re_chip_ctx *cctx; in bng_re_query_hwrm_version() local
236 cctx = rdev->chip_ctx; in bng_re_query_hwrm_version()
237 cctx->hwrm_intf_ver = in bng_re_query_hwrm_version()
243 cctx->hwrm_cmd_max_timeout = le16_to_cpu(ver_get_resp.max_req_timeout); in bng_re_query_hwrm_version()
245 if (!cctx->hwrm_cmd_max_timeout) in bng_re_query_hwrm_version()
246 cctx->hwrm_cmd_max_timeout = BNG_ROCE_FW_MAX_TIMEOUT; in bng_re_query_hwrm_version()
H A Dbng_fw.c107 rcfw->max_timeout = res->cctx->hwrm_cmd_max_timeout; in bng_re_alloc_fw_channel()
266 rcfw->res->cctx, true); in bng_re_service_creq()
565 bng_re_ring_nq_db(&creq->creq_db.dbinfo, res->cctx, true); in bng_re_rcfw_start_irq()
615 bng_re_ring_nq_db(&creq->creq_db.dbinfo, rcfw->res->cctx, false); in bng_re_rcfw_stop_irq()
/linux/drivers/infiniband/hw/bnxt_re/
H A Dqplib_rcfw.c786 rcfw->res->cctx, true); in bnxt_qplib_service_creq()
856 if (is_virtfn || bnxt_qplib_is_chip_gen_p5_p7(rcfw->res->cctx)) in bnxt_qplib_init_rcfw()
908 if (bnxt_qplib_roce_mirror_supported(rcfw->res->cctx)) { in bnxt_qplib_init_rcfw()
977 rcfw->max_timeout = res->cctx->hwrm_cmd_max_timeout; in bnxt_qplib_alloc_rcfw_channel()
997 bnxt_qplib_ring_nq_db(&creq->creq_db.dbinfo, rcfw->res->cctx, false); in bnxt_qplib_rcfw_stop_irq()
1061 bnxt_qplib_ring_nq_db(&creq->creq_db.dbinfo, res->cctx, true); in bnxt_qplib_rcfw_start_irq()
H A Dbnxt_re.h274 rdev->rcfw.res->cctx->hwrm_intf_ver < HWRM_VERSION_READ_CTX) in bnxt_re_read_context_allowed()
H A Dib_verbs.c118 static u8 __qp_access_flags_from_ib(struct bnxt_qplib_chip_ctx *cctx, int iflags) in __qp_access_flags_from_ib() argument
122 if (!bnxt_qplib_is_chip_gen_p5_p7(cctx)) in __qp_access_flags_from_ib()
139 static int __qp_access_flags_to_ib(struct bnxt_qplib_chip_ctx *cctx, u8 qflags) in __qp_access_flags_to_ib() argument
143 if (!bnxt_qplib_is_chip_gen_p5_p7(cctx)) in __qp_access_flags_to_ib()
1452 qp->qplib_qp.cctx = rdev->chip_ctx; in bnxt_re_init_rq_attr()
1762 qplqp->cctx = rdev->chip_ctx;
1875 qplqp->cctx = rdev->chip_ctx; in bnxt_re_create_qp()
2505 __qp_access_flags_from_ib(qp->qplib_qp.cctx, in bnxt_re_modify_qp()
2718 qp_attr->qp_access_flags = __qp_access_flags_to_ib(qp->qplib_qp.cctx, in bnxt_re_build_qp1_send_v2()
3463 struct bnxt_qplib_chip_ctx *cctx; in bnxt_re_create_cq()
3320 struct bnxt_qplib_chip_ctx *cctx; bnxt_re_destroy_cq() local
3377 struct bnxt_qplib_chip_ctx *cctx; bnxt_re_create_user_cq() local
[all...]
/linux/arch/x86/crypto/
H A Dcamellia.h22 extern int __camellia_setkey(struct camellia_ctx *cctx,
/linux/net/tls/
H A Dtls_main.c434 struct cipher_context *cctx;
453 cctx = &ctx->tx; in do_tls_getsockopt_conf()
456 cctx = &ctx->rx; in do_tls_getsockopt_conf()
477 cctx->iv + cipher_desc->salt, cipher_desc->iv); in do_tls_getsockopt_conf()
479 cctx->rec_seq, cipher_desc->rec_seq); in do_tls_getsockopt_conf()
442 struct cipher_context *cctx; do_tls_getsockopt_conf() local
H A Dtls_sw.c2501 struct cipher_context *cctx; in tls_rx_msg_size()
2527 cctx = &ctx->tx; in tls_rx_msg_ready()
2532 cctx = &ctx->rx; in tls_rx_msg_ready()
2595 memcpy(cctx->iv, salt, cipher_desc->salt); in tls_sw_release_resources_tx()
2596 memcpy(cctx->iv + cipher_desc->salt, iv, cipher_desc->iv); in tls_sw_release_resources_tx()
2597 memcpy(cctx->rec_seq, rec_seq, cipher_desc->rec_seq); in tls_sw_release_resources_tx()
2817 struct cipher_context *cctx; tls_set_sw_offload() local
/linux/lib/zstd/common/
H A Dzstd_internal.h288 void ZSTD_invalidateRepCodes(ZSTD_CCtx* cctx); /* zstdmt, adaptive_compression (shouldn't get thi…
/linux/fs/smb/client/
H A Dsmb2pdu.c3258 struct create_context *cctx = in SMB2_open_free()
3261 cctx->Next = cpu_to_le32(len); in SMB2_open_free()
3233 struct create_context *cctx = SMB2_open_init() local