Home
last modified time | relevance | path

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

12345678910>>...51

/freebsd-12-stable/sys/vm/
Dvm_fault.c134 static void vm_fault_dontneed(const struct faultstate *fs, vm_offset_t vaddr,
136 static void vm_fault_prefault(const struct faultstate *fs, vm_offset_t addra,
152 release_page(struct faultstate *fs) in release_page() argument
155 if (fs->m != NULL) { in release_page()
156 vm_page_xunbusy(fs->m); in release_page()
157 vm_page_lock(fs->m); in release_page()
158 vm_page_deactivate(fs->m); in release_page()
159 vm_page_unlock(fs->m); in release_page()
160 fs->m = NULL; in release_page()
165 unlock_map(struct faultstate *fs) in unlock_map() argument
[all …]
/freebsd-12-stable/usr.sbin/makefs/ffs/
Dffs_alloc.c71 static int32_t ffs_mapsearch(struct fs *, struct cg *, daddr_t, int);
96 struct fs *fs = ip->i_fs; in ffs_alloc() local
101 if (size > fs->fs_bsize || fragoff(fs, size) != 0) { in ffs_alloc()
103 fs->fs_bsize, size); in ffs_alloc()
105 if (size == fs->fs_bsize && fs->fs_cstotal.cs_nbfree == 0) in ffs_alloc()
107 if (bpref >= fs->fs_size) in ffs_alloc()
110 cg = ino_to_cg(fs, ip->i_number); in ffs_alloc()
112 cg = dtog(fs, bpref); in ffs_alloc()
156 struct fs *fs; in ffs_blkpref_ufs1() local
160 fs = ip->i_fs; in ffs_blkpref_ufs1()
[all …]
/freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/
Dlcode.c36 void luaK_nil (FuncState *fs, int from, int n) { in luaK_nil() argument
39 if (fs->pc > fs->lasttarget) { /* no jumps to current position? */ in luaK_nil()
40 previous = &fs->f->code[fs->pc-1]; in luaK_nil()
54 luaK_codeABC(fs, OP_LOADNIL, from, n - 1, 0); /* else no optimization */ in luaK_nil()
58 int luaK_jump (FuncState *fs) { in luaK_jump() argument
59 int jpc = fs->jpc; /* save list of jumps to here */ in luaK_jump()
61 fs->jpc = NO_JUMP; in luaK_jump()
62 j = luaK_codeAsBx(fs, OP_JMP, 0, NO_JUMP); in luaK_jump()
63 luaK_concat(fs, &j, jpc); /* keep them on hold */ in luaK_jump()
68 void luaK_ret (FuncState *fs, int first, int nret) { in luaK_ret() argument
[all …]
Dlparser.c61 lua_assert(ls->fs != NULL || ls->t.token == TK_EOS); in anchor_token()
82 static l_noret errorlimit (FuncState *fs, int limit, const char *what) { in errorlimit() argument
83 lua_State *L = fs->ls->L; in errorlimit()
85 int line = fs->f->linedefined; in errorlimit()
91 luaX_syntaxerror(fs->ls, msg); in errorlimit()
95 static void checklimit (FuncState *fs, int v, int l, const char *what) { in checklimit() argument
96 if (v > l) errorlimit(fs, l, what); in checklimit()
155 init_exp(e, VK, luaK_stringK(ls->fs, s)); in codestring()
165 FuncState *fs = ls->fs; in registerlocalvar() local
166 Proto *f = fs->f; in registerlocalvar()
[all …]
Dlcode.h39 #define getcode(fs,e) ((fs)->f->code[(e)->u.info]) argument
41 #define luaK_codeAsBx(fs,o,A,sBx) luaK_codeABx(fs,o,A,(sBx)+MAXARG_sBx) argument
43 #define luaK_setmultret(fs,e) luaK_setreturns(fs, e, LUA_MULTRET) argument
45 #define luaK_jumpto(fs,t) luaK_patchlist(fs, luaK_jump(fs), t) argument
47 LUAI_FUNC int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx);
48 LUAI_FUNC int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C);
49 LUAI_FUNC int luaK_codek (FuncState *fs, int reg, int k);
50 LUAI_FUNC void luaK_fixline (FuncState *fs, int line);
51 LUAI_FUNC void luaK_nil (FuncState *fs, int from, int n);
52 LUAI_FUNC void luaK_reserveregs (FuncState *fs, int n);
[all …]
/freebsd-12-stable/contrib/lua/src/
Dlcode.c64 void luaK_nil (FuncState *fs, int from, int n) { in luaK_nil() argument
67 if (fs->pc > fs->lasttarget) { /* no jumps to current position? */ in luaK_nil()
68 previous = &fs->f->code[fs->pc-1]; in luaK_nil()
82 luaK_codeABC(fs, OP_LOADNIL, from, n - 1, 0); /* else no optimization */ in luaK_nil()
90 static int getjump (FuncState *fs, int pc) { in getjump() argument
91 int offset = GETARG_sBx(fs->f->code[pc]); in getjump()
103 static void fixjump (FuncState *fs, int pc, int dest) { in fixjump() argument
104 Instruction *jmp = &fs->f->code[pc]; in fixjump()
108 luaX_syntaxerror(fs->ls, "control structure too long"); in fixjump()
116 void luaK_concat (FuncState *fs, int *l1, int l2) { in luaK_concat() argument
[all …]
Dlparser.c79 static l_noret errorlimit (FuncState *fs, int limit, const char *what) { in errorlimit() argument
80 lua_State *L = fs->ls->L; in errorlimit()
82 int line = fs->f->linedefined; in errorlimit()
88 luaX_syntaxerror(fs->ls, msg); in errorlimit()
92 static void checklimit (FuncState *fs, int v, int l, const char *what) { in checklimit() argument
93 if (v > l) errorlimit(fs, l, what); in checklimit()
152 init_exp(e, VK, luaK_stringK(ls->fs, s)); in codestring()
162 FuncState *fs = ls->fs; in registerlocalvar() local
163 Proto *f = fs->f; in registerlocalvar()
165 luaM_growvector(ls->L, f->locvars, fs->nlocvars, f->sizelocvars, in registerlocalvar()
[all …]
/freebsd-12-stable/lib/libnandfs/
Dnandfs.c65 #define NANDFS_ASSERT_VALID(fs) assert((fs)->n_flags & NANDFS_IS_VALID) argument
66 #define NANDFS_ASSERT_VALID_DEV(fs) \ argument
67 assert(((fs)->n_flags & (NANDFS_IS_VALID | NANDFS_IS_OPENED_DEV)) == \
71 nandfs_iserror(struct nandfs *fs) in nandfs_iserror() argument
74 NANDFS_ASSERT_VALID(fs); in nandfs_iserror()
76 return (fs->n_flags & NANDFS_IS_ERROR); in nandfs_iserror()
80 nandfs_errmsg(struct nandfs *fs) in nandfs_errmsg() argument
83 NANDFS_ASSERT_VALID(fs); in nandfs_errmsg()
85 assert(nandfs_iserror(fs)); in nandfs_errmsg()
86 assert(fs->n_errmsg); in nandfs_errmsg()
[all …]
/freebsd-12-stable/contrib/amd/amd/
Dsrvr_amfs_auto.c63 fserver *fs = localhost; in amfs_generic_find_srvr() local
65 if (!fs) { in amfs_generic_find_srvr()
66 fs = ALLOC(struct fserver); in amfs_generic_find_srvr()
67 fs->fs_refc = 0; in amfs_generic_find_srvr()
68 fs->fs_host = xstrdup("localhost"); in amfs_generic_find_srvr()
69 fs->fs_ip = NULL; in amfs_generic_find_srvr()
70 fs->fs_cid = 0; in amfs_generic_find_srvr()
71 fs->fs_pinger = AM_PINGER; in amfs_generic_find_srvr()
72 fs->fs_flags = FSF_VALID | FSF_PING_UNINIT; in amfs_generic_find_srvr()
73 fs->fs_type = "local"; in amfs_generic_find_srvr()
[all …]
Dsrvr_nfs.c119 flush_srvr_nfs_cache(fserver *fs) in flush_srvr_nfs_cache() argument
124 if (fs == NULL || fs == fs2) { in flush_srvr_nfs_cache()
187 fserver *fs = NULL; in got_portmap() local
192 ITER(fs, fserver, &nfs_srvr_list) in got_portmap()
193 if (fs == fs2) in got_portmap()
196 if (fs == fs2) { in got_portmap()
199 nfs_private *np = (nfs_private *) fs->fs_private; in got_portmap()
202 dlog("got port (%d) for mountd on %s", (int) port, fs->fs_host); in got_portmap()
213 dlog("Error fetching port for mountd on %s", fs->fs_host); in got_portmap()
221 if (fs->fs_flags & FSF_WANT) in got_portmap()
[all …]
/freebsd-12-stable/lib/libufs/
Dcgroup.c56 struct fs *fs; in cgballoc() local
59 fs = &disk->d_fs; in cgballoc()
62 for (bno = 0; bno < fs->fs_fpg / fs->fs_frag; bno++) in cgballoc()
63 if (ffs_isblock(fs, blksfree, bno)) in cgballoc()
67 fs->fs_cs(fs, cgp->cg_cgx).cs_nbfree--; in cgballoc()
68 ffs_clrblock(fs, blksfree, (long)bno); in cgballoc()
69 ffs_clusteracct(fs, cgp, bno, -1); in cgballoc()
71 fs->fs_cstotal.cs_nbfree--; in cgballoc()
72 fs->fs_fmod = 1; in cgballoc()
73 return (cgbase(fs, cgp->cg_cgx) + blkstofrags(fs, bno)); in cgballoc()
[all …]
/freebsd-12-stable/sys/fs/ext2fs/
Dext2_alloc.c106 struct m_ext2fs *fs; in ext2_alloc() local
112 fs = ip->i_e2fs; in ext2_alloc()
116 if ((u_int)size > fs->e2fs_bsize || blkoff(fs, size) != 0) { in ext2_alloc()
118 (long unsigned int)fs->e2fs_bsize, size, fs->e2fs_fsmnt); in ext2_alloc()
124 if (size == fs->e2fs_bsize && fs->e2fs_fbcount == 0) in ext2_alloc()
127 fs->e2fs_fbcount < fs->e2fs_rbcount) in ext2_alloc()
129 if (bpref >= fs->e2fs_bcount) in ext2_alloc()
132 cg = ino_to_cg(fs, ip->i_number); in ext2_alloc()
134 cg = dtog(fs, bpref); in ext2_alloc()
135 bno = (daddr_t)ext2_hashalloc(ip, cg, bpref, fs->e2fs_bsize, in ext2_alloc()
[all …]
Dext2_vfsops.c113 struct ext2fs * es, struct m_ext2fs * fs);
131 struct m_ext2fs *fs; in ext2_mount() local
159 fs = ump->um_e2fs; in ext2_mount()
161 if (fs->e2fs_ronly == 0 && in ext2_mount()
170 if (error == 0 && fs->e2fs_wasvalid && in ext2_mount()
172 fs->e2fs->e2fs_state |= E2FS_ISCLEAN; in ext2_mount()
175 fs->e2fs_ronly = 1; in ext2_mount()
186 if (fs->e2fs_ronly && !vfs_flagopt(opts, "ro", NULL, 0)) { in ext2_mount()
187 if (ext2_check_sb_compat(fs->e2fs, devvp->v_rdev, 0)) in ext2_mount()
210 if ((fs->e2fs->e2fs_state & E2FS_ISCLEAN) == 0 || in ext2_mount()
[all …]
Dfs.h103 #define fsbtodb(fs, b) ((daddr_t)(b) << (fs)->e2fs_fsbtodb) argument
104 #define dbtofsb(fs, b) ((b) >> (fs)->e2fs_fsbtodb) argument
107 #define ino_to_cg(fs, x) (((x) - 1) / (fs->e2fs_ipg)) argument
110 #define ino_to_fsba(fs, x) \ argument
111 (e2fs_gd_get_i_tables(&(fs)->e2fs_gd[ino_to_cg((fs), (x))]) + \
112 (((x) - 1) % (fs)->e2fs->e2fs_ipg) / (fs)->e2fs_ipb)
115 #define ino_to_fsbo(fs, x) ((x-1) % (fs->e2fs_ipb)) argument
121 #define dtog(fs, d) (((d) - fs->e2fs->e2fs_first_dblock) / \ argument
122 EXT2_BLOCKS_PER_GROUP(fs))
123 #define dtogd(fs, d) (((d) - fs->e2fs->e2fs_first_dblock) % \ argument
[all …]
Dext2_csum.c76 ext2_sb_csum_set_seed(struct m_ext2fs *fs) in ext2_sb_csum_set_seed() argument
79 if (EXT2_HAS_INCOMPAT_FEATURE(fs, EXT2F_INCOMPAT_CSUM_SEED)) in ext2_sb_csum_set_seed()
80 fs->e2fs_csum_seed = fs->e2fs->e4fs_chksum_seed; in ext2_sb_csum_set_seed()
81 else if (EXT2_HAS_RO_COMPAT_FEATURE(fs, EXT2F_ROCOMPAT_METADATA_CKSUM)) { in ext2_sb_csum_set_seed()
82 fs->e2fs_csum_seed = calculate_crc32c(~0, fs->e2fs->e2fs_uuid, in ext2_sb_csum_set_seed()
83 sizeof(fs->e2fs->e2fs_uuid)); in ext2_sb_csum_set_seed()
86 fs->e2fs_csum_seed = 0; in ext2_sb_csum_set_seed()
90 ext2_sb_csum_verify(struct m_ext2fs *fs) in ext2_sb_csum_verify() argument
93 if (fs->e2fs->e4fs_chksum_type != EXT4_CRC32C_CHKSUM) { in ext2_sb_csum_verify()
95 "WARNING: mount of %s denied due bad sb csum type\n", fs->e2fs_fsmnt); in ext2_sb_csum_verify()
[all …]
/freebsd-12-stable/sys/ufs/ffs/
Dffs_subr.c85 struct fs *fs; in ffs_blkatoff() local
91 fs = ITOFS(ip); in ffs_blkatoff()
92 lbn = lblkno(fs, offset); in ffs_blkatoff()
93 bsize = blksize(fs, ip, lbn); in ffs_blkatoff()
102 *res = (char *)bp->b_data + blkoff(fs, offset); in ffs_blkatoff()
112 ffs_load_inode(struct buf *bp, struct inode *ip, struct fs *fs, ino_t ino) in ffs_load_inode() argument
117 *((struct ufs1_dinode *)bp->b_data + ino_to_fsbo(fs, ino)); in ffs_load_inode()
127 *((struct ufs2_dinode *)bp->b_data + ino_to_fsbo(fs, ino)); in ffs_load_inode()
145 struct fs *fs; in ffs_check_blkno() local
153 fs = ump->um_fs; in ffs_check_blkno()
[all …]
Dfs.h275 struct fs { struct
387 CTASSERT(sizeof(struct fs) == 1376);
493 #define ACTIVECGNUM(fs, cg) ((fs)->fs_active[(cg) / (NBBY * sizeof(int))]) argument
495 #define ACTIVESET(fs, cg) do { \ argument
496 if ((fs)->fs_active) \
497 ACTIVECGNUM((fs), (cg)) |= ACTIVECGOFF((cg)); \
499 #define ACTIVECLEAR(fs, cg) do { \ argument
500 if ((fs)->fs_active) \
501 ACTIVECGNUM((fs), (cg)) &= ~ACTIVECGOFF((cg)); \
510 #define CGSIZE(fs) \ argument
[all …]
Dffs_alloc.c111 static void ffs_blkfree_cg(struct ufsmount *, struct fs *,
125 static ufs1_daddr_t ffs_mapsearch(struct fs *, struct cg *, ufs2_daddr_t, int);
157 struct fs *fs; local
168 fs = ump->um_fs;
171 if ((u_int)size > fs->fs_bsize || fragoff(fs, size) != 0) {
173 devtoname(ump->um_dev), (long)fs->fs_bsize, size,
174 fs->fs_fsmnt);
189 if (size == fs->fs_bsize && fs->fs_cstotal.cs_nbfree == 0)
192 freespace(fs, fs->fs_minfree) - numfrags(fs, size) < 0)
194 if (bpref >= fs->fs_size)
[all …]
Dffs_vfsops.c87 static void ffs_oldfscompat_read(struct fs *, struct ufsmount *,
155 struct fs *fs; in ffs_mount() local
246 fs = ump->um_fs; in ffs_mount()
260 if (fs->fs_ronly == 0 && in ffs_mount()
286 if (fs->fs_pendingblocks != 0 || in ffs_mount()
287 fs->fs_pendinginodes != 0) { in ffs_mount()
289 "files %d\n", fs->fs_fsmnt, in ffs_mount()
290 (intmax_t)fs->fs_pendingblocks, in ffs_mount()
291 fs->fs_pendinginodes); in ffs_mount()
292 fs->fs_pendingblocks = 0; in ffs_mount()
[all …]
/freebsd-12-stable/stand/libsa/
Dnandfs.c125 #define NINDIR(fs) ((fs)->nf_blocksize / sizeof(nandfs_daddr_t)) argument
195 nandfs_find_super_block(struct nandfs *fs, struct open_file *f) in nandfs_find_super_block() argument
201 sb = malloc(fs->nf_sectorsize); in nandfs_find_super_block()
205 memset(fs->nf_sb, 0, sizeof(*fs->nf_sb)); in nandfs_find_super_block()
207 sectors_to_read = (NANDFS_NFSAREAS * fs->nf_fsdata->f_erasesize) / in nandfs_find_super_block()
208 fs->nf_sectorsize; in nandfs_find_super_block()
211 i * fs->nf_sectorsize); in nandfs_find_super_block()
212 error = ioread(f, i * fs->nf_sectorsize, (char *)sb, in nandfs_find_super_block()
213 fs->nf_sectorsize); in nandfs_find_super_block()
218 n = fs->nf_sectorsize / sizeof(struct nandfs_super_block); in nandfs_find_super_block()
[all …]
/freebsd-12-stable/contrib/gcc/config/i386/
Dlinux-unwind.h44 _Unwind_FrameState *fs) in x86_64_fallback_frame_state() argument
64 fs->cfa_how = CFA_REG_OFFSET; in x86_64_fallback_frame_state()
66 fs->cfa_reg = 7; in x86_64_fallback_frame_state()
67 fs->cfa_offset = new_cfa - (long) context->cfa; in x86_64_fallback_frame_state()
70 fs->regs.reg[0].how = REG_SAVED_OFFSET; in x86_64_fallback_frame_state()
71 fs->regs.reg[0].loc.offset = (long)&sc->rax - new_cfa; in x86_64_fallback_frame_state()
72 fs->regs.reg[1].how = REG_SAVED_OFFSET; in x86_64_fallback_frame_state()
73 fs->regs.reg[1].loc.offset = (long)&sc->rdx - new_cfa; in x86_64_fallback_frame_state()
74 fs->regs.reg[2].how = REG_SAVED_OFFSET; in x86_64_fallback_frame_state()
75 fs->regs.reg[2].loc.offset = (long)&sc->rcx - new_cfa; in x86_64_fallback_frame_state()
[all …]
/freebsd-12-stable/tests/sys/cddl/zfs/tests/delegate/
Ddelegate_common.kshlib211 typeset fs=$3
216 verify_fs_create $user $perm $fs
220 verify_fs_destroy $user $perm $fs
224 verify_fs_snapshot $user $perm $fs
228 verify_fs_rollback $user $perm $fs
232 verify_fs_clone $user $perm $fs
236 verify_fs_rename $user $perm $fs
240 verify_fs_mount $user $perm $fs
244 verify_fs_share $user $perm $fs
248 verify_fs_mountpoint $user $perm $fs
[all …]
/freebsd-12-stable/contrib/gcc/config/soft-fp/
Dop-common.h42 #define _FP_UNPACK_CANONICAL(fs, wc, X) \ argument
47 _FP_FRAC_HIGH_RAW_##fs(X) |= _FP_IMPLBIT_##fs; \
49 X##_e -= _FP_EXPBIAS_##fs; \
61 _shift -= _FP_FRACXBITS_##fs; \
63 X##_e -= _FP_EXPBIAS_##fs - 1 + _shift; \
69 case _FP_EXPMAX_##fs: \
76 if (!(_FP_FRAC_HIGH_RAW_##fs(X) & _FP_QNANBIT_##fs)) \
86 #define _FP_UNPACK_SEMIRAW(fs, wc, X) _FP_FRAC_SLL_##wc(X, _FP_WORKBITS) argument
90 #define _FP_OVERFLOW_SEMIRAW(fs, wc, X) \ argument
96 X##_e = _FP_EXPMAX_##fs; \
[all …]
/freebsd-12-stable/contrib/subversion/subversion/libsvn_fs_x/
Dutil.c56 svn_fs_x__is_packed_rev(svn_fs_t *fs, svn_revnum_t rev) in svn_fs_x__is_packed_rev() argument
58 svn_fs_x__data_t *ffd = fs->fsap_data; in svn_fs_x__is_packed_rev()
65 svn_fs_x__is_packed_revprop(svn_fs_t *fs, svn_revnum_t rev) in svn_fs_x__is_packed_revprop() argument
67 svn_fs_x__data_t *ffd = fs->fsap_data; in svn_fs_x__is_packed_revprop()
74 svn_fs_x__packed_base_rev(svn_fs_t *fs, svn_revnum_t rev) in svn_fs_x__packed_base_rev() argument
76 svn_fs_x__data_t *ffd = fs->fsap_data; in svn_fs_x__packed_base_rev()
84 svn_fs_x__pack_size(svn_fs_t *fs, svn_revnum_t rev) in svn_fs_x__pack_size() argument
86 svn_fs_x__data_t *ffd = fs->fsap_data; in svn_fs_x__pack_size()
92 svn_fs_x__path_format(svn_fs_t *fs, in svn_fs_x__path_format() argument
95 return svn_dirent_join(fs->path, PATH_FORMAT, result_pool); in svn_fs_x__path_format()
[all …]
/freebsd-12-stable/sbin/fsck_ffs/
Dgjournal.c95 static struct fs *fs = NULL; variable
109 assert(diskp != NULL && fs != NULL); in getcg()
185 assert(diskp != NULL && fs != NULL); in putcgs()
210 assert(diskp != NULL && fs != NULL);
234 fs = &diskp->d_fs; in opendisk()
244 fs->fs_clean = 1; in closedisk()
250 fs = NULL; in closedisk()
262 cg = dtog(fs, bno); in blkfree()
266 cgbno = dtogd(fs, bno); in blkfree()
268 if (size == fs->fs_bsize) { in blkfree()
[all …]

12345678910>>...51