• Home
  • Raw
  • Download

Lines Matching refs:dirent

28 			     struct ext2_dir_entry *dirent,  in ext2fs_get_rec_len()  argument
31 unsigned int len = dirent->rec_len; in ext2fs_get_rec_len()
44 struct ext2_dir_entry *dirent) in ext2fs_set_rec_len() argument
49 dirent->rec_len = len; in ext2fs_set_rec_len()
54 dirent->rec_len = EXT4_MAX_REC_LEN; in ext2fs_set_rec_len()
56 dirent->rec_len = 0; in ext2fs_set_rec_len()
58 dirent->rec_len = (len & 65532) | ((len >> 16) & 3); in ext2fs_set_rec_len()
74 struct ext2_dir_entry *dirent; in ext2fs_validate_entry() local
80 dirent = (struct ext2_dir_entry *)(buf + offset); in ext2fs_validate_entry()
81 if (ext2fs_get_rec_len(fs, dirent, &rec_len)) in ext2fs_validate_entry()
86 ((ext2fs_dirent_name_len(dirent)+8) > (int) rec_len)) in ext2fs_validate_entry()
98 struct ext2_dir_entry *dirent, in ext2fs_dir_iterate2() argument
140 int (*func)(struct ext2_dir_entry *dirent,
150 struct ext2_dir_entry *dirent, int offset, in xlate_func() argument
155 return (*xl->func)(dirent, offset, blocksize, buf, xl->real_private); in xlate_func()
162 int (*func)(struct ext2_dir_entry *dirent, in ext2fs_dir_iterate() argument
198 struct ext2_dir_entry *dirent; in ext2fs_process_dir_block() local
225 dirent = (struct ext2_dir_entry *) (ctx->buf + offset); in ext2fs_process_dir_block()
226 if (ext2fs_get_rec_len(fs, dirent, &rec_len)) in ext2fs_process_dir_block()
231 ((ext2fs_dirent_name_len(dirent)+8) > (int) rec_len)) { in ext2fs_process_dir_block()
235 if (!dirent->inode) { in ext2fs_process_dir_block()
243 (dirent->rec_len == csum_size) && in ext2fs_process_dir_block()
244 (dirent->name_len == EXT2_DIR_NAME_LEN_CSUM)) { in ext2fs_process_dir_block()
255 dirent, offset, in ext2fs_process_dir_block()
262 if (ext2fs_get_rec_len(fs, dirent, &rec_len)) in ext2fs_process_dir_block()
275 size = (ext2fs_dirent_name_len(dirent) + 11) & ~3; in ext2fs_process_dir_block()