• Home
  • Raw
  • Download

Lines Matching refs:fd

31 	struct hfs_find_data fd;  in hfsplus_lookup()  local
42 hfs_find_init(HFSPLUS_SB(sb).cat_tree, &fd); in hfsplus_lookup()
43 hfsplus_cat_build_key(sb, fd.search_key, dir->i_ino, &dentry->d_name); in hfsplus_lookup()
45 err = hfs_brec_read(&fd, &entry, sizeof(entry)); in hfsplus_lookup()
48 hfs_find_exit(&fd); in hfsplus_lookup()
57 if (fd.entrylength < sizeof(struct hfsplus_cat_folder)) { in hfsplus_lookup()
64 if (fd.entrylength < sizeof(struct hfsplus_cat_file)) { in hfsplus_lookup()
89 hfsplus_cat_build_key(sb, fd.search_key, HFSPLUS_SB(sb).hidden_dir->i_ino, &str); in hfsplus_lookup()
99 hfs_find_exit(&fd); in hfsplus_lookup()
109 hfs_find_exit(&fd); in hfsplus_lookup()
120 struct hfs_find_data fd; in hfsplus_readdir() local
127 hfs_find_init(HFSPLUS_SB(sb).cat_tree, &fd); in hfsplus_readdir()
128 hfsplus_cat_build_key(sb, fd.search_key, inode->i_ino, NULL); in hfsplus_readdir()
129 err = hfs_brec_find(&fd); in hfsplus_readdir()
141 hfs_bnode_read(fd.bnode, &entry, fd.entryoffset, fd.entrylength); in hfsplus_readdir()
147 if (fd.entrylength < HFSPLUS_MIN_THREAD_SZ) { in hfsplus_readdir()
160 err = hfs_brec_goto(&fd, filp->f_pos - 1); in hfsplus_readdir()
166 if (be32_to_cpu(fd.key->cat.parent) != inode->i_ino) { in hfsplus_readdir()
171 hfs_bnode_read(fd.bnode, &entry, fd.entryoffset, fd.entrylength); in hfsplus_readdir()
174 err = hfsplus_uni2asc(sb, &fd.key->cat.name, strbuf, &len); in hfsplus_readdir()
178 if (fd.entrylength < sizeof(struct hfsplus_cat_folder)) { in hfsplus_readdir()
190 if (fd.entrylength < sizeof(struct hfsplus_cat_file)) { in hfsplus_readdir()
207 err = hfs_brec_goto(&fd, 1); in hfsplus_readdir()
222 memcpy(&rd->key, fd.key, sizeof(struct hfsplus_cat_key)); in hfsplus_readdir()
224 hfs_find_exit(&fd); in hfsplus_readdir()