Lines Matching refs:dire
535 struct squashfs_dir_entry_2 *dire = (struct squashfs_dir_entry_2 *) buffer; in squashfs_readdir_2() local
577 SQUASHFS_SWAP_DIR_ENTRY_2(dire, &sdire); in squashfs_readdir_2()
580 dire, next_block, next_offset, in squashfs_readdir_2()
581 sizeof(*dire), &next_block, in squashfs_readdir_2()
585 length += sizeof(*dire); in squashfs_readdir_2()
588 if (!squashfs_get_cached_block(i->i_sb, dire->name, in squashfs_readdir_2()
590 dire->size + 1, &next_block, in squashfs_readdir_2()
594 length += dire->size + 1; in squashfs_readdir_2()
599 dire->name[dire->size + 1] = '\0'; in squashfs_readdir_2()
602 (unsigned int) dirent, dire->name, in squashfs_readdir_2()
603 dire->size + 1, (int) file->f_pos, in squashfs_readdir_2()
604 dirh.start_block, dire->offset, in squashfs_readdir_2()
605 squashfs_filetype_table[dire->type]); in squashfs_readdir_2()
607 if (filldir(dirent, dire->name, dire->size + 1, in squashfs_readdir_2()
609 dirh.start_block, dire->offset), in squashfs_readdir_2()
610 squashfs_filetype_table[dire->type]) in squashfs_readdir_2()
642 struct squashfs_dir_entry_2 *dire = (struct squashfs_dir_entry_2 *) buffer; in squashfs_lookup_2() local
687 SQUASHFS_SWAP_DIR_ENTRY_2(dire, &sdire); in squashfs_lookup_2()
690 dire, next_block,next_offset, in squashfs_lookup_2()
691 sizeof(*dire), &next_block, in squashfs_lookup_2()
695 length += sizeof(*dire); in squashfs_lookup_2()
698 if (!squashfs_get_cached_block(i->i_sb, dire->name, in squashfs_lookup_2()
699 next_block, next_offset, dire->size + 1, in squashfs_lookup_2()
703 length += dire->size + 1; in squashfs_lookup_2()
705 if (sorted && name[0] < dire->name[0]) in squashfs_lookup_2()
708 if ((len == dire->size + 1) && !strncmp(name, in squashfs_lookup_2()
709 dire->name, len)) { in squashfs_lookup_2()
712 dire->offset); in squashfs_lookup_2()
716 dirh.start_block, dire->offset, ino); in squashfs_lookup_2()