/freebsd-11-stable/sys/dev/cxgbe/ |
H A D | t4_tracer.c | 192 ifmedia_init(&sc->media, IFM_IMASK, tracer_media_change, 194 ifmedia_add(&sc->media, IFM_ETHER | IFM_FDX | IFM_NONE, 0, NULL); 195 ifmedia_set(&sc->media, IFM_ETHER | IFM_FDX | IFM_NONE); 221 ifmedia_removeall(&sc->media); 268 ifmedia_removeall(&sc->media); 481 rc = ifmedia_ioctl(ifp, ifr, &sc->media, cmd);
|
/freebsd-11-stable/sys/dev/mii/ |
H A D | smscphy.c | 163 /* Update the media status. */ 172 smscphy_auto(struct mii_softc *sc, int media) argument 177 if ((media & IFM_FLOW) != 0 || (sc->mii_flags & MIIF_FORCEPAUSE) != 0)
|
H A D | brgphy.c | 284 /* Add the supported media types */ 387 /* Update the media status. */ 392 * the DSP on the Broadcom PHYs if the media changes. 428 brgphy_setmedia(struct mii_softc *sc, int media) argument 432 switch (IFM_SUBTYPE(media)) { 448 if ((media & IFM_FDX) != 0) { 461 if (IFM_SUBTYPE(media) != IFM_1000_T && 462 IFM_SUBTYPE(media) != IFM_1000_SX) { 467 if (IFM_SUBTYPE(media) == IFM_1000_T) { 469 if ((media 617 brgphy_mii_phy_auto(struct mii_softc *sc, int media) argument [all...] |
H A D | ip1000phy.c | 209 /* Update the media status. */ 299 ip1000phy_mii_phy_auto(struct mii_softc *sc, int media) argument 311 if ((media & IFM_FLOW) != 0 || (sc->mii_flags & MIIF_FORCEPAUSE) != 0)
|
H A D | smcphy.c | 176 /* Update the media status. */ 209 smcphy_auto(struct mii_softc *sc, int media) argument 214 if ((media & IFM_FLOW) != 0 || (sc->mii_flags & MIIF_FORCEPAUSE) != 0)
|
H A D | mii.c | 253 * Don't add a PHY that was automatically identified by having media 341 int media = 0; local 343 /* Poke the parent in case it has any media of its own to add. */ 348 media = m->ifm_media; 349 if (media == (IFM_ETHER | IFM_AUTO)) 353 ifmedia_set(&mii->mii_media, media); 455 * so we test for media in the BMSR. 552 * If the media indicates a different PHY instance, 594 * Get media status from PHYs.
|
/freebsd-11-stable/sys/dev/pdq/ |
H A D | pdq_ifsubr.c | 396 int media = 0; 399 case PDQ_PMD_TYPE_ANSI_MUTLI_MODE: media = IFM_FDDI_MMF; break; 400 case PDQ_PMD_TYPE_ANSI_SINGLE_MODE_TYPE_1: media = IFM_FDDI_SMF; break; 401 case PDQ_PMD_TYPE_ANSI_SIGNLE_MODE_TYPE_2: media = IFM_FDDI_SMF; break; 402 case PDQ_PMD_TYPE_UNSHIELDED_TWISTED_PAIR: media = IFM_FDDI_UTP; break; 403 default: media |= IFM_MANUAL; 407 media |= IFM_FDDI_DA; 409 sc->sc_ifmedia.ifm_media = media | IFM_FDDI; 489 const int media = sc->sc_ifmedia.ifm_media; 492 ifmedia_add(&sc->sc_ifmedia, media, 392 int media = 0; local 483 const int media = sc->sc_ifmedia.ifm_media; local [all...] |
/freebsd-11-stable/sys/powerpc/pseries/ |
H A D | phyp_llan.c | 90 struct ifmedia media; member in struct:llan_softc 227 ifmedia_init(&sc->media, IFM_IMASK, llan_media_change, 229 ifmedia_add(&sc->media, IFM_ETHER | IFM_AUTO, 0, NULL); 230 ifmedia_set(&sc->media, IFM_ETHER | IFM_AUTO); 249 if (IFM_TYPE(sc->media.ifm_media) != IFM_ETHER) 252 if (IFM_SUBTYPE(sc->media.ifm_media) != IFM_AUTO) 540 err = ifmedia_ioctl(ifp, (struct ifreq *)data, &sc->media, cmd);
|
/freebsd-11-stable/sys/dev/etherswitch/ukswitch/ |
H A D | ukswitch.c | 67 int media; /* cpu port media */ member in struct:ukswitch_softc 170 sc->media = 100; 179 "media", &sc->media); 182 if (sc->media != 100 && sc->media != 1000) 183 sc->media = 100; 362 if (sc->media == 100)
|
/freebsd-11-stable/sys/dev/ntb/if_ntb/ |
H A D | if_ntb.c | 96 struct ifmedia media; member in struct:ntb_net_ctx 185 ifmedia_init(&sc->media, IFM_IMASK, ntb_ifmedia_upd, 187 ifmedia_add(&sc->media, NTB_MEDIATYPE, 0, NULL); 188 ifmedia_set(&sc->media, NTB_MEDIATYPE); 206 ifmedia_removeall(&sc->media); 259 error = ifmedia_ioctl(ifp, ifr, &sc->media, command); 299 struct ifmedia *ifm = &sc->media;
|
/freebsd-11-stable/sys/net80211/ |
H A D | ieee80211.c | 94 struct ifmedia *media, int caps, int addsta, 1376 addmedia(struct ifmedia *media, int caps, int addsta, int mode, int mword) argument 1379 ifmedia_add(media, \ 1401 ADD(media, mword, mopt | IFM_IEEE80211_ADHOC); 1403 ADD(media, mword, mopt | IFM_IEEE80211_HOSTAP); 1405 ADD(media, mword, mopt | IFM_IEEE80211_ADHOC | IFM_FLAG0); 1407 ADD(media, mword, mopt | IFM_IEEE80211_MONITOR); 1409 ADD(media, mword, mopt | IFM_IEEE80211_WDS); 1411 ADD(media, mword, mopt | IFM_IEEE80211_MBSS); 1416 * Setup the media dat 1420 ieee80211_media_setup(struct ieee80211com *ic, struct ifmedia *media, int caps, int addsta, ifm_change_cb_t media_change, ifm_stat_cb_t media_stat) argument 1816 u_int media; /* if_media rate */ member in struct:ratemedia [all...] |
/freebsd-11-stable/sys/net/ |
H A D | if_epair.c | 135 struct ifmedia media; /* Media config (fake). */ member in struct:epair_softc 652 error = ifmedia_ioctl(ifp, ifr, &sc->media, cmd); 811 /* Initialise pseudo media types. */ 812 ifmedia_init(&sca->media, 0, epair_media_change, epair_media_status); 813 ifmedia_add(&sca->media, IFM_ETHER | IFM_10G_T, 0, NULL); 814 ifmedia_set(&sca->media, IFM_ETHER | IFM_10G_T); 815 ifmedia_init(&scb->media, 0, epair_media_change, epair_media_status); 816 ifmedia_add(&scb->media, IFM_ETHER | IFM_10G_T, 0, NULL); 817 ifmedia_set(&scb->media, IFM_ETHER | IFM_10G_T); 935 ifmedia_removeall(&scb->media); [all...] |
H A D | ieee8023ad_lacp.c | 459 u_int media; local 473 media = ifmr.ifm_active; 474 LACP_DPRINTF((lp, "media changed 0x%x -> 0x%x, ether = %d, fdx = %d, " 475 "link = %d\n", lp->lp_media, media, IFM_TYPE(media) == IFM_ETHER, 476 (media & IFM_FDX) != 0, ifp->if_link_state == LINK_STATE_UP)); 480 lp->lp_media = media; 485 if (IFM_TYPE(media) != IFM_ETHER || (media & IFM_FDX) == 0 || 921 LACP_DPRINTF((lp, "speed 0? media 1038 u_int media = lp->lp_media; local [all...] |
/freebsd-11-stable/sys/dev/xl/ |
H A D | if_xl.c | 276 static void xl_choose_media(struct xl_softc *sc, int *media); 475 * plus some non-MII media settings. In order to allow this, we have to 476 * add the extra media to the miibus's ifmedia struct, but we can't do 480 * extra media. 741 xl_setmode(struct xl_softc *sc, int media) argument 755 if (IFM_SUBTYPE(media) == IFM_10_T) { 767 if (IFM_SUBTYPE(media) == IFM_100_FX) { 778 if (IFM_SUBTYPE(media) == IFM_10_5) { 787 if (IFM_SUBTYPE(media) == IFM_10_FL) { 799 if (IFM_SUBTYPE(media) 1070 int media, pmcap; local 1500 xl_choose_media(struct xl_softc *sc, int *media) argument [all...] |
/freebsd-11-stable/sys/mips/cavium/octe/ |
H A D | octe.c | 163 ifmedia_init(&priv->media, 0, octe_medchange, octe_medstat); 165 ifmedia_add(&priv->media, IFM_ETHER | IFM_AUTO, 0, NULL); 166 ifmedia_set(&priv->media, IFM_ETHER | IFM_AUTO); 480 error = ifmedia_ioctl(ifp, ifr, &priv->media, cmd);
|
/freebsd-11-stable/sys/dev/en/ |
H A D | midwayvar.h | 223 /* media and phy */ 224 struct ifmedia media; member in struct:en_softc
|
/freebsd-11-stable/sys/dev/sfxge/ |
H A D | sfxge_port.c | 208 struct ifmedia_entry *ifm = sc->media.ifm_cur; 534 if ((rc = sfxge_phy_cap_mask(sc, sc->media.ifm_cur->ifm_media, 915 if_printf(sc->ifnet, "unexpected media type %d\n", medium_type); 930 * If media is not in the table, it must be IFM_AUTO. 934 ("%s: no mode for media %#x", __func__, ifmedia)); 971 ifm = sc->media.ifm_cur; 1017 ifmedia_init(&sc->media, IFM_IMASK, sfxge_media_change, 1044 ifmedia_add(&sc->media, mode_ifm, 0, NULL); 1052 ifmedia_add(&sc->media, mode_ifm, 0, NULL); 1056 ifmedia_add(&sc->media, mode_if [all...] |
/freebsd-11-stable/usr.sbin/bsnmpd/modules/snmp_atm/ |
H A D | atm_sys.c | 293 aif->pub.mib->media = mib->media;
|
/freebsd-11-stable/sys/dev/tx/ |
H A D | if_tx.c | 34 * PHYs (QS6612, AC101 and LXT970 were seen). The media support depends on 1009 * Set media options. 1031 int cfg, media; local 1036 media = ifm->ifm_cur->ifm_media; 1045 if (IFM_INST(media) == sc->serinst) { 1058 if (IFM_INST(media) == miisc->mii_inst) { 1106 if (IFM_SUBTYPE(media) == IFM_100_FX) 1116 if (IFM_SUBTYPE(media) == IFM_100_FX) 1129 mii->mii_media_active = media; 1147 * Report current media statu 1185 int media; local 1222 int media; local [all...] |
/freebsd-11-stable/sys/dev/wb/ |
H A D | if_wb.c | 470 wb_setcfg(sc, media) 472 u_int32_t media; 492 if (IFM_SUBTYPE(media) == IFM_10_T) 497 if ((media & IFM_GMASK) == IFM_FDX) 547 u_int32_t media; local 554 media = mii->mii_media_active & ~IFM_10_T; 555 media |= IFM_100_TX; 557 media = mii->mii_media_active & ~IFM_100_TX; 558 media |= IFM_10_T; 562 ifmedia_set(&mii->mii_media, media); [all...] |
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/zpool/ |
H A D | zpool_vdev.c | 187 dm_descriptor_t *drive, *media, *slice; local 203 if ((media = dm_get_associated_descriptors(*drive, DM_MEDIA, 214 * It is possible that the user has specified a removable media drive, 215 * and the media is not present. 217 if (*media == NULL) { 218 dm_free_descriptors(media); 219 vdev_error(gettext("'%s' has no media in drive\n"), name); 223 if ((slice = dm_get_associated_descriptors(*media, DM_SLICE, 225 dm_free_descriptors(media); 231 dm_free_descriptors(media); [all...] |
/freebsd-11-stable/sys/dev/ixgbe/ |
H A D | if_ix.c | 1073 * Specify the media types supported by this adapter and register 1074 * callbacks to update media and link information 1076 ifmedia_init(&adapter->media, IFM_IMASK, ixgbe_media_change, 1082 /* Set autoselect media by default */ 1083 ifmedia_set(&adapter->media, IFM_ETHER | IFM_AUTO); 1144 /* Media types with matching FreeBSD media defines */ 1146 ifmedia_add(&adapter->media, IFM_ETHER | IFM_10G_T, 0, NULL); 1148 ifmedia_add(&adapter->media, IFM_ETHER | IFM_1000_T, 0, NULL); 1150 ifmedia_add(&adapter->media, IFM_ETHER | IFM_100_TX, 0, NULL); 1152 ifmedia_add(&adapter->media, IFM_ETHE [all...] |
/freebsd-11-stable/lib/libefivar/ |
H A D | efivar-dp-xlate.c | 132 const_efidp media, file, walker; local 140 walker = media = dp; 163 len = efidp_format_device_path_node(buf, sizeof(buf), media); 280 * Walk through the device_path until we find either a media device path. 284 * If we find a media descriptor, we search through the geom mesh to see if we 332 * Find the first media device path we can. If we go too far, 334 * then we didn't find a media device path, so signal that error. 347 * There's several types of media paths. We're only interested in the 408 * Create a media device path node. 409 * append the relative path from the mountpoint to the media devic [all...] |
/freebsd-11-stable/sys/dev/xe/ |
H A D | if_xe.c | 199 * 2 = Most function calls, ioctls and media selection progress 265 /* Add supported media types */ 276 /* Default is to autoselect best supported media type */ 326 * anything if there's no address assigned to the card, or if media selection 441 /* Start media selection */ 453 * function. If media selection is in progress we set IFF_DRV_OACTIVE ourselves 572 * Someone wants to get/set media options. 660 /* XXX - Need to update media status here */ 937 * Change media selection. 953 * Some card/media combo [all...] |
/freebsd-11-stable/sys/dev/qlxgb/ |
H A D | qla_def.h | 149 struct ifmedia media; member in struct:qla_host
|