Lines Matching refs:mii_status
611 vptr->mii_status = status; in velocity_get_opt_media_mode()
872 static int velocity_set_media_mode(struct velocity_info *vptr, u32 mii_status) in velocity_set_media_mode() argument
877 vptr->mii_status = mii_check_media_mode(vptr->mac_regs); in velocity_set_media_mode()
878 curr_status = vptr->mii_status & (~VELOCITY_LINK_FAIL); in velocity_set_media_mode()
900 if (mii_status & VELOCITY_AUTONEG_ENABLE) { in velocity_set_media_mode()
928 if (mii_status & VELOCITY_SPEED_1000) in velocity_set_media_mode()
933 if (mii_status & VELOCITY_DUPLEX_FULL) { in velocity_set_media_mode()
949 if ((mii_status & VELOCITY_SPEED_1000) && in velocity_set_media_mode()
950 (mii_status & VELOCITY_DUPLEX_FULL)) { in velocity_set_media_mode()
955 if (!(mii_status & VELOCITY_DUPLEX_FULL) && (mii_status & VELOCITY_SPEED_10)) in velocity_set_media_mode()
963 if (mii_status & VELOCITY_SPEED_100) { in velocity_set_media_mode()
964 if (mii_status & VELOCITY_DUPLEX_FULL) in velocity_set_media_mode()
968 } else if (mii_status & VELOCITY_SPEED_10) { in velocity_set_media_mode()
969 if (mii_status & VELOCITY_DUPLEX_FULL) in velocity_set_media_mode()
995 if (vptr->mii_status & VELOCITY_LINK_FAIL) { in velocity_print_link_status()
1000 if (vptr->mii_status & VELOCITY_SPEED_1000) in velocity_print_link_status()
1002 else if (vptr->mii_status & VELOCITY_SPEED_100) in velocity_print_link_status()
1007 if (vptr->mii_status & VELOCITY_DUPLEX_FULL) in velocity_print_link_status()
1173 static void mii_init(struct velocity_info *vptr, u32 mii_status) in mii_init() argument
1188 if (vptr->mii_status & VELOCITY_DUPLEX_FULL) in mii_init()
1208 if (vptr->mii_status & VELOCITY_DUPLEX_FULL) in mii_init()
1248 if (vptr->mii_status & (VELOCITY_SPEED_1000 | in setup_queue_timers()
1309 int i, mii_status; in velocity_init_registers() local
1326 mii_status = velocity_get_opt_media_mode(vptr); in velocity_init_registers()
1327 if (velocity_set_media_mode(vptr, mii_status) != VELOCITY_LINK_CHANGE) { in velocity_init_registers()
1329 if (!(vptr->mii_status & VELOCITY_LINK_FAIL)) in velocity_init_registers()
1401 mii_status = velocity_get_opt_media_mode(vptr); in velocity_init_registers()
1404 mii_init(vptr, mii_status); in velocity_init_registers()
1406 if (velocity_set_media_mode(vptr, mii_status) != VELOCITY_LINK_CHANGE) { in velocity_init_registers()
1408 if (!(vptr->mii_status & VELOCITY_LINK_FAIL)) in velocity_init_registers()
1818 vptr->mii_status = check_connection_type(regs); in velocity_error()
1826 if (vptr->mii_status & VELOCITY_DUPLEX_FULL) in velocity_error()
1834 if (!(vptr->mii_status & VELOCITY_DUPLEX_FULL) && (vptr->mii_status & VELOCITY_SPEED_10)) in velocity_error()
1847 vptr->mii_status &= ~VELOCITY_LINK_FAIL; in velocity_error()
1850 vptr->mii_status |= VELOCITY_LINK_FAIL; in velocity_error()
1864 if (vptr->mii_status & VELOCITY_LINK_FAIL) in velocity_error()
1938 (!(vptr->mii_status & VELOCITY_LINK_FAIL))) { in velocity_tx_srv()
2824 vptr->mii_status |= VELOCITY_LINK_FAIL; in velocity_found1()
2948 if (vptr->mii_status & VELOCITY_AUTONEG_ENABLE) { in velocity_set_wol()
2955 if (vptr->mii_status & VELOCITY_SPEED_1000) in velocity_set_wol()