/linux-4.4.14/drivers/phy/ |
D | phy-stih407-usb.c | 46 static int stih407_usb2_pico_ctrl(struct stih407_usb2_picophy *phy_dev) in stih407_usb2_pico_ctrl() argument 48 reset_control_deassert(phy_dev->rstc); in stih407_usb2_pico_ctrl() 50 return regmap_update_bits(phy_dev->regmap, phy_dev->ctrl, in stih407_usb2_pico_ctrl() 58 struct stih407_usb2_picophy *phy_dev = phy_get_drvdata(phy); in stih407_usb2_init_port() local 60 stih407_usb2_pico_ctrl(phy_dev); in stih407_usb2_init_port() 62 ret = regmap_update_bits(phy_dev->regmap, in stih407_usb2_init_port() 63 phy_dev->param, in stih407_usb2_init_port() 69 return reset_control_deassert(phy_dev->rstport); in stih407_usb2_init_port() 74 struct stih407_usb2_picophy *phy_dev = phy_get_drvdata(phy); in stih407_usb2_exit_port() local 83 return reset_control_assert(phy_dev->rstport); in stih407_usb2_exit_port() [all …]
|
D | phy-stih41x-usb.c | 73 struct stih41x_usb_phy *phy_dev = phy_get_drvdata(phy); in stih41x_usb_phy_init() local 75 return regmap_update_bits(phy_dev->regmap, phy_dev->cfg->syscfg, in stih41x_usb_phy_init() 76 phy_dev->cfg->cfg_mask, phy_dev->cfg->cfg); in stih41x_usb_phy_init() 81 struct stih41x_usb_phy *phy_dev = phy_get_drvdata(phy); in stih41x_usb_phy_power_on() local 84 ret = clk_prepare_enable(phy_dev->clk); in stih41x_usb_phy_power_on() 86 dev_err(phy_dev->dev, "Failed to enable osc_phy clock\n"); in stih41x_usb_phy_power_on() 90 ret = regmap_update_bits(phy_dev->regmap, phy_dev->cfg->syscfg, in stih41x_usb_phy_power_on() 91 phy_dev->cfg->oscok, phy_dev->cfg->oscok); in stih41x_usb_phy_power_on() 93 clk_disable_unprepare(phy_dev->clk); in stih41x_usb_phy_power_on() 100 struct stih41x_usb_phy *phy_dev = phy_get_drvdata(phy); in stih41x_usb_phy_power_off() local [all …]
|
/linux-4.4.14/drivers/net/ethernet/hisilicon/hns/ |
D | hns_ethtool.c | 73 struct phy_device *phy_dev = priv->phy; in hns_get_mdix_mode() local 75 if (!phy_dev || !phy_dev->bus) { in hns_get_mdix_mode() 81 (void)mdiobus_write(phy_dev->bus, phy_dev->addr, HNS_PHY_PAGE_REG, in hns_get_mdix_mode() 84 retval = mdiobus_read(phy_dev->bus, phy_dev->addr, HNS_PHY_CSC_REG); in hns_get_mdix_mode() 87 retval = mdiobus_read(phy_dev->bus, phy_dev->addr, HNS_PHY_CSS_REG); in hns_get_mdix_mode() 91 (void)mdiobus_write(phy_dev->bus, phy_dev->addr, HNS_PHY_PAGE_REG, in hns_get_mdix_mode() 246 static int hns_nic_config_phy_loopback(struct phy_device *phy_dev, u8 en) in hns_nic_config_phy_loopback() argument 252 if (phy_dev->is_c45) /* c45 branch adding for XGE PHY */ in hns_nic_config_phy_loopback() 257 (void)mdiobus_write(phy_dev->bus, phy_dev->addr, in hns_nic_config_phy_loopback() 259 (void)mdiobus_write(phy_dev->bus, phy_dev->addr, in hns_nic_config_phy_loopback() [all …]
|
D | hns_enet.c | 756 struct phy_device *phy_dev = NULL; in hns_nic_init_phy() local 762 phy_dev = of_phy_connect(ndev, h->phy_node, in hns_nic_init_phy() 765 phy_dev = of_phy_attach(ndev, h->phy_node, 0, h->phy_if); in hns_nic_init_phy() 767 if (unlikely(!phy_dev) || IS_ERR(phy_dev)) in hns_nic_init_phy() 768 return !phy_dev ? -ENODEV : PTR_ERR(phy_dev); in hns_nic_init_phy() 770 phy_dev->supported &= h->if_support; in hns_nic_init_phy() 771 phy_dev->advertising = phy_dev->supported; in hns_nic_init_phy() 774 phy_dev->autoneg = false; in hns_nic_init_phy() 776 priv->phy = phy_dev; in hns_nic_init_phy() 1062 struct phy_device *phy_dev = priv->phy; in hns_nic_do_ioctl() local [all …]
|
/linux-4.4.14/drivers/net/ipvlan/ |
D | ipvlan_main.c | 115 const struct net_device *phy_dev = ipvlan->phy_dev; in ipvlan_init() local 118 (phy_dev->state & IPVLAN_STATE_MASK); in ipvlan_init() 119 dev->features = phy_dev->features & IPVLAN_FEATURES; in ipvlan_init() 121 dev->gso_max_size = phy_dev->gso_max_size; in ipvlan_init() 122 dev->hard_header_len = phy_dev->hard_header_len; in ipvlan_init() 148 struct net_device *phy_dev = ipvlan->phy_dev; in ipvlan_open() local 159 return dev_uc_add(phy_dev, phy_dev->dev_addr); in ipvlan_open() 165 struct net_device *phy_dev = ipvlan->phy_dev; in ipvlan_stop() local 168 dev_uc_unsync(phy_dev, dev); in ipvlan_stop() 169 dev_mc_unsync(phy_dev, dev); in ipvlan_stop() [all …]
|
D | ipvlan_core.c | 494 skb->dev = ipvlan->phy_dev; in ipvlan_xmit_mode_l3() 522 return dev_forward_skb(ipvlan->phy_dev, skb); in ipvlan_xmit_mode_l2() 529 skb->dev = ipvlan->phy_dev; in ipvlan_xmit_mode_l2() 536 struct ipvl_port *port = ipvlan_port_get_rcu_bh(ipvlan->phy_dev); in ipvlan_queue_xmit()
|
D | ipvlan.h | 68 struct net_device *phy_dev; member
|
/linux-4.4.14/drivers/staging/gdm724x/ |
D | gdm_lte.c | 479 ret = nic->phy_dev->send_sdu_func(nic->phy_dev->priv_dev, in gdm_lte_tx() 527 nic->phy_dev->get_endian( in gdm_lte_event_send() 528 nic->phy_dev->priv_dev), hci->len) in gdm_lte_event_send() 537 nic->phy_dev->send_hci_func(nic->phy_dev->priv_dev, msg, len, NULL, in gdm_lte_event_rcv() 686 static void gdm_lte_multi_sdu_pkt(struct phy_dev *phy_dev, char *buf, int len) in gdm_lte_multi_sdu_pkt() argument 699 hci_len = gdm_dev16_to_cpu(phy_dev->get_endian(phy_dev->priv_dev), in gdm_lte_multi_sdu_pkt() 701 num_packet = gdm_dev16_to_cpu(phy_dev->get_endian(phy_dev->priv_dev), in gdm_lte_multi_sdu_pkt() 707 cmd_evt = gdm_dev16_to_cpu(phy_dev-> in gdm_lte_multi_sdu_pkt() 708 get_endian(phy_dev->priv_dev), sdu->cmd_evt); in gdm_lte_multi_sdu_pkt() 709 hci_len = gdm_dev16_to_cpu(phy_dev-> in gdm_lte_multi_sdu_pkt() [all …]
|
D | gdm_lte.h | 46 struct phy_dev { struct 64 struct phy_dev *phy_dev; argument 76 void start_rx_proc(struct phy_dev *phy_dev); 77 int register_lte_device(struct phy_dev *phy_dev, struct device *dev, 79 void unregister_lte_device(struct phy_dev *phy_dev);
|
D | gdm_usb.c | 370 struct phy_dev *phy_dev = arg; in set_mac_address() local 371 struct lte_udev *udev = phy_dev->priv_dev; in set_mac_address() 378 if (register_lte_device(phy_dev, in set_mac_address() 397 struct phy_dev *phy_dev; in do_rx() local 413 phy_dev = r->cb_data; in do_rx() 414 udev = phy_dev->priv_dev; in do_rx() 816 struct phy_dev *phy_dev = NULL; in gdm_usb_probe() local 833 phy_dev = kzalloc(sizeof(*phy_dev), GFP_KERNEL); in gdm_usb_probe() 834 if (!phy_dev) in gdm_usb_probe() 843 phy_dev->priv_dev = (void *)udev; in gdm_usb_probe() [all …]
|
/linux-4.4.14/drivers/staging/gdm72xx/ |
D | gdm_wimax.h | 26 struct phy_dev { struct 38 struct phy_dev *phy_dev; argument 45 int register_wimax_device(struct phy_dev *phy_dev, struct device *pdev); 47 void unregister_wimax_device(struct phy_dev *phy_dev);
|
D | gdm_usb.c | 529 struct phy_dev *phy_dev = NULL; in gdm_usb_probe() local 560 phy_dev = kzalloc(sizeof(*phy_dev), GFP_KERNEL); in gdm_usb_probe() 561 if (!phy_dev) { in gdm_usb_probe() 576 phy_dev->priv_dev = (void *)udev; in gdm_usb_probe() 577 phy_dev->send_func = gdm_usb_send; in gdm_usb_probe() 578 phy_dev->rcv_func = gdm_usb_receive; in gdm_usb_probe() 597 ret = register_wimax_device(phy_dev, &intf->dev); in gdm_usb_probe() 603 kfree(phy_dev); in gdm_usb_probe() 607 usb_set_intfdata(intf, phy_dev); in gdm_usb_probe() 615 struct phy_dev *phy_dev; in gdm_usb_disconnect() local [all …]
|
D | gdm_sdio.c | 474 struct phy_dev *phy_dev = sdio_get_drvdata(func); in gdm_sdio_irq() local 475 struct sdiowm_dev *sdev = phy_dev->priv_dev; in gdm_sdio_irq() 569 if (!phy_dev->netdev) in gdm_sdio_irq() 570 register_wimax_device(phy_dev, &func->dev); in gdm_sdio_irq() 602 struct phy_dev *phy_dev = NULL; in sdio_wimax_probe() local 617 phy_dev = kzalloc(sizeof(*phy_dev), GFP_KERNEL); in sdio_wimax_probe() 618 if (!phy_dev) { in sdio_wimax_probe() 628 phy_dev->priv_dev = (void *)sdev; in sdio_wimax_probe() 629 phy_dev->send_func = gdm_sdio_send; in sdio_wimax_probe() 630 phy_dev->rcv_func = gdm_sdio_receive; in sdio_wimax_probe() [all …]
|
D | gdm_wimax.c | 29 (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) 743 int register_wimax_device(struct phy_dev *phy_dev, struct device *pdev) in register_wimax_device() argument 765 nic->phy_dev = phy_dev; in register_wimax_device() 766 phy_dev->netdev = dev; in register_wimax_device() 798 void unregister_wimax_device(struct phy_dev *phy_dev) in unregister_wimax_device() argument 800 struct nic *nic = netdev_priv(phy_dev->netdev); in unregister_wimax_device() 813 gdm_wimax_cleanup_ioctl(phy_dev->netdev); in unregister_wimax_device()
|
/linux-4.4.14/drivers/net/ethernet/8390/ |
D | ax88796.c | 87 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 …]
|
/linux-4.4.14/drivers/net/ethernet/arc/ |
D | emac_main.c | 51 struct phy_device *phy_dev = priv->phy_dev; in arc_emac_adjust_link() local 54 if (priv->link != phy_dev->link) { in arc_emac_adjust_link() 55 priv->link = phy_dev->link; in arc_emac_adjust_link() 59 if (priv->speed != phy_dev->speed) { in arc_emac_adjust_link() 60 priv->speed = phy_dev->speed; in arc_emac_adjust_link() 66 if (priv->duplex != phy_dev->duplex) { in arc_emac_adjust_link() 69 if (DUPLEX_FULL == phy_dev->duplex) in arc_emac_adjust_link() 75 priv->duplex = phy_dev->duplex; in arc_emac_adjust_link() 80 phy_print_status(phy_dev); in arc_emac_adjust_link() 98 return phy_ethtool_gset(priv->phy_dev, cmd); in arc_emac_get_settings() [all …]
|
D | emac.h | 132 struct phy_device *phy_dev; member
|
/linux-4.4.14/drivers/net/ethernet/broadcom/ |
D | sb1250-mac.c | 239 struct phy_device *phy_dev; /* the associated PHY device */ member 2345 phy_start(sc->phy_dev); in sbmac_open() 2360 struct phy_device *phy_dev; in sbmac_mii_probe() local 2364 phy_dev = sc->mii_bus->phy_map[i]; in sbmac_mii_probe() 2365 if (phy_dev) in sbmac_mii_probe() 2368 if (!phy_dev) { in sbmac_mii_probe() 2373 phy_dev = phy_connect(dev, dev_name(&phy_dev->dev), &sbmac_mii_poll, in sbmac_mii_probe() 2375 if (IS_ERR(phy_dev)) { in sbmac_mii_probe() 2377 return PTR_ERR(phy_dev); in sbmac_mii_probe() 2381 phy_dev->supported &= SUPPORTED_10baseT_Half | in sbmac_mii_probe() [all …]
|
D | bgmac.c | 1300 phy_start(bgmac->phy_dev); in bgmac_open() 1312 phy_stop(bgmac->phy_dev); in bgmac_stop() 1355 return phy_mii_ioctl(bgmac->phy_dev, ifr, cmd); in bgmac_ioctl() 1377 return phy_ethtool_gset(bgmac->phy_dev, cmd); in bgmac_get_settings() 1385 return phy_ethtool_sset(bgmac->phy_dev, cmd); in bgmac_set_settings() 1419 struct phy_device *phy_dev = bgmac->phy_dev; in bgmac_adjust_link() local 1422 if (phy_dev->link) { in bgmac_adjust_link() 1423 if (phy_dev->speed != bgmac->mac_speed) { in bgmac_adjust_link() 1424 bgmac->mac_speed = phy_dev->speed; in bgmac_adjust_link() 1428 if (phy_dev->duplex != bgmac->mac_duplex) { in bgmac_adjust_link() [all …]
|
D | bgmac.h | 444 struct phy_device *phy_dev; member
|
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-main.c | 340 struct device *dev = &pdev->dev, *phy_dev; in xgbe_probe() local 383 phy_dev = &phy_pdev->dev; in xgbe_probe() 496 ret = device_property_read_u32(phy_dev, XGBE_SPEEDSET_PROPERTY, in xgbe_probe() 514 if (device_property_present(phy_dev, XGBE_BLWC_PROPERTY)) { in xgbe_probe() 515 ret = device_property_read_u32_array(phy_dev, in xgbe_probe() 529 if (device_property_present(phy_dev, XGBE_CDR_RATE_PROPERTY)) { in xgbe_probe() 530 ret = device_property_read_u32_array(phy_dev, in xgbe_probe() 544 if (device_property_present(phy_dev, XGBE_PQ_SKEW_PROPERTY)) { in xgbe_probe() 545 ret = device_property_read_u32_array(phy_dev, in xgbe_probe() 559 if (device_property_present(phy_dev, XGBE_TX_AMP_PROPERTY)) { in xgbe_probe() [all …]
|
/linux-4.4.14/drivers/net/ethernet/xilinx/ |
D | xilinx_emaclite.c | 134 struct phy_device *phy_dev; member 882 struct phy_device *phy = lp->phy_dev; in xemaclite_adjust_link() 913 lp->phy_dev = of_phy_connect(lp->ndev, lp->phy_node, in xemaclite_open() 916 if (!lp->phy_dev) { in xemaclite_open() 922 lp->phy_dev->supported &= (PHY_BASIC_FEATURES); in xemaclite_open() 923 lp->phy_dev->advertising = lp->phy_dev->supported; in xemaclite_open() 926 phy_write(lp->phy_dev, MII_CTRL1000, 0); in xemaclite_open() 929 phy_write(lp->phy_dev, MII_ADVERTISE, ADVERTISE_ALL | in xemaclite_open() 933 bmcr = phy_read(lp->phy_dev, MII_BMCR); in xemaclite_open() 935 phy_write(lp->phy_dev, MII_BMCR, bmcr); in xemaclite_open() [all …]
|
D | ll_temac_main.c | 593 struct phy_device *phy = lp->phy_dev; in temac_adjust_link() 851 lp->phy_dev = of_phy_connect(lp->ndev, lp->phy_node, in temac_open() 853 if (!lp->phy_dev) { in temac_open() 858 phy_start(lp->phy_dev); in temac_open() 875 if (lp->phy_dev) in temac_open() 876 phy_disconnect(lp->phy_dev); in temac_open() 877 lp->phy_dev = NULL; in temac_open() 891 if (lp->phy_dev) in temac_stop() 892 phy_disconnect(lp->phy_dev); in temac_stop() 893 lp->phy_dev = NULL; in temac_stop() [all …]
|
D | xilinx_axienet_main.c | 528 struct phy_device *phy = lp->phy_dev; in axienet_adjust_link() 937 lp->phy_dev = of_phy_connect(lp->ndev, lp->phy_node, in axienet_open() 941 lp->phy_dev = of_phy_connect(lp->ndev, lp->phy_node, in axienet_open() 946 if (!lp->phy_dev) in axienet_open() 949 phy_start(lp->phy_dev); in axienet_open() 970 if (lp->phy_dev) in axienet_open() 971 phy_disconnect(lp->phy_dev); in axienet_open() 972 lp->phy_dev = NULL; in axienet_open() 1009 if (lp->phy_dev) in axienet_stop() 1010 phy_disconnect(lp->phy_dev); in axienet_stop() [all …]
|
D | ll_temac.h | 335 struct phy_device *phy_dev; /* Pointer to PHY device */ member
|
D | xilinx_axienet.h | 424 struct phy_device *phy_dev; /* Pointer to PHY device */ member
|
/linux-4.4.14/drivers/net/ethernet/smsc/ |
D | smsc911x.c | 117 struct phy_device *phy_dev; member 837 struct phy_device *phy_dev = pdata->phy_dev; in smsc911x_phy_loopbacktest() local 867 smsc911x_mii_write(phy_dev->bus, phy_dev->addr, MII_BMCR, in smsc911x_phy_loopbacktest() 896 smsc911x_mii_write(phy_dev->bus, phy_dev->addr, MII_BMCR, 0); in smsc911x_phy_loopbacktest() 907 struct phy_device *phy_dev = pdata->phy_dev; in smsc911x_phy_update_flowcontrol() local 912 if (phy_dev->duplex == DUPLEX_FULL) { in smsc911x_phy_update_flowcontrol() 913 u16 lcladv = phy_read(phy_dev, MII_ADVERTISE); in smsc911x_phy_update_flowcontrol() 914 u16 rmtadv = phy_read(phy_dev, MII_LPA); in smsc911x_phy_update_flowcontrol() 948 struct phy_device *phy_dev = pdata->phy_dev; in smsc911x_phy_adjust_link() local 952 if (phy_dev->duplex != pdata->last_duplex) { in smsc911x_phy_adjust_link() [all …]
|
D | smsc9420.c | 79 struct phy_device *phy_dev; member 232 if (!netif_running(dev) || !pd->phy_dev) in smsc9420_do_ioctl() 235 return phy_mii_ioctl(pd->phy_dev, ifr, cmd); in smsc9420_do_ioctl() 243 if (!pd->phy_dev) in smsc9420_ethtool_get_settings() 248 return phy_ethtool_gset(pd->phy_dev, cmd); in smsc9420_ethtool_get_settings() 256 if (!pd->phy_dev) in smsc9420_ethtool_set_settings() 259 return phy_ethtool_sset(pd->phy_dev, cmd); in smsc9420_ethtool_set_settings() 289 if (!pd->phy_dev) in smsc9420_ethtool_nway_reset() 292 return phy_start_aneg(pd->phy_dev); in smsc9420_ethtool_nway_reset() 306 struct phy_device *phy_dev = pd->phy_dev; in smsc9420_ethtool_getregs() local [all …]
|
/linux-4.4.14/drivers/net/ethernet/apm/xgene/ |
D | xgene_enet_hw.c | 713 struct phy_device *phydev = pdata->phy_dev; in xgene_enet_adjust_link() 735 struct phy_device *phy_dev; in xgene_enet_phy_connect() local 745 phy_dev = of_phy_connect(ndev, phy_np, &xgene_enet_adjust_link, in xgene_enet_phy_connect() 747 if (!phy_dev) { in xgene_enet_phy_connect() 752 pdata->phy_dev = phy_dev; in xgene_enet_phy_connect() 754 phy_dev = pdata->phy_dev; in xgene_enet_phy_connect() 756 if (!phy_dev || in xgene_enet_phy_connect() 757 phy_connect_direct(ndev, phy_dev, &xgene_enet_adjust_link, in xgene_enet_phy_connect() 765 phy_dev->supported &= ~SUPPORTED_10baseT_Half & in xgene_enet_phy_connect() 768 phy_dev->advertising = phy_dev->supported; in xgene_enet_phy_connect() [all …]
|
D | xgene_enet_ethtool.c | 60 struct phy_device *phydev = pdata->phy_dev; in xgene_get_settings() 92 struct phy_device *phydev = pdata->phy_dev; in xgene_set_settings()
|
D | xgene_enet_main.h | 151 struct phy_device *phy_dev; member
|
D | xgene_enet_main.c | 705 phy_start(pdata->phy_dev); in xgene_enet_open() 722 phy_stop(pdata->phy_dev); in xgene_enet_close()
|
/linux-4.4.14/drivers/net/ethernet/freescale/ |
D | fec_main.c | 1008 if (fep->phy_dev) { in fec_restart() 1009 if (fep->phy_dev->speed == SPEED_1000) in fec_restart() 1011 else if (fep->phy_dev->speed == SPEED_100) in fec_restart() 1032 if (fep->phy_dev && fep->phy_dev->speed == SPEED_10) in fec_restart() 1046 fep->phy_dev && fep->phy_dev->pause)) { in fec_restart() 1724 struct phy_device *phy_dev = fep->phy_dev; in fec_enet_adjust_link() local 1728 if (fep->mii_timeout && phy_dev->state == PHY_HALTED) { in fec_enet_adjust_link() 1729 phy_dev->state = PHY_RESUMING; in fec_enet_adjust_link() 1740 } else if (phy_dev->link) { in fec_enet_adjust_link() 1742 fep->link = phy_dev->link; in fec_enet_adjust_link() [all …]
|
D | fec.h | 508 struct phy_device *phy_dev; member
|
/linux-4.4.14/drivers/net/ethernet/allwinner/ |
D | sun4i-emac.c | 80 struct phy_device *phy_dev; member 118 struct phy_device *phydev = db->phy_dev; in emac_handle_link_change() 161 db->phy_dev = of_phy_connect(db->ndev, db->phy_node, in emac_mdio_probe() 164 if (!db->phy_dev) { in emac_mdio_probe() 170 db->phy_dev->supported &= PHY_BASIC_FEATURES; in emac_mdio_probe() 171 db->phy_dev->advertising = db->phy_dev->supported; in emac_mdio_probe() 184 phy_disconnect(db->phy_dev); in emac_mdio_remove() 185 db->phy_dev = NULL; in emac_mdio_remove() 212 struct phy_device *phydev = dm->phy_dev; in emac_ioctl() 235 struct phy_device *phydev = dm->phy_dev; in emac_get_settings() [all …]
|
/linux-4.4.14/drivers/net/ethernet/amd/ |
D | au1000_eth.c | 418 struct phy_device *phydev = aup->phy_dev; in au1000_adjust_link() 424 BUG_ON(!aup->phy_dev); in au1000_adjust_link() 584 aup->phy_dev = phydev; in au1000_mii_probe() 689 if (aup->phy_dev) in au1000_get_settings() 690 return phy_ethtool_gset(aup->phy_dev, cmd); in au1000_get_settings() 702 if (aup->phy_dev) in au1000_set_settings() 703 return phy_ethtool_sset(aup->phy_dev, cmd); in au1000_set_settings() 785 if (aup->phy_dev) { in au1000_init() 786 if (aup->phy_dev->link && (DUPLEX_FULL == aup->phy_dev->duplex)) in au1000_init() 902 if (!aup->phy_dev || (DUPLEX_FULL == aup->phy_dev->duplex)) { in au1000_update_tx_stats() [all …]
|
D | au1000_eth.h | 109 struct phy_device *phy_dev; member
|
/linux-4.4.14/drivers/net/ethernet/ |
D | dnet.c | 176 struct phy_device *phydev = bp->phy_dev; in dnet_handle_link_change() 304 bp->phy_dev = phydev; in dnet_mii_probe() 648 if (!bp->phy_dev) in dnet_open() 654 phy_start_aneg(bp->phy_dev); in dnet_open() 657 phy_start(bp->phy_dev); in dnet_open() 671 if (bp->phy_dev) in dnet_close() 672 phy_stop(bp->phy_dev); in dnet_close() 753 struct phy_device *phydev = bp->phy_dev; in dnet_get_settings() 764 struct phy_device *phydev = bp->phy_dev; in dnet_set_settings() 775 struct phy_device *phydev = bp->phy_dev; in dnet_ioctl() [all …]
|
D | dnet.h | 219 struct phy_device *phy_dev; member
|
/linux-4.4.14/drivers/gpu/drm/msm/dsi/ |
D | dsi.c | 49 msm_dsi->phy_dev = get_device(&phy_pdev->dev); in dsi_get_phy() 61 if (msm_dsi->phy_dev) { in dsi_destroy() 62 put_device(msm_dsi->phy_dev); in dsi_destroy() 64 msm_dsi->phy_dev = NULL; in dsi_destroy()
|
D | dsi.h | 73 struct device *phy_dev; member
|
/linux-4.4.14/drivers/net/ethernet/toshiba/ |
D | tc35815.c | 408 struct phy_device *phy_dev; member 542 struct phy_device *phydev = lp->phy_dev; in tc_handle_link_change() 663 lp->phy_dev = phydev; in tc_mii_probe() 883 phy_disconnect(lp->phy_dev); in tc35815_remove_one() 1174 if (lp->phy_dev) { in tc35815_restart() 1175 ret = phy_init_hw(lp->phy_dev); in tc35815_restart() 1267 phy_start(lp->phy_dev); in tc35815_open() 1850 if (lp->phy_dev) in tc35815_close() 1851 phy_stop(lp->phy_dev); in tc35815_close() 1981 if (!lp->phy_dev) in tc35815_get_settings() [all …]
|
/linux-4.4.14/drivers/net/ethernet/nxp/ |
D | lpc_eth.c | 428 struct phy_device *phy_dev; member 753 struct phy_device *phydev = pldat->phy_dev; in lpc_handle_link_change() 817 pldat->phy_dev = phydev; in lpc_mii_probe() 1064 if (pldat->phy_dev) in lpc_eth_close() 1065 phy_stop(pldat->phy_dev); in lpc_eth_close() 1202 struct phy_device *phydev = pldat->phy_dev; in lpc_eth_ioctl() 1223 phy_resume(pldat->phy_dev); in lpc_eth_open() 1230 phy_start(pldat->phy_dev); in lpc_eth_open() 1267 struct phy_device *phydev = pldat->phy_dev; in lpc_eth_ethtool_getsettings() 1279 struct phy_device *phydev = pldat->phy_dev; in lpc_eth_ethtool_setsettings() [all …]
|
/linux-4.4.14/drivers/net/ethernet/synopsys/ |
D | dwc_eth_qos.c | 601 struct phy_device *phy_dev; member 814 struct phy_device *phydev = lp->phy_dev; in dwceqos_ioctl() 858 lp->eee_active = !phy_init_eee(lp->phy_dev, 0); in dwceqos_link_up() 874 struct phy_device *phydev = lp->phy_dev; in dwceqos_set_speed() 901 struct phy_device *phydev = lp->phy_dev; in dwceqos_adjust_link() 984 lp->phy_dev = phydev; in dwceqos_mii_probe() 988 lp->phy_dev->addr, lp->phy_dev->phy_id); in dwceqos_mii_probe() 991 lp->phy_dev->drv->name); in dwceqos_mii_probe() 1904 phy_start(lp->phy_dev); in dwceqos_open() 1938 phy_stop(lp->phy_dev); in dwceqos_stop() [all …]
|
/linux-4.4.14/drivers/net/ethernet/marvell/ |
D | mvneta.c | 367 struct phy_device *phy_dev; member 2175 mvneta_fixed_link_update(pp, pp->phy_dev); in mvneta_poll() 2465 phy_start(pp->phy_dev); in mvneta_start_dev() 2473 phy_stop(pp->phy_dev); in mvneta_stop_dev() 2627 struct phy_device *phydev = pp->phy_dev; in mvneta_adjust_link() 2693 struct phy_device *phy_dev; in mvneta_mdio_probe() local 2695 phy_dev = of_phy_connect(pp->dev, pp->phy_node, mvneta_adjust_link, 0, in mvneta_mdio_probe() 2697 if (!phy_dev) { in mvneta_mdio_probe() 2702 phy_dev->supported &= PHY_GBIT_FEATURES; in mvneta_mdio_probe() 2703 phy_dev->advertising = phy_dev->supported; in mvneta_mdio_probe() [all …]
|
D | mvpp2.c | 703 struct phy_device *phy_dev; member 4865 struct phy_device *phydev = port->phy_dev; in mvpp2_link_event() 5440 phy_start(port->phy_dev); in mvpp2_start_dev() 5462 phy_stop(port->phy_dev); in mvpp2_stop_dev() 5539 struct phy_device *phy_dev; in mvpp2_phy_connect() local 5541 phy_dev = of_phy_connect(port->dev, port->phy_node, mvpp2_link_event, 0, in mvpp2_phy_connect() 5543 if (!phy_dev) { in mvpp2_phy_connect() 5547 phy_dev->supported &= PHY_GBIT_FEATURES; in mvpp2_phy_connect() 5548 phy_dev->advertising = phy_dev->supported; in mvpp2_phy_connect() 5550 port->phy_dev = phy_dev; in mvpp2_phy_connect() [all …]
|
/linux-4.4.14/drivers/net/ethernet/cadence/ |
D | macb.c | 304 struct phy_device *phydev = bp->phy_dev; in macb_handle_link_change() 413 bp->phy_dev = phydev; in macb_mii_probe() 1865 if (!bp->phy_dev) in macb_open() 1884 phy_start(bp->phy_dev); in macb_open() 1899 if (bp->phy_dev) in macb_close() 1900 phy_stop(bp->phy_dev); in macb_close() 2074 struct phy_device *phydev = bp->phy_dev; in macb_get_settings() 2085 struct phy_device *phydev = bp->phy_dev; in macb_set_settings() 2155 struct phy_device *phydev = bp->phy_dev; in macb_ioctl() 2512 phy_start(lp->phy_dev); in at91ether_open() [all …]
|
D | macb.h | 823 struct phy_device *phy_dev; member
|
/linux-4.4.14/drivers/net/ethernet/ti/ |
D | cpsw.c | 2040 struct phy_device *phy_dev; in cpsw_probe_dt() local 2049 phy_dev = of_phy_find_device(phy_node); in cpsw_probe_dt() 2050 if (!phy_dev) in cpsw_probe_dt() 2053 PHY_ID_FMT, phy_dev->bus->id, phy_dev->addr); in cpsw_probe_dt()
|