Lines Matching refs:pdata

200 	struct xgbe_prv_data *pdata = netdev_priv(netdev);  in xgbe_get_ethtool_stats()  local
206 pdata->hw_if.read_mmc_stats(pdata); in xgbe_get_ethtool_stats()
208 stat = (u8 *)pdata + xgbe_gstring_stats[i].stat_offset; in xgbe_get_ethtool_stats()
238 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_pauseparam() local
242 pause->autoneg = pdata->pause_autoneg; in xgbe_get_pauseparam()
243 pause->tx_pause = pdata->tx_pause; in xgbe_get_pauseparam()
244 pause->rx_pause = pdata->rx_pause; in xgbe_get_pauseparam()
252 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_pauseparam() local
253 struct phy_device *phydev = pdata->phydev; in xgbe_set_pauseparam()
261 pdata->pause_autoneg = pause->autoneg; in xgbe_set_pauseparam()
270 pdata->tx_pause = pause->tx_pause; in xgbe_set_pauseparam()
271 pdata->rx_pause = pause->rx_pause; in xgbe_set_pauseparam()
285 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_settings() local
290 if (!pdata->phydev) in xgbe_get_settings()
293 ret = phy_ethtool_gset(pdata->phydev, cmd); in xgbe_get_settings()
303 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_settings() local
304 struct phy_device *phydev = pdata->phydev; in xgbe_set_settings()
310 if (!pdata->phydev) in xgbe_set_settings()
362 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_drvinfo() local
363 struct xgbe_hw_features *hw_feat = &pdata->hw_feat; in xgbe_get_drvinfo()
367 strlcpy(drvinfo->bus_info, dev_name(pdata->dev), in xgbe_get_drvinfo()
379 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_coalesce() local
385 ec->rx_coalesce_usecs = pdata->rx_usecs; in xgbe_get_coalesce()
386 ec->rx_max_coalesced_frames = pdata->rx_frames; in xgbe_get_coalesce()
388 ec->tx_max_coalesced_frames = pdata->tx_frames; in xgbe_get_coalesce()
398 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_coalesce() local
399 struct xgbe_hw_if *hw_if = &pdata->hw_if; in xgbe_set_coalesce()
427 rx_riwt = hw_if->usec_to_riwt(pdata, ec->rx_coalesce_usecs); in xgbe_set_coalesce()
438 hw_if->riwt_to_usec(pdata, XGMAC_MAX_DMA_RIWT)); in xgbe_set_coalesce()
441 if (rx_frames > pdata->rx_desc_count) { in xgbe_set_coalesce()
443 pdata->rx_desc_count); in xgbe_set_coalesce()
450 if (tx_frames > pdata->tx_desc_count) { in xgbe_set_coalesce()
452 pdata->tx_desc_count); in xgbe_set_coalesce()
456 pdata->rx_riwt = rx_riwt; in xgbe_set_coalesce()
457 pdata->rx_usecs = rx_usecs; in xgbe_set_coalesce()
458 pdata->rx_frames = rx_frames; in xgbe_set_coalesce()
459 hw_if->config_rx_coalesce(pdata); in xgbe_set_coalesce()
461 pdata->tx_frames = tx_frames; in xgbe_set_coalesce()
462 hw_if->config_tx_coalesce(pdata); in xgbe_set_coalesce()
472 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_rxnfc() local
476 rxnfc->data = pdata->rx_ring_count; in xgbe_get_rxnfc()
487 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_rxfh_key_size() local
489 return sizeof(pdata->rss_key); in xgbe_get_rxfh_key_size()
494 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_rxfh_indir_size() local
496 return ARRAY_SIZE(pdata->rss_table); in xgbe_get_rxfh_indir_size()
502 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_rxfh() local
506 for (i = 0; i < ARRAY_SIZE(pdata->rss_table); i++) in xgbe_get_rxfh()
507 indir[i] = XGMAC_GET_BITS(pdata->rss_table[i], in xgbe_get_rxfh()
512 memcpy(key, pdata->rss_key, sizeof(pdata->rss_key)); in xgbe_get_rxfh()
523 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_rxfh() local
524 struct xgbe_hw_if *hw_if = &pdata->hw_if; in xgbe_set_rxfh()
531 ret = hw_if->set_rss_lookup_table(pdata, indir); in xgbe_set_rxfh()
537 ret = hw_if->set_rss_hash_key(pdata, key); in xgbe_set_rxfh()
548 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_ts_info() local
557 if (pdata->ptp_clock) in xgbe_get_ts_info()
558 ts_info->phc_index = ptp_clock_index(pdata->ptp_clock); in xgbe_get_ts_info()