| /freebsd-13.1/contrib/expat/tests/benchmark/ |
| H A D | benchmark.c | 65 int nrOfLoops, bufferSize, fileSize, i, isFinal; in main() local 94 bufferSize = atoi(argv[j + 2]); in main() 96 if (bufferSize <= 0 || nrOfLoops <= 0) { in main() 118 if (parseBufferSize <= bufferSize) in main() 121 parseBufferSize = bufferSize; in main() 133 XMLBufPtr += bufferSize; in main() 145 nrOfLoops, bufferSize, cpuTime / (double)nrOfLoops); in main()
|
| /freebsd-13.1/sys/contrib/zstd/examples/ |
| H A D | common.h | 180 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-13.1/contrib/serf/buckets/ |
| H A D | deflate_buckets.c | 65 int bufferSize; member 120 ctx->bufferSize = DEFLATE_BUFFER_SIZE; in serf_bucket_deflate_create() 218 ctx->zstream.avail_out = ctx->bufferSize; in serf_deflate_read() 261 ctx->bufferSize, in serf_deflate_read() 289 private_len = ctx->bufferSize - ctx->zstream.avail_out; in serf_deflate_read() 299 ctx->zstream.avail_out = ctx->bufferSize; in serf_deflate_read() 306 private_len = ctx->bufferSize - ctx->zstream.avail_out; in serf_deflate_read() 315 ctx->zstream.avail_out = ctx->bufferSize; in serf_deflate_read()
|
| /freebsd-13.1/sys/contrib/zstd/lib/dictBuilder/ |
| H A D | zdict.c | 524 int* const suffix0 = (int*)malloc((bufferSize+2)*sizeof(*suffix0)); in ZDICT_trainBuffer_legacy() 526 U32* reverseSuffix = (U32*)malloc((bufferSize)*sizeof(*reverseSuffix)); in ZDICT_trainBuffer_legacy() 527 …BYTE* doneMarks = (BYTE*)malloc((bufferSize+16)*sizeof(*doneMarks)); /* +16 for overflow securit… in ZDICT_trainBuffer_legacy() 546 memset(doneMarks, 0, bufferSize+16); in ZDICT_trainBuffer_legacy() 550 while (bufferSize > ZDICT_MAX_SAMPLES_SIZE) bufferSize -= fileSizes[--nbFiles]; in ZDICT_trainBuffer_legacy() 553 …DISPLAYLEVEL(2, "sorting %u files of total size %u MB ...\n", nbFiles, (unsigned)(bufferSize>>20)); in ZDICT_trainBuffer_legacy() 557 suffix[bufferSize] = (int)bufferSize; /* leads into noise */ in ZDICT_trainBuffer_legacy() 558 suffix0[0] = (int)bufferSize; /* leads into noise */ in ZDICT_trainBuffer_legacy() 561 for (pos=0; pos < bufferSize; pos++) in ZDICT_trainBuffer_legacy() 573 { U32 cursor; for (cursor=0; cursor < bufferSize; ) { in ZDICT_trainBuffer_legacy() [all …]
|
| /freebsd-13.1/sys/dev/hptmv/ |
| H A D | ioctl.c | 621 ULONG bufferSize = SECTOR_TO_BYTE(pCmd->uCmd.R1Control.nSectors); in R1ControlSgl() local 623 bufferSize<<=1; in R1ControlSgl() 626 pSgTable->wSgSize = (USHORT)bufferSize; in R1ControlSgl() 654 nextvaddr = (ADDRESS)MIN(((ULONG_PTR)v + bufferSize), (ULONG_PTR)(nextpage)); in R1ControlSgl() 656 if (nextvaddr == (ADDRESS)((ULONG_PTR)v + bufferSize)) break; in R1ControlSgl() 670 bufferSize -= length; in R1ControlSgl() 673 pSgTable[idx].wSgFlag = (bufferSize)? 0 : SG_FLAG_EOT; in R1ControlSgl() 676 }while (bufferSize); in R1ControlSgl()
|
| /freebsd-13.1/sys/dev/dpaa/ |
| H A D | bman.c | 195 bman_pool_create(uint8_t *bpid, uint16_t bufferSize, uint16_t maxBuffers, in bman_pool_create() argument 228 bpp.bufferPoolInfo.bufferSize = bufferSize; in bman_pool_create()
|
| H A D | bman.h | 133 t_Handle bman_pool_create(uint8_t *bpid, uint16_t bufferSize,
|
| H A D | if_dtsec_im.c | 150 pool_params->bufferSize = FM_PORT_BUFFER_SIZE; in dtsec_im_fm_port_rx_init()
|
| /freebsd-13.1/sys/contrib/zstd/lib/compress/ |
| H A D | fse_compress.c | 292 size_t FSE_writeNCount (void* buffer, size_t bufferSize, in FSE_writeNCount() argument 298 if (bufferSize < FSE_NCountWriteBound(maxSymbolValue, tableLog)) in FSE_writeNCount() 299 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 0); in FSE_writeNCount() 301 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 1 … in FSE_writeNCount()
|
| H A D | zstdmt_compress.c | 98 size_t bufferSize; member 115 bufPool->bufferSize = 64 KB; in ZSTDMT_createBufferPool() 158 bufPool->bufferSize = bSize; in ZSTDMT_setBufferSize() 171 size_t const bSize = srcBufPool->bufferSize; /* forward parameters */ in ZSTDMT_expandBufferPool() 187 size_t const bSize = bufPool->bufferSize; in ZSTDMT_getBuffer() 188 DEBUGLOG(5, "ZSTDMT_getBuffer: bSize = %u", (U32)bufPool->bufferSize); in ZSTDMT_getBuffer() 229 size_t const bSize = bufPool->bufferSize; in ZSTDMT_resizeBuffer() 294 if (seqPool->bufferSize == 0) { in ZSTDMT_getSeq()
|
| H A D | zstd_compress.c | 144 size_t const bufferSize = dict.dictBuffer != NULL ? dict.dictSize : 0; in ZSTD_sizeof_localDict() local 146 return bufferSize + cdictSize; in ZSTD_sizeof_localDict()
|
| /freebsd-13.1/sys/contrib/ncsw/Peripherals/FM/Port/ |
| H A D | fm_port_im.c | 247 …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-13.1/contrib/libcxxrt/ |
| H A D | exception.cc | 732 size_t bufferSize = 128; in report_failure() local 733 char *demangled = static_cast<char*>(malloc(bufferSize)); in report_failure() 736 demangled = __cxa_demangle(mangled, demangled, &bufferSize, &status); in report_failure()
|
| /freebsd-13.1/sys/contrib/ncsw/inc/ |
| H A D | ncsw_ext.h | 373 uint16_t bufferSize; /**< Buffer size (in bytes) */ member
|
| /freebsd-13.1/sys/contrib/zstd/programs/ |
| H A D | benchzstd.c | 748 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 D | fileio.c | 1926 const void* buffer, size_t bufferSize, in FIO_fwriteSparse() argument 1931 size_t bufferSizeT = bufferSize / sizeof(size_t); in FIO_fwriteSparse() 1939 size_t const sizeCheck = fwrite(buffer, 1, bufferSize, file); in FIO_fwriteSparse() 1940 if (sizeCheck != bufferSize) in FIO_fwriteSparse() 1980 if (bufferSize & maskT) { in FIO_fwriteSparse() 1984 const char* const restEnd = (const char*)buffer + bufferSize; in FIO_fwriteSparse() 2024 void* buffer, size_t bufferSize, in FIO_passThrough() argument 2027 size_t const blockSize = MIN(64 KB, bufferSize); in FIO_passThrough()
|
| /freebsd-13.1/sys/contrib/ncsw/Peripherals/BM/ |
| H A D | bm_pool.c | 211 p_BmPoolParam->bufferPoolInfo.bufferSize)), E_INVALID_STATE, NULL); in BM_POOL_Config() 531 return p_BmPool->bufferPoolInfo.bufferSize; in BM_POOL_GetBufferSize()
|
| /freebsd-13.1/sys/contrib/zstd/zlibWrapper/examples/ |
| H A D | zwrapbench.c | 677 static void BMK_loadFiles(void* buffer, size_t bufferSize, in BMK_loadFiles() argument 699 …if (fileSize > bufferSize-pos) fileSize = bufferSize-pos, nbFiles=n; /* buffer too small - stop … in BMK_loadFiles()
|
| /freebsd-13.1/sys/contrib/zstd/lib/common/ |
| H A D | fse.h | 160 FSE_PUBLIC_API size_t FSE_writeNCount (void* buffer, size_t bufferSize,
|
| /freebsd-13.1/sys/contrib/zstd/lib/decompress/ |
| H A D | zstd_decompress.c | 1781 size_t const bufferSize = neededInBuffSize + neededOutBuffSize; in ZSTD_decompressStream() local 1790 bufferSize > zds->staticSize - sizeof(ZSTD_DCtx), in ZSTD_decompressStream() 1796 zds->inBuff = (char*)ZSTD_customMalloc(bufferSize, zds->customMem); in ZSTD_decompressStream()
|
| /freebsd-13.1/contrib/expat/lib/ |
| H A D | xmlparse.c | 2104 int bufferSize in XML_GetBuffer() local 2106 if (bufferSize == 0) in XML_GetBuffer() 2107 bufferSize = INIT_BUFFER_SIZE; in XML_GetBuffer() 2110 bufferSize = (int)(2U * (unsigned)bufferSize); in XML_GetBuffer() 2111 } while (bufferSize < neededSize && bufferSize > 0); in XML_GetBuffer() 2112 if (bufferSize <= 0) { in XML_GetBuffer() 2116 newBuf = (char *)MALLOC(parser, bufferSize); in XML_GetBuffer() 2121 parser->m_bufferLim = newBuf + bufferSize; in XML_GetBuffer()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Target/ |
| H A D | TargetSchedule.td | 560 class RetireControlUnit<int bufferSize, int retirePerCycle> { 561 int ReorderBufferSize = bufferSize;
|
| /freebsd-13.1/sys/contrib/openzfs/module/zstd/lib/ |
| H A D | zstd.c | 991 FSE_PUBLIC_API size_t FSE_writeNCount (void* buffer, size_t bufferSize, 7765 size_t FSE_writeNCount (void* buffer, size_t bufferSize, in FSE_writeNCount() argument 7771 if (bufferSize < FSE_NCountWriteBound(maxSymbolValue, tableLog)) in FSE_writeNCount() 7772 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 0); in FSE_writeNCount() 7774 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 1 … in FSE_writeNCount() 13213 size_t const bufferSize = dict.dictBuffer != NULL ? dict.dictSize : 0; in ZSTD_sizeof_localDict() local 13215 return bufferSize + cdictSize; in ZSTD_sizeof_localDict() 26240 size_t const bufferSize = neededInBuffSize + neededOutBuffSize; in ZSTD_decompressStream() local 26249 bufferSize > zds->staticSize - sizeof(ZSTD_DCtx), in ZSTD_decompressStream() 26255 zds->inBuff = (char*)ZSTD_malloc(bufferSize, zds->customMem); in ZSTD_decompressStream()
|
| /freebsd-13.1/contrib/bsnmp/tests/ |
| H A D | catch.hpp | 13407 template<typename WriterF, std::size_t bufferSize=256> 13409 char data[bufferSize];
|