| /freebsd-14.2/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-14.2/lib/libc/db/mpool/ |
| H A D | mpool.c | 219 if ((nr = pread(mp->fd, bp->page, mp->pagesize, off)) != (ssize_t)mp->pagesize) { in mpool_get() 261 (mp->pgin)(mp->pgcookie, bp->pgno, bp->page); in mpool_get() 344 if (mp->curcache < mp->maxcache) in mpool_bkt() 406 if (pwrite(mp->fd, bp->page, mp->pagesize, off) != (ssize_t)mp->pagesize) in mpool_write() 462 mp->pagesize, mp->curcache, mp->maxcache); in mpool_stat() 464 mp->pageput, mp->pageget, mp->pagenew); in mpool_stat() 466 mp->pagealloc, mp->pageflush); in mpool_stat() 467 if (mp->cachehit + mp->cachemiss) in mpool_stat() 470 ((double)mp->cachehit / (mp->cachehit + mp->cachemiss)) in mpool_stat() 471 * 100, mp->cachehit, mp->cachemiss); in mpool_stat() [all …]
|
| /freebsd-14.2/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-14.2/sys/kern/ |
| H A D | vfs_mount.c | 683 MPASSERT(mp->mnt_vfs_ops == 1, mp, in vfs_mount_alloc() 717 MPPASS(mp->mnt_vfs_ops != 0, mp); in vfs_mount_destroy() 747 MPPASS(mp->mnt_lockref == 0, mp); in vfs_mount_destroy() 750 MPASSERT(mp->mnt_vfs_ops == 1, mp, in vfs_mount_destroy() 1240 mp->mnt_opt = mp->mnt_optnew; in vfs_domount_first() 1553 mp->mnt_opt = mp->mnt_optnew; in vfs_domount_update() 1890 mp->mnt_ref, mp->mnt_lockref, mp->mnt_writeopcount)); in vfs_op_enter() 1930 mp = vfsopipi->mp; in vfs_op_action_func() 1944 mp = vfsopipi->mp; in vfs_op_wait_func() 1956 vfsopipi.mp = mp; in vfs_op_barrier_wait() [all …]
|
| H A D | vfs_export.c | 145 MNT_ILOCK(mp); in vfs_hang_addrlist() 147 MNT_IUNLOCK(mp); in vfs_hang_addrlist() 328 MNT_ILOCK(mp); in vfs_export() 329 if (mp->mnt_exjail != NULL && mp->mnt_exjail->cr_prison != pr && in vfs_export() 345 MNT_ILOCK(mp); in vfs_export() 353 MNT_ILOCK(mp); in vfs_export() 365 MNT_ILOCK(mp); in vfs_export() 394 MNT_ILOCK(mp); in vfs_export() 413 MNT_ILOCK(mp); in vfs_export() 465 MNT_ILOCK(mp); in vfs_exjail_delete() [all …]
|
| H A D | vfs_init.c | 175 rc = (*mp->mnt_vfc->vfc_vfsops_sd->vfs_mount)(mp); in vfs_mount_sigdefer() 187 rc = (*mp->mnt_vfc->vfc_vfsops_sd->vfs_unmount)(mp, mntflags); in vfs_unmount_sigdefer() 198 rc = (*mp->mnt_vfc->vfc_vfsops_sd->vfs_root)(mp, flags, vpp); in vfs_root_sigdefer() 233 rc = (*mp->mnt_vfc->vfc_vfsops_sd->vfs_statfs)(mp, sbp); in vfs_statfs_sigdefer() 244 rc = (*mp->mnt_vfc->vfc_vfsops_sd->vfs_sync)(mp, waitfor); in vfs_sync_sigdefer() 292 rc = (*mp->mnt_vfc->vfc_vfsops_sd->vfs_extattrctl)(mp, cmd, in vfs_extattrctl_sigdefer() 304 rc = (*mp->mnt_vfc->vfc_vfsops_sd->vfs_sysctl)(mp, op, req); in vfs_sysctl_sigdefer() 317 (*mp->mnt_vfc->vfc_vfsops_sd->vfs_susp_clean)(mp); in vfs_susp_clean_sigdefer() 329 (*mp->mnt_vfc->vfc_vfsops_sd->vfs_reclaim_lowervp)(mp, vp); in vfs_reclaim_lowervp_sigdefer() 341 (*(mp)->mnt_vfc->vfc_vfsops_sd->vfs_unlink_lowervp)(mp, vp); in vfs_unlink_lowervp_sigdefer() [all …]
|
| /freebsd-14.2/sys/fs/tmpfs/ |
| H A D | tmpfs_vfsops.c | 300 MNT_ILOCK(mp); in tmpfs_rw_to_ro() 302 MNT_IUNLOCK(mp); in tmpfs_rw_to_ro() 309 MNT_ILOCK(mp); in tmpfs_rw_to_ro() 372 MNT_ILOCK(mp); in tmpfs_mount() 378 MNT_ILOCK(mp); in tmpfs_mount() 384 MNT_IUNLOCK(mp); in tmpfs_mount() 389 error = VOP_GETATTR(mp->mnt_vnodecovered, &va, mp->mnt_cred); in tmpfs_mount() 478 MNT_ILOCK(mp); in tmpfs_mount() 484 MNT_IUNLOCK(mp); in tmpfs_mount() 520 MNT_ILOCK(mp); in tmpfs_unmount() [all …]
|
| /freebsd-14.2/sys/fs/nullfs/ |
| H A D | null_vfsops.c | 193 mp->mnt_data = xmp; in nullfs_mount() 207 MNT_ILOCK(mp); in nullfs_mount() 209 MNT_IUNLOCK(mp); in nullfs_mount() 232 MNT_ILOCK(mp); in nullfs_mount() 241 MNT_IUNLOCK(mp); in nullfs_mount() 242 vfs_getnewfsid(mp); in nullfs_mount() 247 mp->mnt_stat.f_mntfromname, mp->mnt_stat.f_mntonname); in nullfs_mount() 272 MNT_ILOCK(mp); in nullfs_unmount() 274 MNT_IUNLOCK(mp); in nullfs_unmount() 277 MNT_IUNLOCK(mp); in nullfs_unmount() [all …]
|
| /freebsd-14.2/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-14.2/sys/fs/unionfs/ |
| H A D | union_vfsops.c | 157 error = VOP_GETATTR(mp->mnt_vnodecovered, &va, mp->mnt_cred); in unionfs_domount() 269 mp->mnt_data = ump; in unionfs_domount() 289 mp->mnt_data = NULL; in unionfs_domount() 321 mp->mnt_data = NULL; in unionfs_domount() 349 MNT_ILOCK(mp); in unionfs_domount() 352 mp->mnt_flag |= MNT_LOCAL; in unionfs_domount() 355 MNT_IUNLOCK(mp); in unionfs_domount() 360 vfs_getnewfsid(mp); in unionfs_domount() 366 mp->mnt_stat.f_mntfromname, mp->mnt_stat.f_mntonname); in unionfs_domount() 408 mp->mnt_data = NULL; in unionfs_unmount() [all …]
|
| /freebsd-14.2/libexec/talkd/ |
| H A D | process.c | 69 rp->type = mp->type; in process_request() 76 mp->id_num = ntohl(mp->id_num); in process_request() 77 mp->addr.sa_family = ntohs(mp->addr.sa_family); in process_request() 84 mp->ctl_addr.sa_family = ntohs(mp->ctl_addr.sa_family); in process_request() 97 mp->pid = ntohl(mp->pid); in process_request() 100 switch (mp->type) { in process_request() 103 do_announce(mp, rp); in process_request() 112 insert_table(mp, rp); in process_request() 116 ptr = find_match(mp); in process_request() 146 result = find_user(mp->r_name, mp->r_tty); in do_announce() [all …]
|
| /freebsd-14.2/sys/ufs/ffs/ |
| H A D | ffs_vfsops.c | 409 MNT_ILOCK(mp); in ffs_mount() 637 if (MOUNTEDSOFTDEP(mp) && (mp->mnt_flag & in ffs_mount() 700 MNT_ILOCK(mp); in ffs_mount() 768 MNT_ILOCK(mp); in ffs_reload() 858 MNT_ILOCK(mp); in ffs_reload() 1013 mp->mnt_gjprovider = realloc(mp->mnt_gjprovider, len, in ffs_mountfs() 1073 MNT_ILOCK(mp); in ffs_mountfs() 1195 MNT_ILOCK(mp); in ffs_mountfs() 1454 vfs_rel(mp); in ffs_unmount() 1627 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-14.2/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-14.2/sys/fs/devfs/ |
| H A D | devfs_vfsops.c | 68 devfs_mount(struct mount *mp) in devfs_mount() argument 97 vfs_mount_error(mp, "%s", in devfs_mount() 113 fmp = mp->mnt_data; in devfs_mount() 129 MNT_ILOCK(mp); in devfs_mount() 130 mp->mnt_flag |= MNT_LOCAL; in devfs_mount() 136 MNT_IUNLOCK(mp); in devfs_mount() 137 fmp->dm_mount = mp; in devfs_mount() 139 vfs_getnewfsid(mp); in devfs_mount() 181 fmp = VFSTODEVFS(mp); in devfs_unmount() 195 mp->mnt_data = NULL; in devfs_unmount() [all …]
|
| /freebsd-14.2/usr.bin/mail/ |
| H A D | quit.c | 73 struct message *mp; in quit() local 144 for (mp = &message[0]; mp < &message[msgCount]; mp++) { in quit() 146 mp->m_flag &= ~MNEW; in quit() 161 for (c = 0, p = 0, mp = &message[0]; mp < &message[msgCount]; mp++) { in quit() 248 for (mp = &message[0]; mp < &message[msgCount]; mp++) in quit() 338 struct message *mp; in writeback() local 352 for (mp = &message[0]; mp < &message[msgCount]; mp++) in writeback() 353 if ((mp->m_flag&MPRESERVE)||(mp->m_flag&MTOUCH)==0) { in writeback() 392 struct message *mp; in edstop() local 404 for (mp = &message[0], gotcha = 0; mp < &message[msgCount]; mp++) { in edstop() [all …]
|
| H A D | cmd1.c | 59 struct message *mp; in headers() local 71 mp = &message[0]; in headers() 75 dot = mp; in headers() 76 for (; mp < &message[msgCount]; mp++) { in headers() 195 sprintf(wcount, "%3ld/%-5ld", mp->m_lines, mp->m_size); in printhead() 198 skin(hfield("to", mp)) : nameof(mp, 0); in printhead() 328 touch(mp); in type1() 329 dot = mp; in type1() 383 touch(mp); in top() 384 dot = mp; in top() [all …]
|
| /freebsd-14.2/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-14.2/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-14.2/sys/contrib/openzfs/module/os/freebsd/spl/ |
| H A D | spl_vfs.c | 126 struct mount *mp; in mount_snapshot() local 173 mp->mnt_optnew = NULL; in mount_snapshot() 175 mp->mnt_optnew = mp->mnt_opt; in mount_snapshot() 176 mp->mnt_opt = NULL; in mount_snapshot() 197 error = VFS_MOUNT(mp); in mount_snapshot() 211 vfs_unbusy(mp); in mount_snapshot() 220 mp->mnt_opt = mp->mnt_optnew; in mount_snapshot() 221 (void) VFS_STATFS(mp, &mp->mnt_stat); in mount_snapshot() 234 mp->mnt_optnew = NULL; in mount_snapshot() 257 vfs_op_exit(mp); in mount_snapshot() [all …]
|
| /freebsd-14.2/usr.sbin/lpr/lpd/ |
| H A D | modes.c | 204 struct modes *mp; in msearch() local 206 for (mp = cmodes; mp->name; ++mp) in msearch() 207 if (CHK(str, mp->name)) { in msearch() 209 ip->c_cflag |= mp->set; in msearch() 212 for (mp = imodes; mp->name; ++mp) in msearch() 213 if (CHK(str, mp->name)) { in msearch() 215 ip->c_iflag |= mp->set; in msearch() 218 for (mp = lmodes; mp->name; ++mp) in msearch() 221 ip->c_lflag |= mp->set; in msearch() 224 for (mp = omodes; mp->name; ++mp) in msearch() [all …]
|
| /freebsd-14.2/sys/fs/fuse/ |
| H A D | fuse_vfsops.c | 231 data, mp, err); in fuse_vfs_remount() 241 data, mp, err); in fuse_vfs_remount() 412 data->mp = mp; in fuse_vfsop_mount() 420 vfs_getnewfsid(mp); in fuse_vfsop_mount() 421 MNT_ILOCK(mp); in fuse_vfsop_mount() 434 MNT_IUNLOCK(mp); in fuse_vfsop_mount() 453 if (data != NULL && data->mp == mp) { in fuse_vfsop_mount() 460 data->mp = NULL; in fuse_vfsop_mount() 517 data->mp = NULL; in fuse_vfsop_unmount() 522 MNT_ILOCK(mp); in fuse_vfsop_unmount() [all …]
|
| /freebsd-14.2/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-14.2/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-14.2/bin/stty/ |
| H A D | modes.c | 213 const struct modes *mp; in msearch() local 218 for (mp = cmodes; mp->name; ++mp) in msearch() 219 if (CHK(mp->name)) { in msearch() 221 ip->t.c_cflag |= mp->set; in msearch() 225 for (mp = imodes; mp->name; ++mp) in msearch() 226 if (CHK(mp->name)) { in msearch() 228 ip->t.c_iflag |= mp->set; in msearch() 232 for (mp = lmodes; mp->name; ++mp) in msearch() 233 if (CHK(mp->name)) { in msearch() 239 for (mp = omodes; mp->name; ++mp) in msearch() [all …]
|