Searched refs:mp (Results 1 - 25 of 592) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/ntp/lib/isc/nothreads/include/isc/
H A Dmutex.h27 #define isc_mutex_init(mp) \
28 (*(mp) = 0, ISC_R_SUCCESS)
29 #define isc_mutex_lock(mp) \
30 ((*(mp))++ == 0 ? ISC_R_SUCCESS : ISC_R_UNEXPECTED)
31 #define isc_mutex_unlock(mp) \
32 (--(*(mp)) == 0 ? ISC_R_SUCCESS : ISC_R_UNEXPECTED)
33 #define isc_mutex_trylock(mp) \
34 (*(mp) == 0 ? ((*(mp))++, ISC_R_SUCCESS) : ISC_R_LOCKBUSY)
35 #define isc_mutex_destroy(mp) \
[all...]
H A Dcondition.h38 isc_result_t isc__nothread_wait_hack(isc_condition_t *cp, isc_mutex_t *mp);
44 #define isc_condition_wait(cp, mp) \
45 isc__nothread_wait_hack(cp, mp)
47 #define isc_condition_waituntil(cp, mp, tp) \
48 ((void)(cp), (void)(mp), (void)(tp), ISC_R_NOTIMPLEMENTED)
/freebsd-11-stable/contrib/ntp/lib/isc/win32/include/isc/
H A Dmutex.h39 #define isc_mutex_init(mp) \
40 (InitializeCriticalSection((mp)), ISC_R_SUCCESS)
41 #define isc_mutex_lock(mp) \
42 (EnterCriticalSection((mp)), ISC_R_SUCCESS)
43 #define isc_mutex_unlock(mp) \
44 (LeaveCriticalSection((mp)), ISC_R_SUCCESS)
45 #define isc_mutex_trylock(mp) \
46 (TryEnterCriticalSection((mp)) ? ISC_R_SUCCESS : ISC_R_LOCKBUSY)
47 #define isc_mutex_destroy(mp) \
48 (DeleteCriticalSection((mp)), ISC_R_SUCCES
[all...]
/freebsd-11-stable/contrib/ntp/lib/isc/pthreads/include/isc/
H A Dmutex.h70 #define isc_mutex_init(mp) \
71 isc_mutex_init_profile((mp), __FILE__, __LINE__)
74 #define isc_mutex_init(mp) \
75 isc_mutex_init_errcheck((mp))
77 #define isc_mutex_init(mp) \
78 isc__mutex_init((mp), __FILE__, __LINE__)
79 isc_result_t isc__mutex_init(isc_mutex_t *mp, const char *file, unsigned int line);
84 #define isc_mutex_lock(mp) \
85 isc_mutex_lock_profile((mp), __FILE__, __LINE__)
87 #define isc_mutex_lock(mp) \
[all...]
/freebsd-11-stable/contrib/amd/amd/
H A Dmap.c101 static void exported_ap_free(am_node *mp);
102 static void remove_am(am_node *mp);
149 am_node *mp; local
151 mp = get_first_exported_ap(&index);
152 while (mp != NULL) {
153 if (STREQ(mp->am_path, path))
155 mp = get_next_exported_ap(&index);
157 return mp;
186 get_ap_child(am_node *mp, char *fname) argument
189 mntfs *mf = mp
233 am_node *mp, **mpp; local
268 exported_ap_free(am_node *mp) argument
307 insert_am(am_node *mp, am_node *p_mp) argument
334 remove_am(am_node *mp) argument
363 new_ttl(am_node *mp) argument
401 init_map(am_node *mp, char *dir) argument
436 notify_child(am_node *mp, au_etype au_etype, int au_errno, int au_signal) argument
462 free_map(am_node *mp) argument
496 find_ap_recursive(char *dir, am_node *mp) argument
527 am_node *mp = exported_ap[i]; local
548 am_node *mp = get_root_ap(dir); local
569 am_node *mp = find_ap(dir); local
589 am_node *mp = exported_ap[i]; local
612 am_node *mp = (am_node *) arg; local
700 am_node *mp = exported_ap[i]; local
781 am_node *mp = (am_node *) arg; local
803 am_node *mp = (am_node *) arg; local
838 am_node *mp = (am_node *) arg; local
902 unmount_mp(am_node *mp) argument
981 am_node *mp = exported_ap[i]; local
[all...]
H A Damfs_linkx.c51 static int amfs_linkx_mount(am_node *mp, mntfs *mf);
52 static int amfs_linkx_umount(am_node *mp, mntfs *mf);
80 amfs_linkx_mount(am_node *mp, mntfs *mf) argument
88 if (mp->am_link)
89 ln = mp->am_link;
106 amfs_linkx_umount(am_node *mp, mntfs *mf) argument
H A Damfs_auto.c63 static int amfs_auto_mount(am_node *mp, mntfs *mf);
98 amfs_auto_mount(am_node *mp, mntfs *mf) argument
100 if (mp->am_parent == NULL)
109 mp->am_parent->am_fattr.na_nlink++;
116 mf->mf_info = strealloc(mf->mf_info, mp->am_parent->am_al->al_mnt->mf_info);
132 mp->am_pref = xstrdup("");
137 mp->am_pref = xstrdup(mf->mf_fo->opt_pref);
145 char *ppref = mp->am_parent->am_pref;
148 mp->am_pref = str3cat((char *) NULL, ppref, mp
[all...]
H A Dautil.c157 forcibly_timeout_mp(am_node *mp) argument
159 mntfs *mf = mp->am_al->al_mnt;
163 if (mf && ((mp->am_flags & AMF_ROOT) ||
171 plog(XLOG_WARNING, "node %s is currently being unmounted, ignoring timeout request", mp->am_path);
173 plog(XLOG_WARNING, "ignoring timeout request for active node %s", mp->am_path);
174 notify_child(mp, AMQ_UMNT_FAILED, EBUSY, 0);
177 plog(XLOG_INFO, "\"%s\" forcibly timed out", mp->am_path);
178 mp->am_flags &= ~AMF_NOTIMEOUT;
179 mp->am_ttl = clocktime(NULL);
185 clocktime(&mp
239 am_mounted(am_node *mp) argument
350 assign_error_mntfs(am_node *mp) argument
445 amfs_mount(am_node *mp, mntfs *mf, char *opts) argument
654 am_unmounted(am_node *mp) argument
[all...]
H A Damfs_direct.c53 static am_node *amfs_direct_readlink(am_node *mp, int *error_return);
85 amfs_direct_readlink(am_node *mp, int *error_return) argument
90 xp = next_nonerror_node(mp->am_child);
92 if (!mp->am_al->al_mnt->mf_private)
93 amfs_mkcacheref(mp->am_al->al_mnt);
94 xp = amfs_generic_lookup_child(mp, mp->am_path + 1, &rc, VLOOK_CREATE);
/freebsd-11-stable/lib/libmp/tests/
H A DMakefile6 LIBADD+= mp
/freebsd-11-stable/lib/libc/db/mpool/
H A Dmpool.c66 MPOOL *mp; local
83 if ((mp = (MPOOL *)calloc(1, sizeof(MPOOL))) == NULL)
85 TAILQ_INIT(&mp->lqh);
87 TAILQ_INIT(&mp->hqh[entry]);
88 mp->maxcache = maxcache;
89 mp->npages = sb.st_size / pagesize;
90 mp->pagesize = pagesize;
91 mp->fd = fd;
92 return (mp);
100 mpool_filter(MPOOL *mp, voi argument
113 mpool_new(MPOOL *mp, pgno_t *pgnoaddr, u_int flags) argument
147 mpool_delete(MPOOL *mp, void *page) argument
178 mpool_get(MPOOL *mp, pgno_t pgno, u_int flags) argument
273 mpool_put(MPOOL *mp, void *page, u_int flags) argument
299 mpool_close(MPOOL *mp) argument
320 mpool_sync(MPOOL *mp) argument
339 mpool_bkt(MPOOL *mp) argument
394 mpool_write(MPOOL *mp, BKT *bp) argument
428 mpool_look(MPOOL *mp, pgno_t pgno) argument
454 mpool_stat(MPOOL *mp) argument
[all...]
/freebsd-11-stable/usr.sbin/ppp/
H A Dmp.c28 * $FreeBSD: stable/11/usr.sbin/ppp/mp.c 330449 2018-03-05 07:26:05Z eadler $
79 #include "mp.h"
138 mp_ReadHeader(struct mp *mp, struct mbuf *m, struct mp_header *header) argument
140 if (mp->local_is12bit) {
196 struct mp *mp = (struct mp *)v; local
199 percent = MAX(mp->link.stats.total.in.OctetsPerSecond,
200 mp
212 mp_StopAutoloadTimer(struct mp *mp) argument
218 mp_CheckAutoloadTimer(struct mp *mp) argument
233 mp_RestartAutoloadTimer(struct mp *mp) argument
242 mp_Init(struct mp *mp, struct bundle *bundle) argument
299 mp_Up(struct mp *mp, struct datalink *dl) argument
383 mp_Down(struct mp *mp) argument
417 mp_Assemble(struct mp *mp, struct mbuf *m, struct physical *p) argument
634 mp_Output(struct mp *mp, struct bundle *bundle, struct link *l, struct mbuf *m, u_int32_t begin, u_int32_t end) argument
670 struct mp *mp = &bundle->ncp.mp; local
829 struct mp *mp = &arg->bundle->ncp.mp; local
961 struct mp *mp = &arg->bundle->ncp.mp; local
1200 mp_LinkLost(struct mp *mp, struct datalink *dl) argument
1208 mp_QueueLen(struct mp *mp) argument
[all...]
/freebsd-11-stable/stand/libsa/
H A Dzalloc.c89 znalloc(MemPool *mp, uintptr_t bytes) argument
106 if (bytes <= mp->mp_Size - mp->mp_Used) {
110 for (pmn = &mp->mp_First; (mn=*pmn) != NULL; pmn = &mn->mr_Next) {
130 mp->mp_Used += bytes;
148 zfree(MemPool *mp, void *ptr, uintptr_t bytes) argument
163 if ((char *)ptr < (char *)mp->mp_Base ||
164 (char *)ptr + bytes > (char *)mp->mp_End ||
176 mp->mp_Used -= bytes;
178 for (pmn = &mp
257 zextendPool(MemPool *mp, void *base, uintptr_t bytes) argument
284 zallocstats(MemPool *mp) argument
[all...]
H A Dzalloc_protos.h34 Library void zextendPool(MemPool *mp, void *base, uintptr_t bytes);
35 Library void zallocstats(struct MemPool *mp);
/freebsd-11-stable/contrib/opie/libopie/
H A Dchallenge.c54 int opiechallenge FUNCTION((mp, name, ss), struct opie *mp AND char *name AND char *ss)
58 rval = opielookup(mp, name);
60 if (rval) syslog(LOG_DEBUG, "opiechallenge: opielookup(mp, name=%s) returned %d", name, rval);
71 (snprintf(ss, OPIE_CHALLENGE_MAX+1, "otp-%s %d %s ext", algids[MDX], mp->opie_n - 1, mp->opie_seed) >= OPIE_CHALLENGE_MAX+1)) {
75 memset(mp, 0, sizeof(*mp));
/freebsd-11-stable/sys/fs/nullfs/
H A Dnull_vfsops.c73 nullfs_mount(struct mount *mp) argument
85 NULLFSDEBUG("nullfs_mount(mp = %p)\n", (void *)mp);
89 if (mp->mnt_flag & MNT_ROOTFS)
95 if (mp->mnt_flag & MNT_UPDATE) {
99 if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0))
108 error = vfs_getopt(mp->mnt_optnew, "target", (void **)&target, &len);
115 if (mp->mnt_vnodecovered->v_op == &null_vnodeops &&
116 VOP_ISLOCKED(mp->mnt_vnodecovered) == LK_EXCLUSIVE) {
117 VOP_UNLOCK(mp
404 nullfs_reclaim_lowervp(struct mount *mp, struct vnode *lowervp) argument
417 nullfs_unlink_lowervp(struct mount *mp, struct vnode *lowervp) argument
[all...]
/freebsd-11-stable/bin/stty/
H A Dmodes.c212 const struct modes *mp; local
217 for (mp = cmodes; mp->name; ++mp)
218 if (CHK(mp->name)) {
219 ip->t.c_cflag &= ~mp->unset;
220 ip->t.c_cflag |= mp->set;
224 for (mp = imodes; mp->name; ++mp)
[all...]
/freebsd-11-stable/usr.sbin/lpr/lpd/
H A Dmodes.c204 struct modes *mp; local
206 for (mp = cmodes; mp->name; ++mp)
207 if (CHK(str, mp->name)) {
208 ip->c_cflag &= ~mp->unset;
209 ip->c_cflag |= mp->set;
212 for (mp = imodes; mp->name; ++mp)
[all...]
/freebsd-11-stable/sys/ufs/ufs/
H A Dufs_vfsops.c69 ufs_root(mp, flags, vpp)
70 struct mount *mp;
77 error = VFS_VGET(mp, (ino_t)ROOTINO, flags, &nvp);
88 ufs_quotactl(mp, cmds, id, arg)
89 struct mount *mp;
97 vfs_unbusy(mp);
120 vfs_unbusy(mp);
126 vfs_unbusy(mp);
132 error = quotaon(td, mp, type, arg);
136 vfs_ref(mp);
[all...]
/freebsd-11-stable/contrib/netbsd-tests/fs/vfs/
H A Dt_rwtoro.c58 remount_ro(const atf_tc_t *tc, const char *mp, int expected_errno) argument
72 RL(rump_sys_statvfs1(mp, &sbuf, ST_WAIT));
77 mount_args_length = rump_sys_mount(sbuf.f_fstypename, mp, MNT_GETARGS,
82 error = rump_sys_mount(sbuf.f_fstypename, mp, MNT_UPDATE | MNT_RDONLY,
129 basic_test(const atf_tc_t *tc, const char *mp, int expected_errno, argument
138 nargs.nulla_target = __UNCONST(mp);;
143 (*pre)(use_layer ? null_mount : mp);
144 remount_ro(tc, mp, expected_errno);
146 (*post)(use_layer ? null_mount : mp);
152 noneopen(const atf_tc_t *tc, const char *mp) argument
159 readopen(const atf_tc_t *tc, const char *mp) argument
166 writeopen(const atf_tc_t *tc, const char *mp) argument
173 read_unlinked(const atf_tc_t *tc, const char *mp) argument
180 layer_noneopen(const atf_tc_t *tc, const char *mp) argument
187 layer_readopen(const atf_tc_t *tc, const char *mp) argument
194 layer_writeopen(const atf_tc_t *tc, const char *mp) argument
201 layer_read_unlinked(const atf_tc_t *tc, const char *mp) argument
[all...]
/freebsd-11-stable/sys/fs/tmpfs/
H A Dtmpfs_vfsops.c145 tmpfs_update_mtime(struct mount *mp, bool lazy) argument
150 MNT_VNODE_FOREACH_ALL(vp, mp, mvp) {
186 tmpfs_check_rw_maps_cb(struct mount *mp __unused, vm_map_t map __unused,
201 tmpfs_revoke_rw_maps_cb(struct mount *mp __unused, vm_map_t map,
220 tmpfs_all_rw_maps(struct mount *mp, bool (*cb)(struct mount *mp, vm_map_t, argument
283 if (vp->v_mount != mp) {
288 terminate = cb(mp, map, entry, cb_arg);
307 tmpfs_check_rw_maps(struct mount *mp) argument
312 tmpfs_all_rw_maps(mp, tmpfs_check_rw_maps_c
317 tmpfs_rw_to_ro(struct mount *mp) argument
358 tmpfs_mount(struct mount *mp) argument
519 tmpfs_unmount(struct mount *mp, int mntflags) argument
601 tmpfs_root(struct mount *mp, int flags, struct vnode **vpp) argument
612 tmpfs_fhtovp(struct mount *mp, struct fid *fhp, int flags, struct vnode **vpp) argument
649 tmpfs_statfs(struct mount *mp, struct statfs *sbp) argument
681 tmpfs_sync(struct mount *mp, int waitfor) argument
[all...]
/freebsd-11-stable/usr.bin/mail/
H A Dcmd1.c60 struct message *mp; local
68 mp = &message[screen * size];
69 if (mp >= &message[msgCount])
70 mp = &message[msgCount - size];
71 if (mp < &message[0])
72 mp = &message[0];
74 mesg = mp - &message[0];
76 dot = mp;
77 for (; mp < &message[msgCount]; mp
167 struct message *mp; local
289 struct message *mp; local
361 struct message *mp; local
[all...]
/freebsd-11-stable/contrib/mdocml/
H A Ddemandoc.c45 struct mparse *mp; local
56 mp = NULL;
81 mp = mparse_alloc(MPARSE_SO, MANDOCERR_MAX, NULL,
83 assert(mp);
86 pmandoc(mp, STDIN_FILENO, "<stdin>", list);
89 mparse_reset(mp);
90 if ((fd = mparse_open(mp, argv[i])) == -1) {
94 pmandoc(mp, fd, argv[i], list);
97 mparse_free(mp);
110 pmandoc(struct mparse *mp, in argument
[all...]
/freebsd-11-stable/sys/fs/autofs/
H A Dautofs_vfsops.c59 autofs_mount(struct mount *mp) argument
65 if (vfs_filteropt(mp->mnt_optnew, autofs_opts))
68 if (mp->mnt_flag & MNT_UPDATE) {
69 autofs_flush(VFSTOAUTOFS(mp));
73 if (vfs_getopt(mp->mnt_optnew, "from", (void **)&from, NULL))
76 if (vfs_getopt(mp->mnt_optnew, "fspath", (void **)&fspath, NULL))
79 if (vfs_getopt(mp->mnt_optnew, "master_options", (void **)&options, NULL))
82 if (vfs_getopt(mp->mnt_optnew, "master_prefix", (void **)&prefix, NULL))
86 mp->mnt_data = amp;
87 amp->am_mp = mp;
116 autofs_unmount(struct mount *mp, int mntflags) argument
183 autofs_root(struct mount *mp, int flags, struct vnode **vpp) argument
196 autofs_statfs(struct mount *mp, struct statfs *sbp) argument
[all...]
/freebsd-11-stable/contrib/ntp/lib/isc/pthreads/
H A Dmutex.c99 isc_mutex_init_profile(isc_mutex_t *mp, const char *file, int line) { argument
102 err = pthread_mutex_init(&mp->mutex, NULL);
122 mp->stats = &stats[stats_next++];
126 mp->stats->file = file;
127 mp->stats->line = line;
128 mp->stats->count = 0;
129 timevalclear(&mp->stats->locked_total);
130 timevalclear(&mp->stats->wait_total);
132 mp->stats->lockers[i].file = NULL;
133 mp
143 isc_mutex_lock_profile(isc_mutex_t *mp, const char *file, int line) argument
186 isc_mutex_unlock_profile(isc_mutex_t *mp, const char *file, int line) argument
238 isc_mutex_init_errcheck(isc_mutex_t *mp) argument
268 isc__mutex_init(isc_mutex_t *mp, const char *file, unsigned int line) argument
[all...]

Completed in 520 milliseconds

1234567891011>>