/linux-master/drivers/net/pcs/ |
H A D | Makefile | 4 pcs_xpcs-$(CONFIG_PCS_XPCS) := pcs-xpcs.o pcs-xpcs-nxp.o pcs-xpcs-wx.o 7 obj-$(CONFIG_PCS_LYNX) += pcs-lynx.o 8 obj-$(CONFIG_PCS_MTK_LYNXI) += pcs-mtk-lynxi.o 9 obj-$(CONFIG_PCS_RZN1_MIIC) += pcs-rzn1-miic.o
|
H A D | pcs-lynx.c | 8 #include <linux/pcs-lynx.h> 24 struct phylink_pcs pcs; member in struct:lynx_pcs 35 #define phylink_pcs_to_lynx(pl_pcs) container_of((pl_pcs), struct lynx_pcs, pcs) 36 #define lynx_to_phylink_pcs(lynx) (&(lynx)->pcs) 38 static void lynx_pcs_get_state_usxgmii(struct mdio_device *pcs, argument 41 struct mii_bus *bus = pcs->bus; 42 int addr = pcs->addr; 61 static void lynx_pcs_get_state_2500basex(struct mdio_device *pcs, argument 66 bmsr = mdiodev_read(pcs, MII_BMSR); 67 lpa = mdiodev_read(pcs, MII_LP 83 lynx_pcs_get_state(struct phylink_pcs *pcs, struct phylink_link_state *state) argument 115 lynx_pcs_config_giga(struct mdio_device *pcs, phy_interface_t interface, const unsigned long *advertising, unsigned int neg_mode) argument 152 lynx_pcs_config_usxgmii(struct mdio_device *pcs, const unsigned long *advertising, unsigned int neg_mode) argument 171 lynx_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, phy_interface_t ifmode, const unsigned long *advertising, bool permit) argument 203 lynx_pcs_an_restart(struct phylink_pcs *pcs) argument 210 lynx_pcs_link_up_sgmii(struct mdio_device *pcs, unsigned int neg_mode, int speed, int duplex) argument 265 lynx_pcs_link_up_2500basex(struct mdio_device *pcs, unsigned int neg_mode, int speed, int duplex) argument 285 lynx_pcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode, phy_interface_t interface, int speed, int duplex) argument 336 struct phylink_pcs *pcs; local 369 struct phylink_pcs *pcs; local 392 lynx_pcs_destroy(struct phylink_pcs *pcs) argument [all...] |
H A D | pcs-mtk-lynxi.c | 13 #include <linux/pcs/pcs-mtk-lynxi.h> 75 * @pcs: Phylink PCS structure 82 struct phylink_pcs pcs; member in struct:mtk_pcs_lynxi 86 static struct mtk_pcs_lynxi *pcs_to_mtk_pcs_lynxi(struct phylink_pcs *pcs) argument 88 return container_of(pcs, struct mtk_pcs_lynxi, pcs); 91 static void mtk_pcs_lynxi_get_state(struct phylink_pcs *pcs, argument 94 struct mtk_pcs_lynxi *mpcs = pcs_to_mtk_pcs_lynxi(pcs); 105 static int mtk_pcs_lynxi_config(struct phylink_pcs *pcs, unsigne argument 203 mtk_pcs_lynxi_restart_an(struct phylink_pcs *pcs) argument 210 mtk_pcs_lynxi_link_up(struct phylink_pcs *pcs, unsigned int neg_mode, phy_interface_t interface, int speed, int duplex) argument 236 mtk_pcs_lynxi_disable(struct phylink_pcs *pcs) argument 297 mtk_pcs_lynxi_destroy(struct phylink_pcs *pcs) argument [all...] |
H A D | pcs-rzn1-miic.c | 13 #include <linux/pcs-rzn1-miic.h> 17 #include <dt-bindings/net/pcs-rzn1-miic.h> 136 * @pcs: PCS structure associated to the port 142 struct phylink_pcs pcs; member in struct:miic_port 147 static struct miic_port *phylink_pcs_to_miic_port(struct phylink_pcs *pcs) argument 149 return container_of(pcs, struct miic_port, pcs); 186 static int miic_config(struct phylink_pcs *pcs, unsigned int neg_mode, argument 190 struct miic_port *miic_port = phylink_pcs_to_miic_port(pcs); 237 static void miic_link_up(struct phylink_pcs *pcs, unsigne argument 271 miic_validate(struct phylink_pcs *pcs, unsigned long *supported, const struct phylink_link_state *state) argument 342 miic_destroy(struct phylink_pcs *pcs) argument [all...] |
H A D | pcs-xpcs.c | 10 #include <linux/pcs/pcs-xpcs.h> 14 #include "pcs-xpcs.h" 17 container_of((pl_pcs), struct dw_xpcs, pcs) 606 static int xpcs_validate(struct phylink_pcs *pcs, unsigned long *supported, argument 614 xpcs = phylink_pcs_to_xpcs(pcs); 793 if (!xpcs->pcs.poll) 906 static int xpcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, argument 911 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); 1076 if (!xpcs->pcs 1114 xpcs_get_state(struct phylink_pcs *pcs, struct phylink_link_state *state) argument 1206 xpcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode, phy_interface_t interface, int speed, int duplex) argument 1220 xpcs_an_restart(struct phylink_pcs *pcs) argument [all...] |
/linux-master/drivers/pinctrl/ |
H A D | pinctrl-single.c | 209 #define PCS_QUIRK_HAS_SHARED_IRQ (pcs->flags & PCS_QUIRK_SHARED_IRQ) 210 #define PCS_HAS_IRQ (pcs->flags & PCS_FEAT_IRQ) 211 #define PCS_HAS_PINCONF (pcs->flags & PCS_FEAT_PINCONF) 272 static unsigned int pcs_pin_reg_offset_get(struct pcs_device *pcs, argument 275 unsigned int mux_bytes = pcs->width / BITS_PER_BYTE; 277 if (pcs->bits_per_mux) { 280 pin_offset_bytes = (pcs->bits_per_pin * pin) / BITS_PER_BYTE; 287 static unsigned int pcs_pin_shift_reg_get(struct pcs_device *pcs, argument 290 return (pin % (pcs->width / pcs 297 struct pcs_device *pcs; local 318 struct pcs_device *pcs; local 340 struct pcs_device *pcs = pinctrl_dev_get_drvdata(pctldev); local 364 struct pcs_device *pcs; local 409 struct pcs_device *pcs = pinctrl_dev_get_drvdata(pctldev); local 487 struct pcs_device *pcs = pinctrl_dev_get_drvdata(pctldev); local 552 struct pcs_device *pcs = pinctrl_dev_get_drvdata(pctldev); local 684 pcs_add_pin(struct pcs_device *pcs, unsigned int offset) argument 725 pcs_allocate_pin_table(struct pcs_device *pcs) argument 775 pcs_add_function(struct pcs_device *pcs, struct pcs_function **fcn, const char *name, struct pcs_func_vals *vals, unsigned int nvals, const char **pgnames, unsigned int npgnames) argument 814 pcs_get_pin_by_offset(struct pcs_device *pcs, unsigned offset) argument 868 pcs_add_conf2(struct pcs_device *pcs, struct device_node *np, const char *name, enum pin_config_param param, struct pcs_conf_vals **conf, unsigned long **settings) argument 887 pcs_add_conf4(struct pcs_device *pcs, struct device_node *np, const char *name, enum pin_config_param param, struct pcs_conf_vals **conf, unsigned long **settings) argument 912 pcs_parse_pinconf(struct pcs_device *pcs, struct device_node *np, struct pcs_function *func, struct pinctrl_map **map) argument 997 pcs_parse_one_pinctrl_entry(struct pcs_device *pcs, struct device_node *np, struct pinctrl_map **map, unsigned *num_maps, const char **pgnames) argument 1111 pcs_parse_bits_in_pinctrl_entry(struct pcs_device *pcs, struct device_node *np, struct pinctrl_map **map, unsigned *num_maps, const char **pgnames) argument 1256 struct pcs_device *pcs; local 1307 pcs_irq_free(struct pcs_device *pcs) argument 1327 pcs_free_resources(struct pcs_device *pcs) argument 1338 pcs_add_gpio_func(struct device_node *node, struct pcs_device *pcs) argument 1395 struct pcs_device *pcs; local 1476 struct pcs_device *pcs; local 1537 struct pcs_device *pcs; local 1572 pcs_irq_init_chained_handler(struct pcs_device *pcs, struct device_node *np) argument 1629 pcs_save_context(struct pcs_device *pcs) argument 1665 pcs_restore_context(struct pcs_device *pcs) argument 1696 struct pcs_device *pcs; local 1715 struct pcs_device *pcs; local 1738 pcs_quirk_missing_pinctrl_cells(struct pcs_device *pcs, struct device_node *np, int cells) argument 1782 struct pcs_device *pcs; local 1930 struct pcs_device *pcs = platform_get_drvdata(pdev); local [all...] |
/linux-master/include/linux/ |
H A D | pcs-rzn1-miic.h | 16 void miic_destroy(struct phylink_pcs *pcs);
|
H A D | pcs-lynx.h | 15 void lynx_pcs_destroy(struct phylink_pcs *pcs);
|
H A D | phylink.h | 423 int (*pcs_validate)(struct phylink_pcs *pcs, unsigned long *supported, 425 int (*pcs_enable)(struct phylink_pcs *pcs); 426 void (*pcs_disable)(struct phylink_pcs *pcs); 427 void (*pcs_pre_config)(struct phylink_pcs *pcs, 429 int (*pcs_post_config)(struct phylink_pcs *pcs, 431 void (*pcs_get_state)(struct phylink_pcs *pcs, 433 int (*pcs_config)(struct phylink_pcs *pcs, unsigned int neg_mode, 437 void (*pcs_an_restart)(struct phylink_pcs *pcs); 438 void (*pcs_link_up)(struct phylink_pcs *pcs, unsigned int neg_mode, 445 * @pcs [all...] |
/linux-master/drivers/net/dsa/b53/ |
H A D | b53_serdes.c | 20 static inline struct b53_pcs *pcs_to_b53_pcs(struct phylink_pcs *pcs) argument 22 return container_of(pcs, struct b53_pcs, pcs); 68 static int b53_serdes_config(struct phylink_pcs *pcs, unsigned int neg_mode, argument 73 struct b53_device *dev = pcs_to_b53_pcs(pcs)->dev; 74 u8 lane = pcs_to_b53_pcs(pcs)->lane; 89 static void b53_serdes_an_restart(struct phylink_pcs *pcs) argument 91 struct b53_device *dev = pcs_to_b53_pcs(pcs)->dev; 92 u8 lane = pcs_to_b53_pcs(pcs)->lane; 102 static void b53_serdes_get_state(struct phylink_pcs *pcs, argument 215 struct b53_pcs *pcs; local [all...] |
/linux-master/include/linux/pcs/ |
H A D | pcs-mtk-lynxi.h | 12 void mtk_pcs_lynxi_destroy(struct phylink_pcs *pcs);
|
H A D | pcs-xpcs.h | 34 struct phylink_pcs pcs; member in struct:dw_xpcs 40 void xpcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode,
|
/linux-master/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_phylink.c | 85 static struct lan966x_port *lan966x_pcs_to_port(struct phylink_pcs *pcs) argument 87 return container_of(pcs, struct lan966x_port, phylink_pcs); 90 static void lan966x_pcs_get_state(struct phylink_pcs *pcs, argument 93 struct lan966x_port *port = lan966x_pcs_to_port(pcs); 98 static int lan966x_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, argument 103 struct lan966x_port *port = lan966x_pcs_to_port(pcs); 120 static void lan966x_pcs_aneg_restart(struct phylink_pcs *pcs) argument
|
/linux-master/drivers/net/dsa/mv88e6xxx/ |
H A D | pcs-6352.c | 33 static struct marvell_c22_pcs *pcs_to_marvell_c22_pcs(struct phylink_pcs *pcs) argument 35 return container_of(pcs, struct marvell_c22_pcs, phylink_pcs); 140 static int marvell_c22_pcs_enable(struct phylink_pcs *pcs) argument 142 struct marvell_c22_pcs *mpcs = pcs_to_marvell_c22_pcs(pcs); 152 static void marvell_c22_pcs_disable(struct phylink_pcs *pcs) argument 154 struct marvell_c22_pcs *mpcs = pcs_to_marvell_c22_pcs(pcs); 160 static void marvell_c22_pcs_get_state(struct phylink_pcs *pcs, argument 163 struct marvell_c22_pcs *mpcs = pcs_to_marvell_c22_pcs(pcs); 184 static int marvell_c22_pcs_config(struct phylink_pcs *pcs, argument 190 struct marvell_c22_pcs *mpcs = pcs_to_marvell_c22_pcs(pcs); 226 marvell_c22_pcs_an_restart(struct phylink_pcs *pcs) argument 233 marvell_c22_pcs_link_up(struct phylink_pcs *pcs, unsigned int mode, phy_interface_t interface, int speed, int duplex) argument 363 struct phylink_pcs *pcs; local [all...] |
H A D | Makefile | 12 mv88e6xxx-objs += pcs-6185.o 13 mv88e6xxx-objs += pcs-6352.o 14 mv88e6xxx-objs += pcs-639x.o
|
H A D | pcs-639x.c | 129 static struct mv88e639x_pcs *sgmii_pcs_to_mv88e639x_pcs(struct phylink_pcs *pcs) argument 131 return container_of(pcs, struct mv88e639x_pcs, sgmii_pcs); 183 static int mv88e639x_sgmii_pcs_enable(struct phylink_pcs *pcs) argument 185 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); 193 static void mv88e639x_sgmii_pcs_disable(struct phylink_pcs *pcs) argument 195 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); 201 static void mv88e639x_sgmii_pcs_pre_config(struct phylink_pcs *pcs, argument 204 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); 240 static int mv88e639x_sgmii_pcs_post_config(struct phylink_pcs *pcs, argument 243 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); 259 mv88e639x_sgmii_pcs_get_state(struct phylink_pcs *pcs, struct phylink_link_state *state) argument 297 mv88e639x_sgmii_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, phy_interface_t interface, const unsigned long *advertising, bool permit_pause_to_mac) argument 337 mv88e639x_sgmii_pcs_an_restart(struct phylink_pcs *pcs) argument 345 mv88e639x_sgmii_pcs_link_up(struct phylink_pcs *pcs, unsigned int mode, phy_interface_t interface, int speed, int duplex) argument 379 xg_pcs_to_mv88e639x_pcs(struct phylink_pcs *pcs) argument 397 mv88e639x_xg_pcs_get_state(struct phylink_pcs *pcs, struct phylink_link_state *state) argument 436 mv88e639x_xg_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, phy_interface_t interface, const unsigned long *advertising, bool permit_pause_to_mac) argument 510 mv88e6390_xg_pcs_enable(struct phylink_pcs *pcs) argument 524 mv88e6390_xg_pcs_disable(struct phylink_pcs *pcs) argument 756 mv88e6393x_sgmii_pcs_disable(struct phylink_pcs *pcs) argument 765 mv88e6393x_sgmii_pcs_pre_config(struct phylink_pcs *pcs, phy_interface_t interface) argument 775 mv88e6393x_sgmii_pcs_post_config(struct phylink_pcs *pcs, phy_interface_t interface) argument 843 mv88e6393x_xg_pcs_enable(struct phylink_pcs *pcs) argument 852 mv88e6393x_xg_pcs_disable(struct phylink_pcs *pcs) argument 862 mv88e6393x_xg_pcs_pre_config(struct phylink_pcs *pcs, phy_interface_t interface) argument 871 mv88e6393x_xg_pcs_post_config(struct phylink_pcs *pcs, phy_interface_t interface) argument 891 mv88e6393x_xg_pcs_get_state(struct phylink_pcs *pcs, struct phylink_link_state *state) argument [all...] |
H A D | pcs-6185.c | 24 static struct mv88e6185_pcs *pcs_to_mv88e6185_pcs(struct phylink_pcs *pcs) argument 26 return container_of(pcs, struct mv88e6185_pcs, phylink_pcs); 57 static void mv88e6185_pcs_get_state(struct phylink_pcs *pcs, argument 60 struct mv88e6185_pcs *mpcs = pcs_to_mv88e6185_pcs(pcs); 98 static int mv88e6185_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, argument 106 static void mv88e6185_pcs_an_restart(struct phylink_pcs *pcs) argument
|
/linux-master/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_phylink.c | 75 static struct sparx5_port *sparx5_pcs_to_port(struct phylink_pcs *pcs) argument 77 return container_of(pcs, struct sparx5_port, phylink_pcs); 80 static void sparx5_pcs_get_state(struct phylink_pcs *pcs, argument 83 struct sparx5_port *port = sparx5_pcs_to_port(pcs); 94 static int sparx5_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, argument 99 struct sparx5_port *port = sparx5_pcs_to_port(pcs); 129 static void sparx5_pcs_aneg_restart(struct phylink_pcs *pcs) argument
|
/linux-master/drivers/clocksource/ |
H A D | timer-pistachio.c | 70 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); local 80 raw_spin_lock_irqsave(&pcs->lock, flags); 81 overflow = gpt_readl(pcs->base, TIMER_CURRENT_OVERFLOW_VALUE, 0); 82 counter = gpt_readl(pcs->base, TIMER_CURRENT_VALUE, 0); 83 raw_spin_unlock_irqrestore(&pcs->lock, flags); 96 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); local 99 val = gpt_readl(pcs->base, TIMER_CFG, timeridx); 105 gpt_writel(pcs->base, val, TIMER_CFG, timeridx); 110 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); local 114 gpt_writel(pcs [all...] |
/linux-master/drivers/net/phy/ |
H A D | phylink.c | 51 struct phylink_pcs *pcs; member in struct:phylink 655 struct phylink_pcs *pcs; local 660 pcs = pl->mac_ops->mac_select_pcs(pl->config, state->interface); 661 if (IS_ERR(pcs)) 662 return PTR_ERR(pcs); 664 pcs = pl->pcs; 667 if (pcs) { 672 if (!pcs->ops) { 680 if (pcs 980 phylink_pcs_pre_config(struct phylink_pcs *pcs, phy_interface_t interface) argument 987 phylink_pcs_post_config(struct phylink_pcs *pcs, phy_interface_t interface) argument 998 phylink_pcs_disable(struct phylink_pcs *pcs) argument 1004 phylink_pcs_enable(struct phylink_pcs *pcs) argument 1014 phylink_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, const struct phylink_link_state *state, bool permit_pause_to_mac) argument 1025 phylink_pcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode, phy_interface_t interface, int speed, int duplex) argument 1146 struct phylink_pcs *pcs = NULL; local 2111 phylink_pcs_change(struct phylink_pcs *pcs, bool up) argument 3640 phylink_mii_c22_pcs_get_state(struct mdio_device *pcs, struct phylink_link_state *state) argument 3708 phylink_mii_c22_pcs_config(struct mdio_device *pcs, phy_interface_t interface, const unsigned long *advertising, unsigned int neg_mode) argument 3751 phylink_mii_c22_pcs_an_restart(struct mdio_device *pcs) argument 3763 phylink_mii_c45_pcs_get_state(struct mdio_device *pcs, struct phylink_link_state *state) argument [all...] |
/linux-master/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-mac.c | 5 #include <linux/pcs-lynx.h> 157 return mac->pcs; 256 struct phylink_pcs *pcs; local 258 node = fwnode_find_reference(dpmac_node, "pcs-handle", 0); 261 netdev_warn(mac->net_dev, "pcs-handle node not found\n"); 265 pcs = lynx_pcs_create_fwnode(node); 268 if (pcs == ERR_PTR(-EPROBE_DEFER)) { 273 if (pcs == ERR_PTR(-ENODEV)) { 274 netdev_err(mac->net_dev, "pcs-handle node not available\n"); 275 return PTR_ERR(pcs); [all...] |
/linux-master/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_pf.h | 49 struct phylink_pcs *pcs; member in struct:enetc_pf
|
/linux-master/drivers/net/dsa/ |
H A D | mt7530-mdio.c | 6 #include <linux/pcs/pcs-mtk-lynxi.h> 87 struct phylink_pcs *pcs; local 117 pcs = mtk_pcs_lynxi_create(priv->dev, regmap, 119 if (!pcs) { 123 priv->ports[5 + i].sgmii_pcs = pcs;
|
/linux-master/drivers/phy/qualcomm/ |
H A D | phy-qcom-qmp-usbc.c | 29 #include "phy-qcom-qmp-pcs-misc-v3.h" 289 u16 pcs; member in struct:qmp_usbc_offsets 302 /* Init sequence for PHY blocks - serdes, tx, rx, pcs */ 326 void __iomem *pcs; member in struct:qmp_usbc 401 .pcs = 0xc00, 461 void __iomem *pcs = qmp->pcs; local 487 qphy_setbits(pcs, cfg->regs[QPHY_PCS_POWER_DOWN_CONTROL], SW_PWRDN); 544 qmp_configure(qmp->pcs, cfg->pcs_tbl, cfg->pcs_tbl_num); 547 qphy_clrbits(qmp->pcs, cf 644 void __iomem *pcs = qmp->pcs; local 672 void __iomem *pcs = qmp->pcs; local [all...] |
/linux-master/drivers/net/fddi/skfp/ |
H A D | pcmplc.c | 1849 struct pcm_state *pcs ; local 1856 for (i = 0, phy = smc->y, pcs = state->pcm_state ; i < NUMPHYS ; 1857 i++ , phy++, pcs++ ) { 1859 pcs->pcm_type = (u_char) mib->fddiPORTMy_Type ; 1860 pcs->pcm_state = (u_char) mib->fddiPORTPCMState ; 1861 pcs->pcm_mode = phy->pc_mode ; 1862 pcs->pcm_neighbor = (u_char) mib->fddiPORTNeighborType ; 1863 pcs->pcm_bsf = mib->fddiPORTBS_Flag ; 1864 pcs->pcm_lsf = phy->ls_flag ; 1865 pcs 1882 int pcs ; local 1926 char *pcs ; local [all...] |