| /linux/drivers/net/pcs/ |
| A D | pcs-xpcs-wx.c | 64 txgbe_write_pma(xpcs, TXGBE_MPLLA_CTL3, 0); in txgbe_pma_config_10gbaser() 72 txgbe_write_pma(xpcs, TXGBE_TX_RATE_CTL, 0); in txgbe_pma_config_10gbaser() 73 txgbe_write_pma(xpcs, TXGBE_RX_RATE_CTL, 0); in txgbe_pma_config_10gbaser() 135 xpcs, DW_VR_XS_PCS_DIG_STS); in txgbe_pcs_poll_power_up() 151 xpcs, DW_VR_XS_PCS_DIG_CTRL1); in txgbe_pma_init_done() 186 if (xpcs->interface == interface && !txgbe_xpcs_mode_quirk(xpcs)) in txgbe_xpcs_switch_mode() 189 xpcs->interface = interface; in txgbe_xpcs_switch_mode() 191 ret = txgbe_pcs_poll_power_up(xpcs); in txgbe_xpcs_switch_mode() 200 txgbe_pma_config_10gbaser(xpcs); in txgbe_xpcs_switch_mode() 205 txgbe_pma_config_1g(xpcs); in txgbe_xpcs_switch_mode() [all …]
|
| A D | pcs-xpcs.c | 1378 xpcs = kzalloc(sizeof(*xpcs), GFP_KERNEL); in xpcs_create_data() 1379 if (!xpcs) in xpcs_create_data() 1388 return xpcs; in xpcs_create_data() 1394 kfree(xpcs); in xpcs_free_data() 1455 if (!xpcs->desc) in xpcs_init_id() 1484 if (IS_ERR(xpcs)) in xpcs_create() 1485 return xpcs; in xpcs_create() 1499 return xpcs; in xpcs_create() 1540 return xpcs; in xpcs_create_mdiodev() 1578 return xpcs; in xpcs_create_fwnode() [all …]
|
| A D | pcs-xpcs-nxp.c | 72 int nxp_sja1105_sgmii_pma_config(struct dw_xpcs *xpcs) in nxp_sja1105_sgmii_pma_config() argument 74 return xpcs_write(xpcs, MDIO_MMD_VEND2, DW_VR_MII_DIG_CTRL2, in nxp_sja1105_sgmii_pma_config() 78 static int nxp_sja1110_pma_config(struct dw_xpcs *xpcs, in nxp_sja1110_pma_config() argument 89 ret = xpcs_write(xpcs, MDIO_MMD_VEND2, SJA1110_TXPLL_CTRL0, in nxp_sja1110_pma_config() 94 ret = xpcs_write(xpcs, MDIO_MMD_VEND2, SJA1110_TXPLL_CTRL1, in nxp_sja1110_pma_config() 100 ret = xpcs_write(xpcs, MDIO_MMD_VEND2, SJA1110_LANE_DRIVER1_0, in nxp_sja1110_pma_config() 134 ret = xpcs_write(xpcs, MDIO_MMD_VEND2, SJA1110_RXPLL_CTRL0, in nxp_sja1110_pma_config() 139 ret = xpcs_write(xpcs, MDIO_MMD_VEND2, SJA1110_RXPLL_CTRL1, in nxp_sja1110_pma_config() 169 ret = xpcs_write(xpcs, MDIO_MMD_VEND2, SJA1110_RX_CDR_CTLE, in nxp_sja1110_pma_config() 177 int nxp_sja1110_sgmii_pma_config(struct dw_xpcs *xpcs) in nxp_sja1110_sgmii_pma_config() argument [all …]
|
| A D | pcs-xpcs.h | 126 int xpcs_read(struct dw_xpcs *xpcs, int dev, u32 reg); 127 int xpcs_write(struct dw_xpcs *xpcs, int dev, u32 reg, u16 val); 128 int xpcs_read_vpcs(struct dw_xpcs *xpcs, int reg); 129 int xpcs_write_vpcs(struct dw_xpcs *xpcs, int reg, u16 val); 130 int nxp_sja1105_sgmii_pma_config(struct dw_xpcs *xpcs); 131 int nxp_sja1110_sgmii_pma_config(struct dw_xpcs *xpcs); 132 int nxp_sja1110_2500basex_pma_config(struct dw_xpcs *xpcs); 133 int txgbe_xpcs_switch_mode(struct dw_xpcs *xpcs, phy_interface_t interface);
|
| A D | Makefile | 4 pcs_xpcs-$(CONFIG_PCS_XPCS) := pcs-xpcs.o pcs-xpcs-plat.o \ 5 pcs-xpcs-nxp.o pcs-xpcs-wx.o
|
| /linux/drivers/net/ethernet/stmicro/stmmac/ |
| A D | dwmac-tegra.c | 24 void __iomem *xpcs; member 89 value = readl(mgbe->xpcs + XPCS_WRAP_UPHY_STATUS); in tegra_mgbe_resume() 118 value = readl(mgbe->xpcs + XPCS_WRAP_UPHY_RX_CONTROL); in mgbe_uphy_lane_bringup_serdes_up() 120 writel(value, mgbe->xpcs + XPCS_WRAP_UPHY_RX_CONTROL); in mgbe_uphy_lane_bringup_serdes_up() 122 value = readl(mgbe->xpcs + XPCS_WRAP_UPHY_RX_CONTROL); in mgbe_uphy_lane_bringup_serdes_up() 124 writel(value, mgbe->xpcs + XPCS_WRAP_UPHY_RX_CONTROL); in mgbe_uphy_lane_bringup_serdes_up() 126 value = readl(mgbe->xpcs + XPCS_WRAP_UPHY_RX_CONTROL); in mgbe_uphy_lane_bringup_serdes_up() 181 writel(value, mgbe->xpcs + XPCS_WRAP_IRQ_STATUS); in mgbe_uphy_lane_bringup_serdes_up() 241 if (IS_ERR(mgbe->xpcs)) in tegra_mgbe_probe() 242 return PTR_ERR(mgbe->xpcs); in tegra_mgbe_probe() [all …]
|
| A D | stmmac_mdio.c | 501 struct dw_xpcs *xpcs = NULL; in stmmac_pcs_setup() local 513 xpcs = xpcs_create_fwnode(pcsnode, mode); in stmmac_pcs_setup() 515 ret = PTR_ERR_OR_ZERO(xpcs); in stmmac_pcs_setup() 519 xpcs = xpcs_create_mdiodev(priv->mii, addr, mode); in stmmac_pcs_setup() 520 ret = PTR_ERR_OR_ZERO(xpcs); in stmmac_pcs_setup() 528 priv->hw->xpcs = xpcs; in stmmac_pcs_setup() 540 if (!priv->hw->xpcs) in stmmac_pcs_clean() 543 xpcs_destroy(priv->hw->xpcs); in stmmac_pcs_clean() 544 priv->hw->xpcs = NULL; in stmmac_pcs_clean()
|
| A D | common.h | 595 struct dw_xpcs *xpcs; member
|
| A D | stmmac_main.c | 487 if (priv->hw->xpcs) in stmmac_eee_init() 488 xpcs_config_eee(priv->hw->xpcs, in stmmac_eee_init() 500 if (priv->hw->xpcs) in stmmac_eee_init() 501 xpcs_config_eee(priv->hw->xpcs, in stmmac_eee_init() 1250 if (priv->hw->xpcs) in stmmac_phy_setup() 1251 xpcs_get_interfaces(priv->hw->xpcs, in stmmac_phy_setup() 3940 if ((!priv->hw->xpcs || in __stmmac_open() 3941 xpcs_get_an_mode(priv->hw->xpcs, mode) != DW_AN_C73)) { in __stmmac_open()
|
| A D | dwmac-intel.c | 454 return &priv->hw->xpcs->pcs; in intel_mgbe_select_pcs()
|
| /linux/include/linux/pcs/ |
| A D | pcs-xpcs.h | 66 int xpcs_get_an_mode(struct dw_xpcs *xpcs, phy_interface_t interface); 69 int xpcs_do_config(struct dw_xpcs *xpcs, phy_interface_t interface, 71 void xpcs_get_interfaces(struct dw_xpcs *xpcs, unsigned long *interfaces); 72 int xpcs_config_eee(struct dw_xpcs *xpcs, int mult_fact_100ns, 78 void xpcs_destroy(struct dw_xpcs *xpcs);
|
| /linux/Documentation/devicetree/bindings/net/pcs/ |
| A D | snps,dw-xpcs.yaml | 4 $id: http://devicetree.org/schemas/net/pcs/snps,dw-xpcs.yaml# 29 const: snps,dw-xpcs 31 const: snps,dw-xpcs-gen1-3g 33 const: snps,dw-xpcs-gen2-3g 35 const: snps,dw-xpcs-gen2-6g 37 const: snps,dw-xpcs-gen4-3g 39 const: snps,dw-xpcs-gen4-6g 41 const: snps,dw-xpcs-gen5-10g 43 const: snps,dw-xpcs-gen5-12g 112 compatible = "snps,dw-xpcs"; [all …]
|
| /linux/drivers/net/dsa/sja1105/ |
| A D | sja1105_mdio.c | 403 struct dw_xpcs *xpcs; in sja1105_mdiobus_pcs_register() local 412 xpcs = xpcs_create_mdiodev(bus, port, priv->phy_mode[port]); in sja1105_mdiobus_pcs_register() 413 if (IS_ERR(xpcs)) { in sja1105_mdiobus_pcs_register() 414 rc = PTR_ERR(xpcs); in sja1105_mdiobus_pcs_register() 418 priv->xpcs[port] = xpcs; in sja1105_mdiobus_pcs_register() 427 if (!priv->xpcs[port]) in sja1105_mdiobus_pcs_register() 430 xpcs_destroy(priv->xpcs[port]); in sja1105_mdiobus_pcs_register() 431 priv->xpcs[port] = NULL; in sja1105_mdiobus_pcs_register() 449 if (!priv->xpcs[port]) in sja1105_mdiobus_pcs_unregister() 452 xpcs_destroy(priv->xpcs[port]); in sja1105_mdiobus_pcs_unregister() [all …]
|
| A D | sja1105_main.c | 1359 struct dw_xpcs *xpcs = priv->xpcs[dp->index]; in sja1105_mac_select_pcs() local 1361 if (xpcs) in sja1105_mac_select_pcs() 1362 return &xpcs->pcs; in sja1105_mac_select_pcs() 2320 if (priv->xpcs[i]) in sja1105_static_config_reload() 2377 struct dw_xpcs *xpcs = priv->xpcs[i]; in sja1105_static_config_reload() local 2384 if (!xpcs) in sja1105_static_config_reload() 2392 rc = xpcs_do_config(xpcs, priv->phy_mode[i], NULL, neg_mode); in sja1105_static_config_reload() 2408 xpcs_link_up(&xpcs->pcs, neg_mode, priv->phy_mode[i], in sja1105_static_config_reload()
|
| A D | sja1105.h | 281 struct dw_xpcs *xpcs[SJA1105_MAX_NUM_PORTS]; member
|
| /linux/drivers/net/ethernet/wangxun/txgbe/ |
| A D | txgbe_phy.c | 125 struct dw_xpcs *xpcs; in txgbe_mdio_pcs_init() local 150 xpcs = xpcs_create_mdiodev(mii_bus, 0, PHY_INTERFACE_MODE_10GBASER); in txgbe_mdio_pcs_init() 151 if (IS_ERR(xpcs)) in txgbe_mdio_pcs_init() 152 return PTR_ERR(xpcs); in txgbe_mdio_pcs_init() 154 txgbe->xpcs = xpcs; in txgbe_mdio_pcs_init() 166 return &txgbe->xpcs->pcs; in txgbe_phylink_mac_select() 305 phylink_pcs_change(&txgbe->xpcs->pcs, up); in txgbe_link_irq_handler() 781 xpcs_destroy(txgbe->xpcs); in txgbe_init_phy() 801 xpcs_destroy(txgbe->xpcs); in txgbe_remove_phy()
|
| A D | txgbe_type.h | 332 struct dw_xpcs *xpcs; member
|
| /linux/Documentation/devicetree/bindings/net/ |
| A D | nvidia,tegra234-mgbe.yaml | 24 - const: xpcs 121 reg-names = "hypervisor", "mac", "xpcs";
|
| /linux/drivers/net/ethernet/marvell/mvpp2/ |
| A D | mvpp2_main.c | 1583 void __iomem *xpcs = priv->iface_base + MVPP22_XPCS_BASE(port->gop_id); in mvpp22_gop_init_10gkr() local 1586 val = readl(xpcs + MVPP22_XPCS_CFG0); in mvpp22_gop_init_10gkr() 1590 writel(val, xpcs + MVPP22_XPCS_CFG0); in mvpp22_gop_init_10gkr() 2196 void __iomem *mpcs, *xpcs; in mvpp22_pcs_reset_assert() local 2203 xpcs = priv->iface_base + MVPP22_XPCS_BASE(port->gop_id); in mvpp22_pcs_reset_assert() 2210 val = readl(xpcs + MVPP22_XPCS_CFG0); in mvpp22_pcs_reset_assert() 2211 writel(val & ~MVPP22_XPCS_CFG0_RESET_DIS, xpcs + MVPP22_XPCS_CFG0); in mvpp22_pcs_reset_assert() 2218 void __iomem *mpcs, *xpcs; in mvpp22_pcs_reset_deassert() local 2225 xpcs = priv->iface_base + MVPP22_XPCS_BASE(port->gop_id); in mvpp22_pcs_reset_deassert() 2238 val = readl(xpcs + MVPP22_XPCS_CFG0); in mvpp22_pcs_reset_deassert() [all …]
|
| /linux/arch/arm64/boot/dts/nvidia/ |
| A D | tegra234.dtsi | 3517 reg-names = "hypervisor", "mac", "xpcs"; 3559 reg-names = "hypervisor", "mac", "xpcs"; 3601 reg-names = "hypervisor", "mac", "xpcs"; 3643 reg-names = "hypervisor", "mac", "xpcs";
|
| /linux/ |
| A D | MAINTAINERS | 16696 F: drivers/net/pcs/pcs-xpcs-nxp.c 22428 F: drivers/net/pcs/pcs-xpcs.c 22429 F: drivers/net/pcs/pcs-xpcs.h 22430 F: include/linux/pcs/pcs-xpcs.h 24900 F: drivers/net/pcs/pcs-xpcs-wx.c
|