Lines Matching full:devfd
132 * Read a superblock from the devfd device.
152 ffs_sbget(void *devfd, struct fs **fsp, off_t sblock, int flags, in ffs_sbget() argument
154 int (*readfunc)(void *devfd, off_t loc, void **bufp, int size)) in ffs_sbget() argument
167 if ((error = readsuper(devfd, &fs, sblock, in ffs_sbget()
175 if ((error = readsuper(devfd, &fs, sblock_try[i], in ffs_sbget()
219 error = (*readfunc)(devfd, in ffs_sbget()
251 readsuper(void *devfd, struct fs **fsp, off_t sblockloc, int flags, in readsuper() argument
252 int (*readfunc)(void *devfd, off_t loc, void **bufp, int size)) in readsuper() argument
258 error = (*readfunc)(devfd, sblockloc, (void **)fsp, SBLOCKSIZE); in readsuper()
799 ffs_sbsearch(void *devfd, struct fs **fsp, int reqflags, in ffs_sbsearch() argument
801 int (*readfunc)(void *devfd, off_t loc, void **bufp, int size)) in ffs_sbsearch() argument
820 error = ffs_sbget(devfd, fsp, UFS_STDSB, flags, filltype, readfunc); in ffs_sbsearch()
836 if (ffs_sbget(devfd, fsp, UFS_STDSB, flags, filltype, readfunc) == 0) in ffs_sbsearch()
845 if (ffs_sbget(devfd, &protofs, UFS_STDSB, flags, filltype, in ffs_sbsearch()
880 if ((error = (*readfunc)(devfd, (SBLOCK_UFS2 - secsize), in ffs_sbsearch()
912 if (ffs_sbget(devfd, fsp, dbtob(sblk), flags, filltype, in ffs_sbsearch()
933 if (ffs_sbget(devfd, fsp, UFS_STDSB, flags, filltype, readfunc) != 0) { in ffs_sbsearch()
945 * Write a superblock to the devfd device from the memory pointed to by fs.
954 ffs_sbput(void *devfd, struct fs *fs, off_t loc, in ffs_sbput() argument
955 int (*writefunc)(void *devfd, off_t loc, void *buf, int size)) in ffs_sbput() argument
972 if ((error = (*writefunc)(devfd, in ffs_sbput()
990 error = (*writefunc)(devfd, loc, fs, fs->fs_sbsize); in ffs_sbput()