Lines Matching refs:offset
19 u32 offset, u32 *max) in hfsplus_block_allocate() argument
33 hfs_dbg(BITMAP, "block_allocate: %u,%u,%u\n", size, offset, len); in hfsplus_block_allocate()
36 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS, NULL); in hfsplus_block_allocate()
42 curr = pptr + (offset & (PAGE_CACHE_BITS - 1)) / 32; in hfsplus_block_allocate()
43 i = offset % 32; in hfsplus_block_allocate()
44 offset &= ~(PAGE_CACHE_BITS - 1); in hfsplus_block_allocate()
45 if ((size ^ offset) / PAGE_CACHE_BITS) in hfsplus_block_allocate()
77 offset += PAGE_CACHE_BITS; in hfsplus_block_allocate()
78 if (offset >= size) in hfsplus_block_allocate()
80 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS, in hfsplus_block_allocate()
87 if ((size ^ offset) / PAGE_CACHE_BITS) in hfsplus_block_allocate()
97 start = offset + (curr - pptr) * 32 + i; in hfsplus_block_allocate()
130 offset += PAGE_CACHE_BITS; in hfsplus_block_allocate()
131 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS, in hfsplus_block_allocate()
154 *max = offset + (curr - pptr) * 32 + i - start; in hfsplus_block_allocate()
163 int hfsplus_block_free(struct super_block *sb, u32 offset, u32 count) in hfsplus_block_free() argument
176 hfs_dbg(BITMAP, "block_free: %u,%u\n", offset, count); in hfsplus_block_free()
178 if ((offset + count) > sbi->total_blocks) in hfsplus_block_free()
183 pnr = offset / PAGE_CACHE_BITS; in hfsplus_block_free()
188 curr = pptr + (offset & (PAGE_CACHE_BITS - 1)) / 32; in hfsplus_block_free()
193 i = offset % 32; in hfsplus_block_free()