Home
last modified time | relevance | path

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

12345678910

/netbsd/src/external/bsd/am-utils/dist/amd/
Dmntfs.c64 dup_mntfs(mntfs *mf) in dup_mntfs() argument
66 if (mf->mf_refc == 0) { in dup_mntfs()
67 if (mf->mf_cid) in dup_mntfs()
68 untimeout(mf->mf_cid); in dup_mntfs()
69 mf->mf_cid = 0; in dup_mntfs()
71 mf->mf_refc++; in dup_mntfs()
73 return mf; in dup_mntfs()
78 init_mntfs(mntfs *mf, am_ops *ops, am_opts *mo, char *mp, char *info, char *auto_opts, char *mopts,… in init_mntfs() argument
80 mf->mf_ops = ops; in init_mntfs()
81 mf->mf_fsflags = ops->nfs_fs_flags; in init_mntfs()
[all …]
Damfs_nfsl.c59 static int amfs_nfsl_init(mntfs *mf);
60 static int amfs_nfsl_mount(am_node *mp, mntfs *mf);
61 static int amfs_nfsl_umount(am_node *mp, mntfs *mf);
62 static void amfs_nfsl_umounted(mntfs *mf);
63 static fserver *amfs_nfsl_ffserver(mntfs *mf);
137 amfs_nfsl_init(mntfs *mf) in amfs_nfsl_init() argument
140 if (mf->mf_flags & MFF_NFSLINK) { in amfs_nfsl_init()
142 ret = amfs_link_ops.fs_init(mf); in amfs_nfsl_init()
145 ret = nfs_ops.fs_init(mf); in amfs_nfsl_init()
156 amfs_nfsl_mount(am_node *mp, mntfs *mf) in amfs_nfsl_mount() argument
[all …]
Damfs_generic.c89 static am_loc *amfs_lookup_one_location(am_node *new_mp, mntfs *mf, char *ivec,
96 static char *amfs_parse_defaults(am_node *mp, mntfs *mf, char *def_opts);
108 mntfs *mf; in amfs_lookup_node() local
171 mf = new_mp->am_al->al_mnt; in amfs_lookup_node()
172 if (mf->mf_error < 0) in amfs_lookup_node()
179 if (mf->mf_flags & MFF_ERROR) { in amfs_lookup_node()
180 error = mf->mf_error; in amfs_lookup_node()
183 if (!(mf->mf_flags & MFF_MOUNTED) || (mf->mf_flags & MFF_UNMOUNTING)) { in amfs_lookup_node()
193 expanded_fname, mf->mf_mount, in amfs_lookup_node()
194 (mf->mf_flags & MFF_UNMOUNTING) ? "un" : "", mf->mf_flags); in amfs_lookup_node()
[all …]
Dautil.c161 mntfs *mf = mp->am_al->al_mnt; in forcibly_timeout_mp() local
165 if (mf && ((mp->am_flags & AMF_ROOT) || in forcibly_timeout_mp()
166 (mf->mf_flags & (MFF_MOUNTING | MFF_UNMOUNTING)))) { in forcibly_timeout_mp()
172 if (mf->mf_flags & MFF_UNMOUNTING) in forcibly_timeout_mp()
194 mf_mounted(mntfs *mf, bool_t call_free_opts) in mf_mounted() argument
197 int wasmounted = mf->mf_flags & MFF_MOUNTED; in mf_mounted()
205 mf->mf_flags |= MFF_MOUNTED; in mf_mounted()
206 mf->mf_error = 0; in mf_mounted()
211 if (mf->mf_ops->mounted) in mf_mounted()
212 mf->mf_ops->mounted(mf); in mf_mounted()
[all …]
Dmap.c191 mntfs *mf = mp->am_al->al_mnt; in get_ap_child() local
216 (mf->mf_fsflags & FS_DIRECT) in get_ap_child()
703 mntfs *mf; in umount_exported() local
714 mf = mp->am_al->al_mnt; in umount_exported()
715 if (mf->mf_flags & MFF_UNMOUNTING) { in umount_exported()
725 if (!(mf->mf_fsflags & FS_DIRECTORY)) in umount_exported()
735 (mf->mf_flags & MFF_RESTART)) { in umount_exported()
744 if (mf->mf_server && in umount_exported()
745 (mf->mf_server->fs_flags & (FSF_DOWN | FSF_VALID)) != FSF_VALID) in umount_exported()
746 mf->mf_flags &= ~MFF_MKMNT; in umount_exported()
[all …]
Dops_nfs.c105 static int nfs_init(mntfs *mf);
107 static int nfs_mount(am_node *am, mntfs *mf);
108 static int nfs_umount(am_node *am, mntfs *mf);
109 static void nfs_umounted(mntfs *mf);
347 prime_nfs_fhandle_cache(char *path, fserver *fs, am_nfs_handle_t *fhbuf, mntfs *mf) in prime_nfs_fhandle_cache() argument
369 if (mf->mf_flags & MFF_NFS_SCALEDOWN) { in prime_nfs_fhandle_cache()
452 fp->fh_wchan = get_mntfs_wchan(mf); in prime_nfs_fhandle_cache()
475 if (!(mf->mf_flags & MFF_WEBNFS)) in prime_nfs_fhandle_cache()
483 if (mf->mf_flags & MFF_WEBNFS) in prime_nfs_fhandle_cache()
484 error = webnfs_lookup(fp, got_nfs_fh_webnfs, get_mntfs_wchan(mf)); in prime_nfs_fhandle_cache()
[all …]
Dops_ext.c54 static int ext2_mount(am_node *am, mntfs *mf);
55 static int ext3_mount(am_node *am, mntfs *mf);
56 static int ext4_mount(am_node *am, mntfs *mf);
57 static int ext_umount(am_node *am, mntfs *mf);
184 ext_mount(am_node *am, mntfs *mf, char *mount_type, in ext_mount() argument
187 int on_autofs = mf->mf_flags & MFF_ON_AUTOFS; in ext_mount()
190 error = mount_ext(mf->mf_mount, mf->mf_info, mf->mf_mopts, on_autofs, in ext_mount()
202 ext2_mount(am_node *am, mntfs *mf) in ext2_mount() argument
204 return ext_mount(am, mf, MOUNT_TYPE_EXT2, MNTTAB_TYPE_EXT2); in ext2_mount()
208 ext3_mount(am_node *am, mntfs *mf) in ext3_mount() argument
[all …]
Damfs_nfsx.c72 static int amfs_nfsx_mount(am_node *am, mntfs *mf);
73 static int amfs_nfsx_umount(am_node *am, mntfs *mf);
74 static int amfs_nfsx_init(mntfs *mf);
176 amfs_nfsx_init(mntfs *mf) in amfs_nfsx_init() argument
187 nx = (struct amfs_nfsx *) mf->mf_private; in amfs_nfsx_init()
196 info = xstrdup(mf->mf_info); in amfs_nfsx_init()
220 mf->mf_private = (opaque_t) nx; in amfs_nfsx_init()
221 mf->mf_prfree = amfs_nfsx_prfree; in amfs_nfsx_init()
229 char *fs = mf->mf_fo->opt_fs; in amfs_nfsx_init()
251 … 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 …]
Damfs_host.c57 static int amfs_host_init(mntfs *mf);
58 static int amfs_host_mount(am_node *am, mntfs *mf);
59 static int amfs_host_umount(am_node *am, mntfs *mf);
60 static void amfs_host_umounted(mntfs *mf);
135 amfs_host_init(mntfs *mf) in amfs_host_init() argument
139 if (strchr(mf->mf_info, ':') == 0) in amfs_host_init()
161 if (mf->mf_server) in amfs_host_init()
167 get_mountd_port(mf->mf_server, &mountd_port, get_mntfs_wchan(mf)); in amfs_host_init()
174 do_mount(am_nfs_handle_t *fhp, char *mntdir, char *fs_name, mntfs *mf) in do_mount() argument
186 return mount_nfs_fh(fhp, mntdir, fs_name, mf); in do_mount()
[all …]
Damfs_program.c54 static int amfs_program_mount(am_node *am, mntfs *mf);
55 static int amfs_program_umount(am_node *am, mntfs *mf);
56 static int amfs_program_init(mntfs *mf);
111 amfs_program_init(mntfs *mf) in amfs_program_init() argument
114 if (mf->mf_private != NULL) in amfs_program_init()
117 if (mf->mf_fo == NULL) in amfs_program_init()
121 if (mf->mf_fo->opt_unmount != NULL) in amfs_program_init()
122 mf->mf_private = (opaque_t) xstrdup(mf->mf_fo->opt_unmount); in amfs_program_init()
124 mf->mf_private = (opaque_t) xstrdup(mf->mf_fo->opt_umount); in amfs_program_init()
125 mf->mf_prfree = (void (*)(opaque_t)) free; in amfs_program_init()
[all …]
Dops_cachefs.c54 static int cachefs_init(mntfs *mf);
55 static int cachefs_mount(am_node *am, mntfs *mf);
56 static int cachefs_umount(am_node *am, mntfs *mf);
109 cachefs_init(mntfs *mf) in cachefs_init() argument
114 if (!mf->mf_private) { in cachefs_init()
115 mf->mf_private = (voidp) xstrdup(mf->mf_fo->opt_cachedir); in cachefs_init()
116 mf->mf_prfree = (void (*)(voidp)) free; in cachefs_init()
208 cachefs_mount(am_node *am, mntfs *mf) in cachefs_mount() argument
210 int on_autofs = mf->mf_flags & MFF_ON_AUTOFS; in cachefs_mount()
213 error = mount_cachefs(mf->mf_mount, in cachefs_mount()
[all …]
Damfs_auto.c65 static int amfs_auto_mount(am_node *mp, mntfs *mf);
100 amfs_auto_mount(am_node *mp, mntfs *mf) in amfs_auto_mount() argument
117 if (mf->mf_info[0] == '.' && mf->mf_info[1] == '\0') in amfs_auto_mount()
118 mf->mf_info = strealloc(mf->mf_info, mp->am_parent->am_al->al_mnt->mf_info); in amfs_auto_mount()
131 if (mf->mf_fo->opt_pref) { in amfs_auto_mount()
133 if (STREQ(mf->mf_fo->opt_pref, "null")) { in amfs_auto_mount()
139 mp->am_pref = xstrdup(mf->mf_fo->opt_pref); in amfs_auto_mount()
154 if (mf->mf_flags & MFF_IS_AUTOFS) { in amfs_auto_mount()
161 error = amfs_mount(mp, mf, opts); in amfs_auto_mount()
173 amfs_mkcacheref(mf); in amfs_auto_mount()
Dops_TEMPLATE.c61 static int foofs_init(mntfs *mf);
62 static int foofs_mount(am_node *mp, mntfs *mf);
63 static int foofs_umount(am_node *mp, mntfs *mf);
67 static void foofs_mounted(am_node *am, mntfs *mf);
68 static void foofs_umounted(am_node *mp, mntfs *mf);
69 static fserver *foofs_ffserver(mntfs *mf);
121 foofs_init(mntfs *mf) in foofs_init() argument
153 foofs_fmount(mntfs *mf) in foofs_fmount() argument
185 foofs_fumount(mntfs *mf) in foofs_fumount() argument
258 foofs_mounted(mntfs *mf) in foofs_mounted() argument
[all …]
Dops_lofs.c54 static int lofs_mount(am_node *am, mntfs *mf);
55 static int lofs_umount(am_node *am, mntfs *mf);
136 lofs_mount(am_node *am, mntfs *mf) in lofs_mount() argument
138 int on_autofs = mf->mf_flags & MFF_ON_AUTOFS; in lofs_mount()
141 error = mount_lofs(mf->mf_mount, mf->mf_info, mf->mf_mopts, on_autofs); in lofs_mount()
152 lofs_umount(am_node *am, mntfs *mf) in lofs_umount() argument
154 int unmount_flags = (mf->mf_flags & MFF_ON_AUTOFS) ? AMU_UMOUNT_AUTOFS : 0; in lofs_umount()
156 return UMOUNT_FS(mf->mf_mount, mnttab_file_name, unmount_flags); in lofs_umount()
Dops_xfs.c54 static int xfs_mount(am_node *am, mntfs *mf);
55 static int xfs_umount(am_node *am, mntfs *mf);
147 xfs_mount(am_node *am, mntfs *mf) in xfs_mount() argument
149 int on_autofs = mf->mf_flags & MFF_ON_AUTOFS; in xfs_mount()
152 error = mount_xfs(mf->mf_mount, mf->mf_info, mf->mf_mopts, on_autofs); in xfs_mount()
164 xfs_umount(am_node *am, mntfs *mf) in xfs_umount() argument
166 int unmount_flags = (mf->mf_flags & MFF_ON_AUTOFS) ? AMU_UMOUNT_AUTOFS : 0; in xfs_umount()
168 return UMOUNT_FS(mf->mf_mount, mnttab_file_name, unmount_flags); in xfs_umount()
Dops_efs.c54 static int efs_mount(am_node *am, mntfs *mf);
55 static int efs_umount(am_node *am, mntfs *mf);
150 efs_mount(am_node *am, mntfs *mf) in efs_mount() argument
152 int on_autofs = mf->mf_flags & MFF_ON_AUTOFS; in efs_mount()
155 error = mount_efs(mf->mf_mount, mf->mf_info, mf->mf_mopts, on_autofs); in efs_mount()
167 efs_umount(am_node *am, mntfs *mf) in efs_umount() argument
169 int unmount_flags = (mf->mf_flags & MFF_ON_AUTOFS) ? AMU_UMOUNT_AUTOFS : 0; in efs_umount()
171 return UMOUNT_FS(mf->mf_mount, mnttab_file_name, unmount_flags); in efs_umount()
/netbsd/src/external/public-domain/xz/dist/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 …]
/netbsd/src/games/sail/
Dpl_2.c55 if (mf->readyL & R_LOADING) { in newturn()
56 if (mf->readyL & R_DOUBLE) in newturn()
57 mf->readyL = R_LOADING; in newturn()
59 mf->readyL = R_LOADED; in newturn()
61 if (mf->readyR & R_LOADING) { in newturn()
62 if (mf->readyR & R_DOUBLE) in newturn()
63 mf->readyR = R_LOADING; in newturn()
65 mf->readyR = R_LOADED; in newturn()
79 if (mf->FS && (!mc->rig1 || windspeed == 6)) in newturn()
81 if (mf->FS == 1) in newturn()
[all …]
Dpl_3.c64 if (mf->OBP[n].turnsent) in acceptcombat()
65 men += mf->OBP[n].mensent; in acceptcombat()
68 if (mf->DBP[n].turnsent) in acceptcombat()
69 men += mf->DBP[n].mensent; in acceptcombat()
78 ready = mf->readyR; in acceptcombat()
79 load = mf->loadR; in acceptcombat()
83 ready = mf->readyL; in acceptcombat()
84 load = mf->loadL; in acceptcombat()
91 if (mf->struck || !crew[2]) in acceptcombat()
152 for (n = 0; n < 3 && mf->captured == 0; n++) in acceptcombat()
[all …]
/netbsd/src/external/public-domain/xz/dist/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 …]
/netbsd/src/sys/dev/i2o/
Diop.c648 struct i2o_hba_bus_scan mf; in iop_reconfigure() local
676 mf.msgflags = I2O_MSGFLAGS(i2o_hba_bus_scan); in iop_reconfigure()
677 mf.msgfunc = I2O_MSGFUNC(tid, I2O_HBA_BUS_SCAN); in iop_reconfigure()
678 mf.msgictx = IOP_ICTX; in iop_reconfigure()
679 mf.msgtctx = im->im_tctx; in iop_reconfigure()
684 rv = iop_msg_post(sc, im, &mf, 5*60*1000); in iop_reconfigure()
913 struct i2o_exec_status_get mf; in iop_status_get() local
921 mf.msgflags = I2O_MSGFLAGS(i2o_exec_status_get); in iop_status_get()
922 mf.msgfunc = I2O_MSGFUNC(I2O_TID_IOP, I2O_EXEC_STATUS_GET); in iop_status_get()
923 mf.reserved[0] = 0; in iop_status_get()
[all …]
Dld_iop.c349 struct i2o_rbs_block_read *mf; in ld_iop_start() local
381 mf = (struct i2o_rbs_block_read *)mb; in ld_iop_start()
382 mf->msgflags = I2O_MSGFLAGS(i2o_rbs_block_read); in ld_iop_start()
383 mf->msgfunc = I2O_MSGFUNC(sc->sc_ii.ii_tid, in ld_iop_start()
385 mf->msgictx = sc->sc_ii.ii_ictx; in ld_iop_start()
386 mf->msgtctx = im->im_tctx; in ld_iop_start()
387 mf->flags = flags | (1 << 16); /* flags & time multiplier */ in ld_iop_start()
388 mf->datasize = bp->b_bcount; in ld_iop_start()
389 mf->lowoffset = (u_int32_t)ba; in ld_iop_start()
390 mf->highoffset = (u_int32_t)(ba >> 32); in ld_iop_start()
[all …]

12345678910