Lines Matching +full:4 +full:ma
125 struct mii_attach_args *ma; in miibus_attach() local
133 ma = device_get_ivars(children[i]); in miibus_attach()
134 ma->mii_data = mii; in miibus_attach()
182 struct mii_attach_args *ma; in miibus_print_child() local
185 ma = device_get_ivars(child); in miibus_print_child()
187 retval += printf(" PHY %d", ma->mii_phyno); in miibus_print_child()
217 struct mii_attach_args *ma; in miibus_child_pnpinfo() local
219 ma = device_get_ivars(child); in miibus_child_pnpinfo()
221 MII_OUI(ma->mii_id1, ma->mii_id2), in miibus_child_pnpinfo()
222 MII_MODEL(ma->mii_id2), MII_REV(ma->mii_id2)); in miibus_child_pnpinfo()
229 struct mii_attach_args *ma; in miibus_child_location() local
231 ma = device_get_ivars(child); in miibus_child_location()
232 sbuf_printf(sb, "phyno=%d", ma->mii_phyno); in miibus_child_location()
240 struct mii_attach_args *args, *ma; in miibus_hinted_child() local
249 ma = NULL; in miibus_hinted_child()
253 ma = args; in miibus_hinted_child()
263 if (ma == NULL) { in miibus_hinted_child()
264 ma = malloc(sizeof(struct mii_attach_args), M_DEVBUF, in miibus_hinted_child()
266 if (ma == NULL) in miibus_hinted_child()
270 free(ma, M_DEVBUF); in miibus_hinted_child()
274 ma->mii_phyno = val; in miibus_hinted_child()
275 ma->mii_offset = ivars->mii_offset++; in miibus_hinted_child()
276 ma->mii_id1 = 0; in miibus_hinted_child()
277 ma->mii_id2 = 0; in miibus_hinted_child()
278 ma->mii_capmask = BMSR_DEFCAPMASK; in miibus_hinted_child()
279 device_set_ivars(phy, ma); in miibus_hinted_child()
283 ma->mii_id1 = val; in miibus_hinted_child()
285 ma->mii_id2 = val; in miibus_hinted_child()
287 ma->mii_capmask = val; in miibus_hinted_child()
373 struct mii_attach_args *args, ma; in mii_attach() local
430 ma.mii_data = device_get_softc(*miibus); in mii_attach()
433 ma.mii_capmask = capmask; in mii_attach()
444 for (ma.mii_phyno = phymin; ma.mii_phyno <= phymax; ma.mii_phyno++) { in mii_attach()
452 if (args->mii_phyno == ma.mii_phyno) { in mii_attach()
466 bmsr = MIIBUS_READREG(dev, ma.mii_phyno, MII_BMSR); in mii_attach()
483 if ((phymask & (1 << ma.mii_phyno)) == 0) in mii_attach()
491 ma.mii_id1 = MIIBUS_READREG(dev, ma.mii_phyno, MII_PHYIDR1); in mii_attach()
492 ma.mii_id2 = MIIBUS_READREG(dev, ma.mii_phyno, MII_PHYIDR2); in mii_attach()
494 ma.mii_offset = ivars->mii_offset; in mii_attach()
499 bcopy((char *)&ma, (char *)args, sizeof(ma)); in mii_attach()
624 0, 8, 4, 12, 2, 10, 6, 14, 1, 9, 5, 13, 3, 11, 7, 15 in mii_bitreverse()
627 return ((nibbletab[x & 15] << 4) | nibbletab[x >> 4]); in mii_bitreverse()