/freebsd/sys/dev/mii/ |
H A D | truephy.c | 227 PHY_READ(sc, MII_PHYIDR1); in truephy_reset() 228 PHY_READ(sc, MII_PHYIDR2); in truephy_reset() 230 PHY_READ(sc, TRUEPHY_CTRL); in truephy_reset() 235 PHY_READ(sc, TRUEPHY_DATA); in truephy_reset() 240 PHY_READ(sc, MII_BMCR); in truephy_reset() 241 PHY_READ(sc, TRUEPHY_CTRL); in truephy_reset() 253 PHY_READ(sc, TRUEPHY_DATA); in truephy_reset() 256 PHY_READ(sc, MII_BMCR); in truephy_reset() 257 PHY_READ(sc, TRUEPHY_CTRL); in truephy_reset() 282 sr = PHY_READ(sc, TRUEPHY_SR); in truephy_status() [all …]
|
H A D | e1000phy.c | 188 reg = PHY_READ(sc, E1000_SCR); in e1000phy_reset() 196 reg = PHY_READ(sc, E1000_SCR); in e1000phy_reset() 298 reg = PHY_READ(sc, E1000_CR); in e1000phy_reset() 340 reg = PHY_READ(sc, E1000_CR); in e1000phy_service() 354 reg = PHY_READ(sc, E1000_CR); in e1000phy_service() 382 reg = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in e1000phy_service() 417 bmsr = PHY_READ(sc, E1000_SR) | PHY_READ(sc, E1000_SR); in e1000phy_status() 418 bmcr = PHY_READ(sc, E1000_CR); in e1000phy_status() 419 ssr = PHY_READ(sc, E1000_SSR); in e1000phy_status() 465 if (((PHY_READ(sc, E1000_1GSR) | PHY_READ(sc, E1000_1GSR)) & in e1000phy_status() [all …]
|
H A D | rgephy.c | 162 anar = PHY_READ(sc, RGEPHY_MII_ANAR); in rgephy_service() 292 reg = PHY_READ(sc, RGEPHY_MII_SSR); in rgephy_linkup() 298 reg = PHY_READ(sc, URE_GMEDIASTAT); in rgephy_linkup() 300 reg = PHY_READ(sc, RL_GMEDIASTAT); in rgephy_linkup() 321 bmsr = PHY_READ(sc, RGEPHY_MII_BMSR); in rgephy_status() 322 bmcr = PHY_READ(sc, RGEPHY_MII_BMCR); in rgephy_status() 364 ssr = PHY_READ(sc, RGEPHY_MII_SSR); in rgephy_status() 388 bmsr = PHY_READ(sc, RL_GMEDIASTAT); in rgephy_status() 481 val = PHY_READ(sc, 4) & 0xFFF; in rgephy_load_dspcode() 536 ssr = PHY_READ(sc, RGEPHY_MII_SSR); in rgephy_reset() [all …]
|
H A D | ciphy.c | 192 reg = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in ciphy_service() 235 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in ciphy_status() 240 bmcr = PHY_READ(sc, CIPHY_MII_BMCR); in ciphy_status() 253 bmsr = PHY_READ(sc, CIPHY_MII_AUXCSR); in ciphy_status() 289 PHY_WRITE(x, y, (PHY_READ(x, y) | (z))) 291 PHY_WRITE(x, y, (PHY_READ(x, y) & ~(z))) 300 model = MII_MODEL(PHY_READ(sc, CIPHY_MII_PHYIDR2)); in ciphy_fixup() 301 status = PHY_READ(sc, CIPHY_MII_AUXCSR); in ciphy_fixup() 306 val = PHY_READ(sc, CIPHY_MII_ECTL1); in ciphy_fixup() 311 val = PHY_READ(sc, CIPHY_MII_AUXCSR); in ciphy_fixup() [all …]
|
H A D | xmphy.c | 154 if (PHY_READ(sc, XMPHY_MII_BMCR) & XMPHY_BMCR_AUTOEN) in xmphy_service() 186 reg = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in xmphy_service() 218 bmsr = PHY_READ(sc, XMPHY_MII_BMSR) | in xmphy_status() 219 PHY_READ(sc, XMPHY_MII_BMSR); in xmphy_status() 224 bmcr = PHY_READ(sc, XMPHY_MII_EXTSTS); in xmphy_status() 226 bmcr = PHY_READ(sc, XMPHY_MII_BMCR); in xmphy_status() 243 anlpar = PHY_READ(sc, XMPHY_MII_ANAR) & in xmphy_status() 244 PHY_READ(sc, XMPHY_MII_ANLPAR); in xmphy_status() 264 anar = PHY_READ(mii, XMPHY_MII_ANAR); in xmphy_mii_phy_auto()
|
H A D | jmphy.c | 169 ssr = PHY_READ(sc, JMPHY_SSR); in jmphy_status() 173 bmcr = PHY_READ(sc, MII_BMCR); in jmphy_status() 218 if ((PHY_READ(sc, MII_100T2SR) & GTSR_MS_RES) != 0) in jmphy_status() 231 PHY_READ(sc, JMPHY_TMCTL) & ~JMPHY_TMCTL_SLEEP_ENB); in jmphy_reset() 236 if ((PHY_READ(sc, MII_BMCR) & BMCR_RESET) == 0) in jmphy_reset() 242 t2cr = PHY_READ(sc, MII_100T2CR); in jmphy_reset() 249 val = PHY_READ(sc, JMPHY_SPEC_DATA); in jmphy_reset() 259 PHY_READ(sc, MII_100T2CR); in jmphy_reset() 262 val = PHY_READ(sc, JMPHY_SPEC_DATA); in jmphy_reset() 268 PHY_READ(sc, MII_100T2CR); in jmphy_reset() [all …]
|
H A D | ukphy_subr.c | 68 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); in ukphy_status() 72 bmcr = PHY_READ(phy, MII_BMCR); in ukphy_status() 94 anlpar = PHY_READ(phy, MII_ANAR) & PHY_READ(phy, MII_ANLPAR); in ukphy_status() 98 gtcr = PHY_READ(phy, MII_100T2CR); in ukphy_status() 99 gtsr = PHY_READ(phy, MII_100T2SR); in ukphy_status()
|
H A D | brgphy.c | 247 if (PHY_READ(sc, BRGPHY_MII_SHADOW_1C) & in brgphy_attach() 367 val = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in brgphy_service() 500 bmsr = PHY_READ(sc, BRGPHY_MII_BMSR) | PHY_READ(sc, BRGPHY_MII_BMSR); in brgphy_status() 501 bmcr = PHY_READ(sc, BRGPHY_MII_BMCR); in brgphy_status() 522 aux = PHY_READ(sc, BRGPHY_MII_AUXSTS); in brgphy_status() 566 val = PHY_READ(sc, BRGPHY_SERDES_ANAR) & PHY_READ(sc, BRGPHY_SERDES_ANLPAR); in brgphy_status() 639 PHY_READ(sc, BRGPHY_MII_1000CTL); in brgphy_mii_phy_auto() 866 val = PHY_READ(sc, BRGPHY_MII_AUXCTL); in brgphy_ethernet_wirespeed() 881 val = PHY_READ(sc, BRGPHY_MII_AUXCTL); in brgphy_bcm54xx_clock_delay() 913 val = PHY_READ(sc, BRGPHY_MII_AUXCTL); in brgphy_jumbo_settings() [all …]
|
H A D | nsphy.c | 145 reg = PHY_READ(sc, MII_NSPHY_PCR); in nsphy_service() 208 bmsr = PHY_READ(sc, MII_BMSR) | in nsphy_status() 209 PHY_READ(sc, MII_BMSR); in nsphy_status() 213 bmcr = PHY_READ(sc, MII_BMCR); in nsphy_status() 239 if (PHY_READ(sc, MII_ANER) & ANER_LPAN) { in nsphy_status() 240 anlpar = PHY_READ(sc, MII_ANAR) & in nsphy_status() 241 PHY_READ(sc, MII_ANLPAR); in nsphy_status() 265 par = PHY_READ(sc, MII_NSPHY_PAR); in nsphy_status() 305 reg = PHY_READ(sc, MII_BMCR); in nsphy_reset()
|
H A D | bmtphy.c | 190 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in bmtphy_status() 195 bmcr = PHY_READ(sc, MII_BMCR); in bmtphy_status() 216 aux_csr = PHY_READ(sc, MII_BMTPHY_AUX_CSR); in bmtphy_status() 239 data = PHY_READ(sc, 0x1f); in bmtphy_reset() 243 data = PHY_READ(sc, MII_BMTPHY_AUX2); in bmtphy_reset() 247 data = PHY_READ(sc, MII_BMTPHY_INTR); in bmtphy_reset() 251 data = PHY_READ(sc, 0x1f); in bmtphy_reset()
|
H A D | tdkphy.c | 135 PHY_WRITE(sc, MII_BMCR, PHY_READ(sc, MII_BMCR) | BMCR_FDX); in tdkphy_service() 137 PHY_WRITE(sc, MII_BMCR, PHY_READ(sc, MII_BMCR) & ~BMCR_FDX); in tdkphy_service() 154 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); in tdkphy_status() 158 bmcr = PHY_READ(phy, MII_BMCR); in tdkphy_status() 180 anlpar = PHY_READ(phy, MII_ANAR) & PHY_READ(phy, MII_ANLPAR); in tdkphy_status() 203 diag = PHY_READ(phy, MII_DIAG); in tdkphy_status()
|
H A D | smcphy.c | 153 reg = PHY_READ(sc, MII_BMCR); in smcphy_service() 158 reg = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in smcphy_service() 192 bmcr = PHY_READ(sc, MII_BMCR); in smcphy_reset() 216 anar = PHY_READ(sc, MII_ANAR); in smcphy_auto() 230 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in smcphy_status() 234 bmcr = PHY_READ(sc, MII_BMCR); in smcphy_status() 252 status = PHY_READ(sc, 0x12); in smcphy_status()
|
H A D | mv88e151x.c | 108 sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & sc->mii_capmask; in mv88e151x_attach() 111 sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR); in mv88e151x_attach() 122 sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & sc->mii_capmask; in mv88e151x_attach() 124 sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR); in mv88e151x_attach() 191 reg = PHY_READ(phy, MV88E151X_FIBER_STATUS); in mv88e151x_fiber_status() 192 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); in mv88e151x_fiber_status() 195 bmcr = PHY_READ(phy, MII_BMCR); in mv88e151x_fiber_status() 219 anlpar = PHY_READ(phy, MII_ANAR) & PHY_READ(phy, MII_ANLPAR); in mv88e151x_fiber_status()
|
H A D | smscphy.c | 140 reg = PHY_READ(sc, MII_BMCR); in smscphy_service() 145 reg = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in smscphy_service() 179 anar = PHY_READ(sc, MII_ANAR); in smscphy_auto() 193 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in smscphy_status() 197 bmcr = PHY_READ(sc, MII_BMCR); in smscphy_status() 215 status = PHY_READ(sc, 0x1F); in smscphy_status()
|
H A D | lxtphy.c | 140 sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & sc->mii_capmask; in lxtphy_attach() 204 csr = PHY_READ(sc, MII_LXTPHY_CSR); in lxtphy_status() 208 bmcr = PHY_READ(sc, MII_BMCR); in lxtphy_status() 219 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in lxtphy_status() 244 PHY_READ(sc, MII_LXTPHY_IER) & ~IER_INTEN); in lxtphy_reset() 252 cfg = PHY_READ(sc, MII_LXTPHY_CONFIG); in lxtphy_set_tp() 262 cfg = PHY_READ(sc, MII_LXTPHY_CONFIG); in lxtphy_set_fx()
|
H A D | atphy.c | 134 bmcr = PHY_READ(sc, MII_BMCR); in atphy_service() 183 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in atphy_service() 217 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in atphy_status() 221 bmcr = PHY_READ(sc, MII_BMCR); in atphy_status() 231 ssr = PHY_READ(sc, ATPHY_SSR); in atphy_status() 267 (PHY_READ(sc, MII_100T2SR) & GTSR_MS_RES) != 0) in atphy_status() 282 reg = PHY_READ(sc, ATPHY_SCR); in atphy_reset() 298 if ((PHY_READ(sc, MII_BMCR) & BMCR_RESET) == 0) in atphy_reset()
|
H A D | ip1000phy.c | 187 reg = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in ip1000phy_service() 225 bmsr = PHY_READ(sc, IP1000PHY_MII_BMSR) | in ip1000phy_status() 226 PHY_READ(sc, IP1000PHY_MII_BMSR); in ip1000phy_status() 230 bmcr = PHY_READ(sc, IP1000PHY_MII_BMCR); in ip1000phy_status() 243 stat = PHY_READ(sc, IP1000PHY_LSR); in ip1000phy_status() 263 stat = PHY_READ(sc, STGE_PhyCtrl); in ip1000phy_status() 291 stat = PHY_READ(sc, IP1000PHY_MII_1000SR); in ip1000phy_status() 304 reg = PHY_READ(sc, IP1000PHY_MII_ANAR); in ip1000phy_mii_phy_auto() 347 reg = PHY_READ(sc, IP1000PHY_MII_BMCR); in ip1000phy_reset()
|
H A D | dp83867phy.c | 117 status = PHY_READ(sc, DP83867_ISR); in dp_intr() 118 status &= PHY_READ(sc, DP83867_MICR); in dp_intr() 167 (void)PHY_READ(mii_sc, DP83867_ISR); in dp_attach() 175 value = PHY_READ(mii_sc, DP83867_CFG3); in dp_attach() 181 value = PHY_READ(mii_sc, DP83867_CFG4); in dp_attach() 235 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in dp_status() 236 physts = PHY_READ(sc, DP83867_PHYSTS); in dp_status() 241 bmcr = PHY_READ(sc, MII_BMCR); in dp_status()
|
H A D | nsgphy.c | 135 sc->mii_capabilities = (PHY_READ(sc, MII_BMSR) | in nsgphy_attach() 142 sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR); in nsgphy_attach() 187 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in nsgphy_status() 189 physup = PHY_READ(sc, NSGPHY_MII_PHYSUP); in nsgphy_status() 194 bmcr = PHY_READ(sc, MII_BMCR); in nsgphy_status() 218 gtsr = PHY_READ(sc, MII_100T2SR); in nsgphy_status()
|
H A D | rlphy.c | 170 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); in rlphy_status() 174 bmcr = PHY_READ(phy, MII_BMCR); in rlphy_status() 196 if ((anlpar = PHY_READ(phy, MII_ANAR) & in rlphy_status() 197 PHY_READ(phy, MII_ANLPAR))) { in rlphy_status() 243 if (PHY_READ(phy, 0x0019) & 0x01) in rlphy_status() 248 if (PHY_READ(phy, RL_MEDIASTAT) & in rlphy_status()
|
H A D | amphy.c | 147 bmsr = PHY_READ(sc, MII_BMSR) | in amphy_status() 148 PHY_READ(sc, MII_BMSR); in amphy_status() 152 bmcr = PHY_READ(sc, MII_BMCR); in amphy_status() 173 if (PHY_READ(sc, MII_ANER) & ANER_LPAN) { in amphy_status() 174 anlpar = PHY_READ(sc, MII_ANAR) & in amphy_status() 175 PHY_READ(sc, MII_ANLPAR); in amphy_status() 194 par = PHY_READ(sc, MII_AMPHY_DSCSR); in amphy_status()
|
H A D | acphy.c | 137 sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & sc->mii_capmask; in acphy_attach() 141 if ((PHY_READ(sc, MII_ACPHY_MCTL) & AC_MCTL_FX_SEL) != 0) { in acphy_attach() 168 reg = PHY_READ(sc, MII_BMCR); in acphy_service() 200 bmsr = PHY_READ(sc, MII_BMSR) | in acphy_status() 201 PHY_READ(sc, MII_BMSR); in acphy_status() 205 bmcr = PHY_READ(sc, MII_BMCR); in acphy_status() 221 diag = PHY_READ(sc, MII_ACPHY_DIAG); in acphy_status()
|
H A D | gentbi.c | 171 PHY_READ(sc, MII_BMSR) & sc->mii_capmask & ~BMSR_MEDIAMASK; in gentbi_attach() 173 sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR); in gentbi_attach() 219 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in gentbi_status() 224 bmcr = PHY_READ(sc, MII_BMCR); in gentbi_status() 250 anlpar = PHY_READ(sc, MII_ANLPAR); in gentbi_status()
|
/freebsd/sys/dev/usb/net/ |
H A D | ruephy.c | 139 reg = PHY_READ(sc, RUEPHY_MII_MSR) | in ruephy_service() 140 PHY_READ(sc, RUEPHY_MII_MSR); in ruephy_service() 187 msr = PHY_READ(phy, RUEPHY_MII_MSR) | PHY_READ(phy, RUEPHY_MII_MSR); in ruephy_status() 191 bmcr = PHY_READ(phy, MII_BMCR); in ruephy_status() 198 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); in ruephy_status()
|
/freebsd/sys/dev/fxp/ |
H A D | inphy.c | 153 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in inphy_status() 157 bmcr = PHY_READ(sc, MII_BMCR); in inphy_status() 173 scr = PHY_READ(sc, MII_INPHY_SCR); in inphy_status() 195 PHY_READ(sc, MII_INPHY_SCR) & ~SCR_FLOWCTL); in inphy_reset()
|