Home
last modified time | relevance | path

Searched refs:fBlockSize (Results 1 – 25 of 78) sorted by relevance

1234

/haiku/src/apps/sudoku/
H A DSudokuField.cpp50 fBlockSize(size) in SudokuField()
59 if (archive->FindInt32("block size", (int32*)&fBlockSize) != B_OK) in SudokuField()
62 fSize = fBlockSize * fBlockSize; in SudokuField()
88 fBlockSize = other.fBlockSize; in SudokuField()
106 if (fBlockSize == 0) in InitCheck()
117 archive->AddInt32("block size", fBlockSize); in Archive()
217 if (x != 0 && x % fBlockSize == 0) in Dump()
385 uint32 offsetX = x / fBlockSize * fBlockSize; in _ComputeValidMask()
386 uint32 offsetY = y / fBlockSize * fBlockSize; in _ComputeValidMask()
388 for (uint32 partY = 0; partY < fBlockSize; partY++) { in _ComputeValidMask()
[all …]
H A DSudokuView.cpp203 fBlockSize = fField->BlockSize(); in SetTo()
244 if (x != 0 && x % fBlockSize == 0) in SaveTo()
566 fWidth = (Bounds().Width() + 2 - kStrongLineSize * (fBlockSize - 1)) / size; in FrameResized()
567 fHeight = (Bounds().Height() + 2 - kStrongLineSize * (fBlockSize - 1)) in FrameResized()
578 fHintWidth = (fWidth - 2) / fBlockSize; in FrameResized()
579 fHintHeight = (fHeight - 2) / fBlockSize; in FrameResized()
619 uint32 value = hintX + hintY * fBlockSize; in MouseDown()
815 if (x % fBlockSize == 0) { in Draw()
827 if (y % fBlockSize == 0) { in Draw()
933 fBlockSize = fField->BlockSize(); in _InitObject()
[all …]
/haiku/src/add-ons/kernel/bus_managers/usb/
H A DPhysicalMemoryAllocator.cpp50 fBlockSize = (size_t *)malloc(size); in PhysicalMemoryAllocator()
59 fBlockSize[i] = biggestSize / arraySlots; in PhysicalMemoryAllocator()
69 fManagedMemory = fBlockSize[0] * fArrayLength[0]; in PhysicalMemoryAllocator()
108 free(fBlockSize); in ~PhysicalMemoryAllocator()
144 if (size == 0 || size > fBlockSize[fArrayCount - 1]) { in Allocate()
152 if (fBlockSize[i] >= size) { in Allocate()
165 …TRACE(("PMA: will use array %ld (blocksize: %ld) to allocate %ld bytes\n", arrayToUse, fBlockSize[… in Allocate()
195 size_t offset = fBlockSize[arrayToUse] * i; in Allocate()
238 if (size == 0 || size > fBlockSize[fArrayCount - 1]) { in Deallocate()
245 if (fBlockSize[i] >= size) { in Deallocate()
[all …]
/haiku/src/add-ons/kernel/file_systems/ext2/
H A DJournal.cpp92 fBlockSize(sizeof(JournalSuperBlock)), in Journal()
139 fBlockSize(sizeof(JournalSuperBlock)), in Journal()
362 + fBlockSize - sizeof(JournalHeader)); in _WritePartialTransactionToLog()
391 "space for escaped block (%" B_PRIu32 ")\n", fBlockSize); in _WritePartialTransactionToLog()
392 escapedData = new(std::nothrow) uint8[fBlockSize]; in _WritePartialTransactionToLog()
404 memcpy(escapedData + 4, blockData->data, fBlockSize - 4); in _WritePartialTransactionToLog()
418 off_t logOffset = physicalBlock * fBlockSize; in _WritePartialTransactionToLog()
423 finalData, fBlockSize); in _WritePartialTransactionToLog()
424 if (written != fBlockSize) { in _WritePartialTransactionToLog()
450 off_t descriptorBlockOffset = physicalBlock * fBlockSize; in _WritePartialTransactionToLog()
[all …]
H A DHTreeEntryIterator.cpp36 fBlockSize(directory->GetVolume()->BlockSize()), in HTreeEntryIterator()
43 fFirstEntry = offset % fBlockSize / sizeof(HTreeEntry); in HTreeEntryIterator()
63 fBlockSize(blockSize), in HTreeEntryIterator()
106 uint32 maxSize = fBlockSize; in Init()
191 DirectoryIterator(fDirectory, start->Block() * fBlockSize, this); in Lookup()
204 status_t status = fDirectory->FindBlock(start->Block() * fBlockSize, in Lookup()
211 fChild = new(std::nothrow) HTreeEntryIterator(blockNum, fBlockSize, in Lookup()
248 status = fDirectory->FindBlock(logicalBlock * fBlockSize, fBlockNum); in GetNext()
348 uint32 maxSize = fBlockSize; in InsertEntry()
354 fakeEntry->SetEntryLength(fBlockSize); in InsertEntry()
H A DDirectoryIterator.cpp54 fBlockSize(fVolume->BlockSize()), in DirectoryIterator()
57 : (directory->Size() - 1) / fBlockSize + 1), in DirectoryIterator()
58 fLogicalBlock(start / fBlockSize), in DirectoryIterator()
59 fDisplacement(start % fBlockSize), in DirectoryIterator()
188 fDisplacement = fBlockSize; in Next()
190 if (fDisplacement == fBlockSize) { in Next()
213 } else if (fDisplacement > fBlockSize) { in Next()
301 status = fDirectory->Resize(transaction, fNumBlocks * fBlockSize); in AddEntry()
312 status = fDirectory->FindBlock(fLogicalBlock * fBlockSize, fPhysicalBlock); in AddEntry()
316 return _AddEntry(transaction, name, nameLength, id, type, fBlockSize, 0, in AddEntry()
[all …]
/haiku/src/add-ons/kernel/partitioning_systems/gpt/
H A DHeader.cpp52 fBlockSize(blockSize), in Header()
138 fBlockSize(blockSize), in Header()
171 uint32 entryBlocks = (arraySize + fBlockSize - 1) / fBlockSize; in Header()
214 fHeader.EntriesBlock() * fBlockSize + entryOffset, in WriteEntry()
224 fBackupHeader.EntriesBlock() * fBlockSize + entryOffset, in WriteEntry()
242 uint64 deviceSize = fHeader.AlternateBlock() * fBlockSize; in Write()
243 partition->SetTo(fBlockSize, deviceSize, 0xEE, false, fBlockSize); in Write()
248 PartitionMapWriter writer(fd, fBlockSize); in Write()
252 status_t status = _Write(fd, fHeader.EntriesBlock() * fBlockSize, fEntries, in Write()
264 fBackupHeader.EntriesBlock() * fBlockSize, fEntries, _EntryArraySize()); in Write()
[all …]
/haiku/src/system/boot/platform/atari_m68k/
H A Ddevices.cpp125 uint32 BlockSize() const { return fBlockSize; } in BlockSize()
142 uint32 fBlockSize; member in BlockHandle
590 , fBlockSize(0) in BlockHandle()
607 uint32 offset = pos % fBlockSize; in ReadAt()
608 pos /= fBlockSize; in ReadAt()
611 uint32 blocksLeft = (bufferSize + offset + fBlockSize - 1) / fBlockSize; in ReadAt()
622 totalBytesRead += fBlockSize - offset; in ReadAt()
627 uint32 scratchSize = SCRATCH_SIZE / fBlockSize; in ReadAt()
638 uint32 bytesRead = fBlockSize * blocksRead - offset; in ReadAt()
708 fBlockSize = 512; in FloppyDrive()
[all …]
/haiku/src/kits/support/
H A DList.cpp37 fBlockSize(count), in BList()
40 if (fBlockSize <= 0) in BList()
41 fBlockSize = 1; in BList()
51 fBlockSize(other.fBlockSize) in BList()
67 fBlockSize = other.fBlockSize; in operator =()
481 int32 newSize = fPhysicalSize > 0 ? fPhysicalSize : fBlockSize; in _ResizeArray()
484 targetSize = fBlockSize; in _ResizeArray()
501 fResizeThreshold = fPhysicalSize >> 2 >= fBlockSize in _ResizeArray()
H A DBlockCache.cpp51 fBlockSize(blockSize), in BBlockCache()
115 if (blockSize == fBlockSize && fFreeList != 0) { in Get()
139 if (blockSize == fBlockSize && fFreeBlocks < fBlockCount) { in Save()
/haiku/src/kits/package/hpkg/
H A DBlockBufferPoolImpl.cpp31 fBlockSize(blockSize), in BlockBufferPoolImpl()
61 if (size > fBlockSize) in GetBuffer()
116 if (buffer->Size() != fBlockSize) { in PutBufferAndCache()
161 if (buffer->Size() == fBlockSize && fAllocatedBlocks < fMaxCachedBlocks) in PutBuffer()
173 std::max(size, fBlockSize)); in _AllocateBuffer()
/haiku/src/system/kernel/device_manager/
H A Ddma_resources.cpp96 fBlockSize(0), in DMAResource()
163 ASSERT(fBlockSize == 0); in Init()
166 fBlockSize = blockSize == 0 ? 1 : blockSize; in Init()
412 generic_size_t partialBegin = offset & (fBlockSize - 1); in TranslateNext()
437 offset, request->RemainingBytes(), fBlockSize, partialBegin); in TranslateNext()
522 length = fBlockSize; in TranslateNext()
637 generic_size_t diff = dmaLength & (fBlockSize - 1); in TranslateNext()
654 if (dmaVec.length < fBlockSize) in TranslateNext()
655 diff = fBlockSize; in TranslateNext()
667 bounceLeft, fBlockSize, true) == 0) { in TranslateNext()
[all …]
H A DIOSchedulerSimple.cpp95 fBlockSize(0), in IOSchedulerSimple()
162 fBlockSize = fDMAResource->BlockSize(); in Init()
163 if (fBlockSize == 0) in Init()
164 fBlockSize = 512; in Init()
189 fIterationBandwidth = fBlockSize * 8192; in Init()
190 fMinOwnerBandwidth = fBlockSize * 1024; in Init()
191 fMaxOwnerBandwidth = fBlockSize * 4096; in Init()
412 while (quantum >= (off_t)fBlockSize && request->RemainingBytes() > 0) { in _PrepareRequestOperations()
606 if (owner == NULL || quantum < (off_t)fBlockSize) { in _Scheduler()
613 while (resourcesAvailable && iterationBandwidth >= (off_t)fBlockSize) { in _Scheduler()
[all …]
/haiku/src/add-ons/kernel/file_systems/exfat/
H A DVolume.cpp169 fBlockSize = 1 << fSuperBlock.BlockShift(); in Mount()
170 TRACE("block size %" B_PRIu32 "\n", fBlockSize); in Mount()
171 fEntriesPerBlock = (fBlockSize / sizeof(struct exfat_entry)); in Mount()
184 fBlockCache = opener.InitCache(fSuperBlock.NumBlocks(), fBlockSize); in Mount()
241 const uint8* block = cached.SetTo(EXFAT_SUPER_BLOCK_OFFSET / fBlockSize); in LoadSuperBlock()
246 memcpy(&fSuperBlock, block + EXFAT_SUPER_BLOCK_OFFSET % fBlockSize, in LoadSuperBlock()
274 uint32 clusterPerBlock = fBlockSize / sizeof(cluster_t); in NextCluster()
/haiku/src/apps/diskprobe/
H A DProbeView.cpp96 uint32 BlockSize() const { return fBlockSize; } in BlockSize()
111 uint32 fBlockSize; member in PositionSlider
129 { return fPosition % fBlockSize; } in CursorOffset()
131 uint32 BlockSize() const { return fBlockSize; } in BlockSize()
147 uint32 fBlockSize; member in HeaderView
314 fBlockSize(blockSize) in PositionSlider()
331 SetKeyIncrementValue(int32(1.0 * kMaxSliderLimit / ((fSize - 1) / fBlockSize) + 0.5)); in Reset()
332 SetEnabled(fSize > fBlockSize); in Reset()
347 return (off_t(1.0 * (fSize - 1) * Value() / kMaxSliderLimit + 0.5) / fBlockSize) * fBlockSize; in Position()
361 position /= fBlockSize; in SetPosition()
[all …]
/haiku/src/system/boot/platform/bios_ia32/
H A Ddevices.cpp142 uint32 BlockSize() const { return fBlockSize; } in BlockSize()
156 uint32 fBlockSize; member in BIOSDrive
592 fBlockSize = 512; in BIOSDrive()
593 fSize = fParameters.sectors * fBlockSize; in BIOSDrive()
606 fBlockSize = fParameters.bytes_per_sector; in BIOSDrive()
607 fSize = fParameters.sectors * fBlockSize; in BIOSDrive()
629 uint32 offset = pos % fBlockSize; in ReadAt()
630 pos /= fBlockSize; in ReadAt()
632 uint32 blocksLeft = (bufferSize + offset + fBlockSize - 1) / fBlockSize; in ReadAt()
638 uint32 scratchSize = 24 * 1024 / fBlockSize; in ReadAt()
[all …]
/haiku/src/add-ons/kernel/partitioning_systems/intel/
H A DPartitionMapParser.cpp57 fBlockSize(blockSize), in PartitionMapParser()
94 if (fBlockSize != 512 && (hadToReFitSize in Parse()
101 uint32 previousBlockSize = fBlockSize; in Parse()
104 fBlockSize = 512; in Parse()
113 fBlockSize = previousBlockSize; in Parse()
151 partition->SetTo(descriptor, 0, fBlockSize); in _ParsePrimary()
/haiku/src/add-ons/kernel/file_systems/btrfs/
H A DVolume.cpp147 fBlockSize = fSuperBlock.BlockSize(); in Mount()
149 TRACE("block size %" B_PRIu32 "\n", fBlockSize); in Mount()
178 fBlockCache = opener.InitCache(fSuperBlock.TotalSize() / fBlockSize, in Mount()
179 fBlockSize); in Mount()
374 fBlockSize = fSuperBlock.BlockSize(); in Initialize()
384 fBlockCache = opener.InitCache(fSuperBlock.TotalSize() / fBlockSize, in Initialize()
385 fBlockSize); in Initialize()
446 const uint8* block = cached.SetTo(BTRFS_SUPER_BLOCK_OFFSET / fBlockSize); in LoadSuperBlock()
451 memcpy(&fSuperBlock, block + BTRFS_SUPER_BLOCK_OFFSET % fBlockSize, in LoadSuperBlock()
465 physicalBlock = physical / fBlockSize; in FindBlock()
/haiku/src/system/boot/loader/file_systems/fat/
H A DVolume.h36 int32 BlockSize() const { return fBlockSize; } in BlockSize()
43 …int32 NumBlocks() const { return (int32)((off_t)fTotalSectors * fBytesPerSector / fBlockSize); } in NumBlocks()
70 uint32 fBlockSize; variable
/haiku/src/add-ons/kernel/file_systems/reiserfs/
H A DBlockCache.h41 uint32 GetBlockSize() const { return fBlockSize; } in GetBlockSize()
59 uint32 fBlockSize; variable
/haiku/src/add-ons/media/media-add-ons/vst_host/
H A DVSTHost.cpp288 fBlockSize = 0; in VSTPlugin()
405 fBlockSize = size; in SetBlockSize()
433 inputs[i] = new float[fBlockSize]; in ReAllocBuffers()
434 memset(inputs[i], 0, fBlockSize * sizeof(float)); in ReAllocBuffers()
441 outputs[i] = new float[fBlockSize]; in ReAllocBuffers()
442 memset (outputs[i], 0, fBlockSize * sizeof(float)); in ReAllocBuffers()
451 return fBlockSize; in BlockSize()
520 fEffect->processReplacing(fEffect, inputs, outputs, fBlockSize); in Process()
/haiku/src/add-ons/translators/psd/
H A DDataArray.cpp11 fBlockSize = blockSize; in BDataArray()
28 int32 blocks = ((fDataSize + size) / fBlockSize) + 1; in _ReallocArrayFor()
29 uint8 *newData = (uint8*)realloc(fData, blocks * fBlockSize); in _ReallocArrayFor()
32 fAllocatedDataSize = blocks * fBlockSize; in _ReallocArrayFor()
/haiku/src/add-ons/kernel/partitioning_systems/session/
H A DDisc.h74 uint32 BlockSize() { return fBlockSize; } in BlockSize()
94 uint32 fBlockSize; variable
/haiku/src/add-ons/kernel/file_systems/udf/
H A DVolume.h50 uint32 BlockSize() const { return fBlockSize; } in BlockSize()
66 uint32 fBlockSize; variable
/haiku/src/add-ons/kernel/drivers/input/hid_shared/
H A DHIDWriter.cpp21 : fBlockSize(blockSize), in HIDWriter()
246 fBufferAllocated += length > fBlockSize ? length : fBlockSize; in Write()
249 fBufferAllocated -= fBlockSize; in Write()

1234