/freebsd-13-stable/sys/dev/vnic/ |
H A D | thunder_mdio_var.h | 47 device_t miibus; /* One miibus per LMAC */ member in struct:phy_desc 48 struct ifnet * ifp; /* Fake ifp to satisfy miibus */
|
/freebsd-13-stable/sys/dev/xilinx/ |
H A D | if_xaevar.h | 52 device_t miibus; member in struct:xae_softc
|
/freebsd-13-stable/sys/dev/mii/ |
H A D | mii.c | 58 MODULE_VERSION(miibus, 1); 107 "miibus", 207 * NB: this uses the instance variables of the miibus rather than 373 * Helper function used by network interface drivers, attaches the miibus and 377 mii_attach(device_t dev, device_t *miibus, if_t ifp, argument 409 if (*miibus == NULL) { 418 *miibus = device_add_child(dev, "miibus", -1); 419 if (*miibus == NULL) { 423 device_set_ivars(*miibus, ivar [all...] |
H A D | mii_fdt.c | 149 device_t miibus, macdev; local 152 miibus = device_get_parent(phydev); 153 macdev = device_get_parent(miibus);
|
H A D | ukphy.c | 102 DRIVER_MODULE(ukphy, miibus, ukphy_driver, ukphy_devclass, 0, 0);
|
H A D | micphy.c | 106 DRIVER_MODULE(micphy, miibus, micphy_driver, micphy_devclass, 0, 0); 258 device_t miibus; local 270 miibus = device_get_parent(dev); 271 parent = device_get_parent(miibus);
|
H A D | pnaphy.c | 85 DRIVER_MODULE(pnaphy, miibus, pnaphy_driver, pnaphy_devclass, 0, 0);
|
/freebsd-13-stable/sys/mips/cavium/octe/ |
H A D | cavium-ethernet.h | 68 device_t miibus; member in struct:__anon14795
|
H A D | octe.c | 127 DRIVER_MODULE(miibus, octe, miibus_driver, miibus_devclass, 0, 0); 151 error = mii_attach(dev, &priv->miibus, ifp, 163 if (priv->miibus == NULL) { 287 if (priv->miibus != NULL) 288 mii_mediachg(device_get_softc(priv->miibus)); 336 mii = device_get_softc(priv->miibus); 351 mii = device_get_softc(priv->miibus); 474 if (priv->miibus != NULL) { 475 mii = device_get_softc(priv->miibus);
|
/freebsd-13-stable/sys/dev/etherswitch/infineon/ |
H A D | adm6996fc.c | 102 device_t **miibus; member in struct:adm6996fc_softc 188 sc->miibus[port] = malloc(sizeof(device_t), M_ADM6996FC, 190 if (sc->miibus[port] == NULL) { 194 err = mii_attach(sc->sc_dev, sc->miibus[port], sc->ifp[port], 198 device_get_nameunit(*sc->miibus[port]), 222 if (sc->miibus[port] != NULL) 223 device_delete_child(sc->sc_dev, (*sc->miibus[port])); 228 if (sc->miibus[port] != NULL) 229 free(sc->miibus[port], M_ADM6996FC); 261 sc->miibus [all...] |
/freebsd-13-stable/sys/dev/etherswitch/micrel/ |
H A D | ksz8995ma.c | 153 device_t **miibus; member in struct:ksz8995ma_softc 234 sc->miibus[port] = malloc(sizeof(device_t), M_KSZ8995MA, 236 if (sc->miibus[port] == NULL) { 240 err = mii_attach(sc->sc_dev, sc->miibus[port], sc->ifp[port], 244 device_get_nameunit(*sc->miibus[port]), 269 if (sc->miibus[port] != NULL) 270 device_delete_child(sc->sc_dev, (*sc->miibus[port])); 275 if (sc->miibus[port] != NULL) 276 free(sc->miibus[port], M_KSZ8995MA); 311 sc->miibus [all...] |
/freebsd-13-stable/sys/dev/etherswitch/ukswitch/ |
H A D | ukswitch.c | 77 device_t **miibus; member in struct:ukswitch_softc 141 sc->miibus[port] = malloc(sizeof(device_t), M_UKSWITCH, 143 err = mii_attach(sc->sc_dev, sc->miibus[port], sc->ifp[port], 147 device_get_nameunit(*sc->miibus[port]), 208 sc->miibus = malloc(sizeof(device_t *) * sc->numports, M_UKSWITCH, 245 if (sc->miibus[port] != NULL) 246 device_delete_child(dev, (*sc->miibus[port])); 250 free(sc->miibus[port], M_UKSWITCH); 254 free(sc->miibus, M_UKSWITCH); 280 return (device_get_softc(*sc->miibus[por [all...] |
/freebsd-13-stable/sys/dev/etherswitch/ip17x/ |
H A D | ip17x.c | 187 sc->miibus[port] = malloc(sizeof(device_t), M_IP17X, 189 err = mii_attach(sc->sc_dev, sc->miibus[port], sc->ifp[port], 193 device_get_nameunit(*sc->miibus[port]), 247 sc->miibus = malloc(sizeof(device_t *) * sc->numports, M_IP17X, 297 if (sc->miibus[port] != NULL) 298 device_delete_child(dev, (*sc->miibus[port])); 301 free(sc->miibus[port], M_IP17X); 305 free(sc->miibus, M_IP17X); 324 return (device_get_softc(*sc->miibus[port])); 352 if ((*sc->miibus[por [all...] |
H A D | ip17x_var.h | 57 device_t **miibus; member in struct:ip17x_softc
|
/freebsd-13-stable/sys/dev/altera/atse/ |
H A D | if_atse_nexus.c | 59 /* "device miibus" required. See GENERIC if you get errors here. */ 63 MODULE_DEPEND(atse, miibus, 1, 1, 1); 160 DRIVER_MODULE(miibus, atse, miibus_driver, miibus_devclass, 0, 0);
|
/freebsd-13-stable/sys/dev/etherswitch/mtkswitch/ |
H A D | mtkswitch.c | 122 sc->miibus[phy] = NULL; 139 err = mii_attach(sc->sc_dev, &sc->miibus[phy], sc->ifp[phy], 148 "%s\n", device_get_nameunit(sc->miibus[phy]), 267 if (sc->miibus[phy] != NULL) 268 device_delete_child(dev, sc->miibus[phy]); 300 if (phy < 0 || phy >= MTKSWITCH_MAX_PHYS || sc->miibus[phy] == NULL) 303 return (device_get_softc(sc->miibus[phy])); 368 if (sc->miibus[i] == NULL) 370 mii = device_get_softc(sc->miibus[i]); 669 DRIVER_MODULE(miibus, mtkswitc [all...] |
/freebsd-13-stable/sys/dev/dwc/ |
H A D | if_dwcvar.h | 66 device_t miibus; member in struct:dwc_softc
|
/freebsd-13-stable/sys/modules/mii/ |
H A D | Makefile | 5 KMOD= miibus
|
/freebsd-13-stable/sys/dev/smc/ |
H A D | if_smc_acpi.c | 80 MODULE_DEPEND(smc, miibus, 1, 1, 1);
|
H A D | if_smc_fdt.c | 85 MODULE_DEPEND(smc, miibus, 1, 1, 1);
|
/freebsd-13-stable/sys/dev/etherswitch/e6000sw/ |
H A D | e6060sw.c | 122 device_t **miibus; member in struct:e6060sw_softc 231 sc->miibus[port] = malloc(sizeof(device_t), M_E6060SW, 233 err = mii_attach(sc->sc_dev, sc->miibus[port], sc->ifp[port], 237 device_get_nameunit(*sc->miibus[port]), 307 sc->miibus = malloc(sizeof(device_t *) * sc->numports, M_E6060SW, 346 if (sc->miibus[port] != NULL) 347 device_delete_child(dev, (*sc->miibus[port])); 351 free(sc->miibus[port], M_E6060SW); 355 free(sc->miibus, M_E6060SW); 383 return (device_get_softc(*sc->miibus[por [all...] |
/freebsd-13-stable/sys/dev/dpaa/ |
H A D | fman_mdio.c | 209 DRIVER_MODULE(miibus, pqmdio, miibus_driver, miibus_devclass, 0, 0); 210 MODULE_DEPEND(pqmdio, miibus, 1, 1, 1);
|
H A D | if_dtsec_fdt.c | 94 DRIVER_MODULE(miibus, dtsec, miibus_driver, miibus_devclass, 0, 0); 96 MODULE_DEPEND(dtsec, miibus, 1, 1, 1);
|
/freebsd-13-stable/sys/dev/xl/ |
H A D | xlphy.c | 102 DRIVER_MODULE(xlphy, miibus, xlphy_driver, xlphy_devclass, 0, 0);
|
/freebsd-13-stable/sys/arm/ti/cpsw/ |
H A D | if_cpswvar.h | 134 device_t miibus; member in struct:cpswp_softc
|