Lines Matching refs:current_link
535 struct qed_link_output current_link; in qede_get_link_ksettings() local
539 memset(¤t_link, 0, sizeof(current_link)); in qede_get_link_ksettings()
540 edev->ops->common->get_link(edev->cdev, ¤t_link); in qede_get_link_ksettings()
542 linkmode_copy(link_modes->supported, current_link.supported_caps); in qede_get_link_ksettings()
543 linkmode_copy(link_modes->advertising, current_link.advertised_caps); in qede_get_link_ksettings()
544 linkmode_copy(link_modes->lp_advertising, current_link.lp_caps); in qede_get_link_ksettings()
546 if ((edev->state == QEDE_STATE_OPEN) && (current_link.link_up)) { in qede_get_link_ksettings()
547 base->speed = current_link.speed; in qede_get_link_ksettings()
548 base->duplex = current_link.duplex; in qede_get_link_ksettings()
556 base->port = current_link.port; in qede_get_link_ksettings()
557 base->autoneg = (current_link.autoneg) ? AUTONEG_ENABLE : in qede_get_link_ksettings()
569 struct qed_link_output current_link; in qede_set_link_ksettings() local
577 memset(¤t_link, 0, sizeof(current_link)); in qede_set_link_ksettings()
579 edev->ops->common->get_link(edev->cdev, ¤t_link); in qede_set_link_ksettings()
585 if (!phylink_test(current_link.supported_caps, Autoneg)) { in qede_set_link_ksettings()
603 !linkmode_intersects(current_link.supported_caps, in qede_set_link_ksettings()
608 current_link.supported_caps, map->caps); in qede_set_link_ksettings()
733 struct qed_link_output current_link; in qede_nway_reset() local
744 memset(¤t_link, 0, sizeof(current_link)); in qede_nway_reset()
745 edev->ops->common->get_link(edev->cdev, ¤t_link); in qede_nway_reset()
746 if (!current_link.link_up) in qede_nway_reset()
762 struct qed_link_output current_link; in qede_get_link() local
764 memset(¤t_link, 0, sizeof(current_link)); in qede_get_link()
765 edev->ops->common->get_link(edev->cdev, ¤t_link); in qede_get_link()
767 return current_link.link_up; in qede_get_link()
969 struct qed_link_output current_link; in qede_get_pauseparam() local
971 memset(¤t_link, 0, sizeof(current_link)); in qede_get_pauseparam()
972 edev->ops->common->get_link(edev->cdev, ¤t_link); in qede_get_pauseparam()
974 if (current_link.pause_config & QED_LINK_PAUSE_AUTONEG_ENABLE) in qede_get_pauseparam()
976 if (current_link.pause_config & QED_LINK_PAUSE_RX_ENABLE) in qede_get_pauseparam()
978 if (current_link.pause_config & QED_LINK_PAUSE_TX_ENABLE) in qede_get_pauseparam()
992 struct qed_link_output current_link; in qede_set_pauseparam() local
1000 memset(¤t_link, 0, sizeof(current_link)); in qede_set_pauseparam()
1001 edev->ops->common->get_link(edev->cdev, ¤t_link); in qede_set_pauseparam()
1007 if (!phylink_test(current_link.supported_caps, Autoneg)) { in qede_set_pauseparam()
1802 struct qed_link_output current_link; in qede_get_eee() local
1804 memset(¤t_link, 0, sizeof(current_link)); in qede_get_eee()
1805 edev->ops->common->get_link(edev->cdev, ¤t_link); in qede_get_eee()
1807 if (!current_link.eee_supported) { in qede_get_eee()
1812 if (current_link.eee.adv_caps & QED_EEE_1G_ADV) in qede_get_eee()
1814 if (current_link.eee.adv_caps & QED_EEE_10G_ADV) in qede_get_eee()
1816 if (current_link.sup_caps & QED_EEE_1G_ADV) in qede_get_eee()
1818 if (current_link.sup_caps & QED_EEE_10G_ADV) in qede_get_eee()
1820 if (current_link.eee.lp_adv_caps & QED_EEE_1G_ADV) in qede_get_eee()
1822 if (current_link.eee.lp_adv_caps & QED_EEE_10G_ADV) in qede_get_eee()
1825 edata->tx_lpi_timer = current_link.eee.tx_lpi_timer; in qede_get_eee()
1826 edata->eee_enabled = current_link.eee.enable; in qede_get_eee()
1827 edata->tx_lpi_enabled = current_link.eee.tx_lpi_enable; in qede_get_eee()
1828 edata->eee_active = current_link.eee_active; in qede_get_eee()
1836 struct qed_link_output current_link; in qede_set_eee() local
1844 memset(¤t_link, 0, sizeof(current_link)); in qede_set_eee()
1845 edev->ops->common->get_link(edev->cdev, ¤t_link); in qede_set_eee()
1847 if (!current_link.eee_supported) { in qede_set_eee()