Home
last modified time | relevance | path

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

12

/freebsd/contrib/expat/tests/benchmark/
H A Dbenchmark.c67 int nrOfLoops, bufferSize, i, isFinal; in main() local
97 bufferSize = atoi(argv[j + 2]); in main()
99 if (bufferSize <= 0 || nrOfLoops <= 0) { in main()
121 if (parseBufferSize <= (ptrdiff_t)bufferSize) in main()
124 parseBufferSize = bufferSize; in main()
125 assert(parseBufferSize <= (ptrdiff_t)bufferSize); in main()
137 XMLBufPtr += bufferSize; in main()
149 nrOfLoops, bufferSize, cpuTime / (double)nrOfLoops); in main()
/freebsd/sys/contrib/zstd/examples/
H A Dcommon.h180 static size_t loadFile_orDie(const char* fileName, void* buffer, size_t bufferSize) in loadFile_orDie() argument
183 CHECK(fileSize <= bufferSize, "File too large!"); in loadFile_orDie()
204 static void* mallocAndLoadFile_orDie(const char* fileName, size_t* bufferSize) { in mallocAndLoadFile_orDie() argument
206 *bufferSize = fileSize; in mallocAndLoadFile_orDie()
207 void* const buffer = malloc_orDie(*bufferSize); in mallocAndLoadFile_orDie()
208 loadFile_orDie(fileName, buffer, *bufferSize); in mallocAndLoadFile_orDie()
/freebsd/sys/contrib/zstd/lib/dictBuilder/
H A Dzdict.c549 int* const suffix0 = (int*)malloc((bufferSize+2)*sizeof(*suffix0)); in ZDICT_trainBuffer_legacy()
551 U32* reverseSuffix = (U32*)malloc((bufferSize)*sizeof(*reverseSuffix)); in ZDICT_trainBuffer_legacy()
552 …BYTE* doneMarks = (BYTE*)malloc((bufferSize+16)*sizeof(*doneMarks)); /* +16 for overflow securit… in ZDICT_trainBuffer_legacy()
571 memset(doneMarks, 0, bufferSize+16); in ZDICT_trainBuffer_legacy()
575 while (bufferSize > ZDICT_MAX_SAMPLES_SIZE) bufferSize -= fileSizes[--nbFiles]; in ZDICT_trainBuffer_legacy()
578 …DISPLAYLEVEL(2, "sorting %u files of total size %u MB ...\n", nbFiles, (unsigned)(bufferSize>>20)); in ZDICT_trainBuffer_legacy()
582 suffix[bufferSize] = (int)bufferSize; /* leads into noise */ in ZDICT_trainBuffer_legacy()
583 suffix0[0] = (int)bufferSize; /* leads into noise */ in ZDICT_trainBuffer_legacy()
586 for (pos=0; pos < bufferSize; pos++) in ZDICT_trainBuffer_legacy()
598 { U32 cursor; for (cursor=0; cursor < bufferSize; ) { 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/dev/dpaa/
H A Dbman.c190 bman_pool_create(uint8_t *bpid, uint16_t bufferSize, uint16_t maxBuffers, in bman_pool_create() argument
223 bpp.bufferPoolInfo.bufferSize = bufferSize; in bman_pool_create()
H A Dbman.h131 t_Handle bman_pool_create(uint8_t *bpid, uint16_t bufferSize,
H A Dif_dtsec_im.c147 pool_params->bufferSize = FM_PORT_BUFFER_SIZE; in dtsec_im_fm_port_rx_init()
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dfse_compress.c288 size_t FSE_writeNCount (void* buffer, size_t bufferSize, in FSE_writeNCount() argument
294 if (bufferSize < FSE_NCountWriteBound(maxSymbolValue, tableLog)) in FSE_writeNCount()
295 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 0); in FSE_writeNCount()
297 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 1 … in FSE_writeNCount()
H A Dzstd_compress.c131 size_t const bufferSize = dict.dictBuffer != NULL ? dict.dictSize : 0; in ZSTD_sizeof_localDict() local
133 return bufferSize + cdictSize; in ZSTD_sizeof_localDict()
/freebsd/sys/contrib/zstd/lib/compress/
H A Dfse_compress.c328 size_t FSE_writeNCount (void* buffer, size_t bufferSize, in FSE_writeNCount() argument
334 if (bufferSize < FSE_NCountWriteBound(maxSymbolValue, tableLog)) in FSE_writeNCount()
335 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 0); in FSE_writeNCount()
337 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 1 … in FSE_writeNCount()
H A Dzstdmt_compress.c98 size_t bufferSize; member
114 bufPool->bufferSize = 64 KB; in ZSTDMT_createBufferPool()
157 bufPool->bufferSize = bSize; in ZSTDMT_setBufferSize()
169 size_t const bSize = srcBufPool->bufferSize; /* forward parameters */ in ZSTDMT_expandBufferPool()
185 size_t const bSize = bufPool->bufferSize; in ZSTDMT_getBuffer()
186 DEBUGLOG(5, "ZSTDMT_getBuffer: bSize = %u", (U32)bufPool->bufferSize); in ZSTDMT_getBuffer()
227 size_t const bSize = bufPool->bufferSize; in ZSTDMT_resizeBuffer()
302 if (seqPool->bufferSize == 0) { in ZSTDMT_getSeq()
H A Dzstd_compress.c159 size_t const bufferSize = dict.dictBuffer != NULL ? dict.dictSize : 0; in ZSTD_sizeof_localDict() local
161 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/sys/contrib/zstd/programs/
H A Dbenchzstd.c748 static int BMK_loadFiles(void* buffer, size_t bufferSize, in BMK_loadFiles() argument
770 …if (fileSize > bufferSize-pos) fileSize = bufferSize-pos, nbFiles=n; /* buffer too small - stop … in BMK_loadFiles()
H A Dfileio.c2058 const void* buffer, size_t bufferSize, in FIO_fwriteSparse() argument
2063 size_t bufferSizeT = bufferSize / sizeof(size_t); in FIO_fwriteSparse()
2071 size_t const sizeCheck = fwrite(buffer, 1, bufferSize, file); in FIO_fwriteSparse()
2072 if (sizeCheck != bufferSize) in FIO_fwriteSparse()
2112 if (bufferSize & maskT) { in FIO_fwriteSparse()
2116 const char* const restEnd = (const char*)buffer + bufferSize; in FIO_fwriteSparse()
2156 void* buffer, size_t bufferSize, in FIO_passThrough() argument
2159 size_t const blockSize = MIN(64 KB, bufferSize); in FIO_passThrough()
/freebsd/contrib/libcxxrt/
H A Dexception.cc753 size_t bufferSize = 128; in report_failure() local
754 char *demangled = static_cast<char*>(malloc(bufferSize)); in report_failure()
757 demangled = __cxa_demangle(mangled, demangled, &bufferSize, &status); in report_failure()
/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/zstd/zlibWrapper/examples/
H A Dzwrapbench.c692 static void BMK_loadFiles(void* buffer, size_t bufferSize, in BMK_loadFiles() argument
714 …if (fileSize > bufferSize-pos) fileSize = bufferSize-pos, nbFiles=n; /* buffer too small - stop … in BMK_loadFiles()
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/
H A Dfse.h154 FSE_PUBLIC_API size_t FSE_writeNCount (void* buffer, size_t bufferSize,
/freebsd/sys/contrib/zstd/lib/common/
H A Dfse.h160 FSE_PUBLIC_API size_t FSE_writeNCount (void* buffer, size_t bufferSize,
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress.c1736 size_t const bufferSize = neededInBuffSize + neededOutBuffSize; in ZSTD_decompressStream() local
1745 bufferSize > zds->staticSize - sizeof(ZSTD_DCtx), in ZSTD_decompressStream()
1751 zds->inBuff = (char*)ZSTD_malloc(bufferSize, zds->customMem); in ZSTD_decompressStream()
/freebsd/contrib/expat/lib/
H A Dxmlparse.c2161 int bufferSize in XML_GetBuffer() local
2163 if (bufferSize == 0) in XML_GetBuffer()
2164 bufferSize = INIT_BUFFER_SIZE; in XML_GetBuffer()
2167 bufferSize = (int)(2U * (unsigned)bufferSize); in XML_GetBuffer()
2168 } while (bufferSize < neededSize && bufferSize > 0); in XML_GetBuffer()
2169 if (bufferSize <= 0) { in XML_GetBuffer()
2173 newBuf = (char *)MALLOC(parser, bufferSize); in XML_GetBuffer()
2178 parser->m_bufferLim = newBuf + bufferSize; in XML_GetBuffer()
/freebsd/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress.c2081 size_t const bufferSize = neededInBuffSize + neededOutBuffSize; in ZSTD_decompressStream() local
2090 bufferSize > zds->staticSize - sizeof(ZSTD_DCtx), in ZSTD_decompressStream()
2096 zds->inBuff = (char*)ZSTD_customMalloc(bufferSize, zds->customMem); in ZSTD_decompressStream()
/freebsd/contrib/llvm-project/llvm/include/llvm/Target/
H A DTargetSchedule.td572 class RetireControlUnit<int bufferSize, int retirePerCycle> {
573 int ReorderBufferSize = bufferSize;

12