Home
last modified time | relevance | path

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

/dflybsd-src/contrib/zstd/lib/dictBuilder/
H A Dzdict.c520 … const void* const buffer, size_t bufferSize, /* buffer must end with noisy guard band */ in ZDICT_trainBuffer_legacy() argument
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()
549 …if (bufferSize > ZDICT_MAX_SAMPLES_SIZE) DISPLAYLEVEL(3, "sample set too large : reduced to %u MB … 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()
554 …int const divSuftSortResult = divsufsort((const unsigned char*)buffer, suffix, (int)bufferSize, 0); in ZDICT_trainBuffer_legacy()
557 suffix[bufferSize] = (int)bufferSize; /* leads into noise */ in ZDICT_trainBuffer_legacy()
[all …]
/dflybsd-src/sys/dev/raid/hptmv/
H A Dioctl.c622 ULONG bufferSize = SECTOR_TO_BYTE(pCmd->uCmd.R1Control.nSectors); in R1ControlSgl() local
624 bufferSize<<=1; in R1ControlSgl()
627 pSgTable->wSgSize = (USHORT)bufferSize; in R1ControlSgl()
655 nextvaddr = (ADDRESS)MIN(((ULONG_PTR)v + bufferSize), (ULONG_PTR)(nextpage)); in R1ControlSgl()
657 if (nextvaddr == (ADDRESS)((ULONG_PTR)v + bufferSize)) break; in R1ControlSgl()
671 bufferSize -= length; in R1ControlSgl()
674 pSgTable[idx].wSgFlag = (bufferSize)? 0 : SG_FLAG_EOT; in R1ControlSgl()
677 }while (bufferSize); in R1ControlSgl()
/dflybsd-src/contrib/zstd/lib/compress/
H A Dfse_compress.c292 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 Dzstdmt_compress.c98 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 Dzstd_compress.c144 size_t const bufferSize = dict.dictBuffer != NULL ? dict.dictSize : 0; in ZSTD_sizeof_localDict() local
146 return bufferSize + cdictSize; in ZSTD_sizeof_localDict()
/dflybsd-src/contrib/zstd/programs/
H A Dfileio.c1926 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()
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()
/dflybsd-src/contrib/zstd/lib/common/
H A Dfse.h160 FSE_PUBLIC_API size_t FSE_writeNCount (void* buffer, size_t bufferSize,
/dflybsd-src/contrib/zstd/lib/decompress/
H A Dzstd_decompress.c1781 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()
/dflybsd-src/contrib/expat/lib/
H A Dxmlparse.c2113 int bufferSize in XML_GetBuffer() local
2115 if (bufferSize == 0) in XML_GetBuffer()
2116 bufferSize = INIT_BUFFER_SIZE; in XML_GetBuffer()
2119 bufferSize = (int)(2U * (unsigned)bufferSize); in XML_GetBuffer()
2120 } while (bufferSize < neededSize && bufferSize > 0); in XML_GetBuffer()
2121 if (bufferSize <= 0) { in XML_GetBuffer()
2125 newBuf = (char *)MALLOC(parser, bufferSize); in XML_GetBuffer()
2130 parser->m_bufferLim = newBuf + bufferSize; in XML_GetBuffer()