Home
last modified time | relevance | path

Searched refs:OsBcache (Results 1 – 4 of 4) sorted by relevance

/kernel/liteos_a/fs/vfs/include/bcache/
Dbcache.h121 } OsBcache; typedef
148 INT32 BlockCacheRead(OsBcache *bc,
178 INT32 BlockCacheWrite(OsBcache *bc,
203 INT32 BlockCacheSync(OsBcache *bc);
229 OsBcache *BlockCacheInit(struct Vnode *devNode,
254 VOID BlockCacheDeinit(OsBcache *bc);
256 INT32 BcacheClearCache(OsBcache *bc);
260 VOID BcacheSyncThreadInit(OsBcache *bc, INT32 id);
261 VOID BcacheSyncThreadDeinit(const OsBcache *bc);
264 UINT32 BcacheAsyncPrereadInit(OsBcache *bc);
[all …]
/kernel/liteos_a/fs/vfs/bcache/src/
Dbcache.c138 static OsBcacheBlock *RbFindBlock(const OsBcache *bc, UINT64 num) in RbFindBlock()
152 static VOID RbAddBlock(OsBcache *bc, OsBcacheBlock *block) in RbAddBlock()
173 static inline VOID RbDelBlock(OsBcache *bc, OsBcacheBlock *block) in RbDelBlock()
178 static inline VOID ListMoveBlockToHead(OsBcache *bc, OsBcacheBlock *block) in ListMoveBlockToHead()
184 static inline VOID FreeBlock(OsBcache *bc, OsBcacheBlock *block) in FreeBlock()
246 static INT32 BlockRead(OsBcache *bc, OsBcacheBlock *block, UINT8 *buf) in BlockRead()
266 static INT32 BcacheGetFlag(OsBcache *bc, OsBcacheBlock *block) in BcacheGetFlag()
324 static VOID BcacheSetFlag(const OsBcache *bc, OsBcacheBlock *block, UINT32 pos, UINT32 size) in BcacheSetFlag()
348 static INT32 BcacheSyncBlock(OsBcache *bc, OsBcacheBlock *block) in BcacheSyncBlock()
381 static void NumListAdd(OsBcache *bc, OsBcacheBlock *block) in NumListAdd()
[all …]
/kernel/liteos_a/drivers/block/disk/include/
Ddisk.h183 OsBcache *bcache; /* cache of the disk, shared in all partitions */
/kernel/liteos_a/drivers/block/disk/src/
Ddisk.c1248 static VOID DiskCacheThreadInit(UINT32 diskID, OsBcache *bc) in DiskCacheThreadInit()
1268 static OsBcache *DiskCacheInit(UINT32 diskID, const struct geometry *diskInfo, struct Vnode *blkDri… in DiskCacheInit()
1272 OsBcache *bc = NULL; in DiskCacheInit()
1422 OsBcache *bc = DiskCacheInit((UINT32)diskID, diskInfo, blkDriver); in OsDiskInitSub()
1562 OsBcache *bc = NULL; in los_disk_set_bcache()