Lines Matching refs:offset
20 u32 offset, u32 *max) in hfsplus_block_allocate() argument
34 hfs_dbg(BITMAP, "block_allocate: %u,%u,%u\n", size, offset, len); in hfsplus_block_allocate()
37 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS, NULL); in hfsplus_block_allocate()
43 curr = pptr + (offset & (PAGE_CACHE_BITS - 1)) / 32; in hfsplus_block_allocate()
44 i = offset % 32; in hfsplus_block_allocate()
45 offset &= ~(PAGE_CACHE_BITS - 1); in hfsplus_block_allocate()
46 if ((size ^ offset) / PAGE_CACHE_BITS) in hfsplus_block_allocate()
78 offset += PAGE_CACHE_BITS; in hfsplus_block_allocate()
79 if (offset >= size) in hfsplus_block_allocate()
81 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS, in hfsplus_block_allocate()
88 if ((size ^ offset) / PAGE_CACHE_BITS) in hfsplus_block_allocate()
98 start = offset + (curr - pptr) * 32 + i; in hfsplus_block_allocate()
131 offset += PAGE_CACHE_BITS; in hfsplus_block_allocate()
132 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS, in hfsplus_block_allocate()
155 *max = offset + (curr - pptr) * 32 + i - start; in hfsplus_block_allocate()
164 int hfsplus_block_free(struct super_block *sb, u32 offset, u32 count) in hfsplus_block_free() argument
177 hfs_dbg(BITMAP, "block_free: %u,%u\n", offset, count); in hfsplus_block_free()
179 if ((offset + count) > sbi->total_blocks) in hfsplus_block_free()
184 pnr = offset / PAGE_CACHE_BITS; in hfsplus_block_free()
189 curr = pptr + (offset & (PAGE_CACHE_BITS - 1)) / 32; in hfsplus_block_free()
194 i = offset % 32; in hfsplus_block_free()