/openbmc/linux/drivers/phy/st/ |
H A D | phy-stih407-usb.c | 42 static int stih407_usb2_pico_ctrl(struct stih407_usb2_picophy *phy_dev) in stih407_usb2_pico_ctrl() argument 44 reset_control_deassert(phy_dev->rstc); in stih407_usb2_pico_ctrl() 46 return regmap_update_bits(phy_dev->regmap, phy_dev->ctrl, in stih407_usb2_pico_ctrl() 54 struct stih407_usb2_picophy *phy_dev = phy_get_drvdata(phy); in stih407_usb2_init_port() local 56 stih407_usb2_pico_ctrl(phy_dev); in stih407_usb2_init_port() 58 ret = regmap_update_bits(phy_dev->regmap, in stih407_usb2_init_port() 59 phy_dev->param, in stih407_usb2_init_port() 65 return reset_control_deassert(phy_dev->rstport); in stih407_usb2_init_port() 70 struct stih407_usb2_picophy *phy_dev = phy_get_drvdata(phy); in stih407_usb2_exit_port() local 79 return reset_control_assert(phy_dev->rstport); in stih407_usb2_exit_port() [all …]
|
/openbmc/linux/drivers/net/ipvlan/ |
H A D | ipvlan_main.c | 133 struct net_device *phy_dev = ipvlan->phy_dev; in ipvlan_init() local 138 (phy_dev->state & IPVLAN_STATE_MASK); in ipvlan_init() 139 dev->features = phy_dev->features & IPVLAN_FEATURES; in ipvlan_init() 141 dev->vlan_features = phy_dev->vlan_features & IPVLAN_FEATURES; in ipvlan_init() 144 netif_inherit_tso_max(dev, phy_dev); in ipvlan_init() 145 dev->hard_header_len = phy_dev->hard_header_len; in ipvlan_init() 153 if (!netif_is_ipvlan_port(phy_dev)) { in ipvlan_init() 154 err = ipvlan_port_create(phy_dev); in ipvlan_init() 160 port = ipvlan_port_get_rtnl(phy_dev); in ipvlan_init() 168 struct net_device *phy_dev = ipvlan->phy_dev; in ipvlan_uninit() local [all …]
|
/openbmc/linux/drivers/staging/gdm724x/ |
H A D | gdm_lte.h | 36 struct phy_dev { struct 54 struct phy_dev *phy_dev; argument 66 void start_rx_proc(struct phy_dev *phy_dev); 67 int register_lte_device(struct phy_dev *phy_dev, struct device *dev, 69 void unregister_lte_device(struct phy_dev *phy_dev);
|
H A D | gdm_lte.c | 467 ret = nic->phy_dev->send_sdu_func(nic->phy_dev->priv_dev, in gdm_lte_tx() 504 struct phy_dev *phy_dev = ((struct nic *)netdev_priv(dev))->phy_dev; in gdm_lte_event_send() local 514 length = gdm_dev16_to_cpu(phy_dev->get_endian(phy_dev->priv_dev), in gdm_lte_event_send() 524 nic->phy_dev->send_hci_func(nic->phy_dev->priv_dev, msg, len, NULL, in gdm_lte_event_rcv() 675 static void gdm_lte_multi_sdu_pkt(struct phy_dev *phy_dev, char *buf, int len) in gdm_lte_multi_sdu_pkt() argument 680 u8 endian = phy_dev->get_endian(phy_dev->priv_dev); in gdm_lte_multi_sdu_pkt() 720 dev = phy_dev->dev[index]; in gdm_lte_multi_sdu_pkt() 732 u8 ed = nic->phy_dev->get_endian(nic->phy_dev->priv_dev); in gdm_lte_pdn_table() 749 static int gdm_lte_receive_pkt(struct phy_dev *phy_dev, char *buf, int len) in gdm_lte_receive_pkt() argument 755 u8 endian = phy_dev->get_endian(phy_dev->priv_dev); in gdm_lte_receive_pkt() [all …]
|
H A D | gdm_usb.c | 361 struct phy_dev *phy_dev = arg; in set_mac_address() local 362 struct lte_udev *udev = phy_dev->priv_dev; in set_mac_address() 369 if (register_lte_device(phy_dev, in set_mac_address() 388 struct phy_dev *phy_dev; in do_rx() local 404 phy_dev = r->cb_data; in do_rx() 405 udev = phy_dev->priv_dev; in do_rx() 807 struct phy_dev *phy_dev = NULL; in gdm_usb_probe() local 824 phy_dev = kzalloc(sizeof(*phy_dev), GFP_KERNEL); in gdm_usb_probe() 825 if (!phy_dev) in gdm_usb_probe() 834 phy_dev->priv_dev = (void *)udev; in gdm_usb_probe() [all …]
|
/openbmc/linux/drivers/net/phy/ |
H A D | xilinx_gmii2rgmii.c | 24 struct phy_device *phy_dev; member 99 priv->phy_dev = of_phy_find_device(phy_node); in xgmiitorgmii_probe() 101 if (!priv->phy_dev) { in xgmiitorgmii_probe() 106 if (!priv->phy_dev->drv) { in xgmiitorgmii_probe() 108 put_device(&priv->phy_dev->mdio.dev); in xgmiitorgmii_probe() 113 priv->phy_drv = priv->phy_dev->drv; in xgmiitorgmii_probe() 114 memcpy(&priv->conv_phy_drv, priv->phy_dev->drv, in xgmiitorgmii_probe() 118 mdiodev_set_drvdata(&priv->phy_dev->mdio, priv); in xgmiitorgmii_probe() 119 priv->phy_dev->drv = &priv->conv_phy_drv; in xgmiitorgmii_probe()
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_ethtool.c | 65 struct phy_device *phy_dev = net_dev->phydev; in hns_get_mdix_mode() local 67 if (!phy_dev || !phy_dev->mdio.bus) { in hns_get_mdix_mode() 73 phy_write(phy_dev, HNS_PHY_PAGE_REG, HNS_PHY_PAGE_MDIX); in hns_get_mdix_mode() 75 retval = phy_read(phy_dev, HNS_PHY_CSC_REG); in hns_get_mdix_mode() 78 retval = phy_read(phy_dev, HNS_PHY_CSS_REG); in hns_get_mdix_mode() 82 phy_write(phy_dev, HNS_PHY_PAGE_REG, HNS_PHY_PAGE_COPPER); in hns_get_mdix_mode() 257 static int hns_nic_config_phy_loopback(struct phy_device *phy_dev, u8 en) in hns_nic_config_phy_loopback() argument 265 err = phy_resume(phy_dev); in hns_nic_config_phy_loopback() 269 err = phy_loopback(phy_dev, true); in hns_nic_config_phy_loopback() 271 err = phy_loopback(phy_dev, false); in hns_nic_config_phy_loopback() [all …]
|
H A D | hns_dsaf_mac.c | 753 mac_cb->phy_dev = phy; in hns_mac_register_phydev() 809 if (!to_acpi_device_node(mac_cb->fw_port) || !mac_cb->phy_dev) in hns_mac_remove_phydev() 812 phy_device_remove(mac_cb->phy_dev); in hns_mac_remove_phydev() 813 phy_device_free(mac_cb->phy_dev); in hns_mac_remove_phydev() 815 mac_cb->phy_dev = NULL; in hns_mac_remove_phydev() 869 mac_cb->phy_dev = of_phy_find_device(np); in hns_mac_get_info() 870 if (mac_cb->phy_dev) { in hns_mac_get_info() 874 put_device(&mac_cb->phy_dev->mdio.dev); in hns_mac_get_info() 888 mac_cb->phy_dev = of_phy_find_device(np); in hns_mac_get_info() 889 if (mac_cb->phy_dev) { in hns_mac_get_info() [all …]
|
/openbmc/linux/drivers/net/ethernet/broadcom/ |
H A D | sb1250-mac.c | 226 struct phy_device *phy_dev; /* the associated PHY device */ member 2314 phy_start(sc->phy_dev); in sbmac_open() 2329 struct phy_device *phy_dev; in sbmac_mii_probe() local 2331 phy_dev = phy_find_first(sc->mii_bus); in sbmac_mii_probe() 2332 if (!phy_dev) { in sbmac_mii_probe() 2337 phy_dev = phy_connect(dev, dev_name(&phy_dev->mdio.dev), in sbmac_mii_probe() 2339 if (IS_ERR(phy_dev)) { in sbmac_mii_probe() 2341 return PTR_ERR(phy_dev); in sbmac_mii_probe() 2345 phy_set_max_speed(phy_dev, SPEED_1000); in sbmac_mii_probe() 2346 phy_support_asym_pause(phy_dev); in sbmac_mii_probe() [all …]
|
H A D | bgmac-bcma.c | 87 struct phy_device *phy_dev; in bcma_phy_connect() local 91 phy_dev = of_phy_get_and_connect(bgmac->net_dev, bgmac->dev->of_node, in bcma_phy_connect() 93 if (phy_dev) in bcma_phy_connect() 100 phy_dev = phy_connect(bgmac->net_dev, bus_id, bgmac_adjust_link, in bcma_phy_connect() 102 if (IS_ERR(phy_dev)) { in bcma_phy_connect() 104 return PTR_ERR(phy_dev); in bcma_phy_connect()
|
H A D | bgmac-platform.c | 153 struct phy_device *phy_dev; in platform_phy_connect() local 156 phy_dev = of_phy_get_and_connect(bgmac->net_dev, in platform_phy_connect() 160 phy_dev = of_phy_get_and_connect(bgmac->net_dev, in platform_phy_connect() 163 if (!phy_dev) { in platform_phy_connect()
|
/openbmc/linux/drivers/net/ethernet/8390/ |
H A D | ax88796.c | 339 struct phy_device *phy_dev = dev->phydev; in ax_handle_link_change() local 342 if (phy_dev->link && ((ax->speed != phy_dev->speed) || in ax_handle_link_change() 343 (ax->duplex != phy_dev->duplex))) { in ax_handle_link_change() 345 ax->speed = phy_dev->speed; in ax_handle_link_change() 346 ax->duplex = phy_dev->duplex; in ax_handle_link_change() 350 if (phy_dev->link != ax->link) { in ax_handle_link_change() 351 if (!phy_dev->link) { in ax_handle_link_change() 355 ax->link = phy_dev->link; in ax_handle_link_change() 361 phy_print_status(phy_dev); in ax_handle_link_change() 367 struct phy_device *phy_dev = NULL; in ax_mii_probe() local [all …]
|
/openbmc/linux/drivers/net/mdio/ |
H A D | mdio-xgene.c | 263 struct phy_device *phy_dev; in xgene_enet_phy_register() local 265 phy_dev = get_phy_device(bus, phy_addr, false); in xgene_enet_phy_register() 266 if (!phy_dev || IS_ERR(phy_dev)) in xgene_enet_phy_register() 269 if (phy_device_register(phy_dev)) in xgene_enet_phy_register() 270 phy_device_free(phy_dev); in xgene_enet_phy_register() 272 return phy_dev; in xgene_enet_phy_register() 282 struct phy_device *phy_dev; in acpi_register_phy() local 294 phy_dev = xgene_enet_phy_register(mdio, phy_addr); in acpi_register_phy() 295 adev->driver_data = phy_dev; in acpi_register_phy()
|
/openbmc/u-boot/drivers/net/ |
H A D | bcm6348-eth.c | 114 struct phy_device *phy_dev; member 210 ret = phy_startup(priv->phy_dev); in bcm6348_eth_start() 216 if (!priv->phy_dev->link) { in bcm6348_eth_start() 221 bcm6348_eth_adjust_link(dev, priv->phy_dev); in bcm6348_eth_start() 389 priv->phy_dev = phy_connect(bus, priv->phy_id, dev, in bcm6348_phy_init() 391 if (!priv->phy_dev) { in bcm6348_phy_init() 396 priv->phy_dev->supported = (SUPPORTED_10baseT_Half | in bcm6348_phy_init() 403 priv->phy_dev->advertising = priv->phy_dev->supported; in bcm6348_phy_init() 406 phy_config(priv->phy_dev); in bcm6348_phy_init()
|
/openbmc/linux/drivers/net/ethernet/amd/xgbe/ |
H A D | xgbe-phy-v1.c | 689 ret = device_property_read_u32(pdata->phy_dev, XGBE_SPEEDSET_PROPERTY, in xgbe_phy_init() 708 if (device_property_present(pdata->phy_dev, XGBE_BLWC_PROPERTY)) { in xgbe_phy_init() 709 ret = device_property_read_u32_array(pdata->phy_dev, in xgbe_phy_init() 723 if (device_property_present(pdata->phy_dev, XGBE_CDR_RATE_PROPERTY)) { in xgbe_phy_init() 724 ret = device_property_read_u32_array(pdata->phy_dev, in xgbe_phy_init() 738 if (device_property_present(pdata->phy_dev, XGBE_PQ_SKEW_PROPERTY)) { in xgbe_phy_init() 739 ret = device_property_read_u32_array(pdata->phy_dev, in xgbe_phy_init() 753 if (device_property_present(pdata->phy_dev, XGBE_TX_AMP_PROPERTY)) { in xgbe_phy_init() 754 ret = device_property_read_u32_array(pdata->phy_dev, in xgbe_phy_init() 768 if (device_property_present(pdata->phy_dev, XGBE_DFE_CFG_PROPERTY)) { in xgbe_phy_init() [all …]
|
/openbmc/linux/drivers/net/ethernet/arc/ |
H A D | emac_main.c | 49 struct phy_device *phy_dev = ndev->phydev; in arc_emac_adjust_link() local 52 if (priv->link != phy_dev->link) { in arc_emac_adjust_link() 53 priv->link = phy_dev->link; in arc_emac_adjust_link() 57 if (priv->speed != phy_dev->speed) { in arc_emac_adjust_link() 58 priv->speed = phy_dev->speed; in arc_emac_adjust_link() 64 if (priv->duplex != phy_dev->duplex) { in arc_emac_adjust_link() 67 if (phy_dev->duplex == DUPLEX_FULL) in arc_emac_adjust_link() 73 priv->duplex = phy_dev->duplex; in arc_emac_adjust_link() 78 phy_print_status(phy_dev); in arc_emac_adjust_link() 427 struct phy_device *phy_dev = ndev->phydev; in arc_emac_open() local [all …]
|
/openbmc/linux/drivers/phy/samsung/ |
H A D | phy-exynos-mipi-video.c | 295 const struct mipi_phy_device_desc *phy_dev; in exynos_mipi_video_phy_probe() local 302 phy_dev = of_device_get_match_data(dev); in exynos_mipi_video_phy_probe() 303 if (!phy_dev) in exynos_mipi_video_phy_probe() 313 for (; i < phy_dev->num_regmaps; i++) { in exynos_mipi_video_phy_probe() 315 phy_dev->regmap_names[i]); in exynos_mipi_video_phy_probe() 319 state->num_phys = phy_dev->num_phys; in exynos_mipi_video_phy_probe() 334 state->phys[i].data = &phy_dev->phys[i]; in exynos_mipi_video_phy_probe()
|
/openbmc/linux/drivers/net/ethernet/xilinx/ |
H A D | xilinx_emaclite.c | 131 struct phy_device *phy_dev; member 887 struct phy_device *phy = lp->phy_dev; in xemaclite_adjust_link() 919 lp->phy_dev = of_phy_connect(lp->ndev, lp->phy_node, in xemaclite_open() 922 if (!lp->phy_dev) { in xemaclite_open() 928 phy_set_max_speed(lp->phy_dev, SPEED_100); in xemaclite_open() 929 phy_start(lp->phy_dev); in xemaclite_open() 940 if (lp->phy_dev) in xemaclite_open() 941 phy_disconnect(lp->phy_dev); in xemaclite_open() 942 lp->phy_dev = NULL; in xemaclite_open() 974 if (lp->phy_dev) in xemaclite_close() [all …]
|
/openbmc/u-boot/board/freescale/lx2160a/ |
H A D | eth_lx2160aqds.c | 685 struct phy_device *phy_dev, int phandle) in fdt_create_phy_node() argument 703 phy_dev->phy_id >> 16, phy_dev->phy_id & 0xFFFF); in fdt_create_phy_node() 713 if (phy_dev->is_c45) { in fdt_create_phy_node() 754 struct phy_device *phy_dev; in fdt_fixup_board_phy() local 785 phy_dev = mii_dev->phymap[i]; in fdt_fixup_board_phy() 786 if (!phy_dev) in fdt_fixup_board_phy() 796 if (strcmp(ethname, phy_dev->dev->name) == 0) in fdt_fixup_board_phy() 804 phy_dev, phandle); in fdt_fixup_board_phy()
|
/openbmc/linux/sound/soc/loongson/ |
H A D | loongson_card.c | 78 struct device *phy_dev; in loongson_card_parse_acpi() local 89 phy_dev = acpi_get_first_physical_node(adev); in loongson_card_parse_acpi() 90 if (!phy_dev) in loongson_card_parse_acpi() 93 loongson_dai_links[i].platforms->name = dev_name(phy_dev); in loongson_card_parse_acpi()
|
/openbmc/linux/drivers/gpu/drm/msm/dsi/ |
H A D | dsi.c | 35 msm_dsi->phy_dev = &phy_pdev->dev; in dsi_get_phy() 60 if (msm_dsi->phy_dev) { in dsi_destroy() 61 put_device(msm_dsi->phy_dev); in dsi_destroy() 63 msm_dsi->phy_dev = NULL; in dsi_destroy()
|
/openbmc/linux/drivers/net/ethernet/smsc/ |
H A D | smsc911x.c | 841 struct phy_device *phy_dev = dev->phydev; in smsc911x_phy_loopbacktest() local 871 smsc911x_mii_write(phy_dev->mdio.bus, phy_dev->mdio.addr, in smsc911x_phy_loopbacktest() 900 smsc911x_mii_write(phy_dev->mdio.bus, phy_dev->mdio.addr, MII_BMCR, 0); in smsc911x_phy_loopbacktest() 912 struct phy_device *phy_dev = ndev->phydev; in smsc911x_phy_update_flowcontrol() local 917 if (phy_dev->duplex == DUPLEX_FULL) { in smsc911x_phy_update_flowcontrol() 918 u16 lcladv = phy_read(phy_dev, MII_ADVERTISE); in smsc911x_phy_update_flowcontrol() 919 u16 rmtadv = phy_read(phy_dev, MII_LPA); in smsc911x_phy_update_flowcontrol() 953 struct phy_device *phy_dev = dev->phydev; in smsc911x_phy_adjust_link() local 957 if (phy_dev->duplex != pdata->last_duplex) { in smsc911x_phy_adjust_link() 963 if (phy_dev->duplex) { in smsc911x_phy_adjust_link() [all …]
|
/openbmc/linux/drivers/net/ethernet/apm/xgene/ |
H A D | xgene_enet_hw.c | 847 struct phy_device *phy_dev; in xgene_enet_phy_connect() local 854 phy_dev = of_phy_connect(ndev, np, in xgene_enet_phy_connect() 858 if (phy_dev) in xgene_enet_phy_connect() 862 if (!phy_dev) { in xgene_enet_phy_connect() 870 phy_dev = adev->driver_data; in xgene_enet_phy_connect() 872 phy_dev = NULL; in xgene_enet_phy_connect() 874 if (!phy_dev || in xgene_enet_phy_connect() 875 phy_connect_direct(ndev, phy_dev, &xgene_enet_adjust_link, in xgene_enet_phy_connect() 886 phy_remove_link_mode(phy_dev, ETHTOOL_LINK_MODE_10baseT_Half_BIT); in xgene_enet_phy_connect() 887 phy_remove_link_mode(phy_dev, ETHTOOL_LINK_MODE_100baseT_Half_BIT); in xgene_enet_phy_connect() [all …]
|
/openbmc/u-boot/drivers/net/ti/ |
H A D | keystone_net.c | 123 int keystone_rgmii_config(struct phy_device *phy_dev) in keystone_rgmii_config() argument 131 phy_dev->link = 0; in keystone_rgmii_config() 137 phy_dev->link = 0; in keystone_rgmii_config() 153 int keystone_sgmii_config(struct phy_device *phy_dev, int port, int interface) in keystone_sgmii_config() argument 219 phy_dev->dev->name); in keystone_sgmii_config() 226 phy_dev->link = 0; in keystone_sgmii_config() 232 phy_dev->link = 0; in keystone_sgmii_config()
|
/openbmc/linux/drivers/net/ethernet/ibm/emac/ |
H A D | core.c | 2474 struct phy_device *phy = dev->phy_dev; in emac_adjust_link() 2512 struct phy_device *phy_dev) in emac_mdio_phy_start_aneg() argument 2514 phy_dev->autoneg = phy->autoneg; in emac_mdio_phy_start_aneg() 2515 phy_dev->speed = phy->speed; in emac_mdio_phy_start_aneg() 2516 phy_dev->duplex = phy->duplex; in emac_mdio_phy_start_aneg() 2517 ethtool_convert_legacy_u32_to_link_mode(phy_dev->advertising, in emac_mdio_phy_start_aneg() 2519 return phy_start_aneg(phy_dev); in emac_mdio_phy_start_aneg() 2529 return emac_mdio_phy_start_aneg(phy, dev->phy_dev); in emac_mdio_setup_aneg() 2540 return emac_mdio_phy_start_aneg(phy, dev->phy_dev); in emac_mdio_setup_forced() 2549 res = phy_read_status(dev->phy_dev); in emac_mdio_poll_link() [all …]
|