Lines Matching refs:mpcs
31 struct mv88e6185_pcs *mpcs = dev_id; in mv88e6185_pcs_handle_irq() local
39 chip = mpcs->chip; in mv88e6185_pcs_handle_irq()
40 port = mpcs->port; in mv88e6185_pcs_handle_irq()
49 phylink_pcs_change(&mpcs->phylink_pcs, link_up); in mv88e6185_pcs_handle_irq()
60 struct mv88e6185_pcs *mpcs = pcs_to_mv88e6185_pcs(pcs); in mv88e6185_pcs_get_state() local
61 struct mv88e6xxx_chip *chip = mpcs->chip; in mv88e6185_pcs_get_state()
62 int port = mpcs->port; in mv88e6185_pcs_get_state()
118 struct mv88e6185_pcs *mpcs; in mv88e6185_pcs_init() local
133 mpcs = kzalloc(sizeof(*mpcs), GFP_KERNEL); in mv88e6185_pcs_init()
134 if (!mpcs) in mv88e6185_pcs_init()
137 mpcs->chip = chip; in mv88e6185_pcs_init()
138 mpcs->port = port; in mv88e6185_pcs_init()
139 mpcs->phylink_pcs.ops = &mv88e6185_phylink_pcs_ops; in mv88e6185_pcs_init()
143 snprintf(mpcs->name, sizeof(mpcs->name), in mv88e6185_pcs_init()
147 IRQF_ONESHOT, mpcs->name, mpcs); in mv88e6185_pcs_init()
149 kfree(mpcs); in mv88e6185_pcs_init()
153 mpcs->irq = irq; in mv88e6185_pcs_init()
155 mpcs->phylink_pcs.poll = true; in mv88e6185_pcs_init()
158 chip->ports[port].pcs_private = &mpcs->phylink_pcs; in mv88e6185_pcs_init()
165 struct mv88e6185_pcs *mpcs; in mv88e6185_pcs_teardown() local
167 mpcs = chip->ports[port].pcs_private; in mv88e6185_pcs_teardown()
168 if (!mpcs) in mv88e6185_pcs_teardown()
171 if (mpcs->irq) in mv88e6185_pcs_teardown()
172 free_irq(mpcs->irq, mpcs); in mv88e6185_pcs_teardown()
174 kfree(mpcs); in mv88e6185_pcs_teardown()