Home
last modified time | relevance | path

Searched refs:mpcs (Results 1 – 5 of 5) sorted by relevance

/drivers/net/dsa/mv88e6xxx/
A Dpcs-639x.c70 mpcs = kzalloc(sizeof(*mpcs), GFP_KERNEL); in mv88e639x_pcs_alloc()
71 if (!mpcs) in mv88e639x_pcs_alloc()
78 snprintf(mpcs->name, sizeof(mpcs->name), in mv88e639x_pcs_alloc()
81 return mpcs; in mv88e639x_pcs_alloc()
112 IRQF_ONESHOT, mpcs->name, mpcs); in mv88e639x_pcs_setup_irq()
119 if (!mpcs) in mv88e639x_pcs_teardown()
123 free_irq(mpcs->irq, mpcs); in mv88e639x_pcs_teardown()
125 kfree(mpcs); in mv88e639x_pcs_teardown()
455 if (!mpcs) in mv88e639x_pcs_select()
524 return mv88e6390_xg_control_irq(mpcs, !!mpcs->irq); in mv88e6390_xg_pcs_enable()
[all …]
A Dpcs-6352.c149 return marvell_c22_pcs_control_irq(mpcs, !!mpcs->irq); in marvell_c22_pcs_enable()
169 if (mpcs->link_check && !mpcs->link_check(mpcs)) in marvell_c22_pcs_get_state()
270 mpcs = kzalloc(sizeof(*mpcs), GFP_KERNEL); in marvell_c22_pcs_alloc()
271 if (!mpcs) in marvell_c22_pcs_alloc()
279 return mpcs; in marvell_c22_pcs_alloc()
293 IRQF_ONESHOT, mpcs->name, mpcs); in marvell_c22_pcs_setup_irq()
340 if (!mpcs) in mv88e6352_pcs_init()
343 snprintf(mpcs->name, sizeof(mpcs->name), in mv88e6352_pcs_init()
351 kfree(mpcs); in mv88e6352_pcs_init()
372 free_irq(mpcs->irq, mpcs); in mv88e6352_pcs_teardown()
[all …]
A Dpcs-6185.c39 chip = mpcs->chip; in mv88e6185_pcs_handle_irq()
40 port = mpcs->port; in mv88e6185_pcs_handle_irq()
134 mpcs = kzalloc(sizeof(*mpcs), GFP_KERNEL); in mv88e6185_pcs_init()
135 if (!mpcs) in mv88e6185_pcs_init()
144 snprintf(mpcs->name, sizeof(mpcs->name), in mv88e6185_pcs_init()
148 IRQF_ONESHOT, mpcs->name, mpcs); in mv88e6185_pcs_init()
150 kfree(mpcs); in mv88e6185_pcs_init()
169 if (!mpcs) in mv88e6185_pcs_teardown()
172 if (mpcs->irq) in mv88e6185_pcs_teardown()
173 free_irq(mpcs->irq, mpcs); in mv88e6185_pcs_teardown()
[all …]
/drivers/net/pcs/
A Dpcs-mtk-lynxi.c158 if (mpcs->interface != interface) { in mtk_pcs_lynxi_config()
182 regmap_update_bits(mpcs->regmap, mpcs->ana_rgc3, in mtk_pcs_lynxi_config()
189 mpcs->interface = interface; in mtk_pcs_lynxi_config()
274 struct mtk_pcs_lynxi *mpcs; in mtk_pcs_lynxi_create() local
300 mpcs = kzalloc(sizeof(*mpcs), GFP_KERNEL); in mtk_pcs_lynxi_create()
301 if (!mpcs) in mtk_pcs_lynxi_create()
304 mpcs->ana_rgc3 = ana_rgc3; in mtk_pcs_lynxi_create()
305 mpcs->regmap = regmap; in mtk_pcs_lynxi_create()
306 mpcs->flags = flags; in mtk_pcs_lynxi_create()
308 mpcs->pcs.poll = true; in mtk_pcs_lynxi_create()
[all …]
/drivers/net/ethernet/marvell/mvpp2/
A Dmvpp2_main.c1592 val = readl(mpcs + MVPP22_MPCS_CTRL); in mvpp22_gop_init_10gkr()
1594 writel(val, mpcs + MVPP22_MPCS_CTRL); in mvpp22_gop_init_10gkr()
1596 val = readl(mpcs + MVPP22_MPCS_CLK_RESET); in mvpp22_gop_init_10gkr()
1599 writel(val, mpcs + MVPP22_MPCS_CLK_RESET); in mvpp22_gop_init_10gkr()
2183 void __iomem *mpcs, *xpcs; in mvpp22_pcs_reset_assert() local
2189 mpcs = priv->iface_base + MVPP22_MPCS_BASE(port->gop_id); in mvpp22_pcs_reset_assert()
2192 val = readl(mpcs + MVPP22_MPCS_CLK_RESET); in mvpp22_pcs_reset_assert()
2195 writel(val, mpcs + MVPP22_MPCS_CLK_RESET); in mvpp22_pcs_reset_assert()
2205 void __iomem *mpcs, *xpcs; in mvpp22_pcs_reset_deassert() local
2217 val = readl(mpcs + MVPP22_MPCS_CLK_RESET); in mvpp22_pcs_reset_deassert()
[all …]

Completed in 29 milliseconds