Lines Matching refs:ext
26 k1id = k1->ext.cnid; in hfsplus_ext_cmp_key()
27 k2id = k2->ext.cnid; in hfsplus_ext_cmp_key()
31 if (k1->ext.fork_type != k2->ext.fork_type) in hfsplus_ext_cmp_key()
32 return k1->ext.fork_type < k2->ext.fork_type ? -1 : 1; in hfsplus_ext_cmp_key()
34 k1s = k1->ext.start_block; in hfsplus_ext_cmp_key()
35 k2s = k2->ext.start_block; in hfsplus_ext_cmp_key()
45 key->ext.cnid = cpu_to_be32(cnid); in hfsplus_ext_build_key()
46 key->ext.start_block = cpu_to_be32(block); in hfsplus_ext_build_key()
47 key->ext.fork_type = type; in hfsplus_ext_build_key()
48 key->ext.pad = 0; in hfsplus_ext_build_key()
51 static u32 hfsplus_ext_find_block(struct hfsplus_extent *ext, u32 off) in hfsplus_ext_find_block() argument
56 for (i = 0; i < 8; ext++, i++) { in hfsplus_ext_find_block()
57 count = be32_to_cpu(ext->block_count); in hfsplus_ext_find_block()
59 return be32_to_cpu(ext->start_block) + off; in hfsplus_ext_find_block()
66 static int hfsplus_ext_block_count(struct hfsplus_extent *ext) in hfsplus_ext_block_count() argument
71 for (i = 0; i < 8; ext++, i++) in hfsplus_ext_block_count()
72 count += be32_to_cpu(ext->block_count); in hfsplus_ext_block_count()
76 static u32 hfsplus_ext_lastblock(struct hfsplus_extent *ext) in hfsplus_ext_lastblock() argument
80 ext += 7; in hfsplus_ext_lastblock()
81 for (i = 0; i < 7; ext--, i++) in hfsplus_ext_lastblock()
82 if (ext->block_count) in hfsplus_ext_lastblock()
84 return be32_to_cpu(ext->start_block) + be32_to_cpu(ext->block_count); in hfsplus_ext_lastblock()
163 fd->key->ext.cnid = 0; in __hfsplus_ext_read_extent()
167 if (fd->key->ext.cnid != fd->search_key->ext.cnid || in __hfsplus_ext_read_extent()
168 fd->key->ext.fork_type != fd->search_key->ext.fork_type) in __hfsplus_ext_read_extent()
196 hip->cached_start = be32_to_cpu(fd->key->ext.start_block); in __hfsplus_ext_cache_extent()
426 start = be32_to_cpu(fd.key->ext.start_block); in hfsplus_free_fork()