Home
last modified time | relevance | path

Searched refs:BlockSize (Results 1 – 25 of 73) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/MSF/
H A DMappedBlockStream.cpp43 MappedBlockStream::MappedBlockStream(uint32_t BlockSize,
47 : BlockSize(BlockSize), StreamLayout(Layout), MsfData(MsfData), in MappedBlockStream()
51 uint32_t BlockSize, const MSFStreamLayout &Layout, BinaryStreamRef MsfData, in createStream()
54 BlockSize, Layout, MsfData, Allocator); in createStream()
65 Layout.SB->BlockSize, SL, MsfData, Allocator); in createIndexedStream()
75 return createStream(Layout.SB->BlockSize, SL, MsfData, Allocator); in createDirectoryStream()
83 return createStream(Layout.SB->BlockSize, SL, MsfData, Allocator); in createFpmStream()
170 uint64_t First = Offset / BlockSize; in readLongestContiguousChunk()
179 uint64_t OffsetInFirstBlock = Offset % BlockSize; in readLongestContiguousChunk()
44 MappedBlockStream(uint32_t BlockSize,const MSFStreamLayout & Layout,BinaryStreamRef MsfData,BumpPtrAllocator & Allocator) MappedBlockStream() argument
52 createStream(uint32_t BlockSize,const MSFStreamLayout & Layout,BinaryStreamRef MsfData,BumpPtrAllocator & Allocator) createStream() argument
310 WritableMappedBlockStream(uint32_t BlockSize,const MSFStreamLayout & Layout,WritableBinaryStreamRef MsfData,BumpPtrAllocator & Allocator) WritableMappedBlockStream() argument
316 createStream(uint32_t BlockSize,const MSFStreamLayout & Layout,WritableBinaryStreamRef MsfData,BumpPtrAllocator & Allocator) createStream() argument
[all...]
H A DMSFBuilder.cpp40 MSFBuilder::MSFBuilder(uint32_t BlockSize, uint32_t MinBlockCount, bool CanGrow, in MSFBuilder() argument
43 FreePageMap(kDefaultFreePageMap), BlockSize(BlockSize), in MSFBuilder()
52 uint32_t BlockSize, in create() argument
54 if (!isValidBlockSize(BlockSize)) in create()
58 return MSFBuilder(BlockSize, in create()
116 uint32_t NextFpmBlock = alignTo(OldBlockCount, BlockSize) + 1; in allocateBlocks()
129 NextFpmBlock += BlockSize; in allocateBlocks()
161 uint32_t ReqBlocks = bytesToBlocks(Size, BlockSize); in addStream()
184 uint32_t ReqBlocks = bytesToBlocks(Size, BlockSize); in addStream()
198 uint32_t NewBlocks = bytesToBlocks(Size, BlockSize); in setStreamSize()
[all …]
H A DMSFCommon.cpp25 if (!isValidBlockSize(SB.BlockSize)) in validateSuperBlock()
37 bytesToBlocks(SB.NumDirectoryBytes, SB.BlockSize); in validateSuperBlock()
42 if (NumDirectoryBlocks > SB.BlockSize / sizeof(support::ulittle32_t)) in validateSuperBlock()
77 FL.Length = NumFpmIntervals * Msf.SB->BlockSize; in getFpmStreamLayout()
/freebsd/sbin/dump/
H A Dcache.c46 static int BlockSize; variable
57 if ((BlockSize = sblock->fs_bsize * BLKFACTOR) > MAXBSIZE) in cinit()
58 BlockSize = MAXBSIZE; in cinit()
59 NBlocks = cachesize / BlockSize; in cinit()
63 NBlocks * BlockSize / (1024 * 1024), BlockSize); in cinit()
67 DataBase = mmap(NULL, NBlocks * BlockSize, in cinit()
70 base[i].b_Data = DataBase + i * BlockSize; in cinit()
104 mask = ~(off_t)(BlockSize - 1); in cread()
105 if (nbytes >= BlockSize || in cread()
115 hi = (offset / BlockSize) % HSize; in cread()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Drelease.h397 PageReleaseContext(uptr BlockSize, uptr NumberOfRegions, uptr ReleaseSize,
399 : BlockSize(BlockSize), NumberOfRegions(NumberOfRegions) { in BlockSize() function
401 if (BlockSize <= PageSize) { in BlockSize()
402 if (PageSize % BlockSize == 0) { in BlockSize()
404 FullPagesBlockCountMax = PageSize / BlockSize; in BlockSize()
406 } else if (BlockSize % (PageSize % BlockSize) == 0) { in BlockSize()
410 FullPagesBlockCountMax = PageSize / BlockSize + 1; in BlockSize()
415 FullPagesBlockCountMax = PageSize / BlockSize + 2; in BlockSize()
419 if ((BlockSize & (PageSize - 1)) == 0) { in BlockSize()
473 uptr FirstBlockInRange = roundUpSlow(FromInRegion, BlockSize); in markRangeAsAllCounted()
[all …]
H A Dprimary64.h226 ALWAYS_INLINE bool isSmallBlock(uptr BlockSize) const { in isSmallBlock() argument
228 return BlockSize < PageSize / 16U; in isSmallBlock()
230 ALWAYS_INLINE uptr getMinReleaseAttemptSize(uptr BlockSize) { in getMinReleaseAttemptSize() argument
231 return roundUp(BlockSize, getPageSizeCached()); in getMinReleaseAttemptSize()
273 bool hasChanceToReleasePages(RegionInfo *Region, uptr BlockSize,
277 collectGroupsToRelease(RegionInfo *Region, const uptr BlockSize,
281 markFreeBlocks(RegionInfo *Region, const uptr BlockSize,
392 const uptr BlockSize = getSizeByClassId(ClassId); in initRegion() local
395 if (isSmallBlock(BlockSize)) { in initRegion()
400 getMinReleaseAttemptSize(BlockSize); in initRegion()
[all …]
H A Dprimary32.h99 ALWAYS_INLINE bool isSmallBlock(uptr BlockSize) { in isSmallBlock() argument
101 return BlockSize < PageSize / 16U; in isSmallBlock()
103 ALWAYS_INLINE bool isLargeBlock(uptr BlockSize) { in isLargeBlock() argument
105 return BlockSize > PageSize; in isLargeBlock()
215 bool hasChanceToReleasePages(SizeClassInfo *Sci, uptr BlockSize,
219 const uptr BlockSize, const uptr Base,
312 const uptr BlockSize = getSizeByClassId(I); in verifyAllBlocksAreReleasedTestOnly() local
313 DCHECK_EQ(TotalBlocks, Sci->AllocatedUser / BlockSize); in verifyAllBlocksAreReleasedTestOnly()
331 const uptr BlockSize = getSizeByClassId(SizeClassMap::BatchClassId); in verifyAllBlocksAreReleasedTestOnly() local
333 Sci->AllocatedUser / BlockSize); in verifyAllBlocksAreReleasedTestOnly()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/MSF/
H A DMSFCommon.h37 support::ulittle32_t BlockSize; member
132 inline uint64_t bytesToBlocks(uint64_t NumBytes, uint64_t BlockSize) { in bytesToBlocks() argument
133 return divideCeil(NumBytes, BlockSize); in bytesToBlocks()
136 inline uint64_t blockToOffset(uint64_t BlockNumber, uint64_t BlockSize) { in blockToOffset() argument
137 return BlockNumber * BlockSize; in blockToOffset()
141 return L.SB->BlockSize; in getFpmIntervalLength()
156 inline uint32_t getNumFpmIntervals(uint32_t BlockSize, uint32_t NumBlocks, in getNumFpmIntervals() argument
164 return divideCeil(NumBlocks - FpmNumber, BlockSize); in getNumFpmIntervals()
169 return divideCeil(NumBlocks, 8 * BlockSize); in getNumFpmIntervals()
175 return getNumFpmIntervals(L.SB->BlockSize, L.SB->NumBlocks,
H A DMappedBlockStream.h43 createStream(uint32_t BlockSize, const MSFStreamLayout &Layout,
73 uint32_t getBlockSize() const { return BlockSize; } in getBlockSize()
78 MappedBlockStream(uint32_t BlockSize, const MSFStreamLayout &StreamLayout,
89 const uint32_t BlockSize; variable
109 createStream(uint32_t BlockSize, const MSFStreamLayout &Layout,
148 WritableMappedBlockStream(uint32_t BlockSize,
H A DMSFBuilder.h59 uint32_t BlockSize,
125 MSFBuilder(uint32_t BlockSize, uint32_t MinBlockCount, bool CanGrow,
138 uint32_t BlockSize; variable
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64PerfectShuffle.h6704 unsigned BlockSize) { in isREVMask() argument
6705 assert((BlockSize == 16 || BlockSize == 32 || BlockSize == 64 || in isREVMask()
6706 BlockSize == 128) && in isREVMask()
6712 BlockElts = BlockSize / EltSize; in isREVMask()
6714 if (BlockSize <= EltSize || BlockSize != BlockElts * EltSize) in isREVMask()
H A DAArch64CompressJumpTables.cpp96 auto BlockSize = computeBlockSize(MBB); in scanFunction() local
97 if (!BlockSize) in scanFunction()
99 Offset = OffsetAfterAlignment + *BlockSize; in scanFunction()
/freebsd/stand/efi/libefi/
H A Defipart.c251 if (blkio->Media->BlockSize < 512 || in efipart_ignore_device()
252 blkio->Media->BlockSize > (1 << 16) || in efipart_ignore_device()
253 !powerof2(blkio->Media->BlockSize)) { in efipart_ignore_device()
825 printf(" X %u", blkio->Media->BlockSize); in efipart_print_common()
844 ret = disk_open(&pd_dev, blkio->Media->BlockSize * in efipart_print_common()
846 blkio->Media->BlockSize); in efipart_print_common()
920 blkio->Media->BlockSize * (blkio->Media->LastBlock + 1), in efipart_open()
921 blkio->Media->BlockSize); in efipart_open()
985 *(u_int *)data = pd->pd_blkio->Media->BlockSize; in efipart_ioctl()
988 *(uint64_t *)data = pd->pd_blkio->Media->BlockSize * in efipart_ioctl()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVEVPTBlockPass.cpp137 static ARM::PredBlockMask GetInitialBlockMask(unsigned BlockSize) { in GetInitialBlockMask() argument
138 switch (BlockSize) { in GetInitialBlockMask()
169 unsigned BlockSize; in CreateVPTBlock() local
170 StepOverPredicatedInstrs(Iter, EndIter, 4, BlockSize); in CreateVPTBlock()
182 ARM::PredBlockMask BlockMask = GetInitialBlockMask(BlockSize); in CreateVPTBlock()
187 while (BlockSize < 4 && Iter != EndIter && in CreateVPTBlock()
194 if (!StepOverPredicatedInstrs(VPNOTBlockEndIter, EndIter, (4 - BlockSize), in CreateVPTBlock()
207 BlockSize += ElseInstCnt; in CreateVPTBlock()
208 assert(BlockSize <= 4 && "Block is too large!"); in CreateVPTBlock()
H A DARMTargetTransformInfo.h360 inline bool isVREVMask(ArrayRef<int> M, EVT VT, unsigned BlockSize) { in isVREVMask() argument
361 assert((BlockSize == 16 || BlockSize == 32 || BlockSize == 64) && in isVREVMask()
371 BlockElts = BlockSize / EltSz; in isVREVMask()
373 if (BlockSize <= EltSz || BlockSize != BlockElts * EltSz) in isVREVMask()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DDebugLinesSubsection.cpp33 if (BlockHeader->BlockSize < sizeof(LineBlockFragmentHeader)) in operator ()()
36 uint32_t Size = BlockHeader->BlockSize - sizeof(LineBlockFragmentHeader); in operator ()()
42 Len = BlockHeader->BlockSize; in operator ()()
118 BlockHeader.BlockSize = sizeof(LineBlockFragmentHeader); in commit()
119 BlockHeader.BlockSize += BlockHeader.NumLines * sizeof(LineNumberEntry); in commit()
121 BlockHeader.BlockSize += BlockHeader.NumLines * sizeof(ColumnNumberEntry); in commit()
/freebsd/crypto/openssl/test/recipes/30-test_evp_data/
H A Devpmac_common.txt24 BlockSize = 64
40 BlockSize = 64
52 BlockSize = 64
66 BlockSize = 64
77 BlockSize = 64
99 BlockSize = 64
119 BlockSize = 64
139 BlockSize = 128
159 BlockSize = 128
183 BlockSize = 144
[all …]
H A Devpmac_blake.txt21 BlockSize = 128
27 BlockSize = 128
85 BlockSize = 64
91 BlockSize = 64
/freebsd/stand/efi/boot1/
H A Dzfs_module.c48 return (devinfo->dev->Media->BlockSize * in ldi_get_size()
62 lba = off / devinfo->dev->Media->BlockSize; in vdev_read()
63 remainder = off % devinfo->dev->Media->BlockSize; in vdev_read()
72 size = roundup2(bytes + remainder, devinfo->dev->Media->BlockSize); in vdev_read()
75 rb_size = devinfo->dev->Media->BlockSize; in vdev_read()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DTarWriter.cpp33 static const int BlockSize = 512; variable
54 static_assert(sizeof(UstarHeader) == BlockSize, "invalid Ustar header");
84 OS.seek(alignTo(Pos, BlockSize)); in pad()
208 OS << std::string(BlockSize * 2, '\0'); in append()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCBranchSelector.cpp132 unsigned BlockSize = 0; in ComputeBlockSizes() local
158 BlockSize += 4; in ComputeBlockSizes()
164 BlockSize += MINumBytes; in ComputeBlockSizes()
167 BlockSizes[MBB.getNumber()].first = BlockSize; in ComputeBlockSizes()
168 FuncSize += BlockSize; in ComputeBlockSizes()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DMachOLinkGraphBuilder.cpp522 orc::ExecutorAddrDiff BlockSize = BlockEnd - BlockStart; in graphifyRegularSymbols() local
536 ArrayRef<char>(NSec.Data + BlockOffset, BlockSize), in graphifyRegularSymbols()
538 : G->createZeroFillBlock(*NSec.GraphSection, BlockSize, in graphifyRegularSymbols()
662 size_t BlockSize = I + 1 - BlockStart; in graphifyCStringSection() local
665 {NSec.Data + BlockStart, BlockSize}, in graphifyCStringSection()
688 auto &S = G->addAnonymousSymbol(B, 0, BlockSize, false, false); in graphifyCStringSection()
697 auto LastCanonicalAddr = B.getAddress() + BlockSize; in graphifyCStringSection()
699 B.getAddress() + BlockSize) { in graphifyCStringSection()
701 size_t SymSize = (B.getAddress() + BlockSize) - in graphifyCStringSection()
725 BlockStart += BlockSize; in graphifyCStringSection()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DPDBFile.cpp54 uint32_t PDBFile::getBlockSize() const { return ContainerLayout.SB->BlockSize; } in getBlockSize()
76 ContainerLayout.SB->BlockSize); in getNumDirectoryBlocks()
81 ContainerLayout.SB->BlockSize; in getBlockMapOffset()
133 if (Buffer->getLength() % SB->BlockSize != 0) in parseFileHeaders()
205 : msf::bytesToBlocks(StreamSize, ContainerLayout.SB->BlockSize); in parseStreamData()
218 (uint64_t)(Block + 1) * ContainerLayout.SB->BlockSize; in parseStreamData()
/freebsd/sys/contrib/edk2/Include/Protocol/
H A DHiiConfigRouting.h271 IN CONST UINTN BlockSize,
346 IN OUT UINTN *BlockSize,
/freebsd/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A DExplainOutputStyle.cpp158 else if (pdbBlockOffset() < endof(SuperBlock, BlockSize)) { in explainPdbSuperBlockOffset()
161 uint32_t(File.pdb().getMsfLayout().SB->BlockSize)); in explainPdbSuperBlockOffset()
234 uint64_t FileOffset, uint32_t BlockSize) { in getOffsetInStream() argument
235 uint32_t BlockIndex = FileOffset / BlockSize; in getOffsetInStream()
236 uint32_t OffsetInBlock = FileOffset - BlockIndex * BlockSize; in getOffsetInStream()
241 return StreamBlockIndex * BlockSize + OffsetInBlock; in getOffsetInStream()

123