Lines Matching refs:ma
550 mii_phy_match_gen(const struct mii_attach_args *ma, in mii_phy_match_gen() argument
556 if (MII_OUI(ma->mii_id1, ma->mii_id2) == mpd->mpd_oui && in mii_phy_match_gen()
557 MII_MODEL(ma->mii_id2) == mpd->mpd_model) in mii_phy_match_gen()
564 mii_phy_match(const struct mii_attach_args *ma, const struct mii_phydesc *mpd) in mii_phy_match() argument
567 return (mii_phy_match_gen(ma, mpd, sizeof(struct mii_phydesc))); in mii_phy_match()
587 struct mii_attach_args *ma; in mii_phy_dev_attach() local
591 ma = device_get_ivars(dev); in mii_phy_dev_attach()
593 mii = ma->mii_data; in mii_phy_dev_attach()
597 sc->mii_mpd_oui = MII_OUI(ma->mii_id1, ma->mii_id2); in mii_phy_dev_attach()
598 sc->mii_mpd_model = MII_MODEL(ma->mii_id2); in mii_phy_dev_attach()
599 sc->mii_mpd_rev = MII_REV(ma->mii_id2); in mii_phy_dev_attach()
600 sc->mii_capmask = ma->mii_capmask; in mii_phy_dev_attach()
602 sc->mii_phy = ma->mii_phyno; in mii_phy_dev_attach()
603 sc->mii_offset = ma->mii_offset; in mii_phy_dev_attach()