Lines Matching defs:offset
18 int hfsplus_block_allocate(struct super_block *sb, u32 size, u32 offset, u32 *max)
31 dprint(DBG_BITMAP, "block_allocate: %u,%u,%u\n", size, offset, len);
34 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS, NULL);
40 curr = pptr + (offset & (PAGE_CACHE_BITS - 1)) / 32;
41 i = offset % 32;
42 offset &= ~(PAGE_CACHE_BITS - 1);
43 if ((size ^ offset) / PAGE_CACHE_BITS)
75 offset += PAGE_CACHE_BITS;
76 if (offset >= size)
78 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS,
85 if ((size ^ offset) / PAGE_CACHE_BITS)
95 start = offset + (curr - pptr) * 32 + i;
128 offset += PAGE_CACHE_BITS;
129 page = read_mapping_page(mapping, offset / PAGE_CACHE_BITS,
152 *max = offset + (curr - pptr) * 32 + i - start;
161 int hfsplus_block_free(struct super_block *sb, u32 offset, u32 count)
173 dprint(DBG_BITMAP, "block_free: %u,%u\n", offset, count);
175 if ((offset + count) > HFSPLUS_SB(sb).total_blocks)
180 pnr = offset / PAGE_CACHE_BITS;
183 curr = pptr + (offset & (PAGE_CACHE_BITS - 1)) / 32;
188 i = offset % 32;