Lines Matching refs:bcache
905 if (disk->bcache != NULL) {
906 if (((UINT64)(disk->bcache->sectorSize) * count) > UINT_MAX) {
909 len = disk->bcache->sectorSize * count;
911 result = BlockCacheRead(disk->bcache, (UINT8 *)buf, &len, sector, useRead);
962 if (disk->bcache != NULL) {
963 if (((UINT64)(disk->bcache->sectorSize) * count) > UINT_MAX) {
966 len = disk->bcache->sectorSize * count;
967 result = BlockCacheWrite(disk->bcache, (const UINT8 *)buf, &len, sector);
1241 result = BcacheClearCache(disk->bcache);
1283 PRINT_ERR("disk_init : disk have not init bcache cache!\n");
1295 if (BcacheAsyncPrereadDeinit(disk->bcache) != LOS_OK) {
1299 BcacheSyncThreadDeinit(disk->bcache);
1303 BlockCacheDeinit(disk->bcache);
1304 disk->bcache = NULL;
1426 disk->bcache = bc;
1547 if (disk->bcache != NULL) {
1548 ret = BlockCacheSync(disk->bcache);
1569 * Because we use UINT32 flag[BCACHE_BLOCK_FLAGS] in bcache for sectors bitmap tag, so it must
1583 if (disk->bcache != NULL) {
1584 ret = BlockCacheSync(disk->bcache);
1608 disk->bcache = bc;