Searched refs:hw_feat (Results 1 – 8 of 8) sorted by relevance
| /linux/drivers/net/ethernet/synopsys/ |
| H A D | dwc-xlgmac-common.c | 95 DMA_BIT_MASK(pdata->hw_feat.dma_width)); in xlgmac_init() 126 pdata->hw_feat.tx_ch_cnt); in xlgmac_init() 128 pdata->hw_feat.tx_q_cnt); in xlgmac_init() 138 pdata->hw_feat.rx_ch_cnt); in xlgmac_init() 140 pdata->hw_feat.rx_q_cnt); in xlgmac_init() 179 if (pdata->hw_feat.tso) { in xlgmac_init() 185 } else if (pdata->hw_feat.tx_coe) { in xlgmac_init() 190 if (pdata->hw_feat.rx_coe) { in xlgmac_init() 195 if (pdata->hw_feat.rss) in xlgmac_init() 201 if (pdata->hw_feat.sa_vlan_ins) in xlgmac_init() [all …]
|
| H A D | dwc-xlgmac-hw.c | 303 addn_macs = pdata->hw_feat.addn_mac; in xlgmac_set_mac_addn_addrs() 338 hash_table_shift = 26 - (pdata->hw_feat.hash_table_size >> 7); in xlgmac_set_mac_hash_table() 339 hash_table_count = pdata->hw_feat.hash_table_size / 32; in xlgmac_set_mac_hash_table() 365 if (pdata->hw_feat.hash_table_size) in xlgmac_add_mac_addresses() 380 if (pdata->hw_feat.hash_table_size) { in xlgmac_config_mac_address() 1388 if (pdata->hw_feat.tso) { in xlgmac_config_tso_mode() 1485 for (i = 0; i < pdata->hw_feat.tc_cnt; i++) { in xlgmac_config_mtl_mode() 1515 qptc = pdata->tx_q_count / pdata->hw_feat.tc_cnt; in xlgmac_config_queue_mapping() 1516 qptc_extra = pdata->tx_q_count % pdata->hw_feat.tc_cnt; in xlgmac_config_queue_mapping() 1518 for (i = 0, queue = 0; i < pdata->hw_feat.tc_cnt; i++) { in xlgmac_config_queue_mapping() [all …]
|
| H A D | dwc-xlgmac-ethtool.c | 102 u32 ver = pdata->hw_feat.version; in xlgmac_ethtool_get_drvinfo()
|
| H A D | dwc-xlgmac.h | 559 struct xlgmac_hw_features hw_feat; member
|
| /linux/drivers/net/ethernet/amd/xgbe/ |
| H A D | xgbe-drv.c | 693 struct xgbe_hw_features *hw_feat = &pdata->hw_feat; in xgbe_get_all_hw_features() local 699 memset(hw_feat, 0, sizeof(*hw_feat)); in xgbe_get_all_hw_features() 701 hw_feat->version = XGMAC_IOREAD(pdata, MAC_VR); in xgbe_get_all_hw_features() 704 hw_feat->gmii = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, GMIISEL); in xgbe_get_all_hw_features() 705 hw_feat->vlhash = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, VLHASH); in xgbe_get_all_hw_features() 706 hw_feat->sma = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, SMASEL); in xgbe_get_all_hw_features() 707 hw_feat->rwk = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, RWKSEL); in xgbe_get_all_hw_features() 708 hw_feat->mgk = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, MGKSEL); in xgbe_get_all_hw_features() 709 hw_feat->mmc = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, MMCSEL); in xgbe_get_all_hw_features() 710 hw_feat->aoe = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, ARPOFFSEL); in xgbe_get_all_hw_features() [all …]
|
| H A D | xgbe-main.c | 111 pdata->tx_max_channel_count = pdata->hw_feat.tx_ch_cnt; in xgbe_set_counts() 113 pdata->rx_max_channel_count = pdata->hw_feat.rx_ch_cnt; in xgbe_set_counts() 116 pdata->tx_max_q_count = pdata->hw_feat.tx_q_cnt; in xgbe_set_counts() 118 pdata->rx_max_q_count = pdata->hw_feat.rx_q_cnt; in xgbe_set_counts() 128 pdata->hw_feat.tx_ch_cnt); in xgbe_set_counts() 137 pdata->hw_feat.rx_ch_cnt); in xgbe_set_counts() 141 pdata->rx_q_count = min_t(unsigned int, pdata->hw_feat.rx_q_cnt, in xgbe_set_counts() 182 DMA_BIT_MASK(pdata->hw_feat.dma_width)); in xgbe_config_netdev() 190 pdata->tx_max_fifo_size = pdata->hw_feat.tx_fifo_size; in xgbe_config_netdev() 192 pdata->rx_max_fifo_size = pdata->hw_feat.rx_fifo_size; in xgbe_config_netdev() [all …]
|
| H A D | xgbe-phy-v2.c | 2185 ver = XGMAC_GET_BITS(pdata->hw_feat.version, MAC_VR, SNPSVER); in enable_rx_adap() 2322 ver = XGMAC_GET_BITS(pdata->hw_feat.version, MAC_VR, SNPSVER); in xgbe_phy_kx_2500_mode() 2732 ver = XGMAC_GET_BITS(pdata->hw_feat.version, MAC_VR, SNPSVER); in xgbe_phy_valid_speed_baset_mode() 2756 ver = XGMAC_GET_BITS(pdata->hw_feat.version, MAC_VR, SNPSVER); in xgbe_phy_valid_speed_sfp_mode() 3132 ver = XGMAC_GET_BITS(pdata->hw_feat.version, MAC_VR, SNPSVER); in xgbe_phy_port_mode_mismatch()
|
| H A D | xgbe.h | 1184 struct xgbe_hw_features hw_feat; member
|