Home
last modified time | relevance | path

Searched refs:mf (Results 1 – 25 of 245) sorted by relevance

12345678910

/freebsd-10-stable/contrib/amd/amd/
Dmntfs.c62 dup_mntfs(mntfs *mf) in dup_mntfs() argument
64 if (mf->mf_refc == 0) { in dup_mntfs()
65 if (mf->mf_cid) in dup_mntfs()
66 untimeout(mf->mf_cid); in dup_mntfs()
67 mf->mf_cid = 0; in dup_mntfs()
69 mf->mf_refc++; in dup_mntfs()
71 return mf; in dup_mntfs()
76 init_mntfs(mntfs *mf, am_ops *ops, am_opts *mo, char *mp, char *info, char *auto_opts, char *mopts,… in init_mntfs() argument
78 mf->mf_ops = ops; in init_mntfs()
79 mf->mf_fsflags = ops->nfs_fs_flags; in init_mntfs()
[all …]
Damfs_nfsl.c57 static int amfs_nfsl_init(mntfs *mf);
58 static int amfs_nfsl_mount(am_node *mp, mntfs *mf);
59 static int amfs_nfsl_umount(am_node *mp, mntfs *mf);
60 static void amfs_nfsl_umounted(mntfs *mf);
61 static fserver *amfs_nfsl_ffserver(mntfs *mf);
135 amfs_nfsl_init(mntfs *mf) in amfs_nfsl_init() argument
138 if (mf->mf_flags & MFF_NFSLINK) { in amfs_nfsl_init()
140 ret = amfs_link_ops.fs_init(mf); in amfs_nfsl_init()
143 ret = nfs_ops.fs_init(mf); in amfs_nfsl_init()
154 amfs_nfsl_mount(am_node *mp, mntfs *mf) in amfs_nfsl_mount() argument
[all …]
Damfs_generic.c87 static am_loc *amfs_lookup_one_location(am_node *new_mp, mntfs *mf, char *ivec,
94 static char *amfs_parse_defaults(am_node *mp, mntfs *mf, char *def_opts);
106 mntfs *mf; in amfs_lookup_node() local
169 mf = new_mp->am_al->al_mnt; in amfs_lookup_node()
170 if (mf->mf_error < 0) in amfs_lookup_node()
177 if (mf->mf_flags & MFF_ERROR) { in amfs_lookup_node()
178 error = mf->mf_error; in amfs_lookup_node()
181 if (!(mf->mf_flags & MFF_MOUNTED) || (mf->mf_flags & MFF_UNMOUNTING)) { in amfs_lookup_node()
191 expanded_fname, mf->mf_mount, in amfs_lookup_node()
192 (mf->mf_flags & MFF_UNMOUNTING) ? "un" : "", mf->mf_flags); in amfs_lookup_node()
[all …]
Dautil.c159 mntfs *mf = mp->am_al->al_mnt; in forcibly_timeout_mp() local
163 if (mf && ((mp->am_flags & AMF_ROOT) || in forcibly_timeout_mp()
164 (mf->mf_flags & (MFF_MOUNTING | MFF_UNMOUNTING)))) { in forcibly_timeout_mp()
170 if (mf->mf_flags & MFF_UNMOUNTING) in forcibly_timeout_mp()
192 mf_mounted(mntfs *mf, bool_t call_free_opts) in mf_mounted() argument
195 int wasmounted = mf->mf_flags & MFF_MOUNTED; in mf_mounted()
203 mf->mf_flags |= MFF_MOUNTED; in mf_mounted()
204 mf->mf_error = 0; in mf_mounted()
209 if (mf->mf_ops->mounted) in mf_mounted()
210 mf->mf_ops->mounted(mf); in mf_mounted()
[all …]
Dmap.c189 mntfs *mf = mp->am_al->al_mnt; in get_ap_child() local
214 (mf->mf_fsflags & FS_DIRECT) in get_ap_child()
701 mntfs *mf; in umount_exported() local
712 mf = mp->am_al->al_mnt; in umount_exported()
713 if (mf->mf_flags & MFF_UNMOUNTING) { in umount_exported()
723 if (!(mf->mf_fsflags & FS_DIRECTORY)) in umount_exported()
733 (mf->mf_flags & MFF_RESTART)) { in umount_exported()
742 if (mf->mf_server && in umount_exported()
743 (mf->mf_server->fs_flags & (FSF_DOWN | FSF_VALID)) != FSF_VALID) in umount_exported()
744 mf->mf_flags &= ~MFF_MKMNT; in umount_exported()
[all …]
Dops_nfs.c103 static int nfs_init(mntfs *mf);
105 static int nfs_mount(am_node *am, mntfs *mf);
106 static int nfs_umount(am_node *am, mntfs *mf);
107 static void nfs_umounted(mntfs *mf);
345 prime_nfs_fhandle_cache(char *path, fserver *fs, am_nfs_handle_t *fhbuf, mntfs *mf) in prime_nfs_fhandle_cache() argument
367 if (mf->mf_flags & MFF_NFS_SCALEDOWN) { in prime_nfs_fhandle_cache()
450 fp->fh_wchan = get_mntfs_wchan(mf); in prime_nfs_fhandle_cache()
473 if (!(mf->mf_flags & MFF_WEBNFS)) in prime_nfs_fhandle_cache()
481 if (mf->mf_flags & MFF_WEBNFS) in prime_nfs_fhandle_cache()
482 error = webnfs_lookup(fp, got_nfs_fh_webnfs, get_mntfs_wchan(mf)); in prime_nfs_fhandle_cache()
[all …]
Dops_ext.c52 static int ext2_mount(am_node *am, mntfs *mf);
53 static int ext3_mount(am_node *am, mntfs *mf);
54 static int ext4_mount(am_node *am, mntfs *mf);
55 static int ext_umount(am_node *am, mntfs *mf);
182 ext_mount(am_node *am, mntfs *mf, char *mount_type, in ext_mount() argument
185 int on_autofs = mf->mf_flags & MFF_ON_AUTOFS; in ext_mount()
188 error = mount_ext(mf->mf_mount, mf->mf_info, mf->mf_mopts, on_autofs, in ext_mount()
200 ext2_mount(am_node *am, mntfs *mf) in ext2_mount() argument
202 return ext_mount(am, mf, MOUNT_TYPE_EXT2, MNTTAB_TYPE_EXT2); in ext2_mount()
206 ext3_mount(am_node *am, mntfs *mf) in ext3_mount() argument
[all …]
Damfs_program.c52 static int amfs_program_mount(am_node *am, mntfs *mf);
53 static int amfs_program_umount(am_node *am, mntfs *mf);
54 static int amfs_program_init(mntfs *mf);
109 amfs_program_init(mntfs *mf) in amfs_program_init() argument
112 if (mf->mf_private != NULL) in amfs_program_init()
115 if (mf->mf_fo == NULL) in amfs_program_init()
119 if (mf->mf_fo->opt_unmount != NULL) in amfs_program_init()
120 mf->mf_private = (opaque_t) xstrdup(mf->mf_fo->opt_unmount); in amfs_program_init()
122 mf->mf_private = (opaque_t) xstrdup(mf->mf_fo->opt_umount); in amfs_program_init()
123 mf->mf_prfree = (void (*)(opaque_t)) free; in amfs_program_init()
[all …]
Damfs_nfsx.c70 static int amfs_nfsx_mount(am_node *am, mntfs *mf);
71 static int amfs_nfsx_umount(am_node *am, mntfs *mf);
72 static int amfs_nfsx_init(mntfs *mf);
174 amfs_nfsx_init(mntfs *mf) in amfs_nfsx_init() argument
185 nx = (struct amfs_nfsx *) mf->mf_private; in amfs_nfsx_init()
194 info = xstrdup(mf->mf_info); in amfs_nfsx_init()
218 mf->mf_private = (opaque_t) nx; in amfs_nfsx_init()
219 mf->mf_prfree = amfs_nfsx_prfree; in amfs_nfsx_init()
227 char *fs = mf->mf_fo->opt_fs; in amfs_nfsx_init()
249 nx->nx_v[i].n_mnt = find_mntfs(&nfs_ops, mf->mf_fo, mp, xinfo, "", mf->mf_mopts, mf->mf_remopts); in amfs_nfsx_init()
[all …]
Dops_cachefs.c52 static int cachefs_init(mntfs *mf);
53 static int cachefs_mount(am_node *am, mntfs *mf);
54 static int cachefs_umount(am_node *am, mntfs *mf);
107 cachefs_init(mntfs *mf) in cachefs_init() argument
112 if (!mf->mf_private) { in cachefs_init()
113 mf->mf_private = (voidp) xstrdup(mf->mf_fo->opt_cachedir); in cachefs_init()
114 mf->mf_prfree = (void (*)(voidp)) free; in cachefs_init()
206 cachefs_mount(am_node *am, mntfs *mf) in cachefs_mount() argument
208 int on_autofs = mf->mf_flags & MFF_ON_AUTOFS; in cachefs_mount()
211 error = mount_cachefs(mf->mf_mount, in cachefs_mount()
[all …]
Damfs_host.c55 static int amfs_host_init(mntfs *mf);
56 static int amfs_host_mount(am_node *am, mntfs *mf);
57 static int amfs_host_umount(am_node *am, mntfs *mf);
58 static void amfs_host_umounted(mntfs *mf);
133 amfs_host_init(mntfs *mf) in amfs_host_init() argument
137 if (strchr(mf->mf_info, ':') == 0) in amfs_host_init()
159 if (mf->mf_server) in amfs_host_init()
165 get_mountd_port(mf->mf_server, &mountd_port, get_mntfs_wchan(mf)); in amfs_host_init()
172 do_mount(am_nfs_handle_t *fhp, char *mntdir, char *fs_name, mntfs *mf) in do_mount() argument
184 return mount_nfs_fh(fhp, mntdir, fs_name, mf); in do_mount()
[all …]
Damfs_auto.c63 static int amfs_auto_mount(am_node *mp, mntfs *mf);
98 amfs_auto_mount(am_node *mp, mntfs *mf) in amfs_auto_mount() argument
115 if (mf->mf_info[0] == '.' && mf->mf_info[1] == '\0') in amfs_auto_mount()
116 mf->mf_info = strealloc(mf->mf_info, mp->am_parent->am_al->al_mnt->mf_info); in amfs_auto_mount()
129 if (mf->mf_fo->opt_pref) { in amfs_auto_mount()
131 if (STREQ(mf->mf_fo->opt_pref, "null")) { in amfs_auto_mount()
137 mp->am_pref = xstrdup(mf->mf_fo->opt_pref); in amfs_auto_mount()
152 if (mf->mf_flags & MFF_IS_AUTOFS) { in amfs_auto_mount()
159 error = amfs_mount(mp, mf, opts); in amfs_auto_mount()
171 amfs_mkcacheref(mf); in amfs_auto_mount()
Dops_TEMPLATE.c59 static int foofs_init(mntfs *mf);
60 static int foofs_mount(am_node *mp, mntfs *mf);
61 static int foofs_umount(am_node *mp, mntfs *mf);
65 static void foofs_mounted(am_node *am, mntfs *mf);
66 static void foofs_umounted(am_node *mp, mntfs *mf);
67 static fserver *foofs_ffserver(mntfs *mf);
119 foofs_init(mntfs *mf) in foofs_init() argument
151 foofs_fmount(mntfs *mf) in foofs_fmount() argument
183 foofs_fumount(mntfs *mf) in foofs_fumount() argument
256 foofs_mounted(mntfs *mf) in foofs_mounted() argument
[all …]
Dops_lofs.c52 static int lofs_mount(am_node *am, mntfs *mf);
53 static int lofs_umount(am_node *am, mntfs *mf);
134 lofs_mount(am_node *am, mntfs *mf) in lofs_mount() argument
136 int on_autofs = mf->mf_flags & MFF_ON_AUTOFS; in lofs_mount()
139 error = mount_lofs(mf->mf_mount, mf->mf_info, mf->mf_mopts, on_autofs); in lofs_mount()
150 lofs_umount(am_node *am, mntfs *mf) in lofs_umount() argument
152 int unmount_flags = (mf->mf_flags & MFF_ON_AUTOFS) ? AMU_UMOUNT_AUTOFS : 0; in lofs_umount()
154 return UMOUNT_FS(mf->mf_mount, mnttab_file_name, unmount_flags); in lofs_umount()
Dops_xfs.c52 static int xfs_mount(am_node *am, mntfs *mf);
53 static int xfs_umount(am_node *am, mntfs *mf);
145 xfs_mount(am_node *am, mntfs *mf) in xfs_mount() argument
147 int on_autofs = mf->mf_flags & MFF_ON_AUTOFS; in xfs_mount()
150 error = mount_xfs(mf->mf_mount, mf->mf_info, mf->mf_mopts, on_autofs); in xfs_mount()
162 xfs_umount(am_node *am, mntfs *mf) in xfs_umount() argument
164 int unmount_flags = (mf->mf_flags & MFF_ON_AUTOFS) ? AMU_UMOUNT_AUTOFS : 0; in xfs_umount()
166 return UMOUNT_FS(mf->mf_mount, mnttab_file_name, unmount_flags); in xfs_umount()
Dops_efs.c52 static int efs_mount(am_node *am, mntfs *mf);
53 static int efs_umount(am_node *am, mntfs *mf);
148 efs_mount(am_node *am, mntfs *mf) in efs_mount() argument
150 int on_autofs = mf->mf_flags & MFF_ON_AUTOFS; in efs_mount()
153 error = mount_efs(mf->mf_mount, mf->mf_info, mf->mf_mopts, on_autofs); in efs_mount()
165 efs_umount(am_node *am, mntfs *mf) in efs_umount() argument
167 int unmount_flags = (mf->mf_flags & MFF_ON_AUTOFS) ? AMU_UMOUNT_AUTOFS : 0; in efs_umount()
169 return UMOUNT_FS(mf->mf_mount, mnttab_file_name, unmount_flags); in efs_umount()
/freebsd-10-stable/contrib/xz/src/liblzma/lz/
Dlz_encoder.c31 lzma_mf mf; member
46 move_window(lzma_mf *mf) in move_window() argument
52 assert(mf->read_pos > mf->keep_size_before); in move_window()
54 = (mf->read_pos - mf->keep_size_before) & ~UINT32_C(15); in move_window()
56 assert(mf->write_pos > move_offset); in move_window()
57 const size_t move_size = mf->write_pos - move_offset; in move_window()
59 assert(move_offset + move_size <= mf->size); in move_window()
61 memmove(mf->buffer, mf->buffer + move_offset, move_size); in move_window()
63 mf->offset += move_offset; in move_window()
64 mf->read_pos -= move_offset; in move_window()
[all …]
Dlz_encoder_mf.c23 lzma_mf_find(lzma_mf *mf, uint32_t *count_ptr, lzma_match *matches) in lzma_mf_find() argument
28 const uint32_t count = mf->find(mf, matches); in lzma_mf_find()
38 assert(matches[i].len <= mf->nice_len); in lzma_mf_find()
39 assert(matches[i].dist < mf->read_pos); in lzma_mf_find()
40 assert(memcmp(mf_ptr(mf) - 1, in lzma_mf_find()
41 mf_ptr(mf) - matches[i].dist - 2, in lzma_mf_find()
52 if (len_best == mf->nice_len) { in lzma_mf_find()
57 uint32_t limit = mf_avail(mf) + 1; in lzma_mf_find()
58 if (limit > mf->match_len_max) in lzma_mf_find()
59 limit = mf->match_len_max; in lzma_mf_find()
[all …]
Dlz_encoder.h92 uint32_t (*find)(lzma_mf *mf, lzma_match *matches);
97 void (*skip)(lzma_mf *mf, uint32_t num);
198 lzma_mf *restrict mf, uint8_t *restrict out,
221 mf_ptr(const lzma_mf *mf) in mf_ptr() argument
223 return mf->buffer + mf->read_pos; in mf_ptr()
229 mf_avail(const lzma_mf *mf) in mf_avail() argument
231 return mf->write_pos - mf->read_pos; in mf_avail()
238 mf_unencoded(const lzma_mf *mf) in mf_unencoded() argument
240 return mf->write_pos - mf->read_pos + mf->read_ahead; in mf_unencoded()
252 mf_position(const lzma_mf *mf) in mf_position() argument
[all …]
/freebsd-10-stable/contrib/gcclibs/libmudflap/
DMakefile.am27 nobase_libsubinclude_HEADERS = mf-runtime.h
31 mf-runtime.c \
32 mf-heuristics.c \
33 mf-hooks1.c \
34 mf-hooks2.c
42 pth/mf-runtime.lo: mf-runtime.c mf-runtime.h mf-impl.h
43 $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-runtime.c -o $@
44 pth/mf-heuristics.lo: mf-heuristics.c mf-runtime.h mf-impl.h
45 $(LTCOMPILE) -DLIBMUDFLAPTH -c $(srcdir)/mf-heuristics.c -o $@
46 pth/mf-hooks1.lo: mf-hooks1.c mf-runtime.h mf-impl.h
[all …]
DChangeLog20 mf-runtime.h installation based on ssp patch for PR 26473 from
25 (nobase_libsubinclude_HEADERS): Add mf-runtime.h.
29 * mf-runtime.h: Add #ifndef protection for conflicting _REENTRANT
77 * mf-heuristics.c (_end, ENTRY_POINT): Make them arrays with unknown
82 * mf-hooks1.c (__mf_0fn_mmap, mmap, __mf_0fn_munmap, munmap): Protect
88 * mf-hooks2.c (accept): Tolerate NULL sockaddr* parameter.
103 * mf-hooks2.c (MF_REGISTER_fopen): Define to __MF_TYPE_STATIC when
108 * mf-hooks1.c (malloc, calloc, realloc, free,
111 * mf-impl.h (enum __mf_state_enum): Expand comment. Add in_malloc.
122 * mf-hooks3.c (main_seen_p): Remove.
[all …]
/freebsd-10-stable/sys/fs/msdosfs/
Dmsdosfs_fileno.c89 struct msdosfs_fileno *mf, *next; local
91 for (mf = RB_MIN(msdosfs_filenotree, &pmp->pm_filenos); mf != NULL;
92 mf = next) {
93 next = RB_NEXT(msdosfs_filenotree, &pmp->pm_filenos, mf);
94 RB_REMOVE(msdosfs_filenotree, &pmp->pm_filenos, mf);
95 free(mf, M_MSDOSFSFILENO);
106 struct msdosfs_fileno key, *mf, *tmf; local
118 mf = RB_FIND(msdosfs_filenotree, &pmp->pm_filenos, &key);
119 if (mf != NULL) {
120 mapped = mf->mf_fileno32;
[all …]
/freebsd-10-stable/contrib/xz/src/liblzma/lzma/
Dlzma_encoder.c46 literal(lzma_lzma1_encoder *coder, lzma_mf *mf, uint32_t position) in literal() argument
49 const uint8_t cur_byte = mf->buffer[ in literal()
50 mf->read_pos - mf->read_ahead]; in literal()
53 position, mf->buffer[mf->read_pos - mf->read_ahead - 1]); in literal()
63 const uint8_t match_byte = mf->buffer[ in literal()
64 mf->read_pos - coder->reps[0] - 1 in literal()
65 - mf->read_ahead]; in literal()
234 encode_symbol(lzma_lzma1_encoder *coder, lzma_mf *mf, in encode_symbol() argument
244 literal(coder, mf, position); in encode_symbol()
262 assert(mf->read_ahead >= len); in encode_symbol()
[all …]
Dlzma_encoder_optimum_fast.c22 lzma_mf *restrict mf, in lzma_lzma_optimum_fast() argument
25 const uint32_t nice_len = mf->nice_len; in lzma_lzma_optimum_fast()
29 if (mf->read_ahead == 0) { in lzma_lzma_optimum_fast()
30 len_main = mf_find(mf, &matches_count, coder->matches); in lzma_lzma_optimum_fast()
32 assert(mf->read_ahead == 1); in lzma_lzma_optimum_fast()
37 const uint8_t *buf = mf_ptr(mf) - 1; in lzma_lzma_optimum_fast()
38 const uint32_t buf_avail = my_min(mf_avail(mf) + 1, MATCH_LEN_MAX); in lzma_lzma_optimum_fast()
70 mf_skip(mf, len - 1); in lzma_lzma_optimum_fast()
85 mf_skip(mf, len_main - 1); in lzma_lzma_optimum_fast()
117 mf_skip(mf, rep_len - 1); in lzma_lzma_optimum_fast()
[all …]
/freebsd-10-stable/contrib/llvm/lib/CodeGen/
DSpiller.cpp53 MachineFunction *mf; member in __anon920a92d70211::SpillerBase
62 SpillerBase(MachineFunctionPass &pass, MachineFunction &mf, VirtRegMap &vrm) in SpillerBase() argument
63 : pass(&pass), mf(&mf), vrm(&vrm) in SpillerBase()
66 mfi = mf.getFrameInfo(); in SpillerBase()
67 mri = &mf.getRegInfo(); in SpillerBase()
68 tii = mf.getTarget().getInstrInfo(); in SpillerBase()
69 tri = mf.getTarget().getRegisterInfo(); in SpillerBase()
163 TrivialSpiller(MachineFunctionPass &pass, MachineFunction &mf, in TrivialSpiller() argument
165 : SpillerBase(pass, mf, vrm) {} in TrivialSpiller()
178 MachineFunction &mf, in createSpiller() argument
[all …]

12345678910