Lines Matching refs:ffi
189 btroot_maxrecs (fsi_file_t *ffi) in btroot_maxrecs() argument
198 di_read (fsi_file_t *ffi, xfs_ino_t ino) in di_read() argument
212 devread (ffi, daddr, offset*xfs.isize, xfs.isize, (char *)inode); in di_read()
216 + btroot_maxrecs (ffi)*sizeof(xfs_bmbt_key_t)); in di_read()
222 init_extents (fsi_file_t *ffi) in init_extents() argument
236 devread (ffi, xfs.daddr, 0, in init_extents()
244 devread (ffi, xfs.daddr, xfs.btnode_ptr0_off, in init_extents()
251 next_extent (fsi_file_t *ffi) in next_extent() argument
266 devread (ffi, xfs.daddr, 0, sizeof(xfs_btree_lblock_t), (char *)&h); in next_extent()
272 devread (ffi, xfs.daddr, xfs.fpos, sizeof(xfs_bmbt_rec_t), filebuf); in next_extent()
289 xfs_dabread (fsi_file_t *ffi) in xfs_dabread() argument
294 init_extents (ffi); in xfs_dabread()
295 while ((xad = next_extent (ffi))) { in xfs_dabread()
298 devread (ffi, fsb2daddr (xad->start + xfs.dablk - offset), in xfs_dabread()
315 sf_parent_ino (fsi_file_t *ffi) in sf_parent_ino() argument
329 xfs_read (fsi_file_t *ffi, char *buf, int len);
332 next_dentry (fsi_file_t *ffi, xfs_ino_t *ino) in next_dentry() argument
344 xfs_dabread (ffi); in next_dentry()
359 *ino = sf_parent_ino (ffi); in next_dentry()
384 xfs_read (ffi, dirbuf, 4); in next_dentry()
394 xfs_read (ffi, (char *)dirbuf + 4, 5); in next_dentry()
399 xfs_read (ffi, dirbuf, toread); in next_dentry()
410 first_dentry (fsi_file_t *ffi, xfs_ino_t *ino) in first_dentry() argument
422 xfs_read (ffi, dirbuf, sizeof(xfs_dir2_data_hdr_t)); in first_dentry()
426 xfs_read (ffi, dirbuf, sizeof(*tail)); in first_dentry()
434 xfs_dabread (ffi); in first_dentry()
450 return next_dentry (ffi, ino); in first_dentry()
454 xfs_mount (fsi_file_t *ffi, const char *options) in xfs_mount() argument
458 if (!devread (ffi, 0, 0, sizeof(super), (char *)&super) in xfs_mount()
486 xfs_read (fsi_file_t *ffi, char *buf, int len) in xfs_read() argument
502 init_extents (ffi); in xfs_read()
503 while (len > 0 && (xad = next_extent (ffi))) { in xfs_read()
512 devread (ffi, fsb2daddr (xad->start), in xfs_read()
536 xfs_dir (fsi_file_t *ffi, char *dirname) in xfs_dir() argument
548 di_read (ffi, ino); in xfs_dir()
560 n = xfs_read (ffi, linkbuf, filemax); in xfs_dir()
594 name = first_dentry (ffi, &new_ino); in xfs_dir()
611 name = next_dentry (ffi, &new_ino); in xfs_dir()