• Home
  • Raw
  • Download

Lines Matching full:block

67     UINT64 num;             /* block number */
70 UINT8 *data; /* block data */
71 BOOL modified; /* is this block data modified (needs write) */
72 BOOL readFlag; /* is the block data have read from sd(real data) */
75 BOOL allDirty; /* the whole block is dirty */
79 UINT8 *, /* block buffer */
81 UINT64); /* starting block number */
84 const UINT8 *, /* block buffer */
86 UINT64); /* starting block number */
90 typedef VOID (*BcachePrereadFun)(struct tagOsBcache *, /* block cache instance space holder */
91 const OsBcacheBlock *); /* block data */
95 LOS_DL_LIST listHead; /* head of block list */
96 LOS_DL_LIST numHead; /* block num list */
97 struct rb_root rbRoot; /* block red-black tree root */
98 UINT32 blockSize; /* block size in bytes */
99 UINT32 blockSizeLog2; /* block size log2 */
100 UINT64 blockCount; /* block count of the disk */
102 UINT32 sectorPerBlock; /* sector count per block */
105 UINT64 curBlockNum; /* current preread block number */
107 BcacheReadFun breadFun; /* block read function */
108 BcacheWriteFun bwriteFun; /* block write function */
109 BcachePrereadFun prereadFun; /* block preread function */
110 UINT8 *rwBuffer; /* buffer for bcache block */
117 OsBcacheBlock *wStart; /* write start block */
118 OsBcacheBlock *wEnd; /* write end block */
119 UINT64 sumNum; /* block num sum val */
120 UINT32 nBlock; /* current block count */
129 * @param bc [IN] block cache instance
132 * @param num [IN] starting block number
133 * @param pos [IN] starting position inside starting block
134 * @param useRead [IN] whether use the read block or write block
138 * <li>The block number is automatically adjusted if position is greater than block size.</li>
160 * @param bc [IN] block cache instance
163 * @param num [IN] starting block number
164 * @param pos [IN] starting position inside starting block
168 * <li>The block number is automatically adjusted if position is greater than block size.</li>
189 * @param bc [IN] block cache instance
213 * @param sectorPerBlock [IN] sector count per block in bcache
214 * @param blockNum [IN] block number of bcache
215 * @param blockCount [IN] block count of the disk
241 * @param bc [IN] block cache instance