cctx              607 arch/sparc/mm/srmmu.c 	int cctx, ctx1;
cctx              611 arch/sparc/mm/srmmu.c 		cctx = srmmu_get_context();
cctx              613 arch/sparc/mm/srmmu.c 		if (cctx != ctx1) {
cctx              614 arch/sparc/mm/srmmu.c 			printk("flush ctx %02x curr %02x\n", ctx1, cctx);
cctx              619 arch/sparc/mm/srmmu.c 			srmmu_set_context(cctx);
cctx             1231 arch/x86/crypto/camellia_glue.c int __camellia_setkey(struct camellia_ctx *cctx, const unsigned char *key,
cctx             1239 arch/x86/crypto/camellia_glue.c 	cctx->key_length = key_len;
cctx             1243 arch/x86/crypto/camellia_glue.c 		camellia_setup128(key, cctx->key_table);
cctx             1246 arch/x86/crypto/camellia_glue.c 		camellia_setup192(key, cctx->key_table);
cctx             1249 arch/x86/crypto/camellia_glue.c 		camellia_setup256(key, cctx->key_table);
cctx               27 arch/x86/include/asm/crypto/camellia.h extern int __camellia_setkey(struct camellia_ctx *cctx,
cctx              971 crypto/camellia_generic.c 	struct camellia_ctx *cctx = crypto_tfm_ctx(tfm);
cctx              980 crypto/camellia_generic.c 	cctx->key_length = key_len;
cctx              984 crypto/camellia_generic.c 		camellia_setup128(key, cctx->key_table);
cctx              987 crypto/camellia_generic.c 		camellia_setup192(key, cctx->key_table);
cctx              990 crypto/camellia_generic.c 		camellia_setup256(key, cctx->key_table);
cctx              999 crypto/camellia_generic.c 	const struct camellia_ctx *cctx = crypto_tfm_ctx(tfm);
cctx             1011 crypto/camellia_generic.c 	if (cctx->key_length == 16)
cctx             1016 crypto/camellia_generic.c 	camellia_do_encrypt(cctx->key_table, tmp, max);
cctx             1027 crypto/camellia_generic.c 	const struct camellia_ctx *cctx = crypto_tfm_ctx(tfm);
cctx             1039 crypto/camellia_generic.c 	if (cctx->key_length == 16)
cctx             1044 crypto/camellia_generic.c 	camellia_do_decrypt(cctx->key_table, tmp, max);
cctx               21 crypto/zstd.c  	ZSTD_CCtx *cctx;
cctx               44 crypto/zstd.c  	ctx->cctx = ZSTD_initCCtx(ctx->cwksp, wksp_size);
cctx               45 crypto/zstd.c  	if (!ctx->cctx) {
cctx               83 crypto/zstd.c  	ctx->cctx = NULL;
cctx              157 crypto/zstd.c  	out_len = ZSTD_compressCCtx(zctx->cctx, dst, *dlen, src, slen, params);
cctx              573 drivers/crypto/mediatek/mtk-aes.c 	struct mtk_aes_ctr_ctx *cctx = mtk_aes_ctr_ctx_cast(ctx);
cctx              581 drivers/crypto/mediatek/mtk-aes.c 	cctx->offset += aes->total;
cctx              582 drivers/crypto/mediatek/mtk-aes.c 	if (cctx->offset >= req->nbytes)
cctx              586 drivers/crypto/mediatek/mtk-aes.c 	datalen = req->nbytes - cctx->offset;
cctx              588 drivers/crypto/mediatek/mtk-aes.c 	ctr = be32_to_cpu(cctx->iv[3]);
cctx              600 drivers/crypto/mediatek/mtk-aes.c 	src = scatterwalk_ffwd(cctx->src, req->src, cctx->offset);
cctx              602 drivers/crypto/mediatek/mtk-aes.c 	       scatterwalk_ffwd(cctx->dst, req->dst, cctx->offset));
cctx              605 drivers/crypto/mediatek/mtk-aes.c 	mtk_aes_write_state_le(ctx->info.state + ctx->keylen, cctx->iv,
cctx              613 drivers/crypto/mediatek/mtk-aes.c 		cctx->iv[3] = cpu_to_be32(ctr);
cctx              614 drivers/crypto/mediatek/mtk-aes.c 		crypto_inc((u8 *)cctx->iv, AES_BLOCK_SIZE);
cctx              622 drivers/crypto/mediatek/mtk-aes.c 	struct mtk_aes_ctr_ctx *cctx = mtk_aes_ctr_ctx_cast(aes->ctx);
cctx              628 drivers/crypto/mediatek/mtk-aes.c 	memcpy(cctx->iv, req->info, AES_BLOCK_SIZE);
cctx              629 drivers/crypto/mediatek/mtk-aes.c 	cctx->offset = 0;
cctx               86 drivers/infiniband/hw/bnxt_re/main.c 	rdev->qplib_res.cctx = NULL;
cctx              100 drivers/infiniband/hw/bnxt_re/main.c 	rdev->qplib_res.cctx = &rdev->chip_ctx;
cctx              248 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	bool gen_p5 = bnxt_qplib_is_chip_gen_p5(nq->res->cctx);
cctx              343 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	bool gen_p5 = bnxt_qplib_is_chip_gen_p5(nq->res->cctx);
cctx              382 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	bool gen_p5 = bnxt_qplib_is_chip_gen_p5(nq->res->cctx);
cctx              886 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		psn_sz = bnxt_qplib_is_chip_gen_p5(res->cctx) ?
cctx             1020 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	max_rsge = bnxt_qplib_is_chip_gen_p5(res->cctx) ? 6 : rq->max_sge;
cctx             1067 drivers/infiniband/hw/bnxt_re/qplib_fp.c 	qp->cctx = res->cctx;
cctx             1763 drivers/infiniband/hw/bnxt_re/qplib_fp.c 		if (bnxt_qplib_is_chip_gen_p5(qp->cctx)) {
cctx              256 drivers/infiniband/hw/bnxt_re/qplib_fp.h 	struct bnxt_qplib_chip_ctx	*cctx;
cctx              368 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 	bool gen_p5 = bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx);
cctx              497 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 	if (is_virtfn || bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx))
cctx              623 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 	bool gen_p5 = bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx);
cctx              666 drivers/infiniband/hw/bnxt_re/qplib_rcfw.c 	bool gen_p5 = bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx);
cctx              195 drivers/infiniband/hw/bnxt_re/qplib_res.h 	struct bnxt_qplib_chip_ctx	*cctx;
cctx              206 drivers/infiniband/hw/bnxt_re/qplib_res.h static inline bool bnxt_qplib_is_chip_gen_p5(struct bnxt_qplib_chip_ctx *cctx)
cctx              208 drivers/infiniband/hw/bnxt_re/qplib_res.h 	return (cctx->chip_num == CHIP_NUM_57508 ||
cctx              209 drivers/infiniband/hw/bnxt_re/qplib_res.h 		cctx->chip_num == CHIP_NUM_57504 ||
cctx              210 drivers/infiniband/hw/bnxt_re/qplib_res.h 		cctx->chip_num == CHIP_NUM_57502);
cctx              215 drivers/infiniband/hw/bnxt_re/qplib_res.h 	return bnxt_qplib_is_chip_gen_p5(res->cctx) ?
cctx              219 drivers/infiniband/hw/bnxt_re/qplib_res.h static inline u8 bnxt_qplib_get_ring_type(struct bnxt_qplib_chip_ctx *cctx)
cctx              221 drivers/infiniband/hw/bnxt_re/qplib_res.h 	return bnxt_qplib_is_chip_gen_p5(cctx) ?
cctx              122 drivers/infiniband/hw/bnxt_re/qplib_sp.c 	attr->max_qp_sges = bnxt_qplib_is_chip_gen_p5(rcfw->res->cctx) ?
cctx              169 drivers/misc/fastrpc.c 	struct fastrpc_channel_ctx *cctx;
cctx              196 drivers/misc/fastrpc.c 	struct fastrpc_channel_ctx *cctx;
cctx              298 drivers/misc/fastrpc.c 	struct fastrpc_channel_ctx *cctx;
cctx              300 drivers/misc/fastrpc.c 	cctx = container_of(ref, struct fastrpc_channel_ctx, refcount);
cctx              302 drivers/misc/fastrpc.c 	kfree(cctx);
cctx              305 drivers/misc/fastrpc.c static void fastrpc_channel_ctx_get(struct fastrpc_channel_ctx *cctx)
cctx              307 drivers/misc/fastrpc.c 	kref_get(&cctx->refcount);
cctx              310 drivers/misc/fastrpc.c static void fastrpc_channel_ctx_put(struct fastrpc_channel_ctx *cctx)
cctx              312 drivers/misc/fastrpc.c 	kref_put(&cctx->refcount, fastrpc_channel_ctx_free);
cctx              318 drivers/misc/fastrpc.c 	struct fastrpc_channel_ctx *cctx;
cctx              323 drivers/misc/fastrpc.c 	cctx = ctx->cctx;
cctx              331 drivers/misc/fastrpc.c 	spin_lock_irqsave(&cctx->lock, flags);
cctx              332 drivers/misc/fastrpc.c 	idr_remove(&cctx->ctx_idr, ctx->ctxid >> 4);
cctx              333 drivers/misc/fastrpc.c 	spin_unlock_irqrestore(&cctx->lock, flags);
cctx              339 drivers/misc/fastrpc.c 	fastrpc_channel_ctx_put(cctx);
cctx              413 drivers/misc/fastrpc.c 	struct fastrpc_channel_ctx *cctx = user->cctx;
cctx              447 drivers/misc/fastrpc.c 	fastrpc_channel_ctx_get(cctx);
cctx              453 drivers/misc/fastrpc.c 	ctx->cctx = cctx;
cctx              461 drivers/misc/fastrpc.c 	spin_lock_irqsave(&cctx->lock, flags);
cctx              462 drivers/misc/fastrpc.c 	ret = idr_alloc_cyclic(&cctx->ctx_idr, ctx, 1,
cctx              465 drivers/misc/fastrpc.c 		spin_unlock_irqrestore(&cctx->lock, flags);
cctx              469 drivers/misc/fastrpc.c 	spin_unlock_irqrestore(&cctx->lock, flags);
cctx              478 drivers/misc/fastrpc.c 	fastrpc_channel_ctx_put(cctx);
cctx              886 drivers/misc/fastrpc.c 	struct fastrpc_channel_ctx *cctx;
cctx              890 drivers/misc/fastrpc.c 	cctx = fl->cctx;
cctx              904 drivers/misc/fastrpc.c 	return rpmsg_send(cctx->rpdev->ept, (void *)msg, sizeof(*msg));
cctx              917 drivers/misc/fastrpc.c 	if (!fl->cctx->rpdev)
cctx             1082 drivers/misc/fastrpc.c 					struct fastrpc_channel_ctx *cctx)
cctx             1088 drivers/misc/fastrpc.c 	spin_lock_irqsave(&cctx->lock, flags);
cctx             1089 drivers/misc/fastrpc.c 	for (i = 0; i < cctx->sesscount; i++) {
cctx             1090 drivers/misc/fastrpc.c 		if (!cctx->session[i].used && cctx->session[i].valid) {
cctx             1091 drivers/misc/fastrpc.c 			cctx->session[i].used = true;
cctx             1092 drivers/misc/fastrpc.c 			session = &cctx->session[i];
cctx             1096 drivers/misc/fastrpc.c 	spin_unlock_irqrestore(&cctx->lock, flags);
cctx             1101 drivers/misc/fastrpc.c static void fastrpc_session_free(struct fastrpc_channel_ctx *cctx,
cctx             1106 drivers/misc/fastrpc.c 	spin_lock_irqsave(&cctx->lock, flags);
cctx             1108 drivers/misc/fastrpc.c 	spin_unlock_irqrestore(&cctx->lock, flags);
cctx             1131 drivers/misc/fastrpc.c 	struct fastrpc_channel_ctx *cctx = fl->cctx;
cctx             1138 drivers/misc/fastrpc.c 	spin_lock_irqsave(&cctx->lock, flags);
cctx             1140 drivers/misc/fastrpc.c 	spin_unlock_irqrestore(&cctx->lock, flags);
cctx             1155 drivers/misc/fastrpc.c 	fastrpc_session_free(cctx, fl->sctx);
cctx             1156 drivers/misc/fastrpc.c 	fastrpc_channel_ctx_put(cctx);
cctx             1167 drivers/misc/fastrpc.c 	struct fastrpc_channel_ctx *cctx = miscdev_to_cctx(filp->private_data);
cctx             1176 drivers/misc/fastrpc.c 	fastrpc_channel_ctx_get(cctx);
cctx             1185 drivers/misc/fastrpc.c 	fl->cctx = cctx;
cctx             1187 drivers/misc/fastrpc.c 	fl->sctx = fastrpc_session_alloc(cctx);
cctx             1189 drivers/misc/fastrpc.c 		dev_err(&cctx->rpdev->dev, "No session available\n");
cctx             1196 drivers/misc/fastrpc.c 	spin_lock_irqsave(&cctx->lock, flags);
cctx             1197 drivers/misc/fastrpc.c 	list_add_tail(&fl->user, &cctx->users);
cctx             1198 drivers/misc/fastrpc.c 	spin_unlock_irqrestore(&cctx->lock, flags);
cctx             1325 drivers/misc/fastrpc.c 	struct fastrpc_channel_ctx *cctx;
cctx             1332 drivers/misc/fastrpc.c 	cctx = dev_get_drvdata(dev->parent);
cctx             1333 drivers/misc/fastrpc.c 	if (!cctx)
cctx             1338 drivers/misc/fastrpc.c 	spin_lock_irqsave(&cctx->lock, flags);
cctx             1339 drivers/misc/fastrpc.c 	sess = &cctx->session[cctx->sesscount];
cctx             1352 drivers/misc/fastrpc.c 			if (cctx->sesscount++ >= FASTRPC_MAX_SESSIONS)
cctx             1354 drivers/misc/fastrpc.c 			dup_sess = &cctx->session[cctx->sesscount];
cctx             1358 drivers/misc/fastrpc.c 	cctx->sesscount++;
cctx             1359 drivers/misc/fastrpc.c 	spin_unlock_irqrestore(&cctx->lock, flags);
cctx             1371 drivers/misc/fastrpc.c 	struct fastrpc_channel_ctx *cctx = dev_get_drvdata(pdev->dev.parent);
cctx             1376 drivers/misc/fastrpc.c 	spin_lock_irqsave(&cctx->lock, flags);
cctx             1378 drivers/misc/fastrpc.c 		if (cctx->session[i].sid == sess->sid) {
cctx             1379 drivers/misc/fastrpc.c 			cctx->session[i].valid = false;
cctx             1380 drivers/misc/fastrpc.c 			cctx->sesscount--;
cctx             1383 drivers/misc/fastrpc.c 	spin_unlock_irqrestore(&cctx->lock, flags);
cctx             1465 drivers/misc/fastrpc.c 	struct fastrpc_channel_ctx *cctx = dev_get_drvdata(&rpdev->dev);
cctx             1469 drivers/misc/fastrpc.c 	spin_lock_irqsave(&cctx->lock, flags);
cctx             1470 drivers/misc/fastrpc.c 	list_for_each_entry(user, &cctx->users, user)
cctx             1472 drivers/misc/fastrpc.c 	spin_unlock_irqrestore(&cctx->lock, flags);
cctx             1474 drivers/misc/fastrpc.c 	misc_deregister(&cctx->miscdev);
cctx             1477 drivers/misc/fastrpc.c 	cctx->rpdev = NULL;
cctx             1478 drivers/misc/fastrpc.c 	fastrpc_channel_ctx_put(cctx);
cctx             1484 drivers/misc/fastrpc.c 	struct fastrpc_channel_ctx *cctx = dev_get_drvdata(&rpdev->dev);
cctx             1495 drivers/misc/fastrpc.c 	spin_lock_irqsave(&cctx->lock, flags);
cctx             1496 drivers/misc/fastrpc.c 	ctx = idr_find(&cctx->ctx_idr, ctxid);
cctx             1497 drivers/misc/fastrpc.c 	spin_unlock_irqrestore(&cctx->lock, flags);
cctx              406 include/linux/zstd.h size_t ZSTD_compress_usingCDict(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity,
cctx             1005 include/linux/zstd.h size_t ZSTD_compressBegin(ZSTD_CCtx *cctx, int compressionLevel);
cctx             1006 include/linux/zstd.h size_t ZSTD_compressBegin_usingDict(ZSTD_CCtx *cctx, const void *dict,
cctx             1008 include/linux/zstd.h size_t ZSTD_compressBegin_advanced(ZSTD_CCtx *cctx, const void *dict,
cctx             1011 include/linux/zstd.h size_t ZSTD_copyCCtx(ZSTD_CCtx *cctx, const ZSTD_CCtx *preparedCCtx,
cctx             1013 include/linux/zstd.h size_t ZSTD_compressBegin_usingCDict(ZSTD_CCtx *cctx, const ZSTD_CDict *cdict,
cctx             1015 include/linux/zstd.h size_t ZSTD_compressContinue(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity,
cctx             1017 include/linux/zstd.h size_t ZSTD_compressEnd(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity,
cctx             1149 include/linux/zstd.h size_t ZSTD_getBlockSizeMax(ZSTD_CCtx *cctx);
cctx             1150 include/linux/zstd.h size_t ZSTD_compressBlock(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity,
cctx              111 lib/zstd/compress.c 	ZSTD_CCtx *cctx;
cctx              114 lib/zstd/compress.c 	cctx = (ZSTD_CCtx *)ZSTD_malloc(sizeof(ZSTD_CCtx), customMem);
cctx              115 lib/zstd/compress.c 	if (!cctx)
cctx              117 lib/zstd/compress.c 	memset(cctx, 0, sizeof(ZSTD_CCtx));
cctx              118 lib/zstd/compress.c 	cctx->customMem = customMem;
cctx              119 lib/zstd/compress.c 	return cctx;
cctx              125 lib/zstd/compress.c 	ZSTD_CCtx *cctx = ZSTD_createCCtx_advanced(stackMem);
cctx              126 lib/zstd/compress.c 	if (cctx) {
cctx              127 lib/zstd/compress.c 		cctx->workSpace = ZSTD_stackAllocAll(cctx->customMem.opaque, &cctx->workSpaceSize);
cctx              129 lib/zstd/compress.c 	return cctx;
cctx              132 lib/zstd/compress.c size_t ZSTD_freeCCtx(ZSTD_CCtx *cctx)
cctx              134 lib/zstd/compress.c 	if (cctx == NULL)
cctx              136 lib/zstd/compress.c 	ZSTD_free(cctx->workSpace, cctx->customMem);
cctx              137 lib/zstd/compress.c 	ZSTD_free(cctx, cctx->customMem);
cctx              143 lib/zstd/compress.c static ZSTD_parameters ZSTD_getParamsFromCCtx(const ZSTD_CCtx *cctx) { return cctx->params; }
cctx              217 lib/zstd/compress.c static size_t ZSTD_continueCCtx(ZSTD_CCtx *cctx, ZSTD_parameters params, U64 frameContentSize)
cctx              219 lib/zstd/compress.c 	U32 const end = (U32)(cctx->nextSrc - cctx->base);
cctx              220 lib/zstd/compress.c 	cctx->params = params;
cctx              221 lib/zstd/compress.c 	cctx->frameContentSize = frameContentSize;
cctx              222 lib/zstd/compress.c 	cctx->lowLimit = end;
cctx              223 lib/zstd/compress.c 	cctx->dictLimit = end;
cctx              224 lib/zstd/compress.c 	cctx->nextToUpdate = end + 1;
cctx              225 lib/zstd/compress.c 	cctx->stage = ZSTDcs_init;
cctx              226 lib/zstd/compress.c 	cctx->dictID = 0;
cctx              227 lib/zstd/compress.c 	cctx->loadedDictEnd = 0;
cctx              231 lib/zstd/compress.c 			cctx->rep[i] = repStartValue[i];
cctx              233 lib/zstd/compress.c 	cctx->seqStore.litLengthSum = 0; /* force reset of btopt stats */
cctx              234 lib/zstd/compress.c 	xxh64_reset(&cctx->xxhState, 0);
cctx              337 lib/zstd/compress.c void ZSTD_invalidateRepCodes(ZSTD_CCtx *cctx)
cctx              341 lib/zstd/compress.c 		cctx->rep[i] = 0;
cctx             1008 lib/zstd/compress.c void ZSTD_compressBlock_fast_generic(ZSTD_CCtx *cctx, const void *src, size_t srcSize, const U32 mls)
cctx             1010 lib/zstd/compress.c 	U32 *const hashTable = cctx->hashTable;
cctx             1011 lib/zstd/compress.c 	U32 const hBits = cctx->params.cParams.hashLog;
cctx             1012 lib/zstd/compress.c 	seqStore_t *seqStorePtr = &(cctx->seqStore);
cctx             1013 lib/zstd/compress.c 	const BYTE *const base = cctx->base;
cctx             1017 lib/zstd/compress.c 	const U32 lowestIndex = cctx->dictLimit;
cctx             1021 lib/zstd/compress.c 	U32 offset_1 = cctx->rep[0], offset_2 = cctx->rep[1];
cctx             1093 lib/zstd/compress.c 	cctx->repToConfirm[0] = offset_1 ? offset_1 : offsetSaved;
cctx             1094 lib/zstd/compress.c 	cctx->repToConfirm[1] = offset_2 ? offset_2 : offsetSaved;
cctx             1235 lib/zstd/compress.c static void ZSTD_fillDoubleHashTable(ZSTD_CCtx *cctx, const void *end, const U32 mls)
cctx             1237 lib/zstd/compress.c 	U32 *const hashLarge = cctx->hashTable;
cctx             1238 lib/zstd/compress.c 	U32 const hBitsL = cctx->params.cParams.hashLog;
cctx             1239 lib/zstd/compress.c 	U32 *const hashSmall = cctx->chainTable;
cctx             1240 lib/zstd/compress.c 	U32 const hBitsS = cctx->params.cParams.chainLog;
cctx             1241 lib/zstd/compress.c 	const BYTE *const base = cctx->base;
cctx             1242 lib/zstd/compress.c 	const BYTE *ip = base + cctx->nextToUpdate;
cctx             1254 lib/zstd/compress.c void ZSTD_compressBlock_doubleFast_generic(ZSTD_CCtx *cctx, const void *src, size_t srcSize, const U32 mls)
cctx             1256 lib/zstd/compress.c 	U32 *const hashLong = cctx->hashTable;
cctx             1257 lib/zstd/compress.c 	const U32 hBitsL = cctx->params.cParams.hashLog;
cctx             1258 lib/zstd/compress.c 	U32 *const hashSmall = cctx->chainTable;
cctx             1259 lib/zstd/compress.c 	const U32 hBitsS = cctx->params.cParams.chainLog;
cctx             1260 lib/zstd/compress.c 	seqStore_t *seqStorePtr = &(cctx->seqStore);
cctx             1261 lib/zstd/compress.c 	const BYTE *const base = cctx->base;
cctx             1265 lib/zstd/compress.c 	const U32 lowestIndex = cctx->dictLimit;
cctx             1269 lib/zstd/compress.c 	U32 offset_1 = cctx->rep[0], offset_2 = cctx->rep[1];
cctx             1372 lib/zstd/compress.c 	cctx->repToConfirm[0] = offset_1 ? offset_1 : offsetSaved;
cctx             1373 lib/zstd/compress.c 	cctx->repToConfirm[1] = offset_2 ? offset_2 : offsetSaved;
cctx             2355 lib/zstd/compress.c static size_t ZSTD_compress_generic(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, U32 lastFrameChunk)
cctx             2357 lib/zstd/compress.c 	size_t blockSize = cctx->blockSize;
cctx             2362 lib/zstd/compress.c 	U32 const maxDist = 1 << cctx->params.cParams.windowLog;
cctx             2364 lib/zstd/compress.c 	if (cctx->params.fParams.checksumFlag && srcSize)
cctx             2365 lib/zstd/compress.c 		xxh64_update(&cctx->xxhState, src, srcSize);
cctx             2377 lib/zstd/compress.c 		if (cctx->lowLimit > (3U << 29)) {
cctx             2378 lib/zstd/compress.c 			U32 const cycleMask = (1 << ZSTD_cycleLog(cctx->params.cParams.hashLog, cctx->params.cParams.strategy)) - 1;
cctx             2379 lib/zstd/compress.c 			U32 const curr = (U32)(ip - cctx->base);
cctx             2380 lib/zstd/compress.c 			U32 const newCurr = (curr & cycleMask) + (1 << cctx->params.cParams.windowLog);
cctx             2383 lib/zstd/compress.c 			ZSTD_reduceIndex(cctx, correction);
cctx             2384 lib/zstd/compress.c 			cctx->base += correction;
cctx             2385 lib/zstd/compress.c 			cctx->dictBase += correction;
cctx             2386 lib/zstd/compress.c 			cctx->lowLimit -= correction;
cctx             2387 lib/zstd/compress.c 			cctx->dictLimit -= correction;
cctx             2388 lib/zstd/compress.c 			if (cctx->nextToUpdate < correction)
cctx             2389 lib/zstd/compress.c 				cctx->nextToUpdate = 0;
cctx             2391 lib/zstd/compress.c 				cctx->nextToUpdate -= correction;
cctx             2394 lib/zstd/compress.c 		if ((U32)(ip + blockSize - cctx->base) > cctx->loadedDictEnd + maxDist) {
cctx             2396 lib/zstd/compress.c 			U32 const newLowLimit = (U32)(ip + blockSize - cctx->base) - maxDist;
cctx             2397 lib/zstd/compress.c 			if (cctx->lowLimit < newLowLimit)
cctx             2398 lib/zstd/compress.c 				cctx->lowLimit = newLowLimit;
cctx             2399 lib/zstd/compress.c 			if (cctx->dictLimit < cctx->lowLimit)
cctx             2400 lib/zstd/compress.c 				cctx->dictLimit = cctx->lowLimit;
cctx             2403 lib/zstd/compress.c 		cSize = ZSTD_compressBlock_internal(cctx, op + ZSTD_blockHeaderSize, dstCapacity - ZSTD_blockHeaderSize, ip, blockSize);
cctx             2427 lib/zstd/compress.c 		cctx->stage = ZSTDcs_ending;
cctx             2490 lib/zstd/compress.c static size_t ZSTD_compressContinue_internal(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, U32 frame, U32 lastFrameChunk)
cctx             2495 lib/zstd/compress.c 	if (cctx->stage == ZSTDcs_created)
cctx             2498 lib/zstd/compress.c 	if (frame && (cctx->stage == ZSTDcs_init)) {
cctx             2499 lib/zstd/compress.c 		fhSize = ZSTD_writeFrameHeader(dst, dstCapacity, cctx->params, cctx->frameContentSize, cctx->dictID);
cctx             2504 lib/zstd/compress.c 		cctx->stage = ZSTDcs_ongoing;
cctx             2508 lib/zstd/compress.c 	if (src != cctx->nextSrc) {
cctx             2510 lib/zstd/compress.c 		ptrdiff_t const delta = cctx->nextSrc - ip;
cctx             2511 lib/zstd/compress.c 		cctx->lowLimit = cctx->dictLimit;
cctx             2512 lib/zstd/compress.c 		cctx->dictLimit = (U32)(cctx->nextSrc - cctx->base);
cctx             2513 lib/zstd/compress.c 		cctx->dictBase = cctx->base;
cctx             2514 lib/zstd/compress.c 		cctx->base -= delta;
cctx             2515 lib/zstd/compress.c 		cctx->nextToUpdate = cctx->dictLimit;
cctx             2516 lib/zstd/compress.c 		if (cctx->dictLimit - cctx->lowLimit < HASH_READ_SIZE)
cctx             2517 lib/zstd/compress.c 			cctx->lowLimit = cctx->dictLimit; /* too small extDict */
cctx             2521 lib/zstd/compress.c 	if ((ip + srcSize > cctx->dictBase + cctx->lowLimit) & (ip < cctx->dictBase + cctx->dictLimit)) {
cctx             2522 lib/zstd/compress.c 		ptrdiff_t const highInputIdx = (ip + srcSize) - cctx->dictBase;
cctx             2523 lib/zstd/compress.c 		U32 const lowLimitMax = (highInputIdx > (ptrdiff_t)cctx->dictLimit) ? cctx->dictLimit : (U32)highInputIdx;
cctx             2524 lib/zstd/compress.c 		cctx->lowLimit = lowLimitMax;
cctx             2527 lib/zstd/compress.c 	cctx->nextSrc = ip + srcSize;
cctx             2530 lib/zstd/compress.c 		size_t const cSize = frame ? ZSTD_compress_generic(cctx, dst, dstCapacity, src, srcSize, lastFrameChunk)
cctx             2531 lib/zstd/compress.c 					   : ZSTD_compressBlock_internal(cctx, dst, dstCapacity, src, srcSize);
cctx             2539 lib/zstd/compress.c size_t ZSTD_compressContinue(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize)
cctx             2541 lib/zstd/compress.c 	return ZSTD_compressContinue_internal(cctx, dst, dstCapacity, src, srcSize, 1, 0);
cctx             2544 lib/zstd/compress.c size_t ZSTD_getBlockSizeMax(ZSTD_CCtx *cctx) { return MIN(ZSTD_BLOCKSIZE_ABSOLUTEMAX, 1 << cctx->params.cParams.windowLog); }
cctx             2546 lib/zstd/compress.c size_t ZSTD_compressBlock(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize)
cctx             2548 lib/zstd/compress.c 	size_t const blockSizeMax = ZSTD_getBlockSizeMax(cctx);
cctx             2551 lib/zstd/compress.c 	return ZSTD_compressContinue_internal(cctx, dst, dstCapacity, src, srcSize, 0, 0);
cctx             2626 lib/zstd/compress.c static size_t ZSTD_loadZstdDictionary(ZSTD_CCtx *cctx, const void *dict, size_t dictSize)
cctx             2634 lib/zstd/compress.c 	cctx->dictID = cctx->params.fParams.noDictIDFlag ? 0 : ZSTD_readLE32(dictPtr);
cctx             2638 lib/zstd/compress.c 		size_t const hufHeaderSize = HUF_readCTable_wksp(cctx->hufTable, 255, dictPtr, dictEnd - dictPtr, cctx->tmpCounters, sizeof(cctx->tmpCounters));
cctx             2652 lib/zstd/compress.c 		CHECK_E(FSE_buildCTable_wksp(cctx->offcodeCTable, offcodeNCount, offcodeMaxValue, offcodeLog, cctx->tmpCounters, sizeof(cctx->tmpCounters)),
cctx             2668 lib/zstd/compress.c 		    FSE_buildCTable_wksp(cctx->matchlengthCTable, matchlengthNCount, matchlengthMaxValue, matchlengthLog, cctx->tmpCounters, sizeof(cctx->tmpCounters)),
cctx             2683 lib/zstd/compress.c 		CHECK_E(FSE_buildCTable_wksp(cctx->litlengthCTable, litlengthNCount, litlengthMaxValue, litlengthLog, cctx->tmpCounters, sizeof(cctx->tmpCounters)),
cctx             2690 lib/zstd/compress.c 	cctx->rep[0] = ZSTD_readLE32(dictPtr + 0);
cctx             2691 lib/zstd/compress.c 	cctx->rep[1] = ZSTD_readLE32(dictPtr + 4);
cctx             2692 lib/zstd/compress.c 	cctx->rep[2] = ZSTD_readLE32(dictPtr + 8);
cctx             2708 lib/zstd/compress.c 				if (cctx->rep[u] == 0)
cctx             2710 lib/zstd/compress.c 				if (cctx->rep[u] > dictContentSize)
cctx             2715 lib/zstd/compress.c 		cctx->flagStaticTables = 1;
cctx             2716 lib/zstd/compress.c 		cctx->flagStaticHufTable = HUF_repeat_valid;
cctx             2717 lib/zstd/compress.c 		return ZSTD_loadDictionaryContent(cctx, dictPtr, dictContentSize);
cctx             2723 lib/zstd/compress.c static size_t ZSTD_compress_insertDictionary(ZSTD_CCtx *cctx, const void *dict, size_t dictSize)
cctx             2729 lib/zstd/compress.c 	if ((ZSTD_readLE32(dict) != ZSTD_DICT_MAGIC) || (cctx->forceRawDict))
cctx             2730 lib/zstd/compress.c 		return ZSTD_loadDictionaryContent(cctx, dict, dictSize);
cctx             2733 lib/zstd/compress.c 	return ZSTD_loadZstdDictionary(cctx, dict, dictSize);
cctx             2738 lib/zstd/compress.c static size_t ZSTD_compressBegin_internal(ZSTD_CCtx *cctx, const void *dict, size_t dictSize, ZSTD_parameters params, U64 pledgedSrcSize)
cctx             2741 lib/zstd/compress.c 	CHECK_F(ZSTD_resetCCtx_advanced(cctx, params, pledgedSrcSize, crp));
cctx             2742 lib/zstd/compress.c 	return ZSTD_compress_insertDictionary(cctx, dict, dictSize);
cctx             2747 lib/zstd/compress.c size_t ZSTD_compressBegin_advanced(ZSTD_CCtx *cctx, const void *dict, size_t dictSize, ZSTD_parameters params, unsigned long long pledgedSrcSize)
cctx             2751 lib/zstd/compress.c 	return ZSTD_compressBegin_internal(cctx, dict, dictSize, params, pledgedSrcSize);
cctx             2754 lib/zstd/compress.c size_t ZSTD_compressBegin_usingDict(ZSTD_CCtx *cctx, const void *dict, size_t dictSize, int compressionLevel)
cctx             2757 lib/zstd/compress.c 	return ZSTD_compressBegin_internal(cctx, dict, dictSize, params, 0);
cctx             2760 lib/zstd/compress.c size_t ZSTD_compressBegin(ZSTD_CCtx *cctx, int compressionLevel) { return ZSTD_compressBegin_usingDict(cctx, NULL, 0, compressionLevel); }
cctx             2765 lib/zstd/compress.c static size_t ZSTD_writeEpilogue(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity)
cctx             2771 lib/zstd/compress.c 	if (cctx->stage == ZSTDcs_created)
cctx             2775 lib/zstd/compress.c 	if (cctx->stage == ZSTDcs_init) {
cctx             2776 lib/zstd/compress.c 		fhSize = ZSTD_writeFrameHeader(dst, dstCapacity, cctx->params, 0, 0);
cctx             2781 lib/zstd/compress.c 		cctx->stage = ZSTDcs_ongoing;
cctx             2784 lib/zstd/compress.c 	if (cctx->stage != ZSTDcs_ending) {
cctx             2794 lib/zstd/compress.c 	if (cctx->params.fParams.checksumFlag) {
cctx             2795 lib/zstd/compress.c 		U32 const checksum = (U32)xxh64_digest(&cctx->xxhState);
cctx             2802 lib/zstd/compress.c 	cctx->stage = ZSTDcs_created; /* return to "created but no init" status */
cctx             2806 lib/zstd/compress.c size_t ZSTD_compressEnd(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize)
cctx             2809 lib/zstd/compress.c 	size_t const cSize = ZSTD_compressContinue_internal(cctx, dst, dstCapacity, src, srcSize, 1, 1);
cctx             2812 lib/zstd/compress.c 	endResult = ZSTD_writeEpilogue(cctx, (char *)dst + cSize, dstCapacity - cSize);
cctx             2818 lib/zstd/compress.c static size_t ZSTD_compress_internal(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize,
cctx             2821 lib/zstd/compress.c 	CHECK_F(ZSTD_compressBegin_internal(cctx, dict, dictSize, params, srcSize));
cctx             2822 lib/zstd/compress.c 	return ZSTD_compressEnd(cctx, dst, dstCapacity, src, srcSize);
cctx             2854 lib/zstd/compress.c 		ZSTD_CCtx *const cctx = ZSTD_createCCtx_advanced(customMem);
cctx             2856 lib/zstd/compress.c 		if (!cdict || !cctx) {
cctx             2858 lib/zstd/compress.c 			ZSTD_freeCCtx(cctx);
cctx             2868 lib/zstd/compress.c 				ZSTD_free(cctx, customMem);
cctx             2878 lib/zstd/compress.c 			size_t const errorCode = ZSTD_compressBegin_advanced(cctx, cdict->dictContent, dictSize, params, 0);
cctx             2882 lib/zstd/compress.c 				ZSTD_freeCCtx(cctx);
cctx             2887 lib/zstd/compress.c 		cdict->refContext = cctx;
cctx             2914 lib/zstd/compress.c size_t ZSTD_compressBegin_usingCDict(ZSTD_CCtx *cctx, const ZSTD_CDict *cdict, unsigned long long pledgedSrcSize)
cctx             2917 lib/zstd/compress.c 		CHECK_F(ZSTD_copyCCtx(cctx, cdict->refContext, pledgedSrcSize))
cctx             2921 lib/zstd/compress.c 		CHECK_F(ZSTD_compressBegin_advanced(cctx, NULL, 0, params, pledgedSrcSize));
cctx             2930 lib/zstd/compress.c size_t ZSTD_compress_usingCDict(ZSTD_CCtx *cctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const ZSTD_CDict *cdict)
cctx             2932 lib/zstd/compress.c 	CHECK_F(ZSTD_compressBegin_usingCDict(cctx, cdict, srcSize));
cctx             2935 lib/zstd/compress.c 		cctx->params.fParams.contentSizeFlag = 1;
cctx             2936 lib/zstd/compress.c 		cctx->frameContentSize = srcSize;
cctx             2938 lib/zstd/compress.c 		cctx->params.fParams.contentSizeFlag = 0;
cctx             2941 lib/zstd/compress.c 	return ZSTD_compressEnd(cctx, dst, dstCapacity, src, srcSize);
cctx             2951 lib/zstd/compress.c 	ZSTD_CCtx *cctx;
cctx             2994 lib/zstd/compress.c 	zcs->cctx = ZSTD_createCCtx_advanced(customMem);
cctx             2995 lib/zstd/compress.c 	if (zcs->cctx == NULL) {
cctx             3008 lib/zstd/compress.c 		ZSTD_freeCCtx(zcs->cctx);
cctx             3009 lib/zstd/compress.c 		zcs->cctx = NULL;
cctx             3032 lib/zstd/compress.c 		CHECK_F(ZSTD_compressBegin_usingCDict(zcs->cctx, zcs->cdict, pledgedSrcSize))
cctx             3034 lib/zstd/compress.c 		CHECK_F(ZSTD_compressBegin_advanced(zcs->cctx, NULL, 0, zcs->params, pledgedSrcSize));
cctx             3166 lib/zstd/compress.c 				cSize = (flush == zsf_end) ? ZSTD_compressEnd(zcs->cctx, cDst, oSize, zcs->inBuff + zcs->inToCompress, iSize)
cctx             3167 lib/zstd/compress.c 							   : ZSTD_compressContinue(zcs->cctx, cDst, oSize, zcs->inBuff + zcs->inToCompress, iSize);
cctx             3274 lib/zstd/compress.c 		zcs->outBuffContentSize = !notEnded ? 0 : ZSTD_compressEnd(zcs->cctx, zcs->outBuff, zcs->outBuffSize, NULL,
cctx              254 lib/zstd/zstd_internal.h void ZSTD_invalidateRepCodes(ZSTD_CCtx *cctx);
cctx              256 lib/zstd/zstd_internal.h size_t ZSTD_freeCCtx(ZSTD_CCtx *cctx);
cctx             2268 net/tls/tls_sw.c 	struct cipher_context *cctx;
cctx             2312 net/tls/tls_sw.c 		cctx = &ctx->tx;
cctx             2321 net/tls/tls_sw.c 		cctx = &ctx->rx;
cctx             2407 net/tls/tls_sw.c 	cctx->iv = kmalloc(iv_size + salt_size, GFP_KERNEL);
cctx             2408 net/tls/tls_sw.c 	if (!cctx->iv) {
cctx             2414 net/tls/tls_sw.c 	memcpy(cctx->iv, salt, salt_size);
cctx             2415 net/tls/tls_sw.c 	memcpy(cctx->iv + salt_size, iv, iv_size);
cctx             2416 net/tls/tls_sw.c 	cctx->rec_seq = kmemdup(rec_seq, rec_seq_size, GFP_KERNEL);
cctx             2417 net/tls/tls_sw.c 	if (!cctx->rec_seq) {
cctx             2465 net/tls/tls_sw.c 	kfree(cctx->rec_seq);
cctx             2466 net/tls/tls_sw.c 	cctx->rec_seq = NULL;
cctx             2468 net/tls/tls_sw.c 	kfree(cctx->iv);
cctx             2469 net/tls/tls_sw.c 	cctx->iv = NULL;