Home
last modified time | relevance | path

Searched refs:fs (Results 1 – 25 of 305) sorted by relevance

12345678910>>...13

/dragonfly/sys/vm/
H A Dvm_fault.c218 if (fs->ba != fs->first_ba) in unlock_map()
270 fs->ba = fs->first_ba; in cleanup_fault()
694 fs.mary[0], fs.prot, fs.wflags, fs.entry); in vm_fault()
836 fs.mary[0], fs.prot, fs.wflags, fs.entry); in vm_fault()
1168 fs.ba = fs.first_ba; in vm_fault_page()
1440 fs.ba = fs.first_ba; in vm_fault_object_page()
1691 if (TRYPAGER(fs) || fs->ba == fs->first_ba) { in vm_fault_object()
1720 if (fs->ba != fs->first_ba && fs->shared) { in vm_fault_object()
1827 if (fs->ba != fs->first_ba && fs->shared) { in vm_fault_object()
2232 (fs->ba != fs->first_ba && fs->shared)) { in vm_fault_object()
[all …]
/dragonfly/sys/vfs/ufs/
H A Dfs.h448 (cgbase(fs, c) + (fs)->fs_cgoffset * ((c) & ~((fs)->fs_cgmask)))
459 (blkstofrags((fs), (((x) % (fs)->fs_ipg) / INOPB(fs))))))
478 (((bno) * NSPF(fs) % (fs)->fs_spc / (fs)->fs_nsect * (fs)->fs_trackskew + \
479 (bno) * NSPF(fs) % (fs)->fs_spc % (fs)->fs_nsect * (fs)->fs_interleave) % \
480 (fs)->fs_nsect * (fs)->fs_nrpos / (fs)->fs_npsect)
558 #define blkoffsize(fs, ip, loc) blksize(fs, ip, lblkno(fs, loc)) argument
559 #define blkoffresize(fs, loc) sblksize(fs, loc, lblkno(fs, loc)) argument
565 #define NSPB(fs) ((fs)->fs_nspf << (fs)->fs_fragshift) argument
566 #define NSPF(fs) ((fs)->fs_nspf) argument
571 #define INOPB(fs) ((fs)->fs_inopb) argument
[all …]
H A Dffs_alloc.c107 struct fs *fs; in ffs_alloc() local
174 struct fs *fs; in ffs_realloccg() local
351 struct fs *fs; in ffs_reallocblks() local
588 struct fs *fs; in ffs_valloc() local
666 struct fs *fs; in ffs_dirpref() local
799 struct fs *fs; in ffs_blkpref() local
869 struct fs *fs; in ffs_hashalloc() local
917 struct fs *fs; in ffs_fragextend() local
1001 struct fs *fs; in ffs_alloccg() local
1117 struct fs *fs; in ffs_alloccgblk() local
[all …]
H A Dffs_vfsops.c138 struct fs *fs; in ffs_mount() local
440 struct fs *fs; member
452 struct fs *fs, *newfs; in ffs_reload() local
540 scaninfo.fs = fs; in ffs_reload()
593 struct fs *fs; in ffs_mountfs() local
641 fs = (struct fs *)bp->b_data; in ffs_mountfs()
827 struct fs *fs; in ffs_unmount() local
920 struct fs *fs; in ffs_statfs() local
958 struct fs *fs; in ffs_sync() local
1067 struct fs *fs; in ffs_vget() local
[all …]
H A Dffs_balloc.c73 struct fs *fs; in ffs_balloc() local
87 fs = ip->i_fs; in ffs_balloc()
90 if (size > fs->fs_bsize) in ffs_balloc()
155 error = bread(vp, lblktodoff(fs, lbn), fs->fs_bsize, &bp); in ffs_balloc()
168 osize = fragroundup(fs, blkoff(fs, ip->i_size)); in ffs_balloc()
196 nsize = fs->fs_bsize; in ffs_balloc()
233 dbp = getblk(vp, lblktodoff(fs, lbn), fs->fs_bsize, 0, 0); in ffs_balloc()
291 error = bread(vp, lblktodoff(fs, indirs[i].in_lbn), (int)fs->fs_bsize, &bp); in ffs_balloc()
421 fs->fs_bsize, in ffs_balloc()
462 bp = getblk(vp, lblktodoff(fs, *lbns_remfree), fs->fs_bsize, 0, 0); in ffs_balloc()
[all …]
H A Dffs_subr.c63 struct fs *fs; in ffs_blkatoff() local
69 fs = ip->i_fs; in ffs_blkatoff()
70 lbn = lblkno(fs, uoffset); in ffs_blkatoff()
97 struct fs *fs; in ffs_blkatoff_ra() local
107 fs = ip->i_fs; in ffs_blkatoff_ra()
108 lbn = lblkno(fs, uoffset); in ffs_blkatoff_ra()
163 ffs_fragacct(struct fs *fs, int fragmap, int32_t fraglist[], int cnt) in ffs_fragacct() argument
221 ffs_isblock(struct fs *fs, unsigned char *cp, ufs_daddr_t h) in ffs_isblock() argument
246 ffs_isfreeblock(struct fs *fs, unsigned char *cp, ufs_daddr_t h) in ffs_isfreeblock() argument
266 ffs_clrblock(struct fs *fs, u_char *cp, ufs_daddr_t h) in ffs_clrblock() argument
[all …]
/dragonfly/usr.sbin/makefs/ffs/
H A Dffs_alloc.c96 struct fs *fs = ip->i_fs; in ffs_alloc() local
158 struct fs *fs; in ffs_blkpref_ufs1() local
198 struct fs *fs; in ffs_blkpref_ufs2() local
252 struct fs *fs; in ffs_hashalloc() local
304 struct fs *fs = ip->i_fs; in ffs_alloccg() local
389 struct fs *fs = ip->i_fs; in ffs_alloccgblk() local
421 cg_blks(fs, cgp, cbtocylno(fs, bno))[cbtorpos(fs, bno)]--; in ffs_alloccgblk() local
443 struct fs *fs = ip->i_fs; in ffs_blkfree() local
447 fragnum(fs, bno) + numfrags(fs, size) > fs->fs_frag) { in ffs_blkfree()
481 cg_blks(fs, cgp, cbtocylno(fs, bno))[cbtorpos(fs, bno)]++; in ffs_blkfree() local
[all …]
/dragonfly/stand/boot/common/
H A Dfs.h500 #define cgdmin(fs, c) (cgstart(fs, c) + (fs)->fs_dblkno) /* 1st data */ argument
501 #define cgimin(fs, c) (cgstart(fs, c) + (fs)->fs_iblkno) /* inode blk */ argument
502 #define cgsblock(fs, c) (cgstart(fs, c) + (fs)->fs_sblkno) /* super blk */ argument
503 #define cgtod(fs, c) (cgstart(fs, c) + (fs)->fs_cblkno) /* cg block */ argument
517 (blkstofrags((fs), (((x) % (fs)->fs_ipg) / INOPB(fs))))))
524 #define dtog(fs, d) ((d) / (fs)->fs_fpg) argument
525 #define dtogd(fs, d) ((d) % (fs)->fs_fpg) argument
586 : (fragroundup(fs, blkoff(fs, (size)))))
592 #define INOPB(fs) ((fs)->fs_inopb) argument
593 #define INOPF(fs) ((fs)->fs_inopb >> (fs)->fs_fragshift) argument
[all …]
H A Dufsread.c46 #define cgbase(fs, c) ((ufs2_daddr_t)((fs)->fs_fpg * (c))) argument
57 #define INDIRPERVBLK(fs) (NINDIR(fs) / ((fs)->fs_bsize >> VBLKSHIFT)) argument
58 #define IPERVBLK(fs) (INOPB(fs) / ((fs)->fs_bsize >> VBLKSHIFT)) argument
60 (fsbtodb(fs, cgimin(fs, ino_to_cg(fs, x))) + \
63 #define FS_TO_VBA(fs, fsb, off) (fsbtodb(fs, fsb) + \ argument
174 struct fs *fs; in boot2_ufs_init() local
178 fs = (struct fs *)fsdmadat->sbbuf; in boot2_ufs_init()
198 fs->fs_bsize >= (int)sizeof(struct fs)) in boot2_ufs_init()
223 struct fs *fs; in boot2_ufs_read_size() local
232 fs = (struct fs *)fsdmadat->sbbuf; in boot2_ufs_read_size()
[all …]
/dragonfly/sys/vfs/ext2fs/
H A Dext2_alloc.c117 if ((u_int)size > fs->e2fs_bsize || blkoff(fs, size) != 0) { in ext2_alloc()
125 if (size == fs->e2fs_bsize && fs->e2fs_fbcount == 0) in ext2_alloc()
128 fs->e2fs_fbcount < fs->e2fs_rbcount) in ext2_alloc()
592 avgifree = fs->e2fs_ficount / fs->e2fs_gcount; in ext2_dirpref()
593 avgbfree = fs->e2fs_fbcount / fs->e2fs_gcount; in ext2_dirpref()
594 avgndir = fs->e2fs_total_dir / fs->e2fs_gcount; in ext2_dirpref()
631 cgsize = fs->e2fs_fsize * fs->e2fs_fpg; in ext2_dirpref()
903 inodes_per_block = fs->e2fs_bsize/EXT2_INODE_SIZE(fs); in ext2_cg_block_bitmap_init()
917 ext2_mark_bitmap_end(fs->e2fs_bpg, fs->e2fs_bsize * 8, in ext2_cg_block_bitmap_init()
1256 fs->e2fs_bsize / EXT2_INODE_SIZE(fs)); in ext2_zero_inode_table()
[all …]
H A Dfs.h104 #define fsbtodb(fs, b) ((daddr_t)(b) << (fs)->e2fs_fsbtodb) argument
105 #define dbtofsb(fs, b) ((b) >> (fs)->e2fs_fsbtodb) argument
108 #define ino_to_cg(fs, x) (((x) - 1) / (fs->e2fs_ipg)) argument
112 (e2fs_gd_get_i_tables(&(fs)->e2fs_gd[ino_to_cg((fs), (x))]) + \
113 (((x) - 1) % (fs)->e2fs_ipg) / (fs)->e2fs_ipb)
116 #define ino_to_fsbo(fs, x) ((x-1) % (fs->e2fs_ipb)) argument
122 #define dtog(fs, d) (((d) - le32toh(fs->e2fs->e2fs_first_dblock)) / \ argument
154 ((off_t)(b) * ((fs)->e2fs_fsize >> (fs)->e2fs_fsbtodb))
168 #define blksize(fs, ip, lbn) ((fs)->e2fs_fsize) argument
173 #define INOPB(fs) (fs->e2fs_ipb) argument
[all …]
H A Dext2_vfsops.c494 fs->e2fs_bsize = 1U << fs->e2fs_bshift; in ext2_compute_sb_data()
496 fs->e2fs_qbmask = fs->e2fs_bsize - 1; in ext2_compute_sb_data()
507 if (fs->e2fs_fsize != fs->e2fs_bsize) { in ext2_compute_sb_data()
513 fs->e2fs_fpb = fs->e2fs_bsize / fs->e2fs_fsize; in ext2_compute_sb_data()
568 if (fs->e2fs_bpg != fs->e2fs_bsize * 8) { in ext2_compute_sb_data()
574 fs->e2fs_ipb = fs->e2fs_bsize / EXT2_INODE_SIZE(fs); in ext2_compute_sb_data()
583 if (fs->e2fs_ipg < fs->e2fs_ipb || fs->e2fs_ipg > fs->e2fs_bsize * 8) { in ext2_compute_sb_data()
589 fs->e2fs_itpg = fs->e2fs_ipg / fs->e2fs_ipb; in ext2_compute_sb_data()
599 if (fs->e2fs_rbcount > fs->e2fs_bcount || in ext2_compute_sb_data()
600 fs->e2fs_fbcount > fs->e2fs_bcount) { in ext2_compute_sb_data()
[all …]
H A Dext2_csum.c77 fs->e2fs_csum_seed = le32toh(fs->e2fs->e4fs_chksum_seed); in ext2_sb_csum_set_seed()
79 fs->e2fs_csum_seed = calculate_crc32c(~0, fs->e2fs->e2fs_uuid, in ext2_sb_csum_set_seed()
100 fs->e2fs_fsmnt, le32toh(fs->e2fs->e4fs_sbchksum), in ext2_sb_csum_verify()
132 fs = ip->i_e2fs; in ext2_is_dirent_tail()
181 fs = ip->i_e2fs; in ext2_dirent_csum()
249 fs = ip->i_e2fs; in ext2_dx_csum()
302 fs = ip->i_e2fs; in ext2_dir_blk_csum_verify()
326 fs = ip->i_e2fs; in ext2_dirent_csum_set()
715 ext2_gd_csum(fs, i, &fs->e2fs_gd[i])) { in ext2_gd_csum_verify()
719 ext2_gd_csum(fs, i, &fs->e2fs_gd[i])); in ext2_gd_csum_verify()
[all …]
/dragonfly/sbin/fsck/
H A Dpass5.c48 struct fs *fs = &sblock; in pass5() local
86 if (CGSIZE(fs) > fs->fs_bsize) { in pass5()
95 fragroundup(fs, CGSIZE(fs)); in pass5()
128 howmany(fs->fs_cpg * fs->fs_spc / NSPF(fs), NBBY); in pass5()
138 howmany(fs->fs_cpg * fs->fs_spc / NSPB(fs), NBBY); in pass5()
159 j = blknum(fs, fs->fs_size + fs->fs_frag - 1); in pass5()
169 getblk(&cgblk, cgtod(fs, c), fs->fs_cgsize); in pass5()
179 newcg->cg_ncyl = fs->fs_ncyl % fs->fs_cpg; in pass5()
239 d += fs->fs_frag, i += fs->fs_frag) { in pass5()
251 cg_blks(fs, newcg, j)[cbtorpos(fs, i)]++; in pass5() local
[all …]
/dragonfly/contrib/gcc-8.0/libgcc/soft-fp/
H A Dop-common.h44 ? (_FP_FRAC_HIGH_RAW_##fs (X) & _FP_QNANBIT_##fs) \
45 : !(_FP_FRAC_HIGH_RAW_##fs (X) & _FP_QNANBIT_##fs))
48 ? (_FP_FRAC_HIGH_##fs (X) & _FP_QNANBIT_SH_##fs) \
49 : !(_FP_FRAC_HIGH_##fs (X) & _FP_QNANBIT_SH_##fs))
60 _FP_FRAC_HIGH_RAW_##fs (X) |= _FP_IMPLBIT_##fs; \
182 _FP_FRAC_HIGH_RAW_##fs (X) &= _FP_QNANBIT_##fs - 1; \
190 _FP_FRAC_HIGH_RAW_##fs (X) |= _FP_QNANBIT_##fs; \
198 _FP_FRAC_HIGH_##fs (X) &= _FP_QNANBIT_SH_##fs - 1; \
207 _FP_FRAC_HIGH_##fs (X) |= _FP_QNANBIT_SH_##fs; \
1557 (_FP_FRACBITS_##fs + _FP_EXPBIAS_##fs - 1 \
[all …]
/dragonfly/contrib/gcc-4.7/libgcc/soft-fp/
H A Dop-common.h46 _FP_FRAC_HIGH_RAW_##fs(X) |= _FP_IMPLBIT_##fs; \
75 if (!(_FP_FRAC_HIGH_RAW_##fs(X) & _FP_QNANBIT_##fs)) \
113 && !(_FP_FRAC_HIGH_##fs(X) & _FP_QNANBIT_SH_##fs)) \
158 _FP_FRAC_HIGH_RAW_##fs(X) |= _FP_QNANBIT_##fs; \
270 _FP_FRAC_HIGH_RAW_##fs(X) |= _FP_QNANBIT_##fs; \
284 && !(_FP_FRAC_HIGH_RAW_##fs(X) & _FP_QNANBIT_##fs)) \
341 _FP_FRAC_HIGH_##fs(Y) |= _FP_IMPLBIT_SH_##fs; \
392 _FP_FRAC_HIGH_##fs(X) |= _FP_IMPLBIT_SH_##fs; \
522 _FP_FRAC_HIGH_##fs(Y) |= _FP_IMPLBIT_SH_##fs; \
574 _FP_FRAC_HIGH_##fs(X) |= _FP_IMPLBIT_SH_##fs; \
[all …]
/dragonfly/stand/lib/
H A Ddosfs.c117 #define blkoff(fs, b) (secbyt((fs)->lsndta) + blkbyt(fs, (b) - LOCLUS)) argument
120 #define blklsn(fs, b) ((fs)->lsndta + blksec(fs, (b) - LOCLUS)) argument
235 f->fs = fs; in dos_open()
341 fs = f->fs; in dos_close()
459 if (!(fs->spc = bs->bpb.spc) || fs->spc & (fs->spc - 1)) in parsebs()
461 fs->bsize = secbyt(fs->spc); in parsebs()
462 fs->bshift = ffs(fs->bsize) - 1; in parsebs()
478 fs->lsndir = fs->lsnfat + fs->spf * bs->bpb.fats; in parsebs()
479 fs->lsndta = fs->lsndir + entsec(fs->dirents); in parsebs()
484 if ((fs->xclus = secblk(fs, sc - fs->lsndta) + 1) < LOCLUS) in parsebs()
[all …]
H A Dext2fs.c144 ino_to_bgo(fs, ino) / (fs)->fs_ipb))
145 #define ino_to_bo(fs, ino) (ino_to_bgo(fs, ino) % (fs)->fs_ipb) argument
364 fs->fs_bsize = 1 << fs->fs_bshift; in ext2fs_open()
365 fs->fs_bmask = fs->fs_bsize - 1; in ext2fs_open()
368 fs->fs_fsize = 1 << fs->fs_fshift; in ext2fs_open()
369 fs->fs_fmask = fs->fs_fsize - 1; in ext2fs_open()
375 fs->fs_isize = fs->fs_fd.fd_isize; in ext2fs_open()
376 fs->fs_firstino = fs->fs_fd.fd_firstino; in ext2fs_open()
378 fs->fs_imask = fs->fs_isize - 1; in ext2fs_open()
379 fs->fs_ipb = fs->fs_bsize / fs->fs_isize; in ext2fs_open()
[all …]
/dragonfly/contrib/gcc-4.7/libgcc/config/i386/
H A Ddragonfly-unwind.h52 fs->regs.cfa_how = CFA_REG_OFFSET; in x86_64_dragonfly_fallback_frame_state()
54 fs->regs.cfa_reg = 7; in x86_64_dragonfly_fallback_frame_state()
58 fs->regs.reg[0].how = REG_SAVED_OFFSET; in x86_64_dragonfly_fallback_frame_state()
60 fs->regs.reg[1].how = REG_SAVED_OFFSET; in x86_64_dragonfly_fallback_frame_state()
62 fs->regs.reg[2].how = REG_SAVED_OFFSET; in x86_64_dragonfly_fallback_frame_state()
90 fs->retaddr_column = 16; in x86_64_dragonfly_fallback_frame_state()
91 fs->signal_frame = 1; in x86_64_dragonfly_fallback_frame_state()
133 fs->regs.cfa_how = CFA_REG_OFFSET; in x86_dragonfly_fallback_frame_state()
134 fs->regs.cfa_reg = 4; in x86_dragonfly_fallback_frame_state()
154 fs->retaddr_column = 8; in x86_dragonfly_fallback_frame_state()
[all …]
/dragonfly/contrib/gcc-8.0/libgcc/config/i386/
H A Ddragonfly-unwind.h99 fs->regs.cfa_how = CFA_REG_OFFSET; in x86_64_dragonfly_fallback_frame_state()
101 fs->regs.cfa_reg = 7; in x86_64_dragonfly_fallback_frame_state()
105 fs->regs.reg[0].how = REG_SAVED_OFFSET; in x86_64_dragonfly_fallback_frame_state()
107 fs->regs.reg[1].how = REG_SAVED_OFFSET; in x86_64_dragonfly_fallback_frame_state()
109 fs->regs.reg[2].how = REG_SAVED_OFFSET; in x86_64_dragonfly_fallback_frame_state()
137 fs->retaddr_column = 16; in x86_64_dragonfly_fallback_frame_state()
138 fs->signal_frame = 1; in x86_64_dragonfly_fallback_frame_state()
180 fs->regs.cfa_how = CFA_REG_OFFSET; in x86_dragonfly_fallback_frame_state()
181 fs->regs.cfa_reg = 4; in x86_dragonfly_fallback_frame_state()
201 fs->retaddr_column = 8; in x86_dragonfly_fallback_frame_state()
[all …]
/dragonfly/usr.sbin/fstyp/
H A Dufs.c64 struct fs *fs; in fstyp_ufs() local
74 fs = (struct fs *)read_buf(fp, superblock, SBLOCKSIZE); in fstyp_ufs()
84 if (fs->fs_magic == FS_UFS1_MAGIC && fs->fs_fsize > 0 && in fstyp_ufs()
85 ((pp->mediasize / fs->fs_fsize == fs->fs_old_size) || in fstyp_ufs()
89 ((pp->mediasize / fs->fs_fsize == fs->fs_size) || in fstyp_ufs()
93 g_free(fs); in fstyp_ufs()
97 if (fs->fs_magic == FS_UFS1_MAGIC && fs->fs_fsize > 0) { in fstyp_ufs()
102 free(fs); in fstyp_ufs()
112 (size_t)fs->fs_bsize < sizeof(struct fs)) { in fstyp_ufs()
113 free(fs); in fstyp_ufs()
[all …]
/dragonfly/sbin/ipfw3/
H A Dipfw3dummynet.c198 pipe.fs.qsize = getbw(av[0], &pipe.fs.flags_fs, 1024); in config_dummynet()
401 if (pipe.fs.min_th >= pipe.fs.max_th) in config_dummynet()
403 pipe.fs.min_th, pipe.fs.max_th); in config_dummynet()
549 for (fs = next; nbytes >= sizeof(*fs); fs = next) { in show_pipes()
554 l = sizeof(*fs) + fs->rq_elements * sizeof(*q); in show_pipes()
559 fs->fs_nr, fs->weight, fs->parent_nr); in show_pipes()
572 fs->flow_mask.u.ip.src_ip, fs->flow_mask.u.ip.src_port, in show_queues()
573 fs->flow_mask.u.ip.dst_ip, fs->flow_mask.u.ip.dst_port); in show_queues()
614 l = fs->qsize; in show_flowset_parms()
622 if (fs->plr) in show_flowset_parms()
[all …]
/dragonfly/sys/net/dummynet/
H A Dip_dummynet.c547 struct dn_flow_set *fs = q->fs; in ready_event_wfq() local
744 if (fs->rq_elements > fs->rq_size * dn_max_ratio && in create_queue()
758 q->fs = fs; in create_queue()
1013 fs = &p->fs; in dn_locate_flowset()
1063 fs->parent_nr, fs->fs_nr); in dummynet_io()
1078 if (fs->plr && krandom() < fs->plr) in dummynet_io()
1236 if (fs->pipe == NULL || (fs->pipe && fs != &fs->pipe->fs)) in purge_flow_set()
1685 fs = dn_find_flowset(ioc_pipe->fs.fs_nr); in delete_pipe()
1694 p->sum -= fs->weight * fs->backlogged; in delete_pipe()
1747 if (q->fs != fs) { /* XXX ASSERT */ in dn_copy_flowqueues()
[all …]
/dragonfly/sys/net/dummynet3/
H A Dip_dummynet3.c566 struct dn_flow_set *fs = q->fs; in ready_event_wfq() local
777 q->fs = fs; in create_queue()
1032 fs = &p->fs; in dn_locate_flowset()
1082 fs->parent_nr, fs->fs_nr); in dummynet_io()
1097 if (fs->plr && krandom() < fs->plr) in dummynet_io()
1255 if (fs->pipe == NULL || (fs->pipe && fs != &fs->pipe->fs)) in purge_flow_set()
1556 x = fs; in config_pipe()
1673 fs = dn_find_flowset(ioc_pipe->fs.fs_nr); in delete_pipe()
1681 p->sum -= fs->weight * fs->backlogged; in delete_pipe()
1726 if (q->fs != fs) { /* XXX ASSERT */ in dn_copy_flowqueues()
[all …]
/dragonfly/usr.sbin/quotaon/
H A Dquotaon.c69 struct fstab *fs; in main() local
108 while ((fs = getfsent()) != NULL) { in main()
109 if (strcmp(fs->fs_vfstype, "ufs") || in main()
110 strcmp(fs->fs_type, FSTAB_RW)) in main()
149 if (strcmp(fs->fs_file, "/") && readonly(fs)) in quotaonoff()
153 warn("%s", fs->fs_file); in quotaonoff()
162 warn("%s", fs->fs_file); in quotaonoff()
201 strcpy(buf, fs->fs_mntops); in hasquota()
225 readonly(struct fstab *fs) in readonly() argument
229 if (statfs(fs->fs_file, &fsbuf) < 0 || in readonly()
[all …]

12345678910>>...13