Home
last modified time | relevance | path

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

12

/freebsd-12-stable/sys/dev/mii/
Dtruephy.c160 sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & sc->mii_capmask; in truephy_attach()
162 sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR); in truephy_attach()
187 bmcr = PHY_READ(sc, MII_BMCR) & ~BMCR_AUTOEN; in truephy_service()
195 bmcr = PHY_READ(sc, MII_BMCR) & ~BMCR_PDOWN; in truephy_service()
230 PHY_READ(sc, MII_PHYIDR1); in truephy_reset()
231 PHY_READ(sc, MII_PHYIDR2); in truephy_reset()
233 PHY_READ(sc, TRUEPHY_CTRL); in truephy_reset()
238 PHY_READ(sc, TRUEPHY_DATA); in truephy_reset()
243 PHY_READ(sc, MII_BMCR); in truephy_reset()
244 PHY_READ(sc, TRUEPHY_CTRL); in truephy_reset()
[all …]
De1000phy.c149 if (PHY_READ(sc, E1000_ESSR) & E1000_ESSR_FIBER_LINK) in e1000phy_attach()
171 sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & sc->mii_capmask; in e1000phy_attach()
173 sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR); in e1000phy_attach()
191 reg = PHY_READ(sc, E1000_SCR); in e1000phy_reset()
197 page = PHY_READ(sc, E1000_EADR); in e1000phy_reset()
199 reg = PHY_READ(sc, E1000_SCR); in e1000phy_reset()
206 reg = PHY_READ(sc, E1000_SCR); in e1000phy_reset()
240 PHY_WRITE(sc, 0x1C, PHY_READ(sc, 0x1C) | 0x0001); in e1000phy_reset()
258 reg = PHY_READ(sc, E1000_SCR); in e1000phy_reset()
272 page = PHY_READ(sc, E1000_EADR); in e1000phy_reset()
[all …]
Drgephy.c131 sc->mii_capabilities = (PHY_READ(sc, MII_BMSR) | BMSR_ANEG) & in rgephy_attach()
134 sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR); in rgephy_attach()
165 anar = PHY_READ(sc, RGEPHY_MII_ANAR); in rgephy_service()
176 if (PHY_READ(sc, RGEPHY_MII_BMCR) & RGEPHY_BMCR_AUTOEN) in rgephy_service()
291 reg = PHY_READ(sc, RGEPHY_F_MII_SSR); in rgephy_linkup()
295 reg = PHY_READ(sc, RGEPHY_MII_SSR); in rgephy_linkup()
301 reg = PHY_READ(sc, URE_GMEDIASTAT); in rgephy_linkup()
303 reg = PHY_READ(sc, RL_GMEDIASTAT); in rgephy_linkup()
324 bmsr = PHY_READ(sc, RGEPHY_MII_BMSR); in rgephy_status()
325 bmcr = PHY_READ(sc, RGEPHY_MII_BMCR); in rgephy_status()
[all …]
Dciphy.c144 if (PHY_READ(sc, CIPHY_MII_BMCR) & CIPHY_BMCR_AUTOEN) in ciphy_service()
196 reg = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in ciphy_service()
239 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in ciphy_status()
244 bmcr = PHY_READ(sc, CIPHY_MII_BMCR); in ciphy_status()
257 bmsr = PHY_READ(sc, CIPHY_MII_AUXCSR); in ciphy_status()
280 (PHY_READ(sc, CIPHY_MII_1000STS) & CIPHY_1000STS_MSR) != 0) in ciphy_status()
293 PHY_WRITE(x, y, (PHY_READ(x, y) | (z)))
295 PHY_WRITE(x, y, (PHY_READ(x, y) & ~(z)))
304 model = MII_MODEL(PHY_READ(sc, CIPHY_MII_PHYIDR2)); in ciphy_fixup()
305 status = PHY_READ(sc, CIPHY_MII_AUXCSR); in ciphy_fixup()
[all …]
Dbrgphy.c248 if (PHY_READ(sc, BRGPHY_MII_SHADOW_1C) & in brgphy_attach()
281 sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & sc->mii_capmask; in brgphy_attach()
283 sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR); in brgphy_attach()
368 val = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in brgphy_service()
496 bmsr = PHY_READ(sc, BRGPHY_MII_BMSR) | PHY_READ(sc, BRGPHY_MII_BMSR); in brgphy_status()
497 bmcr = PHY_READ(sc, BRGPHY_MII_BMCR); in brgphy_status()
517 xstat = PHY_READ(sc, BRGPHY_MII_1000STS); in brgphy_status()
518 aux = PHY_READ(sc, BRGPHY_MII_AUXSTS); in brgphy_status()
562 val = PHY_READ(sc, BRGPHY_SERDES_ANAR) & PHY_READ(sc, BRGPHY_SERDES_ANLPAR); in brgphy_status()
570 xstat = PHY_READ(sc, BRGPHY_5708S_PG0_1000X_STAT1); in brgphy_status()
[all …]
Dxmphy.c158 if (PHY_READ(sc, XMPHY_MII_BMCR) & XMPHY_BMCR_AUTOEN) in xmphy_service()
190 reg = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in xmphy_service()
222 bmsr = PHY_READ(sc, XMPHY_MII_BMSR) | in xmphy_status()
223 PHY_READ(sc, XMPHY_MII_BMSR); in xmphy_status()
228 bmcr = PHY_READ(sc, XMPHY_MII_EXTSTS); in xmphy_status()
230 bmcr = PHY_READ(sc, XMPHY_MII_BMCR); in xmphy_status()
247 anlpar = PHY_READ(sc, XMPHY_MII_ANAR) & in xmphy_status()
248 PHY_READ(sc, XMPHY_MII_ANLPAR); in xmphy_status()
268 anar = PHY_READ(mii, XMPHY_MII_ANAR); in xmphy_mii_phy_auto()
Djmphy.c139 if ((PHY_READ(sc, JMPHY_SSR) & JMPHY_SSR_LINK_UP) != 0) { in jmphy_service()
172 ssr = PHY_READ(sc, JMPHY_SSR); in jmphy_status()
176 bmcr = PHY_READ(sc, MII_BMCR); in jmphy_status()
221 if ((PHY_READ(sc, MII_100T2SR) & GTSR_MS_RES) != 0) in jmphy_status()
234 PHY_READ(sc, JMPHY_TMCTL) & ~JMPHY_TMCTL_SLEEP_ENB); in jmphy_reset()
239 if ((PHY_READ(sc, MII_BMCR) & BMCR_RESET) == 0) in jmphy_reset()
245 t2cr = PHY_READ(sc, MII_100T2CR); in jmphy_reset()
252 val = PHY_READ(sc, JMPHY_SPEC_DATA); in jmphy_reset()
262 PHY_READ(sc, MII_100T2CR); in jmphy_reset()
265 val = PHY_READ(sc, JMPHY_SPEC_DATA); in jmphy_reset()
[all …]
Dukphy_subr.c70 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); in ukphy_status()
74 bmcr = PHY_READ(phy, MII_BMCR); in ukphy_status()
96 anlpar = PHY_READ(phy, MII_ANAR) & PHY_READ(phy, MII_ANLPAR); in ukphy_status()
100 gtcr = PHY_READ(phy, MII_100T2CR); in ukphy_status()
101 gtsr = PHY_READ(phy, MII_100T2SR); in ukphy_status()
Dtdkphy.c139 PHY_WRITE(sc, MII_BMCR, PHY_READ(sc, MII_BMCR) | BMCR_FDX); in tdkphy_service()
141 PHY_WRITE(sc, MII_BMCR, PHY_READ(sc, MII_BMCR) & ~BMCR_FDX); in tdkphy_service()
158 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); in tdkphy_status()
162 bmcr = PHY_READ(phy, MII_BMCR); in tdkphy_status()
184 anlpar = PHY_READ(phy, MII_ANAR) & PHY_READ(phy, MII_ANLPAR); in tdkphy_status()
207 diag = PHY_READ(phy, MII_DIAG); in tdkphy_status()
Dsmcphy.c157 reg = PHY_READ(sc, MII_BMCR); in smcphy_service()
162 reg = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in smcphy_service()
196 bmcr = PHY_READ(sc, MII_BMCR); in smcphy_reset()
220 anar = PHY_READ(sc, MII_ANAR); in smcphy_auto()
234 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in smcphy_status()
238 bmcr = PHY_READ(sc, MII_BMCR); in smcphy_status()
256 status = PHY_READ(sc, 0x12); in smcphy_status()
Dnsphy.c156 reg = PHY_READ(sc, MII_NSPHY_PCR); in nsphy_service()
219 bmsr = PHY_READ(sc, MII_BMSR) | in nsphy_status()
220 PHY_READ(sc, MII_BMSR); in nsphy_status()
224 bmcr = PHY_READ(sc, MII_BMCR); in nsphy_status()
250 if (PHY_READ(sc, MII_ANER) & ANER_LPAN) { in nsphy_status()
251 anlpar = PHY_READ(sc, MII_ANAR) & in nsphy_status()
252 PHY_READ(sc, MII_ANLPAR); in nsphy_status()
276 par = PHY_READ(sc, MII_NSPHY_PAR); in nsphy_status()
316 reg = PHY_READ(sc, MII_BMCR); in nsphy_reset()
Dbmtphy.c194 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in bmtphy_status()
199 bmcr = PHY_READ(sc, MII_BMCR); in bmtphy_status()
220 aux_csr = PHY_READ(sc, MII_BMTPHY_AUX_CSR); in bmtphy_status()
243 data = PHY_READ(sc, 0x1f); in bmtphy_reset()
247 data = PHY_READ(sc, MII_BMTPHY_AUX2); in bmtphy_reset()
251 data = PHY_READ(sc, MII_BMTPHY_INTR); in bmtphy_reset()
255 data = PHY_READ(sc, 0x1f); in bmtphy_reset()
Dtlphy.c173 sc_mii->mii_capabilities = PHY_READ(sc_mii, MII_BMSR) & capmask; in tlphy_attach()
257 reg = PHY_READ(&sc->sc_mii, MII_BMSR) | in tlphy_service()
258 PHY_READ(&sc->sc_mii, MII_BMSR); in tlphy_service()
292 bmcr = PHY_READ(&sc->sc_mii, MII_BMCR); in tlphy_status()
299 tlctrl = PHY_READ(&sc->sc_mii, MII_TLPHY_CTRL); in tlphy_status()
306 bmsr = PHY_READ(&sc->sc_mii, MII_BMSR) | in tlphy_status()
307 PHY_READ(&sc->sc_mii, MII_BMSR); in tlphy_status()
366 aner = PHY_READ(&sc->sc_mii, MII_ANER); in tlphy_acomp()
368 anlpar = PHY_READ(&sc->sc_mii, MII_ANLPAR) & in tlphy_acomp()
369 PHY_READ(&sc->sc_mii, MII_ANAR); in tlphy_acomp()
Dsmscphy.c144 reg = PHY_READ(sc, MII_BMCR); in smscphy_service()
149 reg = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in smscphy_service()
183 anar = PHY_READ(sc, MII_ANAR); in smscphy_auto()
197 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in smscphy_status()
201 bmcr = PHY_READ(sc, MII_BMCR); in smscphy_status()
219 status = PHY_READ(sc, 0x1F); in smscphy_status()
Dlxtphy.c144 sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & sc->mii_capmask; in lxtphy_attach()
208 csr = PHY_READ(sc, MII_LXTPHY_CSR); in lxtphy_status()
212 bmcr = PHY_READ(sc, MII_BMCR); in lxtphy_status()
223 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in lxtphy_status()
248 PHY_READ(sc, MII_LXTPHY_IER) & ~IER_INTEN); in lxtphy_reset()
256 cfg = PHY_READ(sc, MII_LXTPHY_CONFIG); in lxtphy_set_tp()
266 cfg = PHY_READ(sc, MII_LXTPHY_CONFIG); in lxtphy_set_fx()
Datphy.c137 bmcr = PHY_READ(sc, MII_BMCR); in atphy_service()
186 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in atphy_service()
220 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in atphy_status()
224 bmcr = PHY_READ(sc, MII_BMCR); in atphy_status()
234 ssr = PHY_READ(sc, ATPHY_SSR); in atphy_status()
270 (PHY_READ(sc, MII_100T2SR) & GTSR_MS_RES) != 0) in atphy_status()
285 reg = PHY_READ(sc, ATPHY_SCR); in atphy_reset()
301 if ((PHY_READ(sc, MII_BMCR) & BMCR_RESET) == 0) in atphy_reset()
Dip1000phy.c190 reg = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in ip1000phy_service()
228 bmsr = PHY_READ(sc, IP1000PHY_MII_BMSR) | in ip1000phy_status()
229 PHY_READ(sc, IP1000PHY_MII_BMSR); in ip1000phy_status()
233 bmcr = PHY_READ(sc, IP1000PHY_MII_BMCR); in ip1000phy_status()
246 stat = PHY_READ(sc, IP1000PHY_LSR); in ip1000phy_status()
266 stat = PHY_READ(sc, STGE_PhyCtrl); in ip1000phy_status()
294 stat = PHY_READ(sc, IP1000PHY_MII_1000SR); in ip1000phy_status()
307 reg = PHY_READ(sc, IP1000PHY_MII_ANAR); in ip1000phy_mii_phy_auto()
350 reg = PHY_READ(sc, IP1000PHY_MII_BMCR); in ip1000phy_reset()
Dnsgphy.c139 sc->mii_capabilities = (PHY_READ(sc, MII_BMSR) | in nsgphy_attach()
146 sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR); in nsgphy_attach()
191 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in nsgphy_status()
193 physup = PHY_READ(sc, NSGPHY_MII_PHYSUP); in nsgphy_status()
198 bmcr = PHY_READ(sc, MII_BMCR); in nsgphy_status()
222 gtsr = PHY_READ(sc, MII_100T2SR); in nsgphy_status()
Damphy.c151 bmsr = PHY_READ(sc, MII_BMSR) | in amphy_status()
152 PHY_READ(sc, MII_BMSR); in amphy_status()
156 bmcr = PHY_READ(sc, MII_BMCR); in amphy_status()
177 if (PHY_READ(sc, MII_ANER) & ANER_LPAN) { in amphy_status()
178 anlpar = PHY_READ(sc, MII_ANAR) & in amphy_status()
179 PHY_READ(sc, MII_ANLPAR); in amphy_status()
198 par = PHY_READ(sc, MII_AMPHY_DSCSR); in amphy_status()
Dacphy.c141 sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & sc->mii_capmask; in acphy_attach()
145 if ((PHY_READ(sc, MII_ACPHY_MCTL) & AC_MCTL_FX_SEL) != 0) { in acphy_attach()
172 reg = PHY_READ(sc, MII_BMCR); in acphy_service()
204 bmsr = PHY_READ(sc, MII_BMSR) | in acphy_status()
205 PHY_READ(sc, MII_BMSR); in acphy_status()
209 bmcr = PHY_READ(sc, MII_BMCR); in acphy_status()
225 diag = PHY_READ(sc, MII_ACPHY_DIAG); in acphy_status()
Drlphy.c174 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); in rlphy_status()
178 bmcr = PHY_READ(phy, MII_BMCR); in rlphy_status()
200 if ((anlpar = PHY_READ(phy, MII_ANAR) & in rlphy_status()
201 PHY_READ(phy, MII_ANLPAR))) { in rlphy_status()
247 if (PHY_READ(phy, 0x0019) & 0x01) in rlphy_status()
252 if (PHY_READ(phy, RL_MEDIASTAT) & in rlphy_status()
Dgentbi.c175 PHY_READ(sc, MII_BMSR) & sc->mii_capmask & ~BMSR_MEDIAMASK; in gentbi_attach()
177 sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR); in gentbi_attach()
223 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in gentbi_status()
228 bmcr = PHY_READ(sc, MII_BMCR); in gentbi_status()
254 anlpar = PHY_READ(sc, MII_ANLPAR); in gentbi_status()
/freebsd-12-stable/sys/dev/usb/net/
Druephy.c143 reg = PHY_READ(sc, RUEPHY_MII_MSR) | in ruephy_service()
144 PHY_READ(sc, RUEPHY_MII_MSR); in ruephy_service()
191 msr = PHY_READ(phy, RUEPHY_MII_MSR) | PHY_READ(phy, RUEPHY_MII_MSR); in ruephy_status()
195 bmcr = PHY_READ(phy, MII_BMCR); in ruephy_status()
202 bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR); in ruephy_status()
/freebsd-12-stable/sys/dev/fxp/
Dinphy.c157 bmsr = PHY_READ(sc, MII_BMSR) | PHY_READ(sc, MII_BMSR); in inphy_status()
161 bmcr = PHY_READ(sc, MII_BMCR); in inphy_status()
177 scr = PHY_READ(sc, MII_INPHY_SCR); in inphy_status()
199 PHY_READ(sc, MII_INPHY_SCR) & ~SCR_FLOWCTL); in inphy_reset()
/freebsd-12-stable/sys/dev/bwi/
Dbwiphy.h69 #define PHY_READ(mac, ctrl) bwi_phy_read((mac), (ctrl)) macro
72 PHY_WRITE((mac), (ctrl), PHY_READ((mac), (ctrl)) | (bits))
74 PHY_WRITE((mac), (ctrl), PHY_READ((mac), (ctrl)) & ~(bits))
76 PHY_WRITE((mac), (ctrl), (PHY_READ((mac), (ctrl)) & (filt)) | (bits))

12