Lines Matching refs:mv88e639x_pcs

19 struct mv88e639x_pcs {  struct
28 irqreturn_t (*handle_irq)(struct mv88e639x_pcs *mpcs); argument
31 static int mv88e639x_read(struct mv88e639x_pcs *mpcs, u16 regnum, u16 *val) in mv88e639x_read()
44 static int mv88e639x_write(struct mv88e639x_pcs *mpcs, u16 regnum, u16 val) in mv88e639x_write()
49 static int mv88e639x_modify(struct mv88e639x_pcs *mpcs, u16 regnum, u16 mask, in mv88e639x_modify()
56 static int mv88e639x_modify_changed(struct mv88e639x_pcs *mpcs, u16 regnum, in mv88e639x_modify_changed()
63 static struct mv88e639x_pcs *
67 struct mv88e639x_pcs *mpcs; in mv88e639x_pcs_alloc()
85 struct mv88e639x_pcs *mpcs = dev_id; in mv88e639x_pcs_handle_irq()
86 irqreturn_t (*handler)(struct mv88e639x_pcs *); in mv88e639x_pcs_handle_irq()
95 static int mv88e639x_pcs_setup_irq(struct mv88e639x_pcs *mpcs, in mv88e639x_pcs_setup_irq()
116 struct mv88e639x_pcs *mpcs = chip->ports[port].pcs_private; in mv88e639x_pcs_teardown()
129 static struct mv88e639x_pcs *sgmii_pcs_to_mv88e639x_pcs(struct phylink_pcs *pcs) in sgmii_pcs_to_mv88e639x_pcs()
131 return container_of(pcs, struct mv88e639x_pcs, sgmii_pcs); in sgmii_pcs_to_mv88e639x_pcs()
134 static irqreturn_t mv88e639x_sgmii_handle_irq(struct mv88e639x_pcs *mpcs) in mv88e639x_sgmii_handle_irq()
154 static int mv88e639x_sgmii_pcs_control_irq(struct mv88e639x_pcs *mpcs, in mv88e639x_sgmii_pcs_control_irq()
168 static int mv88e639x_sgmii_pcs_control_pwr(struct mv88e639x_pcs *mpcs, in mv88e639x_sgmii_pcs_control_pwr()
185 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); in mv88e639x_sgmii_pcs_enable()
195 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); in mv88e639x_sgmii_pcs_disable()
204 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); in mv88e639x_sgmii_pcs_pre_config()
209 static int mv88e6390_erratum_3_14(struct mv88e639x_pcs *mpcs) in mv88e6390_erratum_3_14()
243 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); in mv88e639x_sgmii_pcs_post_config()
262 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); in mv88e639x_sgmii_pcs_get_state()
303 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); in mv88e639x_sgmii_pcs_config()
339 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); in mv88e639x_sgmii_pcs_an_restart()
350 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); in mv88e639x_sgmii_pcs_link_up()
379 static struct mv88e639x_pcs *xg_pcs_to_mv88e639x_pcs(struct phylink_pcs *pcs) in xg_pcs_to_mv88e639x_pcs()
381 return container_of(pcs, struct mv88e639x_pcs, xg_pcs); in xg_pcs_to_mv88e639x_pcs()
384 static int mv88e639x_xg_pcs_enable(struct mv88e639x_pcs *mpcs) in mv88e639x_xg_pcs_enable()
391 static void mv88e639x_xg_pcs_disable(struct mv88e639x_pcs *mpcs) in mv88e639x_xg_pcs_disable()
400 struct mv88e639x_pcs *mpcs = xg_pcs_to_mv88e639x_pcs(pcs); in mv88e639x_xg_pcs_get_state()
449 struct mv88e639x_pcs *mpcs; in mv88e639x_pcs_select()
477 static irqreturn_t mv88e6390_xg_handle_irq(struct mv88e639x_pcs *mpcs) in mv88e6390_xg_handle_irq()
497 static int mv88e6390_xg_control_irq(struct mv88e639x_pcs *mpcs, bool enable) in mv88e6390_xg_control_irq()
511 struct mv88e639x_pcs *mpcs = xg_pcs_to_mv88e639x_pcs(pcs); in mv88e6390_xg_pcs_enable()
525 struct mv88e639x_pcs *mpcs = xg_pcs_to_mv88e639x_pcs(pcs); in mv88e6390_xg_pcs_disable()
538 static int mv88e6390_pcs_enable_checker(struct mv88e639x_pcs *mpcs) in mv88e6390_pcs_enable_checker()
547 struct mv88e639x_pcs *mpcs; in mv88e6390_pcs_init()
601 static int mv88e6393x_power_lane(struct mv88e639x_pcs *mpcs, bool enable) in mv88e6393x_power_lane()
618 static int mv88e6393x_erratum_4_6(struct mv88e639x_pcs *mpcs) in mv88e6393x_erratum_4_6()
647 static int mv88e6393x_erratum_4_8(struct mv88e639x_pcs *mpcs) in mv88e6393x_erratum_4_8()
673 static int mv88e6393x_erratum_5_2(struct mv88e639x_pcs *mpcs) in mv88e6393x_erratum_5_2()
714 static int mv88e6393x_fix_2500basex_an(struct mv88e639x_pcs *mpcs, bool on) in mv88e6393x_fix_2500basex_an()
737 static int mv88e6393x_sgmii_apply_2500basex_an(struct mv88e639x_pcs *mpcs, in mv88e6393x_sgmii_apply_2500basex_an()
757 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); in mv88e6393x_sgmii_pcs_disable()
767 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); in mv88e6393x_sgmii_pcs_pre_config()
777 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); in mv88e6393x_sgmii_pcs_post_config()
806 static irqreturn_t mv88e6393x_xg_handle_irq(struct mv88e639x_pcs *mpcs) in mv88e6393x_xg_handle_irq()
831 static int mv88e6393x_xg_control_irq(struct mv88e639x_pcs *mpcs, bool enable) in mv88e6393x_xg_control_irq()
844 struct mv88e639x_pcs *mpcs = xg_pcs_to_mv88e639x_pcs(pcs); in mv88e6393x_xg_pcs_enable()
853 struct mv88e639x_pcs *mpcs = xg_pcs_to_mv88e639x_pcs(pcs); in mv88e6393x_xg_pcs_disable()
864 struct mv88e639x_pcs *mpcs = xg_pcs_to_mv88e639x_pcs(pcs); in mv88e6393x_xg_pcs_pre_config()
873 struct mv88e639x_pcs *mpcs = xg_pcs_to_mv88e639x_pcs(pcs); in mv88e6393x_xg_pcs_post_config()
900 struct mv88e639x_pcs *mpcs; in mv88e6393x_pcs_init()