/freebsd/sys/net/ |
H A D | if_ethersubr.c | 448 eh = mtod(*mp, struct ether_header *); in ether_set_pcp() 451 (*mp)->m_flags &= ~M_VLANTAG; in ether_set_pcp() 458 if (ether_8021q_frame(mp, ifp, ifp, &qtag)) in ether_set_pcp() 1441 m_freem(*mp); in ether_8021q_frame() 1442 *mp = NULL; in ether_8021q_frame() 1451 if ((*mp)->m_flags & M_VLANTAG) { in ether_8021q_frame() 1469 (*mp)->m_pkthdr.ether_vtag = tag; in ether_8021q_frame() 1470 (*mp)->m_flags |= M_VLANTAG; in ether_8021q_frame() 1472 *mp = ether_vlanencap_proto(*mp, tag, qtag->proto); in ether_8021q_frame() 1473 if (*mp == NULL) { in ether_8021q_frame() [all …]
|
/freebsd/sys/kern/ |
H A D | vfs_lookup.c | 247 struct mount *mp; in nameicap_check_dotdot() local 257 mp = dp->v_mount; in nameicap_check_dotdot() 259 (mp->mnt_flag & MNT_LOCAL) == 0) in nameicap_check_dotdot() 800 return (!MNT_EXTENDED_SHARED(mp)); in needs_exclusive_leaf() 821 struct mount *mp; in vfs_lookup_degenerate() local 828 mp = atomic_load_ptr(&dp->v_mount); in vfs_lookup_degenerate() 894 struct mount *mp; in vfs_lookup_cross_mount() local 907 mp = dp->v_mountedhere; in vfs_lookup_cross_mount() 938 if (dp->v_mountedhere != mp) { in vfs_lookup_cross_mount() 950 if (vfs_busy(mp, 0) != 0) in vfs_lookup_cross_mount() [all …]
|
H A D | vfs_extattr.c | 82 struct mount *mp, *mp_writable; in sys_extattrctl() local 100 mp = NULL; in sys_extattrctl() 118 mp = nd.ni_vp->v_mount; in sys_extattrctl() 119 error = vfs_busy(mp, 0); in sys_extattrctl() 123 mp = NULL; in sys_extattrctl() 150 if (mp != NULL) in sys_extattrctl() 151 vfs_unbusy(mp); in sys_extattrctl() 176 struct mount *mp; in extattr_set_vp() local 217 vn_finished_write(mp); in extattr_set_vp() 539 struct mount *mp; in extattr_delete_vp() local [all …]
|
H A D | kern_linker.c | 1484 module_t mp; in sys_kldfirstmod() local 1498 if (mp != NULL) in sys_kldfirstmod() 1629 mp = *mdp; in linker_addmodules() 1632 modname = mp->md_cval; in linker_addmodules() 1718 mp = *mdp; in linker_preload() 1750 mp = *mdp; in linker_preload() 1803 mp = *mdp; in linker_preload() 2333 mp = *mdp; in linker_load_dependencies() 2336 modname = mp->md_cval; in linker_load_dependencies() 2348 mp = *mdp; in linker_load_dependencies() [all …]
|
/freebsd/sys/geom/stripe/ |
H A D | g_stripe.c | 115 g_stripe_init(struct g_class *mp __unused) in g_stripe_init() 127 g_stripe_fini(struct g_class *mp __unused) in g_stripe_fini() 859 LIST_FOREACH(gp, &mp->geom, geom) { in g_stripe_create() 867 gp = g_new_geomf(mp, "%s", md->md_name); in g_stripe_create() 942 struct g_class *mp __unused, struct g_geom *gp) in g_stripe_destroy_geom() 968 gp = g_new_geomf(mp, "stripe:taste"); in g_stripe_taste() 1012 LIST_FOREACH(gp, &mp->geom, geom) { in g_stripe_taste() 1149 LIST_FOREACH(gp, &mp->geom, geom) { in g_stripe_find_device() 1192 sc = g_stripe_find_device(mp, name); in g_stripe_ctl_destroy() 1224 g_stripe_ctl_create(req, mp); in g_stripe_config() [all …]
|
/freebsd/crypto/openssl/providers/common/ |
H A D | provider_util.c | 234 OSSL_PARAM mac_params[6], *mp = mac_params; in ossl_prov_set_macctx() local 264 *mp++ = OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_DIGEST, in ossl_prov_set_macctx() 267 *mp++ = OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_CIPHER, in ossl_prov_set_macctx() 270 *mp++ = OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_PROPERTIES, in ossl_prov_set_macctx() 275 *mp++ = OSSL_PARAM_construct_utf8_string(OSSL_ALG_PARAM_ENGINE, in ossl_prov_set_macctx() 280 *mp++ = OSSL_PARAM_construct_octet_string(OSSL_MAC_PARAM_KEY, in ossl_prov_set_macctx() 284 *mp = OSSL_PARAM_construct_end(); in ossl_prov_set_macctx()
|
/freebsd/usr.sbin/rpc.lockd/ |
H A D | kern.c | 569 show(LOCKD_MSG *mp) in show() argument 575 syslog(LOG_DEBUG, "process ID: %lu\n", (long)mp->lm_msg_ident.pid); in show() 577 for (t = buf, p = (u_int8_t *)mp->lm_fh, in show() 578 len = mp->lm_fh_len; in show() 586 syslog(LOG_DEBUG, "fh_len %d, fh %s\n", (int)mp->lm_fh_len, buf); in show() 590 (unsigned long long)mp->lm_fl.l_start, in show() 591 (unsigned long long)mp->lm_fl.l_len, (u_long)mp->lm_fl.l_pid, in show() 592 mp->lm_fl.l_type, mp->lm_fl.l_whence); in show() 595 syslog(LOG_DEBUG, "wait was %s\n", mp->lm_wait ? "set" : "not set"); in show()
|
/freebsd/sys/dev/qlxgb/ |
H A D | qla_os.c | 1385 if (mp == NULL) { in qla_get_mbuf() 1389 if (mp == NULL) { in qla_get_mbuf() 1396 mp->m_len = mp->m_pkthdr.len = MCLBYTES; in qla_get_mbuf() 1400 if (mp == NULL) { in qla_get_mbuf() 1407 mp->m_len = mp->m_pkthdr.len = MJUM9BYTES; in qla_get_mbuf() 1411 mp->m_len = mp->m_pkthdr.len = MCLBYTES; in qla_get_mbuf() 1413 mp->m_len = mp->m_pkthdr.len = MJUM9BYTES; in qla_get_mbuf() 1415 mp->m_data = mp->m_ext.ext_buf; in qla_get_mbuf() 1430 mtod(mp, void *), mp->m_len, in qla_get_mbuf() 1434 m_free(mp); in qla_get_mbuf() [all …]
|
/freebsd/crypto/openssh/ |
H A D | addr.c | 461 char addrbuf[64], *mp, *cp; in addr_pton_cidr() local 467 if ((mp = strchr(addrbuf, '/')) != NULL) { in addr_pton_cidr() 468 *mp = '\0'; in addr_pton_cidr() 469 mp++; in addr_pton_cidr() 470 masklen = strtoul(mp, &cp, 10); in addr_pton_cidr() 471 if (*mp < '0' || *mp > '9' || *cp != '\0' || masklen > 128) in addr_pton_cidr() 478 if (mp == NULL) in addr_pton_cidr()
|
/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_archive_match_path.c | 227 const char *mp; in test_inclusion_mbs() local 264 archive_match_path_unmatched_inclusions_next(m, &mp)); in test_inclusion_mbs() 276 const char *mp; in test_inclusion_wcs() local 313 archive_match_path_unmatched_inclusions_next(m, &mp)); in test_inclusion_wcs() 375 const char *mp; in test_exclusion_and_inclusion() local 415 archive_match_path_unmatched_inclusions_next(m, &mp)); in test_exclusion_and_inclusion() 416 assertEqualString("^a1*", mp); in test_exclusion_and_inclusion() 418 archive_match_path_unmatched_inclusions_next(m, &mp)); in test_exclusion_and_inclusion()
|
/freebsd/usr.sbin/makefs/ffs/ |
H A D | ufs_bswap.h | 42 #define UFS_MPNEEDSWAP(mp) (VFSTOUFS(mp)->um_flags & UFS_NEEDSWAP) argument 46 #define UFS_MPNEEDSWAP(mp) (0) argument
|
/freebsd/usr.sbin/mlxcontrol/ |
H A D | command.c | 650 struct mlx_pause mp; in cmd_pause() local 656 mp.mp_which = 0; in cmd_pause() 657 mp.mp_when = 30; in cmd_pause() 658 mp.mp_howlong = 30; in cmd_pause() 667 mp.mp_when = strtol(optarg, &cp, 0); in cmd_pause() 672 mp.mp_howlong = strtol(optarg, &cp, 0); in cmd_pause() 694 mp.mp_which = cancel ? MLX_PAUSE_CANCEL : MLX_PAUSE_ALL; in cmd_pause() 702 mp.mp_which |= (1 << ch); in cmd_pause() 706 if ((ioctl(fd, MLX_PAUSE_CHANNEL, &mp)) < 0) in cmd_pause()
|
/freebsd/usr.bin/mail/ |
H A D | send.c | 49 sendmessage(struct message *mp, FILE *obuf, struct ignoretab *doign, in sendmessage() argument 68 ibuf = setinput(mp); in sendmessage() 69 count = mp->m_size; in sendmessage() 96 statusput(mp, obuf, prefix); in sendmessage() 125 statusput(mp, obuf, prefix); in sendmessage() 148 statusput(mp, obuf, prefix); in sendmessage() 221 statusput(struct message *mp, FILE *obuf, char *prefix) in statusput() argument 226 if (mp->m_flag & MREAD) in statusput() 228 if ((mp->m_flag & MNEW) == 0) in statusput()
|
/freebsd/usr.sbin/ppp/ |
H A D | lcp.c | 386 struct mp *mp; in LcpSendConfigReq() local 479 mp = &lcp->fsm.bundle->ncp.mp; in LcpSendConfigReq() 480 if (mp->cfg.enddisc.class != 0 && IsEnabled(mp->cfg.negenddisc) && in LcpSendConfigReq() 482 *o->data = mp->cfg.enddisc.class; in LcpSendConfigReq() 483 memcpy(o->data+1, mp->cfg.enddisc.address, mp->cfg.enddisc.len); in LcpSendConfigReq() 670 struct mp *mp; in LcpDecodeConfig() local 686 mp = &lcp->fsm.bundle->ncp.mp; in LcpDecodeConfig() 692 if (mp->cfg.mrru) { in LcpDecodeConfig() 722 if (mp->cfg.mrru) { in LcpDecodeConfig() 1171 mp = &lcp->fsm.bundle->ncp.mp; in LcpDecodeConfig() [all …]
|
/freebsd/sys/fs/nfsclient/ |
H A D | nfs_clnode.c | 284 struct mount *mp; in ncl_reclaim() local 287 mp = vp->v_mount; in ncl_reclaim() 315 MNT_ILOCK(mp); in ncl_reclaim() 316 if ((mp->mnt_kern_flag & MNTK_UNMOUNTF) == 0) { in ncl_reclaim() 317 MNT_IUNLOCK(mp); in ncl_reclaim() 320 MNT_IUNLOCK(mp); in ncl_reclaim()
|
/freebsd/sys/netinet6/ |
H A D | frag6.c | 443 m = *mp; in frag6_input() 452 *mp = NULL; in frag6_input() 468 *mp = NULL; in frag6_input() 484 *mp = NULL; in frag6_input() 514 *mp = m; in frag6_input() 528 *mp = NULL; in frag6_input() 664 *mp = NULL; in frag6_input() 825 *mp = NULL; in frag6_input() 907 *mp = NULL; in frag6_input() 912 *mp = m; in frag6_input() [all …]
|
/freebsd/contrib/nvi/common/ |
H A D | main.c | 424 MSGS *mp; in v_end() local 474 while ((mp = SLIST_FIRST(gp->msgq)) != NULL) { in v_end() 476 mp->mtype == M_ERR ? "ex/vi: " : "", (int)mp->len, mp->buf); in v_end() 479 free(mp->buf); in v_end() 480 free(mp); in v_end()
|
/freebsd/contrib/smbfs/lib/smb/ |
H A D | mbuf.c | 173 struct mbuf *m, *mp; in m_getm() local 176 for (mp = top; ; mp = mp->m_next) { in m_getm() 177 len -= M_TRAILINGSPACE(mp); in m_getm() 178 if (mp->m_next == NULL) in m_getm() 185 mp->m_next = m; in m_getm()
|
/freebsd/sys/netipsec/ |
H A D | ipsec_output.c | 1079 ipsec_encap(struct mbuf **mp, struct secasindex *saidx) in ipsec_encap() argument 1090 ip = mtod(*mp, struct ip *); in ipsec_encap() 1113 ip6 = mtod(*mp, struct ip6_hdr *); in ipsec_encap() 1130 *mp = ipsec_prepend(*mp, sizeof(struct ip), M_NOWAIT); in ipsec_encap() 1131 if (*mp == NULL) in ipsec_encap() 1133 ip = mtod(*mp, struct ip *); in ipsec_encap() 1137 ip->ip_len = htons((*mp)->m_pkthdr.len); in ipsec_encap() 1153 *mp = ipsec_prepend(*mp, sizeof(struct ip6_hdr), M_NOWAIT); in ipsec_encap() 1154 if (*mp == NULL) in ipsec_encap() 1156 ip6 = mtod(*mp, struct ip6_hdr *); in ipsec_encap() [all …]
|
/freebsd/sys/ufs/ffs/ |
H A D | ffs_alloc.c | 2263 struct mount *mp; in ffs_blkfree_cg() local 2390 mp = UFSTOVFS(ump); in ffs_blkfree_cg() 2555 struct mount *mp; in ffs_blkfree_sendtrim() local 2578 mp = UFSTOVFS(ump); in ffs_blkfree_sendtrim() 3011 struct mount *mp; in ffs_getcg() local 3025 mp = devvp->v_mount; in ffs_getcg() 3037 sfs = &mp->mnt_stat; in ffs_getcg() 3268 struct mount *mp; in sysctl_ffs_fsck() local 3293 if (mp == NULL || in sysctl_ffs_fsck() 3299 ump = VFSTOUFS(mp); in sysctl_ffs_fsck() [all …]
|
/freebsd/contrib/netbsd-tests/fs/vfs/ |
H A D | t_unpriv.c | 48 owner(const atf_tc_t *tc, const char *mp) in owner() argument 80 dirperms(const atf_tc_t *tc, const char *mp) in dirperms() argument 125 times(const atf_tc_t *tc, const char *mp) in times() argument 179 flags(const atf_tc_t *tc, const char *mp) in flags() argument
|
/freebsd/sys/contrib/openzfs/lib/libzutil/os/freebsd/ |
H A D | zutil_import_os.c | 191 struct gclass *mp; in zpool_find_import_blkid() local 213 LIST_FOREACH(mp, &mesh.lg_class, lg_class) { in zpool_find_import_blkid() 214 if (skip_zvols && strcmp(mp->lg_name, "ZFS::ZVOL") == 0) in zpool_find_import_blkid() 216 LIST_FOREACH(gp, &mp->lg_geom, lg_geom) { in zpool_find_import_blkid()
|
/freebsd/usr.sbin/bsdinstall/partedit/ |
H A D | diskmenu.c | 41 char size[16], *mp; in diskmenu_show() local 56 mp = items[i].mountpoint != NULL ? items[i].mountpoint : ""; in diskmenu_show() 58 " %-9s %-15s %s", size, items[i].type, mp); in diskmenu_show()
|
/freebsd/sys/geom/eli/ |
H A D | g_eli.c | 211 static void g_eli_init(struct g_class *mp); 212 static void g_eli_fini(struct g_class *mp); 772 gp = g_new_geomf(mp, "eli:taste"); in g_eli_read_metadata_offset() 816 return (g_eli_read_metadata_offset(mp, pp, in g_eli_read_metadata() 1340 error = g_eli_read_metadata(mp, pp, &md); in g_eli_taste() 1490 gp = g_eli_create(NULL, mp, pp, &md, mkey, nkey); in g_eli_taste() 1589 struct g_class *mp; in g_eli_shutdown_pre_sync() local 1594 mp = arg; in g_eli_shutdown_pre_sync() 1596 LIST_FOREACH_SAFE(gp, &mp->geom, geom, gp2) { in g_eli_shutdown_pre_sync() 1615 g_eli_init(struct g_class *mp) in g_eli_init() argument [all …]
|
/freebsd/contrib/file/src/ |
H A D | apprentice.c | 91 struct magic *mp; member 1297 (void)memset(&mp[mset[i].count], 0, sizeof(*mp) * in addentry() 1299 mset[i].me = mp; in addentry() 1389 if (me.mp) in load_1() 1417 set_test_type(me[starttest].mp, me[i].mp); in set_text_binary() 1423 me[i].mp->desc[0] ? me[i].mp->desc : "(no description)", in set_text_binary() 1499 free(me[i].mp); in magic_entry_free() 2046 if (me->mp == NULL) { in parse() 2068 me->mp = nm; in parse() 2076 if (me->mp != NULL) in parse() [all …]
|