Home
last modified time | relevance | path

Searched refs:pcs (Results 1 – 25 of 42) sorted by relevance

12

/drivers/pinctrl/
Dpinctrl-single.c210 #define PCS_QUIRK_HAS_SHARED_IRQ (pcs->flags & PCS_QUIRK_SHARED_IRQ)
211 #define PCS_HAS_IRQ (pcs->flags & PCS_FEAT_IRQ)
212 #define PCS_HAS_PINCONF (pcs->flags & PCS_FEAT_PINCONF)
273 static unsigned int pcs_pin_reg_offset_get(struct pcs_device *pcs, in pcs_pin_reg_offset_get() argument
276 unsigned int mux_bytes = pcs->width / BITS_PER_BYTE; in pcs_pin_reg_offset_get()
278 if (pcs->bits_per_mux) { in pcs_pin_reg_offset_get()
281 pin_offset_bytes = (pcs->bits_per_pin * pin) / BITS_PER_BYTE; in pcs_pin_reg_offset_get()
288 static unsigned int pcs_pin_shift_reg_get(struct pcs_device *pcs, in pcs_pin_shift_reg_get() argument
291 return (pin % (pcs->width / pcs->bits_per_pin)) * pcs->bits_per_pin; in pcs_pin_shift_reg_get()
298 struct pcs_device *pcs; in pcs_pin_dbg_show() local
[all …]
/drivers/net/ethernet/stmicro/stmmac/
Daltr_tse_pcs.c62 static int tse_pcs_reset(void __iomem *base, struct tse_pcs *pcs) in tse_pcs_reset() argument
80 dev_err(pcs->dev, "PCS could not get out of sw reset\n"); in tse_pcs_reset()
87 int tse_pcs_init(void __iomem *base, struct tse_pcs *pcs) in tse_pcs_init() argument
98 ret = tse_pcs_reset(base, pcs); in tse_pcs_init()
101 pcs->sgmii_adapter_base + SGMII_ADAPTER_CTRL_REG); in tse_pcs_init()
106 static void pcs_link_timer_callback(struct tse_pcs *pcs) in pcs_link_timer_callback() argument
109 void __iomem *tse_pcs_base = pcs->tse_pcs_base; in pcs_link_timer_callback()
110 void __iomem *sgmii_adapter_base = pcs->sgmii_adapter_base; in pcs_link_timer_callback()
116 dev_dbg(pcs->dev, "Adapter: Link is established\n"); in pcs_link_timer_callback()
120 mod_timer(&pcs->aneg_link_timer, jiffies + in pcs_link_timer_callback()
[all …]
Ddwmac-socfpga.c54 struct tse_pcs pcs; member
62 void __iomem *sgmii_adapter_base = dwmac->pcs.sgmii_adapter_base; in socfpga_dwmac_fix_mac_speed()
95 tse_pcs_fix_mac_speed(&dwmac->pcs, phy_dev, speed); in socfpga_dwmac_fix_mac_speed()
186 dwmac->pcs.sgmii_adapter_base = in socfpga_dwmac_parse_data()
189 if (IS_ERR(dwmac->pcs.sgmii_adapter_base)) { in socfpga_dwmac_parse_data()
190 ret = PTR_ERR(dwmac->pcs.sgmii_adapter_base); in socfpga_dwmac_parse_data()
208 dwmac->pcs.tse_pcs_base = in socfpga_dwmac_parse_data()
211 if (IS_ERR(dwmac->pcs.tse_pcs_base)) { in socfpga_dwmac_parse_data()
212 ret = PTR_ERR(dwmac->pcs.tse_pcs_base); in socfpga_dwmac_parse_data()
314 if (tse_pcs_init(dwmac->pcs.tse_pcs_base, &dwmac->pcs) != 0) { in socfpga_gen5_set_phy_mode()
[all …]
Daltr_tse_pcs.h25 int tse_pcs_init(void __iomem *base, struct tse_pcs *pcs);
26 void tse_pcs_fix_mac_speed(struct tse_pcs *pcs, struct phy_device *phy_dev,
Dstmmac_ethtool.c309 if (priv->hw->pcs & STMMAC_PCS_RGMII || in stmmac_ethtool_get_link_ksettings()
310 priv->hw->pcs & STMMAC_PCS_SGMII) { in stmmac_ethtool_get_link_ksettings()
395 if (priv->hw->pcs & STMMAC_PCS_RGMII || in stmmac_ethtool_set_link_ksettings()
396 priv->hw->pcs & STMMAC_PCS_SGMII) { in stmmac_ethtool_set_link_ksettings()
514 if (priv->hw->pcs && !stmmac_pcs_get_adv_lp(priv, priv->ioaddr, &adv_lp)) { in stmmac_get_pauseparam()
530 if (priv->hw->pcs && !stmmac_pcs_get_adv_lp(priv, priv->ioaddr, &adv_lp)) { in stmmac_set_pauseparam()
Dcommon.h381 unsigned int pcs; member
528 unsigned int pcs; member
/drivers/net/pcs/
Dpcs-lynx.c32 #define phylink_pcs_to_lynx(pl_pcs) container_of((pl_pcs), struct lynx_pcs, pcs)
34 static void lynx_pcs_get_state_usxgmii(struct mdio_device *pcs, in lynx_pcs_get_state_usxgmii() argument
37 struct mii_bus *bus = pcs->bus; in lynx_pcs_get_state_usxgmii()
38 int addr = pcs->addr; in lynx_pcs_get_state_usxgmii()
57 static void lynx_pcs_get_state_2500basex(struct mdio_device *pcs, in lynx_pcs_get_state_2500basex() argument
60 struct mii_bus *bus = pcs->bus; in lynx_pcs_get_state_2500basex()
61 int addr = pcs->addr; in lynx_pcs_get_state_2500basex()
81 static void lynx_pcs_get_state(struct phylink_pcs *pcs, in lynx_pcs_get_state() argument
84 struct lynx_pcs *lynx = phylink_pcs_to_lynx(pcs); in lynx_pcs_get_state()
113 static int lynx_pcs_config_1000basex(struct mdio_device *pcs, in lynx_pcs_config_1000basex() argument
[all …]
DMakefile4 pcs_xpcs-$(CONFIG_PCS_XPCS) := pcs-xpcs.o pcs-xpcs-nxp.o
7 obj-$(CONFIG_PCS_LYNX) += pcs-lynx.o
Dpcs-xpcs.c17 container_of((pl_pcs), struct dw_xpcs, pcs)
824 static int xpcs_config(struct phylink_pcs *pcs, unsigned int mode, in xpcs_config() argument
829 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); in xpcs_config()
909 static void xpcs_get_state(struct phylink_pcs *pcs, in xpcs_get_state() argument
912 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); in xpcs_get_state()
971 void xpcs_link_up(struct phylink_pcs *pcs, unsigned int mode, in xpcs_link_up() argument
974 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); in xpcs_link_up()
1135 xpcs->pcs.ops = &xpcs_phylink_ops; in xpcs_create()
1136 xpcs->pcs.poll = true; in xpcs_create()
/drivers/clocksource/
Dtimer-pistachio.c73 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clocksource_read_cycles() local
82 raw_spin_lock_irqsave(&pcs->lock, flags); in pistachio_clocksource_read_cycles()
83 overflow = gpt_readl(pcs->base, TIMER_CURRENT_OVERFLOW_VALUE, 0); in pistachio_clocksource_read_cycles()
84 counter = gpt_readl(pcs->base, TIMER_CURRENT_VALUE, 0); in pistachio_clocksource_read_cycles()
85 raw_spin_unlock_irqrestore(&pcs->lock, flags); in pistachio_clocksource_read_cycles()
98 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clksrc_set_mode() local
101 val = gpt_readl(pcs->base, TIMER_CFG, timeridx); in pistachio_clksrc_set_mode()
107 gpt_writel(pcs->base, val, TIMER_CFG, timeridx); in pistachio_clksrc_set_mode()
112 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clksrc_enable() local
116 gpt_writel(pcs->base, RELOAD_VALUE, TIMER_RELOAD_VALUE, timeridx); in pistachio_clksrc_enable()
/drivers/net/fddi/skfp/
Dpcmplc.c1849 struct pcm_state *pcs ; in pcm_get_state() local
1856 for (i = 0, phy = smc->y, pcs = state->pcm_state ; i < NUMPHYS ; in pcm_get_state()
1857 i++ , phy++, pcs++ ) { in pcm_get_state()
1859 pcs->pcm_type = (u_char) mib->fddiPORTMy_Type ; in pcm_get_state()
1860 pcs->pcm_state = (u_char) mib->fddiPORTPCMState ; in pcm_get_state()
1861 pcs->pcm_mode = phy->pc_mode ; in pcm_get_state()
1862 pcs->pcm_neighbor = (u_char) mib->fddiPORTNeighborType ; in pcm_get_state()
1863 pcs->pcm_bsf = mib->fddiPORTBS_Flag ; in pcm_get_state()
1864 pcs->pcm_lsf = phy->ls_flag ; in pcm_get_state()
1865 pcs->pcm_lct_fail = (u_char) mib->fddiPORTLCTFail_Ct ; in pcm_get_state()
[all …]
/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-mac.c102 if (mac->pcs && in dpaa2_mac_phy_mode_mismatch()
277 mac->pcs = lynx_pcs_create(mdiodev); in dpaa2_pcs_create()
278 if (!mac->pcs) { in dpaa2_pcs_create()
289 struct lynx_pcs *pcs = mac->pcs; in dpaa2_pcs_destroy() local
291 if (pcs) { in dpaa2_pcs_destroy()
292 struct device *dev = &pcs->mdio->dev; in dpaa2_pcs_destroy()
293 lynx_pcs_destroy(pcs); in dpaa2_pcs_destroy()
295 mac->pcs = NULL; in dpaa2_pcs_destroy()
351 if (mac->pcs) in dpaa2_mac_connect()
352 phylink_set_pcs(mac->phylink, &mac->pcs->pcs); in dpaa2_mac_connect()
Ddpaa2-mac.h26 struct lynx_pcs *pcs; member
/drivers/net/ethernet/microchip/sparx5/
Dsparx5_phylink.c140 static struct sparx5_port *sparx5_pcs_to_port(struct phylink_pcs *pcs) in sparx5_pcs_to_port() argument
142 return container_of(pcs, struct sparx5_port, phylink_pcs); in sparx5_pcs_to_port()
145 static void sparx5_pcs_get_state(struct phylink_pcs *pcs, in sparx5_pcs_get_state() argument
148 struct sparx5_port *port = sparx5_pcs_to_port(pcs); in sparx5_pcs_get_state()
159 static int sparx5_pcs_config(struct phylink_pcs *pcs, in sparx5_pcs_config() argument
165 struct sparx5_port *port = sparx5_pcs_to_port(pcs); in sparx5_pcs_config()
194 static void sparx5_pcs_aneg_restart(struct phylink_pcs *pcs) in sparx5_pcs_aneg_restart() argument
Dsparx5_port.c429 u32 pcs = sparx5_to_pcs_dev(port->portno); in sparx5_port_disable() local
430 void __iomem *pcsinst = spx5_inst_get(sparx5, pcs, tinst); in sparx5_port_disable()
793 u32 pcs = sparx5_to_pcs_dev(port->portno); in sparx5_port_pcs_high_set() local
799 pcsinst = spx5_inst_get(sparx5, pcs, pix); in sparx5_port_pcs_high_set()
1020 u32 pcs = sparx5_to_pcs_dev(port->portno); in sparx5_port_init() local
1030 pcsinst = spx5_inst_get(sparx5, pcs, pix); in sparx5_port_init()
/drivers/phy/qualcomm/
Dphy-qcom-qmp.c2878 void __iomem *pcs; member
4080 qphy->pcs + QSERDES_DP_PHY_PD_CTL); in qcom_qmp_v3_phy_dp_aux_init()
4087 writel(DP_PHY_PD_CTL_PSR_PWRDN, qphy->pcs + QSERDES_DP_PHY_PD_CTL); in qcom_qmp_v3_phy_dp_aux_init()
4093 qphy->pcs + QSERDES_DP_PHY_PD_CTL); in qcom_qmp_v3_phy_dp_aux_init()
4101 writel(0x00, qphy->pcs + QSERDES_DP_PHY_AUX_CFG0); in qcom_qmp_v3_phy_dp_aux_init()
4102 writel(0x13, qphy->pcs + QSERDES_DP_PHY_AUX_CFG1); in qcom_qmp_v3_phy_dp_aux_init()
4103 writel(0x24, qphy->pcs + QSERDES_DP_PHY_AUX_CFG2); in qcom_qmp_v3_phy_dp_aux_init()
4104 writel(0x00, qphy->pcs + QSERDES_DP_PHY_AUX_CFG3); in qcom_qmp_v3_phy_dp_aux_init()
4105 writel(0x0a, qphy->pcs + QSERDES_DP_PHY_AUX_CFG4); in qcom_qmp_v3_phy_dp_aux_init()
4106 writel(0x26, qphy->pcs + QSERDES_DP_PHY_AUX_CFG5); in qcom_qmp_v3_phy_dp_aux_init()
[all …]
/drivers/net/phy/
Dphylink.c48 struct phylink_pcs *pcs; member
444 pl->pcs_ops->pcs_an_restart(pl->pcs); in phylink_mac_pcs_an_restart()
470 err = pl->pcs_ops->pcs_config(pl->pcs, pl->cur_link_an_mode, in phylink_major_config()
523 ret = pl->pcs_ops->pcs_config(pl->pcs, pl->cur_link_an_mode, in phylink_change_inband_advert()
550 pl->pcs_ops->pcs_get_state(pl->pcs, state); in phylink_mac_pcs_get_state()
623 pl->pcs_ops->pcs_link_up(pl->pcs, pl->cur_link_an_mode, in phylink_link_up()
923 void phylink_set_pcs(struct phylink *pl, struct phylink_pcs *pcs) in phylink_set_pcs() argument
925 pl->pcs = pcs; in phylink_set_pcs()
926 pl->pcs_ops = pcs->ops; in phylink_set_pcs()
1289 if (pl->pcs) in phylink_start()
[all …]
/drivers/net/dsa/ocelot/
Dseville_vsc9953.c1094 felix->pcs = devm_kcalloc(dev, felix->info->num_ports, in vsc9953_mdio_bus_alloc()
1097 if (!felix->pcs) { in vsc9953_mdio_bus_alloc()
1125 struct mdio_device *pcs; in vsc9953_mdio_bus_alloc() local
1134 pcs = mdio_device_create(felix->imdio, addr); in vsc9953_mdio_bus_alloc()
1135 if (IS_ERR(pcs)) in vsc9953_mdio_bus_alloc()
1138 lynx = lynx_pcs_create(pcs); in vsc9953_mdio_bus_alloc()
1140 mdio_device_free(pcs); in vsc9953_mdio_bus_alloc()
1144 felix->pcs[port] = lynx; in vsc9953_mdio_bus_alloc()
1158 struct lynx_pcs *pcs = felix->pcs[port]; in vsc9953_mdio_bus_free() local
1160 if (!pcs) in vsc9953_mdio_bus_free()
[all …]
Dfelix_vsc9959.c1047 felix->pcs = devm_kcalloc(dev, felix->info->num_ports, in vsc9959_mdio_bus_alloc()
1050 if (!felix->pcs) { in vsc9959_mdio_bus_alloc()
1098 struct mdio_device *pcs; in vsc9959_mdio_bus_alloc() local
1107 pcs = mdio_device_create(felix->imdio, port); in vsc9959_mdio_bus_alloc()
1108 if (IS_ERR(pcs)) in vsc9959_mdio_bus_alloc()
1111 lynx = lynx_pcs_create(pcs); in vsc9959_mdio_bus_alloc()
1113 mdio_device_free(pcs); in vsc9959_mdio_bus_alloc()
1117 felix->pcs[port] = lynx; in vsc9959_mdio_bus_alloc()
1131 struct lynx_pcs *pcs = felix->pcs[port]; in vsc9959_mdio_bus_free() local
1133 if (!pcs) in vsc9959_mdio_bus_free()
[all …]
Dfelix.h61 struct lynx_pcs **pcs; member
/drivers/net/ethernet/freescale/enetc/
Denetc_pf.c855 struct mdio_device *pcs; in enetc_imdio_create() local
879 pcs = mdio_device_create(bus, 0); in enetc_imdio_create()
880 if (IS_ERR(pcs)) { in enetc_imdio_create()
881 err = PTR_ERR(pcs); in enetc_imdio_create()
886 pcs_lynx = lynx_pcs_create(pcs); in enetc_imdio_create()
888 mdio_device_free(pcs); in enetc_imdio_create()
895 pf->pcs = pcs_lynx; in enetc_imdio_create()
908 if (pf->pcs) { in enetc_imdio_remove()
909 mdio_device_free(pf->pcs->mdio); in enetc_imdio_remove()
910 lynx_pcs_destroy(pf->pcs); in enetc_imdio_remove()
[all …]
Denetc_pf.h49 struct lynx_pcs *pcs; member
/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c1483 int pcs; in fm10k_set_qos_queues() local
1486 pcs = netdev_get_num_tc(dev); in fm10k_set_qos_queues()
1488 if (pcs <= 1) in fm10k_set_qos_queues()
1493 f->indices = pcs; in fm10k_set_qos_queues()
1494 f->mask = BIT(fls(pcs - 1)) - 1; in fm10k_set_qos_queues()
1497 rss_i = interface->hw.mac.max_queues / pcs; in fm10k_set_qos_queues()
1507 for (i = 0; i < pcs; i++) in fm10k_set_qos_queues()
1510 interface->num_rx_queues = rss_i * pcs; in fm10k_set_qos_queues()
1511 interface->num_tx_queues = rss_i * pcs; in fm10k_set_qos_queues()
/drivers/net/dsa/mv88e6xxx/
Dserdes.c1380 u16 reg, pcs; in mv88e6393x_serdes_erratum_4_8() local
1390 MV88E6393X_SERDES_POC, &pcs); in mv88e6393x_serdes_erratum_4_8()
1394 pcs &= MV88E6393X_SERDES_POC_PCS_MASK; in mv88e6393x_serdes_erratum_4_8()
1401 if (pcs == MV88E6393X_SERDES_POC_PCS_1000BASEX || in mv88e6393x_serdes_erratum_4_8()
1402 pcs == MV88E6393X_SERDES_POC_PCS_SGMII_PHY || in mv88e6393x_serdes_erratum_4_8()
1403 pcs == MV88E6393X_SERDES_POC_PCS_SGMII_MAC) in mv88e6393x_serdes_erratum_4_8()
/drivers/ata/
Data_piix.c1339 u16 pcs, new_pcs; in piix_init_pcs() local
1341 pci_read_config_word(pdev, ICH5_PCS, &pcs); in piix_init_pcs()
1343 new_pcs = pcs | map_db->port_enable; in piix_init_pcs()
1345 if (new_pcs != pcs) { in piix_init_pcs()
1346 DPRINTK("updating PCS from 0x%x to 0x%x\n", pcs, new_pcs); in piix_init_pcs()

12