Searched refs:mdio (Results 1 - 25 of 26) sorted by relevance

12

/freebsd-10.2-release/sbin/mdconfig/
H A Dmdconfig.c57 static struct md_ioctl mdio; variable in typeref:struct:md_ioctl
103 bzero(&mdio, sizeof(mdio));
104 mdio.md_file = malloc(PATH_MAX);
105 if (mdio.md_file == NULL)
108 bzero(mdio.md_file, PATH_MAX);
126 mdio.md_options |= MD_AUTOUNIT;
133 mdio.md_options |= MD_AUTOUNIT;
140 mdio.md_options |= MD_AUTOUNIT;
150 mdio
[all...]
/freebsd-10.2-release/sys/contrib/octeon-sdk/
H A Dcvmx-spi4000.c189 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...]
H A Dcvmx-helper-board.c61 #include <asm/octeon/cvmx-mdio.h>
71 #include "cvmx-mdio.h"
287 "cavium,octeon-3860-mdio");
294 cvmx_dprintf("ERROR : unable to get reg property in phy mdio\n");
904 cvmx_dprintf("ERROR : unexpected mdio switch for board=%08x\n",
/freebsd-10.2-release/sys/dev/md/
H A Dmd.c1043 mdcreate_malloc(struct md_s *sc, struct md_ioctl *mdio) argument
1050 if (mdio->md_options & ~(MD_AUTOUNIT | MD_COMPRESS | MD_RESERVE))
1052 if (mdio->md_sectorsize != 0 && !powerof2(mdio->md_sectorsize))
1055 if (mdio->md_options & MD_RESERVE)
1056 mdio->md_options &= ~MD_COMPRESS;
1057 if (mdio->md_fwsectors != 0)
1058 sc->fwsectors = mdio->md_fwsectors;
1059 if (mdio->md_fwheads != 0)
1060 sc->fwheads = mdio
1126 mdcreate_vnode(struct md_s *sc, struct md_ioctl *mdio, struct thread *td) argument
1243 mdresize(struct md_s *sc, struct md_ioctl *mdio) argument
1301 mdcreate_swap(struct md_s *sc, struct md_ioctl *mdio, struct thread *td) argument
1348 struct md_ioctl *mdio; local
[all...]
/freebsd-10.2-release/tests/sys/aio/
H A Daio_test.c569 struct md_ioctl mdio; local
578 bzero(&mdio, sizeof(mdio));
579 mdio.md_version = MDIOVERSION;
580 mdio.md_unit = ama->ama_unit;
581 if (ioctl(ama->ama_mdctl_fd, MDIOCDETACH, &mdio) == -1) {
607 struct md_ioctl mdio; local
615 bzero(&mdio, sizeof(mdio));
616 mdio
[all...]
/freebsd-10.2-release/sys/dev/etherswitch/
H A Dmiiproxy.c61 device_t mdio; member in struct:miiproxy_softc
246 sc->mdio = device_get_parent(rendevous->target.device);
249 sc->mdio = NULL;
288 if (sc->mdio != NULL)
289 return (MDIO_READREG(sc->mdio, phy, reg));
298 if (sc->mdio != NULL)
299 return (MDIO_WRITEREG(sc->mdio, phy, reg, val));
381 device_get_unit(dev), "mdio", &name) != 0) {
383 printf("mii_attach_proxy: not attaching, no mdio"
401 device_printf(miiproxy, "attached to target %s\n", device_get_nameunit(sc->mdio));
[all...]
H A Dmdio.c26 * $FreeBSD: releng/10.2/sys/dev/etherswitch/mdio.c 234861 2012-05-01 06:11:38Z adrian $
33 #include <dev/etherswitch/mdio.h>
112 "mdio",
/freebsd-10.2-release/sys/kern/
H A Dvfs_mountroot.c510 struct md_ioctl *mdio; local
521 mdio = malloc(sizeof(*mdio) + len + 1, M_TEMP, M_WAITOK | M_ZERO);
522 path = (void *)(mdio + 1);
537 mdio->md_version = MDIOVERSION;
538 mdio->md_type = MD_VNODE;
541 mdio->md_unit = root_mount_mddev;
543 error = kern_ioctl(td, fd, MDIOCDETACH, (void *)mdio);
549 mdio->md_file = (void *)(mdio
[all...]
/freebsd-10.2-release/sys/dev/etherswitch/arswitch/
H A Darswitch_8216.c53 #include <dev/etherswitch/mdio.h>
H A Darswitch_8226.c53 #include <dev/etherswitch/mdio.h>
H A Darswitch_7240.c53 #include <dev/etherswitch/mdio.h>
H A Darswitch_8316.c53 #include <dev/etherswitch/mdio.h>
H A Darswitch_phy.c53 #include <dev/etherswitch/mdio.h>
H A Darswitch_reg.c52 #include <dev/etherswitch/mdio.h>
H A Darswitch.c53 #include <dev/etherswitch/mdio.h>
708 DRIVER_MODULE(arswitch, mdio, arswitch_driver, arswitch_devclass, 0, 0);
710 DRIVER_MODULE(mdio, arswitch, mdio_driver, mdio_devclass, 0, 0);
/freebsd-10.2-release/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_diskstorage_tbl.c343 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-10.2-release/sys/mips/nlm/dev/net/
H A Dsgmii.c39 #include <mips/nlm/hal/mdio.h>
H A Dmdio.c30 __FBSDID("$FreeBSD: releng/10.2/sys/mips/nlm/dev/net/mdio.c 245881 2013-01-24 15:14:22Z jchandra $");
39 #include <mips/nlm/hal/mdio.h>
292 * nae_gmac_mdio_reset -Reset sgmii mdio module.
H A Dxaui.c39 #include <mips/nlm/hal/mdio.h>
H A Dnae.c39 #include <mips/nlm/hal/mdio.h>
H A Dxlpge.c86 #include <mips/nlm/hal/mdio.h>
/freebsd-10.2-release/sys/dev/etherswitch/ip17x/
H A Dip17x.c54 #include <dev/etherswitch/mdio.h>
611 DRIVER_MODULE(ip17x, mdio, ip17x_driver, ip17x_devclass, 0, 0);
613 DRIVER_MODULE(mdio, ip17x, mdio_driver, mdio_devclass, 0, 0);
/freebsd-10.2-release/sys/dev/etherswitch/ukswitch/
H A Dukswitch.c51 #include <dev/etherswitch/mdio.h>
564 DRIVER_MODULE(ukswitch, mdio, ukswitch_driver, ukswitch_devclass, 0, 0);
566 DRIVER_MODULE(mdio, ukswitch, mdio_driver, mdio_devclass, 0, 0);
/freebsd-10.2-release/sys/dev/cxgbe/common/
H A Dt4_hw.c4210 c.u.mdio.paddr_mmd = htons(V_FW_LDST_CMD_PADDR(phy_addr) |
4212 c.u.mdio.raddr = htons(reg);
4216 *valp = ntohs(c.u.mdio.rval);
4240 c.u.mdio.paddr_mmd = htons(V_FW_LDST_CMD_PADDR(phy_addr) |
4242 c.u.mdio.raddr = htons(reg);
4243 c.u.mdio.rval = htons(val);
/freebsd-10.2-release/sys/mips/atheros/
H A Dif_arge.c80 #include <dev/etherswitch/mdio.h>
235 DRIVER_MODULE(mdio, argemdio, mdio_driver, mdio_devclass, 0, 0);

Completed in 228 milliseconds

12