Home
last modified time | relevance | path

Searched refs:PHY_READ (Results 1 – 25 of 41) sorted by relevance

12

/src/sys/dev/mii/
H A Dtruephy.c157 sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & sc->mii_capmask; in truephy_attach()
159 sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR); in truephy_attach()
184 bmcr = PHY_READ(sc, MII_BMCR) & ~BMCR_AUTOEN; in truephy_service()
192 bmcr = PHY_READ(sc, MII_BMCR) & ~BMCR_PDOWN; in truephy_service()
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()
[all …]
H A De1000phy.c146 if (PHY_READ(sc, E1000_ESSR) & E1000_ESSR_FIBER_LINK) in e1000phy_attach()
168 sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & sc->mii_capmask; in e1000phy_attach()
170 sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR); in e1000phy_attach()
189 reg = PHY_READ(sc, E1000_CR); in e1000phy_reset()
193 reg = PHY_READ(sc, E1000_SCR); in e1000phy_reset()
199 page = PHY_READ(sc, E1000_EADR); in e1000phy_reset()
201 reg = PHY_READ(sc, E1000_SCR); in e1000phy_reset()
208 reg = PHY_READ(sc, E1000_SCR); in e1000phy_reset()
242 PHY_WRITE(sc, 0x1C, PHY_READ(sc, 0x1C) | 0x0001); in e1000phy_reset()
260 reg = PHY_READ(sc, E1000_SCR); in e1000phy_reset()
[all …]
H A Drgephy.c128 sc->mii_capabilities = (PHY_READ(sc, MII_BMSR) | BMSR_ANEG) & in rgephy_attach()
131 sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR); in rgephy_attach()
162 anar = PHY_READ(sc, RGEPHY_MII_ANAR); in rgephy_service()
173 if (PHY_READ(sc, RGEPHY_MII_BMCR) & RGEPHY_BMCR_AUTOEN) in rgephy_service()
288 reg = PHY_READ(sc, RGEPHY_F_MII_SSR); in rgephy_linkup()
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()
[all …]
H A Dciphy.c140 if (PHY_READ(sc, CIPHY_MII_BMCR) & CIPHY_BMCR_AUTOEN) in ciphy_service()
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()
276 (PHY_READ(sc, CIPHY_MII_1000STS) & CIPHY_1000STS_MSR) != 0) 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()
[all …]
H A Dxmphy.c154 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 Dbrgphy.c247 if (PHY_READ(sc, BRGPHY_MII_SHADOW_1C) & in brgphy_attach()
280 sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & sc->mii_capmask; in brgphy_attach()
282 sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR); 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()
521 xstat = PHY_READ(sc, BRGPHY_MII_1000STS); 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()
574 xstat = PHY_READ(sc, BRGPHY_5708S_PG0_1000X_STAT1); in brgphy_status()
[all …]
H A Djmphy.c136 if ((PHY_READ(sc, JMPHY_SSR) & JMPHY_SSR_LINK_UP) != 0) { in jmphy_service()
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()
[all …]
H A Dukphy_subr.c68 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 Dnsphy.c145 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 Dmcommphy.c186 oldaddr = PHY_READ(sc, EXT_REG_ADDR); in mcommphy_yt8511_setup()
189 data = PHY_READ(sc, EXT_REG_DATA); in mcommphy_yt8511_setup()
206 data = PHY_READ(sc, EXT_REG_DATA); in mcommphy_yt8511_setup()
233 oldaddr = PHY_READ(sc, EXT_REG_ADDR); in mcommphy_yt8531_speed_adjustment()
236 reg = PHY_READ(sc, EXT_REG_DATA); in mcommphy_yt8531_speed_adjustment()
267 oldaddr = PHY_READ(sc, EXT_REG_ADDR); in mcommphy_yt8531_setup_delay()
271 reg = PHY_READ(sc, EXT_REG_DATA); in mcommphy_yt8531_setup_delay()
278 reg = PHY_READ(sc, EXT_REG_DATA); in mcommphy_yt8531_setup_delay()
296 oldaddr = PHY_READ(sc, EXT_REG_ADDR); in mcommphy_yt8531_setup()
300 reg = PHY_READ(sc, EXT_REG_DATA); in mcommphy_yt8531_setup()
[all …]
H A Dbmtphy.c190 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 Dtdkphy.c135 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 Dsmcphy.c153 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 Dmv88e151x.c108 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 Dsmscphy.c140 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 Dlxtphy.c140 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 Dip1000phy.c187 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 Datphy.c134 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 Ddp83867phy.c117 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 Damphy.c147 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 Drlphy.c170 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 Dnsgphy.c135 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 Dacphy.c137 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 Dgentbi.c171 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()
/src/sys/dev/usb/net/
H A Druephy.c138 reg = PHY_READ(sc, RUEPHY_MII_MSR) | in ruephy_service()
139 PHY_READ(sc, RUEPHY_MII_MSR); in ruephy_service()
186 msr = PHY_READ(phy, RUEPHY_MII_MSR) | PHY_READ(phy, RUEPHY_MII_MSR); in ruephy_status()
190 bmcr = PHY_READ(phy, MII_BMCR); in ruephy_status()
197 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); in ruephy_status()

12