| /linux/include/linux/ |
| H A D | phylink.h | 27 /* PCS "negotiation" mode. 152 * are supported by the MAC/PCS. 183 * @mac_select_pcs: Select a PCS for the interface mode. 230 * mac_select_pcs: Select a PCS for the interface mode. 232 * @interface: PHY interface mode for PCS 237 * This must not modify any state. It is used to query which PCS should 240 * set the PCS that will be used. 289 * the results of in-band negotiation/status from the MAC PCS should be used 352 * complete any necessary steps after the MAC and PCS have been configured 400 * where these settings are not automatically conveyed from the PCS bloc [all...] |
| /linux/drivers/net/pcs/ |
| H A D | pcs-mtk-lynxi.c | 13 #include <linux/pcs/pcs-mtk-lynxi.h> 72 * @dev: Pointer to device owning the PCS 75 * @pcs: Phylink PCS structure 82 struct phylink_pcs pcs; member 86 static struct mtk_pcs_lynxi *pcs_to_mtk_pcs_lynxi(struct phylink_pcs *pcs) in pcs_to_mtk_pcs_lynxi() argument 88 return container_of(pcs, struct mtk_pcs_lynxi, pcs); in pcs_to_mtk_pcs_lynxi() 91 static unsigned int mtk_pcs_lynxi_inband_caps(struct phylink_pcs *pcs, in mtk_pcs_lynxi_inband_caps() argument 107 static void mtk_pcs_lynxi_get_state(struct phylink_pcs *pcs, in mtk_pcs_lynxi_get_state() argument 111 struct mtk_pcs_lynxi *mpcs = pcs_to_mtk_pcs_lynxi(pcs); in mtk_pcs_lynxi_get_state() 123 static int mtk_pcs_lynxi_config(struct phylink_pcs *pcs, unsigned int neg_mode, in mtk_pcs_lynxi_config() argument [all …]
|
| H A D | Makefile | 2 # Makefile for Linux PCS drivers 4 pcs_xpcs-$(CONFIG_PCS_XPCS) := pcs-xpcs.o pcs-xpcs-plat.o \ 5 pcs-xpcs-nxp.o pcs-xpcs-wx.o 8 obj-$(CONFIG_PCS_LYNX) += pcs-lynx.o 9 obj-$(CONFIG_PCS_MTK_LYNXI) += pcs-mtk-lynxi.o 10 obj-$(CONFIG_PCS_RZN1_MIIC) += pcs-rzn1-miic.o
|
| H A D | pcs-xpcs.c | 11 #include <linux/pcs/pcs-xpcs.h> 17 #include "pcs-xpcs.h" 20 container_of((pl_pcs), struct dw_xpcs, pcs) 137 return &xpcs->pcs; in xpcs_to_phylink_pcs() 545 static int xpcs_validate(struct phylink_pcs *pcs, unsigned long *supported, in xpcs_validate() argument 553 xpcs = phylink_pcs_to_xpcs(pcs); in xpcs_validate() 570 static unsigned int xpcs_inband_caps(struct phylink_pcs *pcs, in xpcs_inband_caps() argument 573 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); in xpcs_inband_caps() 621 static void xpcs_pre_config(struct phylink_pcs *pcs, phy_interface_t interface) in xpcs_pre_config() argument 623 struct dw_xpcs *xpcs = phylink_pcs_to_xpcs(pcs); in xpcs_pre_config() [all …]
|
| H A D | pcs-rzn1-miic.c | 17 #include <linux/pcs-rzn1-miic.h> 23 #include <dt-bindings/net/pcs-rzn1-miic.h> 24 #include <dt-bindings/net/renesas,r9a09g077-pcs-miic.h> 234 * @pcs: PCS structure associated to the port 240 struct phylink_pcs pcs; member 245 static struct miic_port *phylink_pcs_to_miic_port(struct phylink_pcs *pcs) in phylink_pcs_to_miic_port() argument 247 return container_of(pcs, struct miic_port, pcs); in phylink_pcs_to_miic_port() 311 static int miic_config(struct phylink_pcs *pcs, unsigned int neg_mode, in miic_config() argument 315 struct miic_port *miic_port = phylink_pcs_to_miic_port(pcs); in miic_config() 362 static void miic_link_up(struct phylink_pcs *pcs, unsigned int neg_mode, in miic_link_up() argument [all …]
|
| /linux/drivers/net/dsa/mv88e6xxx/ |
| H A D | pcs-639x.c | 3 * Marvell 88E6352 family SERDES PCS support 130 static struct mv88e639x_pcs *sgmii_pcs_to_mv88e639x_pcs(struct phylink_pcs *pcs) in sgmii_pcs_to_mv88e639x_pcs() argument 132 return container_of(pcs, struct mv88e639x_pcs, sgmii_pcs); in sgmii_pcs_to_mv88e639x_pcs() 184 static int mv88e639x_sgmii_pcs_enable(struct phylink_pcs *pcs) in mv88e639x_sgmii_pcs_enable() argument 186 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); in mv88e639x_sgmii_pcs_enable() 194 static void mv88e639x_sgmii_pcs_disable(struct phylink_pcs *pcs) in mv88e639x_sgmii_pcs_disable() argument 196 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); in mv88e639x_sgmii_pcs_disable() 202 static void mv88e639x_sgmii_pcs_pre_config(struct phylink_pcs *pcs, in mv88e639x_sgmii_pcs_pre_config() argument 205 struct mv88e639x_pcs *mpcs = sgmii_pcs_to_mv88e639x_pcs(pcs); in mv88e639x_sgmii_pcs_pre_config() 241 static int mv88e639x_sgmii_pcs_post_config(struct phylink_pcs *pcs, in mv88e639x_sgmii_pcs_post_config() argument [all …]
|
| H A D | pcs-6352.c | 3 * Marvell 88E6352 family SERDES PCS support 33 static struct marvell_c22_pcs *pcs_to_marvell_c22_pcs(struct phylink_pcs *pcs) in pcs_to_marvell_c22_pcs() argument 35 return container_of(pcs, struct marvell_c22_pcs, phylink_pcs); in pcs_to_marvell_c22_pcs() 140 static int marvell_c22_pcs_enable(struct phylink_pcs *pcs) in marvell_c22_pcs_enable() argument 142 struct marvell_c22_pcs *mpcs = pcs_to_marvell_c22_pcs(pcs); in marvell_c22_pcs_enable() 152 static void marvell_c22_pcs_disable(struct phylink_pcs *pcs) in marvell_c22_pcs_disable() argument 154 struct marvell_c22_pcs *mpcs = pcs_to_marvell_c22_pcs(pcs); in marvell_c22_pcs_disable() 160 static void marvell_c22_pcs_get_state(struct phylink_pcs *pcs, in marvell_c22_pcs_get_state() argument 164 struct marvell_c22_pcs *mpcs = pcs_to_marvell_c22_pcs(pcs); in marvell_c22_pcs_get_state() 185 static int marvell_c22_pcs_config(struct phylink_pcs *pcs, in marvell_c22_pcs_config() argument [all …]
|
| H A D | pcs-6185.c | 3 * Marvell 88E6185 family SERDES PCS support 24 static struct mv88e6185_pcs *pcs_to_mv88e6185_pcs(struct phylink_pcs *pcs) in pcs_to_mv88e6185_pcs() argument 26 return container_of(pcs, struct mv88e6185_pcs, phylink_pcs); in pcs_to_mv88e6185_pcs() 57 static void mv88e6185_pcs_get_state(struct phylink_pcs *pcs, in mv88e6185_pcs_get_state() argument 61 struct mv88e6185_pcs *mpcs = pcs_to_mv88e6185_pcs(pcs); in mv88e6185_pcs_get_state() 99 static int mv88e6185_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in mv88e6185_pcs_config() argument 107 static void mv88e6185_pcs_an_restart(struct phylink_pcs *pcs) in mv88e6185_pcs_an_restart() argument 126 * have a PCS or not. in mv88e6185_pcs_init()
|
| /linux/drivers/net/dsa/b53/ |
| H A D | b53_serdes.c | 20 static inline struct b53_pcs *pcs_to_b53_pcs(struct phylink_pcs *pcs) in pcs_to_b53_pcs() argument 22 return container_of(pcs, struct b53_pcs, pcs); in pcs_to_b53_pcs() 68 static int b53_serdes_config(struct phylink_pcs *pcs, unsigned int neg_mode, in b53_serdes_config() argument 73 struct b53_device *dev = pcs_to_b53_pcs(pcs)->dev; in b53_serdes_config() 74 u8 lane = pcs_to_b53_pcs(pcs)->lane; in b53_serdes_config() 89 static void b53_serdes_an_restart(struct phylink_pcs *pcs) in b53_serdes_an_restart() argument 91 struct b53_device *dev = pcs_to_b53_pcs(pcs)->dev; in b53_serdes_an_restart() 92 u8 lane = pcs_to_b53_pcs(pcs)->lane; in b53_serdes_an_restart() 102 static void b53_serdes_get_state(struct phylink_pcs *pcs, unsigned int neg_mode, in b53_serdes_get_state() argument 105 struct b53_device *dev = pcs_to_b53_pcs(pcs)->dev; in b53_serdes_get_state() [all …]
|
| /linux/arch/arm64/boot/dts/freescale/ |
| H A D | fsl-ls1046-post.dtsi | 27 pcs-handle = <&qsgmiib_pcs3>; 28 pcs-handle-names = "qsgmii"; 42 pcs-handle = <&pcsphy4>, <&qsgmiib_pcs1>; 43 pcs-handle-names = "sgmii", "qsgmii"; 48 pcs-handle = <&pcsphy5>, <&pcsphy5>; 49 pcs-handle-names = "sgmii", "qsgmii"; 57 pcs-handle = <&pcsphy7>, <&qsgmiib_pcs2>, <&pcsphy7>; 58 pcs-handle-names = "sgmii", "qsgmii", "xfi"; 62 qsgmiib_pcs1: ethernet-pcs@1 { 63 compatible = "fsl,lynx-pcs"; [all …]
|
| H A D | fsl-ls1043-post.dtsi | 27 pcs-handle-names = "qsgmii"; 32 pcs-handle = <&pcsphy1>, <&qsgmiib_pcs1>; 33 pcs-handle-names = "sgmii", "qsgmii"; 44 pcs-handle = <&pcsphy4>, <&qsgmiib_pcs2>; 45 pcs-handle-names = "sgmii", "qsgmii"; 50 pcs-handle = <&pcsphy5>, <&qsgmiib_pcs3>; 51 pcs-handle-names = "sgmii", "qsgmii"; 58 qsgmiib_pcs1: ethernet-pcs@1 { 59 compatible = "fsl,lynx-pcs"; 63 qsgmiib_pcs2: ethernet-pcs@2 { [all …]
|
| H A D | tqmls1088a-mbls10xxa-mc.dtsi | 17 pcs-handle = <&pcs1>; 21 pcs-handle = <&pcs2>; 25 pcs-handle = <&pcs3_0>; 29 pcs-handle = <&pcs3_1>; 33 pcs-handle = <&pcs3_2>; 37 pcs-handle = <&pcs3_3>; 41 pcs-handle = <&pcs7_0>; 45 pcs-handle = <&pcs7_1>; 49 pcs-handle = <&pcs7_2>; 53 pcs-handle = <&pcs7_3>;
|
| H A D | fsl-ls1088a-rdb.dts | 23 pcs-handle = <&pcs2>; 30 pcs-handle = <&pcs3_0>; 37 pcs-handle = <&pcs3_1>; 44 pcs-handle = <&pcs3_2>; 51 pcs-handle = <&pcs3_3>; 58 pcs-handle = <&pcs7_0>; 65 pcs-handle = <&pcs7_1>; 72 pcs-handle = <&pcs7_2>; 79 pcs-handle = <&pcs7_3>;
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_xgmi.c | 127 [0x00] = "XGMI PCS DataLossErr", 128 [0x01] = "XGMI PCS TrainingErr", 129 [0x02] = "XGMI PCS FlowCtrlAckErr", 130 [0x03] = "XGMI PCS RxFifoUnderflowErr", 131 [0x04] = "XGMI PCS RxFifoOverflowErr", 132 [0x05] = "XGMI PCS CRCErr", 133 [0x06] = "XGMI PCS BERExceededErr", 134 [0x07] = "XGMI PCS TxMetaDataErr", 135 [0x08] = "XGMI PCS ReplayBufParityErr", 136 [0x09] = "XGMI PCS DataParityErr", [all …]
|
| /linux/Documentation/networking/ |
| H A D | sfp-phylink.rst | 219 should be used to configure the MAC when the MAC and PCS are not 249 10. Some Ethernet controllers work in pair with a PCS (Physical Coding Sublayer) 252 PCS whose operation is transparent, some other require dedicated PCS 254 provides a PCS abstraction through :c:type:`struct phylink_pcs <phylink_pcs>`. 256 Identify if your driver has one or more internal PCS blocks, and/or if 257 your controller can use an external PCS block that might be internally 260 If your controller doesn't have any internal PCS, you can go to step 11. 262 If your Ethernet controller contains one or several PCS blocks, create 263 one :c:type:`struct phylink_pcs <phylink_pcs>` instance per PCS block within 268 struct phylink_pcs pcs; [all …]
|
| /linux/drivers/net/phy/ |
| H A D | phylink.c | 45 struct phylink_pcs *pcs; member 514 struct phylink_pcs *pcs = NULL; in phylink_validate_mac_and_pcs() local 518 /* Get the PCS for this interface mode */ in phylink_validate_mac_and_pcs() 520 pcs = pl->mac_ops->mac_select_pcs(pl->config, state->interface); in phylink_validate_mac_and_pcs() 521 if (IS_ERR(pcs)) in phylink_validate_mac_and_pcs() 522 return PTR_ERR(pcs); in phylink_validate_mac_and_pcs() 525 if (pcs) { in phylink_validate_mac_and_pcs() 526 /* The PCS, if present, must be setup before phylink_create() in phylink_validate_mac_and_pcs() 530 if (!pcs->ops) { in phylink_validate_mac_and_pcs() 531 phylink_err(pl, "interface %s: uninitialised PCS\n", in phylink_validate_mac_and_pcs() [all …]
|
| /linux/drivers/phy/qualcomm/ |
| H A D | phy-qcom-qmp.h | 39 #include "phy-qcom-qmp-pcs-v2.h" 41 #include "phy-qcom-qmp-pcs-v3.h" 43 #include "phy-qcom-qmp-pcs-v4.h" 45 #include "phy-qcom-qmp-pcs-v4_20.h" 47 #include "phy-qcom-qmp-pcs-v5.h" 49 #include "phy-qcom-qmp-pcs-v5_20.h" 51 #include "phy-qcom-qmp-pcs-v6.h" 53 #include "phy-qcom-qmp-pcs-v6-n4.h" 55 #include "phy-qcom-qmp-pcs-v6_20.h" 57 #include "phy-qcom-qmp-pcs-v7.h" [all …]
|
| H A D | phy-qcom-qmp-ufs.c | 27 #include "phy-qcom-qmp-pcs-ufs-v2.h" 28 #include "phy-qcom-qmp-pcs-ufs-v3.h" 29 #include "phy-qcom-qmp-pcs-ufs-v4.h" 30 #include "phy-qcom-qmp-pcs-ufs-v5.h" 31 #include "phy-qcom-qmp-pcs-ufs-v6.h" 45 /* PCS registers */ 1073 u16 pcs; member 1081 /* Init sequence for PHY blocks - serdes, tx, rx, pcs */ 1088 const struct qmp_phy_init_tbl *pcs; member 1102 /* Main init sequence for PHY blocks - serdes, tx, rx, pcs */ [all …]
|
| /linux/Documentation/devicetree/bindings/net/ |
| H A D | nvidia,tegra234-mgbe.yaml | 49 - const: eee-pcs 50 - const: rx-pcs-input 51 - const: rx-pcs-m 52 - const: rx-pcs 53 - const: tx-pcs 61 - const: pcs 137 "rx-input", "tx", "eee-pcs", "rx-pcs-input", "rx-pcs-m", 138 "rx-pcs", "tx-pcs"; 141 reset-names = "mac", "pcs";
|
| /linux/Documentation/devicetree/bindings/net/pcs/ |
| H A D | fsl,lynx-pcs.yaml | 4 $id: http://devicetree.org/schemas/net/pcs/fsl,lynx-pcs.yaml# 7 title: NXP Lynx PCS 13 NXP Lynx 10G and 28G SerDes have Ethernet PCS devices which can be used as 19 const: fsl,lynx-pcs 36 qsgmii_pcs1: ethernet-pcs@1 { 37 compatible = "fsl,lynx-pcs";
|
| H A D | mediatek,sgmiisys.yaml | 4 $id: http://devicetree.org/schemas/net/pcs/mediatek,sgmiisys.yaml# 13 The MediaTek SGMIISYS controller provides a SGMII PCS and some clocks 45 pcs: 47 description: MediaTek LynxI HSGMII PCS 84 - pcs 88 pcs: false
|
| /linux/drivers/clocksource/ |
| H A D | timer-pistachio.c | 70 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clocksource_read_cycles() local 80 raw_spin_lock_irqsave(&pcs->lock, flags); in pistachio_clocksource_read_cycles() 81 overflow = gpt_readl(pcs->base, TIMER_CURRENT_OVERFLOW_VALUE, 0); in pistachio_clocksource_read_cycles() 82 counter = gpt_readl(pcs->base, TIMER_CURRENT_VALUE, 0); in pistachio_clocksource_read_cycles() 83 raw_spin_unlock_irqrestore(&pcs->lock, flags); in pistachio_clocksource_read_cycles() 96 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clksrc_set_mode() local 99 val = gpt_readl(pcs->base, TIMER_CFG, timeridx); in pistachio_clksrc_set_mode() 105 gpt_writel(pcs->base, val, TIMER_CFG, timeridx); in pistachio_clksrc_set_mode() 110 struct pistachio_clocksource *pcs = to_pistachio_clocksource(cs); in pistachio_clksrc_enable() local 114 gpt_writel(pcs->base, RELOAD_VALUE, TIMER_RELOAD_VALUE, timeridx); in pistachio_clksrc_enable()
|
| /linux/drivers/net/dsa/sja1105/ |
| H A D | sja1105_mdio.c | 4 #include <linux/pcs/pcs-xpcs.h> 383 bus->name = "SJA1105 PCS MDIO bus"; in sja1105_mdiobus_pcs_register() 384 snprintf(bus->id, MII_BUS_ID_SIZE, "%s-pcs", in sja1105_mdiobus_pcs_register() 403 struct phylink_pcs *pcs; in sja1105_mdiobus_pcs_register() local 412 pcs = xpcs_create_pcs_mdiodev(bus, port); in sja1105_mdiobus_pcs_register() 413 if (IS_ERR(pcs)) { in sja1105_mdiobus_pcs_register() 414 rc = PTR_ERR(pcs); in sja1105_mdiobus_pcs_register() 418 priv->pcs[port] = pcs; in sja1105_mdiobus_pcs_register() 427 if (priv->pcs[port]) { in sja1105_mdiobus_pcs_register() 428 xpcs_destroy_pcs(priv->pcs[port]); in sja1105_mdiobus_pcs_register() [all …]
|
| /linux/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_phylink.c | 105 fbnic_pcs_to_net(struct phylink_pcs *pcs) in fbnic_pcs_to_net() argument 107 return container_of(pcs, struct fbnic_net, phylink_pcs); in fbnic_pcs_to_net() 111 fbnic_phylink_pcs_get_state(struct phylink_pcs *pcs, unsigned int neg_mode, in fbnic_phylink_pcs_get_state() argument 114 struct fbnic_net *fbn = fbnic_pcs_to_net(pcs); in fbnic_phylink_pcs_get_state() 139 fbnic_phylink_pcs_enable(struct phylink_pcs *pcs) in fbnic_phylink_pcs_enable() argument 141 struct fbnic_net *fbn = fbnic_pcs_to_net(pcs); in fbnic_phylink_pcs_enable() 148 fbnic_phylink_pcs_disable(struct phylink_pcs *pcs) in fbnic_phylink_pcs_disable() argument 150 struct fbnic_net *fbn = fbnic_pcs_to_net(pcs); in fbnic_phylink_pcs_disable() 157 fbnic_phylink_pcs_config(struct phylink_pcs *pcs, unsigned int neg_mode, in fbnic_phylink_pcs_config() argument
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | jit_disasm_helpers.c | 30 __u32 pcs[MAX_LOCAL_LABELS]; member 47 * - if print_phase is true and ref_value is in labels->pcs, in lookup_symbol() 50 * in labels->pcs; in lookup_symbol() 54 if (labels->pcs[i] == ref_value) in lookup_symbol() 58 labels->pcs[labels->cnt++] = ref_value; in lookup_symbol() 124 qsort(labels.pcs, labels.cnt, sizeof(*labels.pcs), cmp_u32); in disasm_one_func() 144 label_pc = bsearch(&pc, labels.pcs, labels.cnt, sizeof(*labels.pcs), cmp_u32); in disasm_one_func() 148 label = labels.names[label_pc - labels.pcs]; in disasm_one_func()
|