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

1234567891011>>

/freebsd-10.3-release/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-10.3-release/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-10.3-release/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-10.3-release/contrib/amd/amd/
H A Dmap.c105 static void exported_ap_free(am_node *mp);
106 static void remove_am(am_node *mp);
153 am_node *mp; local
155 mp = get_first_exported_ap(&index);
156 while (mp != NULL) {
157 if (STREQ(mp->am_path, path))
159 mp = get_next_exported_ap(&index);
161 return mp;
190 get_ap_child(am_node *mp, char *fname) argument
193 mntfs *mf = mp
237 am_node *mp, **mpp; local
272 exported_ap_free(am_node *mp) argument
311 insert_am(am_node *mp, am_node *p_mp) argument
338 remove_am(am_node *mp) argument
367 new_ttl(am_node *mp) argument
405 init_map(am_node *mp, char *dir) argument
441 free_map(am_node *mp) argument
476 find_ap_recursive(char *dir, am_node *mp) argument
507 am_node *mp = exported_ap[i]; local
530 am_node *mp = exported_ap[i]; local
548 am_node *mp = get_root_ap(dir); local
566 am_node *mp = find_ap(dir); local
586 am_node *mp = exported_ap[i]; local
608 am_node *mp = (am_node *) arg; local
693 am_node *mp = exported_ap[i]; local
764 am_node *mp = (am_node *) arg; local
786 am_node *mp = (am_node *) arg; local
821 am_node *mp = (am_node *) arg; local
878 unmount_mp(am_node *mp) argument
955 am_node *mp = exported_ap[i]; local
[all...]
H A Damfs_linkx.c55 static int amfs_linkx_mount(am_node *mp, mntfs *mf);
56 static int amfs_linkx_umount(am_node *mp, mntfs *mf);
84 amfs_linkx_mount(am_node *mp, mntfs *mf) argument
92 if (mp->am_link)
93 ln = mp->am_link;
110 amfs_linkx_umount(am_node *mp, mntfs *mf) argument
H A Damfs_auto.c67 static int amfs_auto_mount(am_node *mp, mntfs *mf);
102 amfs_auto_mount(am_node *mp, mntfs *mf) argument
111 mp->am_parent->am_fattr.na_nlink++;
118 mf->mf_info = strealloc(mf->mf_info, mp->am_parent->am_mnt->mf_info);
134 mp->am_pref = strdup("");
139 mp->am_pref = strdup(mf->mf_fo->opt_pref);
147 char *ppref = mp->am_parent->am_pref;
150 mp->am_pref = str3cat((char *) 0, ppref, mp->am_name, "/");
158 autofs_get_opts(opts, sizeof(opts), mp
[all...]
H A Damfs_direct.c57 static am_node *amfs_direct_readlink(am_node *mp, int *error_return);
89 amfs_direct_readlink(am_node *mp, int *error_return) argument
94 xp = next_nonerror_node(mp->am_child);
96 if (!mp->am_mnt->mf_private)
97 amfs_mkcacheref(mp->am_mnt); /* XXX */
98 xp = amfs_generic_lookup_child(mp, mp->am_path + 1, &rc, VLOOK_CREATE);
H A Dautil.c161 forcibly_timeout_mp(am_node *mp) argument
163 mntfs *mf = mp->am_mnt;
167 if (mf && ((mp->am_flags & AMF_ROOT) ||
170 plog(XLOG_WARNING, "node %s is currently being unmounted, ignoring timeout request", mp->am_path);
172 plog(XLOG_WARNING, "ignoring timeout request for active node %s", mp->am_path);
174 plog(XLOG_INFO, "\"%s\" forcibly timed out", mp->am_path);
175 mp->am_flags &= ~AMF_NOTIMEOUT;
176 mp->am_ttl = clocktime(NULL);
182 clocktime(&mp->am_parent->am_fattr.na_mtime);
249 am_mounted(am_node *mp) argument
359 assign_error_mntfs(am_node *mp) argument
447 amfs_mount(am_node *mp, mntfs *mf, char *opts) argument
657 am_unmounted(am_node *mp) argument
[all...]
/freebsd-10.3-release/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...]
H A Dmpool-compat.c37 __mpool_new__44bsd(MPOOL *mp, pgno_t *pgnoaddr) argument
40 return (mpool_new(mp, pgnoaddr, MPOOL_PAGE_NEXT));
/freebsd-10.3-release/usr.sbin/ppp/
H A Dmp.c26 * $FreeBSD: releng/10.3/usr.sbin/ppp/mp.c 228990 2011-12-30 10:58:14Z uqs $
77 #include "mp.h"
136 mp_ReadHeader(struct mp *mp, struct mbuf *m, struct mp_header *header) argument
138 if (mp->local_is12bit) {
194 struct mp *mp = (struct mp *)v; local
197 percent = MAX(mp->link.stats.total.in.OctetsPerSecond,
198 mp
210 mp_StopAutoloadTimer(struct mp *mp) argument
216 mp_CheckAutoloadTimer(struct mp *mp) argument
231 mp_RestartAutoloadTimer(struct mp *mp) argument
240 mp_Init(struct mp *mp, struct bundle *bundle) argument
297 mp_Up(struct mp *mp, struct datalink *dl) argument
381 mp_Down(struct mp *mp) argument
415 mp_Assemble(struct mp *mp, struct mbuf *m, struct physical *p) argument
632 mp_Output(struct mp *mp, struct bundle *bundle, struct link *l, struct mbuf *m, u_int32_t begin, u_int32_t end) argument
668 struct mp *mp = &bundle->ncp.mp; local
827 struct mp *mp = &arg->bundle->ncp.mp; local
959 struct mp *mp = &arg->bundle->ncp.mp; local
1198 mp_LinkLost(struct mp *mp, struct datalink *dl) argument
1206 mp_QueueLen(struct mp *mp) argument
[all...]
/freebsd-10.3-release/lib/libstand/
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-10.3-release/sys/fs/nullfs/
H A Dnull_vfsops.c73 nullfs_mount(struct mount *mp) argument
84 NULLFSDEBUG("nullfs_mount(mp = %p)\n", (void *)mp);
88 if (mp->mnt_flag & MNT_ROOTFS)
94 if (mp->mnt_flag & MNT_UPDATE) {
98 if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0))
107 error = vfs_getopt(mp->mnt_optnew, "target", (void **)&target, &len);
114 if ((mp->mnt_vnodecovered->v_op == &null_vnodeops) &&
115 VOP_ISLOCKED(mp->mnt_vnodecovered) == LK_EXCLUSIVE) {
116 VOP_UNLOCK(mp
388 nullfs_reclaim_lowervp(struct mount *mp, struct vnode *lowervp) argument
401 nullfs_unlink_lowervp(struct mount *mp, struct vnode *lowervp) argument
[all...]
/freebsd-10.3-release/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-10.3-release/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-10.3-release/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-10.3-release/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-10.3-release/sys/fs/autofs/
H A Dautofs_vfsops.c55 autofs_mount(struct mount *mp) argument
61 if (vfs_filteropt(mp->mnt_optnew, autofs_opts))
64 if (mp->mnt_flag & MNT_UPDATE) {
65 autofs_flush(VFSTOAUTOFS(mp));
69 if (vfs_getopt(mp->mnt_optnew, "from", (void **)&from, NULL))
72 if (vfs_getopt(mp->mnt_optnew, "fspath", (void **)&fspath, NULL))
75 if (vfs_getopt(mp->mnt_optnew, "master_options", (void **)&options, NULL))
78 if (vfs_getopt(mp->mnt_optnew, "master_prefix", (void **)&prefix, NULL))
82 mp->mnt_data = amp;
83 amp->am_mp = mp;
112 autofs_unmount(struct mount *mp, int mntflags) argument
179 autofs_root(struct mount *mp, int flags, struct vnode **vpp) argument
192 autofs_statfs(struct mount *mp, struct statfs *sbp) argument
[all...]
/freebsd-10.3-release/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...]
/freebsd-10.3-release/sys/fs/unionfs/
H A Dunion_vfsops.c73 unionfs_domount(struct mount *mp) argument
95 UNIONFSDEBUG("unionfs_mount(mp = %p)\n", (void *)mp);
108 if (mp->mnt_flag & MNT_ROOTFS) {
109 vfs_mount_error(mp, "Cannot union mount root filesystem");
116 if (mp->mnt_flag & MNT_UPDATE) {
117 vfs_mount_error(mp, "unionfs does not support mount update");
124 error = vfs_getopt(mp->mnt_optnew, "target", (void **)&target, &len);
126 error = vfs_getopt(mp->mnt_optnew, "from", (void **)&target,
129 vfs_mount_error(mp, "Invali
322 unionfs_unmount(struct mount *mp, int mntflags) argument
356 unionfs_root(struct mount *mp, int flags, struct vnode **vpp) argument
377 unionfs_quotactl(struct mount *mp, int cmd, uid_t uid, void *arg) argument
390 unionfs_statfs(struct mount *mp, struct statfs *sbp) argument
439 unionfs_sync(struct mount *mp, int waitfor) argument
446 unionfs_vget(struct mount *mp, ino_t ino, int flags, struct vnode **vpp) argument
452 unionfs_fhtovp(struct mount *mp, struct fid *fidp, int flags, struct vnode **vpp) argument
459 unionfs_checkexp(struct mount *mp, struct sockaddr *nam, int *extflagsp, struct ucred **credanonp, int *numsecflavors, int **secflavors) argument
466 unionfs_extattrctl(struct mount *mp, int cmd, struct vnode *filename_vp, int namespace, const char *attrname) argument
[all...]
/freebsd-10.3-release/libexec/talkd/
H A Dprocess.c63 process_request(CTL_MSG *mp, CTL_RESPONSE *rp) argument
69 rp->type = mp->type;
71 if (mp->vers != TALK_VERSION) {
72 syslog(LOG_WARNING, "bad protocol version %d", mp->vers);
76 mp->id_num = ntohl(mp->id_num);
77 mp->addr.sa_family = ntohs(mp->addr.sa_family);
78 if (mp->addr.sa_family != AF_INET) {
80 mp
139 do_announce(CTL_MSG *mp, CTL_RESPONSE *rp) argument
[all...]
/freebsd-10.3-release/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;
96 vfs_unbusy(mp);
119 vfs_unbusy(mp);
125 vfs_unbusy(mp);
131 error = quotaon(td, mp, type, arg);
135 error = quotaoff(td, mp, typ
[all...]
/freebsd-10.3-release/sys/fs/tmpfs/
H A Dtmpfs_vfsops.c132 tmpfs_mount(struct mount *mp) argument
154 if (vfs_filteropt(mp->mnt_optnew, tmpfs_opts))
157 if (mp->mnt_flag & MNT_UPDATE) {
159 if (vfs_filteropt(mp->mnt_optnew, tmpfs_updateopts) != 0)
161 if (vfs_flagopt(mp->mnt_optnew, "ro", NULL, 0) !=
162 ((struct tmpfs_mount *)mp->mnt_data)->tm_ronly)
167 vn_lock(mp->mnt_vnodecovered, LK_SHARED | LK_RETRY);
168 error = VOP_GETATTR(mp->mnt_vnodecovered, &va, mp->mnt_cred);
169 VOP_UNLOCK(mp
271 tmpfs_unmount(struct mount *mp, int mntflags) argument
338 tmpfs_root(struct mount *mp, int flags, struct vnode **vpp) argument
350 tmpfs_fhtovp(struct mount *mp, struct fid *fhp, int flags, struct vnode **vpp) argument
387 tmpfs_statfs(struct mount *mp, struct statfs *sbp) argument
419 tmpfs_sync(struct mount *mp, int waitfor) argument
[all...]

Completed in 230 milliseconds

1234567891011>>