Lines Matching refs:count
77 u16 count; in hfs_ext_find_block() local
80 count = be16_to_cpu(ext->count); in hfs_ext_find_block()
81 if (off < count) in hfs_ext_find_block()
83 off -= count; in hfs_ext_find_block()
92 u16 count = 0; in hfs_ext_block_count() local
95 count += be16_to_cpu(ext->count); in hfs_ext_block_count()
96 return count; in hfs_ext_block_count()
105 if (ext->count) in hfs_ext_lastblock()
107 return be16_to_cpu(ext->block) + be16_to_cpu(ext->count); in hfs_ext_lastblock()
216 be16_to_cpu(extent[i].count)); in hfs_dump_extent()
223 u16 count, start; in hfs_add_extent() local
228 count = be16_to_cpu(extent->count); in hfs_add_extent()
229 if (offset == count) { in hfs_add_extent()
231 if (alloc_block != start + count) { in hfs_add_extent()
237 block_count += count; in hfs_add_extent()
238 extent->count = cpu_to_be16(block_count); in hfs_add_extent()
240 } else if (offset < count) in hfs_add_extent()
242 offset -= count; in hfs_add_extent()
251 u16 count, start; in hfs_free_extents() local
256 count = be16_to_cpu(extent->count); in hfs_free_extents()
257 if (offset == count) in hfs_free_extents()
259 else if (offset < count) in hfs_free_extents()
261 offset -= count; in hfs_free_extents()
268 if (count <= block_nr) { in hfs_free_extents()
269 hfs_clear_vbm_bits(sb, start, count); in hfs_free_extents()
271 extent->count = 0; in hfs_free_extents()
272 block_nr -= count; in hfs_free_extents()
274 count -= block_nr; in hfs_free_extents()
275 hfs_clear_vbm_bits(sb, start + count, block_nr); in hfs_free_extents()
276 extent->count = cpu_to_be16(count); in hfs_free_extents()
283 count = be16_to_cpu(extent->count); in hfs_free_extents()
308 blocks += be16_to_cpu(extent[i].count); in hfs_free_fork()
420 HFS_I(inode)->first_extents[0].count = cpu_to_be16(len); in hfs_extend_file()
466 HFS_I(inode)->cached_extents[0].count = cpu_to_be16(len); in hfs_extend_file()