Lines Matching refs:rec_len
417 unsigned int name_len, rec_len; in ext2fs_dirent_swab_in2() local
424 dirent->rec_len = ext2fs_swab16(dirent->rec_len); in ext2fs_dirent_swab_in2()
429 retval = ext2fs_get_rec_len(fs, dirent, &rec_len); in ext2fs_dirent_swab_in2()
432 if ((rec_len < 8) || (rec_len % 4)) { in ext2fs_dirent_swab_in2()
433 rec_len = 8; in ext2fs_dirent_swab_in2()
435 } else if (((name_len & 0xFF) + 8) > rec_len) in ext2fs_dirent_swab_in2()
437 p += rec_len; in ext2fs_dirent_swab_in2()
453 unsigned int rec_len; in ext2fs_dirent_swab_out2() local
460 retval = ext2fs_get_rec_len(fs, dirent, &rec_len); in ext2fs_dirent_swab_out2()
463 if ((rec_len < 8) || in ext2fs_dirent_swab_out2()
464 (rec_len % 4)) { in ext2fs_dirent_swab_out2()
468 p += rec_len; in ext2fs_dirent_swab_out2()
470 dirent->rec_len = ext2fs_swab16(dirent->rec_len); in ext2fs_dirent_swab_out2()