Lines Matching refs:pcs

8 #include <linux/pcs-lynx.h>
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,
36 struct mii_bus *bus = pcs->bus;
37 int addr = pcs->addr;
56 static void lynx_pcs_get_state_2500basex(struct mdio_device *pcs,
59 struct mii_bus *bus = pcs->bus;
60 int addr = pcs->addr;
80 static void lynx_pcs_get_state(struct phylink_pcs *pcs,
83 struct lynx_pcs *lynx = phylink_pcs_to_lynx(pcs);
111 static int lynx_pcs_config_sgmii(struct mdio_device *pcs, unsigned int mode,
114 struct mii_bus *bus = pcs->bus;
115 int addr = pcs->addr;
136 return phylink_mii_c22_pcs_config(pcs, mode, PHY_INTERFACE_MODE_SGMII,
140 static int lynx_pcs_config_usxgmii(struct mdio_device *pcs, unsigned int mode,
143 struct mii_bus *bus = pcs->bus;
144 int addr = pcs->addr;
147 dev_err(&pcs->dev, "USXGMII only supports in-band AN for now\n");
158 static int lynx_pcs_config(struct phylink_pcs *pcs, unsigned int mode,
163 struct lynx_pcs *lynx = phylink_pcs_to_lynx(pcs);
188 static void lynx_pcs_link_up_sgmii(struct mdio_device *pcs, unsigned int mode,
191 struct mii_bus *bus = pcs->bus;
193 int addr = pcs->addr;
218 dev_err(&pcs->dev, "Invalid PCS speed %d\n", speed);
244 static void lynx_pcs_link_up_2500basex(struct mdio_device *pcs,
248 struct mii_bus *bus = pcs->bus;
249 int addr = pcs->addr;
253 dev_err(&pcs->dev, "AN not supported for 2500BaseX\n");
266 static void lynx_pcs_link_up(struct phylink_pcs *pcs, unsigned int mode,
270 struct lynx_pcs *lynx = phylink_pcs_to_lynx(pcs);
305 lynx_pcs->pcs.ops = &lynx_pcs_phylink_ops;
306 lynx_pcs->pcs.poll = true;
312 void lynx_pcs_destroy(struct lynx_pcs *pcs)
314 kfree(pcs);