Searched refs:mpcs (Results 1 – 5 of 5) sorted by relevance
/drivers/net/dsa/mv88e6xxx/ |
D | pcs-639x.c | 28 irqreturn_t (*handle_irq)(struct mv88e639x_pcs *mpcs); 31 static int mv88e639x_read(struct mv88e639x_pcs *mpcs, u16 regnum, u16 *val) in mv88e639x_read() argument 35 err = mdiodev_c45_read(&mpcs->mdio, MDIO_MMD_PHYXS, regnum); in mv88e639x_read() 44 static int mv88e639x_write(struct mv88e639x_pcs *mpcs, u16 regnum, u16 val) in mv88e639x_write() argument 46 return mdiodev_c45_write(&mpcs->mdio, MDIO_MMD_PHYXS, regnum, val); in mv88e639x_write() 49 static int mv88e639x_modify(struct mv88e639x_pcs *mpcs, u16 regnum, u16 mask, in mv88e639x_modify() argument 52 return mdiodev_c45_modify(&mpcs->mdio, MDIO_MMD_PHYXS, regnum, mask, in mv88e639x_modify() 56 static int mv88e639x_modify_changed(struct mv88e639x_pcs *mpcs, u16 regnum, in mv88e639x_modify_changed() argument 59 return mdiodev_c45_modify_changed(&mpcs->mdio, MDIO_MMD_PHYXS, regnum, in mv88e639x_modify_changed() 67 struct mv88e639x_pcs *mpcs; in mv88e639x_pcs_alloc() local [all …]
|
D | pcs-6352.c | 29 bool (*link_check)(struct marvell_c22_pcs *mpcs); 38 static int marvell_c22_pcs_set_fiber_page(struct marvell_c22_pcs *mpcs) in marvell_c22_pcs_set_fiber_page() argument 43 mutex_lock(&mpcs->mdio.bus->mdio_lock); in marvell_c22_pcs_set_fiber_page() 45 err = __mdiodev_read(&mpcs->mdio, MII_MARVELL_PHY_PAGE); in marvell_c22_pcs_set_fiber_page() 47 dev_err(mpcs->mdio.dev.parent, in marvell_c22_pcs_set_fiber_page() 49 mpcs->name, ERR_PTR(err)); in marvell_c22_pcs_set_fiber_page() 55 err = __mdiodev_write(&mpcs->mdio, MII_MARVELL_PHY_PAGE, in marvell_c22_pcs_set_fiber_page() 58 dev_err(mpcs->mdio.dev.parent, in marvell_c22_pcs_set_fiber_page() 60 mpcs->name, ERR_PTR(err)); in marvell_c22_pcs_set_fiber_page() 67 static int marvell_c22_pcs_restore_page(struct marvell_c22_pcs *mpcs, in marvell_c22_pcs_restore_page() argument [all …]
|
D | pcs-6185.c | 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() [all …]
|
/drivers/net/pcs/ |
D | pcs-mtk-lynxi.c | 94 struct mtk_pcs_lynxi *mpcs = pcs_to_mtk_pcs_lynxi(pcs); in mtk_pcs_lynxi_get_state() local 98 regmap_read(mpcs->regmap, SGMSYS_PCS_CONTROL_1, &bm); in mtk_pcs_lynxi_get_state() 99 regmap_read(mpcs->regmap, SGMSYS_PCS_ADVERTISE, &adv); in mtk_pcs_lynxi_get_state() 110 struct mtk_pcs_lynxi *mpcs = pcs_to_mtk_pcs_lynxi(pcs); in mtk_pcs_lynxi_config() local 140 if (mpcs->interface != interface) { in mtk_pcs_lynxi_config() 146 regmap_set_bits(mpcs->regmap, SGMSYS_QPHY_PWR_STATE_CTRL, in mtk_pcs_lynxi_config() 150 regmap_set_bits(mpcs->regmap, SGMSYS_RESERVED_0, in mtk_pcs_lynxi_config() 153 if (mpcs->flags & MTK_SGMII_FLAG_PN_SWAP) in mtk_pcs_lynxi_config() 154 regmap_update_bits(mpcs->regmap, SGMSYS_QPHY_WRAP_CTRL, in mtk_pcs_lynxi_config() 164 regmap_update_bits(mpcs->regmap, mpcs->ana_rgc3, in mtk_pcs_lynxi_config() [all …]
|
/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_main.c | 1571 void __iomem *mpcs = priv->iface_base + MVPP22_MPCS_BASE(port->gop_id); in mvpp22_gop_init_10gkr() local 1581 val = readl(mpcs + MVPP22_MPCS_CTRL); in mvpp22_gop_init_10gkr() 1583 writel(val, mpcs + MVPP22_MPCS_CTRL); in mvpp22_gop_init_10gkr() 1585 val = readl(mpcs + MVPP22_MPCS_CLK_RESET); in mvpp22_gop_init_10gkr() 1588 writel(val, mpcs + MVPP22_MPCS_CLK_RESET); in mvpp22_gop_init_10gkr() 2184 void __iomem *mpcs, *xpcs; in mvpp22_pcs_reset_assert() local 2190 mpcs = priv->iface_base + MVPP22_MPCS_BASE(port->gop_id); in mvpp22_pcs_reset_assert() 2193 val = readl(mpcs + MVPP22_MPCS_CLK_RESET); in mvpp22_pcs_reset_assert() 2196 writel(val, mpcs + MVPP22_MPCS_CLK_RESET); in mvpp22_pcs_reset_assert() 2206 void __iomem *mpcs, *xpcs; in mvpp22_pcs_reset_deassert() local [all …]
|