/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/ |
H A D | mutex.h | 49 #define MUTEX(mp) (&((mp)->m_mutex)) argument 60 mp->m_owner = NULL; in spl_mutex_clear_owner() 63 #define mutex_owner(mp) (READ_ONCE((mp)->m_owner)) argument 64 #define mutex_owned(mp) (mutex_owner(mp) == current) argument 65 #define MUTEX_HELD(mp) mutex_owned(mp) argument 66 #define MUTEX_NOT_HELD(mp) (!MUTEX_HELD(mp)) argument 72 mp->m_type = type; in spl_mutex_set_type() 77 if (mp && mp->m_type == MUTEX_NOLOCKDEP) \ in spl_mutex_lockdep_off_maybe() 83 if (mp && mp->m_type == MUTEX_NOLOCKDEP) \ in spl_mutex_lockdep_on_maybe() 104 __mutex_init(MUTEX(mp), (name) ? (#name) : (#mp), &__key); \ [all …]
|
/freebsd/lib/libc/db/mpool/ |
H A D | mpool.c | 216 if ((nr = pread(mp->fd, bp->page, mp->pagesize, off)) != (ssize_t)mp->pagesize) { in mpool_get() 258 (mp->pgin)(mp->pgcookie, bp->pgno, bp->page); in mpool_get() 341 if (mp->curcache < mp->maxcache) in mpool_bkt() 403 if (pwrite(mp->fd, bp->page, mp->pagesize, off) != (ssize_t)mp->pagesize) in mpool_write() 459 mp->pagesize, mp->curcache, mp->maxcache); in mpool_stat() 461 mp->pageput, mp->pageget, mp->pagenew); in mpool_stat() 463 mp->pagealloc, mp->pageflush); in mpool_stat() 464 if (mp->cachehit + mp->cachemiss) in mpool_stat() 467 ((double)mp->cachehit / (mp->cachehit + mp->cachemiss)) in mpool_stat() 468 * 100, mp->cachehit, mp->cachemiss); in mpool_stat() [all …]
|
/freebsd/usr.sbin/ppp/ |
H A D | mp.c | 194 struct mp *mp = (struct mp *)v; in mp_UpDown() local 257 mp->link.len = sizeof *mp; in mp_Init() 273 mp->fsmp.object = mp; in mp_Init() 284 lcp_Init(&mp->link.lcp, mp->bundle, &mp->link, NULL); in mp_Init() 285 ccp_Init(&mp->link.ccp, mp->bundle, &mp->link, &mp->fsmp); in mp_Init() 381 mp_Down(struct mp *mp) in mp_Down() argument 655 mp->out.seq = inc_seq(mp->peer_is12bit, mp->out.seq); in mp_Output() 668 struct mp *mp = &bundle->ncp.mp; in mp_FillPhysicalQueues() local 827 struct mp *mp = &arg->bundle->ncp.mp; in mp_ShowStatus() local 959 struct mp *mp = &arg->bundle->ncp.mp; in mp_SetEnddisc() local [all …]
|
/freebsd/sys/kern/ |
H A D | vfs_mount.c | 682 MPASSERT(mp->mnt_vfs_ops == 1, mp, in vfs_mount_alloc() 716 MPPASS(mp->mnt_vfs_ops != 0, mp); in vfs_mount_destroy() 746 MPPASS(mp->mnt_lockref == 0, mp); in vfs_mount_destroy() 749 MPASSERT(mp->mnt_vfs_ops == 1, mp, in vfs_mount_destroy() 1239 mp->mnt_opt = mp->mnt_optnew; in vfs_domount_first() 1545 mp->mnt_opt = mp->mnt_optnew; in vfs_domount_update() 1882 mp->mnt_ref, mp->mnt_lockref, mp->mnt_writeopcount)); in vfs_op_enter() 1922 mp = vfsopipi->mp; in vfs_op_action_func() 1936 mp = vfsopipi->mp; in vfs_op_wait_func() 1948 vfsopipi.mp = mp; in vfs_op_barrier_wait() [all …]
|
H A D | vfs_export.c | 143 MNT_ILOCK(mp); in vfs_hang_addrlist() 145 MNT_IUNLOCK(mp); in vfs_hang_addrlist() 326 MNT_ILOCK(mp); in vfs_export() 327 if (mp->mnt_exjail != NULL && mp->mnt_exjail->cr_prison != pr && in vfs_export() 343 MNT_ILOCK(mp); in vfs_export() 351 MNT_ILOCK(mp); in vfs_export() 363 MNT_ILOCK(mp); in vfs_export() 392 MNT_ILOCK(mp); in vfs_export() 411 MNT_ILOCK(mp); in vfs_export() 463 MNT_ILOCK(mp); in vfs_exjail_delete() [all …]
|
H A D | vfs_init.c | 170 rc = (*mp->mnt_vfc->vfc_vfsops_sd->vfs_mount)(mp); in vfs_mount_sigdefer() 182 rc = (*mp->mnt_vfc->vfc_vfsops_sd->vfs_unmount)(mp, mntflags); in vfs_unmount_sigdefer() 193 rc = (*mp->mnt_vfc->vfc_vfsops_sd->vfs_root)(mp, flags, vpp); in vfs_root_sigdefer() 228 rc = (*mp->mnt_vfc->vfc_vfsops_sd->vfs_statfs)(mp, sbp); in vfs_statfs_sigdefer() 239 rc = (*mp->mnt_vfc->vfc_vfsops_sd->vfs_sync)(mp, waitfor); in vfs_sync_sigdefer() 287 rc = (*mp->mnt_vfc->vfc_vfsops_sd->vfs_extattrctl)(mp, cmd, in vfs_extattrctl_sigdefer() 299 rc = (*mp->mnt_vfc->vfc_vfsops_sd->vfs_sysctl)(mp, op, req); in vfs_sysctl_sigdefer() 312 (*mp->mnt_vfc->vfc_vfsops_sd->vfs_susp_clean)(mp); in vfs_susp_clean_sigdefer() 324 (*mp->mnt_vfc->vfc_vfsops_sd->vfs_reclaim_lowervp)(mp, vp); in vfs_reclaim_lowervp_sigdefer() 336 (*(mp)->mnt_vfc->vfc_vfsops_sd->vfs_unlink_lowervp)(mp, vp); in vfs_unlink_lowervp_sigdefer() [all …]
|
/freebsd/sys/fs/tmpfs/ |
H A D | tmpfs_vfsops.c | 299 MNT_ILOCK(mp); in tmpfs_rw_to_ro() 301 MNT_IUNLOCK(mp); in tmpfs_rw_to_ro() 308 MNT_ILOCK(mp); in tmpfs_rw_to_ro() 371 MNT_ILOCK(mp); in tmpfs_mount() 377 MNT_ILOCK(mp); in tmpfs_mount() 383 MNT_IUNLOCK(mp); in tmpfs_mount() 388 error = VOP_GETATTR(mp->mnt_vnodecovered, &va, mp->mnt_cred); in tmpfs_mount() 477 MNT_ILOCK(mp); in tmpfs_mount() 483 MNT_IUNLOCK(mp); in tmpfs_mount() 519 MNT_ILOCK(mp); in tmpfs_unmount() [all …]
|
/freebsd/sys/fs/nullfs/ |
H A D | null_vfsops.c | 189 mp->mnt_data = xmp; in nullfs_mount() 203 MNT_ILOCK(mp); in nullfs_mount() 205 MNT_IUNLOCK(mp); in nullfs_mount() 228 MNT_ILOCK(mp); in nullfs_mount() 237 MNT_IUNLOCK(mp); in nullfs_mount() 238 vfs_getnewfsid(mp); in nullfs_mount() 243 mp->mnt_stat.f_mntfromname, mp->mnt_stat.f_mntonname); in nullfs_mount() 268 MNT_ILOCK(mp); in nullfs_unmount() 270 MNT_IUNLOCK(mp); in nullfs_unmount() 273 MNT_IUNLOCK(mp); in nullfs_unmount() [all …]
|
/freebsd/contrib/ntp/libntp/lib/isc/pthreads/include/isc/ |
H A D | mutex.h | 70 #define isc_mutex_init(mp) \ argument 74 #define isc_mutex_init(mp) \ argument 77 #define isc_mutex_init(mp) \ argument 84 #define isc_mutex_lock(mp) \ argument 87 #define isc_mutex_lock(mp) \ argument 93 #define isc_mutex_unlock(mp) \ argument 96 #define isc_mutex_unlock(mp) \ argument 102 #define isc_mutex_trylock(mp) \ argument 106 #define isc_mutex_trylock(mp) \ argument 112 #define isc_mutex_destroy(mp) \ argument [all …]
|
/freebsd/sys/fs/unionfs/ |
H A D | union_vfsops.c | 155 error = VOP_GETATTR(mp->mnt_vnodecovered, &va, mp->mnt_cred); in unionfs_domount() 267 mp->mnt_data = ump; in unionfs_domount() 287 mp->mnt_data = NULL; in unionfs_domount() 319 mp->mnt_data = NULL; in unionfs_domount() 347 MNT_ILOCK(mp); in unionfs_domount() 350 mp->mnt_flag |= MNT_LOCAL; in unionfs_domount() 353 MNT_IUNLOCK(mp); in unionfs_domount() 358 vfs_getnewfsid(mp); in unionfs_domount() 364 mp->mnt_stat.f_mntfromname, mp->mnt_stat.f_mntonname); in unionfs_domount() 406 mp->mnt_data = NULL; in unionfs_unmount() [all …]
|
/freebsd/libexec/talkd/ |
H A D | process.c | 63 rp->type = mp->type; in process_request() 70 mp->id_num = ntohl(mp->id_num); in process_request() 71 mp->addr.sa_family = ntohs(mp->addr.sa_family); in process_request() 78 mp->ctl_addr.sa_family = ntohs(mp->ctl_addr.sa_family); in process_request() 91 mp->pid = ntohl(mp->pid); in process_request() 94 switch (mp->type) { in process_request() 97 do_announce(mp, rp); in process_request() 106 insert_table(mp, rp); in process_request() 110 ptr = find_match(mp); in process_request() 140 result = find_user(mp->r_name, mp->r_tty); in do_announce() [all …]
|
/freebsd/sys/ufs/ffs/ |
H A D | ffs_vfsops.c | 407 MNT_ILOCK(mp); in ffs_mount() 635 if (MOUNTEDSOFTDEP(mp) && (mp->mnt_flag & in ffs_mount() 698 MNT_ILOCK(mp); in ffs_mount() 766 MNT_ILOCK(mp); in ffs_reload() 856 MNT_ILOCK(mp); in ffs_reload() 1011 mp->mnt_gjprovider = realloc(mp->mnt_gjprovider, len, in ffs_mountfs() 1071 MNT_ILOCK(mp); in ffs_mountfs() 1193 MNT_ILOCK(mp); in ffs_mountfs() 1452 vfs_rel(mp); in ffs_unmount() 1625 qsync(mp); in ffs_sync_lazy() [all …]
|
H A D | ffs_suspend.c | 75 ump = VFSTOUFS(mp); in ffs_susp_suspended() 94 struct mount *mp; in ffs_susp_rdwr() local 110 ump = VFSTOUFS(mp); in ffs_susp_rdwr() 187 ump = VFSTOUFS(mp); in ffs_susp_suspend() 239 vfs_unbusy(mp); in ffs_susp_unsuspend() 247 struct mount *mp; in ffs_susp_dtor() local 276 struct mount *mp; in ffs_susp_ioctl() local 294 if (mp == NULL) { in ffs_susp_ioctl() 299 vfs_rel(mp); in ffs_susp_ioctl() 310 vfs_unbusy(mp); in ffs_susp_ioctl() [all …]
|
/freebsd/stand/libsa/ |
H A D | zalloc.c | 108 if (bytes > mp->mp_Size - mp->mp_Used) in znalloc() 156 mp->mp_Used += bytes; in znalloc() 198 mp->mp_Used -= bytes; in zfree() 282 mp->mp_Base = base; in zextendPool() 283 mp->mp_Used = bytes; in zextendPool() 285 mp->mp_Size = bytes; in zextendPool() 287 void *pend = (char *)mp->mp_Base + mp->mp_Size; in zextendPool() 290 mp->mp_Size += (char *)mp->mp_Base - (char *)base; in zextendPool() 291 mp->mp_Used += (char *)mp->mp_Base - (char *)base; in zextendPool() 292 mp->mp_Base = base; in zextendPool() [all …]
|
/freebsd/sys/fs/devfs/ |
H A D | devfs_vfsops.c | 66 devfs_mount(struct mount *mp) in devfs_mount() argument 95 vfs_mount_error(mp, "%s", in devfs_mount() 111 fmp = mp->mnt_data; in devfs_mount() 127 MNT_ILOCK(mp); in devfs_mount() 128 mp->mnt_flag |= MNT_LOCAL; in devfs_mount() 134 MNT_IUNLOCK(mp); in devfs_mount() 135 fmp->dm_mount = mp; in devfs_mount() 137 vfs_getnewfsid(mp); in devfs_mount() 179 fmp = VFSTODEVFS(mp); in devfs_unmount() 193 mp->mnt_data = NULL; in devfs_unmount() [all …]
|
/freebsd/usr.bin/mail/ |
H A D | quit.c | 67 struct message *mp; in quit() local 138 for (mp = &message[0]; mp < &message[msgCount]; mp++) { in quit() 140 mp->m_flag &= ~MNEW; in quit() 155 for (c = 0, p = 0, mp = &message[0]; mp < &message[msgCount]; mp++) { in quit() 242 for (mp = &message[0]; mp < &message[msgCount]; mp++) in quit() 332 struct message *mp; in writeback() local 346 for (mp = &message[0]; mp < &message[msgCount]; mp++) in writeback() 347 if ((mp->m_flag&MPRESERVE)||(mp->m_flag&MTOUCH)==0) { in writeback() 386 struct message *mp; in edstop() local 398 for (mp = &message[0], gotcha = 0; mp < &message[msgCount]; mp++) { in edstop() [all …]
|
H A D | cmd1.c | 53 struct message *mp; in headers() local 65 mp = &message[0]; in headers() 69 dot = mp; in headers() 70 for (; mp < &message[msgCount]; mp++) { in headers() 189 sprintf(wcount, "%3ld/%-5ld", mp->m_lines, mp->m_size); in printhead() 192 skin(hfield("to", mp)) : nameof(mp, 0); in printhead() 322 touch(mp); in type1() 323 dot = mp; in type1() 377 touch(mp); in top() 378 dot = mp; in top() [all …]
|
/freebsd/contrib/ntp/libntp/lib/isc/pthreads/ |
H A D | mutex.c | 122 mp->stats = &stats[stats_next++]; in isc_mutex_init_profile() 126 mp->stats->file = file; in isc_mutex_init_profile() 127 mp->stats->line = line; in isc_mutex_init_profile() 128 mp->stats->count = 0; in isc_mutex_init_profile() 133 mp->stats->lockers[i].line = 0; in isc_mutex_init_profile() 134 mp->stats->lockers[i].count = 0; in isc_mutex_init_profile() 155 mp->stats->lock_t = postlock_t; in isc_mutex_lock_profile() 159 mp->stats->count++; in isc_mutex_lock_profile() 164 locker = &mp->stats->lockers[i]; in isc_mutex_lock_profile() 180 mp->stats->cur_locker = locker; in isc_mutex_lock_profile() [all …]
|
/freebsd/sys/fs/nfsclient/ |
H A D | nfs_clcomsubs.c | 74 mtod(mp, char *) + mp->m_len, ("nfsm_uiombuf: mcp wrong")); in nfsm_uiombuf() 87 mp = nfsm_add_ext_pgs(mp, in nfsm_uiombuf() 101 mp2 = mp; in nfsm_uiombuf() 132 NFSMGET(mp); in nfsm_uiombuf() 133 mp->m_len = 0; in nfsm_uiombuf() 138 mp = nfsm_add_ext_pgs(mp, nd->nd_maxextsiz, in nfsm_uiombuf() 153 nd->nd_mb = mp; in nfsm_uiombuf() 186 NFSMGET(mp); in nfsm_uiombuflist() 189 mp->m_len = 0; in nfsm_uiombuflist() 205 mp = nfsm_add_ext_pgs(mp, maxext, in nfsm_uiombuflist() [all …]
|
/freebsd/usr.sbin/lpr/lpd/ |
H A D | modes.c | 198 struct modes *mp; in msearch() local 200 for (mp = cmodes; mp->name; ++mp) in msearch() 201 if (CHK(str, mp->name)) { in msearch() 203 ip->c_cflag |= mp->set; in msearch() 206 for (mp = imodes; mp->name; ++mp) in msearch() 207 if (CHK(str, mp->name)) { in msearch() 209 ip->c_iflag |= mp->set; in msearch() 212 for (mp = lmodes; mp->name; ++mp) in msearch() 215 ip->c_lflag |= mp->set; in msearch() 218 for (mp = omodes; mp->name; ++mp) in msearch() [all …]
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/ |
H A D | spl_vfs.c | 123 struct mount *mp; in mount_snapshot() local 170 mp->mnt_optnew = NULL; in mount_snapshot() 172 mp->mnt_optnew = mp->mnt_opt; in mount_snapshot() 173 mp->mnt_opt = NULL; in mount_snapshot() 194 error = VFS_MOUNT(mp); in mount_snapshot() 208 vfs_unbusy(mp); in mount_snapshot() 217 mp->mnt_opt = mp->mnt_optnew; in mount_snapshot() 218 (void) VFS_STATFS(mp, &mp->mnt_stat); in mount_snapshot() 231 mp->mnt_optnew = NULL; in mount_snapshot() 254 vfs_op_exit(mp); in mount_snapshot() [all …]
|
/freebsd/sys/fs/fuse/ |
H A D | fuse_vfsops.c | 230 data, mp, err); in fuse_vfs_remount() 240 data, mp, err); in fuse_vfs_remount() 411 data->mp = mp; in fuse_vfsop_mount() 419 vfs_getnewfsid(mp); in fuse_vfsop_mount() 420 MNT_ILOCK(mp); in fuse_vfsop_mount() 433 MNT_IUNLOCK(mp); in fuse_vfsop_mount() 452 if (data != NULL && data->mp == mp) { in fuse_vfsop_mount() 459 data->mp = NULL; in fuse_vfsop_mount() 516 data->mp = NULL; in fuse_vfsop_unmount() 521 MNT_ILOCK(mp); in fuse_vfsop_unmount() [all …]
|
/freebsd/sys/contrib/openzfs/module/os/linux/spl/ |
H A D | spl-condvar.c | 123 ASSERT(mp); in cv_wait_common() 125 ASSERT(mutex_owned(mp)); in cv_wait_common() 142 mutex_exit(mp); in cv_wait_common() 165 mutex_enter(mp); in cv_wait_common() 267 ASSERT(mp); in __cv_timedwait_common() 269 ASSERT(mutex_owned(mp)); in __cv_timedwait_common() 291 mutex_exit(mp); in __cv_timedwait_common() 314 mutex_enter(mp); in __cv_timedwait_common() 375 ASSERT(mp); in __cv_timedwait_hires() 398 mutex_exit(mp); in __cv_timedwait_hires() [all …]
|
/freebsd/contrib/netbsd-tests/fs/vfs/ |
H A D | t_rwtoro.c | 72 RL(rump_sys_statvfs1(mp, &sbuf, ST_WAIT)); in remount_ro() 138 nargs.nulla_target = __UNCONST(mp);; in basic_test() 143 (*pre)(use_layer ? null_mount : mp); in basic_test() 144 remount_ro(tc, mp, expected_errno); in basic_test() 146 (*post)(use_layer ? null_mount : mp); in basic_test() 152 noneopen(const atf_tc_t *tc, const char *mp) in noneopen() argument 155 basic_test(tc, mp, 0, false, NULL, NULL); in noneopen() 159 readopen(const atf_tc_t *tc, const char *mp) in readopen() argument 166 writeopen(const atf_tc_t *tc, const char *mp) in writeopen() argument 173 read_unlinked(const atf_tc_t *tc, const char *mp) in read_unlinked() argument [all …]
|
/freebsd/bin/stty/ |
H A D | modes.c | 207 const struct modes *mp; in msearch() local 212 for (mp = cmodes; mp->name; ++mp) in msearch() 213 if (CHK(mp->name)) { in msearch() 215 ip->t.c_cflag |= mp->set; in msearch() 219 for (mp = imodes; mp->name; ++mp) in msearch() 220 if (CHK(mp->name)) { in msearch() 222 ip->t.c_iflag |= mp->set; in msearch() 226 for (mp = lmodes; mp->name; ++mp) in msearch() 227 if (CHK(mp->name)) { in msearch() 233 for (mp = omodes; mp->name; ++mp) in msearch() [all …]
|