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