Lines Matching refs:current_link
523 struct qed_link_output current_link; in qede_get_link_ksettings() local
527 memset(¤t_link, 0, sizeof(current_link)); in qede_get_link_ksettings()
528 edev->ops->common->get_link(edev->cdev, ¤t_link); in qede_get_link_ksettings()
530 linkmode_copy(link_modes->supported, current_link.supported_caps); in qede_get_link_ksettings()
531 linkmode_copy(link_modes->advertising, current_link.advertised_caps); in qede_get_link_ksettings()
532 linkmode_copy(link_modes->lp_advertising, current_link.lp_caps); in qede_get_link_ksettings()
534 if ((edev->state == QEDE_STATE_OPEN) && (current_link.link_up)) { in qede_get_link_ksettings()
535 base->speed = current_link.speed; in qede_get_link_ksettings()
536 base->duplex = current_link.duplex; in qede_get_link_ksettings()
544 base->port = current_link.port; in qede_get_link_ksettings()
545 base->autoneg = (current_link.autoneg) ? AUTONEG_ENABLE : in qede_get_link_ksettings()
557 struct qed_link_output current_link; in qede_set_link_ksettings() local
565 memset(¤t_link, 0, sizeof(current_link)); in qede_set_link_ksettings()
567 edev->ops->common->get_link(edev->cdev, ¤t_link); in qede_set_link_ksettings()
573 if (!phylink_test(current_link.supported_caps, Autoneg)) { in qede_set_link_ksettings()
591 !linkmode_intersects(current_link.supported_caps, in qede_set_link_ksettings()
596 current_link.supported_caps, map->caps); in qede_set_link_ksettings()
721 struct qed_link_output current_link; in qede_nway_reset() local
732 memset(¤t_link, 0, sizeof(current_link)); in qede_nway_reset()
733 edev->ops->common->get_link(edev->cdev, ¤t_link); in qede_nway_reset()
734 if (!current_link.link_up) in qede_nway_reset()
750 struct qed_link_output current_link; in qede_get_link() local
752 memset(¤t_link, 0, sizeof(current_link)); in qede_get_link()
753 edev->ops->common->get_link(edev->cdev, ¤t_link); in qede_get_link()
755 return current_link.link_up; in qede_get_link()
953 struct qed_link_output current_link; in qede_get_pauseparam() local
955 memset(¤t_link, 0, sizeof(current_link)); in qede_get_pauseparam()
956 edev->ops->common->get_link(edev->cdev, ¤t_link); in qede_get_pauseparam()
958 if (current_link.pause_config & QED_LINK_PAUSE_AUTONEG_ENABLE) in qede_get_pauseparam()
960 if (current_link.pause_config & QED_LINK_PAUSE_RX_ENABLE) in qede_get_pauseparam()
962 if (current_link.pause_config & QED_LINK_PAUSE_TX_ENABLE) in qede_get_pauseparam()
976 struct qed_link_output current_link; in qede_set_pauseparam() local
984 memset(¤t_link, 0, sizeof(current_link)); in qede_set_pauseparam()
985 edev->ops->common->get_link(edev->cdev, ¤t_link); in qede_set_pauseparam()
991 if (!phylink_test(current_link.supported_caps, Autoneg)) { in qede_set_pauseparam()
1786 struct qed_link_output current_link; in qede_get_eee() local
1788 memset(¤t_link, 0, sizeof(current_link)); in qede_get_eee()
1789 edev->ops->common->get_link(edev->cdev, ¤t_link); in qede_get_eee()
1791 if (!current_link.eee_supported) { in qede_get_eee()
1796 if (current_link.eee.adv_caps & QED_EEE_1G_ADV) in qede_get_eee()
1798 if (current_link.eee.adv_caps & QED_EEE_10G_ADV) in qede_get_eee()
1800 if (current_link.sup_caps & QED_EEE_1G_ADV) in qede_get_eee()
1802 if (current_link.sup_caps & QED_EEE_10G_ADV) in qede_get_eee()
1804 if (current_link.eee.lp_adv_caps & QED_EEE_1G_ADV) in qede_get_eee()
1806 if (current_link.eee.lp_adv_caps & QED_EEE_10G_ADV) in qede_get_eee()
1809 edata->tx_lpi_timer = current_link.eee.tx_lpi_timer; in qede_get_eee()
1810 edata->eee_enabled = current_link.eee.enable; in qede_get_eee()
1811 edata->tx_lpi_enabled = current_link.eee.tx_lpi_enable; in qede_get_eee()
1812 edata->eee_active = current_link.eee_active; in qede_get_eee()
1820 struct qed_link_output current_link; in qede_set_eee() local
1828 memset(¤t_link, 0, sizeof(current_link)); in qede_set_eee()
1829 edev->ops->common->get_link(edev->cdev, ¤t_link); in qede_set_eee()
1831 if (!current_link.eee_supported) { in qede_set_eee()