Lines Matching refs:bi
49 void yaffs_verify_blk(struct yaffs_dev *dev, struct yaffs_block_info *bi, int n) in yaffs_verify_blk() argument
58 if (bi->block_state >= YAFFS_NUMBER_OF_BLOCK_STATES) in yaffs_verify_blk()
61 n, bi->block_state); in yaffs_verify_blk()
63 switch (bi->block_state) { in yaffs_verify_blk()
69 n, block_state_name[bi->block_state]); in yaffs_verify_blk()
74 actually_used = bi->pages_in_use - bi->soft_del_pages; in yaffs_verify_blk()
76 if (bi->pages_in_use < 0 || in yaffs_verify_blk()
77 bi->pages_in_use > dev->param.chunks_per_block || in yaffs_verify_blk()
78 bi->soft_del_pages < 0 || in yaffs_verify_blk()
79 bi->soft_del_pages > dev->param.chunks_per_block || in yaffs_verify_blk()
83 n, bi->pages_in_use, bi->soft_del_pages); in yaffs_verify_blk()
87 if (in_use != bi->pages_in_use) in yaffs_verify_blk()
90 n, bi->pages_in_use, in_use); in yaffs_verify_blk()
94 struct yaffs_block_info *bi, int n) in yaffs_verify_collected_blk() argument
96 yaffs_verify_blk(dev, bi, n); in yaffs_verify_collected_blk()
100 if (bi->block_state != YAFFS_BLOCK_STATE_COLLECTING && in yaffs_verify_collected_blk()
101 bi->block_state != YAFFS_BLOCK_STATE_EMPTY) { in yaffs_verify_collected_blk()
104 n, bi->block_state); in yaffs_verify_collected_blk()
120 struct yaffs_block_info *bi = yaffs_get_block_info(dev, i); in yaffs_verify_blocks() local
121 yaffs_verify_blk(dev, bi, i); in yaffs_verify_blocks()
123 if (bi->block_state < YAFFS_NUMBER_OF_BLOCK_STATES) in yaffs_verify_blocks()
124 state_count[bi->block_state]++; in yaffs_verify_blocks()