Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/net/ethernet/amd/xgbe/
Dxgbe-drv.c504 struct xgbe_hw_features *hw_feat = &pdata->hw_feat; in xgbe_get_all_hw_features() local
512 memset(hw_feat, 0, sizeof(*hw_feat)); in xgbe_get_all_hw_features()
514 hw_feat->version = XGMAC_IOREAD(pdata, MAC_VR); in xgbe_get_all_hw_features()
517 hw_feat->gmii = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, GMIISEL); in xgbe_get_all_hw_features()
518 hw_feat->vlhash = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, VLHASH); in xgbe_get_all_hw_features()
519 hw_feat->sma = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, SMASEL); in xgbe_get_all_hw_features()
520 hw_feat->rwk = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, RWKSEL); in xgbe_get_all_hw_features()
521 hw_feat->mgk = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, MGKSEL); in xgbe_get_all_hw_features()
522 hw_feat->mmc = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, MMCSEL); in xgbe_get_all_hw_features()
523 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()
161 (i >= pdata->hw_feat.tc_cnt)) in xgbe_dcb_ieee_setets()
164 if (ets->prio_tc[i] >= pdata->hw_feat.tc_cnt) in xgbe_dcb_ieee_setets()
204 pfc->pfc_cap = pdata->hw_feat.tc_cnt; in xgbe_dcb_ieee_getpfc()
Dxgbe-ethtool.c368 struct xgbe_hw_features *hw_feat = &pdata->hw_feat; in xgbe_get_drvinfo() local
375 XGMAC_GET_BITS(hw_feat->version, MAC_VR, USERVER), in xgbe_get_drvinfo()
376 XGMAC_GET_BITS(hw_feat->version, MAC_VR, DEVID), in xgbe_get_drvinfo()
377 XGMAC_GET_BITS(hw_feat->version, MAC_VR, SNPSVER)); in xgbe_get_drvinfo()
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()
775 addn_macs = pdata->hw_feat.addn_mac; in xgbe_set_mac_addn_addrs()
810 hash_table_shift = 26 - (pdata->hw_feat.hash_table_size >> 7); in xgbe_set_mac_hash_table()
811 hash_table_count = pdata->hw_feat.hash_table_size / 32; in xgbe_set_mac_hash_table()
837 if (pdata->hw_feat.hash_table_size) in xgbe_add_mac_addresses()
1306 total_weight = pdata->netdev->mtu * pdata->hw_feat.tc_cnt; in xgbe_config_dcb_tc()
1311 for (i = 0; i < pdata->hw_feat.tc_cnt; i++) { in xgbe_config_dcb_tc()
[all …]
Dxgbe-main.c663 DMA_BIT_MASK(pdata->hw_feat.dma_width)); in xgbe_probe()
677 pdata->hw_feat.tx_ch_cnt); in xgbe_probe()
687 pdata->hw_feat.rx_ch_cnt); in xgbe_probe()
688 pdata->rx_q_count = pdata->hw_feat.rx_q_cnt; in xgbe_probe()
728 if (pdata->hw_feat.rss) in xgbe_probe()
Dxgbe.h885 struct xgbe_hw_features hw_feat; member