/drivers/devfreq/event/ |
D | exynos-ppmu.c | 164 struct devfreq_event_data *edata) in exynos_ppmu_get_event() argument 179 edata->total_count = __raw_readl(info->ppmu.base + PPMU_CCNT); in exynos_ppmu_get_event() 186 edata->load_count in exynos_ppmu_get_event() 190 edata->load_count = in exynos_ppmu_get_event() 204 edata->load_count, edata->total_count); in exynos_ppmu_get_event() 297 struct devfreq_event_data *edata) in exynos_ppmu_v2_get_event() argument 311 edata->total_count = __raw_readl(info->ppmu.base + PPMU_V2_CCNT); in exynos_ppmu_v2_get_event() 326 edata->load_count = load_count; in exynos_ppmu_v2_get_event() 334 edata->load_count, edata->total_count); in exynos_ppmu_v2_get_event()
|
D | exynos-nocp.c | 147 struct devfreq_event_data *edata) in exynos_nocp_get_event() argument 170 edata->load_count = ((counter[1] << 16) | counter[0]); in exynos_nocp_get_event() 171 edata->total_count = ((counter[3] << 16) | counter[2]); in exynos_nocp_get_event() 174 edata->load_count, edata->total_count); in exynos_nocp_get_event()
|
D | rockchip-dfi.c | 167 struct devfreq_event_data *edata) in rockchip_dfi_get_event() argument 174 edata->load_count = info->ch_usage[busier_ch].access; in rockchip_dfi_get_event() 175 edata->total_count = info->ch_usage[busier_ch].total; in rockchip_dfi_get_event()
|
/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_ethtool.c | 139 struct ethtool_eee *edata) in sxgbe_get_eee() argument 146 edata->eee_enabled = priv->eee_enabled; in sxgbe_get_eee() 147 edata->eee_active = priv->eee_active; in sxgbe_get_eee() 148 edata->tx_lpi_timer = priv->tx_lpi_timer; in sxgbe_get_eee() 150 return phy_ethtool_get_eee(dev->phydev, edata); in sxgbe_get_eee() 154 struct ethtool_eee *edata) in sxgbe_set_eee() argument 158 priv->eee_enabled = edata->eee_enabled; in sxgbe_set_eee() 172 priv->tx_lpi_timer = edata->tx_lpi_timer; in sxgbe_set_eee() 175 return phy_ethtool_set_eee(dev->phydev, edata); in sxgbe_set_eee()
|
/drivers/input/joystick/iforce/ |
D | iforce-main.c | 331 input_dev->id.vendor = (iforce->edata[2] << 8) | iforce->edata[1]; in iforce_init_device() 336 input_dev->id.product = (iforce->edata[2] << 8) | iforce->edata[1]; in iforce_init_device() 341 iforce->device_memory.end = (iforce->edata[2] << 8) | iforce->edata[1]; in iforce_init_device() 346 ff_effects = iforce->edata[1]; in iforce_init_device() 363 iforce_dump_packet("info", iforce->ecmd, iforce->edata); in iforce_init_device()
|
D | iforce-packets.c | 171 memcpy(iforce->edata, data, IFORCE_MAX_LENGTH); in iforce_process_packet() 307 return -(iforce->edata[0] != packet[0]); in iforce_get_id_packet()
|
D | iforce.h | 106 unsigned char edata[IFORCE_MAX_LENGTH]; member
|
D | iforce-usb.c | 177 (void*) &iforce->cr, iforce->edata, 16, iforce_usb_ctrl, iforce); in iforce_usb_probe()
|
/drivers/firmware/efi/ |
D | efi-pstore.c | 347 struct pstore_erase_data edata; in efi_pstore_erase() local 361 edata.id = part; in efi_pstore_erase() 362 edata.type = type; in efi_pstore_erase() 363 edata.count = count; in efi_pstore_erase() 364 edata.time = time; in efi_pstore_erase() 365 edata.name = efi_name; in efi_pstore_erase() 369 found = __efivar_entry_iter(efi_pstore_erase_func, &efivar_sysfs_list, &edata, &entry); in efi_pstore_erase()
|
/drivers/devfreq/ |
D | devfreq-event.c | 164 struct devfreq_event_data *edata) in devfreq_event_get_event() argument 177 edata->total_count = edata->load_count = 0; in devfreq_event_get_event() 180 ret = edev->desc->ops->get_event(edev, edata); in devfreq_event_get_event() 182 edata->total_count = edata->load_count = 0; in devfreq_event_get_event()
|
D | exynos-bus.c | 69 struct devfreq_event_data *edata) in exynos_bus_get_event() argument 89 edata->load_count = load_count; in exynos_bus_get_event() 90 edata->total_count = total_count; in exynos_bus_get_event() 163 struct devfreq_event_data edata; in exynos_bus_get_dev_status() local 170 ret = exynos_bus_get_event(bus, &edata); in exynos_bus_get_dev_status() 176 stat->busy_time = (edata.load_count * 100) / bus->ratio; in exynos_bus_get_dev_status() 177 stat->total_time = edata.total_count; in exynos_bus_get_dev_status()
|
D | rk3399_dmc.c | 178 struct devfreq_event_data edata; in rk3399_dmcfreq_get_dev_status() local 181 ret = devfreq_event_get_event(dmcfreq->edev, &edata); in rk3399_dmcfreq_get_dev_status() 186 stat->busy_time = edata.load_count; in rk3399_dmcfreq_get_dev_status() 187 stat->total_time = edata.total_count; in rk3399_dmcfreq_get_dev_status()
|
/drivers/staging/wlan-ng/ |
D | p80211netdev.c | 466 struct ethtool_value edata; in p80211netdev_ethtool() local 469 memset(&edata, 0, sizeof(edata)); in p80211netdev_ethtool() 487 edata.cmd = ethcmd; in p80211netdev_ethtool() 491 edata.data = 1; in p80211netdev_ethtool() 493 edata.data = 0; in p80211netdev_ethtool() 496 if (copy_to_user(useraddr, &edata, sizeof(edata))) in p80211netdev_ethtool()
|
/drivers/staging/slicoss/ |
D | slicoss.c | 2479 struct ethtool_cmd edata; in slic_ioctl() local 2499 memset(&edata, 0, sizeof(edata)); in slic_ioctl() 2500 edata.supported = (SUPPORTED_10baseT_Half | in slic_ioctl() 2505 edata.port = PORT_MII; in slic_ioctl() 2506 edata.transceiver = XCVR_INTERNAL; in slic_ioctl() 2507 edata.phy_address = 0; in slic_ioctl() 2509 edata.speed = SPEED_100; in slic_ioctl() 2511 edata.speed = SPEED_10; in slic_ioctl() 2513 edata.speed = 0; in slic_ioctl() 2516 edata.duplex = DUPLEX_FULL; in slic_ioctl() [all …]
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_ethtool.c | 661 struct ethtool_eee *edata) in stmmac_ethtool_op_get_eee() argument 668 edata->eee_enabled = priv->eee_enabled; in stmmac_ethtool_op_get_eee() 669 edata->eee_active = priv->eee_active; in stmmac_ethtool_op_get_eee() 670 edata->tx_lpi_timer = priv->tx_lpi_timer; in stmmac_ethtool_op_get_eee() 672 return phy_ethtool_get_eee(priv->phydev, edata); in stmmac_ethtool_op_get_eee() 676 struct ethtool_eee *edata) in stmmac_ethtool_op_set_eee() argument 680 priv->eee_enabled = edata->eee_enabled; in stmmac_ethtool_op_set_eee() 694 priv->tx_lpi_timer = edata->tx_lpi_timer; in stmmac_ethtool_op_set_eee() 697 return phy_ethtool_set_eee(priv->phydev, edata); in stmmac_ethtool_op_set_eee()
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 1659 static int bnxt_set_eee(struct net_device *dev, struct ethtool_eee *edata) in bnxt_set_eee() argument 1674 if (!edata->eee_enabled) in bnxt_set_eee() 1681 if (edata->tx_lpi_enabled) { in bnxt_set_eee() 1682 if (bp->lpi_tmr_hi && (edata->tx_lpi_timer > bp->lpi_tmr_hi || in bnxt_set_eee() 1683 edata->tx_lpi_timer < bp->lpi_tmr_lo)) { in bnxt_set_eee() 1688 edata->tx_lpi_timer = eee->tx_lpi_timer; in bnxt_set_eee() 1691 if (!edata->advertised) { in bnxt_set_eee() 1692 edata->advertised = advertising & eee->supported; in bnxt_set_eee() 1693 } else if (edata->advertised & ~advertising) { in bnxt_set_eee() 1695 edata->advertised, advertising); in bnxt_set_eee() [all …]
|
/drivers/net/ethernet/intel/igb/ |
D | igb_ethtool.c | 2962 static int igb_get_eee(struct net_device *netdev, struct ethtool_eee *edata) in igb_get_eee() argument 2973 edata->supported = (SUPPORTED_1000baseT_Full | in igb_get_eee() 2976 edata->advertised = in igb_get_eee() 2981 igb_get_eee_status_i354(hw, (bool *)&edata->eee_active); in igb_get_eee() 2989 edata->eee_active = true; in igb_get_eee() 2992 edata->tx_lpi_enabled = true; in igb_get_eee() 3003 edata->lp_advertised = mmd_eee_adv_to_ethtool_adv_t(phy_data); in igb_get_eee() 3014 edata->lp_advertised = mmd_eee_adv_to_ethtool_adv_t(phy_data); in igb_get_eee() 3021 edata->eee_enabled = !hw->dev_spec._82575.eee_disable; in igb_get_eee() 3024 (edata->eee_enabled)) in igb_get_eee() [all …]
|
/drivers/net/ethernet/intel/e1000e/ |
D | ethtool.c | 2162 static int e1000e_get_eee(struct net_device *netdev, struct ethtool_eee *edata) in e1000e_get_eee() argument 2199 edata->supported = mmd_eee_cap_to_ethtool_sup_t(phy_data); in e1000e_get_eee() 2202 edata->advertised = mmd_eee_adv_to_ethtool_adv_t(adapter->eee_advert); in e1000e_get_eee() 2208 edata->lp_advertised = mmd_eee_adv_to_ethtool_adv_t(phy_data); in e1000e_get_eee() 2222 edata->eee_active = true; in e1000e_get_eee() 2224 edata->eee_enabled = !hw->dev_spec.ich8lan.eee_disable; in e1000e_get_eee() 2225 edata->tx_lpi_enabled = true; in e1000e_get_eee() 2226 edata->tx_lpi_timer = er32(LPIC) >> E1000_LPIC_LPIET_SHIFT; in e1000e_get_eee() 2238 static int e1000e_set_eee(struct net_device *netdev, struct ethtool_eee *edata) in e1000e_set_eee() argument 2249 if (eee_curr.tx_lpi_enabled != edata->tx_lpi_enabled) { in e1000e_set_eee() [all …]
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_ethtool.c | 2059 static int bnx2x_get_eee(struct net_device *dev, struct ethtool_eee *edata) in bnx2x_get_eee() argument 2071 edata->supported = in bnx2x_get_eee() 2075 edata->advertised = in bnx2x_get_eee() 2078 edata->lp_advertised = in bnx2x_get_eee() 2083 edata->tx_lpi_timer = (eee_cfg & SHMEM_EEE_TIMER_MASK) << 4; in bnx2x_get_eee() 2085 edata->eee_enabled = (eee_cfg & SHMEM_EEE_REQUESTED_BIT) ? 1 : 0; in bnx2x_get_eee() 2086 edata->eee_active = (eee_cfg & SHMEM_EEE_ACTIVE_BIT) ? 1 : 0; in bnx2x_get_eee() 2087 edata->tx_lpi_enabled = (eee_cfg & SHMEM_EEE_LPI_REQUESTED_BIT) ? 1 : 0; in bnx2x_get_eee() 2092 static int bnx2x_set_eee(struct net_device *dev, struct ethtool_eee *edata) in bnx2x_set_eee() argument 2113 advertised = bnx2x_adv_to_eee(edata->advertised, in bnx2x_set_eee() [all …]
|
/drivers/net/ethernet/synopsys/ |
D | dwc_eth_qos.c | 2661 static int dwceqos_get_eee(struct net_device *ndev, struct ethtool_eee *edata) in dwceqos_get_eee() argument 2670 edata->eee_active = lp->eee_active; in dwceqos_get_eee() 2671 edata->eee_enabled = lp->eee_enabled; in dwceqos_get_eee() 2672 edata->tx_lpi_timer = dwceqos_read(lp, REG_DWCEQOS_MAC_LPI_ENTRY_TIMER); in dwceqos_get_eee() 2675 edata->tx_lpi_enabled = lpi_enabled; in dwceqos_get_eee() 2687 return phy_ethtool_get_eee(ndev->phydev, edata); in dwceqos_get_eee() 2690 static int dwceqos_set_eee(struct net_device *ndev, struct ethtool_eee *edata) in dwceqos_set_eee() argument 2699 if (edata->eee_enabled && !lp->eee_active) in dwceqos_set_eee() 2702 if (edata->tx_lpi_enabled) { in dwceqos_set_eee() 2703 if (edata->tx_lpi_timer < DWCEQOS_LPI_TIMER_MIN || in dwceqos_set_eee() [all …]
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_phy.c | 1028 u16 phy_offset, control, eword, edata, block_crc; in ixgbe_reset_phy_nl() local 1075 edata = eword & IXGBE_DATA_MASK_NL; in ixgbe_reset_phy_nl() 1079 hw_dbg(hw, "DELAY: %d MS\n", edata); in ixgbe_reset_phy_nl() 1080 usleep_range(edata * 1000, edata * 2000); in ixgbe_reset_phy_nl() 1089 for (i = 0; i < edata; i++) { in ixgbe_reset_phy_nl() 1105 if (edata == IXGBE_CONTROL_EOL_NL) { in ixgbe_reset_phy_nl() 1108 } else if (edata == IXGBE_CONTROL_SOL_NL) { in ixgbe_reset_phy_nl()
|
/drivers/net/usb/ |
D | lan78xx.c | 1335 static int lan78xx_get_eee(struct net_device *net, struct ethtool_eee *edata) in lan78xx_get_eee() argument 1346 ret = phy_ethtool_get_eee(phydev, edata); in lan78xx_get_eee() 1352 edata->eee_enabled = true; in lan78xx_get_eee() 1353 edata->eee_active = !!(edata->advertised & in lan78xx_get_eee() 1354 edata->lp_advertised); in lan78xx_get_eee() 1355 edata->tx_lpi_enabled = true; in lan78xx_get_eee() 1358 edata->tx_lpi_timer = buf; in lan78xx_get_eee() 1360 edata->eee_enabled = false; in lan78xx_get_eee() 1361 edata->eee_active = false; in lan78xx_get_eee() 1362 edata->tx_lpi_enabled = false; in lan78xx_get_eee() [all …]
|
D | ax88179_178a.c | 776 static int ax88179_get_eee(struct net_device *net, struct ethtool_eee *edata) in ax88179_get_eee() argument 781 edata->eee_enabled = priv->eee_enabled; in ax88179_get_eee() 782 edata->eee_active = priv->eee_active; in ax88179_get_eee() 784 return ax88179_ethtool_get_eee(dev, edata); in ax88179_get_eee() 787 static int ax88179_set_eee(struct net_device *net, struct ethtool_eee *edata) in ax88179_set_eee() argument 793 priv->eee_enabled = edata->eee_enabled; in ax88179_set_eee() 804 ret = ax88179_ethtool_set_eee(dev, edata); in ax88179_set_eee()
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | cxgb3_main.c | 2286 struct ch_reg edata; in cxgb_extension_ioctl() local 2293 if (copy_from_user(&edata, useraddr, sizeof(edata))) in cxgb_extension_ioctl() 2295 if (edata.val < 1 || in cxgb_extension_ioctl() 2296 (edata.val > 1 && !(adapter->flags & USING_MSIX))) in cxgb_extension_ioctl() 2303 if (edata.val + other_qsets > SGE_QSETS) in cxgb_extension_ioctl() 2306 pi->nqsets = edata.val; in cxgb_extension_ioctl() 2317 struct ch_reg edata; in cxgb_extension_ioctl() local 2319 memset(&edata, 0, sizeof(struct ch_reg)); in cxgb_extension_ioctl() 2321 edata.cmd = CHELSIO_GET_QSET_NUM; in cxgb_extension_ioctl() 2322 edata.val = pi->nqsets; in cxgb_extension_ioctl() [all …]
|
/drivers/net/phy/ |
D | dp83640.c | 122 struct phy_txts edata; member 762 dp83640->edata.sec_hi = phy_txts->sec_hi; in decode_evnt() 764 dp83640->edata.sec_lo = phy_txts->sec_lo; in decode_evnt() 766 dp83640->edata.ns_hi = phy_txts->ns_hi; in decode_evnt() 768 dp83640->edata.ns_lo = phy_txts->ns_lo; in decode_evnt() 777 event.timestamp = phy2txts(&dp83640->edata); in decode_evnt()
|