Lines Matching refs:inode
104 struct cramfs_inode *inode = (struct cramfs_inode *)(begin + offset); in cramfs_uncompress_link() local
105 unsigned long size = CRAMFS_24 (inode->size); in cramfs_uncompress_link()
124 struct cramfs_inode *inode; in cramfs_resolve() local
128 inode = (struct cramfs_inode *) (begin + offset + in cramfs_resolve()
136 namelen = CRAMFS_GET_NAMELEN (inode) << 2; in cramfs_resolve()
137 name = (char *) inode + sizeof (struct cramfs_inode); in cramfs_resolve()
157 if (S_ISDIR (CRAMFS_16 (inode->mode))) { in cramfs_resolve()
160 (inode) << 2, in cramfs_resolve()
161 CRAMFS_24 (inode-> in cramfs_resolve()
164 } else if (S_ISREG (CRAMFS_16 (inode->mode))) { in cramfs_resolve()
166 } else if (S_ISLNK (CRAMFS_16 (inode->mode))) { in cramfs_resolve()
196 CRAMFS_16 (inode->mode)); in cramfs_resolve()
211 struct cramfs_inode *inode = (struct cramfs_inode *) (begin + offset); in cramfs_uncompress() local
213 (begin + (CRAMFS_GET_OFFSET (inode) << 2)); in cramfs_uncompress()
214 unsigned long curr_block = (CRAMFS_GET_OFFSET (inode) + in cramfs_uncompress()
215 (((CRAMFS_24 (inode->size)) + in cramfs_uncompress()
222 for (i = 0; i < ((CRAMFS_24 (inode->size) + 4095) >> 12); i++) { in cramfs_uncompress()
259 struct cramfs_inode *inode = (struct cramfs_inode *) in cramfs_list_inode() local
269 namelen = CRAMFS_GET_NAMELEN (inode) << 2; in cramfs_list_inode()
270 name = (char *) inode + sizeof (struct cramfs_inode); in cramfs_list_inode()
281 printf (" %s %8d %*.*s", mkmodestr (CRAMFS_16 (inode->mode), str), in cramfs_list_inode()
282 CRAMFS_24 (inode->size), namelen, namelen, name); in cramfs_list_inode()
284 if ((CRAMFS_16 (inode->mode) & S_IFMT) == S_IFLNK) { in cramfs_list_inode()
299 struct cramfs_inode *inode; in cramfs_ls() local
321 inode = (struct cramfs_inode *) (PART_OFFSET(info) + offset); in cramfs_ls()
322 if (!S_ISDIR (CRAMFS_16 (inode->mode))) { in cramfs_ls()
328 offset = CRAMFS_GET_OFFSET (inode) << 2; in cramfs_ls()
329 size = CRAMFS_24 (inode->size); in cramfs_ls()
334 inode = (struct cramfs_inode *) (PART_OFFSET(info) + offset + in cramfs_ls()