Home
last modified time | relevance | path

Searched refs:hw_feat (Results 1 – 6 of 6) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/amd/xgbe/
Dxgbe-drv.c481 struct xgbe_hw_features *hw_feat = &pdata->hw_feat; in xgbe_get_all_hw_features() local
489 memset(hw_feat, 0, sizeof(*hw_feat)); in xgbe_get_all_hw_features()
491 hw_feat->version = XGMAC_IOREAD(pdata, MAC_VR); in xgbe_get_all_hw_features()
494 hw_feat->gmii = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, GMIISEL); in xgbe_get_all_hw_features()
495 hw_feat->vlhash = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, VLHASH); in xgbe_get_all_hw_features()
496 hw_feat->sma = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, SMASEL); in xgbe_get_all_hw_features()
497 hw_feat->rwk = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, RWKSEL); in xgbe_get_all_hw_features()
498 hw_feat->mgk = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, MGKSEL); in xgbe_get_all_hw_features()
499 hw_feat->mmc = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, MMCSEL); in xgbe_get_all_hw_features()
500 hw_feat->aoe = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, ARPOFFSEL); in xgbe_get_all_hw_features()
[all …]
Dxgbe-dcb.c129 ets->ets_cap = pdata->hw_feat.tc_cnt; in xgbe_dcb_ieee_getets()
158 (i >= pdata->hw_feat.tc_cnt)) in xgbe_dcb_ieee_setets()
161 if (ets->prio_tc[i] >= pdata->hw_feat.tc_cnt) in xgbe_dcb_ieee_setets()
201 pfc->pfc_cap = pdata->hw_feat.tc_cnt; in xgbe_dcb_ieee_getpfc()
Dxgbe-ethtool.c363 struct xgbe_hw_features *hw_feat = &pdata->hw_feat; in xgbe_get_drvinfo() local
370 XGMAC_GET_BITS(hw_feat->version, MAC_VR, USERVER), in xgbe_get_drvinfo()
371 XGMAC_GET_BITS(hw_feat->version, MAC_VR, DEVID), in xgbe_get_drvinfo()
372 XGMAC_GET_BITS(hw_feat->version, MAC_VR, SNPSVER)); in xgbe_get_drvinfo()
Dxgbe-main.c407 DMA_BIT_MASK(pdata->hw_feat.dma_width)); in xgbe_probe()
421 pdata->hw_feat.tx_ch_cnt); in xgbe_probe()
431 pdata->hw_feat.rx_ch_cnt); in xgbe_probe()
432 pdata->rx_q_count = pdata->hw_feat.rx_q_cnt; in xgbe_probe()
480 if (pdata->hw_feat.rss) in xgbe_probe()
Dxgbe-dev.c445 if (!pdata->hw_feat.rss) in xgbe_enable_rss()
469 if (!pdata->hw_feat.rss) in xgbe_disable_rss()
481 if (!pdata->hw_feat.rss) in xgbe_config_rss()
650 q_count = max(pdata->hw_feat.tx_q_cnt, pdata->hw_feat.rx_q_cnt); in xgbe_enable_mtl_interrupts()
772 addn_macs = pdata->hw_feat.addn_mac; in xgbe_set_mac_addn_addrs()
807 hash_table_shift = 26 - (pdata->hw_feat.hash_table_size >> 7); in xgbe_set_mac_hash_table()
808 hash_table_count = pdata->hw_feat.hash_table_size / 32; in xgbe_set_mac_hash_table()
834 if (pdata->hw_feat.hash_table_size) in xgbe_add_mac_addresses()
1317 total_weight = pdata->netdev->mtu * pdata->hw_feat.tc_cnt; in xgbe_config_dcb_tc()
1322 for (i = 0; i < pdata->hw_feat.tc_cnt; i++) { in xgbe_config_dcb_tc()
[all …]
Dxgbe.h782 struct xgbe_hw_features hw_feat; member