Lines Matching refs:count
54 u32 count; in hfsplus_ext_find_block() local
57 count = be32_to_cpu(ext->block_count); in hfsplus_ext_find_block()
58 if (off < count) in hfsplus_ext_find_block()
60 off -= count; in hfsplus_ext_find_block()
69 u32 count = 0; in hfsplus_ext_block_count() local
72 count += be32_to_cpu(ext->block_count); in hfsplus_ext_block_count()
73 return count; in hfsplus_ext_block_count()
312 u32 count, start; in hfsplus_add_extent() local
317 count = be32_to_cpu(extent->block_count); in hfsplus_add_extent()
318 if (offset == count) { in hfsplus_add_extent()
320 if (alloc_block != start + count) { in hfsplus_add_extent()
326 block_count += count; in hfsplus_add_extent()
329 } else if (offset < count) in hfsplus_add_extent()
331 offset -= count; in hfsplus_add_extent()
341 u32 count, start; in hfsplus_free_extents() local
350 count = be32_to_cpu(extent->block_count); in hfsplus_free_extents()
351 if (offset == count) in hfsplus_free_extents()
353 else if (offset < count) in hfsplus_free_extents()
355 offset -= count; in hfsplus_free_extents()
362 if (count <= block_nr) { in hfsplus_free_extents()
363 err = hfsplus_block_free(sb, start, count); in hfsplus_free_extents()
367 start, count); in hfsplus_free_extents()
371 block_nr -= count; in hfsplus_free_extents()
373 count -= block_nr; in hfsplus_free_extents()
374 err = hfsplus_block_free(sb, start + count, block_nr); in hfsplus_free_extents()
378 start, count); in hfsplus_free_extents()
380 extent->block_count = cpu_to_be32(count); in hfsplus_free_extents()
392 count = be32_to_cpu(extent->block_count); in hfsplus_free_extents()