Lines Matching full:lane

37 				 int lane, int device, int reg, u16 *val)  in mv88e6390_serdes_read()  argument
41 return mv88e6xxx_phy_read(chip, lane, reg_c45, val); in mv88e6390_serdes_read()
45 int lane, int device, int reg, u16 val) in mv88e6390_serdes_write() argument
49 return mv88e6xxx_phy_write(chip, lane, reg_c45, val); in mv88e6390_serdes_write()
124 int mv88e6352_serdes_power(struct mv88e6xxx_chip *chip, int port, int lane, in mv88e6352_serdes_power() argument
146 int lane, unsigned int mode, in mv88e6352_serdes_pcs_config() argument
195 int lane, struct phylink_link_state *state) in mv88e6352_serdes_pcs_get_state() argument
222 int lane) in mv88e6352_serdes_pcs_an_restart() argument
235 int lane, int speed, int duplex) in mv88e6352_serdes_pcs_link_up() argument
268 int lane = -ENODEV; in mv88e6352_serdes_get_lane() local
273 lane = 0xff; /* Unused */ in mv88e6352_serdes_get_lane()
275 return lane; in mv88e6352_serdes_get_lane()
386 int lane) in mv88e6352_serdes_irq_status() argument
404 int mv88e6352_serdes_irq_enable(struct mv88e6xxx_chip *chip, int port, int lane, in mv88e6352_serdes_irq_enable() argument
454 int lane = -ENODEV; in mv88e6341_serdes_get_lane() local
461 lane = MV88E6341_PORT5_LANE; in mv88e6341_serdes_get_lane()
465 return lane; in mv88e6341_serdes_get_lane()
468 int mv88e6185_serdes_power(struct mv88e6xxx_chip *chip, int port, int lane, in mv88e6185_serdes_power() argument
481 * need to return a non-negative lane number so that callers of in mv88e6185_serdes_get_lane()
494 int lane, struct phylink_link_state *state) in mv88e6185_serdes_pcs_get_state() argument
530 int mv88e6097_serdes_irq_enable(struct mv88e6xxx_chip *chip, int port, int lane, in mv88e6097_serdes_irq_enable() argument
563 int lane) in mv88e6097_serdes_irq_status() argument
580 int lane = -ENODEV; in mv88e6390_serdes_get_lane() local
587 lane = MV88E6390_PORT9_LANE0; in mv88e6390_serdes_get_lane()
593 lane = MV88E6390_PORT10_LANE0; in mv88e6390_serdes_get_lane()
597 return lane; in mv88e6390_serdes_get_lane()
605 int lane = -ENODEV; in mv88e6390x_serdes_get_lane() local
613 lane = MV88E6390_PORT9_LANE1; in mv88e6390x_serdes_get_lane()
621 lane = MV88E6390_PORT9_LANE2; in mv88e6390x_serdes_get_lane()
629 lane = MV88E6390_PORT9_LANE3; in mv88e6390x_serdes_get_lane()
636 lane = MV88E6390_PORT10_LANE1; in mv88e6390x_serdes_get_lane()
644 lane = MV88E6390_PORT10_LANE2; in mv88e6390x_serdes_get_lane()
652 lane = MV88E6390_PORT10_LANE3; in mv88e6390x_serdes_get_lane()
660 lane = MV88E6390_PORT9_LANE0; in mv88e6390x_serdes_get_lane()
668 lane = MV88E6390_PORT10_LANE0; in mv88e6390x_serdes_get_lane()
672 return lane; in mv88e6390x_serdes_get_lane()
675 /* Only Ports 0, 9 and 10 have SERDES lanes. Return the SERDES lane address
681 int lane = -ENODEV; in mv88e6393x_serdes_get_lane() local
691 lane = port; in mv88e6393x_serdes_get_lane()
693 return lane; in mv88e6393x_serdes_get_lane()
697 static int mv88e6390_serdes_power_10g(struct mv88e6xxx_chip *chip, int lane, in mv88e6390_serdes_power_10g() argument
703 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_power_10g()
717 err = mv88e6390_serdes_write(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_power_10g()
724 static int mv88e6390_serdes_power_sgmii(struct mv88e6xxx_chip *chip, int lane, in mv88e6390_serdes_power_sgmii() argument
730 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_power_sgmii()
741 err = mv88e6390_serdes_write(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_power_sgmii()
783 static uint64_t mv88e6390_serdes_get_stat(struct mv88e6xxx_chip *chip, int lane, in mv88e6390_serdes_get_stat() argument
790 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_get_stat()
805 int lane; in mv88e6390_serdes_get_stats() local
808 lane = mv88e6xxx_serdes_get_lane(chip, port); in mv88e6390_serdes_get_stats()
809 if (lane < 0) in mv88e6390_serdes_get_stats()
814 data[i] = mv88e6390_serdes_get_stat(chip, lane, stat); in mv88e6390_serdes_get_stats()
820 static int mv88e6390_serdes_enable_checker(struct mv88e6xxx_chip *chip, int lane) in mv88e6390_serdes_enable_checker() argument
825 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_enable_checker()
831 return mv88e6390_serdes_write(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_enable_checker()
835 int mv88e6390_serdes_power(struct mv88e6xxx_chip *chip, int port, int lane, in mv88e6390_serdes_power() argument
845 err = mv88e6390_serdes_power_sgmii(chip, lane, up); in mv88e6390_serdes_power()
849 err = mv88e6390_serdes_power_10g(chip, lane, up); in mv88e6390_serdes_power()
857 err = mv88e6390_serdes_enable_checker(chip, lane); in mv88e6390_serdes_power()
863 int lane, unsigned int mode, in mv88e6390_serdes_pcs_config() argument
890 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_pcs_config()
897 err = mv88e6390_serdes_write(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_pcs_config()
903 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_pcs_config()
917 return mv88e6390_serdes_write(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_pcs_config()
922 int port, int lane, struct phylink_link_state *state) in mv88e6390_serdes_pcs_get_state_sgmii() argument
927 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_pcs_get_state_sgmii()
934 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_pcs_get_state_sgmii()
941 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_pcs_get_state_sgmii()
952 int port, int lane, struct phylink_link_state *state) in mv88e6390_serdes_pcs_get_state_10g() argument
957 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_pcs_get_state_10g()
972 int port, int lane, in mv88e6393x_serdes_pcs_get_state_10g() argument
978 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6393x_serdes_pcs_get_state_10g()
996 int lane, struct phylink_link_state *state) in mv88e6390_serdes_pcs_get_state() argument
1002 return mv88e6390_serdes_pcs_get_state_sgmii(chip, port, lane, in mv88e6390_serdes_pcs_get_state()
1006 return mv88e6390_serdes_pcs_get_state_10g(chip, port, lane, in mv88e6390_serdes_pcs_get_state()
1015 int lane, struct phylink_link_state *state) in mv88e6393x_serdes_pcs_get_state() argument
1021 return mv88e6390_serdes_pcs_get_state_sgmii(chip, port, lane, in mv88e6393x_serdes_pcs_get_state()
1025 return mv88e6393x_serdes_pcs_get_state_10g(chip, port, lane, in mv88e6393x_serdes_pcs_get_state()
1034 int lane) in mv88e6390_serdes_pcs_an_restart() argument
1039 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_pcs_an_restart()
1044 return mv88e6390_serdes_write(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_pcs_an_restart()
1050 int lane, int speed, int duplex) in mv88e6390_serdes_pcs_link_up() argument
1055 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_pcs_link_up()
1079 return mv88e6390_serdes_write(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_pcs_link_up()
1084 int port, int lane) in mv88e6390_serdes_irq_link_sgmii() argument
1090 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_irq_link_sgmii()
1101 int port, u8 lane) in mv88e6393x_serdes_irq_link_10g() argument
1107 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6393x_serdes_irq_link_10g()
1118 int lane, bool enable) in mv88e6390_serdes_irq_enable_sgmii() argument
1126 return mv88e6390_serdes_write(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_irq_enable_sgmii()
1130 int mv88e6390_serdes_irq_enable(struct mv88e6xxx_chip *chip, int port, int lane, in mv88e6390_serdes_irq_enable() argument
1139 return mv88e6390_serdes_irq_enable_sgmii(chip, lane, enable); in mv88e6390_serdes_irq_enable()
1146 int lane, u16 *status) in mv88e6390_serdes_irq_status_sgmii() argument
1150 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_irq_status_sgmii()
1157 u8 lane, bool enable) in mv88e6393x_serdes_irq_enable_10g() argument
1164 return mv88e6390_serdes_write(chip, lane, MDIO_MMD_PHYXS, in mv88e6393x_serdes_irq_enable_10g()
1169 int lane, bool enable) in mv88e6393x_serdes_irq_enable() argument
1177 return mv88e6390_serdes_irq_enable_sgmii(chip, lane, enable); in mv88e6393x_serdes_irq_enable()
1180 return mv88e6393x_serdes_irq_enable_10g(chip, lane, enable); in mv88e6393x_serdes_irq_enable()
1187 u8 lane, u16 *status) in mv88e6393x_serdes_irq_status_10g() argument
1191 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6393x_serdes_irq_status_10g()
1198 int lane) in mv88e6393x_serdes_irq_status() argument
1209 err = mv88e6390_serdes_irq_status_sgmii(chip, lane, &status); in mv88e6393x_serdes_irq_status()
1215 mv88e6390_serdes_irq_link_sgmii(chip, port, lane); in mv88e6393x_serdes_irq_status()
1220 err = mv88e6393x_serdes_irq_status_10g(chip, lane, &status); in mv88e6393x_serdes_irq_status()
1225 mv88e6393x_serdes_irq_link_10g(chip, port, lane); in mv88e6393x_serdes_irq_status()
1234 int lane) in mv88e6390_serdes_irq_status() argument
1245 err = mv88e6390_serdes_irq_status_sgmii(chip, lane, &status); in mv88e6390_serdes_irq_status()
1251 mv88e6390_serdes_irq_link_sgmii(chip, port, lane); in mv88e6390_serdes_irq_status()
1302 int lane; in mv88e6390_serdes_get_regs() local
1307 lane = mv88e6xxx_serdes_get_lane(chip, port); in mv88e6390_serdes_get_regs()
1308 if (lane < 0) in mv88e6390_serdes_get_regs()
1312 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6390_serdes_get_regs()
1357 static int mv88e6393x_serdes_power_lane(struct mv88e6xxx_chip *chip, int lane, in mv88e6393x_serdes_power_lane() argument
1363 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6393x_serdes_power_lane()
1375 return mv88e6390_serdes_write(chip, lane, MDIO_MMD_PHYXS, in mv88e6393x_serdes_power_lane()
1379 static int mv88e6393x_serdes_erratum_4_6(struct mv88e6xxx_chip *chip, int lane) in mv88e6393x_serdes_erratum_4_6() argument
1392 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6393x_serdes_erratum_4_6()
1400 err = mv88e6390_serdes_write(chip, lane, MDIO_MMD_PHYXS, in mv88e6393x_serdes_erratum_4_6()
1405 err = mv88e6390_serdes_power_sgmii(chip, lane, false); in mv88e6393x_serdes_erratum_4_6()
1409 return mv88e6393x_serdes_power_lane(chip, lane, false); in mv88e6393x_serdes_erratum_4_6()
1427 static int mv88e6393x_serdes_erratum_4_8(struct mv88e6xxx_chip *chip, int lane) in mv88e6393x_serdes_erratum_4_8() argument
1438 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6393x_serdes_erratum_4_8()
1445 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6393x_serdes_erratum_4_8()
1457 return mv88e6390_serdes_write(chip, lane, MDIO_MMD_PHYXS, in mv88e6393x_serdes_erratum_4_8()
1461 static int mv88e6393x_serdes_erratum_5_2(struct mv88e6xxx_chip *chip, int lane, in mv88e6393x_serdes_erratum_5_2() argument
1488 err = mv88e6390_serdes_read(chip, lane, fixes[i].dev, in mv88e6393x_serdes_erratum_5_2()
1496 err = mv88e6390_serdes_write(chip, lane, fixes[i].dev, in mv88e6393x_serdes_erratum_5_2()
1506 int lane, u8 cmode, bool on) in mv88e6393x_serdes_fix_2500basex_an() argument
1528 err = mv88e6390_serdes_read(chip, lane, MDIO_MMD_PHYXS, in mv88e6393x_serdes_fix_2500basex_an()
1541 err = mv88e6390_serdes_write(chip, lane, MDIO_MMD_PHYXS, in mv88e6393x_serdes_fix_2500basex_an()
1546 err = mv88e6390_serdes_write(chip, lane, MDIO_MMD_VEND1, 0x8000, 0x58); in mv88e6393x_serdes_fix_2500basex_an()
1553 int mv88e6393x_serdes_power(struct mv88e6xxx_chip *chip, int port, int lane, in mv88e6393x_serdes_power() argument
1563 err = mv88e6393x_serdes_erratum_4_8(chip, lane); in mv88e6393x_serdes_power()
1567 err = mv88e6393x_serdes_erratum_5_2(chip, lane, cmode); in mv88e6393x_serdes_power()
1571 err = mv88e6393x_serdes_fix_2500basex_an(chip, lane, cmode, in mv88e6393x_serdes_power()
1576 err = mv88e6393x_serdes_power_lane(chip, lane, true); in mv88e6393x_serdes_power()
1585 err = mv88e6390_serdes_power_sgmii(chip, lane, on); in mv88e6393x_serdes_power()
1589 err = mv88e6390_serdes_power_10g(chip, lane, on); in mv88e6393x_serdes_power()
1600 err = mv88e6393x_serdes_power_lane(chip, lane, false); in mv88e6393x_serdes_power()
1604 err = mv88e6393x_serdes_fix_2500basex_an(chip, lane, cmode, in mv88e6393x_serdes_power()