Lines Matching full:pcs
5 #include <linux/pcs-lynx.h>
157 return mac->pcs; in dpaa2_mac_select_pcs()
256 struct phylink_pcs *pcs; in dpaa2_pcs_create() local
258 node = fwnode_find_reference(dpmac_node, "pcs-handle", 0); in dpaa2_pcs_create()
261 netdev_warn(mac->net_dev, "pcs-handle node not found\n"); in dpaa2_pcs_create()
265 pcs = lynx_pcs_create_fwnode(node); in dpaa2_pcs_create()
268 if (pcs == ERR_PTR(-EPROBE_DEFER)) { in dpaa2_pcs_create()
269 netdev_dbg(mac->net_dev, "missing PCS device\n"); in dpaa2_pcs_create()
273 if (pcs == ERR_PTR(-ENODEV)) { in dpaa2_pcs_create()
274 netdev_err(mac->net_dev, "pcs-handle node not available\n"); in dpaa2_pcs_create()
275 return PTR_ERR(pcs); in dpaa2_pcs_create()
278 if (IS_ERR(pcs)) { in dpaa2_pcs_create()
280 "lynx_pcs_create_fwnode() failed: %pe\n", pcs); in dpaa2_pcs_create()
281 return PTR_ERR(pcs); in dpaa2_pcs_create()
284 mac->pcs = pcs; in dpaa2_pcs_create()
291 struct phylink_pcs *phylink_pcs = mac->pcs; in dpaa2_pcs_destroy()
295 mac->pcs = NULL; in dpaa2_pcs_destroy()
303 /* We support the current interface mode, and if we have a PCS in dpaa2_mac_set_supported_interfaces()
308 if (mac->pcs) { in dpaa2_mac_set_supported_interfaces()