Lines Matching refs:mdio
569 struct md_ioctl mdio;
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;
615 bzero(&mdio, sizeof(mdio));
616 mdio.md_version = MDIOVERSION;
617 mdio.md_type = MD_MALLOC;
618 mdio.md_options = MD_AUTOUNIT | MD_COMPRESS;
619 mdio.md_mediasize = GLOBAL_MAX;
620 mdio.md_sectorsize = 512;
625 if (ioctl(mdctl_fd, MDIOCATTACH, &mdio) < 0) {
632 arg.ama_unit = unit = mdio.md_unit;