Lines Matching refs:ffi
38 #define indirblk0 (*fsig_int1(ffi))
39 #define indirblk1 (*fsig_int2(ffi))
47 ufs_mount(fsi_file_t *ffi, const char *options) in ufs_mount() argument
50 !devread(ffi, UFS_SBLOCK, 0, UFS_SBSIZE, (char *)SUPERBLOCK) || in ufs_mount()
65 ufs_dir(fsi_file_t *ffi, char *dirname) in ufs_dir() argument
77 if (!openi(ffi, inode)) in ufs_dir()
87 inode = dlook(ffi, inode, fname); in ufs_dir()
94 if (! openi(ffi, inode)) in ufs_dir()
105 ufs_read(fsi_file_t *ffi, char *buf, int len) in ufs_read() argument
118 if ((dblk = sbmap(ffi, lblk)) <= 0) { in ufs_read()
123 ok = devread(ffi, fsbtodb(SUPERBLOCK, dblk), in ufs_read()
150 openi(fsi_file_t *ffi, grub_ino_t inode) in openi() argument
159 return (devread(ffi, dblk, off, sizeof (struct icommon), (char *)INODE)); in openi()
168 sbmap(fsi_file_t *ffi, grub_daddr32_t bn) in sbmap() argument
199 if (!devread(ffi, blkno, 0, SUPERBLOCK->fs_bsize, in sbmap()
212 if (!devread(ffi, blkno, 0, SUPERBLOCK->fs_bsize, in sbmap()
229 dlook(fsi_file_t *ffi, grub_ino_t dir_ino, char *name) in dlook() argument
246 dbn = sbmap(ffi, lbn); in dlook()
251 if (!devread(ffi, dblk, 0, SUPERBLOCK->fs_bsize, in dlook()