Home
last modified time | relevance | path

Searched refs:bufferSize (Results 1 – 24 of 24) sorted by relevance

/freebsd/contrib/expat/tests/benchmark/
H A Dbenchmark.c76 int nrOfLoops, bufferSize, i, isFinal; in main() local
114 bufferSize = atoi(argv[j + 2]); in main()
116 if (bufferSize <= 0 || nrOfLoops <= 0) { in main()
144 if (parseBufferSize <= (ptrdiff_t)bufferSize) in main()
147 parseBufferSize = bufferSize; in main()
148 assert(parseBufferSize <= (ptrdiff_t)bufferSize); in main()
160 XMLBufPtr += bufferSize; in main()
172 nrOfLoops, bufferSize, cpuTime / (double)nrOfLoops); in main()
/freebsd/sys/contrib/zstd/programs/
H A Dfileio_asyncio.c34 const void* buffer, size_t bufferSize, in AIO_fwriteSparse() argument
39 size_t bufferSizeT = bufferSize / sizeof(size_t); in AIO_fwriteSparse()
47 size_t const sizeCheck = fwrite(buffer, 1, bufferSize, file); in AIO_fwriteSparse()
48 if (sizeCheck != bufferSize) in AIO_fwriteSparse()
88 if (bufferSize & maskT) { in AIO_fwriteSparse()
92 const char* const restEnd = (const char*)buffer + bufferSize; in AIO_fwriteSparse()
146 static IOJob_t *AIO_IOPool_createIoJob(IOPoolCtx_t *ctx, size_t bufferSize) { in AIO_IOPool_createIoJob() argument
148 void* const buffer = malloc(bufferSize); in AIO_IOPool_createIoJob()
152 job->bufferSize = bufferSize; in AIO_IOPool_createIoJob()
182 …l_init(IOPoolCtx_t* ctx, const FIO_prefs_t* prefs, POOL_function poolFunction, size_t bufferSize) { in AIO_IOPool_init() argument
[all …]
H A Dfileio_asyncio.h90 size_t bufferSize; member
141 WritePoolCtx_t* AIO_WritePool_create(const FIO_prefs_t* prefs, size_t bufferSize);
156 ReadPoolCtx_t* AIO_ReadPool_create(const FIO_prefs_t* prefs, size_t bufferSize);
H A Dfileio.c1240 strm.avail_out = (uInt)writeJob->bufferSize; in FIO_compressGzFrame()
1260 { size_t const cSize = writeJob->bufferSize - strm.avail_out; in FIO_compressGzFrame()
1266 strm.avail_out = (uInt)writeJob->bufferSize; in FIO_compressGzFrame()
1282 { size_t const cSize = writeJob->bufferSize - strm.avail_out; in FIO_compressGzFrame()
1288 strm.avail_out = (uInt)writeJob->bufferSize; in FIO_compressGzFrame()
1337 strm.avail_out = writeJob->bufferSize; in FIO_compressLzmaFrame()
1359 { size_t const compBytes = writeJob->bufferSize - strm.avail_out; in FIO_compressLzmaFrame()
1365 strm.avail_out = writeJob->bufferSize; in FIO_compressLzmaFrame()
1428 assert(LZ4F_compressBound(blockSize, &prefs) <= writeJob->bufferSize); in FIO_compressLz4Frame()
1431 size_t headerSize = LZ4F_compressBegin(ctx, writeJob->buffer, writeJob->bufferSize, &prefs); in FIO_compressLz4Frame()
[all …]
H A Dbenchzstd.c1067 size_t bufferSize, in BMK_loadFiles() argument
1093 if (fileSize > bufferSize - pos) { in BMK_loadFiles()
1095 fileSize = bufferSize - pos; in BMK_loadFiles()
/freebsd/sys/contrib/zstd/lib/dictBuilder/
H A Dzdict.c466 … const void* const buffer, size_t bufferSize, /* buffer must end with noisy guard band */ in ZDICT_trainBuffer_legacy() argument
470 int* const suffix0 = (int*)malloc((bufferSize+2)*sizeof(*suffix0)); in ZDICT_trainBuffer_legacy()
472 U32* reverseSuffix = (U32*)malloc((bufferSize)*sizeof(*reverseSuffix)); in ZDICT_trainBuffer_legacy()
473 …BYTE* doneMarks = (BYTE*)malloc((bufferSize+16)*sizeof(*doneMarks)); /* +16 for overflow securit… in ZDICT_trainBuffer_legacy()
498 memset(doneMarks, 0, bufferSize+16); in ZDICT_trainBuffer_legacy()
501 …if (bufferSize > ZDICT_MAX_SAMPLES_SIZE) DISPLAYLEVEL(3, "sample set too large : reduced to %u MB … in ZDICT_trainBuffer_legacy()
502 while (bufferSize > ZDICT_MAX_SAMPLES_SIZE) bufferSize -= fileSizes[--nbFiles]; in ZDICT_trainBuffer_legacy()
505 …DISPLAYLEVEL(2, "sorting %u files of total size %u MB ...\n", nbFiles, (unsigned)(bufferSize>>20)); in ZDICT_trainBuffer_legacy()
506 …int const divSuftSortResult = divsufsort((const unsigned char*)buffer, suffix, (int)bufferSize, 0); in ZDICT_trainBuffer_legacy()
509 suffix[bufferSize] = (int)bufferSize; /* leads into noise */ in ZDICT_trainBuffer_legacy()
[all …]
/freebsd/sys/dev/hptmv/
H A Dioctl.c619 ULONG bufferSize = SECTOR_TO_BYTE(pCmd->uCmd.R1Control.nSectors); in R1ControlSgl() local
621 bufferSize<<=1; in R1ControlSgl()
624 pSgTable->wSgSize = (USHORT)bufferSize; in R1ControlSgl()
652 nextvaddr = (ADDRESS)MIN(((ULONG_PTR)v + bufferSize), (ULONG_PTR)(nextpage)); in R1ControlSgl()
654 if (nextvaddr == (ADDRESS)((ULONG_PTR)v + bufferSize)) break; in R1ControlSgl()
668 bufferSize -= length; in R1ControlSgl()
671 pSgTable[idx].wSgFlag = (bufferSize)? 0 : SG_FLAG_EOT; in R1ControlSgl()
674 }while (bufferSize); in R1ControlSgl()
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dfse_compress.c331 size_t FSE_writeNCount (void* buffer, size_t bufferSize, in FSE_writeNCount() argument
337 if (bufferSize < FSE_NCountWriteBound(maxSymbolValue, tableLog)) in FSE_writeNCount()
338 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 0); in FSE_writeNCount()
340 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 1 … in FSE_writeNCount()
H A Dzstd_compress.c166 size_t const bufferSize = dict.dictBuffer != NULL ? dict.dictSize : 0; in ZSTD_sizeof_localDict() local
168 return bufferSize + cdictSize; in ZSTD_sizeof_localDict()
/freebsd/sys/contrib/zstd/lib/compress/
H A Dfse_compress.c330 size_t FSE_writeNCount (void* buffer, size_t bufferSize, in FSE_writeNCount() argument
336 if (bufferSize < FSE_NCountWriteBound(maxSymbolValue, tableLog)) in FSE_writeNCount()
337 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 0); in FSE_writeNCount()
339 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 1 … in FSE_writeNCount()
H A Dzstdmt_compress.c99 size_t bufferSize; member
136 bufPool->bufferSize = 64 KB; in ZSTDMT_createBufferPool()
166 bufPool->bufferSize = bSize; in ZSTDMT_setBufferSize()
178 size_t const bSize = srcBufPool->bufferSize; /* forward parameters */ in ZSTDMT_expandBufferPool()
194 size_t const bSize = bufPool->bufferSize; in ZSTDMT_getBuffer()
195 DEBUGLOG(5, "ZSTDMT_getBuffer: bSize = %u", (U32)bufPool->bufferSize); in ZSTDMT_getBuffer()
236 size_t const bSize = bufPool->bufferSize; in ZSTDMT_resizeBuffer()
311 if (seqPool->bufferSize == 0) { in ZSTDMT_getSeq()
H A Dzstd_compress.c165 size_t const bufferSize = dict.dictBuffer != NULL ? dict.dictSize : 0; in ZSTD_sizeof_localDict() local
167 return bufferSize + cdictSize; in ZSTD_sizeof_localDict()
/freebsd/sys/contrib/ncsw/Peripherals/FM/Port/
H A Dfm_port_im.c247 …p_FmPort->im.rxPool.bufferSize = p_FmPortParams->specificParams.imRxTxParams.rxPoolParams.buf… in FmPortConfigIM()
259 if (p_FmPort->im.rxPool.bufferSize & p_FmPort->im.mrblr) in FmPortConfigIM()
263 if (p_FmPort->im.mrblr != p_FmPort->im.rxPool.bufferSize) in FmPortConfigIM()
/freebsd/sys/contrib/ncsw/inc/
H A Dncsw_ext.h373 uint16_t bufferSize; /**< Buffer size (in bytes) */ member
/freebsd/contrib/libcxxrt/
H A Dexception.cc354 size_t bufferSize = 128; in terminate_with_diagnostics() local
355 char *demangled = static_cast<char*>(malloc(bufferSize)); in terminate_with_diagnostics()
358 demangled = __cxa_demangle(mangled, demangled, &bufferSize, &status); in terminate_with_diagnostics()
/freebsd/sys/contrib/ncsw/Peripherals/BM/
H A Dbm_pool.c211 p_BmPoolParam->bufferPoolInfo.bufferSize)), E_INVALID_STATE, NULL); in BM_POOL_Config()
531 return p_BmPool->bufferPoolInfo.bufferSize; in BM_POOL_GetBufferSize()
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/
H A Dfse.h113 FSE_PUBLIC_API size_t FSE_writeNCount (void* buffer, size_t bufferSize,
/freebsd/sys/contrib/zstd/lib/common/
H A Dfse.h112 FSE_PUBLIC_API size_t FSE_writeNCount (void* buffer, size_t bufferSize,
/freebsd/contrib/llvm-project/lld/COFF/
H A DDriverUtils.cpp220 size_t bufferSize = stub->getBufferSize(); in parseDosStub() local
225 if (bufferSize < 64) in parseDosStub()
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress.c2249 size_t const bufferSize = neededInBuffSize + neededOutBuffSize; in ZSTD_decompressStream() local
2258 bufferSize > zds->staticSize - sizeof(ZSTD_DCtx), in ZSTD_decompressStream()
2264 zds->inBuff = (char*)ZSTD_customMalloc(bufferSize, zds->customMem); in ZSTD_decompressStream()
/freebsd/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress.c2248 size_t const bufferSize = neededInBuffSize + neededOutBuffSize; in ZSTD_decompressStream() local
2257 bufferSize > zds->staticSize - sizeof(ZSTD_DCtx), in ZSTD_decompressStream()
2263 zds->inBuff = (char*)ZSTD_customMalloc(bufferSize, zds->customMem); in ZSTD_decompressStream()
/freebsd/contrib/expat/lib/
H A Dxmlparse.c2510 int bufferSize local
2512 if (bufferSize == 0)
2513 bufferSize = INIT_BUFFER_SIZE;
2516 bufferSize = (int)(2U * (unsigned)bufferSize);
2517 } while (bufferSize < neededSize && bufferSize > 0);
2518 if (bufferSize <= 0) {
2524 newBuf = parser->m_mem.malloc_fcn(bufferSize);
2529 parser->m_bufferLim = newBuf + bufferSize;
/freebsd/contrib/llvm-project/llvm/include/llvm/Target/
H A DTargetSchedule.td575 class RetireControlUnit<int bufferSize, int retirePerCycle> {
576 int ReorderBufferSize = bufferSize;
/freebsd/contrib/bsnmp/tests/
H A Dcatch.hpp13407 template<typename WriterF, std::size_t bufferSize=256>
13409 char data[bufferSize];