phy_data 110 arch/mips/include/asm/ip32/mace.h volatile unsigned long phy_data; phy_data 338 drivers/ata/sata_highbank.c struct of_phandle_args phy_data; phy_data 341 drivers/ata/sata_highbank.c port, &phy_data)) phy_data 344 drivers/ata/sata_highbank.c if (phy_nodes[phy] == phy_data.np) phy_data 348 drivers/ata/sata_highbank.c phy_nodes[phy] = phy_data.np; phy_data 355 drivers/ata/sata_highbank.c port_data[port].lane_mapping = phy_data.args[0]; phy_data 359 drivers/ata/sata_highbank.c of_node_put(phy_data.np); phy_data 44 drivers/atm/idt77105.c #define PRIV(dev) ((struct idt77105_priv *) dev->phy_data) phy_data 71 drivers/atm/iphase.c #define PRIV(dev) ((struct suni_priv *) dev->phy_data) phy_data 140 drivers/atm/solos-pci.c #define SOLOS_CHAN(atmdev) ((int)(unsigned long)(atmdev)->phy_data) phy_data 1381 drivers/atm/solos-pci.c card->atmdev[i]->phy_data = (void *)(unsigned long)i; phy_data 39 drivers/atm/suni.c #define PRIV(dev) ((struct suni_priv *) dev->phy_data) phy_data 371 drivers/atm/suni.c if (!(dev->phy_data = kmalloc(sizeof(struct suni_priv),GFP_KERNEL))) phy_data 35 drivers/atm/uPD98402.c #define PRIV(dev) ((struct uPD98402_priv *) dev->phy_data) phy_data 2529 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c hdmi->phy.data = hdmi->plat_data->phy_data; phy_data 968 drivers/gpu/drm/meson/meson_dw_hdmi.c dw_plat_data->phy_data = meson_dw_hdmi; phy_data 412 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c .phy_data = &rk3228_chip_data, phy_data 429 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c .phy_data = &rk3288_chip_data, phy_data 449 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c .phy_data = &rk3328_chip_data, phy_data 466 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c .phy_data = &rk3399_chip_data, phy_data 511 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c hdmi->chip_data = plat_data->phy_data; phy_data 512 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c plat_data->phy_data = hdmi; phy_data 528 drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c plat_data->phy_data = phy; phy_data 138 drivers/message/fusion/mptsas.c MPI_SAS_IO_UNIT0_PHY_DATA *phy_data) phy_data 143 drivers/message/fusion/mptsas.c ioc->name, le16_to_cpu(phy_data->AttachedDeviceHandle))); phy_data 145 drivers/message/fusion/mptsas.c ioc->name, le16_to_cpu(phy_data->ControllerDevHandle))); phy_data 147 drivers/message/fusion/mptsas.c ioc->name, phy_data->Port)); phy_data 149 drivers/message/fusion/mptsas.c ioc->name, phy_data->PortFlags)); phy_data 151 drivers/message/fusion/mptsas.c ioc->name, phy_data->PhyFlags)); phy_data 153 drivers/message/fusion/mptsas.c ioc->name, phy_data->NegotiatedLinkRate)); phy_data 156 drivers/message/fusion/mptsas.c le32_to_cpu(phy_data->ControllerPhyDeviceInfo))); phy_data 158 drivers/message/fusion/mptsas.c ioc->name, le32_to_cpu(phy_data->DiscoveryStatus))); phy_data 235 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 272 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c if (phy_data->speed_set == XGBE_SPEEDSET_2500_10000) phy_data 282 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c if (phy_data->speed_set == XGBE_SPEEDSET_2500_10000) phy_data 369 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 393 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->cdr_rate[XGBE_SPEED_10000]); phy_data 395 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->tx_amp[XGBE_SPEED_10000]); phy_data 397 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->blwc[XGBE_SPEED_10000]); phy_data 399 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->pq_skew[XGBE_SPEED_10000]); phy_data 401 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->dfe_tap_cfg[XGBE_SPEED_10000]); phy_data 403 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->dfe_tap_ena[XGBE_SPEED_10000]); phy_data 412 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 436 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->cdr_rate[XGBE_SPEED_2500]); phy_data 438 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->tx_amp[XGBE_SPEED_2500]); phy_data 440 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->blwc[XGBE_SPEED_2500]); phy_data 442 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->pq_skew[XGBE_SPEED_2500]); phy_data 444 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->dfe_tap_cfg[XGBE_SPEED_2500]); phy_data 446 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->dfe_tap_ena[XGBE_SPEED_2500]); phy_data 455 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 479 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->cdr_rate[XGBE_SPEED_1000]); phy_data 481 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->tx_amp[XGBE_SPEED_1000]); phy_data 483 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->blwc[XGBE_SPEED_1000]); phy_data 485 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->pq_skew[XGBE_SPEED_1000]); phy_data 487 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->dfe_tap_cfg[XGBE_SPEED_1000]); phy_data 489 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->dfe_tap_ena[XGBE_SPEED_1000]); phy_data 498 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 508 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c if (phy_data->speed_set == XGBE_SPEEDSET_2500_10000) phy_data 519 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 524 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c if (phy_data->speed_set == XGBE_SPEEDSET_2500_10000) phy_data 538 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 542 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c return (phy_data->speed_set == XGBE_SPEEDSET_1000_10000) phy_data 545 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c return (phy_data->speed_set == XGBE_SPEEDSET_2500_10000) phy_data 608 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 612 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c if (phy_data->speed_set != XGBE_SPEEDSET_1000_10000) phy_data 616 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c if (phy_data->speed_set != XGBE_SPEEDSET_2500_10000) phy_data 681 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c struct xgbe_phy_data *phy_data; phy_data 684 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data = devm_kzalloc(pdata->dev, sizeof(*phy_data), GFP_KERNEL); phy_data 685 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c if (!phy_data) phy_data 690 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c &phy_data->speed_set); phy_data 697 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c switch (phy_data->speed_set) { phy_data 711 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->blwc, phy_data 719 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c memcpy(phy_data->blwc, xgbe_phy_blwc, phy_data 720 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c sizeof(phy_data->blwc)); phy_data 726 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->cdr_rate, phy_data 734 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c memcpy(phy_data->cdr_rate, xgbe_phy_cdr_rate, phy_data 735 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c sizeof(phy_data->cdr_rate)); phy_data 741 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->pq_skew, phy_data 749 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c memcpy(phy_data->pq_skew, xgbe_phy_pq_skew, phy_data 750 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c sizeof(phy_data->pq_skew)); phy_data 756 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->tx_amp, phy_data 764 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c memcpy(phy_data->tx_amp, xgbe_phy_tx_amp, phy_data 765 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c sizeof(phy_data->tx_amp)); phy_data 771 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->dfe_tap_cfg, phy_data 779 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c memcpy(phy_data->dfe_tap_cfg, xgbe_phy_dfe_tap_cfg, phy_data 780 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c sizeof(phy_data->dfe_tap_cfg)); phy_data 786 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c phy_data->dfe_tap_ena, phy_data 794 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c memcpy(phy_data->dfe_tap_ena, xgbe_phy_dfe_tap_ena, phy_data 795 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c sizeof(phy_data->dfe_tap_ena)); phy_data 805 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c switch (phy_data->speed_set) { phy_data 817 drivers/net/ethernet/amd/xgbe/xgbe-phy-v1.c pdata->phy_data = phy_data; phy_data 398 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 423 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c i2c_op.target = phy_data->redrv_addr; phy_data 437 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c i2c_op.target = phy_data->redrv_addr; phy_data 515 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 519 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_comm == XGBE_SFP_COMM_DIRECT) phy_data 525 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c i2c_op.target = phy_data->sfp_mux_address; phy_data 534 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 538 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_comm == XGBE_SFP_COMM_DIRECT) phy_data 542 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mux_channel = 1 << phy_data->sfp_mux_channel; phy_data 544 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c i2c_op.target = phy_data->sfp_mux_address; phy_data 558 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 574 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c XP_SET_BITS(mutex_id, XP_I2C_MUTEX, ID, phy_data->port_id); phy_data 603 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 606 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->phydev_mode != XGBE_MDIO_MODE_CL45) phy_data 609 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->phydev_mode != XGBE_MDIO_MODE_CL22) phy_data 641 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 648 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->conn_type == XGBE_CONN_TYPE_SFP) phy_data 650 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c else if (phy_data->conn_type & XGBE_CONN_TYPE_MDIO) phy_data 663 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 666 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->phydev_mode != XGBE_MDIO_MODE_CL45) phy_data 669 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->phydev_mode != XGBE_MDIO_MODE_CL22) phy_data 701 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 708 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->conn_type == XGBE_CONN_TYPE_SFP) phy_data 710 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c else if (phy_data->conn_type & XGBE_CONN_TYPE_MDIO) phy_data 723 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 725 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (!phy_data->sfp_mod_absent && !phy_data->sfp_changed) phy_data 730 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_mod_absent) { phy_data 747 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (phy_data->sfp_base) { phy_data 759 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_base == XGBE_SFP_BASE_1000_T) { phy_data 760 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_100) phy_data 762 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_1000) phy_data 765 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_1000) phy_data 778 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_10000) { phy_data 779 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (phy_data->sfp_base) { phy_data 808 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (phy_data->sfp_base) { phy_data 848 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 850 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->phydev) { phy_data 851 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_detach(phy_data->phydev); phy_data 852 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_device_remove(phy_data->phydev); phy_data 853 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_device_free(phy_data->phydev); phy_data 854 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phydev = NULL; phy_data 861 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 862 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c unsigned int phy_id = phy_data->phydev->phy_id; phy_data 864 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_mode != XGBE_PORT_MODE_SFP) phy_data 871 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_write(phy_data->phydev, 0x16, 0x0001); phy_data 872 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_write(phy_data->phydev, 0x00, 0x9140); phy_data 873 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_write(phy_data->phydev, 0x16, 0x0000); phy_data 876 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_write(phy_data->phydev, 0x1b, 0x9084); phy_data 877 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_write(phy_data->phydev, 0x09, 0x0e00); phy_data 878 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_write(phy_data->phydev, 0x00, 0x8140); phy_data 879 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_write(phy_data->phydev, 0x04, 0x0d01); phy_data 880 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_write(phy_data->phydev, 0x00, 0x9140); phy_data 889 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c linkmode_copy(phy_data->phydev->supported, supported); phy_data 891 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_support_asym_pause(phy_data->phydev); phy_data 902 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 903 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_sfp_eeprom *sfp_eeprom = &phy_data->sfp_eeprom; phy_data 904 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c unsigned int phy_id = phy_data->phydev->phy_id; phy_data 907 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_mode != XGBE_PORT_MODE_SFP) phy_data 925 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_write(phy_data->phydev, 0x18, 0x7007); phy_data 926 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c reg = phy_read(phy_data->phydev, 0x18); phy_data 927 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_write(phy_data->phydev, 0x18, reg & ~0x0080); phy_data 930 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_write(phy_data->phydev, 0x1c, 0x7c00); phy_data 931 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c reg = phy_read(phy_data->phydev, 0x1c); phy_data 934 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_write(phy_data->phydev, 0x1c, 0x8000 | 0x7c00 | reg | 0x0001); phy_data 937 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c reg = phy_read(phy_data->phydev, 0x00); phy_data 938 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_write(phy_data->phydev, 0x00, reg | 0x00800); phy_data 941 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_write(phy_data->phydev, 0x1c, 0x7c00); phy_data 942 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c reg = phy_read(phy_data->phydev, 0x1c); phy_data 945 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_write(phy_data->phydev, 0x1c, 0x8000 | 0x7c00 | reg | 0x0004); phy_data 948 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c reg = phy_read(phy_data->phydev, 0x00); phy_data 949 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_write(phy_data->phydev, 0x00, reg & ~0x00800); phy_data 952 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_write(phy_data->phydev, 0x1c, 0x7c00); phy_data 953 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c reg = phy_read(phy_data->phydev, 0x1c); phy_data 956 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_write(phy_data->phydev, 0x1c, 0x8000 | 0x7c00 | reg); phy_data 959 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c reg = phy_read(phy_data->phydev, 0x00); phy_data 960 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_write(phy_data->phydev, 0x00, reg & ~0x00800); phy_data 968 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c linkmode_copy(phy_data->phydev->supported, supported); phy_data 969 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_support_asym_pause(phy_data->phydev); phy_data 989 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 994 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->phydev) phy_data 1001 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->phydev_mode == XGBE_MDIO_MODE_NONE) phy_data 1005 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if ((phy_data->port_mode == XGBE_PORT_MODE_SFP) && phy_data 1006 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c !phy_data->sfp_phy_avail) phy_data 1010 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = pdata->hw_if.set_ext_mii_mode(pdata, phy_data->mdio_addr, phy_data 1011 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phydev_mode); phy_data 1015 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->mdio_addr, phy_data->phydev_mode); phy_data 1020 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phydev = get_phy_device(phy_data->mii, phy_data->mdio_addr, phy_data 1021 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c (phy_data->phydev_mode == XGBE_MDIO_MODE_CL45)); phy_data 1046 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phydev = phydev; phy_data 1053 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_start_aneg(phy_data->phydev); phy_data 1060 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 1063 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (!phy_data->sfp_changed) phy_data 1066 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_phy_avail = 0; phy_data 1068 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_base != XGBE_SFP_BASE_1000_T) phy_data 1077 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_phy_avail = 1; phy_data 1080 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static bool xgbe_phy_check_sfp_rx_los(struct xgbe_phy_data *phy_data) phy_data 1082 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c u8 *sfp_extd = phy_data->sfp_eeprom.extd; phy_data 1087 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_gpio_mask & XGBE_GPIO_NO_RX_LOS) phy_data 1090 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_gpio_inputs & (1 << phy_data->sfp_gpio_rx_los)) phy_data 1096 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static bool xgbe_phy_check_sfp_tx_fault(struct xgbe_phy_data *phy_data) phy_data 1098 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c u8 *sfp_extd = phy_data->sfp_eeprom.extd; phy_data 1103 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_gpio_mask & XGBE_GPIO_NO_TX_FAULT) phy_data 1106 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_gpio_inputs & (1 << phy_data->sfp_gpio_tx_fault)) phy_data 1112 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static bool xgbe_phy_check_sfp_mod_absent(struct xgbe_phy_data *phy_data) phy_data 1114 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_gpio_mask & XGBE_GPIO_NO_MOD_ABSENT) phy_data 1117 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_gpio_inputs & (1 << phy_data->sfp_gpio_mod_absent)) phy_data 1125 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 1126 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_sfp_eeprom *sfp_eeprom = &phy_data->sfp_eeprom; phy_data 1138 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_tx_fault = xgbe_phy_check_sfp_tx_fault(phy_data); phy_data 1139 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_rx_los = xgbe_phy_check_sfp_rx_los(phy_data); phy_data 1143 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_cable = XGBE_SFP_CABLE_PASSIVE; phy_data 1144 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_cable_len = sfp_base[XGBE_SFP_BASE_CU_CABLE_LEN]; phy_data 1146 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_cable = XGBE_SFP_CABLE_ACTIVE; phy_data 1151 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_base = XGBE_SFP_BASE_10000_SR; phy_data 1153 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_base = XGBE_SFP_BASE_10000_LR; phy_data 1155 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_base = XGBE_SFP_BASE_10000_LRM; phy_data 1157 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_base = XGBE_SFP_BASE_10000_ER; phy_data 1159 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_base = XGBE_SFP_BASE_1000_SX; phy_data 1161 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_base = XGBE_SFP_BASE_1000_LX; phy_data 1163 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_base = XGBE_SFP_BASE_1000_CX; phy_data 1165 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_base = XGBE_SFP_BASE_1000_T; phy_data 1166 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c else if ((phy_data->sfp_cable == XGBE_SFP_CABLE_PASSIVE) && phy_data 1168 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_base = XGBE_SFP_BASE_10000_CR; phy_data 1170 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (phy_data->sfp_base) { phy_data 1172 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_speed = XGBE_SFP_SPEED_100_1000; phy_data 1177 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_speed = XGBE_SFP_SPEED_1000; phy_data 1184 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_speed = XGBE_SFP_SPEED_10000; phy_data 1235 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 1274 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (memcmp(&phy_data->sfp_eeprom, &sfp_eeprom, sizeof(sfp_eeprom))) { phy_data 1275 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_changed = 1; phy_data 1280 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c memcpy(&phy_data->sfp_eeprom, &sfp_eeprom, sizeof(sfp_eeprom)); phy_data 1284 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_changed = 0; phy_data 1295 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 1301 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_i2c_read(pdata, phy_data->sfp_gpio_address, phy_data 1310 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_gpio_inputs = (gpio_ports[1] << 8) | gpio_ports[0]; phy_data 1312 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_mod_absent = xgbe_phy_check_sfp_mod_absent(phy_data); phy_data 1317 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 1321 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_mod_absent = 1; phy_data 1322 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_phy_avail = 0; phy_data 1323 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c memset(&phy_data->sfp_eeprom, 0, sizeof(phy_data->sfp_eeprom)); phy_data 1326 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static void xgbe_phy_sfp_reset(struct xgbe_phy_data *phy_data) phy_data 1328 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_rx_los = 0; phy_data 1329 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_tx_fault = 0; phy_data 1330 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_mod_absent = 1; phy_data 1331 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_base = XGBE_SFP_BASE_UNKNOWN; phy_data 1332 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_cable = XGBE_SFP_CABLE_UNKNOWN; phy_data 1333 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_speed = XGBE_SFP_SPEED_UNKNOWN; phy_data 1338 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 1342 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sfp_reset(phy_data); phy_data 1350 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_mod_absent) { phy_data 1358 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sfp_reset(phy_data); phy_data 1376 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 1394 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_mode != XGBE_PORT_MODE_SFP) { phy_data 1404 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_mod_absent) { phy_data 1475 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 1477 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_mode != XGBE_PORT_MODE_SFP) phy_data 1483 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_mod_absent) phy_data 1486 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (XGBE_SFP_DIAGS_SUPPORTED(&phy_data->sfp_eeprom)) { phy_data 1500 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 1507 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (!phy_data->phydev) phy_data 1510 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c lcl_adv = linkmode_adv_to_lcl_adv_t(phy_data->phydev->advertising); phy_data 1512 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->phydev->pause) { phy_data 1516 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->phydev->asym_pause) { phy_data 1614 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 1635 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (phy_data->port_mode) { phy_data 1644 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (phy_data->port_mode) { phy_data 1652 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (phy_data->sfp_base) { phy_data 1654 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->phydev && phy_data 1655 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c (phy_data->phydev->speed == SPEED_100)) phy_data 1669 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->phydev && phy_data 1670 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c (phy_data->phydev->speed == SPEED_100)) phy_data 1767 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 1772 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (!phy_data->redrv) phy_data 1783 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (phy_data->port_mode) { phy_data 1796 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->phydev && phy_data 1797 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c (phy_data->phydev->speed == SPEED_10000)) phy_data 1806 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (phy_data->sfp_base) { phy_data 1827 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 1834 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (!phy_data->phydev) phy_data 1837 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phydev->autoneg = pdata->phy.autoneg; phy_data 1838 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c linkmode_and(phy_data->phydev->advertising, phy_data 1839 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phydev->supported, phy_data 1843 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phydev->speed = pdata->phy.speed; phy_data 1844 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phydev->duplex = pdata->phy.duplex; phy_data 1847 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = phy_start_aneg(phy_data->phydev); phy_data 1852 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static enum xgbe_an_mode xgbe_phy_an_sfp_mode(struct xgbe_phy_data *phy_data) phy_data 1854 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (phy_data->sfp_base) { phy_data 1868 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 1871 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->redrv) phy_data 1874 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (phy_data->port_mode) { phy_data 1890 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_an_sfp_mode(phy_data); phy_data 1899 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 1902 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c redrv_reg = XGBE_PHY_REDRV_MODE_REG + (phy_data->redrv_lane * 0x1000); phy_data 1905 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return pdata->hw_if.write_ext_mii_regs(pdata, phy_data->redrv_addr, phy_data 1912 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 1917 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c redrv_reg = XGBE_PHY_REDRV_MODE_REG + (phy_data->redrv_lane * 0x1000); phy_data 1926 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 1930 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (!phy_data->redrv) phy_data 1934 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if ((phy_data->port_mode == XGBE_PORT_MODE_SFP) && phy_data 1935 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c (phy_data->sfp_base != XGBE_SFP_BASE_1000_CX) && phy_data 1936 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c (phy_data->sfp_base != XGBE_SFP_BASE_10000_CR)) phy_data 1943 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->redrv_if) phy_data 1994 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 1999 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->cur_mode = XGBE_MODE_UNKNOWN; phy_data 2006 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2011 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_cable != XGBE_SFP_CABLE_PASSIVE) { phy_data 2014 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_cable_len <= 1) phy_data 2016 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c else if (phy_data->sfp_cable_len <= 3) phy_data 2022 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->cur_mode = XGBE_MODE_SFI; phy_data 2029 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2036 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->cur_mode = XGBE_MODE_X; phy_data 2043 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2050 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->cur_mode = XGBE_MODE_SGMII_1000; phy_data 2057 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2064 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->cur_mode = XGBE_MODE_SGMII_100; phy_data 2071 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2078 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->cur_mode = XGBE_MODE_KR; phy_data 2085 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2092 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->cur_mode = XGBE_MODE_KX_2500; phy_data 2099 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2106 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->cur_mode = XGBE_MODE_KX_1000; phy_data 2113 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2115 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return phy_data->cur_mode; phy_data 2120 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2123 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_mode != XGBE_PORT_MODE_10GBASE_T) phy_data 2155 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2157 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (phy_data->port_mode) { phy_data 2176 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static enum xgbe_mode xgbe_phy_get_basex_mode(struct xgbe_phy_data *phy_data, phy_data 2189 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static enum xgbe_mode xgbe_phy_get_baset_mode(struct xgbe_phy_data *phy_data, phy_data 2206 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static enum xgbe_mode xgbe_phy_get_sfp_mode(struct xgbe_phy_data *phy_data, phy_data 2213 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_base == XGBE_SFP_BASE_1000_T) phy_data 2250 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2252 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (phy_data->port_mode) { phy_data 2260 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_get_baset_mode(phy_data, speed); phy_data 2263 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_get_basex_mode(phy_data, speed); phy_data 2265 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_get_sfp_mode(phy_data, speed); phy_data 2360 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2364 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_base == XGBE_SFP_BASE_1000_T) phy_data 2369 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_base != XGBE_SFP_BASE_1000_T) phy_data 2374 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_base != XGBE_SFP_BASE_1000_T) phy_data 2379 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_mod_absent) phy_data 2425 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2427 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (phy_data->port_mode) { phy_data 2446 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static bool xgbe_phy_valid_speed_basex_mode(struct xgbe_phy_data *phy_data, phy_data 2451 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return (phy_data->port_mode == XGBE_PORT_MODE_1000BASE_X); phy_data 2453 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return (phy_data->port_mode == XGBE_PORT_MODE_10GBASE_R); phy_data 2459 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static bool xgbe_phy_valid_speed_baset_mode(struct xgbe_phy_data *phy_data, phy_data 2467 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return (phy_data->port_mode == XGBE_PORT_MODE_NBASE_T); phy_data 2469 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return (phy_data->port_mode == XGBE_PORT_MODE_10GBASE_T); phy_data 2475 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static bool xgbe_phy_valid_speed_sfp_mode(struct xgbe_phy_data *phy_data, phy_data 2480 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return (phy_data->sfp_speed == XGBE_SFP_SPEED_100_1000); phy_data 2482 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return ((phy_data->sfp_speed == XGBE_SFP_SPEED_100_1000) || phy_data 2483 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c (phy_data->sfp_speed == XGBE_SFP_SPEED_1000)); phy_data 2485 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return (phy_data->sfp_speed == XGBE_SFP_SPEED_10000); phy_data 2514 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2516 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (phy_data->port_mode) { phy_data 2524 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_valid_speed_baset_mode(phy_data, speed); phy_data 2527 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_valid_speed_basex_mode(phy_data, speed); phy_data 2529 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return xgbe_phy_valid_speed_sfp_mode(phy_data, speed); phy_data 2537 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2543 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_mode == XGBE_PORT_MODE_SFP) { phy_data 2547 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_changed) { phy_data 2552 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->sfp_mod_absent || phy_data->sfp_rx_los) phy_data 2556 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->phydev) { phy_data 2558 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = phy_read_status(phy_data->phydev); phy_data 2563 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c !phy_aneg_done(phy_data->phydev)) phy_data 2566 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (!phy_data->phydev->link) phy_data 2579 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->rrc_count++ > XGBE_RRC_FREQUENCY) { phy_data 2580 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->rrc_count = 0; phy_data 2589 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2591 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_gpio_address = XGBE_GPIO_ADDRESS_PCA9555 + phy_data 2595 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_gpio_mask = XP_GET_BITS(pdata->pp3, XP_PROP_3, phy_data 2598 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_gpio_rx_los = XP_GET_BITS(pdata->pp3, XP_PROP_3, phy_data 2600 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_gpio_tx_fault = XP_GET_BITS(pdata->pp3, XP_PROP_3, phy_data 2602 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_gpio_mod_absent = XP_GET_BITS(pdata->pp3, XP_PROP_3, phy_data 2604 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_gpio_rate_select = XP_GET_BITS(pdata->pp3, XP_PROP_3, phy_data 2609 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_gpio_address); phy_data 2611 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_gpio_mask); phy_data 2613 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_gpio_rx_los); phy_data 2615 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_gpio_tx_fault); phy_data 2617 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_gpio_mod_absent); phy_data 2619 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_gpio_rate_select); phy_data 2625 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2633 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_comm = XGBE_SFP_COMM_PCA9545; phy_data 2634 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_mux_address = (mux_addr_hi << 2) + mux_addr_lo; phy_data 2635 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_mux_channel = XP_GET_BITS(pdata->pp4, XP_PROP_4, phy_data 2640 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_mux_address); phy_data 2642 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->sfp_mux_channel); phy_data 2654 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2657 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = pdata->hw_if.set_gpio(pdata, phy_data->mdio_reset_gpio); phy_data 2661 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = pdata->hw_if.clr_gpio(pdata, phy_data->mdio_reset_gpio); phy_data 2668 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2674 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_i2c_read(pdata, phy_data->mdio_reset_addr, phy_data 2686 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->mdio_reset_gpio < 8) phy_data 2687 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c gpio_data[1] |= (1 << (phy_data->mdio_reset_gpio % 8)); phy_data 2689 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c gpio_data[2] |= (1 << (phy_data->mdio_reset_gpio % 8)); phy_data 2692 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_i2c_write(pdata, phy_data->mdio_reset_addr, phy_data 2698 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->mdio_reset_gpio < 8) phy_data 2699 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c gpio_data[1] &= ~(1 << (phy_data->mdio_reset_gpio % 8)); phy_data 2701 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c gpio_data[2] &= ~(1 << (phy_data->mdio_reset_gpio % 8)); phy_data 2704 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = xgbe_phy_i2c_write(pdata, phy_data->mdio_reset_addr, phy_data 2712 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2715 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->conn_type != XGBE_CONN_TYPE_MDIO) phy_data 2722 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->mdio_reset == XGBE_MDIO_RESET_I2C_GPIO) phy_data 2724 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c else if (phy_data->mdio_reset == XGBE_MDIO_RESET_INT_GPIO) phy_data 2732 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c static bool xgbe_phy_redrv_error(struct xgbe_phy_data *phy_data) phy_data 2734 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (!phy_data->redrv) phy_data 2737 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->redrv_if >= XGBE_PHY_REDRV_IF_MAX) phy_data 2740 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (phy_data->redrv_model) { phy_data 2742 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->redrv_lane > 3) phy_data 2746 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->redrv_lane > 1) phy_data 2758 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2760 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->conn_type != XGBE_CONN_TYPE_MDIO) phy_data 2763 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->mdio_reset = XP_GET_BITS(pdata->pp3, XP_PROP_3, MDIO_RESET); phy_data 2764 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (phy_data->mdio_reset) { phy_data 2771 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->mdio_reset); phy_data 2775 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->mdio_reset == XGBE_MDIO_RESET_I2C_GPIO) { phy_data 2776 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->mdio_reset_addr = XGBE_GPIO_ADDRESS_PCA9555 + phy_data 2779 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->mdio_reset_gpio = XP_GET_BITS(pdata->pp3, XP_PROP_3, phy_data 2781 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c } else if (phy_data->mdio_reset == XGBE_MDIO_RESET_INT_GPIO) { phy_data 2782 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->mdio_reset_gpio = XP_GET_BITS(pdata->pp3, XP_PROP_3, phy_data 2791 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2793 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (phy_data->port_mode) { phy_data 2795 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if ((phy_data->port_speeds & XGBE_PHY_PORT_SPEED_1000) || phy_data 2796 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_10000)) phy_data 2800 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_2500) phy_data 2804 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if ((phy_data->port_speeds & XGBE_PHY_PORT_SPEED_100) || phy_data 2805 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_1000)) phy_data 2809 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_1000) phy_data 2813 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if ((phy_data->port_speeds & XGBE_PHY_PORT_SPEED_100) || phy_data 2814 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_1000) || phy_data 2815 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_2500)) phy_data 2819 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if ((phy_data->port_speeds & XGBE_PHY_PORT_SPEED_100) || phy_data 2820 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_1000) || phy_data 2821 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_10000)) phy_data 2825 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_10000) phy_data 2829 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if ((phy_data->port_speeds & XGBE_PHY_PORT_SPEED_100) || phy_data 2830 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_1000) || phy_data 2831 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_10000)) phy_data 2843 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2845 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (phy_data->port_mode) { phy_data 2848 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->conn_type == XGBE_CONN_TYPE_BACKPLANE) phy_data 2856 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->conn_type == XGBE_CONN_TYPE_MDIO) phy_data 2860 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->conn_type == XGBE_CONN_TYPE_SFP) phy_data 2882 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2887 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (!phy_data->phy_cdr_notrack) phy_data 2890 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c usleep_range(phy_data->phy_cdr_delay, phy_data 2891 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phy_cdr_delay + 500); phy_data 2897 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phy_cdr_notrack = 0; phy_data 2902 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2907 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->phy_cdr_notrack) phy_data 2916 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phy_cdr_notrack = 1; phy_data 2933 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2938 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->cur_mode != XGBE_MODE_KR) phy_data 2948 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->phy_cdr_delay < XGBE_CDR_DELAY_MAX) phy_data 2949 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phy_cdr_delay += XGBE_CDR_DELAY_INC; phy_data 2951 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phy_cdr_delay = XGBE_CDR_DELAY_INIT; phy_data 2962 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2967 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->cur_mode != XGBE_MODE_KR) phy_data 2979 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 2985 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_sfp_reset(phy_data); phy_data 3000 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 3009 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->redrv && !phy_data->redrv_if) { phy_data 3010 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = pdata->hw_if.set_ext_mii_mode(pdata, phy_data->redrv_addr, phy_data 3015 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->redrv_addr); phy_data 3021 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_set_mode(pdata, phy_data->start_mode); phy_data 3027 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (phy_data->port_mode) { phy_data 3050 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 3055 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c cur_mode = phy_data->cur_mode; phy_data 3059 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (!phy_data->phydev) phy_data 3067 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c return phy_init_hw(phy_data->phydev); phy_data 3072 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data = pdata->phy_data; phy_data 3075 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c mdiobus_unregister(phy_data->mii); phy_data 3081 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c struct xgbe_phy_data *phy_data; phy_data 3096 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data = devm_kzalloc(pdata->dev, sizeof(*phy_data), GFP_KERNEL); phy_data 3097 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (!phy_data) phy_data 3099 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->phy_data = phy_data; phy_data 3101 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->port_mode = XP_GET_BITS(pdata->pp0, XP_PROP_0, PORT_MODE); phy_data 3102 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->port_id = XP_GET_BITS(pdata->pp0, XP_PROP_0, PORT_ID); phy_data 3103 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->port_speeds = XP_GET_BITS(pdata->pp0, XP_PROP_0, PORT_SPEEDS); phy_data 3104 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->conn_type = XP_GET_BITS(pdata->pp0, XP_PROP_0, CONN_TYPE); phy_data 3105 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->mdio_addr = XP_GET_BITS(pdata->pp0, XP_PROP_0, MDIO_ADDR); phy_data 3107 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "port mode=%u\n", phy_data->port_mode); phy_data 3108 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "port id=%u\n", phy_data->port_id); phy_data 3109 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "port speeds=%#x\n", phy_data->port_speeds); phy_data 3110 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "conn type=%u\n", phy_data->conn_type); phy_data 3111 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "mdio addr=%u\n", phy_data->mdio_addr); phy_data 3114 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->redrv = XP_GET_BITS(pdata->pp4, XP_PROP_4, REDRV_PRESENT); phy_data 3115 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->redrv_if = XP_GET_BITS(pdata->pp4, XP_PROP_4, REDRV_IF); phy_data 3116 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->redrv_addr = XP_GET_BITS(pdata->pp4, XP_PROP_4, REDRV_ADDR); phy_data 3117 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->redrv_lane = XP_GET_BITS(pdata->pp4, XP_PROP_4, REDRV_LANE); phy_data 3118 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->redrv_model = XP_GET_BITS(pdata->pp4, XP_PROP_4, REDRV_MODEL); phy_data 3119 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->redrv && netif_msg_probe(pdata)) { phy_data 3121 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "redrv i/f=%u\n", phy_data->redrv_if); phy_data 3122 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "redrv addr=%#x\n", phy_data->redrv_addr); phy_data 3123 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "redrv lane=%u\n", phy_data->redrv_lane); phy_data 3124 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c dev_dbg(pdata->dev, "redrv model=%u\n", phy_data->redrv_model); phy_data 3130 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->port_mode, phy_data->conn_type); phy_data 3137 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->port_mode, phy_data->port_speeds); phy_data 3147 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (xgbe_phy_redrv_error(phy_data)) { phy_data 3151 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c pdata->kr_redrv = phy_data->redrv; phy_data 3154 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->cur_mode = XGBE_MODE_UNKNOWN; phy_data 3159 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c switch (phy_data->port_mode) { phy_data 3166 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_1000) { phy_data 3168 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->start_mode = XGBE_MODE_KX_1000; phy_data 3170 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_10000) { phy_data 3174 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->start_mode = XGBE_MODE_KR; phy_data 3177 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phydev_mode = XGBE_MDIO_MODE_NONE; phy_data 3184 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->start_mode = XGBE_MODE_KX_2500; phy_data 3186 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phydev_mode = XGBE_MDIO_MODE_NONE; phy_data 3195 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_100) { phy_data 3197 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->start_mode = XGBE_MODE_SGMII_100; phy_data 3199 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_1000) { phy_data 3201 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->start_mode = XGBE_MODE_SGMII_1000; phy_data 3204 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phydev_mode = XGBE_MDIO_MODE_CL22; phy_data 3214 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->start_mode = XGBE_MODE_X; phy_data 3216 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phydev_mode = XGBE_MDIO_MODE_CL22; phy_data 3225 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_100) { phy_data 3227 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->start_mode = XGBE_MODE_SGMII_100; phy_data 3229 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_1000) { phy_data 3231 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->start_mode = XGBE_MODE_SGMII_1000; phy_data 3233 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_2500) { phy_data 3235 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->start_mode = XGBE_MODE_KX_2500; phy_data 3238 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phydev_mode = XGBE_MDIO_MODE_CL45; phy_data 3247 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_100) { phy_data 3249 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->start_mode = XGBE_MODE_SGMII_100; phy_data 3251 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_1000) { phy_data 3253 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->start_mode = XGBE_MODE_SGMII_1000; phy_data 3255 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_10000) { phy_data 3257 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->start_mode = XGBE_MODE_KR; phy_data 3260 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phydev_mode = XGBE_MDIO_MODE_CL45; phy_data 3275 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->start_mode = XGBE_MODE_SFI; phy_data 3277 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phydev_mode = XGBE_MDIO_MODE_NONE; phy_data 3287 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_100) phy_data 3288 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->start_mode = XGBE_MODE_SGMII_100; phy_data 3289 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_1000) phy_data 3290 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->start_mode = XGBE_MODE_SGMII_1000; phy_data 3291 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->port_speeds & XGBE_PHY_PORT_SPEED_10000) phy_data 3292 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->start_mode = XGBE_MODE_SFI; phy_data 3294 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phydev_mode = XGBE_MDIO_MODE_CL22; phy_data 3307 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if ((phy_data->conn_type & XGBE_CONN_TYPE_MDIO) && phy_data 3308 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c (phy_data->phydev_mode != XGBE_MDIO_MODE_NONE)) { phy_data 3309 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = pdata->hw_if.set_ext_mii_mode(pdata, phy_data->mdio_addr, phy_data 3310 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phydev_mode); phy_data 3314 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->mdio_addr, phy_data->phydev_mode); phy_data 3319 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (phy_data->redrv && !phy_data->redrv_if) { phy_data 3320 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c ret = pdata->hw_if.set_ext_mii_mode(pdata, phy_data->redrv_addr, phy_data 3325 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->redrv_addr); phy_data 3330 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->phy_cdr_delay = XGBE_CDR_DELAY_INIT; phy_data 3351 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c phy_data->mii = mii; phy_data 1241 drivers/net/ethernet/amd/xgbe/xgbe.h void *phy_data; phy_data 62 drivers/net/ethernet/atheros/alx/hw.c u16 reg, u16 *phy_data) phy_data 67 drivers/net/ethernet/atheros/alx/hw.c *phy_data = 0; phy_data 94 drivers/net/ethernet/atheros/alx/hw.c *phy_data = ALX_GET_FIELD(val, ALX_MDIO_DATA); phy_data 99 drivers/net/ethernet/atheros/alx/hw.c u16 reg, u16 phy_data) phy_data 115 drivers/net/ethernet/atheros/alx/hw.c phy_data << ALX_MDIO_DATA_SHIFT | phy_data 121 drivers/net/ethernet/atheros/alx/hw.c phy_data << ALX_MDIO_DATA_SHIFT | phy_data 129 drivers/net/ethernet/atheros/alx/hw.c static int __alx_read_phy_reg(struct alx_hw *hw, u16 reg, u16 *phy_data) phy_data 131 drivers/net/ethernet/atheros/alx/hw.c return alx_read_phy_core(hw, false, 0, reg, phy_data); phy_data 134 drivers/net/ethernet/atheros/alx/hw.c static int __alx_write_phy_reg(struct alx_hw *hw, u16 reg, u16 phy_data) phy_data 136 drivers/net/ethernet/atheros/alx/hw.c return alx_write_phy_core(hw, false, 0, reg, phy_data); phy_data 171 drivers/net/ethernet/atheros/alx/hw.c int alx_read_phy_reg(struct alx_hw *hw, u16 reg, u16 *phy_data) phy_data 176 drivers/net/ethernet/atheros/alx/hw.c err = __alx_read_phy_reg(hw, reg, phy_data); phy_data 182 drivers/net/ethernet/atheros/alx/hw.c int alx_write_phy_reg(struct alx_hw *hw, u16 reg, u16 phy_data) phy_data 187 drivers/net/ethernet/atheros/alx/hw.c err = __alx_write_phy_reg(hw, reg, phy_data); phy_data 552 drivers/net/ethernet/atheros/alx/hw.h int alx_read_phy_reg(struct alx_hw *hw, u16 reg, u16 *phy_data); phy_data 553 drivers/net/ethernet/atheros/alx/hw.h int alx_write_phy_reg(struct alx_hw *hw, u16 reg, u16 phy_data); phy_data 132 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c u16 phy_data; phy_data 160 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c atl1c_read_phy_reg(hw, MII_BMCR, &phy_data); phy_data 161 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c regs_buff[AT_REGS_LEN/sizeof(u32) - 2] = (u32) phy_data; phy_data 162 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c atl1c_read_phy_reg(hw, MII_BMSR, &phy_data); phy_data 163 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c regs_buff[AT_REGS_LEN/sizeof(u32) - 1] = (u32) phy_data; phy_data 75 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c u16 phy_data; phy_data 96 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c atl1c_read_phy_dbg(hw, MIIDBG_ANACTRL, &phy_data); phy_data 97 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c phy_data &= ~ANACTRL_HB_EN; phy_data 98 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c atl1c_write_phy_dbg(hw, MIIDBG_ANACTRL, phy_data); phy_data 99 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c atl1c_read_phy_dbg(hw, MIIDBG_VOLT_CTRL, &phy_data); phy_data 100 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c phy_data |= VOLT_CTRL_SWLOWEST; phy_data 101 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c atl1c_write_phy_dbg(hw, MIIDBG_VOLT_CTRL, phy_data); phy_data 125 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c atl1c_read_phy_dbg(hw, MIIDBG_ANACTRL, &phy_data); phy_data 126 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c phy_data |= ANACTRL_HB_EN; phy_data 127 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c atl1c_write_phy_dbg(hw, MIIDBG_ANACTRL, phy_data); phy_data 128 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c atl1c_read_phy_dbg(hw, MIIDBG_VOLT_CTRL, &phy_data); phy_data 129 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c phy_data &= ~VOLT_CTRL_SWLOWEST; phy_data 130 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c atl1c_write_phy_dbg(hw, MIIDBG_VOLT_CTRL, phy_data); phy_data 303 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c u16 reg, u16 *phy_data) phy_data 310 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c *phy_data = 0; phy_data 337 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c *phy_data = (u16)FIELD_GETX(val, MDIO_CTRL_DATA); phy_data 352 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c u16 reg, u16 phy_data) phy_data 370 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c FIELDX(MDIO_CTRL_DATA, phy_data) | phy_data 376 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c FIELDX(MDIO_CTRL_DATA, phy_data) | phy_data 395 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c int atl1c_read_phy_reg(struct atl1c_hw *hw, u16 reg_addr, u16 *phy_data) phy_data 397 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c return atl1c_read_phy_core(hw, false, 0, reg_addr, phy_data); phy_data 406 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c int atl1c_write_phy_reg(struct atl1c_hw *hw, u32 reg_addr, u16 phy_data) phy_data 408 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c return atl1c_write_phy_core(hw, false, 0, reg_addr, phy_data); phy_data 413 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c u16 reg_addr, u16 *phy_data) phy_data 415 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c return atl1c_read_phy_core(hw, true, dev_addr, reg_addr, phy_data); phy_data 420 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c u16 reg_addr, u16 phy_data) phy_data 422 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c return atl1c_write_phy_core(hw, true, dev_addr, reg_addr, phy_data); phy_data 425 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c int atl1c_read_phy_dbg(struct atl1c_hw *hw, u16 reg_addr, u16 *phy_data) phy_data 433 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c err = atl1c_read_phy_reg(hw, MII_DBG_DATA, phy_data); phy_data 438 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c int atl1c_write_phy_dbg(struct atl1c_hw *hw, u16 reg_addr, u16 phy_data) phy_data 446 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c err = atl1c_write_phy_reg(hw, MII_DBG_DATA, phy_data); phy_data 501 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c u16 phy_data; phy_data 523 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c atl1c_read_phy_dbg(hw, MIIDBG_CFGLPSPD, &phy_data); phy_data 525 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c phy_data & ~CFGLPSPD_RSTCNT_CLK125SW); phy_data 530 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c atl1c_read_phy_dbg(hw, MIIDBG_CABLE1TH_DET, &phy_data); phy_data 531 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c phy_data |= CABLE1TH_DET_EN; phy_data 532 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c atl1c_write_phy_dbg(hw, MIIDBG_CABLE1TH_DET, phy_data); phy_data 538 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c atl1c_read_phy_dbg(hw, MIIDBG_VOLT_CTRL, &phy_data); phy_data 539 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c phy_data &= ~VOLT_CTRL_SWLOWEST; phy_data 540 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c atl1c_write_phy_dbg(hw, MIIDBG_VOLT_CTRL, phy_data); phy_data 543 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c phy_data = phy_data 546 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c atl1c_write_phy_dbg(hw, MIIDBG_LEGCYPS, phy_data); phy_data 552 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c atl1c_read_phy_dbg(hw, MIIDBG_LEGCYPS, &phy_data); phy_data 554 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c phy_data & ~LEGCYPS_EN); phy_data 556 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c atl1c_read_phy_dbg(hw, MIIDBG_HIBNEG, &phy_data); phy_data 558 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c phy_data & HIBNEG_PSHIB_EN); phy_data 579 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c phy_data = IER_LINK_UP | IER_LINK_DOWN; phy_data 580 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c err = atl1c_write_phy_reg(hw, MII_IER, phy_data); phy_data 649 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c u16 phy_data; phy_data 652 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c err = atl1c_read_phy_reg(hw, MII_GIGA_PSSR, &phy_data); phy_data 656 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c if (!(phy_data & GIGA_PSSR_SPD_DPLX_RESOLVED)) phy_data 659 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c switch (phy_data & GIGA_PSSR_SPEED) { phy_data 673 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c if (phy_data & GIGA_PSSR_DPLX) phy_data 689 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c u16 phy_data; phy_data 695 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c atl1c_read_phy_reg(hw, MII_BMSR, &phy_data); phy_data 696 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c atl1c_read_phy_reg(hw, MII_BMSR, &phy_data); phy_data 697 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c if (phy_data & BMSR_LSTATUS) { phy_data 720 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c atl1c_read_phy_reg(hw, MII_BMSR, &phy_data); phy_data 721 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c atl1c_read_phy_reg(hw, MII_BMSR, &phy_data); phy_data 722 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c if (phy_data & BMSR_LSTATUS) { phy_data 760 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c u16 phy_data; phy_data 803 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c atl1c_read_phy_reg(hw, MII_ISR, &phy_data); phy_data 32 drivers/net/ethernet/atheros/atl1c/atl1c_hw.h int atl1c_read_phy_reg(struct atl1c_hw *hw, u16 reg_addr, u16 *phy_data); phy_data 33 drivers/net/ethernet/atheros/atl1c/atl1c_hw.h int atl1c_write_phy_reg(struct atl1c_hw *hw, u32 reg_addr, u16 phy_data); phy_data 44 drivers/net/ethernet/atheros/atl1c/atl1c_hw.h u16 reg, u16 *phy_data); phy_data 46 drivers/net/ethernet/atheros/atl1c/atl1c_hw.h u16 reg, u16 phy_data); phy_data 48 drivers/net/ethernet/atheros/atl1c/atl1c_hw.h u16 reg_addr, u16 *phy_data); phy_data 50 drivers/net/ethernet/atheros/atl1c/atl1c_hw.h u16 reg_addr, u16 phy_data); phy_data 51 drivers/net/ethernet/atheros/atl1c/atl1c_hw.h int atl1c_read_phy_dbg(struct atl1c_hw *hw, u16 reg_addr, u16 *phy_data); phy_data 52 drivers/net/ethernet/atheros/atl1c/atl1c_hw.h int atl1c_write_phy_dbg(struct atl1c_hw *hw, u16 reg_addr, u16 phy_data); phy_data 239 drivers/net/ethernet/atheros/atl1c/atl1c_main.c u16 speed, duplex, phy_data; phy_data 243 drivers/net/ethernet/atheros/atl1c/atl1c_main.c atl1c_read_phy_reg(hw, MII_BMSR, &phy_data); phy_data 244 drivers/net/ethernet/atheros/atl1c/atl1c_main.c atl1c_read_phy_reg(hw, MII_BMSR, &phy_data); phy_data 247 drivers/net/ethernet/atheros/atl1c/atl1c_main.c if ((phy_data & BMSR_LSTATUS) == 0) { phy_data 291 drivers/net/ethernet/atheros/atl1c/atl1c_main.c u16 phy_data; phy_data 295 drivers/net/ethernet/atheros/atl1c/atl1c_main.c atl1c_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); phy_data 296 drivers/net/ethernet/atheros/atl1c/atl1c_main.c atl1c_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); phy_data 298 drivers/net/ethernet/atheros/atl1c/atl1c_main.c link_up = phy_data & BMSR_LSTATUS; phy_data 1529 drivers/net/ethernet/atheros/atl1c/atl1c_main.c u16 phy_data; phy_data 1532 drivers/net/ethernet/atheros/atl1c/atl1c_main.c atl1c_read_phy_reg(&adapter->hw, MII_ISR, &phy_data); phy_data 151 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c u16 phy_data; phy_data 188 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c atl1e_read_phy_reg(hw, MII_BMCR, &phy_data); phy_data 189 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c regs_buff[73] = (u32)phy_data; phy_data 190 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c atl1e_read_phy_reg(hw, MII_BMSR, &phy_data); phy_data 191 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c regs_buff[74] = (u32)phy_data; phy_data 200 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c int atl1e_read_phy_reg(struct atl1e_hw *hw, u16 reg_addr, u16 *phy_data) phy_data 221 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c *phy_data = (u16)val; phy_data 234 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c int atl1e_write_phy_reg(struct atl1e_hw *hw, u32 reg_addr, u16 phy_data) phy_data 239 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c val = ((u32)(phy_data & MDIO_DATA_MASK)) << MDIO_DATA_SHIFT | phy_data 378 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c u16 phy_data; phy_data 380 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c phy_data = BMCR_RESET | BMCR_ANENABLE | BMCR_ANRESTART; phy_data 382 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c ret_val = atl1e_write_phy_reg(hw, MII_BMCR, phy_data); phy_data 586 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c u16 phy_data; phy_data 589 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c err = atl1e_read_phy_reg(hw, MII_AT001_PSSR, &phy_data); phy_data 593 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c if (!(phy_data & MII_AT001_PSSR_SPD_DPLX_RESOLVED)) phy_data 596 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c switch (phy_data & MII_AT001_PSSR_SPEED) { phy_data 610 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c if (phy_data & MII_AT001_PSSR_DPLX) phy_data 27 drivers/net/ethernet/atheros/atl1e/atl1e_hw.h s32 atl1e_read_phy_reg(struct atl1e_hw *hw, u16 reg_addr, u16 *phy_data); phy_data 28 drivers/net/ethernet/atheros/atl1e/atl1e_hw.h s32 atl1e_write_phy_reg(struct atl1e_hw *hw, u32 reg_addr, u16 phy_data); phy_data 156 drivers/net/ethernet/atheros/atl1e/atl1e_main.c u16 speed, duplex, phy_data; phy_data 159 drivers/net/ethernet/atheros/atl1e/atl1e_main.c atl1e_read_phy_reg(hw, MII_BMSR, &phy_data); phy_data 160 drivers/net/ethernet/atheros/atl1e/atl1e_main.c atl1e_read_phy_reg(hw, MII_BMSR, &phy_data); phy_data 161 drivers/net/ethernet/atheros/atl1e/atl1e_main.c if ((phy_data & BMSR_LSTATUS) == 0) { phy_data 219 drivers/net/ethernet/atheros/atl1e/atl1e_main.c u16 phy_data = 0; phy_data 223 drivers/net/ethernet/atheros/atl1e/atl1e_main.c atl1e_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); phy_data 224 drivers/net/ethernet/atheros/atl1e/atl1e_main.c atl1e_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); phy_data 226 drivers/net/ethernet/atheros/atl1e/atl1e_main.c link_up = phy_data & BMSR_LSTATUS; phy_data 1222 drivers/net/ethernet/atheros/atl1e/atl1e_main.c u16 phy_data; phy_data 1225 drivers/net/ethernet/atheros/atl1e/atl1e_main.c atl1e_read_phy_reg(&adapter->hw, MII_INT_STATUS, &phy_data); phy_data 342 drivers/net/ethernet/atheros/atlx/atl1.c static s32 atl1_read_phy_reg(struct atl1_hw *hw, u16 reg_addr, u16 *phy_data) phy_data 360 drivers/net/ethernet/atheros/atlx/atl1.c *phy_data = (u16) val; phy_data 589 drivers/net/ethernet/atheros/atlx/atl1.c static s32 atl1_write_phy_reg(struct atl1_hw *hw, u32 reg_addr, u16 phy_data) phy_data 594 drivers/net/ethernet/atheros/atlx/atl1.c val = ((u32) (phy_data & MDIO_DATA_MASK)) << MDIO_DATA_SHIFT | phy_data 640 drivers/net/ethernet/atheros/atlx/atl1.c u16 phy_data; phy_data 644 drivers/net/ethernet/atheros/atlx/atl1.c phy_data = MII_CR_RESET | MII_CR_AUTO_NEG_EN; phy_data 648 drivers/net/ethernet/atheros/atlx/atl1.c phy_data = phy_data 653 drivers/net/ethernet/atheros/atlx/atl1.c phy_data = MII_CR_SPEED_100 | MII_CR_RESET; phy_data 656 drivers/net/ethernet/atheros/atlx/atl1.c phy_data = phy_data 661 drivers/net/ethernet/atheros/atlx/atl1.c phy_data = MII_CR_SPEED_10 | MII_CR_RESET; phy_data 666 drivers/net/ethernet/atheros/atlx/atl1.c ret_val = atl1_write_phy_reg(hw, MII_BMCR, phy_data); phy_data 872 drivers/net/ethernet/atheros/atlx/atl1.c u16 phy_data; phy_data 875 drivers/net/ethernet/atheros/atlx/atl1.c ret_val = atl1_read_phy_reg(hw, MII_ATLX_PSSR, &phy_data); phy_data 879 drivers/net/ethernet/atheros/atlx/atl1.c if (!(phy_data & MII_ATLX_PSSR_SPD_DPLX_RESOLVED)) phy_data 882 drivers/net/ethernet/atheros/atlx/atl1.c switch (phy_data & MII_ATLX_PSSR_SPEED) { phy_data 897 drivers/net/ethernet/atheros/atlx/atl1.c if (phy_data & MII_ATLX_PSSR_DPLX) phy_data 1285 drivers/net/ethernet/atheros/atlx/atl1.c u16 speed, duplex, phy_data; phy_data 1289 drivers/net/ethernet/atheros/atlx/atl1.c atl1_read_phy_reg(hw, MII_BMSR, &phy_data); phy_data 1290 drivers/net/ethernet/atheros/atlx/atl1.c atl1_read_phy_reg(hw, MII_BMSR, &phy_data); phy_data 1291 drivers/net/ethernet/atheros/atlx/atl1.c if (!(phy_data & BMSR_LSTATUS)) { phy_data 1363 drivers/net/ethernet/atheros/atlx/atl1.c phy_data = MII_CR_FULL_DUPLEX | MII_CR_SPEED_100 | phy_data 1367 drivers/net/ethernet/atheros/atlx/atl1.c phy_data = MII_CR_SPEED_100 | MII_CR_RESET; phy_data 1370 drivers/net/ethernet/atheros/atlx/atl1.c phy_data = phy_data 1375 drivers/net/ethernet/atheros/atlx/atl1.c phy_data = MII_CR_SPEED_10 | MII_CR_RESET; phy_data 1378 drivers/net/ethernet/atheros/atlx/atl1.c atl1_write_phy_reg(hw, MII_BMCR, phy_data); phy_data 3255 drivers/net/ethernet/atheros/atlx/atl1.c u16 phy_data; phy_data 3301 drivers/net/ethernet/atheros/atlx/atl1.c phy_data = MII_CR_RESET | MII_CR_AUTO_NEG_EN; phy_data 3305 drivers/net/ethernet/atheros/atlx/atl1.c phy_data = phy_data 3310 drivers/net/ethernet/atheros/atlx/atl1.c phy_data = MII_CR_SPEED_100 | MII_CR_RESET; phy_data 3313 drivers/net/ethernet/atheros/atlx/atl1.c phy_data = phy_data 3318 drivers/net/ethernet/atheros/atlx/atl1.c phy_data = MII_CR_SPEED_10 | MII_CR_RESET; phy_data 3322 drivers/net/ethernet/atheros/atlx/atl1.c atl1_write_phy_reg(hw, MII_BMCR, phy_data); phy_data 3598 drivers/net/ethernet/atheros/atlx/atl1.c u16 phy_data; phy_data 3603 drivers/net/ethernet/atheros/atlx/atl1.c phy_data = MII_CR_RESET | MII_CR_AUTO_NEG_EN; phy_data 3607 drivers/net/ethernet/atheros/atlx/atl1.c phy_data = MII_CR_FULL_DUPLEX | phy_data 3611 drivers/net/ethernet/atheros/atlx/atl1.c phy_data = MII_CR_SPEED_100 | MII_CR_RESET; phy_data 3614 drivers/net/ethernet/atheros/atlx/atl1.c phy_data = MII_CR_FULL_DUPLEX | phy_data 3619 drivers/net/ethernet/atheros/atlx/atl1.c phy_data = MII_CR_SPEED_10 | MII_CR_RESET; phy_data 3622 drivers/net/ethernet/atheros/atlx/atl1.c atl1_write_phy_reg(hw, MII_BMCR, phy_data); phy_data 556 drivers/net/ethernet/atheros/atlx/atl2.c u16 phy_data = 0; phy_data 559 drivers/net/ethernet/atheros/atlx/atl2.c atl2_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); phy_data 560 drivers/net/ethernet/atheros/atlx/atl2.c atl2_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); phy_data 564 drivers/net/ethernet/atheros/atlx/atl2.c if (!(phy_data & BMSR_LSTATUS)) { /* Link Down */ phy_data 578 drivers/net/ethernet/atheros/atlx/atl2.c u16 phy_data; phy_data 580 drivers/net/ethernet/atheros/atlx/atl2.c atl2_read_phy_reg(&adapter->hw, 19, &phy_data); phy_data 1155 drivers/net/ethernet/atheros/atlx/atl2.c u16 speed, duplex, phy_data; phy_data 1159 drivers/net/ethernet/atheros/atlx/atl2.c atl2_read_phy_reg(hw, MII_BMSR, &phy_data); phy_data 1160 drivers/net/ethernet/atheros/atlx/atl2.c atl2_read_phy_reg(hw, MII_BMSR, &phy_data); phy_data 1161 drivers/net/ethernet/atheros/atlx/atl2.c if (!(phy_data&BMSR_LSTATUS)) { /* link down */ phy_data 1844 drivers/net/ethernet/atheros/atlx/atl2.c u16 phy_data; phy_data 1890 drivers/net/ethernet/atheros/atlx/atl2.c atl2_read_phy_reg(hw, MII_BMCR, &phy_data); phy_data 1891 drivers/net/ethernet/atheros/atlx/atl2.c regs_buff[40] = (u32)phy_data; phy_data 1892 drivers/net/ethernet/atheros/atlx/atl2.c atl2_read_phy_reg(hw, MII_BMSR, &phy_data); phy_data 1893 drivers/net/ethernet/atheros/atlx/atl2.c regs_buff[41] = (u32)phy_data; phy_data 2457 drivers/net/ethernet/atheros/atlx/atl2.c u16 phy_data; phy_data 2460 drivers/net/ethernet/atheros/atlx/atl2.c ret_val = atl2_read_phy_reg(hw, MII_ATLX_PSSR, &phy_data); phy_data 2464 drivers/net/ethernet/atheros/atlx/atl2.c if (!(phy_data & MII_ATLX_PSSR_SPD_DPLX_RESOLVED)) phy_data 2467 drivers/net/ethernet/atheros/atlx/atl2.c switch (phy_data & MII_ATLX_PSSR_SPEED) { phy_data 2478 drivers/net/ethernet/atheros/atlx/atl2.c if (phy_data & MII_ATLX_PSSR_DPLX) phy_data 2491 drivers/net/ethernet/atheros/atlx/atl2.c static s32 atl2_read_phy_reg(struct atl2_hw *hw, u16 reg_addr, u16 *phy_data) phy_data 2513 drivers/net/ethernet/atheros/atlx/atl2.c *phy_data = (u16)val; phy_data 2526 drivers/net/ethernet/atheros/atlx/atl2.c static s32 atl2_write_phy_reg(struct atl2_hw *hw, u32 reg_addr, u16 phy_data) phy_data 2531 drivers/net/ethernet/atheros/atlx/atl2.c val = ((u32)(phy_data & MDIO_DATA_MASK)) << MDIO_DATA_SHIFT | phy_data 2636 drivers/net/ethernet/atheros/atlx/atl2.c u16 phy_data; phy_data 2638 drivers/net/ethernet/atheros/atlx/atl2.c phy_data = MII_CR_RESET | MII_CR_AUTO_NEG_EN | MII_CR_RESTART_AUTO_NEG; phy_data 2639 drivers/net/ethernet/atheros/atlx/atl2.c ret_val = atl2_write_phy_reg(hw, MII_BMCR, phy_data); phy_data 74 drivers/net/ethernet/atheros/atlx/atl2.h static s32 atl2_read_phy_reg(struct atl2_hw *hw, u16 reg_addr, u16 *phy_data); phy_data 75 drivers/net/ethernet/atheros/atlx/atl2.h static s32 atl2_write_phy_reg(struct atl2_hw *hw, u32 reg_addr, u16 phy_data); phy_data 31 drivers/net/ethernet/atheros/atlx/atlx.c static s32 atlx_read_phy_reg(struct atl1_hw *hw, u16 reg_addr, u16 *phy_data); phy_data 82 drivers/net/ethernet/atheros/atlx/atlx.c u16 phy_data = 0; phy_data 86 drivers/net/ethernet/atheros/atlx/atlx.c atlx_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); phy_data 87 drivers/net/ethernet/atheros/atlx/atlx.c atlx_read_phy_reg(&adapter->hw, MII_BMSR, &phy_data); phy_data 91 drivers/net/ethernet/atheros/atlx/atlx.c if (!(phy_data & BMSR_LSTATUS)) { phy_data 174 drivers/net/ethernet/atheros/atlx/atlx.c u16 phy_data; phy_data 178 drivers/net/ethernet/atheros/atlx/atlx.c atlx_read_phy_reg(&adapter->hw, 19, &phy_data); phy_data 1777 drivers/net/ethernet/dec/tulip/dmfe.c u16 phy_data, u32 chip_id) phy_data 1782 drivers/net/ethernet/dec/tulip/dmfe.c dw16(0x80 + offset * 4, phy_data); phy_data 1815 drivers/net/ethernet/dec/tulip/dmfe.c phy_data & i ? PHY_DATA_1 : PHY_DATA_0); phy_data 1827 drivers/net/ethernet/dec/tulip/dmfe.c u16 phy_data; phy_data 1831 drivers/net/ethernet/dec/tulip/dmfe.c phy_data = dr16(0x80 + offset * 4); phy_data 1861 drivers/net/ethernet/dec/tulip/dmfe.c for (phy_data = 0, i = 0; i < 16; i++) { phy_data 1862 drivers/net/ethernet/dec/tulip/dmfe.c phy_data <<= 1; phy_data 1863 drivers/net/ethernet/dec/tulip/dmfe.c phy_data |= dmfe_phy_read_1bit(ioaddr); phy_data 1867 drivers/net/ethernet/dec/tulip/dmfe.c return phy_data; phy_data 1875 drivers/net/ethernet/dec/tulip/dmfe.c static void dmfe_phy_write_1bit(void __iomem *ioaddr, u32 phy_data) phy_data 1877 drivers/net/ethernet/dec/tulip/dmfe.c dw32(DCR9, phy_data); /* MII Clock Low */ phy_data 1879 drivers/net/ethernet/dec/tulip/dmfe.c dw32(DCR9, phy_data | MDCLKH); /* MII Clock High */ phy_data 1881 drivers/net/ethernet/dec/tulip/dmfe.c dw32(DCR9, phy_data); /* MII Clock Low */ phy_data 1892 drivers/net/ethernet/dec/tulip/dmfe.c u16 phy_data; phy_data 1896 drivers/net/ethernet/dec/tulip/dmfe.c phy_data = (dr32(DCR9) >> 19) & 0x1; phy_data 1900 drivers/net/ethernet/dec/tulip/dmfe.c return phy_data; phy_data 1632 drivers/net/ethernet/dec/tulip/uli526x.c u8 offset, u16 phy_data) phy_data 1662 drivers/net/ethernet/dec/tulip/uli526x.c phy_write_1bit(db, phy_data & i ? PHY_DATA_1 : PHY_DATA_0); phy_data 1667 drivers/net/ethernet/dec/tulip/uli526x.c u16 phy_data; phy_data 1694 drivers/net/ethernet/dec/tulip/uli526x.c for (phy_data = 0, i = 0; i < 16; i++) { phy_data 1695 drivers/net/ethernet/dec/tulip/uli526x.c phy_data <<= 1; phy_data 1696 drivers/net/ethernet/dec/tulip/uli526x.c phy_data |= phy_read_1bit(db); phy_data 1699 drivers/net/ethernet/dec/tulip/uli526x.c return phy_data; phy_data 1721 drivers/net/ethernet/dec/tulip/uli526x.c u8 offset, u16 phy_data) phy_data 1727 drivers/net/ethernet/dec/tulip/uli526x.c cr10_value = (cr10_value << 16) + 0x04000000 + phy_data; phy_data 1755 drivers/net/ethernet/dec/tulip/uli526x.c u16 phy_data; phy_data 1759 drivers/net/ethernet/dec/tulip/uli526x.c phy_data = (ur32(DCR9) >> 19) & 0x1; phy_data 1763 drivers/net/ethernet/dec/tulip/uli526x.c return phy_data; phy_data 330 drivers/net/ethernet/intel/e1000/e1000_ethtool.c u16 phy_data; phy_data 356 drivers/net/ethernet/intel/e1000/e1000_ethtool.c IGP01E1000_PHY_PAGE_SELECT, &phy_data); phy_data 357 drivers/net/ethernet/intel/e1000/e1000_ethtool.c regs_buff[13] = (u32)phy_data; /* cable length */ phy_data 361 drivers/net/ethernet/intel/e1000/e1000_ethtool.c IGP01E1000_PHY_PAGE_SELECT, &phy_data); phy_data 362 drivers/net/ethernet/intel/e1000/e1000_ethtool.c regs_buff[14] = (u32)phy_data; /* cable length */ phy_data 366 drivers/net/ethernet/intel/e1000/e1000_ethtool.c IGP01E1000_PHY_PAGE_SELECT, &phy_data); phy_data 367 drivers/net/ethernet/intel/e1000/e1000_ethtool.c regs_buff[15] = (u32)phy_data; /* cable length */ phy_data 371 drivers/net/ethernet/intel/e1000/e1000_ethtool.c IGP01E1000_PHY_PAGE_SELECT, &phy_data); phy_data 372 drivers/net/ethernet/intel/e1000/e1000_ethtool.c regs_buff[16] = (u32)phy_data; /* cable length */ phy_data 376 drivers/net/ethernet/intel/e1000/e1000_ethtool.c IGP01E1000_PHY_PAGE_SELECT, &phy_data); phy_data 377 drivers/net/ethernet/intel/e1000/e1000_ethtool.c regs_buff[18] = (u32)phy_data; /* cable polarity */ phy_data 381 drivers/net/ethernet/intel/e1000/e1000_ethtool.c IGP01E1000_PHY_PAGE_SELECT, &phy_data); phy_data 382 drivers/net/ethernet/intel/e1000/e1000_ethtool.c regs_buff[19] = (u32)phy_data; /* cable polarity */ phy_data 388 drivers/net/ethernet/intel/e1000/e1000_ethtool.c e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_STATUS, &phy_data); phy_data 389 drivers/net/ethernet/intel/e1000/e1000_ethtool.c regs_buff[13] = (u32)phy_data; /* cable length */ phy_data 393 drivers/net/ethernet/intel/e1000/e1000_ethtool.c e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); phy_data 394 drivers/net/ethernet/intel/e1000/e1000_ethtool.c regs_buff[17] = (u32)phy_data; /* extended 10bt distance */ phy_data 403 drivers/net/ethernet/intel/e1000/e1000_ethtool.c e1000_read_phy_reg(hw, PHY_1000T_STATUS, &phy_data); phy_data 404 drivers/net/ethernet/intel/e1000/e1000_ethtool.c regs_buff[24] = (u32)phy_data; /* phy local receiver status */ phy_data 53 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 phy_data); phy_data 55 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 *phy_data); phy_data 1007 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 phy_data; phy_data 1043 drivers/net/ethernet/intel/e1000/e1000_hw.c e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); phy_data 1044 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data |= 0x00000008; phy_data 1046 drivers/net/ethernet/intel/e1000/e1000_hw.c e1000_write_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, phy_data); phy_data 1066 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 phy_data; phy_data 1096 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, IGP01E1000_PHY_PORT_CTRL, &phy_data); phy_data 1103 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data &= phy_data 1110 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data &= ~IGP01E1000_PSCR_AUTO_MDIX; phy_data 1114 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data &= ~IGP01E1000_PSCR_FORCE_MDI_MDIX; phy_data 1117 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data |= IGP01E1000_PSCR_FORCE_MDI_MDIX; phy_data 1121 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data |= IGP01E1000_PSCR_AUTO_MDIX; phy_data 1125 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, IGP01E1000_PHY_PORT_CTRL, phy_data); phy_data 1147 drivers/net/ethernet/intel/e1000/e1000_hw.c &phy_data); phy_data 1150 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data &= ~IGP01E1000_PSCFR_SMART_SPEED; phy_data 1153 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data); phy_data 1158 drivers/net/ethernet/intel/e1000/e1000_hw.c e1000_read_phy_reg(hw, PHY_1000T_CTRL, &phy_data); phy_data 1161 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data &= ~CR_1000T_MS_ENABLE; phy_data 1163 drivers/net/ethernet/intel/e1000/e1000_hw.c e1000_write_phy_reg(hw, PHY_1000T_CTRL, phy_data); phy_data 1168 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_1000T_CTRL, &phy_data); phy_data 1173 drivers/net/ethernet/intel/e1000/e1000_hw.c hw->original_master_slave = (phy_data & CR_1000T_MS_ENABLE) ? phy_data 1174 drivers/net/ethernet/intel/e1000/e1000_hw.c ((phy_data & CR_1000T_MS_VALUE) ? phy_data 1180 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data |= (CR_1000T_MS_ENABLE | CR_1000T_MS_VALUE); phy_data 1183 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data |= CR_1000T_MS_ENABLE; phy_data 1184 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data &= ~(CR_1000T_MS_VALUE); phy_data 1187 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data &= ~CR_1000T_MS_ENABLE; phy_data 1191 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, PHY_1000T_CTRL, phy_data); phy_data 1206 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 phy_data; phy_data 1212 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); phy_data 1216 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data |= M88E1000_PSCR_ASSERT_CRS_ON_TX; phy_data 1225 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data &= ~M88E1000_PSCR_AUTO_X_MODE; phy_data 1229 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data |= M88E1000_PSCR_MDI_MANUAL_MODE; phy_data 1232 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data |= M88E1000_PSCR_MDIX_MANUAL_MODE; phy_data 1235 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data |= M88E1000_PSCR_AUTO_X_1000T; phy_data 1239 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data |= M88E1000_PSCR_AUTO_X_MODE; phy_data 1249 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data &= ~M88E1000_PSCR_POLARITY_REVERSAL; phy_data 1251 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data |= M88E1000_PSCR_POLARITY_REVERSAL; phy_data 1252 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, phy_data); phy_data 1262 drivers/net/ethernet/intel/e1000/e1000_hw.c &phy_data); phy_data 1266 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data |= M88E1000_EPSCR_TX_CLK_25; phy_data 1271 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data &= ~(M88EC018_EPSCR_DOWNSHIFT_COUNTER_MASK); phy_data 1272 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data |= M88EC018_EPSCR_DOWNSHIFT_COUNTER_5X; phy_data 1275 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data); phy_data 1280 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data &= ~(M88E1000_EPSCR_MASTER_DOWNSHIFT_MASK | phy_data 1282 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data |= (M88E1000_EPSCR_MASTER_DOWNSHIFT_1X | phy_data 1286 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data); phy_data 1312 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 phy_data; phy_data 1340 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_CTRL, &phy_data); phy_data 1344 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data |= (MII_CR_AUTO_NEG_EN | MII_CR_RESTART_AUTO_NEG); phy_data 1345 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, PHY_CTRL, phy_data); phy_data 1420 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 phy_data; phy_data 1466 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data); phy_data 1469 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data); phy_data 1473 drivers/net/ethernet/intel/e1000/e1000_hw.c if (phy_data & MII_SR_LINK_STATUS) { phy_data 1649 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 phy_data; phy_data 1717 drivers/net/ethernet/intel/e1000/e1000_hw.c e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); phy_data 1724 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data &= ~M88E1000_PSCR_AUTO_X_MODE; phy_data 1726 drivers/net/ethernet/intel/e1000/e1000_hw.c e1000_write_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, phy_data); phy_data 1730 drivers/net/ethernet/intel/e1000/e1000_hw.c e_dbg("M88E1000 PSCR: %x\n", phy_data); phy_data 1741 drivers/net/ethernet/intel/e1000/e1000_hw.c e1000_read_phy_reg(hw, IGP01E1000_PHY_PORT_CTRL, &phy_data); phy_data 1745 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data &= ~IGP01E1000_PSCR_AUTO_MDIX; phy_data 1746 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data &= ~IGP01E1000_PSCR_FORCE_MDI_MDIX; phy_data 1749 drivers/net/ethernet/intel/e1000/e1000_hw.c e1000_write_phy_reg(hw, IGP01E1000_PHY_PORT_CTRL, phy_data); phy_data 1832 drivers/net/ethernet/intel/e1000/e1000_hw.c &phy_data); phy_data 1836 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data |= M88E1000_EPSCR_TX_CLK_25; phy_data 1839 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data); phy_data 1848 drivers/net/ethernet/intel/e1000/e1000_hw.c e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); phy_data 1852 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data |= M88E1000_PSCR_ASSERT_CRS_ON_TX; phy_data 1854 drivers/net/ethernet/intel/e1000/e1000_hw.c e1000_write_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, phy_data); phy_data 1910 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 phy_data; phy_data 1927 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_CTRL, &phy_data); phy_data 1931 drivers/net/ethernet/intel/e1000/e1000_hw.c if (phy_data & RTL_PHY_CTRL_FD) phy_data 1936 drivers/net/ethernet/intel/e1000/e1000_hw.c if (phy_data & RTL_PHY_CTRL_SPD_100) phy_data 1948 drivers/net/ethernet/intel/e1000/e1000_hw.c &phy_data); phy_data 1952 drivers/net/ethernet/intel/e1000/e1000_hw.c if (phy_data & M88E1000_PSSR_DPLX) phy_data 1962 drivers/net/ethernet/intel/e1000/e1000_hw.c if ((phy_data & M88E1000_PSSR_SPEED) == M88E1000_PSSR_1000MBS) phy_data 1964 drivers/net/ethernet/intel/e1000/e1000_hw.c else if ((phy_data & M88E1000_PSSR_SPEED) == phy_data 2380 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 phy_data; phy_data 2414 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data); phy_data 2417 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data); phy_data 2421 drivers/net/ethernet/intel/e1000/e1000_hw.c if (phy_data & MII_SR_LINK_STATUS) { phy_data 2564 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 phy_data; phy_data 2597 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_AUTONEG_EXP, &phy_data); phy_data 2601 drivers/net/ethernet/intel/e1000/e1000_hw.c if (!(phy_data & NWAY_ER_LP_NWAY_CAPS)) phy_data 2605 drivers/net/ethernet/intel/e1000/e1000_hw.c e1000_read_phy_reg(hw, PHY_LP_ABILITY, &phy_data); phy_data 2609 drivers/net/ethernet/intel/e1000/e1000_hw.c !(phy_data & NWAY_LPAR_100TX_FD_CAPS)) || phy_data 2611 drivers/net/ethernet/intel/e1000/e1000_hw.c !(phy_data & NWAY_LPAR_10T_FD_CAPS))) phy_data 2629 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 phy_data; phy_data 2638 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data); phy_data 2641 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data); phy_data 2644 drivers/net/ethernet/intel/e1000/e1000_hw.c if (phy_data & MII_SR_AUTONEG_COMPLETE) phy_data 2792 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 e1000_read_phy_reg(struct e1000_hw *hw, u32 reg_addr, u16 *phy_data) phy_data 2808 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data); phy_data 2816 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 *phy_data) phy_data 2860 drivers/net/ethernet/intel/e1000/e1000_hw.c *phy_data = (u16)mdic; phy_data 2885 drivers/net/ethernet/intel/e1000/e1000_hw.c *phy_data = (u16)mdic; phy_data 2915 drivers/net/ethernet/intel/e1000/e1000_hw.c *phy_data = e1000_shift_in_mdi_bits(hw); phy_data 2929 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 e1000_write_phy_reg(struct e1000_hw *hw, u32 reg_addr, u16 phy_data) phy_data 2947 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data); phy_data 2954 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 phy_data) phy_data 2972 drivers/net/ethernet/intel/e1000/e1000_hw.c mdic = (((u32)phy_data) | phy_data 2994 drivers/net/ethernet/intel/e1000/e1000_hw.c mdic = (((u32)phy_data) | phy_data 3032 drivers/net/ethernet/intel/e1000/e1000_hw.c mdic |= (u32)phy_data; phy_data 3107 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 phy_data; phy_data 3116 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_CTRL, &phy_data); phy_data 3120 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data |= MII_CR_RESET; phy_data 3121 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, PHY_CTRL, phy_data); phy_data 3245 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 phy_data, min_length, max_length, average; phy_data 3266 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, IGP01E1000_PHY_PORT_STATUS, &phy_data); phy_data 3271 drivers/net/ethernet/intel/e1000/e1000_hw.c (e1000_auto_x_mode) ((phy_data & IGP01E1000_PSSR_MDIX) >> phy_data 3274 drivers/net/ethernet/intel/e1000/e1000_hw.c if ((phy_data & IGP01E1000_PSSR_SPEED_MASK) == phy_data 3279 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_1000T_STATUS, &phy_data); phy_data 3283 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_info->local_rx = ((phy_data & SR_1000T_LOCAL_RX_STATUS) >> phy_data 3286 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_info->remote_rx = ((phy_data & SR_1000T_REMOTE_RX_STATUS) >> phy_data 3324 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 phy_data; phy_data 3332 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); phy_data 3337 drivers/net/ethernet/intel/e1000/e1000_hw.c ((phy_data & M88E1000_PSCR_10BT_EXT_DIST_ENABLE) >> phy_data 3343 drivers/net/ethernet/intel/e1000/e1000_hw.c ((phy_data & M88E1000_PSCR_POLARITY_REVERSAL) >> phy_data 3353 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_STATUS, &phy_data); phy_data 3358 drivers/net/ethernet/intel/e1000/e1000_hw.c (e1000_auto_x_mode) ((phy_data & M88E1000_PSSR_MDIX) >> phy_data 3361 drivers/net/ethernet/intel/e1000/e1000_hw.c if ((phy_data & M88E1000_PSSR_SPEED) == M88E1000_PSSR_1000MBS) { phy_data 3366 drivers/net/ethernet/intel/e1000/e1000_hw.c (e1000_cable_length) ((phy_data & phy_data 3370 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_1000T_STATUS, &phy_data); phy_data 3374 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_info->local_rx = ((phy_data & SR_1000T_LOCAL_RX_STATUS) >> phy_data 3377 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_info->remote_rx = ((phy_data & SR_1000T_REMOTE_RX_STATUS) >> phy_data 3395 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 phy_data; phy_data 3411 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data); phy_data 3415 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data); phy_data 3419 drivers/net/ethernet/intel/e1000/e1000_hw.c if ((phy_data & MII_SR_LINK_STATUS) != MII_SR_LINK_STATUS) { phy_data 4903 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 i, phy_data; phy_data 4911 drivers/net/ethernet/intel/e1000/e1000_hw.c &phy_data); phy_data 4914 drivers/net/ethernet/intel/e1000/e1000_hw.c cable_length = (phy_data & M88E1000_PSSR_CABLE_LENGTH) >> phy_data 4954 drivers/net/ethernet/intel/e1000/e1000_hw.c e1000_read_phy_reg(hw, agc_reg_array[i], &phy_data); phy_data 4958 drivers/net/ethernet/intel/e1000/e1000_hw.c cur_agc_value = phy_data >> IGP01E1000_AGC_LENGTH_SHIFT; phy_data 5016 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 phy_data; phy_data 5021 drivers/net/ethernet/intel/e1000/e1000_hw.c &phy_data); phy_data 5024 drivers/net/ethernet/intel/e1000/e1000_hw.c *polarity = ((phy_data & M88E1000_PSSR_REV_POLARITY) >> phy_data 5031 drivers/net/ethernet/intel/e1000/e1000_hw.c &phy_data); phy_data 5038 drivers/net/ethernet/intel/e1000/e1000_hw.c if ((phy_data & IGP01E1000_PSSR_SPEED_MASK) == phy_data 5043 drivers/net/ethernet/intel/e1000/e1000_hw.c &phy_data); phy_data 5048 drivers/net/ethernet/intel/e1000/e1000_hw.c *polarity = (phy_data & IGP01E1000_PHY_POLARITY_MASK) ? phy_data 5056 drivers/net/ethernet/intel/e1000/e1000_hw.c (phy_data & IGP01E1000_PSSR_POLARITY_REVERSED) ? phy_data 5081 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 phy_data; phy_data 5085 drivers/net/ethernet/intel/e1000/e1000_hw.c &phy_data); phy_data 5090 drivers/net/ethernet/intel/e1000/e1000_hw.c (phy_data & IGP01E1000_PLHR_SS_DOWNGRADE) ? 1 : 0; phy_data 5093 drivers/net/ethernet/intel/e1000/e1000_hw.c &phy_data); phy_data 5097 drivers/net/ethernet/intel/e1000/e1000_hw.c hw->speed_downgraded = (phy_data & M88E1000_PSSR_DOWNSHIFT) >> phy_data 5114 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 phy_data, i; phy_data 5127 drivers/net/ethernet/intel/e1000/e1000_hw.c &phy_data); phy_data 5131 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data &= ~IGP01E1000_PHY_EDAC_MU_INDEX; phy_data 5134 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data); phy_data 5144 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_1000T_STATUS, &phy_data); phy_data 5151 drivers/net/ethernet/intel/e1000/e1000_hw.c &phy_data); phy_data 5155 drivers/net/ethernet/intel/e1000/e1000_hw.c idle_errs += (phy_data & SR_1000T_IDLE_ERROR_CNT); phy_data 5191 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 phy_data, phy_saved_data, speed, duplex, i; phy_data 5234 drivers/net/ethernet/intel/e1000/e1000_hw.c &phy_data); phy_data 5238 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data &= ~IGP01E1000_PHY_EDAC_MU_INDEX; phy_data 5239 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data |= IGP01E1000_PHY_EDAC_SIGN_EXT_9_BITS; phy_data 5243 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data); phy_data 5370 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 phy_data; phy_data 5382 drivers/net/ethernet/intel/e1000/e1000_hw.c e1000_read_phy_reg(hw, IGP01E1000_GMII_FIFO, &phy_data); phy_data 5390 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data &= ~IGP01E1000_GMII_FLEX_SPD; phy_data 5393 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data); phy_data 5406 drivers/net/ethernet/intel/e1000/e1000_hw.c &phy_data); phy_data 5410 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data |= IGP01E1000_PSCFR_SMART_SPEED; phy_data 5413 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data); phy_data 5419 drivers/net/ethernet/intel/e1000/e1000_hw.c &phy_data); phy_data 5423 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data &= ~IGP01E1000_PSCFR_SMART_SPEED; phy_data 5426 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data); phy_data 5435 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data |= IGP01E1000_GMII_FLEX_SPD; phy_data 5438 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data); phy_data 5446 drivers/net/ethernet/intel/e1000/e1000_hw.c &phy_data); phy_data 5450 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data &= ~IGP01E1000_PSCFR_SMART_SPEED; phy_data 5453 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data); phy_data 5470 drivers/net/ethernet/intel/e1000/e1000_hw.c u16 phy_data; phy_data 5491 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, M88E1000_PHY_GEN_CONTROL, &phy_data); phy_data 5495 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data &= ~M88E1000_PHY_VCO_REG_BIT8; phy_data 5496 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_GEN_CONTROL, phy_data); phy_data 5506 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, M88E1000_PHY_GEN_CONTROL, &phy_data); phy_data 5510 drivers/net/ethernet/intel/e1000/e1000_hw.c phy_data |= M88E1000_PHY_VCO_REG_BIT11; phy_data 5511 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_GEN_CONTROL, phy_data); phy_data 281 drivers/net/ethernet/intel/e1000/e1000_hw.h s32 e1000_read_phy_reg(struct e1000_hw *hw, u32 reg_addr, u16 * phy_data); phy_data 524 drivers/net/ethernet/intel/e1000e/80003es2lan.c u16 phy_data; phy_data 530 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_rphy(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); phy_data 534 drivers/net/ethernet/intel/e1000e/80003es2lan.c phy_data &= ~GG82563_PSCR_CROSSOVER_MODE_AUTO; phy_data 535 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_wphy(hw, GG82563_PHY_SPEC_CTRL, phy_data); phy_data 539 drivers/net/ethernet/intel/e1000e/80003es2lan.c e_dbg("GG82563 PSCR: %X\n", phy_data); phy_data 541 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_rphy(hw, MII_BMCR, &phy_data); phy_data 545 drivers/net/ethernet/intel/e1000e/80003es2lan.c e1000e_phy_force_speed_duplex_setup(hw, &phy_data); phy_data 548 drivers/net/ethernet/intel/e1000e/80003es2lan.c phy_data |= BMCR_RESET; phy_data 550 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_wphy(hw, MII_BMCR, phy_data); phy_data 580 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_rphy(hw, GG82563_PHY_MAC_SPEC_CTRL, &phy_data); phy_data 587 drivers/net/ethernet/intel/e1000e/80003es2lan.c phy_data &= ~GG82563_MSCR_TX_CLK_MASK; phy_data 589 drivers/net/ethernet/intel/e1000e/80003es2lan.c phy_data |= GG82563_MSCR_TX_CLK_10MBPS_2_5; phy_data 591 drivers/net/ethernet/intel/e1000e/80003es2lan.c phy_data |= GG82563_MSCR_TX_CLK_100MBPS_25; phy_data 596 drivers/net/ethernet/intel/e1000e/80003es2lan.c phy_data |= GG82563_MSCR_ASSERT_CRS_ON_TX; phy_data 597 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_wphy(hw, GG82563_PHY_MAC_SPEC_CTRL, phy_data); phy_data 613 drivers/net/ethernet/intel/e1000e/80003es2lan.c u16 phy_data, index; phy_data 615 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_rphy(hw, GG82563_PHY_DSP_DISTANCE, &phy_data); phy_data 619 drivers/net/ethernet/intel/e1000e/80003es2lan.c index = phy_data & GG82563_DSPD_CABLE_LENGTH; phy_data 434 drivers/net/ethernet/intel/e1000e/ethtool.c u16 phy_data; phy_data 465 drivers/net/ethernet/intel/e1000e/ethtool.c e1e_rphy(hw, M88E1000_PHY_SPEC_STATUS, &phy_data); phy_data 466 drivers/net/ethernet/intel/e1000e/ethtool.c regs_buff[13] = (u32)phy_data; /* cable length */ phy_data 470 drivers/net/ethernet/intel/e1000e/ethtool.c e1e_rphy(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); phy_data 471 drivers/net/ethernet/intel/e1000e/ethtool.c regs_buff[17] = (u32)phy_data; /* extended 10bt distance */ phy_data 480 drivers/net/ethernet/intel/e1000e/ethtool.c e1e_rphy(hw, MII_STAT1000, &phy_data); phy_data 481 drivers/net/ethernet/intel/e1000e/ethtool.c regs_buff[24] = (u32)phy_data; /* phy local receiver status */ phy_data 2156 drivers/net/ethernet/intel/e1000e/ethtool.c u16 cap_addr, lpa_addr, pcs_stat_addr, phy_data; phy_data 2186 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = e1000_read_emi_reg_locked(hw, cap_addr, &phy_data); phy_data 2189 drivers/net/ethernet/intel/e1000e/ethtool.c edata->supported = mmd_eee_cap_to_ethtool_sup_t(phy_data); phy_data 2195 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = e1000_read_emi_reg_locked(hw, lpa_addr, &phy_data); phy_data 2198 drivers/net/ethernet/intel/e1000e/ethtool.c edata->lp_advertised = mmd_eee_adv_to_ethtool_adv_t(phy_data); phy_data 2201 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = e1000_read_emi_reg_locked(hw, pcs_stat_addr, &phy_data); phy_data 2205 drivers/net/ethernet/intel/e1000e/ethtool.c phy_data <<= 8; phy_data 2211 drivers/net/ethernet/intel/e1000e/ethtool.c if (phy_data & (E1000_EEE_TX_LPI_RCVD | E1000_EEE_RX_LPI_RCVD)) phy_data 2025 drivers/net/ethernet/intel/e1000e/ich8lan.c u16 phy_data; phy_data 2033 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_phy_reg_hv_locked(hw, HV_SMB_ADDR, &phy_data); phy_data 2037 drivers/net/ethernet/intel/e1000e/ich8lan.c phy_data &= ~HV_SMB_ADDR_MASK; phy_data 2038 drivers/net/ethernet/intel/e1000e/ich8lan.c phy_data |= (strap >> E1000_STRAP_SMBUS_ADDRESS_SHIFT); phy_data 2039 drivers/net/ethernet/intel/e1000e/ich8lan.c phy_data |= HV_SMB_ADDR_PEC_EN | HV_SMB_ADDR_VALID; phy_data 2044 drivers/net/ethernet/intel/e1000e/ich8lan.c phy_data &= ~HV_SMB_ADDR_FREQ_MASK; phy_data 2045 drivers/net/ethernet/intel/e1000e/ich8lan.c phy_data |= (freq & BIT(0)) << phy_data 2047 drivers/net/ethernet/intel/e1000e/ich8lan.c phy_data |= (freq & BIT(1)) << phy_data 2054 drivers/net/ethernet/intel/e1000e/ich8lan.c return e1000_write_phy_reg_hv_locked(hw, HV_SMB_ADDR, phy_data); phy_data 2402 drivers/net/ethernet/intel/e1000e/ich8lan.c u16 phy_data; phy_data 2462 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy_locked(hw, BM_PORT_GEN_CFG, &phy_data); phy_data 2465 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy_locked(hw, BM_PORT_GEN_CFG, phy_data & 0x00FF); phy_data 5682 drivers/net/ethernet/intel/e1000e/ich8lan.c u16 phy_data; phy_data 5713 drivers/net/ethernet/intel/e1000e/ich8lan.c hw->phy.ops.read_reg_page(hw, HV_SCC_UPPER, &phy_data); phy_data 5714 drivers/net/ethernet/intel/e1000e/ich8lan.c hw->phy.ops.read_reg_page(hw, HV_SCC_LOWER, &phy_data); phy_data 5715 drivers/net/ethernet/intel/e1000e/ich8lan.c hw->phy.ops.read_reg_page(hw, HV_ECOL_UPPER, &phy_data); phy_data 5716 drivers/net/ethernet/intel/e1000e/ich8lan.c hw->phy.ops.read_reg_page(hw, HV_ECOL_LOWER, &phy_data); phy_data 5717 drivers/net/ethernet/intel/e1000e/ich8lan.c hw->phy.ops.read_reg_page(hw, HV_MCC_UPPER, &phy_data); phy_data 5718 drivers/net/ethernet/intel/e1000e/ich8lan.c hw->phy.ops.read_reg_page(hw, HV_MCC_LOWER, &phy_data); phy_data 5719 drivers/net/ethernet/intel/e1000e/ich8lan.c hw->phy.ops.read_reg_page(hw, HV_LATECOL_UPPER, &phy_data); phy_data 5720 drivers/net/ethernet/intel/e1000e/ich8lan.c hw->phy.ops.read_reg_page(hw, HV_LATECOL_LOWER, &phy_data); phy_data 5721 drivers/net/ethernet/intel/e1000e/ich8lan.c hw->phy.ops.read_reg_page(hw, HV_COLC_UPPER, &phy_data); phy_data 5722 drivers/net/ethernet/intel/e1000e/ich8lan.c hw->phy.ops.read_reg_page(hw, HV_COLC_LOWER, &phy_data); phy_data 5723 drivers/net/ethernet/intel/e1000e/ich8lan.c hw->phy.ops.read_reg_page(hw, HV_DC_UPPER, &phy_data); phy_data 5724 drivers/net/ethernet/intel/e1000e/ich8lan.c hw->phy.ops.read_reg_page(hw, HV_DC_LOWER, &phy_data); phy_data 5725 drivers/net/ethernet/intel/e1000e/ich8lan.c hw->phy.ops.read_reg_page(hw, HV_TNCRS_UPPER, &phy_data); phy_data 5726 drivers/net/ethernet/intel/e1000e/ich8lan.c hw->phy.ops.read_reg_page(hw, HV_TNCRS_LOWER, &phy_data); phy_data 3072 drivers/net/ethernet/intel/e1000e/netdev.c u16 phy_data; phy_data 3074 drivers/net/ethernet/intel/e1000e/netdev.c e1e_rphy(hw, PHY_REG(770, 26), &phy_data); phy_data 3075 drivers/net/ethernet/intel/e1000e/netdev.c phy_data &= 0xfff8; phy_data 3076 drivers/net/ethernet/intel/e1000e/netdev.c phy_data |= BIT(2); phy_data 3077 drivers/net/ethernet/intel/e1000e/netdev.c e1e_wphy(hw, PHY_REG(770, 26), phy_data); phy_data 3079 drivers/net/ethernet/intel/e1000e/netdev.c e1e_rphy(hw, 22, &phy_data); phy_data 3080 drivers/net/ethernet/intel/e1000e/netdev.c phy_data &= 0x0fff; phy_data 3081 drivers/net/ethernet/intel/e1000e/netdev.c phy_data |= BIT(14); phy_data 3084 drivers/net/ethernet/intel/e1000e/netdev.c e1e_wphy(hw, 22, phy_data); phy_data 4159 drivers/net/ethernet/intel/e1000e/netdev.c u16 phy_data = 0; phy_data 4164 drivers/net/ethernet/intel/e1000e/netdev.c e1e_rphy(hw, IGP02E1000_PHY_POWER_MGMT, &phy_data); phy_data 4165 drivers/net/ethernet/intel/e1000e/netdev.c phy_data &= ~IGP02E1000_PM_SPD; phy_data 4166 drivers/net/ethernet/intel/e1000e/netdev.c e1e_wphy(hw, IGP02E1000_PHY_POWER_MGMT, phy_data); phy_data 4841 drivers/net/ethernet/intel/e1000e/netdev.c u16 phy_data; phy_data 4852 drivers/net/ethernet/intel/e1000e/netdev.c &phy_data); phy_data 4855 drivers/net/ethernet/intel/e1000e/netdev.c if (phy_data != (HV_STATS_PAGE << IGP_PAGE_SHIFT)) { phy_data 4863 drivers/net/ethernet/intel/e1000e/netdev.c hw->phy.ops.read_reg_page(hw, HV_SCC_UPPER, &phy_data); phy_data 4864 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = hw->phy.ops.read_reg_page(hw, HV_SCC_LOWER, &phy_data); phy_data 4866 drivers/net/ethernet/intel/e1000e/netdev.c adapter->stats.scc += phy_data; phy_data 4869 drivers/net/ethernet/intel/e1000e/netdev.c hw->phy.ops.read_reg_page(hw, HV_ECOL_UPPER, &phy_data); phy_data 4870 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = hw->phy.ops.read_reg_page(hw, HV_ECOL_LOWER, &phy_data); phy_data 4872 drivers/net/ethernet/intel/e1000e/netdev.c adapter->stats.ecol += phy_data; phy_data 4875 drivers/net/ethernet/intel/e1000e/netdev.c hw->phy.ops.read_reg_page(hw, HV_MCC_UPPER, &phy_data); phy_data 4876 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = hw->phy.ops.read_reg_page(hw, HV_MCC_LOWER, &phy_data); phy_data 4878 drivers/net/ethernet/intel/e1000e/netdev.c adapter->stats.mcc += phy_data; phy_data 4881 drivers/net/ethernet/intel/e1000e/netdev.c hw->phy.ops.read_reg_page(hw, HV_LATECOL_UPPER, &phy_data); phy_data 4882 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = hw->phy.ops.read_reg_page(hw, HV_LATECOL_LOWER, &phy_data); phy_data 4884 drivers/net/ethernet/intel/e1000e/netdev.c adapter->stats.latecol += phy_data; phy_data 4887 drivers/net/ethernet/intel/e1000e/netdev.c hw->phy.ops.read_reg_page(hw, HV_COLC_UPPER, &phy_data); phy_data 4888 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = hw->phy.ops.read_reg_page(hw, HV_COLC_LOWER, &phy_data); phy_data 4890 drivers/net/ethernet/intel/e1000e/netdev.c hw->mac.collision_delta = phy_data; phy_data 4893 drivers/net/ethernet/intel/e1000e/netdev.c hw->phy.ops.read_reg_page(hw, HV_DC_UPPER, &phy_data); phy_data 4894 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = hw->phy.ops.read_reg_page(hw, HV_DC_LOWER, &phy_data); phy_data 4896 drivers/net/ethernet/intel/e1000e/netdev.c adapter->stats.dc += phy_data; phy_data 4899 drivers/net/ethernet/intel/e1000e/netdev.c hw->phy.ops.read_reg_page(hw, HV_TNCRS_UPPER, &phy_data); phy_data 4900 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = hw->phy.ops.read_reg_page(hw, HV_TNCRS_LOWER, &phy_data); phy_data 4902 drivers/net/ethernet/intel/e1000e/netdev.c adapter->stats.tncrs += phy_data; phy_data 6628 drivers/net/ethernet/intel/e1000e/netdev.c u16 phy_data; phy_data 6630 drivers/net/ethernet/intel/e1000e/netdev.c e1e_rphy(&adapter->hw, BM_WUS, &phy_data); phy_data 6631 drivers/net/ethernet/intel/e1000e/netdev.c if (phy_data) { phy_data 6633 drivers/net/ethernet/intel/e1000e/netdev.c phy_data & E1000_WUS_EX ? "Unicast Packet" : phy_data 6634 drivers/net/ethernet/intel/e1000e/netdev.c phy_data & E1000_WUS_MC ? "Multicast Packet" : phy_data 6635 drivers/net/ethernet/intel/e1000e/netdev.c phy_data & E1000_WUS_BC ? "Broadcast Packet" : phy_data 6636 drivers/net/ethernet/intel/e1000e/netdev.c phy_data & E1000_WUS_MAG ? "Magic Packet" : phy_data 6637 drivers/net/ethernet/intel/e1000e/netdev.c phy_data & E1000_WUS_LNKC ? phy_data 588 drivers/net/ethernet/intel/e1000e/phy.c u16 phy_data; phy_data 591 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_CTRL1000, &phy_data); phy_data 596 drivers/net/ethernet/intel/e1000e/phy.c hw->phy.original_ms_type = (phy_data & CTL1000_ENABLE_MASTER) ? phy_data 597 drivers/net/ethernet/intel/e1000e/phy.c ((phy_data & CTL1000_AS_MASTER) ? phy_data 602 drivers/net/ethernet/intel/e1000e/phy.c phy_data |= (CTL1000_ENABLE_MASTER | CTL1000_AS_MASTER); phy_data 605 drivers/net/ethernet/intel/e1000e/phy.c phy_data |= CTL1000_ENABLE_MASTER; phy_data 606 drivers/net/ethernet/intel/e1000e/phy.c phy_data &= ~(CTL1000_AS_MASTER); phy_data 609 drivers/net/ethernet/intel/e1000e/phy.c phy_data &= ~CTL1000_ENABLE_MASTER; phy_data 615 drivers/net/ethernet/intel/e1000e/phy.c return e1e_wphy(hw, MII_CTRL1000, phy_data); phy_data 627 drivers/net/ethernet/intel/e1000e/phy.c u16 phy_data; phy_data 630 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, I82577_CFG_REG, &phy_data); phy_data 634 drivers/net/ethernet/intel/e1000e/phy.c phy_data |= I82577_CFG_ASSERT_CRS_ON_TX; phy_data 637 drivers/net/ethernet/intel/e1000e/phy.c phy_data |= I82577_CFG_ENABLE_DOWNSHIFT; phy_data 639 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, I82577_CFG_REG, phy_data); phy_data 644 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, I82577_PHY_CTRL_2, &phy_data); phy_data 647 drivers/net/ethernet/intel/e1000e/phy.c phy_data &= ~I82577_PHY_CTRL2_MDIX_CFG_MASK; phy_data 657 drivers/net/ethernet/intel/e1000e/phy.c phy_data |= I82577_PHY_CTRL2_MANUAL_MDIX; phy_data 661 drivers/net/ethernet/intel/e1000e/phy.c phy_data |= I82577_PHY_CTRL2_AUTO_MDI_MDIX; phy_data 664 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, I82577_PHY_CTRL_2, phy_data); phy_data 682 drivers/net/ethernet/intel/e1000e/phy.c u16 phy_data; phy_data 685 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); phy_data 691 drivers/net/ethernet/intel/e1000e/phy.c phy_data |= M88E1000_PSCR_ASSERT_CRS_ON_TX; phy_data 700 drivers/net/ethernet/intel/e1000e/phy.c phy_data &= ~M88E1000_PSCR_AUTO_X_MODE; phy_data 704 drivers/net/ethernet/intel/e1000e/phy.c phy_data |= M88E1000_PSCR_MDI_MANUAL_MODE; phy_data 707 drivers/net/ethernet/intel/e1000e/phy.c phy_data |= M88E1000_PSCR_MDIX_MANUAL_MODE; phy_data 710 drivers/net/ethernet/intel/e1000e/phy.c phy_data |= M88E1000_PSCR_AUTO_X_1000T; phy_data 714 drivers/net/ethernet/intel/e1000e/phy.c phy_data |= M88E1000_PSCR_AUTO_X_MODE; phy_data 724 drivers/net/ethernet/intel/e1000e/phy.c phy_data &= ~M88E1000_PSCR_POLARITY_REVERSAL; phy_data 726 drivers/net/ethernet/intel/e1000e/phy.c phy_data |= M88E1000_PSCR_POLARITY_REVERSAL; phy_data 732 drivers/net/ethernet/intel/e1000e/phy.c phy_data &= ~BME1000_PSCR_ENABLE_DOWNSHIFT; phy_data 734 drivers/net/ethernet/intel/e1000e/phy.c phy_data); phy_data 745 drivers/net/ethernet/intel/e1000e/phy.c phy_data |= BME1000_PSCR_ENABLE_DOWNSHIFT; phy_data 748 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, M88E1000_PHY_SPEC_CTRL, phy_data); phy_data 758 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, M88E1000_EXT_PHY_SPEC_CTRL, &phy_data); phy_data 762 drivers/net/ethernet/intel/e1000e/phy.c phy_data |= M88E1000_EPSCR_TX_CLK_25; phy_data 766 drivers/net/ethernet/intel/e1000e/phy.c phy_data &= ~M88EC018_EPSCR_DOWNSHIFT_COUNTER_MASK; phy_data 767 drivers/net/ethernet/intel/e1000e/phy.c phy_data |= M88EC018_EPSCR_DOWNSHIFT_COUNTER_5X; phy_data 770 drivers/net/ethernet/intel/e1000e/phy.c phy_data &= ~(M88E1000_EPSCR_MASTER_DOWNSHIFT_MASK | phy_data 772 drivers/net/ethernet/intel/e1000e/phy.c phy_data |= (M88E1000_EPSCR_MASTER_DOWNSHIFT_1X | phy_data 775 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, M88E1000_EXT_PHY_SPEC_CTRL, phy_data); phy_data 802 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, M88E1000_EXT_PHY_SPEC_CTRL, &phy_data); phy_data 807 drivers/net/ethernet/intel/e1000e/phy.c phy_data |= I82578_EPSCR_DOWNSHIFT_ENABLE; phy_data 808 drivers/net/ethernet/intel/e1000e/phy.c phy_data &= ~I82578_EPSCR_DOWNSHIFT_COUNTER_MASK; phy_data 809 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, M88E1000_EXT_PHY_SPEC_CTRL, phy_data); phy_data 1185 drivers/net/ethernet/intel/e1000e/phy.c u16 phy_data; phy_data 1188 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_BMCR, &phy_data); phy_data 1192 drivers/net/ethernet/intel/e1000e/phy.c e1000e_phy_force_speed_duplex_setup(hw, &phy_data); phy_data 1194 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, MII_BMCR, phy_data); phy_data 1201 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, IGP01E1000_PHY_PORT_CTRL, &phy_data); phy_data 1205 drivers/net/ethernet/intel/e1000e/phy.c phy_data &= ~IGP01E1000_PSCR_AUTO_MDIX; phy_data 1206 drivers/net/ethernet/intel/e1000e/phy.c phy_data &= ~IGP01E1000_PSCR_FORCE_MDI_MDIX; phy_data 1208 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, IGP01E1000_PHY_PORT_CTRL, phy_data); phy_data 1212 drivers/net/ethernet/intel/e1000e/phy.c e_dbg("IGP PSCR: %X\n", phy_data); phy_data 1249 drivers/net/ethernet/intel/e1000e/phy.c u16 phy_data; phy_data 1255 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); phy_data 1259 drivers/net/ethernet/intel/e1000e/phy.c phy_data &= ~M88E1000_PSCR_AUTO_X_MODE; phy_data 1260 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, M88E1000_PHY_SPEC_CTRL, phy_data); phy_data 1264 drivers/net/ethernet/intel/e1000e/phy.c e_dbg("M88E1000 PSCR: %X\n", phy_data); phy_data 1266 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_BMCR, &phy_data); phy_data 1270 drivers/net/ethernet/intel/e1000e/phy.c e1000e_phy_force_speed_duplex_setup(hw, &phy_data); phy_data 1272 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, MII_BMCR, phy_data); phy_data 1318 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, M88E1000_EXT_PHY_SPEC_CTRL, &phy_data); phy_data 1326 drivers/net/ethernet/intel/e1000e/phy.c phy_data |= M88E1000_EPSCR_TX_CLK_25; phy_data 1327 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, M88E1000_EXT_PHY_SPEC_CTRL, phy_data); phy_data 1334 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); phy_data 1338 drivers/net/ethernet/intel/e1000e/phy.c phy_data |= M88E1000_PSCR_ASSERT_CRS_ON_TX; phy_data 1339 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, M88E1000_PHY_SPEC_CTRL, phy_data); phy_data 1554 drivers/net/ethernet/intel/e1000e/phy.c u16 phy_data, offset, mask; phy_data 1575 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, offset, &phy_data); phy_data 1578 drivers/net/ethernet/intel/e1000e/phy.c phy->speed_downgraded = !!(phy_data & mask); phy_data 1661 drivers/net/ethernet/intel/e1000e/phy.c u16 phy_data, offset, mask; phy_data 1673 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, offset, &phy_data); phy_data 1676 drivers/net/ethernet/intel/e1000e/phy.c phy->cable_polarity = ((phy_data & mask) phy_data 1781 drivers/net/ethernet/intel/e1000e/phy.c u16 phy_data, index; phy_data 1783 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, M88E1000_PHY_SPEC_STATUS, &phy_data); phy_data 1787 drivers/net/ethernet/intel/e1000e/phy.c index = ((phy_data & M88E1000_PSSR_CABLE_LENGTH) >> phy_data 1816 drivers/net/ethernet/intel/e1000e/phy.c u16 phy_data, i, agc_value = 0; phy_data 1828 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, agc_reg_array[i], &phy_data); phy_data 1837 drivers/net/ethernet/intel/e1000e/phy.c cur_agc_index = ((phy_data >> IGP02E1000_AGC_LENGTH_SHIFT) & phy_data 1884 drivers/net/ethernet/intel/e1000e/phy.c u16 phy_data; phy_data 1901 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); phy_data 1905 drivers/net/ethernet/intel/e1000e/phy.c phy->polarity_correction = !!(phy_data & phy_data 1912 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, M88E1000_PHY_SPEC_STATUS, &phy_data); phy_data 1916 drivers/net/ethernet/intel/e1000e/phy.c phy->is_mdix = !!(phy_data & M88E1000_PSSR_MDIX); phy_data 1918 drivers/net/ethernet/intel/e1000e/phy.c if ((phy_data & M88E1000_PSSR_SPEED) == M88E1000_PSSR_1000MBS) { phy_data 1923 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_STAT1000, &phy_data); phy_data 1927 drivers/net/ethernet/intel/e1000e/phy.c phy->local_rx = (phy_data & LPA_1000LOCALRXOK) phy_data 1930 drivers/net/ethernet/intel/e1000e/phy.c phy->remote_rx = (phy_data & LPA_1000REMRXOK) phy_data 3099 drivers/net/ethernet/intel/e1000e/phy.c u16 phy_data; phy_data 3102 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_BMCR, &phy_data); phy_data 3106 drivers/net/ethernet/intel/e1000e/phy.c e1000e_phy_force_speed_duplex_setup(hw, &phy_data); phy_data 3108 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, MII_BMCR, phy_data); phy_data 3205 drivers/net/ethernet/intel/e1000e/phy.c u16 phy_data, length; phy_data 3207 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, I82577_PHY_DIAG_STATUS, &phy_data); phy_data 3211 drivers/net/ethernet/intel/e1000e/phy.c length = ((phy_data & I82577_DSTATUS_CABLE_LENGTH) >> phy_data 2658 drivers/net/ethernet/intel/igb/e1000_82575.c u16 phy_data; phy_data 2672 drivers/net/ethernet/intel/igb/e1000_82575.c &phy_data); phy_data 2676 drivers/net/ethernet/intel/igb/e1000_82575.c phy_data |= E1000_M88E1543_EEE_CTRL_1_MS; phy_data 2678 drivers/net/ethernet/intel/igb/e1000_82575.c phy_data); phy_data 2690 drivers/net/ethernet/intel/igb/e1000_82575.c &phy_data); phy_data 2695 drivers/net/ethernet/intel/igb/e1000_82575.c phy_data |= E1000_EEE_ADV_100_SUPPORTED; phy_data 2697 drivers/net/ethernet/intel/igb/e1000_82575.c phy_data &= ~E1000_EEE_ADV_100_SUPPORTED; phy_data 2700 drivers/net/ethernet/intel/igb/e1000_82575.c phy_data |= E1000_EEE_ADV_1000_SUPPORTED; phy_data 2702 drivers/net/ethernet/intel/igb/e1000_82575.c phy_data &= ~E1000_EEE_ADV_1000_SUPPORTED; phy_data 2706 drivers/net/ethernet/intel/igb/e1000_82575.c phy_data); phy_data 2711 drivers/net/ethernet/intel/igb/e1000_82575.c &phy_data); phy_data 2715 drivers/net/ethernet/intel/igb/e1000_82575.c phy_data &= ~(E1000_EEE_ADV_100_SUPPORTED | phy_data 2719 drivers/net/ethernet/intel/igb/e1000_82575.c phy_data); phy_data 2738 drivers/net/ethernet/intel/igb/e1000_82575.c u16 phy_data; phy_data 2748 drivers/net/ethernet/intel/igb/e1000_82575.c &phy_data); phy_data 2752 drivers/net/ethernet/intel/igb/e1000_82575.c *status = phy_data & (E1000_PCS_STATUS_TX_LPI_RCVD | phy_data 459 drivers/net/ethernet/intel/igb/e1000_phy.c u16 phy_data; phy_data 475 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, I82580_CFG_REG, &phy_data); phy_data 479 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= I82580_CFG_ASSERT_CRS_ON_TX; phy_data 482 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= I82580_CFG_ENABLE_DOWNSHIFT; phy_data 484 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, I82580_CFG_REG, phy_data); phy_data 489 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, I82580_PHY_CTRL_2, &phy_data); phy_data 492 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data &= ~I82580_PHY_CTRL2_MDIX_CFG_MASK; phy_data 502 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= I82580_PHY_CTRL2_MANUAL_MDIX; phy_data 506 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= I82580_PHY_CTRL2_AUTO_MDI_MDIX; phy_data 509 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = hw->phy.ops.write_reg(hw, I82580_PHY_CTRL_2, phy_data); phy_data 526 drivers/net/ethernet/intel/igb/e1000_phy.c u16 phy_data; phy_data 534 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); phy_data 538 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= M88E1000_PSCR_ASSERT_CRS_ON_TX; phy_data 547 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data &= ~M88E1000_PSCR_AUTO_X_MODE; phy_data 551 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= M88E1000_PSCR_MDI_MANUAL_MODE; phy_data 554 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= M88E1000_PSCR_MDIX_MANUAL_MODE; phy_data 557 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= M88E1000_PSCR_AUTO_X_1000T; phy_data 561 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= M88E1000_PSCR_AUTO_X_MODE; phy_data 571 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data &= ~M88E1000_PSCR_POLARITY_REVERSAL; phy_data 573 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= M88E1000_PSCR_POLARITY_REVERSAL; phy_data 575 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, M88E1000_PHY_SPEC_CTRL, phy_data); phy_data 584 drivers/net/ethernet/intel/igb/e1000_phy.c &phy_data); phy_data 588 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= M88E1000_EPSCR_TX_CLK_25; phy_data 593 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data &= ~M88EC018_EPSCR_DOWNSHIFT_COUNTER_MASK; phy_data 594 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= M88EC018_EPSCR_DOWNSHIFT_COUNTER_5X; phy_data 597 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data &= ~(M88E1000_EPSCR_MASTER_DOWNSHIFT_MASK | phy_data 599 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= (M88E1000_EPSCR_MASTER_DOWNSHIFT_1X | phy_data 603 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data); phy_data 630 drivers/net/ethernet/intel/igb/e1000_phy.c u16 phy_data; phy_data 636 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); phy_data 647 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data &= ~M88E1000_PSCR_AUTO_X_MODE; phy_data 651 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= M88E1000_PSCR_MDI_MANUAL_MODE; phy_data 654 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= M88E1000_PSCR_MDIX_MANUAL_MODE; phy_data 659 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= M88E1000_PSCR_AUTO_X_1000T; phy_data 665 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= M88E1000_PSCR_AUTO_X_MODE; phy_data 675 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data &= ~M88E1000_PSCR_POLARITY_REVERSAL; phy_data 677 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= M88E1000_PSCR_POLARITY_REVERSAL; phy_data 681 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data &= ~I347AT4_PSCR_DOWNSHIFT_ENABLE; phy_data 683 drivers/net/ethernet/intel/igb/e1000_phy.c phy->ops.write_reg(hw, M88E1000_PHY_SPEC_CTRL, phy_data); phy_data 694 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data &= ~I347AT4_PSCR_DOWNSHIFT_MASK; phy_data 695 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= I347AT4_PSCR_DOWNSHIFT_6X; phy_data 696 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= I347AT4_PSCR_DOWNSHIFT_ENABLE; phy_data 698 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, M88E1000_PHY_SPEC_CTRL, phy_data); phy_data 1135 drivers/net/ethernet/intel/igb/e1000_phy.c u16 phy_data; phy_data 1138 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, PHY_CONTROL, &phy_data); phy_data 1142 drivers/net/ethernet/intel/igb/e1000_phy.c igb_phy_force_speed_duplex_setup(hw, &phy_data); phy_data 1144 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, PHY_CONTROL, phy_data); phy_data 1151 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, IGP01E1000_PHY_PORT_CTRL, &phy_data); phy_data 1155 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data &= ~IGP01E1000_PSCR_AUTO_MDIX; phy_data 1156 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data &= ~IGP01E1000_PSCR_FORCE_MDI_MDIX; phy_data 1158 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, IGP01E1000_PHY_PORT_CTRL, phy_data); phy_data 1162 drivers/net/ethernet/intel/igb/e1000_phy.c hw_dbg("IGP PSCR: %X\n", phy_data); phy_data 1200 drivers/net/ethernet/intel/igb/e1000_phy.c u16 phy_data; phy_data 1209 drivers/net/ethernet/intel/igb/e1000_phy.c &phy_data); phy_data 1213 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data &= ~M88E1000_PSCR_AUTO_X_MODE; phy_data 1215 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data); phy_data 1219 drivers/net/ethernet/intel/igb/e1000_phy.c hw_dbg("M88E1000 PSCR: %X\n", phy_data); phy_data 1222 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, PHY_CONTROL, &phy_data); phy_data 1226 drivers/net/ethernet/intel/igb/e1000_phy.c igb_phy_force_speed_duplex_setup(hw, &phy_data); phy_data 1228 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, PHY_CONTROL, phy_data); phy_data 1292 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, M88E1000_EXT_PHY_SPEC_CTRL, &phy_data); phy_data 1300 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= M88E1000_EPSCR_TX_CLK_25; phy_data 1301 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, M88E1000_EXT_PHY_SPEC_CTRL, phy_data); phy_data 1308 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); phy_data 1312 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= M88E1000_PSCR_ASSERT_CRS_ON_TX; phy_data 1313 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, M88E1000_PHY_SPEC_CTRL, phy_data); phy_data 1481 drivers/net/ethernet/intel/igb/e1000_phy.c u16 phy_data, offset, mask; phy_data 1503 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, offset, &phy_data); phy_data 1506 drivers/net/ethernet/intel/igb/e1000_phy.c phy->speed_downgraded = (phy_data & mask) ? true : false; phy_data 1678 drivers/net/ethernet/intel/igb/e1000_phy.c u16 phy_data, index; phy_data 1680 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, M88E1000_PHY_SPEC_STATUS, &phy_data); phy_data 1684 drivers/net/ethernet/intel/igb/e1000_phy.c index = (phy_data & M88E1000_PSSR_CABLE_LENGTH) >> phy_data 1704 drivers/net/ethernet/intel/igb/e1000_phy.c u16 phy_data, phy_data2, index, default_page, is_cm; phy_data 1732 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, I347AT4_PCDL0, &phy_data); phy_data 1736 drivers/net/ethernet/intel/igb/e1000_phy.c phy->pair_length[0] = phy_data / (is_cm ? 100 : 1); phy_data 1742 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, I347AT4_PCDL1, &phy_data); phy_data 1746 drivers/net/ethernet/intel/igb/e1000_phy.c phy->pair_length[1] = phy_data / (is_cm ? 100 : 1); phy_data 1752 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, I347AT4_PCDL2, &phy_data); phy_data 1756 drivers/net/ethernet/intel/igb/e1000_phy.c phy->pair_length[2] = phy_data / (is_cm ? 100 : 1); phy_data 1762 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, I347AT4_PCDL3, &phy_data); phy_data 1766 drivers/net/ethernet/intel/igb/e1000_phy.c phy->pair_length[3] = phy_data / (is_cm ? 100 : 1); phy_data 1794 drivers/net/ethernet/intel/igb/e1000_phy.c &phy_data); phy_data 1798 drivers/net/ethernet/intel/igb/e1000_phy.c index = (phy_data & M88E1000_PSSR_CABLE_LENGTH) >> phy_data 1842 drivers/net/ethernet/intel/igb/e1000_phy.c u16 phy_data, i, agc_value = 0; phy_data 1854 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, agc_reg_array[i], &phy_data); phy_data 1863 drivers/net/ethernet/intel/igb/e1000_phy.c cur_agc_index = (phy_data >> IGP02E1000_AGC_LENGTH_SHIFT) & phy_data 1913 drivers/net/ethernet/intel/igb/e1000_phy.c u16 phy_data; phy_data 1932 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); phy_data 1936 drivers/net/ethernet/intel/igb/e1000_phy.c phy->polarity_correction = (phy_data & M88E1000_PSCR_POLARITY_REVERSAL) phy_data 1943 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, M88E1000_PHY_SPEC_STATUS, &phy_data); phy_data 1947 drivers/net/ethernet/intel/igb/e1000_phy.c phy->is_mdix = (phy_data & M88E1000_PSSR_MDIX) ? true : false; phy_data 1949 drivers/net/ethernet/intel/igb/e1000_phy.c if ((phy_data & M88E1000_PSSR_SPEED) == M88E1000_PSSR_1000MBS) { phy_data 1954 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, PHY_1000T_STATUS, &phy_data); phy_data 1958 drivers/net/ethernet/intel/igb/e1000_phy.c phy->local_rx = (phy_data & SR_1000T_LOCAL_RX_STATUS) phy_data 1962 drivers/net/ethernet/intel/igb/e1000_phy.c phy->remote_rx = (phy_data & SR_1000T_REMOTE_RX_STATUS) phy_data 2448 drivers/net/ethernet/intel/igb/e1000_phy.c u16 phy_data; phy_data 2451 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, PHY_CONTROL, &phy_data); phy_data 2455 drivers/net/ethernet/intel/igb/e1000_phy.c igb_phy_force_speed_duplex_setup(hw, &phy_data); phy_data 2457 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, PHY_CONTROL, phy_data); phy_data 2464 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, I82580_PHY_CTRL_2, &phy_data); phy_data 2468 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data &= ~I82580_PHY_CTRL2_MDIX_CFG_MASK; phy_data 2470 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, I82580_PHY_CTRL_2, phy_data); phy_data 2474 drivers/net/ethernet/intel/igb/e1000_phy.c hw_dbg("I82580_PHY_CTRL_2: %X\n", phy_data); phy_data 2574 drivers/net/ethernet/intel/igb/e1000_phy.c u16 phy_data, length; phy_data 2576 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, I82580_PHY_DIAG_STATUS, &phy_data); phy_data 2580 drivers/net/ethernet/intel/igb/e1000_phy.c length = (phy_data & I82580_DSTATUS_CABLE_LENGTH) >> phy_data 2601 drivers/net/ethernet/intel/igb/e1000_phy.c u16 phy_data; phy_data 2604 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = hw->phy.ops.read_reg(hw, PHY_1000T_CTRL, &phy_data); phy_data 2609 drivers/net/ethernet/intel/igb/e1000_phy.c hw->phy.original_ms_type = (phy_data & CR_1000T_MS_ENABLE) ? phy_data 2610 drivers/net/ethernet/intel/igb/e1000_phy.c ((phy_data & CR_1000T_MS_VALUE) ? phy_data 2616 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= (CR_1000T_MS_ENABLE | CR_1000T_MS_VALUE); phy_data 2619 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data |= CR_1000T_MS_ENABLE; phy_data 2620 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data &= ~(CR_1000T_MS_VALUE); phy_data 2623 drivers/net/ethernet/intel/igb/e1000_phy.c phy_data &= ~CR_1000T_MS_ENABLE; phy_data 2629 drivers/net/ethernet/intel/igb/e1000_phy.c return hw->phy.ops.write_reg(hw, PHY_1000T_CTRL, phy_data); phy_data 3046 drivers/net/ethernet/intel/igb/igb_ethtool.c u16 phy_data; phy_data 3078 drivers/net/ethernet/intel/igb/igb_ethtool.c &phy_data); phy_data 3082 drivers/net/ethernet/intel/igb/igb_ethtool.c edata->lp_advertised = mmd_eee_adv_to_ethtool_adv_t(phy_data); phy_data 3089 drivers/net/ethernet/intel/igb/igb_ethtool.c &phy_data); phy_data 3093 drivers/net/ethernet/intel/igb/igb_ethtool.c edata->lp_advertised = mmd_eee_adv_to_ethtool_adv_t(phy_data); phy_data 5231 drivers/net/ethernet/intel/igb/igb_main.c u16 phy_data, retry_count = 20; phy_data 5316 drivers/net/ethernet/intel/igb/igb_main.c &phy_data)) { phy_data 5317 drivers/net/ethernet/intel/igb/igb_main.c if (!(phy_data & SR_1000T_REMOTE_RX_STATUS) && phy_data 2908 drivers/net/ethernet/intel/igc/igc_main.c u16 phy_data, retry_count = 20; phy_data 2973 drivers/net/ethernet/intel/igc/igc_main.c &phy_data)) { phy_data 2974 drivers/net/ethernet/intel/igc/igc_main.c if (!(phy_data & SR_1000T_REMOTE_RX_STATUS) && phy_data 472 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c u16 *phy_data) phy_data 534 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c *phy_data = (u16)(data); phy_data 548 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c u32 device_type, u16 *phy_data) phy_data 555 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c phy_data); phy_data 573 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c u32 device_type, u16 phy_data) phy_data 578 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c IXGBE_WRITE_REG(hw, IXGBE_MSRWD, (u32)phy_data); phy_data 646 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c u32 device_type, u16 phy_data) phy_data 653 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c phy_data); phy_data 1157 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c u16 phy_data = 0; phy_data 1173 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c &phy_data); phy_data 1174 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c phy_link = phy_data & phy_data 1176 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c phy_speed = phy_data & phy_data 1277 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c u16 phy_data = 0; phy_data 1285 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c hw->phy.ops.read_reg(hw, MDIO_CTRL1, MDIO_MMD_PHYXS, &phy_data); phy_data 1289 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c (phy_data | MDIO_CTRL1_RESET)); phy_data 1293 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c &phy_data); phy_data 1294 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if ((phy_data & MDIO_CTRL1_RESET) == 0) phy_data 1299 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if ((phy_data & MDIO_CTRL1_RESET) != 0) { phy_data 2622 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c u16 phy_data = 0; phy_data 2629 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c MDIO_MMD_PMAPMD, &phy_data); phy_data 2631 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if (!(phy_data & IXGBE_TN_LASI_STATUS_TEMP_ALARM)) phy_data 129 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.h u32 device_type, u16 *phy_data); phy_data 131 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.h u32 device_type, u16 phy_data); phy_data 133 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.h u32 device_type, u16 *phy_data); phy_data 135 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.h u32 device_type, u16 phy_data); phy_data 351 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c u32 device_type, u16 *phy_data) phy_data 357 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c u32 device_type, u16 phy_data) phy_data 2717 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c u16 phy_data; phy_data 2724 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c MDIO_MMD_VEND1, &phy_data); phy_data 2725 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c phy_data |= IXGBE_X557_LED_MANUAL_SET_MASK; phy_data 2727 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c MDIO_MMD_VEND1, phy_data); phy_data 2739 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c u16 phy_data; phy_data 2746 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c MDIO_MMD_VEND1, &phy_data); phy_data 2747 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c phy_data &= ~IXGBE_X557_LED_MANUAL_SET_MASK; phy_data 2749 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c MDIO_MMD_VEND1, phy_data); phy_data 3756 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c u32 device_type, u16 *phy_data) phy_data 3764 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c status = hw->phy.ops.read_reg_mdi(hw, reg_addr, device_type, phy_data); phy_data 3782 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c u32 device_type, u16 phy_data) phy_data 3790 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c status = ixgbe_write_phy_reg_mdi(hw, reg_addr, device_type, phy_data); phy_data 1735 drivers/net/ethernet/jme.c jme_phy_specreg_write(struct jme_adapter *jme, u32 ext_reg, u32 phy_data) phy_data 1741 drivers/net/ethernet/jme.c phy_data); phy_data 1749 drivers/net/ethernet/jme.c u32 ctrl1000, phy_data; phy_data 1759 drivers/net/ethernet/jme.c phy_data = jme_phy_specreg_read(jme, JM_PHY_EXT_COMM_2_REG); phy_data 1760 drivers/net/ethernet/jme.c phy_data &= ~JM_PHY_EXT_COMM_2_CALI_MODE_0; phy_data 1761 drivers/net/ethernet/jme.c phy_data |= JM_PHY_EXT_COMM_2_CALI_LATCH | phy_data 1763 drivers/net/ethernet/jme.c jme_phy_specreg_write(jme, JM_PHY_EXT_COMM_2_REG, phy_data); phy_data 1765 drivers/net/ethernet/jme.c phy_data = jme_phy_specreg_read(jme, JM_PHY_EXT_COMM_2_REG); phy_data 1766 drivers/net/ethernet/jme.c phy_data &= ~(JM_PHY_EXT_COMM_2_CALI_ENABLE | phy_data 1769 drivers/net/ethernet/jme.c jme_phy_specreg_write(jme, JM_PHY_EXT_COMM_2_REG, phy_data); phy_data 304 drivers/net/ethernet/lantiq_etop.c ltq_etop_mdio_wr(struct mii_bus *bus, int phy_addr, int phy_reg, u16 phy_data) phy_data 309 drivers/net/ethernet/lantiq_etop.c phy_data; phy_data 861 drivers/net/ethernet/sfc/falcon/net_driver.h void *phy_data; phy_data 162 drivers/net/ethernet/sfc/falcon/qt202x_phy.c struct qt202x_phy_data *phy_data = efx->phy_data; phy_data 175 drivers/net/ethernet/sfc/falcon/qt202x_phy.c phy_data->firmware_ver = ((firmware_id[3] & 0xf0) << 20) | phy_data 182 drivers/net/ethernet/sfc/falcon/qt202x_phy.c struct qt202x_phy_data *phy_data = efx->phy_data; phy_data 192 drivers/net/ethernet/sfc/falcon/qt202x_phy.c phy_data->bug17190_in_bad_state = false; phy_data 196 drivers/net/ethernet/sfc/falcon/qt202x_phy.c if (!phy_data->bug17190_in_bad_state) { phy_data 197 drivers/net/ethernet/sfc/falcon/qt202x_phy.c phy_data->bug17190_in_bad_state = true; phy_data 198 drivers/net/ethernet/sfc/falcon/qt202x_phy.c phy_data->bug17190_timer = jiffies + BUG17190_INTERVAL; phy_data 202 drivers/net/ethernet/sfc/falcon/qt202x_phy.c if (time_after_eq(jiffies, phy_data->bug17190_timer)) { phy_data 209 drivers/net/ethernet/sfc/falcon/qt202x_phy.c phy_data->bug17190_timer = jiffies + BUG17190_INTERVAL; phy_data 215 drivers/net/ethernet/sfc/falcon/qt202x_phy.c struct qt202x_phy_data *phy_data = efx->phy_data; phy_data 223 drivers/net/ethernet/sfc/falcon/qt202x_phy.c if (phy_data->firmware_ver < 0x02000100) phy_data 341 drivers/net/ethernet/sfc/falcon/qt202x_phy.c struct qt202x_phy_data *phy_data; phy_data 343 drivers/net/ethernet/sfc/falcon/qt202x_phy.c phy_data = kzalloc(sizeof(struct qt202x_phy_data), GFP_KERNEL); phy_data 344 drivers/net/ethernet/sfc/falcon/qt202x_phy.c if (!phy_data) phy_data 346 drivers/net/ethernet/sfc/falcon/qt202x_phy.c efx->phy_data = phy_data; phy_data 347 drivers/net/ethernet/sfc/falcon/qt202x_phy.c phy_data->phy_mode = efx->phy_mode; phy_data 348 drivers/net/ethernet/sfc/falcon/qt202x_phy.c phy_data->bug17190_in_bad_state = false; phy_data 349 drivers/net/ethernet/sfc/falcon/qt202x_phy.c phy_data->bug17190_timer = 0; phy_data 402 drivers/net/ethernet/sfc/falcon/qt202x_phy.c struct qt202x_phy_data *phy_data = efx->phy_data; phy_data 424 drivers/net/ethernet/sfc/falcon/qt202x_phy.c (phy_data->phy_mode & PHY_MODE_TX_DISABLED)) phy_data 432 drivers/net/ethernet/sfc/falcon/qt202x_phy.c phy_data->phy_mode = efx->phy_mode; phy_data 446 drivers/net/ethernet/sfc/falcon/qt202x_phy.c kfree(efx->phy_data); phy_data 447 drivers/net/ethernet/sfc/falcon/qt202x_phy.c efx->phy_data = NULL; phy_data 165 drivers/net/ethernet/sfc/falcon/tenxpress.c struct tenxpress_phy_data *phy_data; phy_data 168 drivers/net/ethernet/sfc/falcon/tenxpress.c phy_data = kzalloc(sizeof(*phy_data), GFP_KERNEL); phy_data 169 drivers/net/ethernet/sfc/falcon/tenxpress.c if (!phy_data) phy_data 171 drivers/net/ethernet/sfc/falcon/tenxpress.c efx->phy_data = phy_data; phy_data 172 drivers/net/ethernet/sfc/falcon/tenxpress.c phy_data->phy_mode = efx->phy_mode; phy_data 255 drivers/net/ethernet/sfc/falcon/tenxpress.c struct tenxpress_phy_data *pd = efx->phy_data; phy_data 321 drivers/net/ethernet/sfc/falcon/tenxpress.c struct tenxpress_phy_data *phy_data = efx->phy_data; phy_data 325 drivers/net/ethernet/sfc/falcon/tenxpress.c phy_data->phy_mode = efx->phy_mode; phy_data 330 drivers/net/ethernet/sfc/falcon/tenxpress.c phy_data->phy_mode != PHY_MODE_NORMAL); phy_data 331 drivers/net/ethernet/sfc/falcon/tenxpress.c loop_reset = (LOOPBACK_OUT_OF(phy_data, efx, LOOPBACKS_EXTERNAL(efx)) || phy_data 332 drivers/net/ethernet/sfc/falcon/tenxpress.c LOOPBACK_CHANGED(phy_data, efx, 1 << LOOPBACK_GPHY)); phy_data 345 drivers/net/ethernet/sfc/falcon/tenxpress.c phy_data->loopback_mode = efx->loopback_mode; phy_data 346 drivers/net/ethernet/sfc/falcon/tenxpress.c phy_data->phy_mode = efx->phy_mode; phy_data 382 drivers/net/ethernet/sfc/falcon/tenxpress.c kfree(efx->phy_data); phy_data 383 drivers/net/ethernet/sfc/falcon/tenxpress.c efx->phy_data = NULL; phy_data 323 drivers/net/ethernet/sfc/falcon/txc43128_phy.c struct txc43128_data *phy_data; phy_data 326 drivers/net/ethernet/sfc/falcon/txc43128_phy.c phy_data = kzalloc(sizeof(*phy_data), GFP_KERNEL); phy_data 327 drivers/net/ethernet/sfc/falcon/txc43128_phy.c if (!phy_data) phy_data 329 drivers/net/ethernet/sfc/falcon/txc43128_phy.c efx->phy_data = phy_data; phy_data 330 drivers/net/ethernet/sfc/falcon/txc43128_phy.c phy_data->phy_mode = efx->phy_mode; phy_data 446 drivers/net/ethernet/sfc/falcon/txc43128_phy.c struct txc43128_data *phy_data = efx->phy_data; phy_data 447 drivers/net/ethernet/sfc/falcon/txc43128_phy.c enum ef4_phy_mode mode_change = efx->phy_mode ^ phy_data->phy_mode; phy_data 448 drivers/net/ethernet/sfc/falcon/txc43128_phy.c bool loop_change = LOOPBACK_CHANGED(phy_data, efx, TXC_LOOPBACKS); phy_data 469 drivers/net/ethernet/sfc/falcon/txc43128_phy.c phy_data->phy_mode = efx->phy_mode; phy_data 470 drivers/net/ethernet/sfc/falcon/txc43128_phy.c phy_data->loopback_mode = efx->loopback_mode; phy_data 483 drivers/net/ethernet/sfc/falcon/txc43128_phy.c kfree(efx->phy_data); phy_data 484 drivers/net/ethernet/sfc/falcon/txc43128_phy.c efx->phy_data = NULL; phy_data 491 drivers/net/ethernet/sfc/falcon/txc43128_phy.c struct txc43128_data *data = efx->phy_data; phy_data 278 drivers/net/ethernet/sfc/mcdi_port.c struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; phy_data 413 drivers/net/ethernet/sfc/mcdi_port.c struct efx_mcdi_phy_data *phy_data; phy_data 419 drivers/net/ethernet/sfc/mcdi_port.c phy_data = kzalloc(sizeof(*phy_data), GFP_KERNEL); phy_data 420 drivers/net/ethernet/sfc/mcdi_port.c if (phy_data == NULL) phy_data 423 drivers/net/ethernet/sfc/mcdi_port.c rc = efx_mcdi_get_phy_cfg(efx, phy_data); phy_data 435 drivers/net/ethernet/sfc/mcdi_port.c efx->phy_data = phy_data; phy_data 436 drivers/net/ethernet/sfc/mcdi_port.c efx->phy_type = phy_data->type; phy_data 438 drivers/net/ethernet/sfc/mcdi_port.c efx->mdio_bus = phy_data->channel; phy_data 439 drivers/net/ethernet/sfc/mcdi_port.c efx->mdio.prtad = phy_data->port; phy_data 440 drivers/net/ethernet/sfc/mcdi_port.c efx->mdio.mmds = phy_data->mmd_mask & ~(1 << MC_CMD_MMD_CLAUSE22); phy_data 442 drivers/net/ethernet/sfc/mcdi_port.c if (phy_data->mmd_mask & (1 << MC_CMD_MMD_CLAUSE22)) phy_data 444 drivers/net/ethernet/sfc/mcdi_port.c if (phy_data->mmd_mask & ~(1 << MC_CMD_MMD_CLAUSE22)) phy_data 449 drivers/net/ethernet/sfc/mcdi_port.c mcdi_to_ethtool_linkset(phy_data->media, caps, phy_data 452 drivers/net/ethernet/sfc/mcdi_port.c phy_data->forced_cap = caps; phy_data 506 drivers/net/ethernet/sfc/mcdi_port.c if (phy_data->supported_cap & (1 << MC_CMD_PHY_CAP_AN_LBN)) phy_data 513 drivers/net/ethernet/sfc/mcdi_port.c kfree(phy_data); phy_data 519 drivers/net/ethernet/sfc/mcdi_port.c struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; phy_data 535 drivers/net/ethernet/sfc/mcdi_port.c struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; phy_data 584 drivers/net/ethernet/sfc/mcdi_port.c struct efx_mcdi_phy_data *phy_data = efx->phy_data; phy_data 586 drivers/net/ethernet/sfc/mcdi_port.c efx->phy_data = NULL; phy_data 587 drivers/net/ethernet/sfc/mcdi_port.c kfree(phy_data); phy_data 593 drivers/net/ethernet/sfc/mcdi_port.c struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; phy_data 624 drivers/net/ethernet/sfc/mcdi_port.c struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; phy_data 724 drivers/net/ethernet/sfc/mcdi_port.c struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; phy_data 843 drivers/net/ethernet/sfc/mcdi_port.c struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; phy_data 882 drivers/net/ethernet/sfc/mcdi_port.c struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; phy_data 995 drivers/net/ethernet/sfc/mcdi_port.c struct efx_mcdi_phy_data *phy_data = efx->phy_data; phy_data 997 drivers/net/ethernet/sfc/mcdi_port.c if (phy_data->media != MC_CMD_MEDIA_QSFP_PLUS) phy_data 998 drivers/net/ethernet/sfc/mcdi_port.c return phy_data->media; phy_data 1137 drivers/net/ethernet/sfc/mcdi_port.c struct efx_mcdi_phy_data *phy_data = efx->phy_data; phy_data 1139 drivers/net/ethernet/sfc/mcdi_port.c return phy_data->supported_cap; phy_data 1036 drivers/net/ethernet/sfc/net_driver.h void *phy_data; phy_data 116 drivers/net/ethernet/sgi/meth.c while ((___rval = mace->eth.phy_data) & MDIO_BUSY) { \ phy_data 270 drivers/net/ethernet/ti/davinci_mdio.c int phy_reg, u16 phy_data) phy_data 286 drivers/net/ethernet/ti/davinci_mdio.c (phy_id << 16) | (phy_data & USERACCESS_DATA)); phy_data 1124 drivers/net/wireless/ath/carl9170/phy.c u32 phy_data = 0; phy_data 1200 drivers/net/wireless/ath/carl9170/phy.c phy_data |= tmp << ((i & 3) << 3); phy_data 1203 drivers/net/wireless/ath/carl9170/phy.c (i & ~3), phy_data); phy_data 1204 drivers/net/wireless/ath/carl9170/phy.c phy_data = 0; phy_data 1114 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c struct iwl_mvm_rx_phy_data *phy_data, phy_data 1118 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c u32 phy_data2 = le32_to_cpu(phy_data->d2); phy_data 1119 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c u32 phy_data3 = le32_to_cpu(phy_data->d3); phy_data 1120 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c u16 phy_data4 = le16_to_cpu(phy_data->d4); phy_data 1165 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c iwl_mvm_decode_he_phy_ru_alloc(struct iwl_mvm_rx_phy_data *phy_data, phy_data 1179 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c u8 ru = le32_get_bits(phy_data->d1, IWL_RX_PHY_DATA1_HE_RU_ALLOC_MASK); phy_data 1219 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c if (phy_data->d1 & cpu_to_le32(IWL_RX_PHY_DATA1_HE_RU_ALLOC_SEC80)) phy_data 1247 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c struct iwl_mvm_rx_phy_data *phy_data, phy_data 1253 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c switch (phy_data->info_type) { phy_data 1266 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c he->data4 |= le16_encode_bits(le32_get_bits(phy_data->d2, phy_data 1269 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c he->data4 |= le16_encode_bits(le32_get_bits(phy_data->d2, phy_data 1272 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c he->data4 |= le16_encode_bits(le32_get_bits(phy_data->d2, phy_data 1275 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c he->data4 |= le16_encode_bits(le32_get_bits(phy_data->d2, phy_data 1291 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c he->data3 |= le16_encode_bits(le32_get_bits(phy_data->d0, phy_data 1294 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c if (phy_data->info_type != IWL_RX_PHY_INFO_TYPE_HE_TB && phy_data 1295 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c phy_data->info_type != IWL_RX_PHY_INFO_TYPE_HE_TB_EXT) { phy_data 1297 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c he->data3 |= le16_encode_bits(le32_get_bits(phy_data->d0, phy_data 1301 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c he->data3 |= le16_encode_bits(le32_get_bits(phy_data->d0, phy_data 1304 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c he->data5 |= le16_encode_bits(le32_get_bits(phy_data->d0, phy_data 1307 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c he->data5 |= le16_encode_bits(le32_get_bits(phy_data->d0, phy_data 1310 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c he->data5 |= le16_encode_bits(le32_get_bits(phy_data->d1, phy_data 1313 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c he->data6 |= le16_encode_bits(le32_get_bits(phy_data->d0, phy_data 1316 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c he->data6 |= le16_encode_bits(le32_get_bits(phy_data->d0, phy_data 1322 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c switch (phy_data->info_type) { phy_data 1327 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c he->data4 |= le16_encode_bits(le32_get_bits(phy_data->d0, phy_data 1336 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c switch (phy_data->info_type) { phy_data 1339 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c le16_encode_bits(le16_get_bits(phy_data->d4, phy_data 1343 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c le16_encode_bits(le16_get_bits(phy_data->d4, phy_data 1347 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c le16_encode_bits(le16_get_bits(phy_data->d4, phy_data 1350 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c iwl_mvm_decode_he_mu_ext(mvm, phy_data, rate_n_flags, he_mu); phy_data 1354 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c le16_encode_bits(le32_get_bits(phy_data->d1, phy_data 1358 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c le16_encode_bits(le32_get_bits(phy_data->d1, phy_data 1364 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c iwl_mvm_decode_he_phy_ru_alloc(phy_data, rate_n_flags, phy_data 1369 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c he->data3 |= le16_encode_bits(le32_get_bits(phy_data->d0, phy_data 1380 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c struct iwl_mvm_rx_phy_data *phy_data, phy_data 1408 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c if (phy_data->info_type == IWL_RX_PHY_INFO_TYPE_HE_MU || phy_data 1409 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c phy_data->info_type == IWL_RX_PHY_INFO_TYPE_HE_MU_EXT) { phy_data 1418 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c if (phy_data->d0 & cpu_to_le32(IWL_RX_PHY_DATA0_HE_DELIM_EOF)) phy_data 1423 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c iwl_mvm_decode_he_phy_data(mvm, phy_data, he, he_mu, rx_status, phy_data 1434 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c if (phy_data->d0 & cpu_to_le32(IWL_RX_PHY_DATA0_HE_DELIM_EOF)) phy_data 1522 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c struct iwl_mvm_rx_phy_data *phy_data) phy_data 1527 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c switch (phy_data->info_type) { phy_data 1538 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c lsig->data2 = le16_encode_bits(le32_get_bits(phy_data->d1, phy_data 1562 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c struct iwl_mvm_rx_phy_data phy_data = { phy_data 1579 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c phy_data.d0 = desc->v3.phy_data0; phy_data 1580 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c phy_data.d1 = desc->v3.phy_data1; phy_data 1581 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c phy_data.d2 = desc->v3.phy_data2; phy_data 1582 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c phy_data.d3 = desc->v3.phy_data3; phy_data 1591 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c phy_data.d0 = desc->v1.phy_data0; phy_data 1592 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c phy_data.d1 = desc->v1.phy_data1; phy_data 1593 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c phy_data.d2 = desc->v1.phy_data2; phy_data 1594 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c phy_data.d3 = desc->v1.phy_data3; phy_data 1598 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c phy_data.info_type = phy_data 1599 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c le32_get_bits(phy_data.d1, phy_data 1640 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c iwl_mvm_rx_he(mvm, skb, &phy_data, rate_n_flags, phy_data 1643 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c iwl_mvm_decode_lsig(skb, &phy_data); phy_data 1890 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c struct iwl_mvm_rx_phy_data phy_data = { phy_data 1902 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c phy_data.info_type = phy_data 1952 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c iwl_mvm_rx_he(mvm, skb, &phy_data, rate_n_flags, phy_data 1955 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c iwl_mvm_decode_lsig(skb, &phy_data); phy_data 193 drivers/phy/allwinner/phy-sun4i-usb.c struct sun4i_usb_phy_data *phy_data = to_sun4i_usb_phy_data(phy); phy_data 195 drivers/phy/allwinner/phy-sun4i-usb.c void __iomem *phyctl = phy_data->base + phy_data->cfg->phyctl_offset; phy_data 199 drivers/phy/allwinner/phy-sun4i-usb.c spin_lock_irqsave(&phy_data->reg_lock, flags); phy_data 201 drivers/phy/allwinner/phy-sun4i-usb.c if (phy_data->cfg->phyctl_offset == REG_PHYCTL_A33) { phy_data 237 drivers/phy/allwinner/phy-sun4i-usb.c spin_unlock_irqrestore(&phy_data->reg_lock, flags); phy_data 242 drivers/phy/allwinner/phy-sun4i-usb.c struct sun4i_usb_phy_data *phy_data = to_sun4i_usb_phy_data(phy); phy_data 252 drivers/phy/allwinner/phy-sun4i-usb.c if (phy_data->cfg->type == sun8i_a83t_phy && phy->index == 2) phy_data 66 drivers/phy/rockchip/phy-rockchip-pcie.c struct rockchip_pcie_data *phy_data; phy_data 103 drivers/phy/rockchip/phy-rockchip-pcie.c regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, phy_data 111 drivers/phy/rockchip/phy-rockchip-pcie.c regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, phy_data 116 drivers/phy/rockchip/phy-rockchip-pcie.c regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, phy_data 127 drivers/phy/rockchip/phy-rockchip-pcie.c regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, phy_data 132 drivers/phy/rockchip/phy-rockchip-pcie.c rk_phy->phy_data->pcie_status, phy_data 146 drivers/phy/rockchip/phy-rockchip-pcie.c rk_phy->phy_data->pcie_laneoff, phy_data 167 drivers/phy/rockchip/phy-rockchip-pcie.c rk_phy->phy_data->pcie_laneoff, phy_data 194 drivers/phy/rockchip/phy-rockchip-pcie.c regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, phy_data 200 drivers/phy/rockchip/phy-rockchip-pcie.c rk_phy->phy_data->pcie_laneoff, phy_data 215 drivers/phy/rockchip/phy-rockchip-pcie.c rk_phy->phy_data->pcie_status, phy_data 236 drivers/phy/rockchip/phy-rockchip-pcie.c rk_phy->phy_data->pcie_status, phy_data 251 drivers/phy/rockchip/phy-rockchip-pcie.c regmap_write(rk_phy->reg_base, rk_phy->phy_data->pcie_conf, phy_data 258 drivers/phy/rockchip/phy-rockchip-pcie.c rk_phy->phy_data->pcie_status, phy_data 386 drivers/phy/rockchip/phy-rockchip-pcie.c rk_phy->phy_data = (struct rockchip_pcie_data *)of_id->data; phy_data 192 drivers/phy/ti/phy-dm816x-usb.c const struct usb_phy_data *phy_data; phy_data 223 drivers/phy/ti/phy-dm816x-usb.c phy_data = of_id->data; phy_data 291 drivers/phy/ti/phy-omap-usb2.c struct usb_phy_data *phy_data; phy_data 298 drivers/phy/ti/phy-omap-usb2.c phy_data = (struct usb_phy_data *)of_id->data; phy_data 311 drivers/phy/ti/phy-omap-usb2.c phy->phy.label = phy_data->label; phy_data 314 drivers/phy/ti/phy-omap-usb2.c phy->mask = phy_data->mask; phy_data 315 drivers/phy/ti/phy-omap-usb2.c phy->power_on = phy_data->power_on; phy_data 316 drivers/phy/ti/phy-omap-usb2.c phy->power_off = phy_data->power_off; phy_data 318 drivers/phy/ti/phy-omap-usb2.c if (phy_data->flags & OMAP_USB2_CALIBRATE_FALSE_DISCONNECT) { phy_data 397 drivers/phy/ti/phy-omap-usb2.c if (phy_data->flags & OMAP_USB2_HAS_SET_VBUS) phy_data 399 drivers/phy/ti/phy-omap-usb2.c if (phy_data->flags & OMAP_USB2_HAS_START_SRP) phy_data 133 include/drm/bridge/dw_hdmi.h void *phy_data; phy_data 154 include/linux/atmdev.h void *phy_data; /* private PHY date */