Lines Matching defs:fs

188 #define LFS_SWAP_int16_t(fs, val) (val)  argument
189 #define LFS_SWAP_int32_t(fs, val) (val) argument
190 #define LFS_SWAP_int64_t(fs, val) (val) argument
191 #define LFS_SWAP_uint16_t(fs, val) (val) argument
192 #define LFS_SWAP_uint32_t(fs, val) (val) argument
193 #define LFS_SWAP_uint64_t(fs, val) (val) argument
195 #define LFS_SWAP_int16_t(fs, val) \ argument
197 #define LFS_SWAP_int32_t(fs, val) \ argument
199 #define LFS_SWAP_int64_t(fs, val) \ argument
201 #define LFS_SWAP_uint16_t(fs, val) \ argument
203 #define LFS_SWAP_uint32_t(fs, val) \ argument
205 #define LFS_SWAP_uint64_t(fs, val) \ argument
214 #define LFS_LITTLE_ENDIAN_ONDISK(fs) (!(fs)->lfs_dobyteswap) argument
216 #define LFS_LITTLE_ENDIAN_ONDISK(fs) ((fs)->lfs_dobyteswap) argument
249 #define LFS_DIRHEADERSIZE(fs) \ argument
258 #define LFS_DIRECTSIZ(fs, namlen) \ argument
279 #define LFS_DIRSIZ(fs, dp) LFS_DIRECTSIZ(fs, lfs_dir_getnamlen(fs, dp)) argument
285 #define LFS_NEXTDIR(fs, dp) \ argument
289 lfs_dir_nameptr(const STRUCT_LFS *fs, LFS_DIRHEADER *dh) in lfs_dir_nameptr()
299 lfs_dir_getino(const STRUCT_LFS *fs, const LFS_DIRHEADER *dh) in lfs_dir_getino()
309 lfs_dir_getreclen(const STRUCT_LFS *fs, const LFS_DIRHEADER *dh) in lfs_dir_getreclen()
319 lfs_dir_gettype(const STRUCT_LFS *fs, const LFS_DIRHEADER *dh) in lfs_dir_gettype()
332 lfs_dir_getnamlen(const STRUCT_LFS *fs, const LFS_DIRHEADER *dh) in lfs_dir_getnamlen()
346 lfs_dir_setino(STRUCT_LFS *fs, LFS_DIRHEADER *dh, uint64_t ino) in lfs_dir_setino()
356 lfs_dir_setreclen(STRUCT_LFS *fs, LFS_DIRHEADER *dh, uint16_t reclen) in lfs_dir_setreclen()
366 lfs_dir_settype(const STRUCT_LFS *fs, LFS_DIRHEADER *dh, uint8_t type) in lfs_dir_settype()
380 lfs_dir_setnamlen(const STRUCT_LFS *fs, LFS_DIRHEADER *dh, uint8_t namlen) in lfs_dir_setnamlen()
394 lfs_copydirname(STRUCT_LFS *fs, char *dest, const char *src, in lfs_copydirname()
410 lfs_dirtemplate_dotdot(STRUCT_LFS *fs, union lfs_dirtemplate *dt) in lfs_dirtemplate_dotdot()
421 lfs_dirtemplate_dotdotname(STRUCT_LFS *fs, union lfs_dirtemplate *dt) in lfs_dirtemplate_dotdotname()
440 #define LFS_MAXSYMLINKLEN(fs) \ argument
443 #define DINOSIZE(fs) ((fs)->lfs_is64 ? sizeof(struct lfs64_dinode) : sizeof(struct lfs32_dinode)) argument
445 #define DINO_IN_BLOCK(fs, base, ix) \ argument
449 lfs_copy_dinode(STRUCT_LFS *fs, in lfs_copy_dinode()
521 lfs_dino_getib(STRUCT_LFS *fs, union lfs_dinode *dip, unsigned ix) in lfs_dino_getib()
533 lfs_dino_setdb(STRUCT_LFS *fs, union lfs_dinode *dip, unsigned ix, daddr_t val) in lfs_dino_setdb()
544 lfs_dino_setib(STRUCT_LFS *fs, union lfs_dinode *dip, unsigned ix, daddr_t val) in lfs_dino_setib()
556 lfs_dino_setbirthtime(STRUCT_LFS *fs, union lfs_dinode *dip, in lfs_dino_setbirthtime()
572 lfs_iblock_get(STRUCT_LFS *fs, void *block, unsigned ix) in lfs_iblock_get()
586 lfs_iblock_set(STRUCT_LFS *fs, void *block, unsigned ix, daddr_t val) in lfs_iblock_set()
659 #define SEGUPB(fs) (lfs_sb_getsepb(fs)) argument
660 #define SEGTABSIZE_SU(fs) \ argument
710 #define LFS_BLKPTRSIZE(fs) ((fs)->lfs_is64 ? sizeof(int64_t) : sizeof(int32_t)) argument
714 #define LFS_INUMSIZE(fs) ((fs)->lfs_is64 ? sizeof(int64_t) : sizeof(int32_t)) argument
717 #define FINFOSIZE(fs) ((fs)->lfs_is64 ? sizeof(FINFO64) : sizeof(FINFO32)) argument
720 #define FINFO_FULLSIZE(fs, fip) \ argument
723 #define NEXT_FINFO(fs, fip) \ argument
770 lfs_fi_setblock(STRUCT_LFS *fs, FINFO *fip, unsigned idx, daddr_t blk) in lfs_fi_setblock()
787 #define IINFOSIZE(fs) ((fs)->lfs_is64 ? sizeof(IINFO64) : sizeof(IINFO32)) argument
790 #define SEGSUM_IINFOSTART(fs, buf) \ argument
793 #define NEXTLOWER_IINFO(fs, iip) \ argument
796 #define NTH_IINFO(fs, buf, n) \ argument
800 lfs_ii_getblock(STRUCT_LFS *fs, IINFO *iip) in lfs_ii_getblock()
810 lfs_ii_setblock(STRUCT_LFS *fs, IINFO *iip, uint64_t block) in lfs_ii_setblock()
823 #define IFILE_ENTRYSIZE(fs) \ argument
896 #define CLEANSIZE_SU(fs) \ in LFS_DEF_IF_ACCESSOR() argument
940 lfs_ci_shiftdirtytoclean(STRUCT_LFS *fs, CLEANERINFO *cip, unsigned num) in lfs_ci_shiftdirtytoclean()
962 #define LFS_SYNC_CLEANERINFO(cip, fs, bp, w) do { \ argument
1025 #define SEGSUM_SIZE(fs) \ argument
1042 #define SEGSUM_FINFOBASE(fs, ssp) \ argument
1100 lfs_ss_getocreate(STRUCT_LFS *fs, SEGSUM *ssp) in lfs_ss_getocreate()
1110 lfs_ss_setocreate(STRUCT_LFS *fs, SEGSUM *ssp, uint32_t val) in lfs_ss_setocreate()
1246 #define lfs_sb_getotstamp(fs) lfs_sb_getinopf(fs) in LFS_DEF_SB_ACCESSOR() argument
1247 #define lfs_sb_setotstamp(fs, val) lfs_sb_setinopf(fs, val) in LFS_DEF_SB_ACCESSOR() argument
1265 lfs_sb_setsboff(STRUCT_LFS *fs, unsigned n, int32_t val) in lfs_sb_setsboff()
1281 lfs_sb_getfsmnt(STRUCT_LFS *fs) in lfs_sb_getfsmnt()
1291 lfs_sb_setfsmnt(STRUCT_LFS *fs, const char *str) in lfs_sb_setfsmnt()
1303 #define LFS_MAX_DADDR(fs) \ argument
1307 #define LFS_NINDIR(fs) (lfs_sb_getnindir(fs)) argument
1310 #define LFS_INOPB(fs) (lfs_sb_getinopb(fs)) argument
1312 #define LFS_INOPF(fs) (lfs_sb_getinopf(fs)) argument
1314 #define lfs_blkoff(fs, loc) ((int)((loc) & lfs_sb_getbmask(fs))) argument
1315 #define lfs_fragoff(fs, loc) /* calculates (loc % fs->lfs_fsize) */ \ argument
1321 LFS_FSBTODB(STRUCT_LFS *fs, uint64_t b) in LFS_FSBTODB()
1331 LFS_DBTOFSB(STRUCT_LFS *fs, uint64_t b) in LFS_DBTOFSB()
1340 #define lfs_lblkno(fs, loc) ((loc) >> lfs_sb_getbshift(fs)) argument
1341 #define lfs_lblktosize(fs, blk) ((blk) << lfs_sb_getbshift(fs)) argument
1345 lfs_fsbtob(STRUCT_LFS *fs, uint64_t b) in lfs_fsbtob()
1351 lfs_btofsb(STRUCT_LFS *fs, uint64_t b) in lfs_btofsb()
1356 #define lfs_numfrags(fs, loc) /* calculates (loc / fs->lfs_fsize) */ \ argument
1358 #define lfs_blkroundup(fs, size)/* calculates roundup(size, lfs_sb_getbsize(fs)) */ \ argument
1360 #define lfs_fragroundup(fs, size)/* calculates roundup(size, fs->lfs_fsize) */ \ argument
1362 #define lfs_fragstoblks(fs, frags)/* calculates (frags / fs->fs_frag) */ \ argument
1364 #define lfs_blkstofrags(fs, blks)/* calculates (blks * fs->fs_frag) */ \ argument
1366 #define lfs_fragnum(fs, fsb) /* calculates (fsb % fs->lfs_frag) */ \ argument
1368 #define lfs_blknum(fs, fsb) /* calculates rounddown(fsb, fs->lfs_frag) */ \ argument
1370 #define lfs_dblksize(fs, dp, lbn) \ argument
1375 #define lfs_segsize(fs) (lfs_sb_getversion(fs) == 1 ? \ argument
1379 #define lfs_segtod(fs, seg) (lfs_btofsb(fs, lfs_segsize(fs)) * (seg)) argument
1380 #define lfs_dtosn(fs, daddr) /* block address to segment number */ \ argument
1382 #define lfs_sntod(fs, sn) /* segment number to disk address */ \ argument
1388 lfs_blksize(STRUCT_LFS *fs, struct inode *ip, uint64_t lbn) in lfs_blksize()
1403 lfs_blocks_fromvoid(STRUCT_LFS *fs, union lfs_blocks *bp, void *p) in lfs_blocks_fromvoid()
1413 lfs_blocks_fromfinfo(STRUCT_LFS *fs, union lfs_blocks *bp, FINFO *fip) in lfs_blocks_fromfinfo()
1426 lfs_blocks_get(STRUCT_LFS *fs, union lfs_blocks *bp, unsigned idx) in lfs_blocks_get()
1436 lfs_blocks_set(STRUCT_LFS *fs, union lfs_blocks *bp, unsigned idx, daddr_t val) in lfs_blocks_set()
1446 lfs_blocks_inc(STRUCT_LFS *fs, union lfs_blocks *bp) in lfs_blocks_inc()
1456 lfs_blocks_eq(STRUCT_LFS *fs, union lfs_blocks *bp1, union lfs_blocks *bp2) in lfs_blocks_eq()
1466 lfs_blocks_sub(STRUCT_LFS *fs, union lfs_blocks *bp1, union lfs_blocks *bp2) in lfs_blocks_sub()