Lines Matching defs:mv88e639x_pcs
19 struct mv88e639x_pcs {
28 irqreturn_t (*handle_irq)(struct mv88e639x_pcs *mpcs);
31 static int mv88e639x_read(struct mv88e639x_pcs *mpcs, u16 regnum, u16 *val)
44 static int mv88e639x_write(struct mv88e639x_pcs *mpcs, u16 regnum, u16 val)
49 static int mv88e639x_modify(struct mv88e639x_pcs *mpcs, u16 regnum, u16 mask,
56 static int mv88e639x_modify_changed(struct mv88e639x_pcs *mpcs, u16 regnum,
63 static struct mv88e639x_pcs *
67 struct mv88e639x_pcs *mpcs;
85 struct mv88e639x_pcs *mpcs = dev_id;
86 irqreturn_t (*handler)(struct mv88e639x_pcs *);
95 static int mv88e639x_pcs_setup_irq(struct mv88e639x_pcs *mpcs,
116 struct mv88e639x_pcs *mpcs = chip->ports[port].pcs_private;
129 static struct mv88e639x_pcs *sgmii_pcs_to_mv88e639x_pcs(struct phylink_pcs *pcs)
131 return container_of(pcs, struct mv88e639x_pcs, sgmii_pcs);
134 static irqreturn_t mv88e639x_sgmii_handle_irq(struct mv88e639x_pcs *mpcs)
154 static int mv88e639x_sgmii_pcs_control_irq(struct mv88e639x_pcs *mpcs,
168 static int mv88e639x_sgmii_pcs_control_pwr(struct mv88e639x_pcs *mpcs,
185 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs);
195 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs);
204 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs);
209 static int mv88e6390_erratum_3_14(struct mv88e639x_pcs *mpcs)
243 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs);
262 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs);
303 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs);
339 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs);
350 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs);
379 static struct mv88e639x_pcs *xg_pcs_to_mv88e639x_pcs(struct phylink_pcs *pcs)
381 return container_of(pcs, struct mv88e639x_pcs, xg_pcs);
384 static int mv88e639x_xg_pcs_enable(struct mv88e639x_pcs *mpcs)
391 static void mv88e639x_xg_pcs_disable(struct mv88e639x_pcs *mpcs)
400 struct mv88e639x_pcs *mpcs = xg_pcs_to_mv88e639x_pcs(pcs);
449 struct mv88e639x_pcs *mpcs;
478 static irqreturn_t mv88e6390_xg_handle_irq(struct mv88e639x_pcs *mpcs)
498 static int mv88e6390_xg_control_irq(struct mv88e639x_pcs *mpcs, bool enable)
512 struct mv88e639x_pcs *mpcs = xg_pcs_to_mv88e639x_pcs(pcs);
526 struct mv88e639x_pcs *mpcs = xg_pcs_to_mv88e639x_pcs(pcs);
539 static int mv88e6390_pcs_enable_checker(struct mv88e639x_pcs *mpcs)
548 struct mv88e639x_pcs *mpcs;
602 static int mv88e6393x_power_lane(struct mv88e639x_pcs *mpcs, bool enable)
619 static int mv88e6393x_erratum_4_6(struct mv88e639x_pcs *mpcs)
648 static int mv88e6393x_erratum_4_8(struct mv88e639x_pcs *mpcs)
674 static int mv88e6393x_erratum_5_2(struct mv88e639x_pcs *mpcs)
715 static int mv88e6393x_fix_2500basex_an(struct mv88e639x_pcs *mpcs, bool on)
738 static int mv88e6393x_sgmii_apply_2500basex_an(struct mv88e639x_pcs *mpcs,
758 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs);
768 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs);
778 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs);
807 static irqreturn_t mv88e6393x_xg_handle_irq(struct mv88e639x_pcs *mpcs)
832 static int mv88e6393x_xg_control_irq(struct mv88e639x_pcs *mpcs, bool enable)
845 struct mv88e639x_pcs *mpcs = xg_pcs_to_mv88e639x_pcs(pcs);
854 struct mv88e639x_pcs *mpcs = xg_pcs_to_mv88e639x_pcs(pcs);
865 struct mv88e639x_pcs *mpcs = xg_pcs_to_mv88e639x_pcs(pcs);
874 struct mv88e639x_pcs *mpcs = xg_pcs_to_mv88e639x_pcs(pcs);
894 struct mv88e639x_pcs *mpcs = xg_pcs_to_mv88e639x_pcs(pcs);
927 struct mv88e639x_pcs *mpcs;