Lines Matching refs:lstate
677 int oldstate = cp->lstate; in cas_begin_auto_negotiation()
700 if (cp->lstate == link_up) { in cas_begin_auto_negotiation()
707 cp->lstate = link_down; in cas_begin_auto_negotiation()
738 cp->lstate = link_aneg; in cas_begin_auto_negotiation()
743 cp->lstate = link_force_ok; in cas_begin_auto_negotiation()
756 cp->lstate = link_aneg; in cas_begin_auto_negotiation()
758 cp->lstate = link_force_ok; in cas_begin_auto_negotiation()
1012 if (cp->lstate != link_up) { in cas_pcs_link_check()
1014 cp->lstate = link_up; in cas_pcs_link_check()
1021 } else if (cp->lstate == link_up) { in cas_pcs_link_check()
1022 cp->lstate = link_down; in cas_pcs_link_check()
1063 } else if (cp->lstate == link_down) { in cas_pcs_link_check()
1544 switch (cp->lstate) { in cas_mdio_link_not_up()
1549 cp->lstate = link_force_ok; in cas_mdio_link_not_up()
1565 cp->lstate = link_force_try; in cas_mdio_link_not_up()
1608 if ((cp->lstate == link_force_try) && in cas_mii_link_check()
1610 cp->lstate = link_force_ret; in cas_mii_link_check()
1623 } else if (cp->lstate != link_up) { in cas_mii_link_check()
1624 cp->lstate = link_up; in cas_mii_link_check()
1639 if (cp->lstate == link_up) { in cas_mii_link_check()
1640 cp->lstate = link_down; in cas_mii_link_check()
3674 } else if (cp->lstate == link_up) { in cas_init_hw()
4491 linkstate = cp->lstate; in cas_get_link_ksettings()
4628 return cp->lstate == link_up; in cas_get_link()
4985 cp->lstate = link_down; in cas_init_one()