Lines Matching refs:blk
44 u32 blk, bmap, bit, mask, tmp; in affs_free_block() local
52 blk = block - sbi->s_reserved; in affs_free_block()
53 bmap = blk / sbi->s_bmap_bits; in affs_free_block()
54 bit = blk % sbi->s_bmap_bits; in affs_free_block()
122 u32 blk, bmap, bit, mask, mask2, tmp; in affs_alloc_block() local
144 blk = goal - sbi->s_reserved; in affs_alloc_block()
145 bmap = blk / sbi->s_bmap_bits; in affs_alloc_block()
167 blk = bmap * sbi->s_bmap_bits; in affs_alloc_block()
182 bit = blk % sbi->s_bmap_bits; in affs_alloc_block()
186 blk &= ~31UL; in affs_alloc_block()
194 blk += 32; in affs_alloc_block()
207 blk += bit + sbi->s_reserved; in affs_alloc_block()
209 AFFS_I(inode)->i_lastalloc = blk; in affs_alloc_block()
231 pr_debug("%d\n", blk); in affs_alloc_block()
232 return blk; in affs_alloc_block()
249 u32 size, blk, end, offset, mask; in affs_init_bitmap() local
275 blk = sb->s_blocksize / 4 - 49; in affs_init_bitmap()
276 end = blk + 25; in affs_init_bitmap()
281 bm->bm_key = be32_to_cpu(bmap_blk[blk]); in affs_init_bitmap()
294 pr_debug("read bitmap block %d: %d\n", blk, bm->bm_key); in affs_init_bitmap()
300 if (++blk < end || i == 1) in affs_init_bitmap()
304 bmap_bh = affs_bread(sb, be32_to_cpu(bmap_blk[blk])); in affs_init_bitmap()
311 blk = 0; in affs_init_bitmap()