Lines Matching refs:mii_status
221 static void mii_init(struct velocity_info *vptr, u32 mii_status);
232 u32 mii_status);
900 if (vptr->mii_status & VELOCITY_LINK_FAIL) { in velocity_print_link_status()
905 if (vptr->mii_status & VELOCITY_SPEED_1000) in velocity_print_link_status()
907 else if (vptr->mii_status & VELOCITY_SPEED_100) in velocity_print_link_status()
912 if (vptr->mii_status & VELOCITY_DUPLEX_FULL) in velocity_print_link_status()
979 int i, mii_status; in velocity_init_registers() local
996 mii_status = velocity_get_opt_media_mode(vptr); in velocity_init_registers()
998 if (velocity_set_media_mode(vptr, mii_status) != in velocity_init_registers()
1001 if (!(vptr->mii_status & VELOCITY_LINK_FAIL)) in velocity_init_registers()
1078 mii_status = velocity_get_opt_media_mode(vptr); in velocity_init_registers()
1081 mii_init(vptr, mii_status); in velocity_init_registers()
1083 if (velocity_set_media_mode(vptr, mii_status) != in velocity_init_registers()
1086 if (!(vptr->mii_status & VELOCITY_LINK_FAIL)) in velocity_init_registers()
1307 static void mii_init(struct velocity_info *vptr, u32 mii_status __unused) in mii_init()
1323 if (vptr->mii_status & VELOCITY_DUPLEX_FULL) in mii_init()
1346 if (vptr->mii_status & VELOCITY_DUPLEX_FULL) in mii_init()
1533 vptr->mii_status = status; in velocity_get_opt_media_mode()
1607 u32 mii_status) in velocity_set_media_mode() argument
1612 vptr->mii_status = mii_check_media_mode(vptr->mac_regs); in velocity_set_media_mode()
1613 curr_status = vptr->mii_status & (~VELOCITY_LINK_FAIL); in velocity_set_media_mode()
1637 if (mii_status & VELOCITY_AUTONEG_ENABLE) { in velocity_set_media_mode()
1668 if (mii_status & VELOCITY_DUPLEX_FULL) { in velocity_set_media_mode()
1687 if (!(mii_status & VELOCITY_DUPLEX_FULL) in velocity_set_media_mode()
1688 && (mii_status & VELOCITY_SPEED_10)) { in velocity_set_media_mode()
1696 if (mii_status & VELOCITY_SPEED_100) { in velocity_set_media_mode()
1697 if (mii_status & VELOCITY_DUPLEX_FULL) in velocity_set_media_mode()
1702 if (mii_status & VELOCITY_DUPLEX_FULL) in velocity_set_media_mode()