/linux-master/drivers/net/dsa/sja1105/ |
H A D | sja1105_mdio.c | 4 #include <linux/pcs/pcs-xpcs.h> 384 snprintf(bus->id, MII_BUS_ID_SIZE, "%s-pcs",
|
/linux-master/drivers/net/ethernet/altera/ |
H A D | altera_tse.h | 479 struct phylink_pcs *pcs; member in struct:altera_tse_private
|
H A D | altera_tse_main.c | 35 #include <linux/pcs-lynx.h> 1089 return priv->pcs; 1258 ret = request_and_map(pdev, "pcs", &pcs_res, &priv->pcs_base); 1408 snprintf(mrc.name, MII_BUS_ID_SIZE, "%s-pcs-mii", ndev->name); 1415 priv->pcs = lynx_pcs_create_mdiodev(pcs_bus, 0); 1416 if (IS_ERR(priv->pcs)) { 1417 ret = PTR_ERR(priv->pcs); 1447 lynx_pcs_destroy(priv->pcs); 1469 lynx_pcs_destroy(priv->pcs);
|
/linux-master/drivers/net/ethernet/cadence/ |
H A D | macb_main.c | 565 static void macb_usx_pcs_link_up(struct phylink_pcs *pcs, unsigned int neg_mode, argument 569 struct macb *bp = container_of(pcs, struct macb, phylink_usx_pcs); 580 static void macb_usx_pcs_get_state(struct phylink_pcs *pcs, argument 583 struct macb *bp = container_of(pcs, struct macb, phylink_usx_pcs); 597 static int macb_usx_pcs_config(struct phylink_pcs *pcs, argument 603 struct macb *bp = container_of(pcs, struct macb, phylink_usx_pcs); 611 static void macb_pcs_get_state(struct phylink_pcs *pcs, argument 617 static void macb_pcs_an_restart(struct phylink_pcs *pcs) argument 622 static int macb_pcs_config(struct phylink_pcs *pcs, argument
|
/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...] |
H A D | dpaa2-mac.h | 27 struct phylink_pcs *pcs; member in struct:dpaa2_mac
|
/linux-master/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_pf.c | 11 #include <linux/pcs-lynx.h> 894 dev_err(dev, "cannot create lynx pcs (%d)\n", err); 899 pf->pcs = phylink_pcs; 912 if (pf->pcs) 913 lynx_pcs_destroy(pf->pcs); 964 return pf->pcs;
|
H A D | enetc_pf.h | 49 struct phylink_pcs *pcs; member in struct:enetc_pf
|
/linux-master/drivers/net/ethernet/freescale/fman/ |
H A D | fman_dtsec.c | 321 struct phylink_pcs pcs; member in struct:fman_mac 753 static struct fman_mac *pcs_to_dtsec(struct phylink_pcs *pcs) argument 755 return container_of(pcs, struct fman_mac, pcs); 758 static void dtsec_pcs_get_state(struct phylink_pcs *pcs, argument 761 struct fman_mac *dtsec = pcs_to_dtsec(pcs); 766 static int dtsec_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, argument 771 struct fman_mac *dtsec = pcs_to_dtsec(pcs); 777 static void dtsec_pcs_an_restart(struct phylink_pcs *pcs) argument 779 struct fman_mac *dtsec = pcs_to_dtsec(pcs); [all...] |
H A D | fman_memac.c | 14 #include <linux/pcs-lynx.h> 975 static void pcs_put(struct phylink_pcs *pcs) argument 977 if (IS_ERR_OR_NULL(pcs)) 980 lynx_pcs_destroy(pcs); 1040 struct phylink_pcs *pcs; local 1046 pcs = lynx_pcs_create_fwnode(of_fwnode_handle(node)); 1049 return pcs; 1070 struct phylink_pcs *pcs; local 1103 err = of_property_match_string(mac_node, "pcs-handle-names", "xfi"); 1108 dev_err_probe(mac_dev->dev, err, "missing xfi pcs\ [all...] |
/linux-master/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_main.c | 1483 int pcs; local 1486 pcs = netdev_get_num_tc(dev); 1488 if (pcs <= 1) 1493 f->indices = pcs; 1494 f->mask = BIT(fls(pcs - 1)) - 1; 1497 rss_i = interface->hw.mac.max_queues / pcs; 1507 for (i = 0; i < pcs; i++) 1510 interface->num_rx_queues = rss_i * pcs; 1511 interface->num_tx_queues = rss_i * pcs;
|
/linux-master/drivers/net/ethernet/intel/igb/ |
H A D | e1000_82575.c | 1286 * If sgmii is enabled, then use the pcs register to determine link, otherwise 1359 u32 pcs, status; local 1370 pcs = rd32(E1000_PCS_LSTAT); 1376 if ((pcs & E1000_PCS_LSTS_LINK_OK) && (pcs & E1000_PCS_LSTS_SYNK_OK)) { 1380 if (pcs & E1000_PCS_LSTS_SPEED_1000) 1382 else if (pcs & E1000_PCS_LSTS_SPEED_100) 1388 if (pcs & E1000_PCS_LSTS_DUPLEX_FULL) 1720 * link so it is best to just force the MAC and let the pcs
|
/linux-master/drivers/net/ethernet/marvell/ |
H A D | mvneta.c | 3958 static struct mvneta_port *mvneta_pcs_to_port(struct phylink_pcs *pcs) argument 3960 return container_of(pcs, struct mvneta_port, phylink_pcs); 3963 static int mvneta_pcs_validate(struct phylink_pcs *pcs, argument 3979 static void mvneta_pcs_get_state(struct phylink_pcs *pcs, argument 3982 struct mvneta_port *pp = mvneta_pcs_to_port(pcs); 4006 static int mvneta_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, argument 4011 struct mvneta_port *pp = mvneta_pcs_to_port(pcs); 4062 static void mvneta_pcs_an_restart(struct phylink_pcs *pcs) argument 4064 struct mvneta_port *pp = mvneta_pcs_to_port(pcs);
|
/linux-master/drivers/net/ethernet/marvell/mvpp2/ |
H A D | mvpp2_main.c | 3438 struct phylink_pcs *pcs, bool link) 3443 phylink_pcs_change(pcs, link); 6147 static struct mvpp2_port *mvpp2_pcs_xlg_to_port(struct phylink_pcs *pcs) argument 6149 return container_of(pcs, struct mvpp2_port, pcs_xlg); 6152 static struct mvpp2_port *mvpp2_pcs_gmac_to_port(struct phylink_pcs *pcs) argument 6154 return container_of(pcs, struct mvpp2_port, pcs_gmac); 6157 static void mvpp2_xlg_pcs_get_state(struct phylink_pcs *pcs, argument 6160 struct mvpp2_port *port = mvpp2_pcs_xlg_to_port(pcs); 6181 static int mvpp2_xlg_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, argument 6194 static int mvpp2_gmac_pcs_validate(struct phylink_pcs *pcs, argument 3437 mvpp2_isr_handle_link(struct mvpp2_port *port, struct phylink_pcs *pcs, bool link) argument 6209 mvpp2_gmac_pcs_get_state(struct phylink_pcs *pcs, struct phylink_link_state *state) argument 6244 mvpp2_gmac_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, phy_interface_t interface, const unsigned long *advertising, bool permit_pause_to_mac) argument 6301 mvpp2_gmac_pcs_an_restart(struct phylink_pcs *pcs) argument 6654 struct phylink_pcs *pcs; local [all...] |
/linux-master/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_main.c | 240 static struct prestera_port *prestera_pcs_to_port(struct phylink_pcs *pcs) argument 242 return container_of(pcs, struct prestera_port, phylink_pcs); 282 static void prestera_pcs_get_state(struct phylink_pcs *pcs, argument 285 struct prestera_port *port = container_of(pcs, struct prestera_port, 303 static int prestera_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, argument 308 struct prestera_port *port = prestera_pcs_to_port(pcs); 348 static void prestera_pcs_an_restart(struct phylink_pcs *pcs) argument
|
/linux-master/drivers/net/ethernet/mediatek/ |
H A D | mtk_eth_soc.c | 24 #include <linux/pcs/pcs-mtk-lynxi.h>
|
/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/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
|
H A D | sparx5_port.c | 430 u32 pcs = sparx5_to_pcs_dev(port->portno); local 431 void __iomem *pcsinst = spx5_inst_get(sparx5, pcs, tinst); 794 u32 pcs = sparx5_to_pcs_dev(port->portno); local 800 pcsinst = spx5_inst_get(sparx5, pcs, pix); 1021 u32 pcs = sparx5_to_pcs_dev(port->portno); local 1031 pcsinst = spx5_inst_get(sparx5, pcs, pix);
|
/linux-master/drivers/net/ethernet/stmicro/stmmac/ |
H A D | common.h | 18 #include <linux/pcs/pcs-xpcs.h> 416 unsigned int pcs; member in struct:dma_features 605 unsigned int pcs; member in struct:mac_device_info
|
H A D | dwmac-rzn1.c | 9 #include <linux/pcs-rzn1-miic.h> 20 struct phylink_pcs *pcs; local 22 pcs_node = of_parse_phandle(np, "pcs-handle", 0); 25 pcs = miic_create(priv->device, pcs_node); 27 if (IS_ERR(pcs)) 28 return PTR_ERR(pcs); 30 priv->hw->phylink_pcs = pcs;
|
H A D | dwmac-socfpga.c | 14 #include <linux/pcs-lynx.h> 392 struct phylink_pcs *pcs; local 412 snprintf(mrc.name, MII_BUS_ID_SIZE, "%s-pcs-mii", 418 pcs = lynx_pcs_create_mdiodev(pcs_bus, 0); 419 if (IS_ERR(pcs)) 420 return PTR_ERR(pcs); 422 priv->hw->phylink_pcs = pcs;
|
H A D | dwmac1000_core.c | 60 if (hw->pcs)
|
H A D | dwmac1000_dma.c | 243 dma_cap->pcs = (hw_cap & DMA_HW_FEAT_PCSSEL) >> 6;
|
H A D | dwmac4_core.c | 58 if (hw->pcs)
|