Home
last modified time | relevance | path

Searched refs:bmcr (Results 1 – 25 of 39) sorted by relevance

12

/freebsd/sys/dev/mii/
H A Datphy.c112 uint16_t anar, bmcr, bmsr; in atphy_service() local
125 bmcr = 0; in atphy_service()
128 bmcr = BMCR_S100; in atphy_service()
131 bmcr = BMCR_S10; in atphy_service()
134 bmcr = PHY_READ(sc, MII_BMCR); in atphy_service()
143 PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_ISO); in atphy_service()
151 bmcr |= BMCR_FDX; in atphy_service()
165 PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_RESET | BMCR_AUTOEN | in atphy_service()
212 uint32_t bmsr, bmcr, ssr; in atphy_status() local
221 bmcr = PHY_READ(sc, MII_BMCR); in atphy_status()
[all …]
H A Dsmcphy.c185 u_int bmcr; in smcphy_reset() local
192 bmcr = PHY_READ(sc, MII_BMCR); in smcphy_reset()
193 if ((bmcr & BMCR_RESET) == 0) in smcphy_reset()
197 if (bmcr & BMCR_RESET) in smcphy_reset()
224 uint32_t bmcr, bmsr, status; in smcphy_status() local
234 bmcr = PHY_READ(sc, MII_BMCR); in smcphy_status()
235 if ((bmcr & BMCR_ISO) != 0) { in smcphy_status()
241 if ((bmcr & BMCR_LOOP) != 0) in smcphy_status()
244 if ((bmcr & BMCR_AUTOEN) != 0) { in smcphy_status()
H A Dtruephy.c176 int bmcr; in truephy_service() local
184 bmcr = PHY_READ(sc, MII_BMCR) & ~BMCR_AUTOEN; in truephy_service()
185 PHY_WRITE(sc, MII_BMCR, bmcr); in truephy_service()
186 PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_PDOWN); in truephy_service()
192 bmcr = PHY_READ(sc, MII_BMCR) & ~BMCR_PDOWN; in truephy_service()
193 PHY_WRITE(sc, MII_BMCR, bmcr); in truephy_service()
197 bmcr | BMCR_AUTOEN | BMCR_STARTNEG); in truephy_service()
277 int bmsr, bmcr, sr; in truephy_status() local
283 bmcr = PHY_READ(sc, MII_BMCR); in truephy_status()
289 if (bmcr & BMCR_AUTOEN) { in truephy_status()
H A Dukphy_subr.c63 int bmsr, bmcr, anlpar, gtcr, gtsr; in ukphy_status() local
72 bmcr = PHY_READ(phy, MII_BMCR); in ukphy_status()
73 if (bmcr & BMCR_ISO) { in ukphy_status()
79 if (bmcr & BMCR_LOOP) in ukphy_status()
82 if (bmcr & BMCR_AUTOEN) { in ukphy_status()
H A Djmphy.c164 int bmcr, ssr; in jmphy_status() local
173 bmcr = PHY_READ(sc, MII_BMCR); in jmphy_status()
174 if ((bmcr & BMCR_ISO) != 0) { in jmphy_status()
180 if ((bmcr & BMCR_LOOP) != 0) in jmphy_status()
302 uint16_t anar, bmcr, gig; in jmphy_setmedia() local
305 bmcr = PHY_READ(sc, MII_BMCR); in jmphy_setmedia()
317 PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_ISO | BMCR_PDOWN); in jmphy_setmedia()
339 PHY_WRITE(sc, MII_BMCR, bmcr | BMCR_AUTOEN | BMCR_STARTNEG); in jmphy_setmedia()
H A Daxphy.c135 int bmsr, bmcr; in axphy_status() local
144 bmcr = PHY_READ(sc, MII_BMCR); in axphy_status()
145 if (bmcr & BMCR_ISO) { in axphy_status()
151 if (bmcr & BMCR_LOOP) in axphy_status()
154 if (bmcr & BMCR_AUTOEN) { in axphy_status()
H A Dicsphy.c169 int bmcr, qpr; in icsphy_status() local
185 bmcr = PHY_READ(sc, MII_BMCR); in icsphy_status()
186 if (bmcr & BMCR_ISO) { in icsphy_status()
192 if (bmcr & BMCR_LOOP) in icsphy_status()
195 if (bmcr & BMCR_AUTOEN) { in icsphy_status()
H A Dxmphy.c213 int bmsr, bmcr, anlpar; in xmphy_status() local
224 bmcr = PHY_READ(sc, XMPHY_MII_EXTSTS); in xmphy_status()
226 bmcr = PHY_READ(sc, XMPHY_MII_BMCR); in xmphy_status()
228 if (bmcr & XMPHY_BMCR_LOOP) in xmphy_status()
231 if (bmcr & XMPHY_BMCR_AUTOEN) { in xmphy_status()
253 if (bmcr & XMPHY_BMCR_FDX) in xmphy_status()
H A Drdcphy.c185 int bmsr, bmcr, physts; in rdcphy_status() local
198 bmcr = PHY_READ(sc, MII_BMCR); in rdcphy_status()
199 if ((bmcr & BMCR_ISO) != 0) { in rdcphy_status()
205 if ((bmcr & BMCR_LOOP) != 0) in rdcphy_status()
208 if ((bmcr & BMCR_AUTOEN) != 0) { in rdcphy_status()
H A Damphy.c142 int bmsr, bmcr, par, anlpar; in amphy_status() local
152 bmcr = PHY_READ(sc, MII_BMCR); in amphy_status()
153 if (bmcr & BMCR_ISO) { in amphy_status()
159 if (bmcr & BMCR_LOOP) in amphy_status()
162 if (bmcr & BMCR_AUTOEN) { in amphy_status()
H A Dbmtphy.c182 int bmsr, bmcr, aux_csr; in bmtphy_status() local
195 bmcr = PHY_READ(sc, MII_BMCR); in bmtphy_status()
196 if (bmcr & BMCR_ISO) { in bmtphy_status()
202 if (bmcr & BMCR_LOOP) in bmtphy_status()
205 if (bmcr & BMCR_AUTOEN) { in bmtphy_status()
H A Dgentbi.c214 int bmsr, bmcr, anlpar; in gentbi_status() local
224 bmcr = PHY_READ(sc, MII_BMCR); in gentbi_status()
225 if (bmcr & BMCR_ISO) { in gentbi_status()
231 if (bmcr & BMCR_LOOP) in gentbi_status()
234 if (bmcr & BMCR_AUTOEN) { in gentbi_status()
H A Dnsgphy.c182 int bmsr, bmcr, physup, gtsr; in nsgphy_status() local
194 bmcr = PHY_READ(sc, MII_BMCR); in nsgphy_status()
195 if (bmcr & BMCR_ISO) { in nsgphy_status()
201 if (bmcr & BMCR_LOOP) in nsgphy_status()
204 if (bmcr & BMCR_AUTOEN) { in nsgphy_status()
H A Dnsphyter.c172 int bmsr, bmcr, physts; in nsphyter_status() local
183 bmcr = PHY_READ(sc, MII_BMCR); in nsphyter_status()
184 if ((bmcr & BMCR_ISO) != 0) { in nsphyter_status()
190 if ((bmcr & BMCR_LOOP) != 0) in nsphyter_status()
193 if ((bmcr & BMCR_AUTOEN) != 0) { in nsphyter_status()
H A Drlphy.c165 int bmsr, bmcr, anlpar; in rlphy_status() local
174 bmcr = PHY_READ(phy, MII_BMCR); in rlphy_status()
175 if (bmcr & BMCR_ISO) { in rlphy_status()
181 if (bmcr & BMCR_LOOP) in rlphy_status()
184 if (bmcr & BMCR_AUTOEN) { in rlphy_status()
H A Dtdkphy.c149 int bmsr, bmcr, anlpar, diag; in tdkphy_status() local
158 bmcr = PHY_READ(phy, MII_BMCR); in tdkphy_status()
159 if (bmcr & BMCR_ISO) { in tdkphy_status()
165 if (bmcr & BMCR_LOOP) in tdkphy_status()
168 if (bmcr & BMCR_AUTOEN) { in tdkphy_status()
H A Dacphy.c195 int bmsr, bmcr, diag; in acphy_status() local
205 bmcr = PHY_READ(sc, MII_BMCR); in acphy_status()
206 if (bmcr & BMCR_ISO) { in acphy_status()
212 if (bmcr & BMCR_LOOP) in acphy_status()
215 if (bmcr & BMCR_AUTOEN) { in acphy_status()
H A Dsmscphy.c187 uint32_t bmcr, bmsr, status; in smscphy_status() local
197 bmcr = PHY_READ(sc, MII_BMCR); in smscphy_status()
198 if ((bmcr & BMCR_ISO) != 0) { in smscphy_status()
204 if ((bmcr & BMCR_LOOP) != 0) in smscphy_status()
207 if ((bmcr & BMCR_AUTOEN) != 0) { in smscphy_status()
H A Dlxtphy.c194 int bmcr, bmsr, csr; in lxtphy_status() local
208 bmcr = PHY_READ(sc, MII_BMCR); in lxtphy_status()
209 if (bmcr & BMCR_ISO) { in lxtphy_status()
215 if (bmcr & BMCR_LOOP) in lxtphy_status()
218 if (bmcr & BMCR_AUTOEN) { in lxtphy_status()
H A Dnsphy.c203 int bmsr, bmcr, par, anlpar; in nsphy_status() local
213 bmcr = PHY_READ(sc, MII_BMCR); in nsphy_status()
214 if (bmcr & BMCR_ISO) { in nsphy_status()
220 if (bmcr & BMCR_LOOP) in nsphy_status()
223 if (bmcr & BMCR_AUTOEN) { in nsphy_status()
H A Dqsphy.c166 int bmsr, bmcr, pctl; in qsphy_status() local
176 bmcr = PHY_READ(sc, MII_BMCR); in qsphy_status()
177 if (bmcr & BMCR_ISO) { in qsphy_status()
183 if (bmcr & BMCR_LOOP) in qsphy_status()
H A Dmv88e151x.c182 int bmsr, bmcr, anlpar; //, gtcr, gtsr; in mv88e151x_fiber_status() local
195 bmcr = PHY_READ(phy, MII_BMCR); in mv88e151x_fiber_status()
196 if (bmcr & BMCR_ISO) { in mv88e151x_fiber_status()
203 if (bmcr & BMCR_LOOP) in mv88e151x_fiber_status()
206 if (bmcr & BMCR_AUTOEN) { in mv88e151x_fiber_status()
/freebsd/sys/dev/cxgb/common/
H A Dcxgb_vsc8211.c134 unsigned int bmcr, status, lpa, adv; in vsc8211_get_link_status() local
137 err = mdio_read(cphy, 0, MII_BMCR, &bmcr); in vsc8211_get_link_status()
155 if (!(bmcr & BMCR_ANENABLE)) { in vsc8211_get_link_status()
156 dplx = (bmcr & BMCR_FULLDPLX) ? DUPLEX_FULL : DUPLEX_HALF; in vsc8211_get_link_status()
157 if (bmcr & BMCR_SPEED1000) in vsc8211_get_link_status()
159 else if (bmcr & BMCR_SPEED100) in vsc8211_get_link_status()
207 unsigned int bmcr, status, lpa, adv; in vsc8211_get_link_status_fiber() local
210 err = mdio_read(cphy, 0, MII_BMCR, &bmcr); in vsc8211_get_link_status_fiber()
228 if (!(bmcr & BMCR_ANENABLE)) { in vsc8211_get_link_status_fiber()
229 dplx = (bmcr & BMCR_FULLDPLX) ? DUPLEX_FULL : DUPLEX_HALF; in vsc8211_get_link_status_fiber()
[all …]
/freebsd/sys/dev/fxp/
H A Dinphy.c148 int bmsr, bmcr, scr; in inphy_status() local
157 bmcr = PHY_READ(sc, MII_BMCR); in inphy_status()
158 if (bmcr & BMCR_ISO) { in inphy_status()
164 if (bmcr & BMCR_LOOP) in inphy_status()
167 if (bmcr & BMCR_AUTOEN) { in inphy_status()
/freebsd/sys/dev/usb/net/
H A Druephy.c182 int bmsr, bmcr, msr; in ruephy_status() local
191 bmcr = PHY_READ(phy, MII_BMCR); in ruephy_status()
192 if (bmcr & BMCR_ISO) { in ruephy_status()
199 if (bmcr & BMCR_AUTOEN) { in ruephy_status()

12