Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 4 files:
- crypto/zstd.c, line 154
- fs/btrfs/zstd.c, line 452
- fs/f2fs/compress.c, line 387
- lib/zstd/zstd_compress_module.c, line 251
Smatch caller information:
fs/btrfs/zstd.c zstd_compress_bio() -> zstd_compress_stream()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cstream | 4096-ptr_max |
| PARAM_VALUE | 0 | cstream->cParamsChanged | 0-1 |
| PARAM_VALUE | 0 | cstream->cdict->matchState.opt.priceType | 0-1 |
| PARAM_VALUE | 0 | cstream->cdict->useRowMatchFinder | 1-4294967295 |
| PARAM_VALUE | 0 | cstream->cdict->workspace.isStatic | 0-1 |
| PARAM_VALUE | 0 | cstream->localDict.cdict->cBlockState->rep | 0-4294967295 |
| PARAM_VALUE | 0 | cstream->localDict.cdict->matchState.dictMatchState->opt.priceType | 0-1 |
| PARAM_VALUE | 0 | cstream->localDict.cdict->matchState.ldmSeqStore->posInSequence | 0-4294967294 |
| PARAM_VALUE | 0 | cstream->localDict.cdict->matchState.opt.litLengthSum | 0 |
| PARAM_VALUE | 0 | cstream->localDict.cdict->useRowMatchFinder | 1-4294967295 |
| PARAM_VALUE | 0 | cstream->localDict.cdict->workspace->objectEnd | 0-255 |
| PARAM_VALUE | 0 | cstream->localDict.cdict->workspace.allocFailed | 0 |
| PARAM_VALUE | 0 | cstream->localDict.cdict->workspace.isStatic | 0 |
| PARAM_VALUE | 0 | cstream->localDict.cdict->workspace.objectEnd | 0 |
| PARAM_VALUE | 0 | cstream->localDict.cdict->workspace.workspaceEnd | 0 |
| PARAM_VALUE | 0 | cstream->localDict.cdict->workspace.workspaceOversizedDuration | 0 |
| PARAM_VALUE | 0 | cstream->localDict.dict | 0 |
| PARAM_VALUE | 0 | cstream->localDict.dictBuffer | 0 |
| PARAM_VALUE | 0 | cstream->localDict.dictContentType | 0 |
| PARAM_VALUE | 0 | cstream->localDict.dictSize | 0 |
| PARAM_VALUE | 0 | cstream->prefixDict.dict | 0 |
| PARAM_VALUE | 0 | cstream->prefixDict.dictContentType | 0 |
| PARAM_VALUE | 0 | cstream->prefixDict.dictSize | 0 |
| PARAM_VALUE | 0 | cstream->requestedParams.compressionLevel | (-131072)-(-1),1-s32max |
| PARAM_VALUE | 0 | cstream->requestedParams.customMem.customAlloc | 0 |
| PARAM_VALUE | 0 | cstream->requestedParams.customMem.customFree | 0 |
| PARAM_VALUE | 0 | cstream->requestedParams.customMem.opaque | 0 |
| PARAM_VALUE | 0 | cstream->requestedParams.deterministicRefPrefix | 0-1 |
| PARAM_VALUE | 0 | cstream->requestedParams.enableDedicatedDictSearch | 0-1 |
| PARAM_VALUE | 0 | cstream->requestedParams.extSeqProdFunc | 0 |
| PARAM_VALUE | 0 | cstream->requestedParams.extSeqProdState | 0 |
| PARAM_VALUE | 0 | cstream->requestedParams.fParams.checksumFlag | 0-1 |
| PARAM_VALUE | 0 | cstream->requestedParams.fParams.contentSizeFlag | 0-1 |
| PARAM_VALUE | 0 | cstream->requestedParams.fParams.noDictIDFlag | 0-1 |
| PARAM_VALUE | 0 | cstream->requestedParams.forceWindow | 0-1 |
| PARAM_VALUE | 0 | cstream->requestedParams.jobSize | 0 |
| PARAM_VALUE | 0 | cstream->requestedParams.ldmParams.windowLog | 0 |
| PARAM_VALUE | 0 | cstream->requestedParams.nbWorkers | 0 |
| PARAM_VALUE | 0 | cstream->requestedParams.overlapLog | 0 |
| PARAM_VALUE | 0 | cstream->requestedParams.rsyncable | 0 |
| PARAM_VALUE | 0 | cstream->requestedParams.targetCBlockSize | 0,1340-s32max |
| PARAM_VALUE | 0 | cstream->stableIn_notConsumed | 0-s64max |
| PARAM_VALUE | 0 | cstream->streamStage | 0-2 |
| PARAM_VALUE | 1 | output | 4096-ptr_max |
| PARAM_VALUE | 1 | output->dst | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | output->pos | 0-4294967294 |
| PARAM_VALUE | 1 | output->size | 0-u32max |
| PARAM_VALUE | 2 | input | 4096-ptr_max |
| PARAM_VALUE | 2 | input->pos | 0-4294967294 |
| PARAM_VALUE | 2 | input->size | 0-u32max |
| BUF_SIZE | 0 | cstream | 16384 |
| BUF_SIZE | 0 | cstream | 16384 |
| DATA_SOURCE | 0 | cstream | r zstd_init_cstream |
| RX_PATH | |||
| TASK_NOT_RUNNING |
crypto/zstd.c zstd_compress() -> zstd_compress_stream()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cstream | 4096-ptr_max |
| PARAM_VALUE | 0 | cstream->cParamsChanged | 0-1 |
| PARAM_VALUE | 0 | cstream->cdict->matchState.opt.priceType | 0-1 |
| PARAM_VALUE | 0 | cstream->cdict->useRowMatchFinder | 1-4294967295 |
| PARAM_VALUE | 0 | cstream->cdict->workspace.isStatic | 0-1 |
| PARAM_VALUE | 0 | cstream->localDict.cdict->cBlockState->rep | 0-4294967295 |
| PARAM_VALUE | 0 | cstream->localDict.cdict->matchState.dictMatchState->opt.priceType | 0-1 |
| PARAM_VALUE | 0 | cstream->localDict.cdict->matchState.ldmSeqStore->posInSequence | 0-4294967294 |
| PARAM_VALUE | 0 | cstream->localDict.cdict->matchState.opt.litLengthSum | 0 |
| PARAM_VALUE | 0 | cstream->localDict.cdict->useRowMatchFinder | 1-4294967295 |
| PARAM_VALUE | 0 | cstream->localDict.cdict->workspace->objectEnd | 0-255 |
| PARAM_VALUE | 0 | cstream->localDict.cdict->workspace.allocFailed | 0 |
| PARAM_VALUE | 0 | cstream->localDict.cdict->workspace.isStatic | 0 |
| PARAM_VALUE | 0 | cstream->localDict.cdict->workspace.objectEnd | 0 |
| PARAM_VALUE | 0 | cstream->localDict.cdict->workspace.workspaceEnd | 0 |
| PARAM_VALUE | 0 | cstream->localDict.cdict->workspace.workspaceOversizedDuration | 0 |
| PARAM_VALUE | 0 | cstream->localDict.dict | 0 |
| PARAM_VALUE | 0 | cstream->localDict.dictBuffer | 0 |
| PARAM_VALUE | 0 | cstream->localDict.dictContentType | 0 |
| PARAM_VALUE | 0 | cstream->localDict.dictSize | 0 |
| PARAM_VALUE | 0 | cstream->prefixDict.dict | 0 |
| PARAM_VALUE | 0 | cstream->prefixDict.dictContentType | 0 |
| PARAM_VALUE | 0 | cstream->prefixDict.dictSize | 0 |
| PARAM_VALUE | 0 | cstream->requestedParams.compressionLevel | (-131072)-(-1),1-s32max |
| PARAM_VALUE | 0 | cstream->requestedParams.customMem.customAlloc | 0 |
| PARAM_VALUE | 0 | cstream->requestedParams.customMem.customFree | 0 |
| PARAM_VALUE | 0 | cstream->requestedParams.customMem.opaque | 0 |
| PARAM_VALUE | 0 | cstream->requestedParams.deterministicRefPrefix | 0-1 |
| PARAM_VALUE | 0 | cstream->requestedParams.enableDedicatedDictSearch | 0-1 |
| PARAM_VALUE | 0 | cstream->requestedParams.extSeqProdFunc | 0 |
| PARAM_VALUE | 0 | cstream->requestedParams.extSeqProdState | 0 |
| PARAM_VALUE | 0 | cstream->requestedParams.fParams.checksumFlag | 0-1 |
| PARAM_VALUE | 0 | cstream->requestedParams.fParams.contentSizeFlag | 0-1 |
| PARAM_VALUE | 0 | cstream->requestedParams.fParams.noDictIDFlag | 0-1 |
| PARAM_VALUE | 0 | cstream->requestedParams.forceWindow | 0-1 |
| PARAM_VALUE | 0 | cstream->requestedParams.jobSize | 0 |
| PARAM_VALUE | 0 | cstream->requestedParams.ldmParams.windowLog | 0 |
| PARAM_VALUE | 0 | cstream->requestedParams.nbWorkers | 0 |
| PARAM_VALUE | 0 | cstream->requestedParams.overlapLog | 0 |
| PARAM_VALUE | 0 | cstream->requestedParams.rsyncable | 0 |
| PARAM_VALUE | 0 | cstream->requestedParams.targetCBlockSize | 0,1340-s32max |
| PARAM_VALUE | 0 | cstream->stableIn_notConsumed | 0-s64max |
| PARAM_VALUE | 0 | cstream->streamStage | 0-2 |
| PARAM_VALUE | 1 | output | 4049391269571252224 |
| PARAM_VALUE | 1 | output->size | 1-u32max |
| PARAM_VALUE | 2 | input | 1362880993336324096 |
| PARAM_VALUE | 2 | input->pos | 0 |
| PARAM_VALUE | 2 | input->size | 1-u32max |
| BUF_SIZE | 0 | cstream | 16384 |
| BUF_SIZE | 0 | cstream | 16384 |
| DATA_SOURCE | 0 | cstream | r zstd_init_cstream |
| NOSPEC | 0 | cstream->expectedInBuffer.size | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 2 | input->size | 2-s32max[c] |
| USER_DATA | 0 | cstream->blockState.matchState.window->nextSrc | 0-255 |
| USER_DATA | 0 | cstream->expectedInBuffer.size | 0-1000000000[c] |
| USER_DATA | 0 | cstream->ldmState.window->nextSrc | 0-255 |
| USER_DATA | 1 | output->size | 1-219420[c] |
| USER_DATA | 2 | input->size | 1-4095[c] |
| LOCK2 | bh | ||
| HALF_LOCKED2 | &acomp_ctx->mutex |
fs/f2fs/compress.c zstd_compress_pages() -> zstd_compress_stream()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cstream | 0,4096-ptr_max |
| PARAM_VALUE | 1 | output | 1397198902814785536 |
| PARAM_VALUE | 1 | output->pos | 0 |
| PARAM_VALUE | 1 | output->size | 18446744073709547496 |
| PARAM_VALUE | 2 | input | 6537409459439435776 |
| PARAM_VALUE | 2 | input->pos | 0 |
| PARAM_VALUE | 2 | input->size | 0 |
| PARAM_VALUE | 2 | input->src | 1-u64max |
| BUF_SIZE | 0 | cstream | 16384 |
| BUF_SIZE | 0 | cstream | 16384 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mapping->invalidate_lock | ||
| HALF_LOCKED2 | &sbi->writepages |