/Linux-v5.10/drivers/phy/st/ |
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 …]
|
/Linux-v5.10/drivers/net/ipvlan/ |
D | ipvlan_main.c | 130 struct net_device *phy_dev = ipvlan->phy_dev; in ipvlan_init() local 135 (phy_dev->state & IPVLAN_STATE_MASK); in ipvlan_init() 136 dev->features = phy_dev->features & IPVLAN_FEATURES; in ipvlan_init() 138 dev->vlan_features = phy_dev->vlan_features & IPVLAN_FEATURES; in ipvlan_init() 141 dev->gso_max_size = phy_dev->gso_max_size; in ipvlan_init() 142 dev->gso_max_segs = phy_dev->gso_max_segs; in ipvlan_init() 143 dev->hard_header_len = phy_dev->hard_header_len; in ipvlan_init() 151 if (!netif_is_ipvlan_port(phy_dev)) { in ipvlan_init() 152 err = ipvlan_port_create(phy_dev); in ipvlan_init() 158 port = ipvlan_port_get_rtnl(phy_dev); in ipvlan_init() [all …]
|
/Linux-v5.10/drivers/staging/gdm724x/ |
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);
|
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() 673 static void gdm_lte_multi_sdu_pkt(struct phy_dev *phy_dev, char *buf, int len) in gdm_lte_multi_sdu_pkt() argument 678 u8 endian = phy_dev->get_endian(phy_dev->priv_dev); in gdm_lte_multi_sdu_pkt() 711 dev = phy_dev->dev[index]; in gdm_lte_multi_sdu_pkt() 723 u8 ed = nic->phy_dev->get_endian(nic->phy_dev->priv_dev); in gdm_lte_pdn_table() 740 static int gdm_lte_receive_pkt(struct phy_dev *phy_dev, char *buf, int len) in gdm_lte_receive_pkt() argument 746 u8 endian = phy_dev->get_endian(phy_dev->priv_dev); in gdm_lte_receive_pkt() [all …]
|
D | gdm_usb.c | 357 struct phy_dev *phy_dev = arg; in set_mac_address() local 358 struct lte_udev *udev = phy_dev->priv_dev; in set_mac_address() 365 if (register_lte_device(phy_dev, in set_mac_address() 384 struct phy_dev *phy_dev; in do_rx() local 400 phy_dev = r->cb_data; in do_rx() 401 udev = phy_dev->priv_dev; in do_rx() 803 struct phy_dev *phy_dev = NULL; in gdm_usb_probe() local 820 phy_dev = kzalloc(sizeof(*phy_dev), GFP_KERNEL); in gdm_usb_probe() 821 if (!phy_dev) in gdm_usb_probe() 830 phy_dev->priv_dev = (void *)udev; in gdm_usb_probe() [all …]
|
/Linux-v5.10/drivers/net/phy/ |
D | xilinx_gmii2rgmii.c | 24 struct phy_device *phy_dev; member 76 priv->phy_dev = of_phy_find_device(phy_node); in xgmiitorgmii_probe() 78 if (!priv->phy_dev) { in xgmiitorgmii_probe() 83 if (!priv->phy_dev->drv) { in xgmiitorgmii_probe() 89 priv->phy_drv = priv->phy_dev->drv; in xgmiitorgmii_probe() 90 memcpy(&priv->conv_phy_drv, priv->phy_dev->drv, in xgmiitorgmii_probe() 93 mdiodev_set_drvdata(&priv->phy_dev->mdio, priv); in xgmiitorgmii_probe() 94 priv->phy_dev->drv = &priv->conv_phy_drv; in xgmiitorgmii_probe()
|
/Linux-v5.10/drivers/net/ethernet/freescale/fman/ |
D | mac.c | 262 struct phy_device *phy_dev = mac_dev->phy_dev; in start() local 266 if (!err && phy_dev) in start() 267 phy_start(phy_dev); in start() 276 if (mac_dev->phy_dev) in stop() 277 phy_stop(mac_dev->phy_dev); in stop() 373 struct phy_device *phy_dev = mac_dev->phy_dev; in fman_get_pause_cfg() local 379 if (!phy_dev->duplex) in fman_get_pause_cfg() 396 lcl_adv = linkmode_adv_to_lcl_adv_t(phy_dev->advertising); in fman_get_pause_cfg() 400 if (phy_dev->pause) in fman_get_pause_cfg() 402 if (phy_dev->asym_pause) in fman_get_pause_cfg() [all …]
|
/Linux-v5.10/drivers/net/ethernet/broadcom/ |
D | sb1250-mac.c | 226 struct phy_device *phy_dev; /* the associated PHY device */ member 2316 phy_start(sc->phy_dev); in sbmac_open() 2331 struct phy_device *phy_dev; in sbmac_mii_probe() local 2333 phy_dev = phy_find_first(sc->mii_bus); in sbmac_mii_probe() 2334 if (!phy_dev) { in sbmac_mii_probe() 2339 phy_dev = phy_connect(dev, dev_name(&phy_dev->mdio.dev), in sbmac_mii_probe() 2341 if (IS_ERR(phy_dev)) { in sbmac_mii_probe() 2343 return PTR_ERR(phy_dev); in sbmac_mii_probe() 2347 phy_set_max_speed(phy_dev, SPEED_1000); in sbmac_mii_probe() 2348 phy_support_asym_pause(phy_dev); in sbmac_mii_probe() [all …]
|
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()
|
D | bgmac-bcma.c | 86 struct phy_device *phy_dev; in bcma_phy_connect() local 92 phy_dev = phy_connect(bgmac->net_dev, bus_id, bgmac_adjust_link, in bcma_phy_connect() 94 if (IS_ERR(phy_dev)) { in bcma_phy_connect() 96 return PTR_ERR(phy_dev); in bcma_phy_connect()
|
D | bgmac.c | 1418 struct phy_device *phy_dev = net_dev->phydev; in bgmac_adjust_link() local 1421 if (phy_dev->link) { in bgmac_adjust_link() 1422 if (phy_dev->speed != bgmac->mac_speed) { in bgmac_adjust_link() 1423 bgmac->mac_speed = phy_dev->speed; in bgmac_adjust_link() 1427 if (phy_dev->duplex != bgmac->mac_duplex) { in bgmac_adjust_link() 1428 bgmac->mac_duplex = phy_dev->duplex; in bgmac_adjust_link() 1435 phy_print_status(phy_dev); in bgmac_adjust_link() 1447 struct phy_device *phy_dev; in bgmac_phy_connect_direct() local 1450 phy_dev = fixed_phy_register(PHY_POLL, &fphy_status, NULL); in bgmac_phy_connect_direct() 1451 if (!phy_dev || IS_ERR(phy_dev)) { in bgmac_phy_connect_direct() [all …]
|
/Linux-v5.10/drivers/net/ethernet/hisilicon/hns/ |
D | hns_ethtool.c | 66 struct phy_device *phy_dev = net_dev->phydev; in hns_get_mdix_mode() local 68 if (!phy_dev || !phy_dev->mdio.bus) { in hns_get_mdix_mode() 74 phy_write(phy_dev, HNS_PHY_PAGE_REG, HNS_PHY_PAGE_MDIX); in hns_get_mdix_mode() 76 retval = phy_read(phy_dev, HNS_PHY_CSC_REG); in hns_get_mdix_mode() 79 retval = phy_read(phy_dev, HNS_PHY_CSS_REG); in hns_get_mdix_mode() 83 phy_write(phy_dev, HNS_PHY_PAGE_REG, HNS_PHY_PAGE_COPPER); in hns_get_mdix_mode() 258 static int hns_nic_config_phy_loopback(struct phy_device *phy_dev, u8 en) in hns_nic_config_phy_loopback() argument 266 err = phy_resume(phy_dev); in hns_nic_config_phy_loopback() 270 err = phy_loopback(phy_dev, true); in hns_nic_config_phy_loopback() 272 err = phy_loopback(phy_dev, false); in hns_nic_config_phy_loopback() [all …]
|
D | hns_dsaf_mac.c | 724 mac_cb->phy_dev = phy; in hns_mac_register_phydev() 780 if (!to_acpi_device_node(mac_cb->fw_port) || !mac_cb->phy_dev) in hns_mac_remove_phydev() 783 phy_device_remove(mac_cb->phy_dev); in hns_mac_remove_phydev() 784 phy_device_free(mac_cb->phy_dev); in hns_mac_remove_phydev() 786 mac_cb->phy_dev = NULL; in hns_mac_remove_phydev() 840 mac_cb->phy_dev = of_phy_find_device(np); in hns_mac_get_info() 841 if (mac_cb->phy_dev) { in hns_mac_get_info() 845 put_device(&mac_cb->phy_dev->mdio.dev); in hns_mac_get_info() 859 mac_cb->phy_dev = of_phy_find_device(np); in hns_mac_get_info() 860 if (mac_cb->phy_dev) { in hns_mac_get_info() [all …]
|
/Linux-v5.10/drivers/net/ethernet/8390/ |
D | ax88796.c | 332 struct phy_device *phy_dev = dev->phydev; in ax_handle_link_change() local 335 if (phy_dev->link && ((ax->speed != phy_dev->speed) || in ax_handle_link_change() 336 (ax->duplex != phy_dev->duplex))) { in ax_handle_link_change() 338 ax->speed = phy_dev->speed; in ax_handle_link_change() 339 ax->duplex = phy_dev->duplex; in ax_handle_link_change() 343 if (phy_dev->link != ax->link) { in ax_handle_link_change() 344 if (!phy_dev->link) { in ax_handle_link_change() 348 ax->link = phy_dev->link; in ax_handle_link_change() 354 phy_print_status(phy_dev); in ax_handle_link_change() 360 struct phy_device *phy_dev = NULL; in ax_mii_probe() local [all …]
|
/Linux-v5.10/drivers/net/mdio/ |
D | mdio-xgene.c | 265 struct phy_device *phy_dev; in xgene_enet_phy_register() local 267 phy_dev = get_phy_device(bus, phy_addr, false); in xgene_enet_phy_register() 268 if (!phy_dev || IS_ERR(phy_dev)) in xgene_enet_phy_register() 271 if (phy_device_register(phy_dev)) in xgene_enet_phy_register() 272 phy_device_free(phy_dev); in xgene_enet_phy_register() 274 return phy_dev; in xgene_enet_phy_register() 284 struct phy_device *phy_dev; in acpi_register_phy() local 295 phy_dev = xgene_enet_phy_register(mdio, phy_addr); in acpi_register_phy() 296 adev->driver_data = phy_dev; in acpi_register_phy()
|
/Linux-v5.10/drivers/net/ethernet/xilinx/ |
D | xilinx_emaclite.c | 139 struct phy_device *phy_dev; member 894 struct phy_device *phy = lp->phy_dev; in xemaclite_adjust_link() 928 lp->phy_dev = of_phy_connect(lp->ndev, lp->phy_node, in xemaclite_open() 931 if (!lp->phy_dev) { in xemaclite_open() 937 phy_set_max_speed(lp->phy_dev, SPEED_100); in xemaclite_open() 940 phy_write(lp->phy_dev, MII_CTRL1000, 0); in xemaclite_open() 943 phy_write(lp->phy_dev, MII_ADVERTISE, ADVERTISE_ALL | in xemaclite_open() 947 bmcr = phy_read(lp->phy_dev, MII_BMCR); in xemaclite_open() 949 phy_write(lp->phy_dev, MII_BMCR, bmcr); in xemaclite_open() 951 phy_start(lp->phy_dev); in xemaclite_open() [all …]
|
/Linux-v5.10/drivers/net/ethernet/amd/xgbe/ |
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 …]
|
/Linux-v5.10/drivers/phy/samsung/ |
D | phy-exynos-mipi-video.c | 296 const struct mipi_phy_device_desc *phy_dev; in exynos_mipi_video_phy_probe() local 303 phy_dev = of_device_get_match_data(dev); in exynos_mipi_video_phy_probe() 304 if (!phy_dev) in exynos_mipi_video_phy_probe() 311 for (i = 0; i < phy_dev->num_regmaps; i++) { in exynos_mipi_video_phy_probe() 313 phy_dev->regmap_names[i]); in exynos_mipi_video_phy_probe() 317 state->num_phys = phy_dev->num_phys; in exynos_mipi_video_phy_probe() 332 state->phys[i].data = &phy_dev->phys[i]; in exynos_mipi_video_phy_probe()
|
/Linux-v5.10/drivers/net/ethernet/arc/ |
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() 425 struct phy_device *phy_dev = ndev->phydev; in arc_emac_open() local [all …]
|
/Linux-v5.10/drivers/net/ethernet/smsc/ |
D | smsc911x.c | 838 struct phy_device *phy_dev = dev->phydev; in smsc911x_phy_loopbacktest() local 868 smsc911x_mii_write(phy_dev->mdio.bus, phy_dev->mdio.addr, in smsc911x_phy_loopbacktest() 897 smsc911x_mii_write(phy_dev->mdio.bus, phy_dev->mdio.addr, MII_BMCR, 0); in smsc911x_phy_loopbacktest() 909 struct phy_device *phy_dev = ndev->phydev; in smsc911x_phy_update_flowcontrol() local 914 if (phy_dev->duplex == DUPLEX_FULL) { in smsc911x_phy_update_flowcontrol() 915 u16 lcladv = phy_read(phy_dev, MII_ADVERTISE); in smsc911x_phy_update_flowcontrol() 916 u16 rmtadv = phy_read(phy_dev, MII_LPA); in smsc911x_phy_update_flowcontrol() 950 struct phy_device *phy_dev = dev->phydev; in smsc911x_phy_adjust_link() local 954 if (phy_dev->duplex != pdata->last_duplex) { in smsc911x_phy_adjust_link() 960 if (phy_dev->duplex) { in smsc911x_phy_adjust_link() [all …]
|
/Linux-v5.10/drivers/gpu/drm/msm/dsi/ |
D | dsi.c | 39 msm_dsi->phy_dev = get_device(&phy_pdev->dev); in dsi_get_phy() 51 if (msm_dsi->phy_dev) { in dsi_destroy() 52 put_device(msm_dsi->phy_dev); in dsi_destroy() 54 msm_dsi->phy_dev = NULL; in dsi_destroy()
|
/Linux-v5.10/drivers/net/ethernet/stmicro/stmmac/ |
D | altr_tse_pcs.c | 201 void tse_pcs_fix_mac_speed(struct tse_pcs *pcs, struct phy_device *phy_dev, in tse_pcs_fix_mac_speed() argument 211 pcs->autoneg = phy_dev->autoneg; in tse_pcs_fix_mac_speed() 213 if (phy_dev->autoneg == AUTONEG_ENABLE) { in tse_pcs_fix_mac_speed() 231 } else if (phy_dev->autoneg == AUTONEG_DISABLE) { in tse_pcs_fix_mac_speed()
|
D | altr_tse_pcs.h | 22 void tse_pcs_fix_mac_speed(struct tse_pcs *pcs, struct phy_device *phy_dev,
|
/Linux-v5.10/drivers/net/ethernet/apm/xgene/ |
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 …]
|
/Linux-v5.10/drivers/net/ethernet/ibm/emac/ |
D | core.c | 2469 struct phy_device *phy = dev->phy_dev; in emac_adjust_link() 2507 struct phy_device *phy_dev) in emac_mdio_phy_start_aneg() argument 2509 phy_dev->autoneg = phy->autoneg; in emac_mdio_phy_start_aneg() 2510 phy_dev->speed = phy->speed; in emac_mdio_phy_start_aneg() 2511 phy_dev->duplex = phy->duplex; in emac_mdio_phy_start_aneg() 2512 ethtool_convert_legacy_u32_to_link_mode(phy_dev->advertising, in emac_mdio_phy_start_aneg() 2514 return phy_start_aneg(phy_dev); in emac_mdio_phy_start_aneg() 2524 return emac_mdio_phy_start_aneg(phy, dev->phy_dev); in emac_mdio_setup_aneg() 2535 return emac_mdio_phy_start_aneg(phy, dev->phy_dev); in emac_mdio_setup_forced() 2544 res = phy_read_status(dev->phy_dev); in emac_mdio_poll_link() [all …]
|