Lines Matching +full:auto +full:- +full:negotiation
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
25 #define GMAC_AN_CTRL_RAN BIT(9) /* Restart Auto-Negotiation */
26 #define GMAC_AN_CTRL_ANE BIT(12) /* Auto-Negotiation Enable */
34 #define GMAC_AN_STATUS_ANA BIT(3) /* Auto-Negotiation Ability */
35 #define GMAC_AN_STATUS_ANC BIT(5) /* Auto-Negotiation Complete */
48 * dwmac_pcs_isr - TBI, RTBI, or SGMII PHY ISR
53 * Description: it is the ISR for PCS events: Auto-Negotiation Completed and
63 x->irq_pcs_ane_n++; in dwmac_pcs_isr()
69 x->irq_pcs_link_n++; in dwmac_pcs_isr()
78 * dwmac_rane - To restart ANE
82 * Description: this is to just restart the Auto-Negotiation.
95 * dwmac_ctrl_ane - To program the AN Control Register.
98 * @ane: to enable the auto-negotiation
99 * @srgmi_ral: to manage MAC-2-MAC SGMII connections.
110 /* Enable and restart the Auto-Negotiation */ in dwmac_ctrl_ane()
114 /* In case of MAC-2-MAC connection, block is configured to operate in dwmac_ctrl_ane()
127 * dwmac_get_adv_lp - Get ADV and LP cap
140 adv_lp->duplex = DUPLEX_FULL; in dwmac_get_adv_lp()
142 adv_lp->duplex |= DUPLEX_HALF; in dwmac_get_adv_lp()
144 adv_lp->pause = (value & GMAC_ANE_PSE) >> GMAC_ANE_PSE_SHIFT; in dwmac_get_adv_lp()
149 adv_lp->lp_duplex = DUPLEX_FULL; in dwmac_get_adv_lp()
151 adv_lp->lp_duplex = DUPLEX_HALF; in dwmac_get_adv_lp()
153 adv_lp->lp_pause = (value & GMAC_ANE_PSE) >> GMAC_ANE_PSE_SHIFT; in dwmac_get_adv_lp()