Lines Matching refs:mask
67 u32 blk, bmap, bit, mask, tmp; in affs_free_block() local
92 mask = 1 << (bit & 31); in affs_free_block()
97 if (tmp & mask) in affs_free_block()
99 *data = cpu_to_be32(tmp | mask); in affs_free_block()
103 *(__be32 *)bh->b_data = cpu_to_be32(tmp - mask); in affs_free_block()
146 u32 blk, bmap, bit, mask, mask2, tmp; in affs_alloc_block() local
209 mask = ~0UL << (bit & 31); in affs_alloc_block()
213 if (tmp & mask) in affs_alloc_block()
226 mask = ~0; in affs_alloc_block()
230 bit = ffs(tmp & mask) - 1; in affs_alloc_block()
232 mask2 = mask = 1 << (bit & 31); in affs_alloc_block()
240 mask |= mask2; in affs_alloc_block()
244 *data = cpu_to_be32(tmp & ~mask); in affs_alloc_block()
248 *(__be32 *)bh->b_data = cpu_to_be32(tmp + mask); in affs_alloc_block()
273 u32 size, blk, end, offset, mask; in affs_init_bitmap() local
341 mask = ~(0xFFFFFFFFU << (offset & 31)); in affs_init_bitmap()
342 pr_debug("last word: %d %d %d\n", offset, offset / 32 + 1, mask); in affs_init_bitmap()
345 if (mask) { in affs_init_bitmap()
350 new = old & mask; in affs_init_bitmap()