Home
last modified time | relevance | path

Searched refs:xpcs (Results 1 – 12 of 12) sorted by relevance

/linux/drivers/net/pcs/
H A Dpcs-xpcs-wx.c4 #include <linux/pcs/pcs-xpcs.h>
6 #include "pcs-xpcs.h"
49 static int txgbe_write_pma(struct dw_xpcs *xpcs, int reg, u16 val) in txgbe_write_pma() argument
51 return xpcs_write(xpcs, MDIO_MMD_PMAPMD, TXGBE_PMA_MMD + reg, val); in txgbe_write_pma()
54 static int txgbe_modify_pma(struct dw_xpcs *xpcs, int reg, u16 mask, u16 set) in txgbe_modify_pma() argument
56 return xpcs_modify(xpcs, MDIO_MMD_PMAPMD, TXGBE_PMA_MMD + reg, mask, in txgbe_modify_pma()
60 static void txgbe_pma_config_10gbaser(struct dw_xpcs *xpcs) in txgbe_pma_config_10gbaser() argument
62 txgbe_write_pma(xpcs, TXGBE_MPLLA_CTL0, 0x21); in txgbe_pma_config_10gbaser()
63 txgbe_write_pma(xpcs, TXGBE_MPLLA_CTL3, 0); in txgbe_pma_config_10gbaser()
64 txgbe_modify_pma(xpcs, TXGBE_TX_GENCTL in txgbe_pma_config_10gbaser()
87 txgbe_pma_config_1g(struct dw_xpcs * xpcs) txgbe_pma_config_1g() argument
116 txgbe_pcs_poll_power_up(struct dw_xpcs * xpcs) txgbe_pcs_poll_power_up() argument
131 txgbe_pma_init_done(struct dw_xpcs * xpcs) txgbe_pma_init_done() argument
147 txgbe_xpcs_mode_quirk(struct dw_xpcs * xpcs) txgbe_xpcs_mode_quirk() argument
162 txgbe_xpcs_switch_mode(struct dw_xpcs * xpcs,phy_interface_t interface) txgbe_xpcs_switch_mode() argument
[all...]
H A Dpcs-xpcs.c11 #include <linux/pcs/pcs-xpcs.h>
17 #include "pcs-xpcs.h"
114 int (*pma_config)(struct dw_xpcs *xpcs);
124 xpcs_find_compat(struct dw_xpcs *xpcs, phy_interface_t interface) in xpcs_find_compat() argument
128 for (compat = xpcs->desc->compat; compat->supported; compat++) in xpcs_find_compat()
135 struct phylink_pcs *xpcs_to_phylink_pcs(struct dw_xpcs *xpcs) in xpcs_to_phylink_pcs() argument
137 return &xpcs->pcs; in xpcs_to_phylink_pcs()
141 int xpcs_get_an_mode(struct dw_xpcs *xpcs, phy_interface_t interface) in xpcs_get_an_mode() argument
145 compat = xpcs_find_compat(xpcs, interface); in xpcs_get_an_mode()
168 int xpcs_read(struct dw_xpcs *xpcs, in argument
173 xpcs_write(struct dw_xpcs * xpcs,int dev,u32 reg,u16 val) xpcs_write() argument
178 xpcs_modify(struct dw_xpcs * xpcs,int dev,u32 reg,u16 mask,u16 set) xpcs_modify() argument
183 xpcs_modify_changed(struct dw_xpcs * xpcs,int dev,u32 reg,u16 mask,u16 set) xpcs_modify_changed() argument
189 xpcs_read_vendor(struct dw_xpcs * xpcs,int dev,u32 reg) xpcs_read_vendor() argument
194 xpcs_write_vendor(struct dw_xpcs * xpcs,int dev,int reg,u16 val) xpcs_write_vendor() argument
200 xpcs_modify_vendor(struct dw_xpcs * xpcs,int dev,int reg,u16 mask,u16 set) xpcs_modify_vendor() argument
206 xpcs_read_vpcs(struct dw_xpcs * xpcs,int reg) xpcs_read_vpcs() argument
211 xpcs_write_vpcs(struct dw_xpcs * xpcs,int reg,u16 val) xpcs_write_vpcs() argument
216 xpcs_modify_vpcs(struct dw_xpcs * xpcs,int reg,u16 mask,u16 val) xpcs_modify_vpcs() argument
221 xpcs_poll_reset(struct dw_xpcs * xpcs,int dev) xpcs_poll_reset() argument
234 xpcs_soft_reset(struct dw_xpcs * xpcs,const struct dw_xpcs_compat * compat) xpcs_soft_reset() argument
266 xpcs_read_fault_c73(struct dw_xpcs * xpcs,struct phylink_link_state * state,u16 pcs_stat1) xpcs_read_fault_c73() argument
314 xpcs_link_up_usxgmii(struct dw_xpcs * xpcs,int speed) xpcs_link_up_usxgmii() argument
363 _xpcs_config_aneg_c73(struct dw_xpcs * xpcs,const struct dw_xpcs_compat * compat) _xpcs_config_aneg_c73() argument
408 xpcs_config_aneg_c73(struct dw_xpcs * xpcs,const struct dw_xpcs_compat * compat) xpcs_config_aneg_c73() argument
422 xpcs_aneg_done_c73(struct dw_xpcs * xpcs,struct phylink_link_state * state,const struct dw_xpcs_compat * compat,u16 an_stat1) xpcs_aneg_done_c73() argument
445 xpcs_read_lpa_c73(struct dw_xpcs * xpcs,struct phylink_link_state * state,u16 an_stat1) xpcs_read_lpa_c73() argument
472 xpcs_get_max_xlgmii_speed(struct dw_xpcs * xpcs,struct phylink_link_state * state) xpcs_get_max_xlgmii_speed() argument
526 xpcs_resolve_pma(struct dw_xpcs * xpcs,struct phylink_link_state * state) xpcs_resolve_pma() argument
550 struct dw_xpcs *xpcs; xpcs_validate() local
573 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); xpcs_inband_caps() local
597 xpcs_get_interfaces(struct dw_xpcs * xpcs,unsigned long * interfaces) xpcs_get_interfaces() argument
605 xpcs_switch_interface_mode(struct dw_xpcs * xpcs,phy_interface_t interface) xpcs_switch_interface_mode() argument
623 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); xpcs_pre_config() local
650 xpcs_config_aneg_c37_sgmii(struct dw_xpcs * xpcs,unsigned int neg_mode) xpcs_config_aneg_c37_sgmii() argument
726 xpcs_config_aneg_c37_1000basex(struct dw_xpcs * xpcs,unsigned int neg_mode,const unsigned long * advertising) xpcs_config_aneg_c37_1000basex() argument
795 xpcs_config_2500basex(struct dw_xpcs * xpcs) xpcs_config_2500basex() argument
811 xpcs_do_config(struct dw_xpcs * xpcs,phy_interface_t interface,const unsigned long * advertising,unsigned int neg_mode) xpcs_do_config() argument
876 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); xpcs_config() local
881 xpcs_get_state_c73(struct dw_xpcs * xpcs,struct phylink_link_state * state,const struct dw_xpcs_compat * compat) xpcs_get_state_c73() argument
954 xpcs_get_state_c37_sgmii(struct dw_xpcs * xpcs,struct phylink_link_state * state) xpcs_get_state_c37_sgmii() argument
1021 xpcs_get_state_c37_1000basex(struct dw_xpcs * xpcs,unsigned int neg_mode,struct phylink_link_state * state) xpcs_get_state_c37_1000basex() argument
1057 xpcs_get_state_2500basex(struct dw_xpcs * xpcs,struct phylink_link_state * state) xpcs_get_state_2500basex() argument
1082 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); xpcs_get_state() local
1123 xpcs_link_up_sgmii_1000basex(struct dw_xpcs * xpcs,unsigned int neg_mode,phy_interface_t interface,int speed,int duplex) xpcs_link_up_sgmii_1000basex() argument
1157 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); xpcs_link_up() local
1177 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); xpcs_an_restart() local
1183 xpcs_config_eee(struct dw_xpcs * xpcs,bool enable) xpcs_config_eee() argument
1214 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); xpcs_disable_eee() local
1221 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); xpcs_enable_eee() local
1234 xpcs_config_eee_mult_fact(struct dw_xpcs * xpcs,u8 mult_fact) xpcs_config_eee_mult_fact() argument
1240 xpcs_read_ids(struct dw_xpcs * xpcs) xpcs_read_ids() argument
1392 xpcs_identify(struct dw_xpcs * xpcs) xpcs_identify() argument
1414 struct dw_xpcs *xpcs; xpcs_create_data() local
1428 xpcs_free_data(struct dw_xpcs * xpcs) xpcs_free_data() argument
1434 xpcs_init_clks(struct dw_xpcs * xpcs) xpcs_init_clks() argument
1457 xpcs_clear_clks(struct dw_xpcs * xpcs) xpcs_clear_clks() argument
1464 xpcs_init_id(struct dw_xpcs * xpcs) xpcs_init_id() argument
1481 struct dw_xpcs *xpcs; xpcs_create() local
1526 struct dw_xpcs *xpcs; xpcs_create_mdiodev() local
1548 struct dw_xpcs *xpcs; xpcs_create_pcs_mdiodev() local
1571 struct dw_xpcs *xpcs; xpcs_create_fwnode() local
1594 xpcs_destroy(struct dw_xpcs * xpcs) xpcs_destroy() argument
[all...]
H A Dpcs-xpcs-nxp.c4 #include <linux/pcs/pcs-xpcs.h>
5 #include "pcs-xpcs.h"
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()
107 ret = xpcs_write(xpcs, MDIO_MMD_VEND2, SJA1110_LANE_DRIVER2_0, val); in nxp_sja1110_pma_config()
113 ret = xpcs_write(xpcs, MDIO_MMD_VEND in nxp_sja1110_pma_config()
169 nxp_sja1110_sgmii_pma_config(struct dw_xpcs * xpcs) nxp_sja1110_sgmii_pma_config() argument
174 nxp_sja1110_2500basex_pma_config(struct dw_xpcs * xpcs) nxp_sja1110_2500basex_pma_config() argument
[all...]
H A Dpcs-xpcs.h10 #include <linux/pcs/pcs-xpcs.h>
119 int xpcs_read(struct dw_xpcs *xpcs, int dev, u32 reg);
120 int xpcs_write(struct dw_xpcs *xpcs, int dev, u32 reg, u16 val);
121 int xpcs_modify(struct dw_xpcs *xpcs, int dev, u32 reg, u16 mask, u16 set);
122 int xpcs_read_vpcs(struct dw_xpcs *xpcs, int reg);
123 int xpcs_write_vpcs(struct dw_xpcs *xpcs, int reg, u16 val);
124 int nxp_sja1105_sgmii_pma_config(struct dw_xpcs *xpcs);
125 int nxp_sja1110_sgmii_pma_config(struct dw_xpcs *xpcs);
126 int nxp_sja1110_2500basex_pma_config(struct dw_xpcs *xpcs);
127 int txgbe_xpcs_switch_mode(struct dw_xpcs *xpcs, phy_interface_
[all...]
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-tegra.c27 void __iomem *xpcs; member
91 value = readl(mgbe->xpcs + XPCS_WRAP_UPHY_STATUS); in tegra_mgbe_resume()
93 value = readl(mgbe->xpcs + XPCS_WRAP_UPHY_HW_INIT_CTRL); in tegra_mgbe_resume()
95 writel(value, mgbe->xpcs + XPCS_WRAP_UPHY_HW_INIT_CTRL); in tegra_mgbe_resume()
98 err = readl_poll_timeout(mgbe->xpcs + XPCS_WRAP_UPHY_HW_INIT_CTRL, value, in tegra_mgbe_resume()
120 value = readl(mgbe->xpcs + XPCS_WRAP_UPHY_RX_CONTROL); in mgbe_uphy_lane_bringup_serdes_up()
122 writel(value, mgbe->xpcs + XPCS_WRAP_UPHY_RX_CONTROL); in mgbe_uphy_lane_bringup_serdes_up()
124 value = readl(mgbe->xpcs + XPCS_WRAP_UPHY_RX_CONTROL); in mgbe_uphy_lane_bringup_serdes_up()
126 writel(value, mgbe->xpcs + XPCS_WRAP_UPHY_RX_CONTROL); in mgbe_uphy_lane_bringup_serdes_up()
128 value = readl(mgbe->xpcs in mgbe_uphy_lane_bringup_serdes_up()
[all...]
H A Dstmmac_mdio.c501 struct dw_xpcs *xpcs = NULL; in stmmac_pcs_setup() local
512 xpcs = xpcs_create_fwnode(pcsnode); in stmmac_pcs_setup()
514 ret = PTR_ERR_OR_ZERO(xpcs); in stmmac_pcs_setup()
518 xpcs = xpcs_create_mdiodev(priv->mii, addr); in stmmac_pcs_setup()
519 ret = PTR_ERR_OR_ZERO(xpcs); in stmmac_pcs_setup()
527 if (xpcs) in stmmac_pcs_setup()
528 xpcs_config_eee_mult_fact(xpcs, priv->plat->mult_fact_100ns); in stmmac_pcs_setup()
530 priv->hw->xpcs = xpcs; in stmmac_pcs_setup()
542 if (!priv->hw->xpcs) in stmmac_pcs_clean()
[all...]
H A Dcommon.h18 #include <linux/pcs/pcs-xpcs.h>
595 struct dw_xpcs *xpcs; member
H A Dstmmac_main.c1308 /* If we have an xpcs, it defines which PHY interfaces are supported. */ in stmmac_phy_setup()
1309 if (priv->hw->xpcs) in stmmac_phy_setup()
1310 pcs = xpcs_to_phylink_pcs(priv->hw->xpcs); in stmmac_phy_setup()
4049 if ((!priv->hw->xpcs || in __stmmac_open()
4050 xpcs_get_an_mode(priv->hw->xpcs, mode) != DW_AN_C73)) { in __stmmac_open()
/linux/include/linux/pcs/
H A Dpcs-xpcs.h51 struct phylink_pcs *xpcs_to_phylink_pcs(struct dw_xpcs *xpcs);
52 int xpcs_get_an_mode(struct dw_xpcs *xpcs, phy_interface_t interface);
53 void xpcs_config_eee_mult_fact(struct dw_xpcs *xpcs, u8 mult_fact);
56 void xpcs_destroy(struct dw_xpcs *xpcs);
/linux/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_main.c1583 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()
2183 void __iomem *mpcs, *xpcs; in mvpp22_pcs_reset_assert() local
2190 xpcs = priv->iface_base + MVPP22_XPCS_BASE(port->gop_id); in mvpp22_pcs_reset_assert()
2197 val = readl(xpcs + MVPP22_XPCS_CFG0); in mvpp22_pcs_reset_assert()
2198 writel(val & ~MVPP22_XPCS_CFG0_RESET_DIS, xpcs + MVPP22_XPCS_CFG0); in mvpp22_pcs_reset_assert()
2205 void __iomem *mpcs, *xpcs; in mvpp22_pcs_reset_deassert() local
2212 xpcs = priv->iface_base + MVPP22_XPCS_BASE(port->gop_id); in mvpp22_pcs_reset_deassert()
2225 val = readl(xpcs in mvpp22_pcs_reset_deassert()
[all...]
/linux/arch/arm64/boot/dts/nvidia/
H A Dtegra234.dtsi3539 reg-names = "hypervisor", "mac", "xpcs";
3581 reg-names = "hypervisor", "mac", "xpcs";
3623 reg-names = "hypervisor", "mac", "xpcs";
3665 reg-names = "hypervisor", "mac", "xpcs";
/linux/
H A DMAINTAINERS18290 F: drivers/net/pcs/pcs-xpcs-nxp.c
24434 F: drivers/net/pcs/pcs-xpcs.c
24435 F: drivers/net/pcs/pcs-xpcs.h
24436 F: include/linux/pcs/pcs-xpcs.h
27042 F: drivers/net/pcs/pcs-xpcs-wx.c