Lines Matching refs:de
82 struct sysv_dir_entry *de; in sysv_readdir() local
88 de = (struct sysv_dir_entry *)(kaddr+offset); in sysv_readdir()
90 for ( ;(char*)de <= limit; de++, ctx->pos += sizeof(*de)) { in sysv_readdir()
91 char *name = de->name; in sysv_readdir()
93 if (!de->inode) in sysv_readdir()
97 fs16_to_cpu(SYSV_SB(sb), de->inode), in sysv_readdir()
135 struct sysv_dir_entry *de; in sysv_find_entry() local
149 de = (struct sysv_dir_entry *) kaddr; in sysv_find_entry()
151 for ( ; (char *) de <= kaddr ; de++) { in sysv_find_entry()
152 if (!de->inode) in sysv_find_entry()
155 name, de->name)) in sysv_find_entry()
170 return de; in sysv_find_entry()
179 struct sysv_dir_entry * de; in sysv_add_link() local
193 de = (struct sysv_dir_entry *)kaddr; in sysv_add_link()
195 while ((char *)de <= kaddr) { in sysv_add_link()
196 if (!de->inode) in sysv_add_link()
199 if (namecompare(namelen, SYSV_NAMELEN, name, de->name)) in sysv_add_link()
201 de++; in sysv_add_link()
210 (char*)de - (char*)page_address(page); in sysv_add_link()
215 memcpy (de->name, name, namelen); in sysv_add_link()
216 memset (de->name + namelen, 0, SYSV_DIRSIZE - namelen - 2); in sysv_add_link()
217 de->inode = cpu_to_fs16(SYSV_SB(inode->i_sb), inode->i_ino); in sysv_add_link()
230 int sysv_delete_entry(struct sysv_dir_entry *de, struct page *page) in sysv_delete_entry() argument
234 loff_t pos = page_offset(page) + (char *)de - kaddr; in sysv_delete_entry()
240 de->inode = 0; in sysv_delete_entry()
251 struct sysv_dir_entry * de; in sysv_make_empty() local
267 de = (struct sysv_dir_entry *) base; in sysv_make_empty()
268 de->inode = cpu_to_fs16(SYSV_SB(inode->i_sb), inode->i_ino); in sysv_make_empty()
269 strcpy(de->name,"."); in sysv_make_empty()
270 de++; in sysv_make_empty()
271 de->inode = cpu_to_fs16(SYSV_SB(inode->i_sb), dir->i_ino); in sysv_make_empty()
272 strcpy(de->name,".."); in sysv_make_empty()
292 struct sysv_dir_entry * de; in sysv_empty_dir() local
299 de = (struct sysv_dir_entry *)kaddr; in sysv_empty_dir()
302 for ( ;(char *)de <= kaddr; de++) { in sysv_empty_dir()
303 if (!de->inode) in sysv_empty_dir()
306 if (de->name[0] != '.') in sysv_empty_dir()
308 if (!de->name[1]) { in sysv_empty_dir()
309 if (de->inode == cpu_to_fs16(SYSV_SB(sb), in sysv_empty_dir()
314 if (de->name[1] != '.' || de->name[2]) in sysv_empty_dir()
327 void sysv_set_link(struct sysv_dir_entry *de, struct page *page, in sysv_set_link() argument
332 (char *)de-(char*)page_address(page); in sysv_set_link()
338 de->inode = cpu_to_fs16(SYSV_SB(inode->i_sb), inode->i_ino); in sysv_set_link()
348 struct sysv_dir_entry *de = NULL; in sysv_dotdot() local
351 de = (struct sysv_dir_entry*) page_address(page) + 1; in sysv_dotdot()
354 return de; in sysv_dotdot()
360 struct sysv_dir_entry *de = sysv_find_entry (dentry, &page); in sysv_inode_by_name() local
363 if (de) { in sysv_inode_by_name()
364 res = fs16_to_cpu(SYSV_SB(dentry->d_sb), de->inode); in sysv_inode_by_name()