• Home
  • Raw
  • Download

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()
212 be16_to_cpu(extent[i].count)); in hfs_dump_extent()
219 u16 count, start; in hfs_add_extent() local
224 count = be16_to_cpu(extent->count); in hfs_add_extent()
225 if (offset == count) { in hfs_add_extent()
227 if (alloc_block != start + count) { in hfs_add_extent()
233 block_count += count; in hfs_add_extent()
234 extent->count = cpu_to_be16(block_count); in hfs_add_extent()
236 } else if (offset < count) in hfs_add_extent()
238 offset -= count; in hfs_add_extent()
247 u16 count, start; in hfs_free_extents() local
252 count = be16_to_cpu(extent->count); in hfs_free_extents()
253 if (offset == count) in hfs_free_extents()
255 else if (offset < count) in hfs_free_extents()
257 offset -= count; in hfs_free_extents()
264 if (count <= block_nr) { in hfs_free_extents()
265 hfs_clear_vbm_bits(sb, start, count); in hfs_free_extents()
267 extent->count = 0; in hfs_free_extents()
268 block_nr -= count; in hfs_free_extents()
270 count -= block_nr; in hfs_free_extents()
271 hfs_clear_vbm_bits(sb, start + count, block_nr); in hfs_free_extents()
272 extent->count = cpu_to_be16(count); in hfs_free_extents()
279 count = be16_to_cpu(extent->count); in hfs_free_extents()
304 blocks += be16_to_cpu(extent[i].count); in hfs_free_fork()
414 HFS_I(inode)->first_extents[0].count = cpu_to_be16(len); in hfs_extend_file()
460 HFS_I(inode)->cached_extents[0].count = cpu_to_be16(len); in hfs_extend_file()