Home
last modified time | relevance | path

Searched refs:cached (Results 1 – 25 of 57) sorted by relevance

123

/haiku/src/add-ons/kernel/file_systems/udf/
H A DCachedBlock.h27 CachedBlock(CachedBlock *cached);
62 CachedBlock::CachedBlock(CachedBlock *cached) in CachedBlock() argument
64 fBlock(cached->fBlock), in CachedBlock()
65 fBlockNumber(cached->BlockNumber()), in CachedBlock()
66 fVolume(cached->fVolume) in CachedBlock()
68 cached->Keep(); in CachedBlock()
/haiku/src/add-ons/kernel/file_systems/bfs/
H A DCachedBlock.h27 CachedBlock(CachedBlock* cached);
75 CachedBlock::CachedBlock(CachedBlock* cached) in CachedBlock() argument
77 fVolume(cached->fVolume), in CachedBlock()
78 fBlockNumber(cached->BlockNumber()), in CachedBlock()
79 fBlock(cached->fBlock) in CachedBlock()
81 cached->Keep(); in CachedBlock()
H A DBPlusTree.cpp491 CachedNode cached(fTree); in Free() local
492 bplustree_header* header = cached.SetToWritableHeader(transaction); in Free()
535 CachedNode cached(fTree); in Allocate() local
536 header = cached.SetToWritableHeader(transaction); in Allocate()
554 CachedNode cached(fTree); in Allocate() local
555 header = cached.SetToWritableHeader(transaction); in Allocate()
565 cached.Unset(); in Allocate()
649 CachedNode cached(this); in SetTo() local
650 bplustree_header* header = cached.SetToWritableHeader(transaction); in SetTo()
657 header = cached.SetToWritableHeader(transaction); in SetTo()
[all …]
H A DBlockAllocator.cpp443 AllocationBlock cached(volume); in Allocate() local
446 if (cached.SetToWritable(transaction, *this, block) < B_OK) { in Allocate()
452 if (start + numBlocks > cached.NumBlockBits()) in Allocate()
453 numBlocks = cached.NumBlockBits() - start; in Allocate()
455 cached.Allocate(start, numBlocks); in Allocate()
504 AllocationBlock cached(volume); in Free() local
507 if (cached.SetToWritable(transaction, *this, block) < B_OK) in Free()
510 T(Block("free-1", block, cached.Block(), volume->BlockSize())); in Free()
512 if (uint32(start + length) > cached.NumBlockBits()) in Free()
513 freeLength = cached.NumBlockBits() - start; in Free()
[all …]
H A DInode.cpp1483 CachedBlock cached(fVolume); in FindBlockRun() local
1496 status_t status = cached.SetTo(fVolume->ToBlock( in FindBlockRun()
1501 block_run* indirect = (block_run*)cached.Block(); in FindBlockRun()
1504 status = cached.SetTo(fVolume->ToBlock(indirect[ in FindBlockRun()
1509 indirect = (block_run*)cached.Block(); in FindBlockRun()
1522 CachedBlock cached(fVolume); in FindBlockRun() local
1526 status_t status = cached.SetTo(block + i); in FindBlockRun()
1530 block_run* indirect = (block_run*)cached.Block(); in FindBlockRun()
1537 << cached.BlockShift(); in FindBlockRun()
1541 << cached.BlockShift()); in FindBlockRun()
[all …]
H A DCheckVisitor.cpp121 AllocationBlock cached(fVolume); in WriteBackCheckBitmap()
123 cached.SetTo(fGroups[i], j); in WriteBackCheckBitmap()
124 for (uint32 k = 0; k < cached.NumBlockBits(); k++) { in WriteBackCheckBitmap()
125 if (cached.IsUsed(k) != _CheckBitmapIsUsedAt(block)) { in WriteBackCheckBitmap()
501 CachedBlock cached(GetVolume()); in _CheckInodeBlocks() local
513 status = cached.SetTo(block + i); in _CheckInodeBlocks()
517 block_run* runs = (block_run*)cached.Block(); in _CheckInodeBlocks()
554 status = cached.SetTo(GetVolume()->ToBlock(data->double_indirect) in _CheckInodeBlocks()
559 block_run* array = (block_run*)cached.Block(); in _CheckInodeBlocks()
/haiku/src/system/boot/loader/file_systems/bfs/
H A DStream.cpp207 CachedBlock cached(fVolume); in FindBlockRun() local
213 cached.BlockSize(), runsPerBlock, directSize, indirectSize); in FindBlockRun()
218 block_run* indirect = (block_run*)cached.SetTo( in FindBlockRun()
228 indirect = (block_run*)cached.SetTo(fVolume.ToBlock(indirect[ in FindBlockRun()
243 CachedBlock cached(fVolume); in FindBlockRun() local
247 block_run* indirect = (block_run *)cached.SetTo(block + i); in FindBlockRun()
257 += (uint32)indirect[current].Length() << cached.BlockShift(); in FindBlockRun()
261 - ((uint32)run.Length() << cached.BlockShift()); in FindBlockRun()
334 CachedBlock cached(fVolume, run); in ReadAt() local
335 if ((block = cached.Block()) == NULL) { in ReadAt()
[all …]
/haiku/src/add-ons/kernel/file_systems/ext2/
H A DExtentStream.cpp65 CachedBlock cached(fVolume); in FindBlock() local
76 stream = (ext2_extent_stream *)cached.SetTo( in FindBlock()
185 CachedBlock cached(fVolume); in Enlarge() local
195 stream = (ext2_extent_stream *)cached.SetTo(path[level]); in Enlarge()
209 stream = (ext2_extent_stream *)cached.SetToWritable( in Enlarge()
210 transaction, cached.BlockNumber()); in Enlarge()
230 stream = (ext2_extent_stream *)cached.SetTo(path[level]); in Enlarge()
255 stream = (ext2_extent_stream *)cached.SetToWritable( in Enlarge()
303 stream = (ext2_extent_stream *)cached.SetToWritable( in Enlarge()
347 stream = (ext2_extent_stream *)cached.SetToWritable( in Enlarge()
[all …]
H A DHTreeEntryIterator.cpp85 CachedBlock cached(fVolume); in Init() local
86 const uint8* block = cached.SetTo(fBlockNum); in Init()
143 CachedBlock cached(fVolume); in Lookup() local
144 const uint8* block = cached.SetTo(fBlockNum); in Lookup()
261 CachedBlock cached(fVolume); in GetNext() local
262 const uint8* block = cached.SetTo(fBlockNum); in GetNext()
285 CachedBlock cached(fVolume); in BlocksNeededForNewEntry() local
287 const uint8* blockData = cached.SetTo(fBlockNum); in BlocksNeededForNewEntry()
321 CachedBlock cached(fVolume); in InsertEntry() local
323 uint8* blockData = cached.SetToWritable(transaction, fBlockNum); in InsertEntry()
H A DDataStream.cpp81 CachedBlock cached(fVolume); in FindBlock() local
82 uint32* indirectBlocks = (uint32*)cached.SetTo(B_LENDIAN_TO_HOST_INT32( in FindBlock()
98 CachedBlock cached(fVolume); in FindBlock() local
99 uint32* indirectBlocks = (uint32*)cached.SetTo(B_LENDIAN_TO_HOST_INT32( in FindBlock()
110 indirectBlocks = (uint32*)cached.SetTo(indirectIndex); in FindBlock()
128 CachedBlock cached(fVolume); in FindBlock() local
129 uint32* indirectBlocks = (uint32*)cached.SetTo(B_LENDIAN_TO_HOST_INT32( in FindBlock()
140 indirectBlocks = (uint32*)cached.SetTo(indirectIndex); in FindBlock()
150 indirectBlocks = (uint32*)cached.SetTo(indirectIndex); in FindBlock()
462 CachedBlock cached(fVolume); in _AddBlocks() local
[all …]
H A DVolume.cpp493 CachedBlock cached(this); in GetBlockGroup() local
494 const uint8* block = cached.SetTo(_GroupDescriptorBlock(blockIndex)); in GetBlockGroup()
544 CachedBlock cached(this); in WriteBlockGroup() local
545 uint8* block = cached.SetToWritable(transaction, in WriteBlockGroup()
605 CachedBlock cached(this); in RemoveOrphan() local
612 uint8* block = cached.SetToWritable(transaction, blockNum); in RemoveOrphan()
638 block = cached.SetToWritable(transaction, blockNum); in RemoveOrphan()
748 CachedBlock cached(this); in LoadSuperBlock() local
749 const uint8* block = cached.SetTo(fFirstDataBlock); in LoadSuperBlock()
783 CachedBlock cached(this); in WriteSuperBlock() local
[all …]
H A DDirectoryIterator.cpp97 CachedBlock cached(fVolume); in Get() local
98 const uint8* block = cached.SetTo(fPhysicalBlock); in Get()
163 CachedBlock cached(fVolume); in Next() local
167 const uint8* block = cached.SetTo(fPhysicalBlock); in Next()
208 block = cached.SetTo(fPhysicalBlock); in Next()
355 CachedBlock cached(fVolume); in RemoveEntry() local
357 uint8* block = cached.SetToWritable(transaction, fPhysicalBlock); in RemoveEntry()
428 CachedBlock cached(fVolume); in ChangeEntry() local
430 uint8* block = cached.SetToWritable(transaction, fPhysicalBlock); in ChangeEntry()
451 CachedBlock cached(fVolume); in _AllocateBestEntryInBlock() local
[all …]
H A DHTree.cpp92 CachedBlock cached(fDirectory->GetVolume()); in PrepareForHash() local
93 HTreeRoot* root = (HTreeRoot*)cached.SetTo(blockNum); in PrepareForHash()
120 CachedBlock cached(fDirectory->GetVolume()); in Lookup() local
121 HTreeRoot* root = (HTreeRoot*)cached.SetTo(blockNum); in Lookup()
H A DJournal.cpp938 CachedBlock cached(fJournalVolume); in _RecoverPassScan() local
948 header = (JournalHeader*)cached.SetTo(nextBlockPos); in _RecoverPassScan()
981 header = (JournalHeader*)cached.SetTo(nextBlockPos); in _RecoverPassScan()
998 CachedBlock cached(fJournalVolume); in _RecoverPassRevoke() local
1008 header = (JournalHeader*)cached.SetTo(nextBlockPos); in _RecoverPassRevoke()
1040 header = (JournalHeader*)cached.SetTo(nextBlockPos); in _RecoverPassRevoke()
1070 CachedBlock cached(fJournalVolume); in _RecoverPassReplay() local
1071 JournalHeader* header = (JournalHeader*)cached.SetTo(nextBlockPos); in _RecoverPassReplay()
1152 header = (JournalHeader*)cached.SetTo(nextBlockPos); in _RecoverPassReplay()
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dsecurity.c1490 static int compare(const struct CACHED_SECURID *cached, in compare() argument
1498 csize = (cached->variable ? in compare()
1500 + (((struct POSIX_SECURITY*)cached->variable)->acccnt in compare()
1501 + ((struct POSIX_SECURITY*)cached->variable)->defcnt) in compare()
1510 return ((cached->uid != item->uid) in compare()
1511 || (cached->gid != item->gid) in compare()
1512 || (cached->dmode != item->dmode) in compare()
1516 && memcmp(&((struct POSIX_SECURITY*)cached->variable)->acl, in compare()
1519 return ((cached->uid != item->uid) in compare()
1520 || (cached->gid != item->gid) in compare()
[all …]
H A Dcache.h72 typedef int (*cache_compare)(const struct CACHED_GENERIC *cached,
74 typedef void (*cache_free)(const struct CACHED_GENERIC *cached);
75 typedef int (*cache_hash)(const struct CACHED_GENERIC *cached);
H A Ddir.c101 int ntfs_dir_inode_hash(const struct CACHED_GENERIC *cached) in ntfs_dir_inode_hash() argument
106 path = (const char*)cached->variable; in ntfs_dir_inode_hash()
122 static int inode_cache_compare(const struct CACHED_GENERIC *cached, in inode_cache_compare() argument
125 return (!cached->variable in inode_cache_compare()
126 || strcmp(cached->variable, wanted->variable)); in inode_cache_compare()
140 static int inode_cache_inv_compare(const struct CACHED_GENERIC *cached, in inode_cache_inv_compare() argument
149 c = (const struct CACHED_INODE*)cached; in inode_cache_inv_compare()
152 different = !cached->variable in inode_cache_inv_compare()
171 static int lookup_cache_compare(const struct CACHED_GENERIC *cached, in lookup_cache_compare() argument
174 const struct CACHED_LOOKUP *c = (const struct CACHED_LOOKUP*) cached; in lookup_cache_compare()
[all …]
H A Ddir.h127 extern int ntfs_dir_inode_hash(const struct CACHED_GENERIC *cached);
128 extern int ntfs_dir_lookup_hash(const struct CACHED_GENERIC *cached);
H A Dinode.c413 void ntfs_inode_nidata_free(const struct CACHED_GENERIC *cached) in ntfs_inode_nidata_free() argument
415 ntfs_inode_real_close(((const struct CACHED_NIDATA*)cached)->ni); in ntfs_inode_nidata_free()
432 static int idata_cache_compare(const struct CACHED_GENERIC *cached, in idata_cache_compare() argument
435 return (((const struct CACHED_NIDATA*)cached)->inum in idata_cache_compare()
474 struct CACHED_NIDATA *cached; in ntfs_inode_open() local
481 cached = (struct CACHED_NIDATA*)ntfs_fetch_cache(vol->nidata_cache, in ntfs_inode_open()
483 if (cached) { in ntfs_inode_open()
484 ni = cached->ni; in ntfs_inode_open()
487 (struct CACHED_GENERIC*)cached,0); in ntfs_inode_open()
/haiku/headers/private/package/hpkg/
H A DPoolBuffer.h38 void SetCached(bool cached) { fCached = cached; } in SetCached() argument
/haiku/src/system/boot/loader/file_systems/fat/
H A DStream.cpp279 CachedBlock cached(fVolume, num); in ReadAt() local
280 if ((block = cached.Block()) == NULL) { in ReadAt()
312 CachedBlock cached(fVolume, num); in ReadAt() local
313 if ((block = cached.Block()) == NULL) { in ReadAt()
/haiku/src/add-ons/media/media-add-ons/usb_webcam/addons/
H A DNW80xCamDevice.cpp147 NW80xCamDevice::ReadReg(uint16 address, uint8 *data, size_t count, bool cached) in ReadReg() argument
150 cached)); in ReadReg()
H A DNW80xCamDevice.h40 virtual ssize_t ReadReg(uint16 address, uint8 *data, size_t count=1, bool cached=false);
/haiku/src/add-ons/media/media-add-ons/usb_webcam/addons/quickcam/
H A DQuickCamDevice.cpp112 QuickCamDevice::ReadReg(uint16 address, uint8 *data, size_t count, bool cached) in ReadReg() argument
115 cached)); in ReadReg()
H A DQuickCamDevice.h40 virtual ssize_t ReadReg(uint16 address, uint8 *data, size_t count=1, bool cached=false);

123