| /freebsd-src/sys/dev/mii/ |
| H A D | ukphy_subr.c | 49 #include <dev/mii/mii.h> 50 #include <dev/mii/miivar.h> 61 struct mii_data *mii = phy->mii_pdata; in ukphy_status() local 62 struct ifmedia_entry *ife = mii->mii_media.ifm_cur; in ukphy_status() 65 mii->mii_media_status = IFM_AVALID; in ukphy_status() 66 mii->mii_media_active = IFM_ETHER; in ukphy_status() 70 mii->mii_media_status |= IFM_ACTIVE; in ukphy_status() 74 mii->mii_media_active |= IFM_NONE; in ukphy_status() 75 mii->mii_media_status = 0; in ukphy_status() 80 mii->mii_media_active |= IFM_LOOP; in ukphy_status() [all …]
|
| H A D | amphy.c | 52 #include <dev/mii/mii.h> 53 #include <dev/mii/miivar.h> 56 #include <dev/mii/amphyreg.h> 112 amphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) in amphy_service() argument 140 struct mii_data *mii = sc->mii_pdata; in amphy_status() local 141 struct ifmedia_entry *ife = mii->mii_media.ifm_cur; in amphy_status() 144 mii->mii_media_status = IFM_AVALID; in amphy_status() 145 mii->mii_media_active = IFM_ETHER; in amphy_status() 150 mii->mii_media_status |= IFM_ACTIVE; in amphy_status() 154 mii->mii_media_active |= IFM_NONE; in amphy_status() [all …]
|
| H A D | tdkphy.c | 33 * Driver for the TDK 78Q2120 MII 57 #include <dev/mii/mii.h> 58 #include <dev/mii/miivar.h> 61 #include <dev/mii/tdkphyreg.h> 115 tdkphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) in tdkphy_service() argument 147 struct mii_data *mii = phy->mii_pdata; in tdkphy_status() local 148 struct ifmedia_entry *ife = mii->mii_media.ifm_cur; in tdkphy_status() 151 mii->mii_media_status = IFM_AVALID; in tdkphy_status() 152 mii->mii_media_active = IFM_ETHER; in tdkphy_status() 156 mii->mii_media_status |= IFM_ACTIVE; in tdkphy_status() [all …]
|
| H A D | mv88e151x.c | 47 #include <dev/mii/mii.h> 48 #include <dev/mii/miivar.h> 49 #include <dev/mii/mv88e151xreg.h> 153 mv88e151x_service(struct mii_softc *sc, struct mii_data *mii, int cmd) in mv88e151x_service() argument 180 struct mii_data *mii = phy->mii_pdata; in mv88e151x_fiber_status() local 181 struct ifmedia_entry *ife = mii->mii_media.ifm_cur; in mv88e151x_fiber_status() 185 mii->mii_media_status = IFM_AVALID; in mv88e151x_fiber_status() 186 mii->mii_media_active = IFM_ETHER; in mv88e151x_fiber_status() 194 mii->mii_media_status |= IFM_ACTIVE; in mv88e151x_fiber_status() 197 mii->mii_media_active |= IFM_NONE; in mv88e151x_fiber_status() [all …]
|
| H A D | mii.c | 1 /* $NetBSD: mii.c,v 1.12 1999/08/03 19:41:49 drochner Exp $ */ 37 * MII bus layer, glues MII-capable network interface drivers to sharable 54 #include <dev/mii/mii.h> 55 #include <dev/mii/miivar.h> 92 /* MII interface */ 116 device_set_desc(dev, "MII bus"); in miibus_probe() 126 struct mii_data *mii; in miibus_attach() local 130 mii in miibus_attach() 156 struct mii_data *mii; miibus_detach() local 311 struct mii_data *mii; miibus_statchg() local 323 struct mii_data *mii; miibus_linkchg() local 345 struct mii_data *mii; miibus_mediainit() local 549 mii_mediachg(struct mii_data * mii) mii_mediachg() argument 585 mii_tick(struct mii_data * mii) mii_tick() argument 605 mii_pollstat(struct mii_data * mii) mii_pollstat() argument 646 mii_phy_mac_match(struct mii_softc * mii,const char * name) mii_phy_mac_match() argument 662 mii_phy_mac_softc(struct mii_softc * mii) mii_phy_mac_softc() argument [all...] |
| H A D | rdcphy.c | 45 #include <dev/mii/mii.h> 46 #include <dev/mii/miivar.h> 49 #include <dev/mii/rdcphyreg.h> 110 rdcphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) in rdcphy_service() argument 116 ife = mii->mii_media.ifm_cur; in rdcphy_service() 138 mii->mii_media_status = 0; in rdcphy_service() 139 mii->mii_media_active = IFM_ETHER | IFM_NONE; in rdcphy_service() 158 * a link within one second such that mii(4) in rdcphy_service() 184 struct mii_data *mii; in rdcphy_status() local 187 mii = sc->mii_pdata; in rdcphy_status() [all …]
|
| H A D | rlphy.c | 52 #include <dev/mii/mii.h> 53 #include <dev/mii/miivar.h> 133 rlphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) in rlphy_service() argument 163 struct mii_data *mii = phy->mii_pdata; in rlphy_status() local 164 struct ifmedia_entry *ife = mii->mii_media.ifm_cur; in rlphy_status() 167 mii->mii_media_status = IFM_AVALID; in rlphy_status() 168 mii->mii_media_active = IFM_ETHER; in rlphy_status() 172 mii->mii_media_status |= IFM_ACTIVE; in rlphy_status() 176 mii->mii_media_active |= IFM_NONE; in rlphy_status() 177 mii->mii_media_status = 0; in rlphy_status() [all …]
|
| H A D | ip1000phy.c | 48 #include <dev/mii/mii.h> 49 #include <dev/mii/miivar.h> 52 #include <dev/mii/ip1000phyreg.h> 120 ip1000phy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) in ip1000phy_service() argument 122 struct ifmedia_entry *ife = mii->mii_media.ifm_cur; in ip1000phy_service() 219 struct mii_data *mii = sc->mii_pdata; in ip1000phy_status() local 222 mii->mii_media_status = IFM_AVALID; in ip1000phy_status() 223 mii->mii_media_active = IFM_ETHER; in ip1000phy_status() 228 mii->mii_media_status |= IFM_ACTIVE; in ip1000phy_status() 232 mii->mii_media_active |= IFM_LOOP; in ip1000phy_status() [all …]
|
| H A D | nsgphy.c | 69 #include <dev/mii/mii.h> 70 #include <dev/mii/miivar.h> 73 #include <dev/mii/nsgphyreg.h> 152 nsgphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) in nsgphy_service() argument 180 struct mii_data *mii = sc->mii_pdata; in nsgphy_status() local 181 struct ifmedia_entry *ife = mii->mii_media.ifm_cur; in nsgphy_status() 184 mii->mii_media_status = IFM_AVALID; in nsgphy_status() 185 mii->mii_media_active = IFM_ETHER; in nsgphy_status() 192 mii->mii_media_status |= IFM_ACTIVE; in nsgphy_status() 196 mii->mii_media_active |= IFM_NONE; in nsgphy_status() [all …]
|
| H A D | axphy.c | 43 #include <dev/mii/mii.h> 44 #include <dev/mii/miivar.h> 105 axphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) in axphy_service() argument 133 struct mii_data *mii = sc->mii_pdata; in axphy_status() local 134 struct ifmedia_entry *ife = mii->mii_media.ifm_cur; in axphy_status() 137 mii->mii_media_status = IFM_AVALID; in axphy_status() 138 mii->mii_media_active = IFM_ETHER; in axphy_status() 142 mii->mii_media_status |= IFM_ACTIVE; in axphy_status() 146 mii->mii_media_active |= IFM_NONE; in axphy_status() 147 mii->mii_media_status = 0; in axphy_status() [all …]
|
| H A D | nsphy.c | 77 #include <dev/mii/mii.h> 78 #include <dev/mii/miivar.h> 81 #include <dev/mii/nsphyreg.h> 136 nsphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) in nsphy_service() argument 201 struct mii_data *mii = sc->mii_pdata; in nsphy_status() local 202 struct ifmedia_entry *ife = mii->mii_media.ifm_cur; in nsphy_status() 205 mii->mii_media_status = IFM_AVALID; in nsphy_status() 206 mii->mii_media_active = IFM_ETHER; in nsphy_status() 211 mii->mii_media_status |= IFM_ACTIVE; in nsphy_status() 215 mii->mii_media_active |= IFM_NONE; in nsphy_status() [all …]
|
| H A D | rgephy.c | 53 #include <dev/mii/mii.h> 54 #include <dev/mii/miivar.h> 57 #include <dev/mii/rgephyreg.h> 150 rgephy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) in rgephy_service() argument 152 struct ifmedia_entry *ife = mii->mii_media.ifm_cur; in rgephy_service() 190 (mii->mii_media.ifm_media & IFM_FLAG0) != 0) in rgephy_service() 214 if ((mii->mii_media.ifm_media & IFM_FLAG0) == 0) in rgephy_service() 269 if (sc->mii_media_active != mii->mii_media_active || in rgephy_service() 270 sc->mii_media_status != mii->mii_media_status || in rgephy_service() 311 struct mii_data *mii = sc->mii_pdata; in rgephy_status() local [all …]
|
| H A D | qsphy.c | 77 #include <dev/mii/mii.h> 78 #include <dev/mii/miivar.h> 81 #include <dev/mii/qsphyreg.h> 136 qsphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) in qsphy_service() argument 165 struct mii_data *mii = sc->mii_pdata; in qsphy_status() local 168 mii->mii_media_status = IFM_AVALID; in qsphy_status() 169 mii->mii_media_active = IFM_ETHER; in qsphy_status() 174 mii->mii_media_status |= IFM_ACTIVE; in qsphy_status() 178 mii->mii_media_active |= IFM_NONE; in qsphy_status() 179 mii->mii_media_status = 0; in qsphy_status() [all …]
|
| H A D | xmphy.c | 52 #include <dev/mii/mii.h> 53 #include <dev/mii/miivar.h> 56 #include <dev/mii/xmphyreg.h> 138 xmphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) in xmphy_service() argument 140 struct ifmedia_entry *ife = mii->mii_media.ifm_cur; in xmphy_service() 212 struct mii_data *mii = sc->mii_pdata; in xmphy_status() local 215 mii->mii_media_status = IFM_AVALID; in xmphy_status() 216 mii->mii_media_active = IFM_ETHER; in xmphy_status() 221 mii->mii_media_status |= IFM_ACTIVE; in xmphy_status() 229 mii->mii_media_active |= IFM_LOOP; in xmphy_status() [all …]
|
| H A D | smscphy.c | 46 #include <dev/mii/mii.h> 47 #include <dev/mii/miivar.h> 110 smscphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) in smscphy_service() argument 115 ife = mii->mii_media.ifm_cur; in smscphy_service() 186 struct mii_data *mii; in smscphy_status() local 189 mii = sc->mii_pdata; in smscphy_status() 190 mii->mii_media_status = IFM_AVALID; in smscphy_status() 191 mii->mii_media_active = IFM_ETHER; in smscphy_status() 195 mii->mii_media_status |= IFM_ACTIVE; in smscphy_status() 199 mii->mii_media_active |= IFM_NONE; in smscphy_status() [all …]
|
| H A D | dp83867phy.c | 46 #include <dev/mii/mii.h> 47 #include <dev/mii/miivar.h> 204 dp_service(struct mii_softc *sc, struct mii_data *mii, int cmd) in dp_service() argument 228 struct mii_data *mii; in dp_status() local 231 mii = sc->mii_pdata; in dp_status() 232 mii->mii_media_status = IFM_AVALID; in dp_status() 233 mii->mii_media_active = IFM_ETHER; in dp_status() 239 mii->mii_media_status |= IFM_ACTIVE; in dp_status() 243 mii->mii_media_active |= IFM_NONE; in dp_status() 244 mii->mii_media_status = 0; in dp_status() [all …]
|
| H A D | icsphy.c | 75 #include <dev/mii/mii.h> 76 #include <dev/mii/miivar.h> 79 #include <dev/mii/icsphyreg.h> 139 icsphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) in icsphy_service() argument 167 struct mii_data *mii = sc->mii_pdata; in icsphy_status() local 168 struct ifmedia_entry *ife = mii->mii_media.ifm_cur; in icsphy_status() 171 mii->mii_media_status = IFM_AVALID; in icsphy_status() 172 mii->mii_media_active = IFM_ETHER; in icsphy_status() 183 mii->mii_media_status |= IFM_ACTIVE; in icsphy_status() 187 mii->mii_media_active |= IFM_NONE; in icsphy_status() [all …]
|
| /freebsd-src/sys/dev/dc/ |
| H A D | dcphy.c | 39 * media selection and NWAY support here since there is no MII 41 * and the alternative is to create a fake MII interface in the driver, 60 #include <dev/mii/mii.h> 61 #include <dev/mii/miivar.h> 185 dcphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) in dcphy_service() argument 188 struct ifmedia_entry *ife = mii->mii_media.ifm_cur; in dcphy_service() 192 dc_sc = if_getsoftc(mii->mii_ifp); in dcphy_service() 202 if ((if_getflags(mii->mii_ifp) & IFF_UP) == 0) in dcphy_service() 205 mii->mii_media_active = IFM_NONE; in dcphy_service() 252 if ((if_getflags(mii->mii_ifp) & IFF_UP) == 0) in dcphy_service() [all …]
|
| H A D | pnphy.c | 58 #include <dev/mii/mii.h> 59 #include <dev/mii/miivar.h> 141 pnphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) in pnphy_service() argument 143 struct ifmedia_entry *ife = mii->mii_media.ifm_cur; in pnphy_service() 153 if ((if_getflags(mii->mii_ifp) & IFF_UP) == 0) in pnphy_service() 161 mii->mii_media_active = IFM_ETHER | IFM_100_TX; in pnphy_service() 163 mii->mii_media_active |= IFM_FDX; in pnphy_service() 167 mii->mii_media_active = IFM_ETHER | IFM_10_T; in pnphy_service() 169 mii->mii_media_active |= IFM_FDX; in pnphy_service() 181 if ((if_getflags(mii->mii_ifp) & IFF_UP) == 0) in pnphy_service() [all …]
|
| /freebsd-src/sys/dev/fxp/ |
| H A D | inphy.c | 49 #include <dev/mii/mii.h> 50 #include <dev/mii/miivar.h> 112 inphy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) in inphy_service() argument 123 if ((if_getflags(mii->mii_ifp) & IFF_UP) == 0) in inphy_service() 146 struct mii_data *mii = sc->mii_pdata; in inphy_status() local 147 struct ifmedia_entry *ife = mii->mii_media.ifm_cur; in inphy_status() 150 mii->mii_media_status = IFM_AVALID; in inphy_status() 151 mii->mii_media_active = IFM_ETHER; in inphy_status() 155 mii->mii_media_status |= IFM_ACTIVE; in inphy_status() 159 mii->mii_media_active |= IFM_NONE; in inphy_status() [all …]
|
| /freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | MachineInstrBundle.cpp | 52 for (MachineBasicBlock::instr_iterator MII = MBB.instr_begin(), in runOnMachineFunction() local 53 MIE = MBB.instr_end(); MII != MIE; ) { in runOnMachineFunction() 54 MachineInstr *MI = &*MII; in runOnMachineFunction() 59 while (++MII != MIE && MII->isBundledWithPred()) { in runOnMachineFunction() 60 MII->unbundleFromPred(); in runOnMachineFunction() 61 for (MachineOperand &MO : MII->operands()) { in runOnMachineFunction() 72 ++MII; in runOnMachineFunction() 111 for (auto MII = FirstMI; MII ! in getDebugLoc() local 146 for (auto MII = FirstMI; MII != LastMI; ++MII) { finalizeBundle() local 229 for (auto MII = FirstMI; MII != LastMI; ++MII) { finalizeBundle() local 258 MachineBasicBlock::instr_iterator MII = MBB.instr_begin(); finalizeBundles() local [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonFixupHwLoops.cpp | 70 MachineBasicBlock::iterator &MII); 136 MachineBasicBlock::iterator MII = MBB.begin(); in fixupLoopInstrs() local 138 while (MII != MIE) { in fixupLoopInstrs() 139 unsigned InstSize = HII->getSize(*MII); in fixupLoopInstrs() 140 if (MII->isMetaInstruction()) { in fixupLoopInstrs() 141 ++MII; in fixupLoopInstrs() 144 if (isHardwareLoop(*MII)) { in fixupLoopInstrs() 145 assert(MII->getOperand(0).isMBB() && in fixupLoopInstrs() 147 MachineBasicBlock *TargetBB = MII->getOperand(0).getMBB(); in fixupLoopInstrs() 151 useExtLoopInstr(MF, MII); in fixupLoopInstrs() [all …]
|
| /freebsd-src/sys/dev/usb/net/ |
| H A D | ruephy.c | 47 #include <dev/mii/mii.h> 48 #include <dev/mii/miivar.h> 114 ruephy_service(struct mii_softc *sc, struct mii_data *mii, int cmd) in ruephy_service() argument 116 struct ifmedia_entry *ife = mii->mii_media.ifm_cur; in ruephy_service() 180 struct mii_data *mii = phy->mii_pdata; in ruephy_status() local 181 struct ifmedia_entry *ife = mii->mii_media.ifm_cur; in ruephy_status() 184 mii->mii_media_status = IFM_AVALID; in ruephy_status() 185 mii->mii_media_active = IFM_ETHER; in ruephy_status() 189 mii->mii_media_status |= IFM_ACTIVE; in ruephy_status() 193 mii->mii_media_active |= IFM_NONE; in ruephy_status() [all …]
|
| /freebsd-src/sys/contrib/ncsw/inc/flib/ |
| H A D | fsl_fman_dtsec_mii_acc.h | 39 /* MII Management Configuration Register */ 44 /* MII Management Command Register */ 48 /* MII Management Address Register */ 55 /* MII Management Indicator Register */ 75 /* MII Configuration Control Memory Map Registers */ 78 uint32_t miimcfg; /* MII Mgmt:configuration */ 79 uint32_t miimcom; /* MII Mgmt:command */ 80 uint32_t miimadd; /* MII Mgmt:address */ 81 uint32_t miimcon; /* MII Mgmt:control 3 */ 82 uint32_t miimstat; /* MII Mgmt:status */ [all …]
|
| /freebsd-src/sys/contrib/device-tree/Bindings/net/pcs/ |
| H A D | renesas,rzn1-miic.yaml | 7 title: Renesas RZ/N1 MII converter 13 This MII converter is present on the Renesas RZ/N1 SoC family. It is 14 responsible to do MII passthrough or convert it to RMII/RGMII. 34 - description: MII reference clock 37 - description: AHB clock used for the MII converter register interface 47 description: MII Switch PORTIN configuration. This value should use one of 56 "^mii-conv@[0-5]$": 58 description: MII converter port 62 description: MII Converter port number. 147 mii_conv1: mii-conv@1 { [all …]
|