Lines Matching +full:auto +full:- +full:negotiation

1 // SPDX-License-Identifier: GPL-2.0
43 * PARAMS: cphy - Pointer to PHY instance data.
45 * RETURN: 0 - Successful reset.
46 * -1 - Timeout.
60 } while (ctl && --time_out); in mv88e1xxx_reset()
62 return ctl ? -1 : 0; in mv88e1xxx_reset()
72 if (t1_is_asic(cphy->adapter)) { in mv88e1xxx_interrupt_enable()
75 t1_tpi_read(cphy->adapter, A_ELMER0_INT_ENABLE, &elmer); in mv88e1xxx_interrupt_enable()
77 if (is_T2(cphy->adapter)) in mv88e1xxx_interrupt_enable()
79 t1_tpi_write(cphy->adapter, A_ELMER0_INT_ENABLE, elmer); in mv88e1xxx_interrupt_enable()
90 if (t1_is_asic(cphy->adapter)) { in mv88e1xxx_interrupt_disable()
93 t1_tpi_read(cphy->adapter, A_ELMER0_INT_ENABLE, &elmer); in mv88e1xxx_interrupt_disable()
95 if (is_T2(cphy->adapter)) in mv88e1xxx_interrupt_disable()
97 t1_tpi_write(cphy->adapter, A_ELMER0_INT_ENABLE, elmer); in mv88e1xxx_interrupt_disable()
111 if (t1_is_asic(cphy->adapter)) { in mv88e1xxx_interrupt_clear()
112 t1_tpi_read(cphy->adapter, A_ELMER0_INT_CAUSE, &elmer); in mv88e1xxx_interrupt_clear()
114 if (is_T2(cphy->adapter)) in mv88e1xxx_interrupt_clear()
116 t1_tpi_write(cphy->adapter, A_ELMER0_INT_CAUSE, elmer); in mv88e1xxx_interrupt_clear()
122 * Set the PHY speed and duplex. This also disables auto-negotiation, except
123 * for 1Gb/s, where auto-negotiation is mandatory.
142 if (ctl & BMCR_SPEED1000) /* auto-negotiation required for 1Gb/s */ in mv88e1xxx_set_speed_duplex()
179 * Crossover *must* be set to manual in order to disable auto-neg. in mv88e1xxx_autoneg_disable()
185 * Must include autoneg reset when disabling auto-neg. This in mv88e1xxx_autoneg_disable()
245 int sp = -1, dplx = -1, pause = 0; in mv88e1xxx_get_link_status()
317 cphy->state |= PHY_LINK_UP; in mv88e1xxx_interrupt_handler()
319 cphy->state &= ~PHY_LINK_UP; in mv88e1xxx_interrupt_handler()
320 if (cphy->state & PHY_AUTONEG_EN) in mv88e1xxx_interrupt_handler()
321 cphy->state &= ~PHY_AUTONEG_RDY; in mv88e1xxx_interrupt_handler()
327 cphy->state |= PHY_AUTONEG_RDY; in mv88e1xxx_interrupt_handler()
329 if ((cphy->state & (PHY_LINK_UP | PHY_AUTONEG_RDY)) == in mv88e1xxx_interrupt_handler()
369 if ((board_info(adapter)->caps & SUPPORTED_TP) && in mv88e1xxx_phy_create()
370 board_info(adapter)->chip_phy == CHBT_PHY_88E1111) { in mv88e1xxx_phy_create()