• Home
  • Raw
  • Download

Lines Matching refs:mii_status

617 	vptr->mii_status = status;  in velocity_get_opt_media_mode()
879 static int velocity_set_media_mode(struct velocity_info *vptr, u32 mii_status) in velocity_set_media_mode() argument
883 vptr->mii_status = mii_check_media_mode(vptr->mac_regs); in velocity_set_media_mode()
894 if (mii_status & VELOCITY_AUTONEG_ENABLE) { in velocity_set_media_mode()
922 if (mii_status & VELOCITY_SPEED_1000) in velocity_set_media_mode()
927 if (mii_status & VELOCITY_DUPLEX_FULL) { in velocity_set_media_mode()
945 if ((mii_status & VELOCITY_SPEED_1000) && in velocity_set_media_mode()
946 (mii_status & VELOCITY_DUPLEX_FULL)) { in velocity_set_media_mode()
951 if (!(mii_status & VELOCITY_DUPLEX_FULL) && (mii_status & VELOCITY_SPEED_10)) in velocity_set_media_mode()
959 if (mii_status & VELOCITY_SPEED_100) { in velocity_set_media_mode()
960 if (mii_status & VELOCITY_DUPLEX_FULL) in velocity_set_media_mode()
964 } else if (mii_status & VELOCITY_SPEED_10) { in velocity_set_media_mode()
965 if (mii_status & VELOCITY_DUPLEX_FULL) in velocity_set_media_mode()
994 if (vptr->mii_status & VELOCITY_LINK_FAIL) { in velocity_print_link_status()
1002 if (vptr->mii_status & VELOCITY_SPEED_1000) in velocity_print_link_status()
1004 else if (vptr->mii_status & VELOCITY_SPEED_100) in velocity_print_link_status()
1009 if (vptr->mii_status & VELOCITY_DUPLEX_FULL) in velocity_print_link_status()
1185 static void mii_init(struct velocity_info *vptr, u32 mii_status) in mii_init() argument
1193 if (vptr->mii_status & VELOCITY_DUPLEX_FULL) in mii_init()
1211 if (vptr->mii_status & VELOCITY_DUPLEX_FULL) in mii_init()
1231 if (vptr->mii_status & VELOCITY_DUPLEX_FULL) in mii_init()
1272 if (vptr->mii_status & (VELOCITY_SPEED_1000 | in setup_queue_timers()
1333 int i, mii_status; in velocity_init_registers() local
1350 mii_status = velocity_get_opt_media_mode(vptr); in velocity_init_registers()
1351 if (velocity_set_media_mode(vptr, mii_status) != VELOCITY_LINK_CHANGE) { in velocity_init_registers()
1353 if (!(vptr->mii_status & VELOCITY_LINK_FAIL)) in velocity_init_registers()
1427 mii_status = velocity_get_opt_media_mode(vptr); in velocity_init_registers()
1430 mii_init(vptr, mii_status); in velocity_init_registers()
1432 if (velocity_set_media_mode(vptr, mii_status) != VELOCITY_LINK_CHANGE) { in velocity_init_registers()
1434 if (!(vptr->mii_status & VELOCITY_LINK_FAIL)) in velocity_init_registers()
1841 vptr->mii_status = check_connection_type(regs); in velocity_error()
1849 if (vptr->mii_status & VELOCITY_DUPLEX_FULL) in velocity_error()
1857 if (!(vptr->mii_status & VELOCITY_DUPLEX_FULL) && (vptr->mii_status & VELOCITY_SPEED_10)) in velocity_error()
1870 vptr->mii_status &= ~VELOCITY_LINK_FAIL; in velocity_error()
1873 vptr->mii_status |= VELOCITY_LINK_FAIL; in velocity_error()
1887 if (vptr->mii_status & VELOCITY_LINK_FAIL) in velocity_error()
1961 (!(vptr->mii_status & VELOCITY_LINK_FAIL))) { in velocity_tx_srv()
2866 vptr->mii_status |= VELOCITY_LINK_FAIL; in velocity_probe()
3070 if (vptr->mii_status & VELOCITY_AUTONEG_ENABLE) { in velocity_set_wol()
3077 if (vptr->mii_status & VELOCITY_SPEED_1000) in velocity_set_wol()