Home
last modified time | relevance | path

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

12

/freebsd/sys/contrib/ncsw/etc/
H A Dncsw_mem.c134 (((uint8_t *)p_Block - (p_Mem->p_Bases[0] + p_Mem->blockOffset)) / p_Mem->blockSize);
161 (((uint8_t *)p_Block - (p_Mem->p_Bases[0] + p_Mem->blockOffset)) / p_Mem->blockSize);
215 uint32_t blockSize = 0, pad1 = 0, pad2 = 0;
225 blockSize = pad1 + prefixSize + dataSize + postfixSize;
226 pad2 = PAD_ALIGNMENT(alignment, blockSize);
228 blockSize += pad2;
230 return ((num * blockSize) + alignment);
288 uint32_t i, blockSize;
365 blockSize = (uint32_t)(alignPad + prefixSize + dataSize + postfixSize + endPad);
371 p_Blocks += blockSize;
[all …]
/freebsd/sys/dev/qat/qat_api/common/crypto/sym/qat/
H A Dlac_sym_qat_cipher.c790 Cpa8U blockSize = 0; in LacSymQat_CipherBlockSizeBytesGet() local
793 blockSize = LAC_CIPHER_ARC4_BLOCK_LEN_BYTES; in LacSymQat_CipherBlockSizeBytesGet()
803 blockSize = ICP_QAT_HW_AES_BLK_SZ; in LacSymQat_CipherBlockSizeBytesGet()
808 blockSize = ICP_QAT_HW_DES_BLK_SZ; in LacSymQat_CipherBlockSizeBytesGet()
814 blockSize = ICP_QAT_HW_3DES_BLK_SZ; in LacSymQat_CipherBlockSizeBytesGet()
817 blockSize = ICP_QAT_HW_KASUMI_BLK_SZ; in LacSymQat_CipherBlockSizeBytesGet()
820 blockSize = ICP_QAT_HW_SNOW_3G_BLK_SZ; in LacSymQat_CipherBlockSizeBytesGet()
823 blockSize = ICP_QAT_HW_ZUC_3G_BLK_SZ; in LacSymQat_CipherBlockSizeBytesGet()
826 blockSize = LAC_CIPHER_NULL_BLOCK_LEN_BYTES; in LacSymQat_CipherBlockSizeBytesGet()
829 blockSize = ICP_QAT_HW_CHACHAPOLY_BLK_SZ; in LacSymQat_CipherBlockSizeBytesGet()
[all …]
/freebsd/sys/contrib/zstd/programs/
H A Dbenchzstd.c318 …size_t const blockSize = ((adv->blockSize>=32 && (adv->mode != BMK_decodeOnly)) ? adv->blockSize :… in BMK_benchMemAdvancedNoAlloc() local
364 …ksforThisFile = (adv->mode == BMK_decodeOnly) ? 1 : (U32)((remaining + (blockSize-1)) / blockSize); in BMK_benchMemAdvancedNoAlloc()
367 size_t const thisBlockSize = MIN(remaining, blockSize); in BMK_benchMemAdvancedNoAlloc()
567 …size_t const blockSize = ((adv->blockSize>=32 && (adv->mode != BMK_decodeOnly)) ? adv->blockSize :… in BMK_benchMemAdvanced() local
568 U32 const maxNbBlocks = (U32) ((srcSize + (blockSize-1)) / blockSize) + nbFiles; in BMK_benchMemAdvanced()
681 (unsigned)benchedSize, adv->nbSeconds, (unsigned)(adv->blockSize>>10)); in BMK_benchCLevel()
H A Dzstdcli.c810 size_t blockSize = 0; in main() local
986 …if (longCommandWArg(&argument, "--block-size=")) { blockSize = readSizeTFromChar(&argument); conti… in main()
1153 blockSize = readU32FromChar(&argument); in main()
1274 benchParams.blockSize = blockSize; in main()
1314 …(void)bench_nbSeconds; (void)blockSize; (void)setRealTimePrio; (void)separateFiles; (void)compress… in main()
1330 …FileName, maxDictSize, filenames->fileNames, (int)filenames->tableSize, blockSize, NULL, &coverPar… in main()
1335 …FileName, maxDictSize, filenames->fileNames, (int)filenames->tableSize, blockSize, NULL, NULL, &fa… in main()
1341 …FileName, maxDictSize, filenames->fileNames, (int)filenames->tableSize, blockSize, &dictParams, NU… in main()
1427 FIO_setBlockSize(prefs, (int)blockSize); in main()
H A Dfileio.c307 int blockSize; member
380 ret->blockSize = 0; in FIO_createPreferences()
467 void FIO_setBlockSize(FIO_prefs_t* const prefs, int blockSize) { in FIO_setBlockSize() argument
468 if (blockSize && prefs->nbWorkers==0) in FIO_setBlockSize()
470 prefs->blockSize = blockSize; in FIO_setBlockSize()
1050 CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_c_jobSize, prefs->blockSize) ); in FIO_createCResources()
1245 const size_t blockSize = FIO_LZ4_GetBlockSize_FromBlockId(LZ4F_max64KB); in FIO_compressLz4Frame() local
1257 assert(blockSize <= ress->srcBufferSize); in FIO_compressLz4Frame()
1267 assert(LZ4F_compressBound(blockSize, &prefs) <= ress->dstBufferSize); in FIO_compressLz4Frame()
1280 readSize = fread(ress->srcBuffer, (size_t)1, (size_t)blockSize, ress->srcFile); in FIO_compressLz4Frame()
[all …]
H A Dbenchzstd.h110 size_t blockSize; /* Maximum size of each block*/ member
H A Dfileio.h83 void FIO_setBlockSize(FIO_prefs_t* const prefs, int blockSize);
/freebsd/sys/contrib/zstd/lib/compress/
H A Dzstd_compress.c1468 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_MAX, windowSize); in ZSTD_estimateCCtxSize_usingCCtxParams_internal() local
1470 size_t const maxNbSeq = blockSize / divider; in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1471 size_t const tokenSpace = ZSTD_cwksp_alloc_size(WILDCOPY_OVERLENGTH + blockSize) in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1479 size_t const maxNbLdmSeq = ZSTD_ldm_getMaxNbSeq(*ldmParams, blockSize); in ZSTD_estimateCCtxSize_usingCCtxParams_internal()
1565 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_MAX, (size_t)1 << cParams.windowLog); in ZSTD_estimateCStreamSize_usingCCtxParams() local
1567 ? ((size_t)1 << cParams.windowLog) + blockSize in ZSTD_estimateCStreamSize_usingCCtxParams()
1570 ? ZSTD_compressBound(blockSize) + 1 in ZSTD_estimateCStreamSize_usingCCtxParams()
1858 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_MAX, windowSize); in ZSTD_resetCCtx_internal() local
1860 size_t const maxNbSeq = blockSize / divider; in ZSTD_resetCCtx_internal()
1862 ? ZSTD_compressBound(blockSize) + 1 in ZSTD_resetCCtx_internal()
[all …]
/freebsd/sys/contrib/zstd/lib/legacy/
H A Dzstd_v01.c1961 size_t blockSize = ZSTDv01_getcBlockSize(ip, iend-ip, &blockProperties); in ZSTDv01_decompressDCtx() local
1962 if (ZSTDv01_isError(blockSize)) return blockSize; in ZSTDv01_decompressDCtx()
1966 if (blockSize > remainingSize) return ERROR(srcSize_wrong); in ZSTDv01_decompressDCtx()
1971 errorCode = ZSTD_decompressBlock(ctx, op, oend-op, ip, blockSize); in ZSTDv01_decompressDCtx()
1974 errorCode = ZSTD_copyUncompressedBlock(op, oend-op, ip, blockSize); in ZSTDv01_decompressDCtx()
1986 if (blockSize == 0) break; /* bt_end */ in ZSTDv01_decompressDCtx()
1990 ip += blockSize; in ZSTDv01_decompressDCtx()
1991 remainingSize -= blockSize; in ZSTDv01_decompressDCtx()
2035 size_t blockSize = ZSTDv01_getcBlockSize(ip, remainingSize, &blockProperties); in ZSTDv01_findFrameSizeInfoLegacy() local
2036 if (ZSTDv01_isError(blockSize)) { in ZSTDv01_findFrameSizeInfoLegacy()
[all …]
H A Dzstd_v07.c176 … ZSTDv07_insertBlock(ZSTDv07_DCtx* dctx, const void* blockStart, size_t blockSize); /**< insert b…
3772 …LIBv07_API size_t ZSTDv07_insertBlock(ZSTDv07_DCtx* dctx, const void* blockStart, size_t blockSize) in ZSTDv07_insertBlock() argument
3775 dctx->previousDstEnd = (const char*)blockStart + blockSize; in ZSTDv07_insertBlock()
3776 return blockSize; in ZSTDv07_insertBlock()
4324 size_t blockSize; member
4442 … { size_t const blockSize = MIN(zbd->fParams.windowSize, ZSTDv07_BLOCKSIZE_ABSOLUTEMAX); in ZBUFFv07_decompressContinue() local
4443 zbd->blockSize = blockSize; in ZBUFFv07_decompressContinue()
4444 if (zbd->inBuffSize < blockSize) { in ZBUFFv07_decompressContinue()
4446 zbd->inBuffSize = blockSize; in ZBUFFv07_decompressContinue()
4447 … zbd->inBuff = (char*)zbd->customMem.customAlloc(zbd->customMem.opaque, blockSize); in ZBUFFv07_decompressContinue()
[all …]
H A Dzstd_v06.c3959 size_t blockSize; member
4058 { size_t const blockSize = MIN(1 << zbd->fParams.windowLog, ZSTDv06_BLOCKSIZE_MAX); in ZBUFFv06_decompressContinue() local
4059 zbd->blockSize = blockSize; in ZBUFFv06_decompressContinue()
4060 if (zbd->inBuffSize < blockSize) { in ZBUFFv06_decompressContinue()
4062 zbd->inBuffSize = blockSize; in ZBUFFv06_decompressContinue()
4063 zbd->inBuff = (char*)malloc(blockSize); in ZBUFFv06_decompressContinue()
4066 …{ size_t const neededOutSize = ((size_t)1 << zbd->fParams.windowLog) + blockSize + WILDCOPY_OVER… in ZBUFFv06_decompressContinue()
4127 if (zbd->outStart + zbd->blockSize > zbd->outBuffSize) in ZBUFFv06_decompressContinue()
H A Dzstd_v03.c3078 size_t blockSize = ZSTD_getcBlockSize(src, ZSTD_blockHeaderSize, &bp); in ZSTD_decompressContinue() local
3079 if (ZSTD_isError(blockSize)) return blockSize; in ZSTD_decompressContinue()
3087 ctx->expected = blockSize; in ZSTD_decompressContinue()
H A Dzstd_v02.c3436 size_t blockSize = ZSTD_getcBlockSize(src, ZSTD_blockHeaderSize, &bp); in ZSTD_decompressContinue() local
3437 if (ZSTD_isError(blockSize)) return blockSize; in ZSTD_decompressContinue()
3445 ctx->expected = blockSize; in ZSTD_decompressContinue()
H A Dzstd_v04.c3225 size_t const blockSize = ZSTD_getcBlockSize(src, ZSTD_blockHeaderSize, &bp); in ZSTD_decompressContinue() local
3226 if (ZSTD_isError(blockSize)) return blockSize; in ZSTD_decompressContinue()
3234 ctx->expected = blockSize; in ZSTD_decompressContinue()
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_compress.c1131 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_MAX, (size_t)1 << cParams.windowLog); in ZSTD_estimateCCtxSize_usingCCtxParams() local
1133 size_t const maxNbSeq = blockSize / divider; in ZSTD_estimateCCtxSize_usingCCtxParams()
1134 size_t const tokenSpace = ZSTD_cwksp_alloc_size(WILDCOPY_OVERLENGTH + blockSize) in ZSTD_estimateCCtxSize_usingCCtxParams()
1142 …eqSpace = ZSTD_cwksp_alloc_size(ZSTD_ldm_getMaxNbSeq(params->ldmParams, blockSize) * sizeof(rawSeq… in ZSTD_estimateCCtxSize_usingCCtxParams()
1196 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_MAX, (size_t)1 << cParams.windowLog); in ZSTD_estimateCStreamSize_usingCCtxParams() local
1197 size_t const inBuffSize = ((size_t)1 << cParams.windowLog) + blockSize; in ZSTD_estimateCStreamSize_usingCCtxParams()
1198 size_t const outBuffSize = ZSTD_compressBound(blockSize) + 1; in ZSTD_estimateCStreamSize_usingCCtxParams()
1441 size_t const blockSize = MIN(ZSTD_BLOCKSIZE_MAX, windowSize); in ZSTD_resetCCtx_internal() local
1443 size_t const maxNbSeq = blockSize / divider; in ZSTD_resetCCtx_internal()
1444 size_t const tokenSpace = ZSTD_cwksp_alloc_size(WILDCOPY_OVERLENGTH + blockSize) in ZSTD_resetCCtx_internal()
[all …]
/freebsd/crypto/openssl/crypto/asn1/
H A Dp5_scrypt.c26 ASN1_SIMPLE(SCRYPT_PARAMS, blockSize, ASN1_INTEGER),
170 if (ASN1_INTEGER_set_uint64(sparam->blockSize, r) == 0) in pkcs5_scrypt_set()
256 || ASN1_INTEGER_get_uint64(&r, sparam->blockSize) == 0 in PKCS5_v2_scrypt_keyivgen_ex()
/freebsd/sys/contrib/zstd/zlibWrapper/examples/
H A Dzwrapbench.c122 void BMK_SetBlockSize(size_t blockSize) in BMK_SetBlockSize() argument
124 g_blockSize = blockSize; in BMK_SetBlockSize()
125 DISPLAYLEVEL(2, "using blocks of size %u KB \n", (unsigned)(blockSize>>10)); in BMK_SetBlockSize()
156 …size_t const blockSize = (g_blockSize>=32 ? g_blockSize : srcSize) + (!srcSize) /* avoid div by 0 … in BMK_benchMem() local
158 U32 const maxNbBlocks = (U32) ((srcSize + (blockSize-1)) / blockSize) + nbFiles; in BMK_benchMem()
181 U32 const nbBlocksforThisFile = (U32)((remaining + (blockSize-1)) / blockSize); in BMK_benchMem()
184 size_t const thisBlockSize = MIN(remaining, blockSize); in BMK_benchMem()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBlocks.cpp667 CharUnits &blockSize = info.BlockSize; in computeBlockInfo() local
672 CharUnits endAlign = getLowBit(blockSize); in computeBlockInfo()
701 li->setIndex(info, elementTypes.size(), blockSize); in computeBlockInfo()
703 blockSize += li->Size; in computeBlockInfo()
704 endAlign = getLowBit(blockSize); in computeBlockInfo()
717 assert(endAlign == getLowBit(blockSize)); in computeBlockInfo()
722 CharUnits newBlockSize = blockSize.alignTo(maxFieldAlign); in computeBlockInfo()
723 CharUnits padding = newBlockSize - blockSize; in computeBlockInfo()
727 if (blockSize == info.BlockHeaderForcedGapOffset) { in computeBlockInfo()
733 blockSize = newBlockSize; in computeBlockInfo()
[all …]
/freebsd/sys/contrib/ncsw/inc/etc/
H A Dmem_ext.h102 uint32_t blockSize; member
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress.c569 size_t ZSTD_insertBlock(ZSTD_DCtx* dctx, const void* blockStart, size_t blockSize) in ZSTD_insertBlock() argument
571 DEBUGLOG(5, "ZSTD_insertBlock: %u bytes", (unsigned)blockSize); in ZSTD_insertBlock()
573 dctx->previousDstEnd = (const char*)blockStart + blockSize; in ZSTD_insertBlock()
574 return blockSize; in ZSTD_insertBlock()
1486 size_t const blockSize = (size_t) MIN(windowSize, ZSTD_BLOCKSIZE_MAX); in ZSTD_decodingBufferSize_min() local
1487 unsigned long long const neededRBSize = windowSize + blockSize + (WILDCOPY_OVERLENGTH * 2); in ZSTD_decodingBufferSize_min()
1497 size_t const blockSize = MIN(windowSize, ZSTD_BLOCKSIZE_MAX); in ZSTD_estimateDStreamSize() local
1498 size_t const inBuffSize = blockSize; /* no block can be larger */ in ZSTD_estimateDStreamSize()
/freebsd/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress.c810 size_t ZSTD_insertBlock(ZSTD_DCtx* dctx, const void* blockStart, size_t blockSize) in ZSTD_insertBlock() argument
812 DEBUGLOG(5, "ZSTD_insertBlock: %u bytes", (unsigned)blockSize); in ZSTD_insertBlock()
813 ZSTD_checkContinuity(dctx, blockStart, blockSize); in ZSTD_insertBlock()
814 dctx->previousDstEnd = (const char*)blockStart + blockSize; in ZSTD_insertBlock()
815 return blockSize; in ZSTD_insertBlock()
1825 size_t const blockSize = (size_t) MIN(windowSize, ZSTD_BLOCKSIZE_MAX); in ZSTD_decodingBufferSize_min() local
1827 …unsigned long long const neededRBSize = windowSize + blockSize + ZSTD_BLOCKSIZE_MAX + (WILDCOPY_OV… in ZSTD_decodingBufferSize_min()
1837 size_t const blockSize = MIN(windowSize, ZSTD_BLOCKSIZE_MAX); in ZSTD_estimateDStreamSize() local
1838 size_t const inBuffSize = blockSize; /* no block can be larger */ in ZSTD_estimateDStreamSize()
/freebsd/contrib/expat/lib/
H A Dxmlparse.c7435 poolBytesToAllocateFor(int blockSize) { in poolBytesToAllocateFor() argument
7445 if (blockSize <= 0) in poolBytesToAllocateFor()
7448 if (blockSize > (int)(INT_MAX / stretch)) in poolBytesToAllocateFor()
7452 const int stretchedBlockSize = blockSize * (int)stretch; in poolBytesToAllocateFor()
7489 int blockSize = (int)((unsigned)(pool->end - pool->start) * 2U); in poolGrow() local
7496 if (blockSize < 0) { in poolGrow()
7506 bytesToAllocate = poolBytesToAllocateFor(blockSize); in poolGrow()
7515 pool->blocks->size = blockSize; in poolGrow()
7518 pool->end = pool->start + blockSize; in poolGrow()
7521 int blockSize = (int)(pool->end - pool->start); in poolGrow() local
[all …]
/freebsd/contrib/llvm-project/lld/MachO/
H A DSyntheticSections.cpp1568 return (fileOff + blockSize - 1) / blockSize; in getBlockCount()
1580 sha256(buf + i * blockSize, in writeHashes()
1581 std::min(static_cast<size_t>(fileOff - i * blockSize), blockSize), in writeHashes()
/freebsd/sys/contrib/ncsw/Peripherals/FM/Pcd/
H A Dfm_manip.c3269 uint8_t extraAddedBytes = 0, blockSize = 0, extraAddedBytesAlignedToBlockSize = 0, log2Num = 0; in InsrtHdrByTempl() local
3335blockSize = p_InsrtByTemplate->modifyOuterIpParams.recalculateLengthParams.blockSize; in InsrtHdrByTempl()
3342 if (blockSize) in InsrtHdrByTempl()
3344 if (!POWER_OF_2(blockSize)) in InsrtHdrByTempl()
3356 if (blockSize) in InsrtHdrByTempl()
3357 blockSize -= 1; in InsrtHdrByTempl()
3362 …erIpParams.ipOuterOffset + IPv4_TOTALLENGTH_FIELD_OFFSET_FROM_IP + 1] = blockSize; // IPV6 - in AD… in InsrtHdrByTempl()
3391 if (blockSize) in InsrtHdrByTempl()
3392 LOG2(blockSize, log2Num); in InsrtHdrByTempl()
/freebsd/sys/contrib/openzfs/module/zstd/lib/
H A Dzstd.h2083 ZSTDLIB_API size_t ZSTD_insertBlock (ZSTD_DCtx* dctx, const void* blockStart, size_t blockSize);…

12