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_ctrl_ane - To program the AN Control Register.
81 * @ane: to enable the auto-negotiation
82 * @srgmi_ral: to manage MAC-2-MAC SGMII connections.
93 /* Enable and restart the Auto-Negotiation */ in dwmac_ctrl_ane()
99 /* In case of MAC-2-MAC connection, block is configured to operate in dwmac_ctrl_ane()
112 * dwmac_get_adv_lp - Get ADV and LP cap
125 adv_lp->duplex = DUPLEX_FULL; in dwmac_get_adv_lp()
127 adv_lp->duplex |= DUPLEX_HALF; in dwmac_get_adv_lp()
129 adv_lp->pause = (value & GMAC_ANE_PSE) >> GMAC_ANE_PSE_SHIFT; in dwmac_get_adv_lp()
134 adv_lp->lp_duplex = DUPLEX_FULL; in dwmac_get_adv_lp()
136 adv_lp->lp_duplex = DUPLEX_HALF; in dwmac_get_adv_lp()
138 adv_lp->lp_pause = (value & GMAC_ANE_PSE) >> GMAC_ANE_PSE_SHIFT; in dwmac_get_adv_lp()