/freebsd/contrib/expat/tests/benchmark/ |
H A D | benchmark.c | 67 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 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/sys/contrib/zstd/lib/dictBuilder/ |
H A D | zdict.c | 545 … const void* const buffer, size_t bufferSize, /* buffer must end with noisy guard band */ in ZDICT_trainBuffer_legacy() argument 549 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() 574 …if (bufferSize > ZDICT_MAX_SAMPLES_SIZE) DISPLAYLEVEL(3, "sample set too large : reduced to %u MB … 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() 579 …int const divSuftSortResult = divsufsort((const unsigned char*)buffer, suffix, (int)bufferSize, 0); in ZDICT_trainBuffer_legacy() 582 suffix[bufferSize] = (int)bufferSize; /* leads into noise */ in ZDICT_trainBuffer_legacy() [all …]
|
/freebsd/sys/dev/hptmv/ |
H A D | ioctl.c | 619 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 D | bman.c | 190 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 D | bman.h | 131 t_Handle bman_pool_create(uint8_t *bpid, uint16_t bufferSize,
|
H A D | if_dtsec_im.c | 147 pool_params->bufferSize = FM_PORT_BUFFER_SIZE; in dtsec_im_fm_port_rx_init()
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | fse_compress.c | 288 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 D | zstd_compress.c | 131 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 D | fse_compress.c | 328 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 D | zstdmt_compress.c | 98 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 D | zstd_compress.c | 159 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 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/sys/contrib/ncsw/inc/ |
H A D | ncsw_ext.h | 373 uint16_t bufferSize; /**< Buffer size (in bytes) */ member
|
/freebsd/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 | 2058 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 D | exception.cc | 354 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 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/sys/contrib/zstd/zlibWrapper/examples/ |
H A D | zwrapbench.c | 692 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 D | fse.h | 154 FSE_PUBLIC_API size_t FSE_writeNCount (void* buffer, size_t bufferSize,
|
/freebsd/sys/contrib/zstd/lib/common/ |
H A D | fse.h | 160 FSE_PUBLIC_API size_t FSE_writeNCount (void* buffer, size_t bufferSize,
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/ |
H A D | zstd_decompress.c | 1736 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 D | xmlparse.c | 2176 int bufferSize in XML_GetBuffer() local 2178 if (bufferSize == 0) in XML_GetBuffer() 2179 bufferSize = INIT_BUFFER_SIZE; in XML_GetBuffer() 2182 bufferSize = (int)(2U * (unsigned)bufferSize); in XML_GetBuffer() 2183 } while (bufferSize < neededSize && bufferSize > 0); in XML_GetBuffer() 2184 if (bufferSize <= 0) { in XML_GetBuffer() 2188 newBuf = (char *)MALLOC(parser, bufferSize); in XML_GetBuffer() 2193 parser->m_bufferLim = newBuf + bufferSize; in XML_GetBuffer()
|
/freebsd/sys/contrib/zstd/lib/decompress/ |
H A D | zstd_decompress.c | 2081 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 D | TargetSchedule.td | 569 class RetireControlUnit<int bufferSize, int retirePerCycle> { 570 int ReorderBufferSize = bufferSize;
|