Lines Matching refs:blk
67 u32 blk, bmap, bit, mask, tmp; in affs_free_block() local
75 blk = block - sbi->s_reserved; in affs_free_block()
76 bmap = blk / sbi->s_bmap_bits; in affs_free_block()
77 bit = blk % sbi->s_bmap_bits; in affs_free_block()
146 u32 blk, bmap, bit, mask, mask2, tmp; in affs_alloc_block() local
168 blk = goal - sbi->s_reserved; in affs_alloc_block()
169 bmap = blk / sbi->s_bmap_bits; in affs_alloc_block()
191 blk = bmap * sbi->s_bmap_bits; in affs_alloc_block()
206 bit = blk % sbi->s_bmap_bits; in affs_alloc_block()
210 blk &= ~31UL; in affs_alloc_block()
218 blk += 32; in affs_alloc_block()
231 blk += bit + sbi->s_reserved; in affs_alloc_block()
233 AFFS_I(inode)->i_lastalloc = blk; in affs_alloc_block()
255 pr_debug("%d\n", blk); in affs_alloc_block()
256 return blk; in affs_alloc_block()
273 u32 size, blk, end, offset, mask; in affs_init_bitmap() local
300 blk = sb->s_blocksize / 4 - 49; in affs_init_bitmap()
301 end = blk + 25; in affs_init_bitmap()
306 bm->bm_key = be32_to_cpu(bmap_blk[blk]); in affs_init_bitmap()
319 pr_debug("AFFS: read bitmap block %d: %d\n", blk, bm->bm_key); in affs_init_bitmap()
325 if (++blk < end || i == 1) in affs_init_bitmap()
329 bmap_bh = affs_bread(sb, be32_to_cpu(bmap_blk[blk])); in affs_init_bitmap()
336 blk = 0; in affs_init_bitmap()