Lines Matching refs:extent
153 struct hfsplus_extent *extent, in __hfsplus_ext_read_extent() argument
168 hfs_bnode_read(fd->bnode, extent, fd->entryoffset, in __hfsplus_ext_read_extent()
291 static void hfsplus_dump_extent(struct hfsplus_extent *extent) in hfsplus_dump_extent() argument
298 be32_to_cpu(extent[i].start_block), in hfsplus_dump_extent()
299 be32_to_cpu(extent[i].block_count)); in hfsplus_dump_extent()
303 static int hfsplus_add_extent(struct hfsplus_extent *extent, u32 offset, in hfsplus_add_extent() argument
309 hfsplus_dump_extent(extent); in hfsplus_add_extent()
310 for (i = 0; i < 8; extent++, i++) { in hfsplus_add_extent()
311 count = be32_to_cpu(extent->block_count); in hfsplus_add_extent()
313 start = be32_to_cpu(extent->start_block); in hfsplus_add_extent()
317 extent++; in hfsplus_add_extent()
318 extent->start_block = cpu_to_be32(alloc_block); in hfsplus_add_extent()
321 extent->block_count = cpu_to_be32(block_count); in hfsplus_add_extent()
332 struct hfsplus_extent *extent, in hfsplus_free_extents() argument
342 hfsplus_dump_extent(extent); in hfsplus_free_extents()
343 for (i = 0; i < 8; extent++, i++) { in hfsplus_free_extents()
344 count = be32_to_cpu(extent->block_count); in hfsplus_free_extents()
355 start = be32_to_cpu(extent->start_block); in hfsplus_free_extents()
363 extent->block_count = 0; in hfsplus_free_extents()
364 extent->start_block = 0; in hfsplus_free_extents()
374 extent->block_count = cpu_to_be32(count); in hfsplus_free_extents()
385 extent--; in hfsplus_free_extents()
386 count = be32_to_cpu(extent->block_count); in hfsplus_free_extents()