diff options
author | Charles Manning <cdhmanning@gmail.com> | 2010-11-02 11:57:35 +1300 |
---|---|---|
committer | Charles Manning <cdhmanning@gmail.com> | 2010-11-02 11:57:35 +1300 |
commit | 976dbeae825b18e6759f3903073a6784248cc244 (patch) | |
tree | 7ea8633216286fe30f8093106a78dddeb1285a39 /yaffs_bitmap.c | |
parent | cf6888f05f691aa1a357e7e94f9bf7b98174bbc3 (diff) |
yaffs: More clean up
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'yaffs_bitmap.c')
-rw-r--r-- | yaffs_bitmap.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/yaffs_bitmap.c b/yaffs_bitmap.c index 53712d1..d54a27a 100644 --- a/yaffs_bitmap.c +++ b/yaffs_bitmap.c @@ -17,7 +17,7 @@ * Chunk bitmap manipulations */ -static Y_INLINE u8 *yaffs_block_bits(yaffs_dev_t *dev, int blk) +static Y_INLINE u8 *yaffs_block_bits(struct yaffs_dev *dev, int blk) { if (blk < dev->internal_start_block || blk > dev->internal_end_block) { T(YAFFS_TRACE_ERROR, @@ -29,7 +29,7 @@ static Y_INLINE u8 *yaffs_block_bits(yaffs_dev_t *dev, int blk) (dev->chunk_bit_stride * (blk - dev->internal_start_block)); } -void yaffs_verify_chunk_bit_id(yaffs_dev_t *dev, int blk, int chunk) +void yaffs_verify_chunk_bit_id(struct yaffs_dev *dev, int blk, int chunk) { if (blk < dev->internal_start_block || blk > dev->internal_end_block || chunk < 0 || chunk >= dev->param.chunks_per_block) { @@ -40,14 +40,14 @@ void yaffs_verify_chunk_bit_id(yaffs_dev_t *dev, int blk, int chunk) } } -void yaffs_clear_chunk_bits(yaffs_dev_t *dev, int blk) +void yaffs_clear_chunk_bits(struct yaffs_dev *dev, int blk) { u8 *blk_bits = yaffs_block_bits(dev, blk); memset(blk_bits, 0, dev->chunk_bit_stride); } -void yaffs_clear_chunk_bit(yaffs_dev_t *dev, int blk, int chunk) +void yaffs_clear_chunk_bit(struct yaffs_dev *dev, int blk, int chunk) { u8 *blk_bits = yaffs_block_bits(dev, blk); @@ -56,7 +56,7 @@ void yaffs_clear_chunk_bit(yaffs_dev_t *dev, int blk, int chunk) blk_bits[chunk / 8] &= ~(1 << (chunk & 7)); } -void yaffs_set_chunk_bit(yaffs_dev_t *dev, int blk, int chunk) +void yaffs_set_chunk_bit(struct yaffs_dev *dev, int blk, int chunk) { u8 *blk_bits = yaffs_block_bits(dev, blk); @@ -65,7 +65,7 @@ void yaffs_set_chunk_bit(yaffs_dev_t *dev, int blk, int chunk) blk_bits[chunk / 8] |= (1 << (chunk & 7)); } -int yaffs_check_chunk_bit(yaffs_dev_t *dev, int blk, int chunk) +int yaffs_check_chunk_bit(struct yaffs_dev *dev, int blk, int chunk) { u8 *blk_bits = yaffs_block_bits(dev, blk); yaffs_verify_chunk_bit_id(dev, blk, chunk); @@ -73,7 +73,7 @@ int yaffs_check_chunk_bit(yaffs_dev_t *dev, int blk, int chunk) return (blk_bits[chunk / 8] & (1 << (chunk & 7))) ? 1 : 0; } -int yaffs_still_some_chunks(yaffs_dev_t *dev, int blk) +int yaffs_still_some_chunks(struct yaffs_dev *dev, int blk) { u8 *blk_bits = yaffs_block_bits(dev, blk); int i; @@ -85,7 +85,7 @@ int yaffs_still_some_chunks(yaffs_dev_t *dev, int blk) return 0; } -int yaffs_count_chunk_bits(yaffs_dev_t *dev, int blk) +int yaffs_count_chunk_bits(struct yaffs_dev *dev, int blk) { u8 *blk_bits = yaffs_block_bits(dev, blk); int i; |