/linux-6.1.9/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-6.1.9/drivers/net/ipvlan/ |
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 …]
|
/linux-6.1.9/drivers/staging/gdm724x/ |
D | gdm_lte.h | 36 struct phy_dev { struct 54 struct phy_dev *phy_dev; member 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() 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 …]
|
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 …]
|
/linux-6.1.9/drivers/net/phy/ |
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()
|
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns/ |
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 …]
|
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-6.1.9/drivers/net/ethernet/broadcom/ |
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 …]
|
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()
|
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.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-6.1.9/drivers/net/ethernet/8390/ |
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 …]
|
/linux-6.1.9/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 296 phy_dev = xgene_enet_phy_register(mdio, phy_addr); in acpi_register_phy() 297 adev->driver_data = phy_dev; in acpi_register_phy()
|
/linux-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/drivers/net/ethernet/xilinx/ |
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 …]
|
/linux-6.1.9/drivers/net/ethernet/smsc/ |
D | smsc911x.c | 842 struct phy_device *phy_dev = dev->phydev; in smsc911x_phy_loopbacktest() local 872 smsc911x_mii_write(phy_dev->mdio.bus, phy_dev->mdio.addr, in smsc911x_phy_loopbacktest() 901 smsc911x_mii_write(phy_dev->mdio.bus, phy_dev->mdio.addr, MII_BMCR, 0); in smsc911x_phy_loopbacktest() 913 struct phy_device *phy_dev = ndev->phydev; in smsc911x_phy_update_flowcontrol() local 918 if (phy_dev->duplex == DUPLEX_FULL) { in smsc911x_phy_update_flowcontrol() 919 u16 lcladv = phy_read(phy_dev, MII_ADVERTISE); in smsc911x_phy_update_flowcontrol() 920 u16 rmtadv = phy_read(phy_dev, MII_LPA); in smsc911x_phy_update_flowcontrol() 954 struct phy_device *phy_dev = dev->phydev; in smsc911x_phy_adjust_link() local 958 if (phy_dev->duplex != pdata->last_duplex) { in smsc911x_phy_adjust_link() 964 if (phy_dev->duplex) { in smsc911x_phy_adjust_link() [all …]
|
/linux-6.1.9/drivers/net/ethernet/freescale/fman/ |
D | mac.c | 149 struct phy_device *phy_dev = mac_dev->phy_dev; in fman_get_pause_cfg() local 155 if (!phy_dev->duplex) in fman_get_pause_cfg() 172 lcl_adv = linkmode_adv_to_lcl_adv_t(phy_dev->advertising); in fman_get_pause_cfg() 176 if (phy_dev->pause) in fman_get_pause_cfg() 178 if (phy_dev->asym_pause) in fman_get_pause_cfg()
|
/linux-6.1.9/drivers/net/ethernet/stmicro/stmmac/ |
D | altr_tse_pcs.c | 197 void tse_pcs_fix_mac_speed(struct tse_pcs *pcs, struct phy_device *phy_dev, in tse_pcs_fix_mac_speed() argument 203 pcs->autoneg = phy_dev->autoneg; in tse_pcs_fix_mac_speed() 205 if (phy_dev->autoneg == AUTONEG_ENABLE) { in tse_pcs_fix_mac_speed() 223 } else if (phy_dev->autoneg == AUTONEG_DISABLE) { in tse_pcs_fix_mac_speed()
|
D | altr_tse_pcs.h | 26 void tse_pcs_fix_mac_speed(struct tse_pcs *pcs, struct phy_device *phy_dev,
|
/linux-6.1.9/drivers/gpu/drm/msm/dsi/ |
D | dsi.c | 36 msm_dsi->phy_dev = &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()
|
/linux-6.1.9/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-6.1.9/drivers/net/ethernet/ibm/emac/ |
D | core.c | 2473 struct phy_device *phy = dev->phy_dev; in emac_adjust_link() 2511 struct phy_device *phy_dev) in emac_mdio_phy_start_aneg() argument 2513 phy_dev->autoneg = phy->autoneg; in emac_mdio_phy_start_aneg() 2514 phy_dev->speed = phy->speed; in emac_mdio_phy_start_aneg() 2515 phy_dev->duplex = phy->duplex; in emac_mdio_phy_start_aneg() 2516 ethtool_convert_legacy_u32_to_link_mode(phy_dev->advertising, in emac_mdio_phy_start_aneg() 2518 return phy_start_aneg(phy_dev); in emac_mdio_phy_start_aneg() 2528 return emac_mdio_phy_start_aneg(phy, dev->phy_dev); in emac_mdio_setup_aneg() 2539 return emac_mdio_phy_start_aneg(phy, dev->phy_dev); in emac_mdio_setup_forced() 2548 res = phy_read_status(dev->phy_dev); in emac_mdio_poll_link() [all …]
|