Lines Matching +full:2 +full:- +full:lane

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
44 /* 10GBASE-R and 10GBASE-X4/X2 */
48 #define MV88E6393X_10G_INT_LINK_CHANGE BIT(2)
51 /* 1000BASE-X and SGMII */
75 #define MV88E6390_SGMII_PHY_STATUS_RX_PAUSE BIT(2)
113 int lane, unsigned int mode,
117 int lane, unsigned int mode,
121 int lane, struct phylink_link_state *state);
123 int lane, struct phylink_link_state *state);
125 int lane, struct phylink_link_state *state);
127 int lane, struct phylink_link_state *state);
129 int lane);
131 int lane);
133 int lane, int speed, int duplex);
135 int lane, int speed, int duplex);
140 int mv88e6185_serdes_power(struct mv88e6xxx_chip *chip, int port, int lane,
142 int mv88e6352_serdes_power(struct mv88e6xxx_chip *chip, int port, int lane,
144 int mv88e6390_serdes_power(struct mv88e6xxx_chip *chip, int port, int lane,
146 int mv88e6393x_serdes_power(struct mv88e6xxx_chip *chip, int port, int lane,
149 int mv88e6097_serdes_irq_enable(struct mv88e6xxx_chip *chip, int port, int lane,
151 int mv88e6352_serdes_irq_enable(struct mv88e6xxx_chip *chip, int port, int lane,
153 int mv88e6390_serdes_irq_enable(struct mv88e6xxx_chip *chip, int port, int lane,
156 int lane, bool enable);
158 int lane);
160 int lane);
162 int lane);
164 int lane);
184 /* Return the (first) SERDES lane address a port is using, -errno otherwise. */
188 if (!chip->info->ops->serdes_get_lane) in mv88e6xxx_serdes_get_lane()
189 return -EOPNOTSUPP; in mv88e6xxx_serdes_get_lane()
191 return chip->info->ops->serdes_get_lane(chip, port); in mv88e6xxx_serdes_get_lane()
195 int port, int lane) in mv88e6xxx_serdes_power_up() argument
197 if (!chip->info->ops->serdes_power) in mv88e6xxx_serdes_power_up()
198 return -EOPNOTSUPP; in mv88e6xxx_serdes_power_up()
200 return chip->info->ops->serdes_power(chip, port, lane, true); in mv88e6xxx_serdes_power_up()
204 int port, int lane) in mv88e6xxx_serdes_power_down() argument
206 if (!chip->info->ops->serdes_power) in mv88e6xxx_serdes_power_down()
207 return -EOPNOTSUPP; in mv88e6xxx_serdes_power_down()
209 return chip->info->ops->serdes_power(chip, port, lane, false); in mv88e6xxx_serdes_power_down()
215 if (!chip->info->ops->serdes_irq_mapping) in mv88e6xxx_serdes_irq_mapping()
218 return chip->info->ops->serdes_irq_mapping(chip, port); in mv88e6xxx_serdes_irq_mapping()
222 int port, int lane) in mv88e6xxx_serdes_irq_enable() argument
224 if (!chip->info->ops->serdes_irq_enable) in mv88e6xxx_serdes_irq_enable()
225 return -EOPNOTSUPP; in mv88e6xxx_serdes_irq_enable()
227 return chip->info->ops->serdes_irq_enable(chip, port, lane, true); in mv88e6xxx_serdes_irq_enable()
231 int port, int lane) in mv88e6xxx_serdes_irq_disable() argument
233 if (!chip->info->ops->serdes_irq_enable) in mv88e6xxx_serdes_irq_disable()
234 return -EOPNOTSUPP; in mv88e6xxx_serdes_irq_disable()
236 return chip->info->ops->serdes_irq_enable(chip, port, lane, false); in mv88e6xxx_serdes_irq_disable()
240 mv88e6xxx_serdes_irq_status(struct mv88e6xxx_chip *chip, int port, int lane) in mv88e6xxx_serdes_irq_status() argument
242 if (!chip->info->ops->serdes_irq_status) in mv88e6xxx_serdes_irq_status()
245 return chip->info->ops->serdes_irq_status(chip, port, lane); in mv88e6xxx_serdes_irq_status()