Lines Matching +full:work +full:- +full:around

1 /*-
2 * SPDX-License-Identifier: BSD-4-Clause
18 * 4. Neither the name of the author nor the names of any co-contributors
124 struct ifmedia_entry *ife = mii->mii_media.ifm_cur; in ciphy_service()
132 ciphy_fixup(sc); /* XXX hardware bug work-around */ in ciphy_service()
134 switch (IFM_SUBTYPE(ife->ifm_media)) { in ciphy_service()
154 if ((ife->ifm_media & IFM_FDX) != 0) { in ciphy_service()
160 if (IFM_SUBTYPE(ife->ifm_media) == IFM_1000_T) { in ciphy_service()
162 if ((ife->ifm_media & IFM_ETH_MASTER) != 0) in ciphy_service()
184 if (IFM_SUBTYPE(ife->ifm_media) != IFM_AUTO) in ciphy_service()
197 if (++sc->mii_ticks == 0) in ciphy_service()
202 if (sc->mii_ticks <= sc->mii_anegticks) in ciphy_service()
205 sc->mii_ticks = 0; in ciphy_service()
217 if (sc->mii_media_active != mii->mii_media_active || in ciphy_service()
218 sc->mii_media_status != mii->mii_media_status || in ciphy_service()
229 struct mii_data *mii = sc->mii_pdata; in ciphy_status()
232 mii->mii_media_status = IFM_AVALID; in ciphy_status()
233 mii->mii_media_active = IFM_ETHER; in ciphy_status()
238 mii->mii_media_status |= IFM_ACTIVE; in ciphy_status()
243 mii->mii_media_active |= IFM_LOOP; in ciphy_status()
248 mii->mii_media_active |= IFM_NONE; in ciphy_status()
256 mii->mii_media_active |= IFM_10_T; in ciphy_status()
259 mii->mii_media_active |= IFM_100_TX; in ciphy_status()
262 mii->mii_media_active |= IFM_1000_T; in ciphy_status()
265 device_printf(sc->mii_dev, "unknown PHY speed %x\n", in ciphy_status()
271 mii->mii_media_active |= IFM_FDX | mii_phy_flowstatus(sc); in ciphy_status()
273 mii->mii_media_active |= IFM_HDX; in ciphy_status()
275 if ((IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_T) && in ciphy_status()
277 mii->mii_media_active |= IFM_ETH_MASTER; in ciphy_status()
327 * Work around speed polling bug in VT3119/VT3216 in ciphy_fixup()
346 * Work around speed polling bug in VT3119/VT3216 in ciphy_fixup()
364 device_printf(sc->mii_dev, "unknown CICADA PHY model %x\n", in ciphy_fixup()