• Home
  • Raw
  • Download

Lines Matching refs:dirent

192 				     struct ext2_dir_entry *dirent,  in __get_dx_countlimit()  argument
204 rec_len = translate(dirent->rec_len); in __get_dx_countlimit()
206 if (rec_len == fs->blocksize && translate(dirent->name_len) == 0) in __get_dx_countlimit()
209 dp = (struct ext2_dir_entry *)(((char *)dirent) + rec_len); in __get_dx_countlimit()
221 c = (struct ext2_dx_countlimit *)(((char *)dirent) + count_offset); in __get_dx_countlimit()
237 struct ext2_dir_entry *dirent, in ext2fs_get_dx_countlimit() argument
241 return __get_dx_countlimit(fs, dirent, cc, offset, 0); in ext2fs_get_dx_countlimit()
254 struct ext2_dir_entry *dirent, in __get_dirent_tail() argument
265 d = dirent; in __get_dirent_tail()
266 top = EXT2_DIRENT_TAIL(dirent, fs->blocksize); in __get_dirent_tail()
290 int ext2fs_dirent_has_tail(ext2_filsys fs, struct ext2_dir_entry *dirent) in ext2fs_dirent_has_tail() argument
292 return __get_dirent_tail(fs, dirent, NULL, 0) == 0; in ext2fs_dirent_has_tail()
296 struct ext2_dir_entry *dirent, __u32 *crc, in ext2fs_dirent_csum() argument
300 char *buf = (char *)dirent; in ext2fs_dirent_csum()
319 struct ext2_dir_entry *dirent) in ext2fs_dirent_csum_verify() argument
325 retval = __get_dirent_tail(fs, dirent, &t, 1); in ext2fs_dirent_csum_verify()
333 retval = ext2fs_dirent_csum(fs, inum, dirent, &calculated, in ext2fs_dirent_csum_verify()
334 (char *)t - (char *)dirent); in ext2fs_dirent_csum_verify()
341 struct ext2_dir_entry *dirent) in ext2fs_dirent_csum_set() argument
347 retval = __get_dirent_tail(fs, dirent, &t, 1); in ext2fs_dirent_csum_set()
352 retval = ext2fs_dirent_csum(fs, inum, dirent, &crc, in ext2fs_dirent_csum_set()
353 (char *)t - (char *)dirent); in ext2fs_dirent_csum_set()
361 struct ext2_dir_entry *dirent, in ext2fs_dx_csum() argument
366 char *buf = (char *)dirent; in ext2fs_dx_csum()
393 struct ext2_dir_entry *dirent) in ext2fs_dx_csum_verify() argument
401 retval = __get_dx_countlimit(fs, dirent, &c, &count_offset, 1); in ext2fs_dx_csum_verify()
411 retval = ext2fs_dx_csum(fs, inum, dirent, &calculated, count_offset, in ext2fs_dx_csum_verify()
420 struct ext2_dir_entry *dirent) in ext2fs_dx_csum_set() argument
428 retval = __get_dx_countlimit(fs, dirent, &c, &count_offset, 1); in ext2fs_dx_csum_set()
439 retval = ext2fs_dx_csum(fs, inum, dirent, &crc, count_offset, count, t); in ext2fs_dx_csum_set()
447 struct ext2_dir_entry *dirent) in ext2fs_dir_block_csum_verify() argument
452 if (__get_dirent_tail(fs, dirent, NULL, 1) == 0) in ext2fs_dir_block_csum_verify()
453 return ext2fs_dirent_csum_verify(fs, inum, dirent); in ext2fs_dir_block_csum_verify()
454 if (__get_dx_countlimit(fs, dirent, NULL, NULL, 1) == 0) in ext2fs_dir_block_csum_verify()
455 return ext2fs_dx_csum_verify(fs, inum, dirent); in ext2fs_dir_block_csum_verify()
461 struct ext2_dir_entry *dirent) in ext2fs_dir_block_csum_set() argument
466 if (__get_dirent_tail(fs, dirent, NULL, 1) == 0) in ext2fs_dir_block_csum_set()
467 return ext2fs_dirent_csum_set(fs, inum, dirent); in ext2fs_dir_block_csum_set()
468 if (__get_dx_countlimit(fs, dirent, NULL, NULL, 1) == 0) in ext2fs_dir_block_csum_set()
469 return ext2fs_dx_csum_set(fs, inum, dirent); in ext2fs_dir_block_csum_set()