Home
last modified time | relevance | path

Searched refs:phy_dev (Results 1 – 25 of 25) sorted by relevance

/drivers/net/ethernet/8390/
Dax88796.c86 struct phy_device *phy_dev; member
323 struct phy_device *phy_dev = ax->phy_dev; in ax_handle_link_change() local
326 if (phy_dev->link && ((ax->speed != phy_dev->speed) || in ax_handle_link_change()
327 (ax->duplex != phy_dev->duplex))) { in ax_handle_link_change()
329 ax->speed = phy_dev->speed; in ax_handle_link_change()
330 ax->duplex = phy_dev->duplex; in ax_handle_link_change()
334 if (phy_dev->link != ax->link) { in ax_handle_link_change()
335 if (!phy_dev->link) { in ax_handle_link_change()
339 ax->link = phy_dev->link; in ax_handle_link_change()
345 phy_print_status(phy_dev); in ax_handle_link_change()
[all …]
/drivers/staging/gdm72xx/
Dgdm_wimax.h40 struct phy_dev { struct
53 struct phy_dev *phy_dev; argument
87 extern int register_wimax_device(struct phy_dev *phy_dev, struct device *pdev);
89 extern void unregister_wimax_device(struct phy_dev *phy_dev);
Dgdm_usb.c569 struct phy_dev *phy_dev = NULL; in gdm_usb_probe() local
600 phy_dev = kzalloc(sizeof(*phy_dev), GFP_KERNEL); in gdm_usb_probe()
601 if (phy_dev == NULL) { in gdm_usb_probe()
616 phy_dev->priv_dev = (void *)udev; in gdm_usb_probe()
617 phy_dev->send_func = gdm_usb_send; in gdm_usb_probe()
618 phy_dev->rcv_func = gdm_usb_receive; in gdm_usb_probe()
637 ret = register_wimax_device(phy_dev, &intf->dev); in gdm_usb_probe()
641 kfree(phy_dev); in gdm_usb_probe()
644 usb_set_intfdata(intf, phy_dev); in gdm_usb_probe()
652 struct phy_dev *phy_dev; in gdm_usb_disconnect() local
[all …]
Dgdm_sdio.c504 struct phy_dev *phy_dev = sdio_get_drvdata(func); in gdm_sdio_irq() local
505 struct sdiowm_dev *sdev = phy_dev->priv_dev; in gdm_sdio_irq()
603 if (!phy_dev->netdev) in gdm_sdio_irq()
604 register_wimax_device(phy_dev, &func->dev); in gdm_sdio_irq()
636 struct phy_dev *phy_dev = NULL; in sdio_wimax_probe() local
651 phy_dev = kzalloc(sizeof(*phy_dev), GFP_KERNEL); in sdio_wimax_probe()
652 if (phy_dev == NULL) { in sdio_wimax_probe()
662 phy_dev->priv_dev = (void *)sdev; in sdio_wimax_probe()
663 phy_dev->send_func = gdm_sdio_send; in sdio_wimax_probe()
664 phy_dev->rcv_func = gdm_sdio_receive; in sdio_wimax_probe()
[all …]
Dgdm_wimax.c29 (n->phy_dev->send_func)(n->phy_dev->priv_dev, d, l, NULL, NULL)
31 (n->phy_dev->send_func)(n->phy_dev->priv_dev, d, l, c, b)
33 (n->phy_dev->rcv_func)(n->phy_dev->priv_dev, c, b)
936 int register_wimax_device(struct phy_dev *phy_dev, struct device *pdev) in register_wimax_device() argument
960 nic->phy_dev = phy_dev; in register_wimax_device()
961 phy_dev->netdev = dev; in register_wimax_device()
998 void unregister_wimax_device(struct phy_dev *phy_dev) in unregister_wimax_device() argument
1000 struct nic *nic = netdev_priv(phy_dev->netdev); in unregister_wimax_device()
1013 gdm_wimax_cleanup_ioctl(phy_dev->netdev); in unregister_wimax_device()
/drivers/net/ethernet/freescale/
Dfec_main.c546 if (fep->phy_dev) { in fec_restart()
547 if (fep->phy_dev->speed == SPEED_1000) in fec_restart()
549 else if (fep->phy_dev->speed == SPEED_100) in fec_restart()
570 if (fep->phy_dev && fep->phy_dev->speed == SPEED_10) in fec_restart()
584 fep->phy_dev && fep->phy_dev->pause)) { in fec_restart()
1072 struct phy_device *phy_dev = fep->phy_dev; in fec_enet_adjust_link() local
1076 if (fep->mii_timeout && phy_dev->state == PHY_HALTED) { in fec_enet_adjust_link()
1077 phy_dev->state = PHY_RESUMING; in fec_enet_adjust_link()
1081 if (phy_dev->link) { in fec_enet_adjust_link()
1083 fep->link = phy_dev->link; in fec_enet_adjust_link()
[all …]
Dfec.h247 struct phy_device *phy_dev; member
/drivers/net/ethernet/broadcom/
Dsb1250-mac.c241 struct phy_device *phy_dev; /* the associated PHY device */ member
2357 phy_start(sc->phy_dev); in sbmac_open()
2372 struct phy_device *phy_dev; in sbmac_mii_probe() local
2376 phy_dev = sc->mii_bus->phy_map[i]; in sbmac_mii_probe()
2377 if (phy_dev) in sbmac_mii_probe()
2380 if (!phy_dev) { in sbmac_mii_probe()
2385 phy_dev = phy_connect(dev, dev_name(&phy_dev->dev), &sbmac_mii_poll, in sbmac_mii_probe()
2387 if (IS_ERR(phy_dev)) { in sbmac_mii_probe()
2389 return PTR_ERR(phy_dev); in sbmac_mii_probe()
2393 phy_dev->supported &= SUPPORTED_10baseT_Half | in sbmac_mii_probe()
[all …]
/drivers/net/ethernet/smsc/
Dsmsc911x.c114 struct phy_device *phy_dev; member
808 struct phy_device *phy_dev = pdata->phy_dev; in smsc911x_phy_reset() local
812 BUG_ON(!phy_dev); in smsc911x_phy_reset()
813 BUG_ON(!phy_dev->bus); in smsc911x_phy_reset()
816 smsc911x_mii_write(phy_dev->bus, phy_dev->addr, MII_BMCR, BMCR_RESET); in smsc911x_phy_reset()
819 temp = smsc911x_mii_read(phy_dev->bus, phy_dev->addr, in smsc911x_phy_reset()
838 struct phy_device *phy_dev = pdata->phy_dev; in smsc911x_phy_loopbacktest() local
868 smsc911x_mii_write(phy_dev->bus, phy_dev->addr, MII_BMCR, in smsc911x_phy_loopbacktest()
897 smsc911x_mii_write(phy_dev->bus, phy_dev->addr, MII_BMCR, 0); in smsc911x_phy_loopbacktest()
908 struct phy_device *phy_dev = pdata->phy_dev; in smsc911x_phy_update_flowcontrol() local
[all …]
Dsmsc9420.c79 struct phy_device *phy_dev; member
247 if (!netif_running(dev) || !pd->phy_dev) in smsc9420_do_ioctl()
250 return phy_mii_ioctl(pd->phy_dev, ifr, cmd); in smsc9420_do_ioctl()
258 if (!pd->phy_dev) in smsc9420_ethtool_get_settings()
263 return phy_ethtool_gset(pd->phy_dev, cmd); in smsc9420_ethtool_get_settings()
271 if (!pd->phy_dev) in smsc9420_ethtool_set_settings()
274 return phy_ethtool_sset(pd->phy_dev, cmd); in smsc9420_ethtool_set_settings()
304 if (!pd->phy_dev) in smsc9420_ethtool_nway_reset()
307 return phy_start_aneg(pd->phy_dev); in smsc9420_ethtool_nway_reset()
321 struct phy_device *phy_dev = pd->phy_dev; in smsc9420_ethtool_getregs() local
[all …]
/drivers/net/ethernet/xilinx/
Dxilinx_emaclite.c135 struct phy_device *phy_dev; member
902 struct phy_device *phy = lp->phy_dev; in xemaclite_adjust_link()
933 lp->phy_dev = of_phy_connect(lp->ndev, lp->phy_node, in xemaclite_open()
936 if (!lp->phy_dev) { in xemaclite_open()
942 lp->phy_dev->supported &= (PHY_BASIC_FEATURES); in xemaclite_open()
943 lp->phy_dev->advertising = lp->phy_dev->supported; in xemaclite_open()
946 phy_write(lp->phy_dev, MII_CTRL1000, 0); in xemaclite_open()
949 phy_write(lp->phy_dev, MII_ADVERTISE, ADVERTISE_ALL | in xemaclite_open()
953 bmcr = phy_read(lp->phy_dev, MII_BMCR); in xemaclite_open()
955 phy_write(lp->phy_dev, MII_BMCR, bmcr); in xemaclite_open()
[all …]
Dll_temac_main.c588 struct phy_device *phy = lp->phy_dev; in temac_adjust_link()
848 lp->phy_dev = of_phy_connect(lp->ndev, lp->phy_node, in temac_open()
850 if (!lp->phy_dev) { in temac_open()
855 phy_start(lp->phy_dev); in temac_open()
872 if (lp->phy_dev) in temac_open()
873 phy_disconnect(lp->phy_dev); in temac_open()
874 lp->phy_dev = NULL; in temac_open()
888 if (lp->phy_dev) in temac_stop()
889 phy_disconnect(lp->phy_dev); in temac_stop()
890 lp->phy_dev = NULL; in temac_stop()
[all …]
Dxilinx_axienet_main.c526 struct phy_device *phy = lp->phy_dev; in axienet_adjust_link()
926 lp->phy_dev = of_phy_connect(lp->ndev, lp->phy_node, in axienet_open()
929 if (!lp->phy_dev) { in axienet_open()
933 phy_start(lp->phy_dev); in axienet_open()
954 if (lp->phy_dev) in axienet_open()
955 phy_disconnect(lp->phy_dev); in axienet_open()
956 lp->phy_dev = NULL; in axienet_open()
993 if (lp->phy_dev) in axienet_stop()
994 phy_disconnect(lp->phy_dev); in axienet_stop()
995 lp->phy_dev = NULL; in axienet_stop()
[all …]
Dll_temac.h335 struct phy_device *phy_dev; /* Pointer to PHY device */ member
Dxilinx_axienet.h419 struct phy_device *phy_dev; /* Pointer to PHY device */ member
/drivers/net/ethernet/amd/
Dau1000_eth.c298 struct phy_device *phydev = aup->phy_dev; in au1000_adjust_link()
304 BUG_ON(!aup->phy_dev); in au1000_adjust_link()
463 aup->phy_dev = phydev; in au1000_mii_probe()
566 if (aup->phy_dev) in au1000_get_settings()
567 return phy_ethtool_gset(aup->phy_dev, cmd); in au1000_get_settings()
579 if (aup->phy_dev) in au1000_set_settings()
580 return phy_ethtool_sset(aup->phy_dev, cmd); in au1000_set_settings()
663 if (aup->phy_dev) { in au1000_init()
664 if (aup->phy_dev->link && (DUPLEX_FULL == aup->phy_dev->duplex)) in au1000_init()
780 if (!aup->phy_dev || (DUPLEX_FULL == aup->phy_dev->duplex)) { in au1000_update_tx_stats()
[all …]
Dau1000_eth.h110 struct phy_device *phy_dev; member
/drivers/net/ethernet/
Ddnet.c182 struct phy_device *phydev = bp->phy_dev; in dnet_handle_link_change()
310 bp->phy_dev = phydev; in dnet_mii_probe()
664 if (!bp->phy_dev) in dnet_open()
670 phy_start_aneg(bp->phy_dev); in dnet_open()
673 phy_start(bp->phy_dev); in dnet_open()
687 if (bp->phy_dev) in dnet_close()
688 phy_stop(bp->phy_dev); in dnet_close()
769 struct phy_device *phydev = bp->phy_dev; in dnet_get_settings()
780 struct phy_device *phydev = bp->phy_dev; in dnet_set_settings()
791 struct phy_device *phydev = bp->phy_dev; in dnet_ioctl()
[all …]
Ddnet.h219 struct phy_device *phy_dev; member
/drivers/net/ethernet/toshiba/
Dtc35815.c409 struct phy_device *phy_dev; member
543 struct phy_device *phydev = lp->phy_dev; in tc_handle_link_change()
664 lp->phy_dev = phydev; in tc_mii_probe()
884 phy_disconnect(lp->phy_dev); in tc35815_remove_one()
1175 if (lp->phy_dev) { in tc35815_restart()
1178 phy_write(lp->phy_dev, MII_BMCR, BMCR_RESET); in tc35815_restart()
1181 if (!(phy_read(lp->phy_dev, MII_BMCR) & BMCR_RESET)) in tc35815_restart()
1276 phy_start(lp->phy_dev); in tc35815_open()
1856 if (lp->phy_dev) in tc35815_close()
1857 phy_stop(lp->phy_dev); in tc35815_close()
[all …]
/drivers/net/ethernet/marvell/
Dmvneta.c253 struct phy_device *phy_dev; member
2151 phy_start(pp->phy_dev); in mvneta_start_dev()
2157 phy_stop(pp->phy_dev); in mvneta_stop_dev()
2280 struct phy_device *phydev = pp->phy_dev; in mvneta_adjust_link()
2335 struct phy_device *phy_dev; in mvneta_mdio_probe() local
2337 phy_dev = of_phy_connect(pp->dev, pp->phy_node, mvneta_adjust_link, 0, in mvneta_mdio_probe()
2339 if (!phy_dev) { in mvneta_mdio_probe()
2344 phy_dev->supported &= PHY_GBIT_FEATURES; in mvneta_mdio_probe()
2345 phy_dev->advertising = phy_dev->supported; in mvneta_mdio_probe()
2347 pp->phy_dev = phy_dev; in mvneta_mdio_probe()
[all …]
/drivers/net/ethernet/cadence/
Dmacb.c207 struct phy_device *phydev = bp->phy_dev; in macb_handle_link_change()
308 bp->phy_dev = phydev; in macb_mii_probe()
1244 if (!bp->phy_dev) in macb_open()
1260 phy_start(bp->phy_dev); in macb_open()
1275 if (bp->phy_dev) in macb_close()
1276 phy_stop(bp->phy_dev); in macb_close()
1387 struct phy_device *phydev = bp->phy_dev; in macb_get_settings()
1398 struct phy_device *phydev = bp->phy_dev; in macb_set_settings()
1457 struct phy_device *phydev = bp->phy_dev; in macb_ioctl()
1631 phydev = bp->phy_dev; in macb_probe()
[all …]
Dat91_ether.c117 phy_start(lp->phy_dev); in at91ether_open()
404 phydev = lp->phy_dev; in at91ether_probe()
429 if (lp->phy_dev) in at91ether_remove()
430 phy_disconnect(lp->phy_dev); in at91ether_remove()
Dmacb.h577 struct phy_device *phy_dev; member
/drivers/net/ethernet/nxp/
Dlpc_eth.c429 struct phy_device *phy_dev; member
755 struct phy_device *phydev = pldat->phy_dev; in lpc_handle_link_change()
819 pldat->phy_dev = phydev; in lpc_mii_probe()
1066 if (pldat->phy_dev) in lpc_eth_close()
1067 phy_stop(pldat->phy_dev); in lpc_eth_close()
1204 struct phy_device *phydev = pldat->phy_dev; in lpc_eth_ioctl()
1229 phy_start(pldat->phy_dev); in lpc_eth_open()
1266 struct phy_device *phydev = pldat->phy_dev; in lpc_eth_ethtool_getsettings()
1278 struct phy_device *phydev = pldat->phy_dev; in lpc_eth_ethtool_setsettings()
1478 phydev = pldat->phy_dev; in lpc_eth_drv_probe()