Home
last modified time | relevance | path

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

123

/freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/MSF/
H A DMappedBlockStream.cpp47 : BlockSize(BlockSize), StreamLayout(Layout), MsfData(MsfData), in MappedBlockStream()
54 BlockSize, Layout, MsfData, Allocator); in createStream()
65 Layout.SB->BlockSize, SL, MsfData, Allocator); in createIndexedStream()
170 uint64_t First = Offset / BlockSize; in readLongestContiguousChunk()
179 uint64_t OffsetInFirstBlock = Offset % BlockSize; in readLongestContiguousChunk()
207 uint64_t BlockNum = Offset / BlockSize; in tryReadContiguously()
208 uint64_t OffsetInBlock = Offset % BlockSize; in tryReadContiguously()
211 alignTo(Size - BytesFromFirstBlock, BlockSize) / BlockSize; in tryReadContiguously()
239 uint64_t BlockNum = Offset / BlockSize; in readBytes()
240 uint64_t OffsetInBlock = Offset % BlockSize; in readBytes()
[all …]
H A DMSFBuilder.cpp43 FreePageMap(kDefaultFreePageMap), BlockSize(BlockSize), in MSFBuilder()
54 if (!isValidBlockSize(BlockSize)) in create()
58 return MSFBuilder(BlockSize, in create()
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()
260 SB->BlockSize = BlockSize; in generateLayout()
354 switch (BlockSize) { in commit()
364 }(Layout.SB->BlockSize); in commit()
[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-14.2/sbin/dump/
H A Dcache.c46 static int BlockSize; variable
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()
128 n = pread(fd, blk->b_Data, BlockSize, blk->b_Offset); in cread()
[all …]
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Drelease.h391 : BlockSize(BlockSize), NumberOfRegions(NumberOfRegions) { in BlockSize() function
393 if (BlockSize <= PageSize) { in BlockSize()
398 } else if (BlockSize % (PageSize % BlockSize) == 0) { in BlockSize()
492 BlockSize; in markRangeAsAllCounted()
549 ((RegionSize / BlockSize) - 1U) * BlockSize; in markFreeBlocksInRegion()
574 BlockSize - 1) / in markFreeBlocksInRegion()
575 BlockSize; in markFreeBlocksInRegion()
584 if (BlockSize <= PageSize && PageSize % BlockSize == 0) { in markFreeBlocksInRegion()
611 uptr BlockSize; member
632 const uptr BlockSize = Context.BlockSize; in releaseFreeMemoryToOS() local
[all …]
H A Dprimary32.h140 const uptr BlockSize = getSizeByClassId(I); in verifyAllBlocksAreReleasedTestOnly() local
161 Sci->AllocatedUser / BlockSize); in verifyAllBlocksAreReleasedTestOnly()
184 ALWAYS_INLINE static bool isSmallBlock(uptr BlockSize) { in isSmallBlock() argument
186 return BlockSize < PageSize / 16U; in isSmallBlock()
191 return BlockSize > PageSize; in isLargeBlock()
308 const uptr To = From + (RegionSize / BlockSize) * BlockSize; in iterateOverBlocks()
874 const uptr BlockSize = getSizeByClassId(ClassId); in getStats() local
896 const uptr BlockSize = getSizeByClassId(ClassId); in getSizeClassFragmentationInfo() local
947 const uptr BlockSize = getSizeByClassId(ClassId); variable
953 BlockSize;
[all …]
H A Dprimary64.h186 const uptr BlockSize = getSizeByClassId(I); in verifyAllBlocksAreReleasedTestOnly() local
367 const uptr BlockSize = getSizeByClassId(I); in iterateOverBlocks() local
519 sptr(B.BlockSize)); in findNearestBlock()
521 B.BlockBegin += B.BlockSize; in findNearestBlock()
523 B.BlockBegin -= B.BlockSize; in findNearestBlock()
613 return BlockSize < PageSize / 16U; in isSmallBlock()
618 return BlockSize > PageSize; in isLargeBlock()
1158 BlockSize;
1333 const uptr BytesInBG = NumBlocks * BlockSize; in collectGroupsToRelease()
1348 if (isSmallBlock(BlockSize)) { in collectGroupsToRelease()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/DebugInfo/MSF/
H A DMSFCommon.h36 support::ulittle32_t BlockSize; member
131 inline uint64_t bytesToBlocks(uint64_t NumBytes, uint64_t BlockSize) { in bytesToBlocks() argument
132 return divideCeil(NumBytes, BlockSize); in bytesToBlocks()
135 inline uint64_t blockToOffset(uint64_t BlockNumber, uint64_t BlockSize) { in blockToOffset() argument
136 return BlockNumber * BlockSize; in blockToOffset()
140 return L.SB->BlockSize; in getFpmIntervalLength()
155 inline uint32_t getNumFpmIntervals(uint32_t BlockSize, uint32_t NumBlocks, in getNumFpmIntervals() argument
163 return divideCeil(NumBlocks - FpmNumber, BlockSize); in getNumFpmIntervals()
168 return divideCeil(NumBlocks, 8 * BlockSize); in getNumFpmIntervals()
174 return getNumFpmIntervals(L.SB->BlockSize, L.SB->NumBlocks,
H A DMappedBlockStream.h42 createStream(uint32_t BlockSize, const MSFStreamLayout &Layout,
72 uint32_t getBlockSize() const { return BlockSize; } in getBlockSize()
77 MappedBlockStream(uint32_t BlockSize, const MSFStreamLayout &StreamLayout,
88 const uint32_t BlockSize; variable
108 createStream(uint32_t BlockSize, const MSFStreamLayout &Layout,
147 WritableMappedBlockStream(uint32_t BlockSize,
H A DMSFBuilder.h58 uint32_t BlockSize,
122 MSFBuilder(uint32_t BlockSize, uint32_t MinBlockCount, bool CanGrow,
135 uint32_t BlockSize; variable
/freebsd-14.2/stand/efi/libefi/
H A Defipart.c250 if (blkio->Media->BlockSize < 512 || in efipart_ignore_device()
251 blkio->Media->BlockSize > (1 << 16) || in efipart_ignore_device()
252 !powerof2(blkio->Media->BlockSize)) { in efipart_ignore_device()
845 blkio->Media->BlockSize); in efipart_print_common()
920 blkio->Media->BlockSize); in efipart_open()
1134 size = size * blkio->Media->BlockSize; in efipart_realstrategy()
1170 blk = off / blkio->Media->BlockSize; in efipart_realstrategy()
1171 blkoff = off % blkio->Media->BlockSize; in efipart_realstrategy()
1176 if (x < blkio->Media->BlockSize) in efipart_realstrategy()
1179 x /= blkio->Media->BlockSize; in efipart_realstrategy()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVEVPTBlockPass.cpp140 static ARM::PredBlockMask GetInitialBlockMask(unsigned BlockSize) { in GetInitialBlockMask() argument
141 switch (BlockSize) { in GetInitialBlockMask()
172 unsigned BlockSize; in CreateVPTBlock() local
173 StepOverPredicatedInstrs(Iter, EndIter, 4, BlockSize); in CreateVPTBlock()
185 ARM::PredBlockMask BlockMask = GetInitialBlockMask(BlockSize); in CreateVPTBlock()
190 while (BlockSize < 4 && Iter != EndIter && in CreateVPTBlock()
197 if (!StepOverPredicatedInstrs(VPNOTBlockEndIter, EndIter, (4 - BlockSize), in CreateVPTBlock()
210 BlockSize += ElseInstCnt; in CreateVPTBlock()
211 assert(BlockSize <= 4 && "Block is too large!"); in CreateVPTBlock()
H A DARMTargetTransformInfo.h342 inline bool isVREVMask(ArrayRef<int> M, EVT VT, unsigned BlockSize) { in isVREVMask() argument
343 assert((BlockSize == 16 || BlockSize == 32 || BlockSize == 64) && in isVREVMask()
353 BlockElts = BlockSize / EltSz; in isVREVMask()
355 if (BlockSize <= EltSz || BlockSize != BlockElts * EltSz) in isVREVMask()
/freebsd-14.2/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-14.2/crypto/openssl/test/recipes/30-test_evp_data/
H A Devpmac_common.txt24 BlockSize = 64
40 BlockSize = 64
52 BlockSize = 64
66 BlockSize = 64
76 BlockSize = 64
96 BlockSize = 64
116 BlockSize = 128
136 BlockSize = 128
160 BlockSize = 144
180 BlockSize = 136
[all …]
H A Devpmac_blake.txt21 BlockSize = 128
27 BlockSize = 128
85 BlockSize = 64
91 BlockSize = 64
/freebsd-14.2/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()
H A Dufs_module.c55 lba = lba / (devinfo->dev->Media->BlockSize / DEV_BSIZE); in dskread()
113 bs = devinfo->dev->Media->BlockSize; in init_dev()
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64CompressJumpTables.cpp101 auto BlockSize = computeBlockSize(MBB); in scanFunction() local
102 if (!BlockSize) in scanFunction()
104 Offset = OffsetAfterAlignment + *BlockSize; in scanFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCBranchSelector.cpp136 unsigned BlockSize = 0; in ComputeBlockSizes() local
162 BlockSize += 4; in ComputeBlockSizes()
168 BlockSize += MINumBytes; in ComputeBlockSizes()
171 BlockSizes[MBB.getNumber()].first = BlockSize; in ComputeBlockSizes()
172 FuncSize += BlockSize; in ComputeBlockSizes()
/freebsd-14.2/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()
134 if (Buffer->getLength() % SB->BlockSize != 0) in parseFileHeaders()
206 : msf::bytesToBlocks(StreamSize, ContainerLayout.SB->BlockSize); in parseStreamData()
219 (uint64_t)(Block + 1) * ContainerLayout.SB->BlockSize; in parseStreamData()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DMachOLinkGraphBuilder.cpp531 orc::ExecutorAddrDiff BlockSize = BlockEnd - BlockStart; in graphifyRegularSymbols() local
545 ArrayRef<char>(NSec.Data + BlockOffset, BlockSize), in graphifyRegularSymbols()
547 : G->createZeroFillBlock(*NSec.GraphSection, BlockSize, in graphifyRegularSymbols()
671 size_t BlockSize = I + 1 - BlockStart; in graphifyCStringSection() local
674 {NSec.Data + BlockStart, BlockSize}, in graphifyCStringSection()
697 auto &S = G->addAnonymousSymbol(B, 0, BlockSize, false, false); in graphifyCStringSection()
706 auto LastCanonicalAddr = B.getAddress() + BlockSize; in graphifyCStringSection()
708 B.getAddress() + BlockSize) { in graphifyCStringSection()
710 size_t SymSize = (B.getAddress() + BlockSize) - in graphifyCStringSection()
734 BlockStart += BlockSize; in graphifyCStringSection()
H A DDWARFRecordSectionSplitter.cpp109 uint64_t BlockSize = BlockReader.getOffset() - RecordStartOffset; in processBlock() local
110 auto &NewBlock = G.splitBlock(B, BlockSize, &Cache); in processBlock()
/freebsd-14.2/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