edata 161 drivers/devfreq/devfreq-event.c struct devfreq_event_data *edata) edata 174 drivers/devfreq/devfreq-event.c edata->total_count = edata->load_count = 0; edata 177 drivers/devfreq/devfreq-event.c ret = edev->desc->ops->get_event(edev, edata); edata 179 drivers/devfreq/devfreq-event.c edata->total_count = edata->load_count = 0; edata 144 drivers/devfreq/event/exynos-nocp.c struct devfreq_event_data *edata) edata 167 drivers/devfreq/event/exynos-nocp.c edata->load_count = ((counter[1] << 16) | counter[0]); edata 168 drivers/devfreq/event/exynos-nocp.c edata->total_count = ((counter[3] << 16) | counter[2]); edata 171 drivers/devfreq/event/exynos-nocp.c edata->load_count, edata->total_count); edata 197 drivers/devfreq/event/exynos-ppmu.c struct devfreq_event_data *edata) edata 223 drivers/devfreq/event/exynos-ppmu.c edata->total_count = total_count; edata 233 drivers/devfreq/event/exynos-ppmu.c edata->load_count = load_count; edata 244 drivers/devfreq/event/exynos-ppmu.c edata->load_count = ((pmcnt3_high << 8) | pmcnt3_low); edata 261 drivers/devfreq/event/exynos-ppmu.c edata->load_count, edata->total_count); edata 415 drivers/devfreq/event/exynos-ppmu.c struct devfreq_event_data *edata) edata 439 drivers/devfreq/event/exynos-ppmu.c edata->total_count = total_count; edata 463 drivers/devfreq/event/exynos-ppmu.c edata->load_count = load_count; edata 476 drivers/devfreq/event/exynos-ppmu.c edata->load_count, edata->total_count); edata 150 drivers/devfreq/event/rockchip-dfi.c struct devfreq_event_data *edata) edata 157 drivers/devfreq/event/rockchip-dfi.c edata->load_count = info->ch_usage[busier_ch].access; edata 158 drivers/devfreq/event/rockchip-dfi.c edata->total_count = info->ch_usage[busier_ch].total; edata 64 drivers/devfreq/exynos-bus.c struct devfreq_event_data *edata) edata 84 drivers/devfreq/exynos-bus.c edata->load_count = load_count; edata 85 drivers/devfreq/exynos-bus.c edata->total_count = total_count; edata 123 drivers/devfreq/exynos-bus.c struct devfreq_event_data edata; edata 128 drivers/devfreq/exynos-bus.c ret = exynos_bus_get_event(bus, &edata); edata 134 drivers/devfreq/exynos-bus.c stat->busy_time = (edata.load_count * 100) / bus->ratio; edata 135 drivers/devfreq/exynos-bus.c stat->total_time = edata.total_count; edata 167 drivers/devfreq/rk3399_dmc.c struct devfreq_event_data edata; edata 170 drivers/devfreq/rk3399_dmc.c ret = devfreq_event_get_event(dmcfreq->edev, &edata); edata 175 drivers/devfreq/rk3399_dmc.c stat->busy_time = edata.load_count; edata 176 drivers/devfreq/rk3399_dmc.c stat->total_time = edata.total_count; edata 2109 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c static int bnx2x_get_eee(struct net_device *dev, struct ethtool_eee *edata) edata 2121 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c edata->supported = edata 2125 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c edata->advertised = edata 2128 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c edata->lp_advertised = edata 2133 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c edata->tx_lpi_timer = (eee_cfg & SHMEM_EEE_TIMER_MASK) << 4; edata 2135 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c edata->eee_enabled = (eee_cfg & SHMEM_EEE_REQUESTED_BIT) ? 1 : 0; edata 2136 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c edata->eee_active = (eee_cfg & SHMEM_EEE_ACTIVE_BIT) ? 1 : 0; edata 2137 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c edata->tx_lpi_enabled = (eee_cfg & SHMEM_EEE_LPI_REQUESTED_BIT) ? 1 : 0; edata 2142 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c static int bnx2x_set_eee(struct net_device *dev, struct ethtool_eee *edata) edata 2163 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c advertised = bnx2x_adv_to_eee(edata->advertised, edata 2171 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c if (edata->tx_lpi_timer > EEE_MODE_TIMER_MASK) { edata 2177 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c if (edata->tx_lpi_enabled && edata 2178 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c (edata->tx_lpi_timer < EEE_MODE_NVRAM_AGGRESSIVE_TIME)) { edata 2186 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c if (edata->eee_enabled) edata 2191 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c if (edata->tx_lpi_enabled) edata 2197 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c bp->link_params.eee_mode |= (edata->tx_lpi_timer & edata 2389 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c static int bnxt_set_eee(struct net_device *dev, struct ethtool_eee *edata) edata 2404 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c if (!edata->eee_enabled) edata 2411 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c if (edata->tx_lpi_enabled) { edata 2412 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c if (bp->lpi_tmr_hi && (edata->tx_lpi_timer > bp->lpi_tmr_hi || edata 2413 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c edata->tx_lpi_timer < bp->lpi_tmr_lo)) { edata 2418 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c edata->tx_lpi_timer = eee->tx_lpi_timer; edata 2421 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c if (!edata->advertised) { edata 2422 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c edata->advertised = advertising & eee->supported; edata 2423 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c } else if (edata->advertised & ~advertising) { edata 2425 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c edata->advertised, advertising); edata 2429 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c eee->advertised = edata->advertised; edata 2430 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c eee->tx_lpi_enabled = edata->tx_lpi_enabled; edata 2431 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c eee->tx_lpi_timer = edata->tx_lpi_timer; edata 2433 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c eee->eee_enabled = edata->eee_enabled; edata 2441 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c static int bnxt_get_eee(struct net_device *dev, struct ethtool_eee *edata) edata 2448 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c *edata = bp->eee; edata 2453 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c edata->advertised = 0; edata 2454 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c edata->tx_lpi_enabled = 0; edata 2458 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c edata->lp_advertised = 0; edata 14113 drivers/net/ethernet/broadcom/tg3.c static int tg3_set_eee(struct net_device *dev, struct ethtool_eee *edata) edata 14122 drivers/net/ethernet/broadcom/tg3.c if (edata->advertised != tp->eee.advertised) { edata 14128 drivers/net/ethernet/broadcom/tg3.c if (edata->tx_lpi_timer > TG3_CPMU_DBTMR1_LNKIDLE_MAX) { edata 14135 drivers/net/ethernet/broadcom/tg3.c tp->eee = *edata; edata 14150 drivers/net/ethernet/broadcom/tg3.c static int tg3_get_eee(struct net_device *dev, struct ethtool_eee *edata) edata 14160 drivers/net/ethernet/broadcom/tg3.c *edata = tp->eee; edata 2301 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct ch_reg edata; edata 2308 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c if (copy_from_user(&edata, useraddr, sizeof(edata))) edata 2310 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c if (edata.cmd != CHELSIO_SET_QSET_NUM) edata 2312 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c if (edata.val < 1 || edata 2313 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c (edata.val > 1 && !(adapter->flags & USING_MSIX))) edata 2320 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c if (edata.val + other_qsets > SGE_QSETS) edata 2323 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c pi->nqsets = edata.val; edata 2334 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c struct ch_reg edata; edata 2336 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c memset(&edata, 0, sizeof(struct ch_reg)); edata 2338 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c edata.cmd = CHELSIO_GET_QSET_NUM; edata 2339 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c edata.val = pi->nqsets; edata 2340 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c if (copy_to_user(useraddr, &edata, sizeof(edata))) edata 1676 drivers/net/ethernet/freescale/gianfar.c struct ethtool_eee edata; edata 1708 drivers/net/ethernet/freescale/gianfar.c memset(&edata, 0, sizeof(struct ethtool_eee)); edata 1709 drivers/net/ethernet/freescale/gianfar.c phy_ethtool_set_eee(phydev, &edata); edata 2152 drivers/net/ethernet/intel/e1000e/ethtool.c static int e1000e_get_eee(struct net_device *netdev, struct ethtool_eee *edata) edata 2189 drivers/net/ethernet/intel/e1000e/ethtool.c edata->supported = mmd_eee_cap_to_ethtool_sup_t(phy_data); edata 2192 drivers/net/ethernet/intel/e1000e/ethtool.c edata->advertised = mmd_eee_adv_to_ethtool_adv_t(adapter->eee_advert); edata 2198 drivers/net/ethernet/intel/e1000e/ethtool.c edata->lp_advertised = mmd_eee_adv_to_ethtool_adv_t(phy_data); edata 2212 drivers/net/ethernet/intel/e1000e/ethtool.c edata->eee_active = true; edata 2214 drivers/net/ethernet/intel/e1000e/ethtool.c edata->eee_enabled = !hw->dev_spec.ich8lan.eee_disable; edata 2215 drivers/net/ethernet/intel/e1000e/ethtool.c edata->tx_lpi_enabled = true; edata 2216 drivers/net/ethernet/intel/e1000e/ethtool.c edata->tx_lpi_timer = er32(LPIC) >> E1000_LPIC_LPIET_SHIFT; edata 2228 drivers/net/ethernet/intel/e1000e/ethtool.c static int e1000e_set_eee(struct net_device *netdev, struct ethtool_eee *edata) edata 2239 drivers/net/ethernet/intel/e1000e/ethtool.c if (eee_curr.tx_lpi_enabled != edata->tx_lpi_enabled) { edata 2244 drivers/net/ethernet/intel/e1000e/ethtool.c if (eee_curr.tx_lpi_timer != edata->tx_lpi_timer) { edata 2249 drivers/net/ethernet/intel/e1000e/ethtool.c if (edata->advertised & ~(ADVERTISE_100_FULL | ADVERTISE_1000_FULL)) { edata 2254 drivers/net/ethernet/intel/e1000e/ethtool.c adapter->eee_advert = ethtool_adv_to_mmd_eee_adv_t(edata->advertised); edata 2256 drivers/net/ethernet/intel/e1000e/ethtool.c hw->dev_spec.ich8lan.eee_disable = !edata->eee_enabled; edata 5234 drivers/net/ethernet/intel/i40e/i40e_ethtool.c static int i40e_get_eee(struct net_device *netdev, struct ethtool_eee *edata) edata 5239 drivers/net/ethernet/intel/i40e/i40e_ethtool.c static int i40e_set_eee(struct net_device *netdev, struct ethtool_eee *edata) edata 3041 drivers/net/ethernet/intel/igb/igb_ethtool.c static int igb_get_eee(struct net_device *netdev, struct ethtool_eee *edata) edata 3052 drivers/net/ethernet/intel/igb/igb_ethtool.c edata->supported = (SUPPORTED_1000baseT_Full | edata 3055 drivers/net/ethernet/intel/igb/igb_ethtool.c edata->advertised = edata 3060 drivers/net/ethernet/intel/igb/igb_ethtool.c igb_get_eee_status_i354(hw, (bool *)&edata->eee_active); edata 3068 drivers/net/ethernet/intel/igb/igb_ethtool.c edata->eee_active = true; edata 3071 drivers/net/ethernet/intel/igb/igb_ethtool.c edata->tx_lpi_enabled = true; edata 3082 drivers/net/ethernet/intel/igb/igb_ethtool.c edata->lp_advertised = mmd_eee_adv_to_ethtool_adv_t(phy_data); edata 3093 drivers/net/ethernet/intel/igb/igb_ethtool.c edata->lp_advertised = mmd_eee_adv_to_ethtool_adv_t(phy_data); edata 3100 drivers/net/ethernet/intel/igb/igb_ethtool.c edata->eee_enabled = !hw->dev_spec._82575.eee_disable; edata 3103 drivers/net/ethernet/intel/igb/igb_ethtool.c (edata->eee_enabled)) edata 3104 drivers/net/ethernet/intel/igb/igb_ethtool.c edata->tx_lpi_enabled = true; edata 3110 drivers/net/ethernet/intel/igb/igb_ethtool.c edata->eee_enabled = false; edata 3111 drivers/net/ethernet/intel/igb/igb_ethtool.c edata->eee_active = false; edata 3112 drivers/net/ethernet/intel/igb/igb_ethtool.c edata->tx_lpi_enabled = false; edata 3113 drivers/net/ethernet/intel/igb/igb_ethtool.c edata->advertised &= ~edata->advertised; edata 3120 drivers/net/ethernet/intel/igb/igb_ethtool.c struct ethtool_eee *edata) edata 3139 drivers/net/ethernet/intel/igb/igb_ethtool.c if (eee_curr.tx_lpi_enabled != edata->tx_lpi_enabled) { edata 3146 drivers/net/ethernet/intel/igb/igb_ethtool.c if (edata->tx_lpi_timer) { edata 3152 drivers/net/ethernet/intel/igb/igb_ethtool.c if (!edata->advertised || (edata->advertised & edata 3158 drivers/net/ethernet/intel/igb/igb_ethtool.c adv100m_eee = !!(edata->advertised & ADVERTISE_100_FULL); edata 3159 drivers/net/ethernet/intel/igb/igb_ethtool.c adv1g_eee = !!(edata->advertised & ADVERTISE_1000_FULL); edata 3161 drivers/net/ethernet/intel/igb/igb_ethtool.c } else if (!edata->eee_enabled) { edata 3167 drivers/net/ethernet/intel/igb/igb_ethtool.c adapter->eee_advert = ethtool_adv_to_mmd_eee_adv_t(edata->advertised); edata 3168 drivers/net/ethernet/intel/igb/igb_ethtool.c if (hw->dev_spec._82575.eee_disable != !edata->eee_enabled) { edata 3169 drivers/net/ethernet/intel/igb/igb_ethtool.c hw->dev_spec._82575.eee_disable = !edata->eee_enabled; edata 3302 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c ixgbe_get_eee_fw(struct ixgbe_adapter *adapter, struct ethtool_eee *edata) edata 3313 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c edata->lp_advertised = 0; edata 3316 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c edata->lp_advertised |= ixgbe_lp_map[i].mac_speed; edata 3319 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c edata->supported = 0; edata 3322 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c edata->supported |= ixgbe_ls_map[i].supported; edata 3325 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c edata->advertised = 0; edata 3328 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c edata->advertised |= ixgbe_ls_map[i].supported; edata 3331 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c edata->eee_enabled = !!edata->advertised; edata 3332 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c edata->tx_lpi_enabled = edata->eee_enabled; edata 3333 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (edata->advertised & edata->lp_advertised) edata 3334 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c edata->eee_active = true; edata 3339 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c static int ixgbe_get_eee(struct net_device *netdev, struct ethtool_eee *edata) edata 3348 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c return ixgbe_get_eee_fw(adapter, edata); edata 3353 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c static int ixgbe_set_eee(struct net_device *netdev, struct ethtool_eee *edata) edata 3369 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (eee_data.eee_enabled && !edata->eee_enabled) { edata 3370 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (eee_data.tx_lpi_enabled != edata->tx_lpi_enabled) { edata 3375 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (eee_data.tx_lpi_timer != edata->tx_lpi_timer) { edata 3381 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (eee_data.advertised != edata->advertised) { edata 3388 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (eee_data.eee_enabled != edata->eee_enabled) { edata 3389 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (edata->eee_enabled) { edata 1274 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c u16 phy_offset, control, eword, edata, block_crc; edata 1321 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c edata = eword & IXGBE_DATA_MASK_NL; edata 1325 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c hw_dbg(hw, "DELAY: %d MS\n", edata); edata 1326 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c usleep_range(edata * 1000, edata * 2000); edata 1335 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c for (i = 0; i < edata; i++) { edata 1351 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if (edata == IXGBE_CONTROL_EOL_NL) { edata 1354 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c } else if (edata == IXGBE_CONTROL_SOL_NL) { edata 1811 drivers/net/ethernet/qlogic/qede/qede_ethtool.c static int qede_get_eee(struct net_device *dev, struct ethtool_eee *edata) edata 1825 drivers/net/ethernet/qlogic/qede/qede_ethtool.c edata->advertised = ADVERTISED_1000baseT_Full; edata 1827 drivers/net/ethernet/qlogic/qede/qede_ethtool.c edata->advertised |= ADVERTISED_10000baseT_Full; edata 1829 drivers/net/ethernet/qlogic/qede/qede_ethtool.c edata->supported = ADVERTISED_1000baseT_Full; edata 1831 drivers/net/ethernet/qlogic/qede/qede_ethtool.c edata->supported |= ADVERTISED_10000baseT_Full; edata 1833 drivers/net/ethernet/qlogic/qede/qede_ethtool.c edata->lp_advertised = ADVERTISED_1000baseT_Full; edata 1835 drivers/net/ethernet/qlogic/qede/qede_ethtool.c edata->lp_advertised |= ADVERTISED_10000baseT_Full; edata 1837 drivers/net/ethernet/qlogic/qede/qede_ethtool.c edata->tx_lpi_timer = current_link.eee.tx_lpi_timer; edata 1838 drivers/net/ethernet/qlogic/qede/qede_ethtool.c edata->eee_enabled = current_link.eee.enable; edata 1839 drivers/net/ethernet/qlogic/qede/qede_ethtool.c edata->tx_lpi_enabled = current_link.eee.tx_lpi_enable; edata 1840 drivers/net/ethernet/qlogic/qede/qede_ethtool.c edata->eee_active = current_link.eee_active; edata 1845 drivers/net/ethernet/qlogic/qede/qede_ethtool.c static int qede_set_eee(struct net_device *dev, struct ethtool_eee *edata) edata 1867 drivers/net/ethernet/qlogic/qede/qede_ethtool.c if (!(edata->advertised & (ADVERTISED_1000baseT_Full | edata 1869 drivers/net/ethernet/qlogic/qede/qede_ethtool.c ((edata->advertised & (ADVERTISED_1000baseT_Full | edata 1871 drivers/net/ethernet/qlogic/qede/qede_ethtool.c edata->advertised)) { edata 1874 drivers/net/ethernet/qlogic/qede/qede_ethtool.c edata->advertised); edata 1878 drivers/net/ethernet/qlogic/qede/qede_ethtool.c if (edata->advertised & ADVERTISED_1000baseT_Full) edata 1880 drivers/net/ethernet/qlogic/qede/qede_ethtool.c if (edata->advertised & ADVERTISED_10000baseT_Full) edata 1882 drivers/net/ethernet/qlogic/qede/qede_ethtool.c params.eee.enable = edata->eee_enabled; edata 1883 drivers/net/ethernet/qlogic/qede/qede_ethtool.c params.eee.tx_lpi_enable = edata->tx_lpi_enabled; edata 1884 drivers/net/ethernet/qlogic/qede/qede_ethtool.c params.eee.tx_lpi_timer = edata->tx_lpi_timer; edata 136 drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c struct ethtool_eee *edata) edata 143 drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c edata->eee_enabled = priv->eee_enabled; edata 144 drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c edata->eee_active = priv->eee_active; edata 145 drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c edata->tx_lpi_timer = priv->tx_lpi_timer; edata 147 drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c return phy_ethtool_get_eee(dev->phydev, edata); edata 151 drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c struct ethtool_eee *edata) edata 155 drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c priv->eee_enabled = edata->eee_enabled; edata 169 drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c priv->tx_lpi_timer = edata->tx_lpi_timer; edata 172 drivers/net/ethernet/samsung/sxgbe/sxgbe_ethtool.c return phy_ethtool_set_eee(dev->phydev, edata); edata 645 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c struct ethtool_eee *edata) edata 652 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c edata->eee_enabled = priv->eee_enabled; edata 653 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c edata->eee_active = priv->eee_active; edata 654 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c edata->tx_lpi_timer = priv->tx_lpi_timer; edata 656 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c return phylink_ethtool_get_eee(priv->phylink, edata); edata 660 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c struct ethtool_eee *edata) edata 665 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c if (!edata->eee_enabled) { edata 672 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c edata->eee_enabled = stmmac_eee_init(priv); edata 673 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c if (!edata->eee_enabled) edata 677 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c ret = phylink_ethtool_set_eee(priv->phylink, edata); edata 681 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c priv->eee_enabled = edata->eee_enabled; edata 682 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c priv->tx_lpi_timer = edata->tx_lpi_timer; edata 422 drivers/net/ethernet/ti/cpsw_ethtool.c int cpsw_get_eee(struct net_device *ndev, struct ethtool_eee *edata) edata 429 drivers/net/ethernet/ti/cpsw_ethtool.c return phy_ethtool_get_eee(cpsw->slaves[slave_no].phy, edata); edata 434 drivers/net/ethernet/ti/cpsw_ethtool.c int cpsw_set_eee(struct net_device *ndev, struct ethtool_eee *edata) edata 441 drivers/net/ethernet/ti/cpsw_ethtool.c return phy_ethtool_set_eee(cpsw->slaves[slave_no].phy, edata); edata 425 drivers/net/ethernet/ti/cpsw_priv.h int cpsw_get_eee(struct net_device *ndev, struct ethtool_eee *edata); edata 426 drivers/net/ethernet/ti/cpsw_priv.h int cpsw_set_eee(struct net_device *ndev, struct ethtool_eee *edata); edata 109 drivers/net/phy/dp83640.c struct phy_txts edata; edata 767 drivers/net/phy/dp83640.c dp83640->edata.sec_hi = phy_txts->sec_hi; edata 770 drivers/net/phy/dp83640.c dp83640->edata.sec_lo = phy_txts->sec_lo; edata 773 drivers/net/phy/dp83640.c dp83640->edata.ns_hi = phy_txts->ns_hi; edata 776 drivers/net/phy/dp83640.c dp83640->edata.ns_lo = phy_txts->ns_lo; edata 785 drivers/net/phy/dp83640.c event.timestamp = phy2txts(&dp83640->edata); edata 772 drivers/net/usb/ax88179_178a.c static int ax88179_get_eee(struct net_device *net, struct ethtool_eee *edata) edata 777 drivers/net/usb/ax88179_178a.c edata->eee_enabled = priv->eee_enabled; edata 778 drivers/net/usb/ax88179_178a.c edata->eee_active = priv->eee_active; edata 780 drivers/net/usb/ax88179_178a.c return ax88179_ethtool_get_eee(dev, edata); edata 783 drivers/net/usb/ax88179_178a.c static int ax88179_set_eee(struct net_device *net, struct ethtool_eee *edata) edata 789 drivers/net/usb/ax88179_178a.c priv->eee_enabled = edata->eee_enabled; edata 800 drivers/net/usb/ax88179_178a.c ret = ax88179_ethtool_set_eee(dev, edata); edata 1408 drivers/net/usb/lan78xx.c static int lan78xx_get_eee(struct net_device *net, struct ethtool_eee *edata) edata 1419 drivers/net/usb/lan78xx.c ret = phy_ethtool_get_eee(phydev, edata); edata 1425 drivers/net/usb/lan78xx.c edata->eee_enabled = true; edata 1426 drivers/net/usb/lan78xx.c edata->eee_active = !!(edata->advertised & edata 1427 drivers/net/usb/lan78xx.c edata->lp_advertised); edata 1428 drivers/net/usb/lan78xx.c edata->tx_lpi_enabled = true; edata 1431 drivers/net/usb/lan78xx.c edata->tx_lpi_timer = buf; edata 1433 drivers/net/usb/lan78xx.c edata->eee_enabled = false; edata 1434 drivers/net/usb/lan78xx.c edata->eee_active = false; edata 1435 drivers/net/usb/lan78xx.c edata->tx_lpi_enabled = false; edata 1436 drivers/net/usb/lan78xx.c edata->tx_lpi_timer = 0; edata 1446 drivers/net/usb/lan78xx.c static int lan78xx_set_eee(struct net_device *net, struct ethtool_eee *edata) edata 1456 drivers/net/usb/lan78xx.c if (edata->eee_enabled) { edata 1461 drivers/net/usb/lan78xx.c phy_ethtool_set_eee(net->phydev, edata); edata 1463 drivers/net/usb/lan78xx.c buf = (u32)edata->tx_lpi_timer; edata 5155 drivers/net/usb/r8152.c rtl_ethtool_get_eee(struct net_device *net, struct ethtool_eee *edata) edata 5166 drivers/net/usb/r8152.c ret = tp->rtl_ops.eee_get(tp, edata); edata 5177 drivers/net/usb/r8152.c rtl_ethtool_set_eee(struct net_device *net, struct ethtool_eee *edata) edata 5188 drivers/net/usb/r8152.c ret = tp->rtl_ops.eee_set(tp, edata); edata 471 drivers/staging/wlan-ng/p80211netdev.c struct ethtool_value edata; edata 474 drivers/staging/wlan-ng/p80211netdev.c memset(&edata, 0, sizeof(edata)); edata 492 drivers/staging/wlan-ng/p80211netdev.c edata.cmd = ethcmd; edata 496 drivers/staging/wlan-ng/p80211netdev.c edata.data = 1; edata 498 drivers/staging/wlan-ng/p80211netdev.c edata.data = 0; edata 501 drivers/staging/wlan-ng/p80211netdev.c if (copy_to_user(useraddr, &edata, sizeof(edata))) edata 74 include/linux/devfreq-event.h struct devfreq_event_data *edata); edata 106 include/linux/devfreq-event.h struct devfreq_event_data *edata); edata 144 include/linux/devfreq-event.h struct devfreq_event_data *edata) edata 2532 kernel/trace/trace_events.c struct event_probe_data *edata; edata 2539 kernel/trace/trace_events.c edata = *pdata; edata 2540 kernel/trace/trace_events.c update_event_probe(edata); edata 2549 kernel/trace/trace_events.c struct event_probe_data *edata; edata 2556 kernel/trace/trace_events.c edata = *pdata; edata 2558 kernel/trace/trace_events.c if (!edata->count) edata 2562 kernel/trace/trace_events.c if (edata->enable == !(edata->file->flags & EVENT_FILE_FL_SOFT_DISABLED)) edata 2565 kernel/trace/trace_events.c if (edata->count != -1) edata 2566 kernel/trace/trace_events.c (edata->count)--; edata 2568 kernel/trace/trace_events.c update_event_probe(edata); edata 2576 kernel/trace/trace_events.c struct event_probe_data *edata; edata 2584 kernel/trace/trace_events.c edata = *pdata; edata 2589 kernel/trace/trace_events.c edata->enable ? ENABLE_EVENT_STR : DISABLE_EVENT_STR, edata 2590 kernel/trace/trace_events.c edata->file->event_call->class->system, edata 2591 kernel/trace/trace_events.c trace_event_name(edata->file->event_call)); edata 2593 kernel/trace/trace_events.c if (edata->count == -1) edata 2596 kernel/trace/trace_events.c seq_printf(m, ":count=%ld\n", edata->count); edata 2606 kernel/trace/trace_events.c struct event_probe_data *edata = init_data; edata 2616 kernel/trace/trace_events.c ret = ftrace_func_mapper_add_ip(mapper, ip, edata); edata 2620 kernel/trace/trace_events.c edata->ref++; edata 2627 kernel/trace/trace_events.c struct event_probe_data *edata = data; edata 2629 kernel/trace/trace_events.c edata->ref--; edata 2630 kernel/trace/trace_events.c if (!edata->ref) { edata 2632 kernel/trace/trace_events.c __ftrace_event_enable_disable(edata->file, 0, 1); edata 2633 kernel/trace/trace_events.c module_put(edata->file->event_call->mod); edata 2634 kernel/trace/trace_events.c kfree(edata); edata 2644 kernel/trace/trace_events.c struct event_probe_data *edata; edata 2653 kernel/trace/trace_events.c edata = ftrace_func_mapper_remove_ip(mapper, ip); edata 2655 kernel/trace/trace_events.c if (WARN_ON_ONCE(!edata)) edata 2658 kernel/trace/trace_events.c if (WARN_ON_ONCE(edata->ref <= 0)) edata 2661 kernel/trace/trace_events.c free_probe_data(edata); edata 298 net/core/ethtool.c struct ethtool_value edata = { edata 303 net/core/ethtool.c if (copy_to_user(useraddr, &edata, sizeof(edata))) edata 311 net/core/ethtool.c struct ethtool_value edata; edata 314 net/core/ethtool.c if (copy_from_user(&edata, useraddr, sizeof(edata))) edata 322 net/core/ethtool.c if (edata.data) edata 1435 net/core/ethtool.c struct ethtool_eee edata; edata 1441 net/core/ethtool.c memset(&edata, 0, sizeof(struct ethtool_eee)); edata 1442 net/core/ethtool.c edata.cmd = ETHTOOL_GEEE; edata 1443 net/core/ethtool.c rc = dev->ethtool_ops->get_eee(dev, &edata); edata 1448 net/core/ethtool.c if (copy_to_user(useraddr, &edata, sizeof(edata))) edata 1456 net/core/ethtool.c struct ethtool_eee edata; edata 1461 net/core/ethtool.c if (copy_from_user(&edata, useraddr, sizeof(edata))) edata 1464 net/core/ethtool.c return dev->ethtool_ops->set_eee(dev, &edata); edata 1477 net/core/ethtool.c struct ethtool_value edata = { .cmd = ETHTOOL_GLINK }; edata 1482 net/core/ethtool.c edata.data = netif_running(dev) && dev->ethtool_ops->get_link(dev); edata 1484 net/core/ethtool.c if (copy_to_user(useraddr, &edata, sizeof(edata))) edata 2008 net/core/ethtool.c struct ethtool_value edata = { .cmd = cmd }; edata 2013 net/core/ethtool.c edata.data = actor(dev); edata 2015 net/core/ethtool.c if (copy_to_user(useraddr, &edata, sizeof(edata))) edata 2023 net/core/ethtool.c struct ethtool_value edata; edata 2028 net/core/ethtool.c if (copy_from_user(&edata, useraddr, sizeof(edata))) edata 2031 net/core/ethtool.c actor(dev, edata.data); edata 2038 net/core/ethtool.c struct ethtool_value edata; edata 2043 net/core/ethtool.c if (copy_from_user(&edata, useraddr, sizeof(edata))) edata 2046 net/core/ethtool.c return actor(dev, edata.data); edata 46 net/sched/act_ife.c u16 edata = 0; edata 49 net/sched/act_ife.c edata = *(u16 *)mi->metaval; edata 51 net/sched/act_ife.c edata = metaval; edata 53 net/sched/act_ife.c if (!edata) /* will not encode */ edata 56 net/sched/act_ife.c edata = htons(edata); edata 57 net/sched/act_ife.c return ife_tlv_meta_encode(skbdata, mi->metaid, 2, &edata); edata 90 net/sched/act_ife.c u32 edata = metaval; edata 93 net/sched/act_ife.c edata = *(u32 *)mi->metaval; edata 95 net/sched/act_ife.c edata = metaval; edata 97 net/sched/act_ife.c if (!edata) /* will not encode */ edata 100 net/sched/act_ife.c edata = htonl(edata); edata 101 net/sched/act_ife.c return ife_tlv_meta_encode(skbdata, mi->metaid, 4, &edata);