Lines Matching refs:current_link

513 	struct qed_link_output current_link;  in qede_get_link_ksettings()  local
517 memset(&current_link, 0, sizeof(current_link)); in qede_get_link_ksettings()
518 edev->ops->common->get_link(edev->cdev, &current_link); in qede_get_link_ksettings()
520 linkmode_copy(link_modes->supported, current_link.supported_caps); in qede_get_link_ksettings()
521 linkmode_copy(link_modes->advertising, current_link.advertised_caps); in qede_get_link_ksettings()
522 linkmode_copy(link_modes->lp_advertising, current_link.lp_caps); in qede_get_link_ksettings()
524 if ((edev->state == QEDE_STATE_OPEN) && (current_link.link_up)) { in qede_get_link_ksettings()
525 base->speed = current_link.speed; in qede_get_link_ksettings()
526 base->duplex = current_link.duplex; in qede_get_link_ksettings()
534 base->port = current_link.port; in qede_get_link_ksettings()
535 base->autoneg = (current_link.autoneg) ? AUTONEG_ENABLE : in qede_get_link_ksettings()
547 struct qed_link_output current_link; in qede_set_link_ksettings() local
555 memset(&current_link, 0, sizeof(current_link)); in qede_set_link_ksettings()
557 edev->ops->common->get_link(edev->cdev, &current_link); in qede_set_link_ksettings()
563 if (!phylink_test(current_link.supported_caps, Autoneg)) { in qede_set_link_ksettings()
581 !linkmode_intersects(current_link.supported_caps, in qede_set_link_ksettings()
586 current_link.supported_caps, map->caps); in qede_set_link_ksettings()
711 struct qed_link_output current_link; in qede_nway_reset() local
722 memset(&current_link, 0, sizeof(current_link)); in qede_nway_reset()
723 edev->ops->common->get_link(edev->cdev, &current_link); in qede_nway_reset()
724 if (!current_link.link_up) in qede_nway_reset()
740 struct qed_link_output current_link; in qede_get_link() local
742 memset(&current_link, 0, sizeof(current_link)); in qede_get_link()
743 edev->ops->common->get_link(edev->cdev, &current_link); in qede_get_link()
745 return current_link.link_up; in qede_get_link()
947 struct qed_link_output current_link; in qede_get_pauseparam() local
949 memset(&current_link, 0, sizeof(current_link)); in qede_get_pauseparam()
950 edev->ops->common->get_link(edev->cdev, &current_link); in qede_get_pauseparam()
952 if (current_link.pause_config & QED_LINK_PAUSE_AUTONEG_ENABLE) in qede_get_pauseparam()
954 if (current_link.pause_config & QED_LINK_PAUSE_RX_ENABLE) in qede_get_pauseparam()
956 if (current_link.pause_config & QED_LINK_PAUSE_TX_ENABLE) in qede_get_pauseparam()
970 struct qed_link_output current_link; in qede_set_pauseparam() local
978 memset(&current_link, 0, sizeof(current_link)); in qede_set_pauseparam()
979 edev->ops->common->get_link(edev->cdev, &current_link); in qede_set_pauseparam()
985 if (!phylink_test(current_link.supported_caps, Autoneg)) { in qede_set_pauseparam()
1782 struct qed_link_output current_link; in qede_get_eee() local
1784 memset(&current_link, 0, sizeof(current_link)); in qede_get_eee()
1785 edev->ops->common->get_link(edev->cdev, &current_link); in qede_get_eee()
1787 if (!current_link.eee_supported) { in qede_get_eee()
1794 current_link.eee.adv_caps & QED_EEE_1G_ADV); in qede_get_eee()
1797 current_link.eee.adv_caps & QED_EEE_10G_ADV); in qede_get_eee()
1801 current_link.sup_caps & QED_EEE_1G_ADV); in qede_get_eee()
1804 current_link.sup_caps & QED_EEE_10G_ADV); in qede_get_eee()
1808 current_link.eee.lp_adv_caps & QED_EEE_1G_ADV); in qede_get_eee()
1811 current_link.eee.lp_adv_caps & QED_EEE_10G_ADV); in qede_get_eee()
1813 edata->tx_lpi_timer = current_link.eee.tx_lpi_timer; in qede_get_eee()
1814 edata->eee_enabled = current_link.eee.enable; in qede_get_eee()
1815 edata->tx_lpi_enabled = current_link.eee.tx_lpi_enable; in qede_get_eee()
1816 edata->eee_active = current_link.eee_active; in qede_get_eee()
1826 struct qed_link_output current_link; in qede_set_eee() local
1835 memset(&current_link, 0, sizeof(current_link)); in qede_set_eee()
1836 edev->ops->common->get_link(edev->cdev, &current_link); in qede_set_eee()
1838 if (!current_link.eee_supported) { in qede_set_eee()