Lines Matching refs:de
34 struct bfs_dirent *de; in bfs_readdir() local
58 de = (struct bfs_dirent *)(bh->b_data + offset); in bfs_readdir()
59 if (de->ino) { in bfs_readdir()
60 int size = strnlen(de->name, BFS_NAMELEN); in bfs_readdir()
61 if (filldir(dirent, de->name, size, f->f_pos, in bfs_readdir()
62 le16_to_cpu(de->ino), in bfs_readdir()
143 struct bfs_dirent *de; in bfs_lookup() local
150 bh = bfs_find_entry(dir, dentry->d_name.name, dentry->d_name.len, &de); in bfs_lookup()
152 unsigned long ino = (unsigned long)le16_to_cpu(de->ino); in bfs_lookup()
193 struct bfs_dirent *de; in bfs_unlink() local
197 bh = bfs_find_entry(dir, dentry->d_name.name, dentry->d_name.len, &de); in bfs_unlink()
198 if (!bh || (le16_to_cpu(de->ino) != inode->i_ino)) in bfs_unlink()
207 de->ino = 0; in bfs_unlink()
292 struct bfs_dirent *de; in bfs_add_entry() local
310 de = (struct bfs_dirent *)(bh->b_data + off); in bfs_add_entry()
311 if (!de->ino) { in bfs_add_entry()
319 de->ino = cpu_to_le16((u16)ino); in bfs_add_entry()
321 de->name[i] = in bfs_add_entry()
347 struct bfs_dirent *de; in bfs_find_entry() local
361 de = (struct bfs_dirent *)(bh->b_data + offset); in bfs_find_entry()
363 if (le16_to_cpu(de->ino) && in bfs_find_entry()
364 bfs_namecmp(namelen, name, de->name)) { in bfs_find_entry()
365 *res_dir = de; in bfs_find_entry()