diff options
author | Charles Manning <cdhmanning@gmail.com> | 2010-10-05 10:13:50 +1300 |
---|---|---|
committer | Charles Manning <cdhmanning@gmail.com> | 2010-10-07 11:14:38 +1300 |
commit | e33554a67753729f6b74677473cf0ec3b8d35a7e (patch) | |
tree | 11173283956c8eb07ef36c736b244e6834c05537 /yaffs_bitmap.c | |
parent | b07263adb5c642fcb911125a77b9e7f4bb8af64c (diff) |
yaffs First round of name changes
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'yaffs_bitmap.c')
-rw-r--r-- | yaffs_bitmap.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/yaffs_bitmap.c b/yaffs_bitmap.c index c7e9e8c..a24dbb7 100644 --- a/yaffs_bitmap.c +++ b/yaffs_bitmap.c @@ -29,7 +29,7 @@ static Y_INLINE __u8 *yaffs_BlockBits(yaffs_Device *dev, int blk) (dev->chunkBitmapStride * (blk - dev->internalStartBlock)); } -void yaffs_VerifyChunkBitId(yaffs_Device *dev, int blk, int chunk) +void yaffs_verify_chunk_bit_id(yaffs_Device *dev, int blk, int chunk) { if (blk < dev->internalStartBlock || blk > dev->internalEndBlock || chunk < 0 || chunk >= dev->param.nChunksPerBlock) { @@ -40,40 +40,40 @@ void yaffs_VerifyChunkBitId(yaffs_Device *dev, int blk, int chunk) } } -void yaffs_ClearChunkBits(yaffs_Device *dev, int blk) +void yaffs_clear_chunk_bits(yaffs_Device *dev, int blk) { __u8 *blkBits = yaffs_BlockBits(dev, blk); memset(blkBits, 0, dev->chunkBitmapStride); } -void yaffs_ClearChunkBit(yaffs_Device *dev, int blk, int chunk) +void yaffs_clear_chunk_bit(yaffs_Device *dev, int blk, int chunk) { __u8 *blkBits = yaffs_BlockBits(dev, blk); - yaffs_VerifyChunkBitId(dev, blk, chunk); + yaffs_verify_chunk_bit_id(dev, blk, chunk); blkBits[chunk / 8] &= ~(1 << (chunk & 7)); } -void yaffs_SetChunkBit(yaffs_Device *dev, int blk, int chunk) +void yaffs_set_chunk_bit(yaffs_Device *dev, int blk, int chunk) { __u8 *blkBits = yaffs_BlockBits(dev, blk); - yaffs_VerifyChunkBitId(dev, blk, chunk); + yaffs_verify_chunk_bit_id(dev, blk, chunk); blkBits[chunk / 8] |= (1 << (chunk & 7)); } -int yaffs_CheckChunkBit(yaffs_Device *dev, int blk, int chunk) +int yaffs_check_chunk_bit(yaffs_Device *dev, int blk, int chunk) { __u8 *blkBits = yaffs_BlockBits(dev, blk); - yaffs_VerifyChunkBitId(dev, blk, chunk); + yaffs_verify_chunk_bit_id(dev, blk, chunk); return (blkBits[chunk / 8] & (1 << (chunk & 7))) ? 1 : 0; } -int yaffs_StillSomeChunkBits(yaffs_Device *dev, int blk) +int yaffs_still_some_chunks(yaffs_Device *dev, int blk) { __u8 *blkBits = yaffs_BlockBits(dev, blk); int i; @@ -85,7 +85,7 @@ int yaffs_StillSomeChunkBits(yaffs_Device *dev, int blk) return 0; } -int yaffs_CountChunkBits(yaffs_Device *dev, int blk) +int yaffs_count_chunk_bits(yaffs_Device *dev, int blk) { __u8 *blkBits = yaffs_BlockBits(dev, blk); int i; |