Lines Matching refs:dire
113 struct squashfs_dir_entry *dire; in squashfs_readdir() local
117 dire = kmalloc(sizeof(*dire) + SQUASHFS_NAME_LEN + 1, GFP_KERNEL); in squashfs_readdir()
118 if (dire == NULL) { in squashfs_readdir()
180 err = squashfs_read_metadata(inode->i_sb, dire, &block, in squashfs_readdir()
181 &offset, sizeof(*dire)); in squashfs_readdir()
185 size = le16_to_cpu(dire->size) + 1; in squashfs_readdir()
187 err = squashfs_read_metadata(inode->i_sb, dire->name, in squashfs_readdir()
192 length += sizeof(*dire) + size; in squashfs_readdir()
197 dire->name[size] = '\0'; in squashfs_readdir()
199 ((short) le16_to_cpu(dire->inode_number)); in squashfs_readdir()
200 type = le16_to_cpu(dire->type); in squashfs_readdir()
203 "\n", dirent, dire->name, size, in squashfs_readdir()
206 le16_to_cpu(dire->offset), in squashfs_readdir()
210 if (filldir(dirent, dire->name, size, file->f_pos, in squashfs_readdir()
222 kfree(dire); in squashfs_readdir()
227 kfree(dire); in squashfs_readdir()