/kernel/linux/linux-5.10/drivers/pinctrl/ |
D | pinctrl-single.c | 210 #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 …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/stmicro/stmmac/ |
D | altr_tse_pcs.c | 62 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 …]
|
D | dwmac-socfpga.c | 54 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 …]
|
D | altr_tse_pcs.h | 25 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,
|
D | stmmac_ethtool.c | 287 if (priv->hw->pcs & STMMAC_PCS_RGMII || in stmmac_ethtool_get_link_ksettings() 288 priv->hw->pcs & STMMAC_PCS_SGMII) { in stmmac_ethtool_get_link_ksettings() 373 if (priv->hw->pcs & STMMAC_PCS_RGMII || in stmmac_ethtool_set_link_ksettings() 374 priv->hw->pcs & STMMAC_PCS_SGMII) { in stmmac_ethtool_set_link_ksettings() 492 if (priv->hw->pcs && !stmmac_pcs_get_adv_lp(priv, priv->ioaddr, &adv_lp)) { in stmmac_get_pauseparam() 508 if (priv->hw->pcs && !stmmac_pcs_get_adv_lp(priv, priv->ioaddr, &adv_lp)) { in stmmac_set_pauseparam()
|
D | common.h | 332 unsigned int pcs; member 477 unsigned int pcs; member
|
/kernel/linux/linux-5.10/drivers/net/pcs/ |
D | pcs-lynx.c | 31 #define phylink_pcs_to_lynx(pl_pcs) container_of((pl_pcs), struct lynx_pcs, pcs) 33 static void lynx_pcs_get_state_usxgmii(struct mdio_device *pcs, in lynx_pcs_get_state_usxgmii() argument 36 struct mii_bus *bus = pcs->bus; in lynx_pcs_get_state_usxgmii() 37 int addr = pcs->addr; in lynx_pcs_get_state_usxgmii() 56 static void lynx_pcs_get_state_2500basex(struct mdio_device *pcs, in lynx_pcs_get_state_2500basex() argument 59 struct mii_bus *bus = pcs->bus; in lynx_pcs_get_state_2500basex() 60 int addr = pcs->addr; in lynx_pcs_get_state_2500basex() 80 static void lynx_pcs_get_state(struct phylink_pcs *pcs, in lynx_pcs_get_state() argument 83 struct lynx_pcs *lynx = phylink_pcs_to_lynx(pcs); in lynx_pcs_get_state() 111 static int lynx_pcs_config_sgmii(struct mdio_device *pcs, unsigned int mode, in lynx_pcs_config_sgmii() argument [all …]
|
D | Makefile | 4 obj-$(CONFIG_PCS_XPCS) += pcs-xpcs.o 5 obj-$(CONFIG_PCS_LYNX) += pcs-lynx.o
|
/kernel/linux/linux-5.10/include/linux/ |
D | phylink.h | 352 void (*pcs_get_state)(struct phylink_pcs *pcs, 354 int (*pcs_config)(struct phylink_pcs *pcs, unsigned int mode, 358 void (*pcs_an_restart)(struct phylink_pcs *pcs); 359 void (*pcs_link_up)(struct phylink_pcs *pcs, unsigned int mode, 379 void pcs_get_state(struct phylink_pcs *pcs, 404 int pcs_config(struct phylink_pcs *pcs, unsigned int mode, 415 void pcs_an_restart(struct phylink_pcs *pcs); 430 void pcs_link_up(struct phylink_pcs *pcs, unsigned int mode, 437 void phylink_set_pcs(struct phylink *, struct phylink_pcs *pcs); 481 void phylink_mii_c22_pcs_get_state(struct mdio_device *pcs, [all …]
|
D | pcs-lynx.h | 13 struct phylink_pcs pcs; member 19 void lynx_pcs_destroy(struct lynx_pcs *pcs);
|
/kernel/linux/linux-5.10/drivers/clocksource/ |
D | timer-pistachio.c | 73 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 overflw = 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()
|
/kernel/linux/linux-5.10/drivers/net/fddi/skfp/ |
D | pcmplc.c | 1853 struct pcm_state *pcs ; in pcm_get_state() local 1860 for (i = 0, phy = smc->y, pcs = state->pcm_state ; i < NUMPHYS ; in pcm_get_state() 1861 i++ , phy++, pcs++ ) { in pcm_get_state() 1863 pcs->pcm_type = (u_char) mib->fddiPORTMy_Type ; in pcm_get_state() 1864 pcs->pcm_state = (u_char) mib->fddiPORTPCMState ; in pcm_get_state() 1865 pcs->pcm_mode = phy->pc_mode ; in pcm_get_state() 1866 pcs->pcm_neighbor = (u_char) mib->fddiPORTNeighborType ; in pcm_get_state() 1867 pcs->pcm_bsf = mib->fddiPORTBS_Flag ; in pcm_get_state() 1868 pcs->pcm_lsf = phy->ls_flag ; in pcm_get_state() 1869 pcs->pcm_lct_fail = (u_char) mib->fddiPORTLCTFail_Ct ; in pcm_get_state() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-mac.c | 281 mac->pcs = lynx_pcs_create(mdiodev); in dpaa2_pcs_create() 282 if (!mac->pcs) { in dpaa2_pcs_create() 293 struct lynx_pcs *pcs = mac->pcs; in dpaa2_pcs_destroy() local 295 if (pcs) { in dpaa2_pcs_destroy() 296 struct device *dev = &pcs->mdio->dev; in dpaa2_pcs_destroy() 297 lynx_pcs_destroy(pcs); in dpaa2_pcs_destroy() 299 mac->pcs = NULL; in dpaa2_pcs_destroy() 373 if (mac->pcs) in dpaa2_mac_connect() 374 phylink_set_pcs(mac->phylink, &mac->pcs->pcs); in dpaa2_mac_connect()
|
D | dpaa2-mac.h | 25 struct lynx_pcs *pcs; member
|
/kernel/linux/linux-5.10/drivers/phy/qualcomm/ |
D | phy-qcom-qmp.c | 1921 void __iomem *pcs; member 2689 qphy->pcs + QSERDES_V3_DP_PHY_PD_CTL); in qcom_qmp_phy_dp_aux_init() 2696 writel(DP_PHY_PD_CTL_PSR_PWRDN, qphy->pcs + QSERDES_V3_DP_PHY_PD_CTL); in qcom_qmp_phy_dp_aux_init() 2702 qphy->pcs + QSERDES_V3_DP_PHY_PD_CTL); in qcom_qmp_phy_dp_aux_init() 2710 writel(0x00, qphy->pcs + QSERDES_V3_DP_PHY_AUX_CFG0); in qcom_qmp_phy_dp_aux_init() 2711 writel(0x13, qphy->pcs + QSERDES_V3_DP_PHY_AUX_CFG1); in qcom_qmp_phy_dp_aux_init() 2712 writel(0x24, qphy->pcs + QSERDES_V3_DP_PHY_AUX_CFG2); in qcom_qmp_phy_dp_aux_init() 2713 writel(0x00, qphy->pcs + QSERDES_V3_DP_PHY_AUX_CFG3); in qcom_qmp_phy_dp_aux_init() 2714 writel(0x0a, qphy->pcs + QSERDES_V3_DP_PHY_AUX_CFG4); in qcom_qmp_phy_dp_aux_init() 2715 writel(0x26, qphy->pcs + QSERDES_V3_DP_PHY_AUX_CFG5); in qcom_qmp_phy_dp_aux_init() [all …]
|
/kernel/linux/linux-5.10/drivers/net/phy/ |
D | phylink.c | 46 struct phylink_pcs *pcs; member 431 pl->pcs_ops->pcs_an_restart(pl->pcs); in phylink_mac_pcs_an_restart() 457 err = pl->pcs_ops->pcs_config(pl->pcs, pl->cur_link_an_mode, in phylink_major_config() 510 ret = pl->pcs_ops->pcs_config(pl->pcs, pl->cur_link_an_mode, in phylink_change_inband_advert() 537 pl->pcs_ops->pcs_get_state(pl->pcs, state); in phylink_mac_pcs_get_state() 610 pl->pcs_ops->pcs_link_up(pl->pcs, pl->cur_link_an_mode, in phylink_link_up() 907 void phylink_set_pcs(struct phylink *pl, struct phylink_pcs *pcs) in phylink_set_pcs() argument 909 pl->pcs = pcs; in phylink_set_pcs() 910 pl->pcs_ops = pcs->ops; in phylink_set_pcs() 1257 if (pl->pcs) in phylink_start() [all …]
|
/kernel/linux/linux-5.10/drivers/net/dsa/ocelot/ |
D | seville_vsc9953.c | 1075 felix->pcs = devm_kcalloc(dev, felix->info->num_ports, in vsc9953_mdio_bus_alloc() 1078 if (!felix->pcs) { in vsc9953_mdio_bus_alloc() 1106 struct mdio_device *pcs; in vsc9953_mdio_bus_alloc() local 1115 pcs = mdio_device_create(felix->imdio, addr); in vsc9953_mdio_bus_alloc() 1116 if (IS_ERR(pcs)) in vsc9953_mdio_bus_alloc() 1119 lynx = lynx_pcs_create(pcs); in vsc9953_mdio_bus_alloc() 1121 mdio_device_free(pcs); in vsc9953_mdio_bus_alloc() 1125 felix->pcs[port] = lynx; in vsc9953_mdio_bus_alloc() 1139 struct lynx_pcs *pcs = felix->pcs[port]; in vsc9953_mdio_bus_free() local 1141 if (!pcs) in vsc9953_mdio_bus_free() [all …]
|
D | felix_vsc9959.c | 1029 felix->pcs = devm_kcalloc(dev, felix->info->num_ports, in vsc9959_mdio_bus_alloc() 1032 if (!felix->pcs) { in vsc9959_mdio_bus_alloc() 1081 struct mdio_device *pcs; in vsc9959_mdio_bus_alloc() local 1090 pcs = mdio_device_create(felix->imdio, port); in vsc9959_mdio_bus_alloc() 1091 if (IS_ERR(pcs)) in vsc9959_mdio_bus_alloc() 1094 lynx = lynx_pcs_create(pcs); in vsc9959_mdio_bus_alloc() 1096 mdio_device_free(pcs); in vsc9959_mdio_bus_alloc() 1100 felix->pcs[port] = lynx; in vsc9959_mdio_bus_alloc() 1114 struct lynx_pcs *pcs = felix->pcs[port]; in vsc9959_mdio_bus_free() local 1116 if (!pcs) in vsc9959_mdio_bus_free() [all …]
|
D | felix.h | 50 struct lynx_pcs **pcs; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/enetc/ |
D | enetc_pf.c | 803 struct mdio_device *pcs; in enetc_imdio_create() local 827 pcs = mdio_device_create(bus, 0); in enetc_imdio_create() 828 if (IS_ERR(pcs)) { in enetc_imdio_create() 829 err = PTR_ERR(pcs); in enetc_imdio_create() 834 pcs_lynx = lynx_pcs_create(pcs); in enetc_imdio_create() 836 mdio_device_free(pcs); in enetc_imdio_create() 843 pf->pcs = pcs_lynx; in enetc_imdio_create() 856 if (pf->pcs) { in enetc_imdio_remove() 857 mdio_device_free(pf->pcs->mdio); in enetc_imdio_remove() 858 lynx_pcs_destroy(pf->pcs); in enetc_imdio_remove() [all …]
|
D | enetc_pf.h | 49 struct lynx_pcs *pcs; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_main.c | 1488 int pcs; in fm10k_set_qos_queues() local 1491 pcs = netdev_get_num_tc(dev); in fm10k_set_qos_queues() 1493 if (pcs <= 1) in fm10k_set_qos_queues() 1498 f->indices = pcs; in fm10k_set_qos_queues() 1499 f->mask = BIT(fls(pcs - 1)) - 1; in fm10k_set_qos_queues() 1502 rss_i = interface->hw.mac.max_queues / pcs; in fm10k_set_qos_queues() 1512 for (i = 0; i < pcs; i++) in fm10k_set_qos_queues() 1515 interface->num_rx_queues = rss_i * pcs; in fm10k_set_qos_queues() 1516 interface->num_tx_queues = rss_i * pcs; in fm10k_set_qos_queues()
|
/kernel/linux/linux-5.10/drivers/ata/ |
D | ata_piix.c | 1339 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()
|
/kernel/linux/linux-5.10/drivers/net/ |
D | Makefile | 25 obj-y += pcs/
|
/kernel/linux/linux-5.10/drivers/usb/cdns3/ |
D | gadget.c | 342 cdns3_ep_inc_trb(&priv_ep->enqueue, &priv_ep->pcs, priv_ep->num_trbs); in cdns3_ep_inc_enq() 962 priv_ep->wa1_cycle_bit = priv_ep->pcs ? TRB_CYCLE : 0; in cdns3_wa1_update_guard() 1124 int pcs; in cdns3_ep_run_transfer() local 1184 link_trb->control = cpu_to_le32(((priv_ep->pcs) ? TRB_CYCLE : 0) | in cdns3_ep_run_transfer() 1195 control = priv_ep->pcs ? 0 : TRB_CYCLE; in cdns3_ep_run_transfer() 1227 pcs = priv_ep->pcs ? TRB_CYCLE : 0; in cdns3_ep_run_transfer() 1234 control |= pcs; in cdns3_ep_run_transfer() 1241 control |= pcs | TRB_IOC | TRB_ISP; in cdns3_ep_run_transfer() 2396 priv_ep->pcs = !!EP_STS_CCS(reg); in cdns3_gadget_ep_enable()
|