Lines Matching full:pcs
10 #include <linux/pcs-lynx.h>
1075 felix->pcs = devm_kcalloc(dev, felix->info->num_ports, in vsc9953_mdio_bus_alloc()
1078 if (!felix->pcs) { in vsc9953_mdio_bus_alloc()
1079 dev_err(dev, "failed to allocate array for PCS PHYs\n"); in vsc9953_mdio_bus_alloc()
1106 struct mdio_device *pcs; in vsc9953_mdio_bus_alloc() local
1115 pcs = mdio_device_create(felix->imdio, addr); in vsc9953_mdio_bus_alloc()
1116 if (IS_ERR(pcs)) in vsc9953_mdio_bus_alloc()
1119 lynx = lynx_pcs_create(pcs); in vsc9953_mdio_bus_alloc()
1121 mdio_device_free(pcs); in vsc9953_mdio_bus_alloc()
1125 felix->pcs[port] = lynx; in vsc9953_mdio_bus_alloc()
1127 dev_info(dev, "Found PCS at internal MDIO address %d\n", addr); in vsc9953_mdio_bus_alloc()
1139 struct lynx_pcs *pcs = felix->pcs[port]; in vsc9953_mdio_bus_free() local
1141 if (!pcs) in vsc9953_mdio_bus_free()
1144 mdio_device_free(pcs->mdio); in vsc9953_mdio_bus_free()
1145 lynx_pcs_destroy(pcs); in vsc9953_mdio_bus_free()