Lines Matching refs:blk
20 static inline u8 *yaffs_block_bits(struct yaffs_dev *dev, int blk) in yaffs_block_bits() argument
22 if (blk < dev->internal_start_block || blk > dev->internal_end_block) { in yaffs_block_bits()
25 blk); in yaffs_block_bits()
29 (dev->chunk_bit_stride * (blk - dev->internal_start_block)); in yaffs_block_bits()
32 void yaffs_verify_chunk_bit_id(struct yaffs_dev *dev, int blk, int chunk) in yaffs_verify_chunk_bit_id() argument
34 if (blk < dev->internal_start_block || blk > dev->internal_end_block || in yaffs_verify_chunk_bit_id()
38 blk, chunk); in yaffs_verify_chunk_bit_id()
43 void yaffs_clear_chunk_bits(struct yaffs_dev *dev, int blk) in yaffs_clear_chunk_bits() argument
45 u8 *blk_bits = yaffs_block_bits(dev, blk); in yaffs_clear_chunk_bits()
50 void yaffs_clear_chunk_bit(struct yaffs_dev *dev, int blk, int chunk) in yaffs_clear_chunk_bit() argument
52 u8 *blk_bits = yaffs_block_bits(dev, blk); in yaffs_clear_chunk_bit()
54 yaffs_verify_chunk_bit_id(dev, blk, chunk); in yaffs_clear_chunk_bit()
58 void yaffs_set_chunk_bit(struct yaffs_dev *dev, int blk, int chunk) in yaffs_set_chunk_bit() argument
60 u8 *blk_bits = yaffs_block_bits(dev, blk); in yaffs_set_chunk_bit()
62 yaffs_verify_chunk_bit_id(dev, blk, chunk); in yaffs_set_chunk_bit()
66 int yaffs_check_chunk_bit(struct yaffs_dev *dev, int blk, int chunk) in yaffs_check_chunk_bit() argument
68 u8 *blk_bits = yaffs_block_bits(dev, blk); in yaffs_check_chunk_bit()
70 yaffs_verify_chunk_bit_id(dev, blk, chunk); in yaffs_check_chunk_bit()
74 int yaffs_still_some_chunks(struct yaffs_dev *dev, int blk) in yaffs_still_some_chunks() argument
76 u8 *blk_bits = yaffs_block_bits(dev, blk); in yaffs_still_some_chunks()
87 int yaffs_count_chunk_bits(struct yaffs_dev *dev, int blk) in yaffs_count_chunk_bits() argument
89 u8 *blk_bits = yaffs_block_bits(dev, blk); in yaffs_count_chunk_bits()