/freebsd-12-stable/sys/modules/mdio/ |
H A D | Makefile | 3 .PATH: ${SRCTOP}/sys/dev/mdio 5 KMOD= mdio 6 SRCS= mdio.c
|
/freebsd-12-stable/sbin/mdconfig/ |
H A D | mdconfig.c | 59 static struct md_ioctl mdio; variable in typeref:struct:md_ioctl 105 bzero(&mdio, sizeof(mdio)); 106 mdio.md_file = malloc(PATH_MAX); 107 mdio.md_label = malloc(PATH_MAX); 108 if (mdio.md_file == NULL || mdio.md_label == NULL) 111 bzero(mdio.md_file, PATH_MAX); 112 bzero(mdio.md_label, PATH_MAX); 130 mdio [all...] |
/freebsd-12-stable/sys/contrib/octeon-sdk/ |
H A D | cvmx-spi4000.c | 189 mdio_single_command_t mdio; local 191 mdio.u32 = 0; 192 mdio.s.mdi_command = 1; 193 mdio.s.op_code = 1; 194 mdio.s.phy_address = port; 195 mdio.s.reg_address = location; 205 __cvmx_spi4000_write(interface, 0x0680, mdio.u32); 220 mdio_single_command_t mdio; local 222 mdio.u32 = 0; 223 mdio [all...] |
/freebsd-12-stable/sys/dev/mdio/ |
H A D | mdio.c | 34 #include <dev/mdio/mdio.h> 130 "mdio", 137 MODULE_VERSION(mdio, 1);
|
/freebsd-12-stable/sys/dev/etherswitch/arswitch/ |
H A D | arswitch_8216.c | 55 #include <dev/mdio/mdio.h>
|
H A D | arswitch_8226.c | 55 #include <dev/mdio/mdio.h>
|
H A D | arswitch_7240.c | 55 #include <dev/mdio/mdio.h>
|
H A D | arswitch_8316.c | 55 #include <dev/mdio/mdio.h>
|
H A D | arswitch_9340.c | 55 #include <dev/mdio/mdio.h>
|
H A D | arswitch_phy.c | 53 #include <dev/mdio/mdio.h>
|
H A D | arswitch_reg.c | 54 #include <dev/mdio/mdio.h>
|
/freebsd-12-stable/sys/dev/etherswitch/ |
H A D | miiproxy.c | 60 device_t mdio; member in struct:miiproxy_softc 245 sc->mdio = device_get_parent(rendezvous->target.device); 248 sc->mdio = NULL; 287 if (sc->mdio != NULL) 288 return (MDIO_READREG(sc->mdio, phy, reg)); 297 if (sc->mdio != NULL) 298 return (MDIO_WRITEREG(sc->mdio, phy, reg, val)); 380 device_get_unit(dev), "mdio", &name) != 0) { 382 printf("mii_attach_proxy: not attaching, no mdio" 400 device_printf(miiproxy, "attached to target %s\n", device_get_nameunit(sc->mdio)); [all...] |
/freebsd-12-stable/sys/kern/ |
H A D | vfs_mountroot.c | 582 struct md_ioctl *mdio; local 593 mdio = malloc(sizeof(*mdio) + len + 1, M_TEMP, M_WAITOK | M_ZERO); 594 path = (void *)(mdio + 1); 610 mdio->md_version = MDIOVERSION; 611 mdio->md_type = MD_VNODE; 614 mdio->md_unit = root_mount_mddev; 615 (void)kern_ioctl(td, fd, MDIOCDETACH, (void *)mdio); 620 mdio->md_file = (void *)(mdio [all...] |
/freebsd-12-stable/tests/sys/aio/ |
H A D | aio_test.c | 635 struct md_ioctl mdio; local 644 bzero(&mdio, sizeof(mdio)); 645 mdio.md_version = MDIOVERSION; 646 mdio.md_unit = unit; 647 if (ioctl(mdctl_fd, MDIOCDETACH, &mdio) == -1) { 666 struct md_ioctl mdio; local 675 bzero(&mdio, sizeof(mdio)); 676 mdio [all...] |
/freebsd-12-stable/usr.sbin/bsnmpd/modules/snmp_hostres/ |
H A D | hostres_diskstorage_tbl.c | 343 struct md_ioctl mdio; local 368 memset(&mdio, 0, sizeof(mdio)); 369 mdio.md_version = MDIOVERSION; 370 mdio.md_unit = unit; 372 if (ioctl(md_fd, MDIOCQUERY, &mdio) < 0) { 378 if ((mdio.md_options & MD_READONLY) == MD_READONLY)
|
/freebsd-12-stable/sys/dev/md/ |
H A D | md.c | 1912 #define MD_IOCTL2REQ(mdio, mdr) do { \ 1913 (mdr)->md_unit = (mdio)->md_unit; \ 1914 (mdr)->md_type = (mdio)->md_type; \ 1915 (mdr)->md_mediasize = (mdio)->md_mediasize; \ 1916 (mdr)->md_sectorsize = (mdio)->md_sectorsize; \ 1917 (mdr)->md_options = (mdio)->md_options; \ 1918 (mdr)->md_fwheads = (mdio)->md_fwheads; \ 1919 (mdr)->md_fwsectors = (mdio)->md_fwsectors; \ 1920 (mdr)->md_units = &(mdio)->md_pad[0]; \ 1921 (mdr)->md_units_nitems = nitems((mdio) 1953 struct md_ioctl *mdio = (struct md_ioctl *)addr; local 1971 struct md_ioctl32 *mdio = (struct md_ioctl32 *)addr; local 2025 struct md_ioctl *mdio = (struct md_ioctl *)addr; local 2032 struct md_ioctl32 *mdio = (struct md_ioctl32 *)addr; local [all...] |
/freebsd-12-stable/sys/dev/vnic/ |
H A D | thunder_bgx_fdt.c | 380 phandle_t phy, mdio; local 439 mdio = OF_parent(phy); 441 OF_device_from_xref(OF_xref_from_node(mdio));
|
/freebsd-12-stable/sys/dev/beri/virtio/ |
H A D | virtio_block.c | 101 struct md_ioctl *mdio; member in struct:beri_vtblk_softc 245 sc->mdio->md_file, td); 392 cfg->capacity = htobe64(sc->mdio->md_mediasize / DEV_BSIZE); 450 sc->mdio = (struct md_ioctl *)addr;
|
/freebsd-12-stable/sys/dev/tsec/ |
H A D | if_tsec_fdt.c | 168 phandle_t child, mdio, phy; local 199 mdio = OF_parent(phy); 200 OF_decode_addr(mdio, 0, &sc->phy_bst, &sc->phy_bsh, NULL); 207 if (ofw_bus_node_is_compatible(mdio, "fsl,etsec2-mdio"))
|
/freebsd-12-stable/sys/dev/bhnd/cores/pcie2/ |
H A D | bhnd_pcie2.c | 54 #include <dev/mdio/mdio.h>
|
/freebsd-12-stable/sys/dev/etherswitch/ip17x/ |
H A D | ip17x.c | 58 #include <dev/mdio/mdio.h> 651 DRIVER_MODULE(ip17x, mdio, ip17x_driver, ip17x_devclass, 0, 0); 657 MODULE_DEPEND(ip17x, mdio, 1, 1, 1); /* XXX which versions? */ 659 DRIVER_MODULE(mdio, ip17x, mdio_driver, mdio_devclass, 0, 0);
|
/freebsd-12-stable/sys/dev/etherswitch/ukswitch/ |
H A D | ukswitch.c | 55 #include <dev/mdio/mdio.h> 578 DRIVER_MODULE(ukswitch, mdio, ukswitch_driver, ukswitch_devclass, 0, 0); 580 DRIVER_MODULE(mdio, ukswitch, mdio_driver, mdio_devclass, 0, 0);
|
/freebsd-12-stable/sys/mips/nlm/dev/net/ |
H A D | sgmii.c | 41 #include <mips/nlm/hal/mdio.h>
|
/freebsd-12-stable/sys/dev/etherswitch/mtkswitch/ |
H A D | mtkswitch.c | 53 #include <dev/mdio/mdio.h> 669 DRIVER_MODULE(mdio, mtkswitch, mdio_driver, mdio_devclass, 0, 0);
|
/freebsd-12-stable/sys/dev/bhnd/cores/pci/ |
H A D | bhnd_pci.c | 54 #include <dev/mdio/mdio.h>
|