Lines Matching defs:ext
25 k1id = k1->ext.cnid;
26 k2id = k2->ext.cnid;
30 if (k1->ext.fork_type != k2->ext.fork_type)
31 return k1->ext.fork_type < k2->ext.fork_type ? -1 : 1;
33 k1s = k1->ext.start_block;
34 k2s = k2->ext.start_block;
44 key->ext.cnid = cpu_to_be32(cnid);
45 key->ext.start_block = cpu_to_be32(block);
46 key->ext.fork_type = type;
47 key->ext.pad = 0;
50 static u32 hfsplus_ext_find_block(struct hfsplus_extent *ext, u32 off)
55 for (i = 0; i < 8; ext++, i++) {
56 count = be32_to_cpu(ext->block_count);
58 return be32_to_cpu(ext->start_block) + off;
65 static int hfsplus_ext_block_count(struct hfsplus_extent *ext)
70 for (i = 0; i < 8; ext++, i++)
71 count += be32_to_cpu(ext->block_count);
75 static u32 hfsplus_ext_lastblock(struct hfsplus_extent *ext)
79 ext += 7;
80 for (i = 0; i < 7; ext--, i++)
81 if (ext->block_count)
83 return be32_to_cpu(ext->start_block) + be32_to_cpu(ext->block_count);
124 fd->key->ext.cnid = 0;
128 if (fd->key->ext.cnid != fd->search_key->ext.cnid ||
129 fd->key->ext.fork_type != fd->search_key->ext.fork_type)
147 HFSPLUS_I(inode).cached_start = be32_to_cpu(fd->key->ext.start_block);
363 start = be32_to_cpu(fd.key->ext.start_block);