/freebsd/sys/fs/ext2fs/ |
H A D | ext2_bmap.c | 95 struct mount *mp; in ext4_bmapext() local 105 mp = vp->v_mount; in ext4_bmapext() 106 ump = VFSTOEXT2(mp); in ext4_bmapext() 158 struct mount *mp; in readindir() local 162 mp = vp->v_mount; in readindir() 163 ump = VFSTOEXT2(mp); in readindir() 215 struct mount *mp; in ext2_bmaparray() local 224 mp = vp->v_mount; in ext2_bmaparray() 225 ump = VFSTOEXT2(mp); in ext2_bmaparray() 332 struct mount *mp; in ext2_bmap_seekdata() local [all …]
|
/freebsd/sys/geom/multipath/ |
H A D | g_multipath.c | 541 LIST_FOREACH(gp, &mp->geom, geom) { in g_multipath_create() 921 gp = g_multipath_create(mp, &md); in g_multipath_taste() 1148 gp = g_multipath_create(mp, &md); in g_multipath_ctl_create() 1500 g_multipath_ctl_add(req, mp); in g_multipath_config() 1502 g_multipath_ctl_prefer(req, mp); in g_multipath_config() 1504 g_multipath_ctl_create(req, mp); in g_multipath_config() 1508 g_multipath_ctl_stop(req, mp); in g_multipath_config() 1510 g_multipath_ctl_destroy(req, mp); in g_multipath_config() 1512 g_multipath_ctl_fail(req, mp, 1); in g_multipath_config() 1516 g_multipath_ctl_remove(req, mp); in g_multipath_config() [all …]
|
/freebsd/sys/geom/mirror/ |
H A D | g_mirror_ctl.c | 55 LIST_FOREACH(gp, &mp->geom, geom) { in g_mirror_find_device() 90 sc = g_mirror_find_device(mp, name); in g_mirror_find_launched_device() 1107 g_mirror_ctl_configure(req, mp); in g_mirror_config() 1109 g_mirror_ctl_create(req, mp); in g_mirror_config() 1111 g_mirror_ctl_rebuild(req, mp); in g_mirror_config() 1113 g_mirror_ctl_insert(req, mp); in g_mirror_config() 1115 g_mirror_ctl_remove(req, mp); in g_mirror_config() 1117 g_mirror_ctl_resize(req, mp); in g_mirror_config() 1121 g_mirror_ctl_forget(req, mp); in g_mirror_config() 1123 g_mirror_ctl_stop(req, mp, 0); in g_mirror_config() [all …]
|
/freebsd/sys/ufs/ffs/ |
H A D | ffs_softdep.c | 105 struct mount *mp, in softdep_mount() argument 496 MNT_ILOCK(mp); in softdep_check_suspend() 499 msleep(&mp->mnt_secondary_writes, MNT_MTX(mp), in softdep_check_suspend() 502 MNT_ILOCK(mp); in softdep_check_suspend() 526 (void) mp; in softdep_get_depcounts() 2085 mp); in softdep_waitidle() 2629 mp->mnt_kern_flag = (mp->mnt_kern_flag & ~MNTK_ASYNC) | in softdep_mount() 13850 if (ffs_own_mount(mp) && MOUNTEDSOFTDEP(mp)) { in softdep_ast_cleanup_proc() 14297 mp = NULL; in softdep_bp_to_mp() 14301 mp = NULL; in softdep_bp_to_mp() [all …]
|
/freebsd/sys/geom/raid3/ |
H A D | g_raid3_ctl.c | 53 LIST_FOREACH(gp, &mp->geom, geom) { in g_raid3_find_device() 186 sc = g_raid3_find_device(mp, name); in g_raid3_ctl_configure() 283 sc = g_raid3_find_device(mp, name); in g_raid3_ctl_rebuild() 367 sc = g_raid3_find_device(mp, name); in g_raid3_ctl_stop() 449 sc = g_raid3_find_device(mp, name); in g_raid3_ctl_insert() 553 sc = g_raid3_find_device(mp, name); in g_raid3_ctl_remove() 616 g_raid3_ctl_configure(req, mp); in g_raid3_config() 618 g_raid3_ctl_insert(req, mp); in g_raid3_config() 620 g_raid3_ctl_rebuild(req, mp); in g_raid3_config() 622 g_raid3_ctl_remove(req, mp); in g_raid3_config() [all …]
|
/freebsd/sbin/routed/ |
H A D | radix.c | 476 if (*mp > *np) in rn_lexobetter() 478 if (*mp == *np) in rn_lexobetter() 479 for (lim = mp + *mp; mp < lim;) in rn_lexobetter() 480 if (*mp++ > *np++) in rn_lexobetter() 605 for (mp = &x->rn_mklist; (m = *mp); mp = &m->rm_mklist) in rn_addroute() 625 for (mp = &x->rn_mklist; (m = *mp); mp = &m->rm_mklist) { in rn_addroute() 647 *mp = rn_new_radix_mask(tt, *mp); in rn_addroute() 707 for (mp = &x->rn_mklist; (m = *mp); mp = &m->rm_mklist) in rn_delete() 709 *mp = m->rm_mklist; in rn_delete() 761 for (mp = &x->rn_mklist; (m = *mp);) in rn_delete() [all …]
|
/freebsd/sys/dev/ixgbe/ |
H A D | if_fdir.c | 80 ixgbe_atr(struct tx_ring *txr, struct mbuf *mp) in ixgbe_atr() argument 93 eh = mtod(mp, struct ether_vlan_header *); in ixgbe_atr() 106 ip = (struct ip *)(mp->m_data + ehdrlen); in ixgbe_atr() 129 input.formatted.vlan_id = htobe16(mp->m_pkthdr.ether_vtag); in ixgbe_atr() 130 if (mp->m_pkthdr.ether_vtag) in ixgbe_atr() 155 ixgbe_atr(struct tx_ring *txr, struct mbuf *mp) in ixgbe_atr() argument 157 UNREFERENCED_2PARAMETER(txr, mp); in ixgbe_atr()
|
/freebsd/usr.sbin/rpc.umntall/ |
H A D | mounttab.c | 144 struct mtablist *mtabp, *mp; in write_mtab() local 157 for (mp = mtabp->mtab_next; mp != NULL; mp = mp->mtab_next) in write_mtab() 158 if (strcmp(mtabp->mtab_host, mp->mtab_host) == 0 && in write_mtab() 159 strcmp(mtabp->mtab_dirp, mp->mtab_dirp) == 0) in write_mtab() 161 if (mp != NULL) in write_mtab()
|
/freebsd/sys/fs/fuse/ |
H A D | fuse_vnops.c | 606 if (vfs_isrdonly(mp)) in fuse_vnop_allocate() 613 if (vfs_isrdonly(mp)) in fuse_vnop_allocate() 683 struct mount *mp; in fuse_vnop_bmap() local 702 mp = vnode_mount(vp); in fuse_vnop_bmap() 864 if (mp == NULL || mp != vnode_mount(outvp)) in fuse_vnop_copy_file_range() 1756 struct mount *mp; in fuse_vnop_pathconf() local 2221 struct mount *mp; in fuse_vnop_setattr() local 2230 mp = vnode_mount(vp); in fuse_vnop_setattr() 2342 if (vfs_isrdonly(mp)) in fuse_vnop_setattr() 2697 if (vfs_isrdonly(mp)) in fuse_vnop_setextattr() [all …]
|
/freebsd/sys/netinet6/ |
H A D | route6.c | 60 route6_input(struct mbuf **mp, int *offp, int proto) in route6_input() argument 70 m = *mp; in route6_input() 88 *mp = NULL; in route6_input() 109 *mp = NULL; in route6_input() 114 *mp = m; in route6_input()
|
/freebsd/sys/kern/ |
H A D | vfs_mountroot.c | 250 struct mount *mp; in vfs_mountroot_devfs() local 276 error = VFS_STATFS(mp, &mp->mnt_stat); in vfs_mountroot_devfs() 283 mp->mnt_opt = opts; in vfs_mountroot_devfs() 289 *mpp = mp; in vfs_mountroot_devfs() 290 rootdevmp = mp; in vfs_mountroot_devfs() 291 vfs_op_exit(mp); in vfs_mountroot_devfs() 825 struct mount *mp; in vfs_mountroot_parse() local 836 while (mp == NULL) { in vfs_mountroot_parse() 869 if (mp != NULL) in vfs_mountroot_parse() 1060 struct mount *mp; in vfs_mountroot() local [all …]
|
/freebsd/sys/ufs/ufs/ |
H A D | ufs_bmap.c | 103 struct mount *mp; in readindir() local 107 mp = vp->v_mount; in readindir() 108 ump = VFSTOUFS(mp); in readindir() 165 struct mount *mp; in ufs_bmaparray() local 174 mp = vp->v_mount; in ufs_bmaparray() 175 ump = VFSTOUFS(mp); in ufs_bmaparray() 178 maxrun = mp->mnt_iosize_max / mp->mnt_stat.f_iosize - 1; in ufs_bmaparray() 349 struct mount *mp; in ufs_bmap_seekdata() local 359 mp = vp->v_mount; in ufs_bmap_seekdata() 360 ump = VFSTOUFS(mp); in ufs_bmap_seekdata() [all …]
|
/freebsd/sys/dev/qlxgb/ |
H A D | qla_isr.c | 58 struct mbuf *mp; in qla_rx_intr() local 95 mp = rxb->m_head; in qla_rx_intr() 97 QL_ASSERT((mp != NULL),\ in qla_rx_intr() 115 mp->m_len = length; in qla_rx_intr() 116 mp->m_pkthdr.len = length; in qla_rx_intr() 117 mp->m_pkthdr.rcvif = ifp; in qla_rx_intr() 119 eh = mtod(mp, struct ether_vlan_header *); in qla_rx_intr() 125 mp->m_flags |= M_VLANTAG; in qla_rx_intr() 131 m_adj(mp, ETHER_VLAN_ENCAP_LEN); in qla_rx_intr() 137 mp->m_pkthdr.csum_flags = 0; in qla_rx_intr() [all …]
|
/freebsd/usr.bin/mail/ |
H A D | util.c | 87 touch(struct message *mp) in touch() argument 90 mp->m_flag |= MTOUCH; in touch() 91 if ((mp->m_flag & MREAD) == 0) in touch() 92 mp->m_flag |= MREAD|MSTATUS; in touch() 135 ibuf = setinput(mp); in hfield() 136 if ((lc = mp->m_lines - 1) < 0) in hfield() 334 nameof(struct message *mp, int reptype) in nameof() argument 338 cp = skin(name1(mp, reptype)); in nameof() 492 name1(struct message *mp, int reptype) in name1() argument 500 if ((cp = hfield("from", mp)) != NULL) in name1() [all …]
|
/freebsd/usr.bin/chpass/ |
H A D | util.c | 81 const char **mp; in atot() local 99 for (mp = months;; ++mp) { in atot() 100 if (!*mp) in atot() 102 if (!strncasecmp(*mp, t, 3)) { in atot() 103 month = mp - months + 1; in atot()
|
/freebsd/tools/test/stress2/misc/ |
H A D | crossmp2.sh | 49 mp=${mntpoint}$i 50 [ ! -d $mp ] && mkdir $mp 51 mount | grep -q "$mp " && umount $mp
|
/freebsd/sys/fs/nullfs/ |
H A D | null_vnops.c | 390 struct mount *mp; in null_lookup() local 843 struct mount *mp; in null_want_recycle() local 848 mp = vp->v_mount; in null_want_recycle() 981 struct mount *mp; in null_vptocnp() local 998 vfs_unbusy(mp); in null_vptocnp() 1006 vfs_unbusy(mp); in null_vptocnp() 1017 vfs_unbusy(mp); in null_vptocnp() 1083 mp = NULL; in null_vput_pair() 1093 vfs_ref(mp); in null_vput_pair() 1121 vfs_unbusy(mp); in null_vput_pair() [all …]
|
/freebsd/contrib/netbsd-tests/fs/vfs/ |
H A D | t_renamerace.c | 91 renamerace(const atf_tc_t *tc, const char *mp) in renamerace() argument 110 RL(rump_sys_chdir(mp)); in renamerace() 135 if (msdosfs_fstest_unmount(tc, mp, 0) != 0) { in renamerace() 136 rump_pub_vfs_mount_print(mp, 1); in renamerace() 144 renamerace_dirs(const atf_tc_t *tc, const char *mp) in renamerace_dirs() argument 161 RL(rump_sys_chdir(mp)); in renamerace_dirs()
|
/freebsd/sys/sys/ |
H A D | kassert.h | 79 #define MPASSERT(exp, mp, msg) do { \ argument 82 (mp), #exp, __FILE__, __LINE__, __func__); \ 91 #define MPPASS(exp, mp) do { \ argument 93 MPASSERT(exp, mp, ("condition %s not met at %s:%d (%s)", \ 102 #define MPASSERT(exp, mp, msg) do { \ argument 106 #define MPPASS(exp, mp) do { \ argument
|
/freebsd/contrib/netbsd-tests/kernel/ |
H A D | t_sysv.c | 311 print_msqid_ds(struct msqid_ds *mp, mode_t mode) in print_msqid_ds() argument 317 mp->msg_perm.uid, mp->msg_perm.gid, in print_msqid_ds() 318 mp->msg_perm.cuid, mp->msg_perm.cgid, in print_msqid_ds() 319 mp->msg_perm.mode & 0777); in print_msqid_ds() 322 mp->msg_qnum, (u_long)mp->msg_qbytes, mp->msg_lspid, in print_msqid_ds() 323 mp->msg_lrpid); in print_msqid_ds() 325 printf("stime: %s", ctime(&mp->msg_stime)); in print_msqid_ds() 326 printf("rtime: %s", ctime(&mp->msg_rtime)); in print_msqid_ds() 327 printf("ctime: %s", ctime(&mp->msg_ctime)); in print_msqid_ds() 333 ATF_REQUIRE_MSG(mp->msg_perm.uid == uid && mp->msg_perm.cuid == uid, in print_msqid_ds() [all …]
|
/freebsd/sys/dev/qlxgbe/ |
H A D | ql_isr.c | 99 mp = rxb->m_head; in qla_rx_intr() 101 mpf = mp; in qla_rx_intr() 124 mpl = mpf = mp; in qla_rx_intr() 125 mp->m_flags |= M_PKTHDR; in qla_rx_intr() 131 mpl->m_next = mp; in qla_rx_intr() 132 mpl = mp; in qla_rx_intr() 240 mp = rxb->m_head; in qla_lro_intr() 242 mpf = mp; in qla_lro_intr() 265 mpl = mpf = mp; in qla_lro_intr() 272 mpl->m_next = mp; in qla_lro_intr() [all …]
|
/freebsd/sys/netgraph/ |
H A D | ng_gif.c | 111 static void ng_gif_input2(node_p node, struct mbuf **mp, int af); 112 static int ng_gif_glue_af(struct mbuf **mp, int af); 169 ng_gif_input(struct ifnet *ifp, struct mbuf **mp, int af) in ng_gif_input() argument 177 ng_gif_input2(node, mp, af); in ng_gif_input() 205 ng_gif_input2(node_p node, struct mbuf **mp, int af) in ng_gif_input2() argument 211 if ((error = ng_gif_glue_af(mp, af)) != 0) in ng_gif_input2() 215 NG_SEND_DATA_ONLY(error, priv->lower, *mp); in ng_gif_input2() 216 *mp = NULL; in ng_gif_input2() 285 ng_gif_glue_af(struct mbuf **mp, int af) in ng_gif_glue_af() argument 287 struct mbuf *m = *mp; in ng_gif_glue_af() [all …]
|
/freebsd/sys/net/ |
H A D | radix.c | 575 if (LEN(mp) > LEN(np)) in rn_lexobetter() 578 for (lim = mp + LEN(mp); mp < lim;) in rn_lexobetter() 579 if (*mp++ > *np++) in rn_lexobetter() 710 mp = &m->rm_mklist; in rn_addroute() 716 for (mp = &x->rn_mklist; (m = *mp); mp = &m->rm_mklist) in rn_addroute() 736 for (mp = &x->rn_mklist; (m = *mp); mp = &m->rm_mklist) { in rn_addroute() 759 *mp = rn_new_radix_mask(tt, *mp); in rn_addroute() 819 for (mp = &x->rn_mklist; (m = *mp); mp = &m->rm_mklist) in rn_delete() 821 *mp = m->rm_mklist; in rn_delete() 901 for (mp = &x->rn_mklist; (m = *mp);) in rn_delete() [all …]
|
/freebsd/sys/netpfil/ipfw/nat64/ |
H A D | nat64lsn.c | 423 *mp = m_pullup(*mp, off); in inspect_icmp_mbuf() 424 if (*mp == NULL) in inspect_icmp_mbuf() 448 *mp = m_pullup(*mp, off + sizeof(struct ip) + ICMP_MINLEN); in inspect_icmp_mbuf() 456 *mp = m_pullup(*mp, off + ICMP_MINLEN); in inspect_icmp_mbuf() 622 *mp = nat64lsn_reassemble4(cfg, *mp, &port); in nat64lsn_translate4() 696 *mp = NULL; in nat64lsn_translate4() 1417 ji->m = *mp; in nat64lsn_request_host() 1426 *mp = NULL; in nat64lsn_request_host() 1440 ji->m = *mp; in nat64lsn_request_pg() 1450 *mp = NULL; in nat64lsn_request_pg() [all …]
|
/freebsd/tools/tools/ncpus/ |
H A D | acpi.c | 64 struct MADT_APIC *mp; in acpi_handle_apic() local 69 mp = (struct MADT_APIC *)madtp->body; in acpi_handle_apic() 70 while (((uintptr_t)mp) - ((uintptr_t)sdp) < sdp->len) { in acpi_handle_apic() 71 switch (mp->type) { in acpi_handle_apic() 73 apic = &mp->body.local_apic; in acpi_handle_apic() 82 sapic = &mp->body.local_sapic; in acpi_handle_apic() 94 mp = (struct MADT_APIC *) ((char *)mp + mp->len); in acpi_handle_apic()
|