Home
last modified time | relevance | path

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

/drivers/net/ethernet/synopsys/
Ddwc-xlgmac-common.c97 DMA_BIT_MASK(pdata->hw_feat.dma_width)); in xlgmac_init()
128 pdata->hw_feat.tx_ch_cnt); in xlgmac_init()
130 pdata->hw_feat.tx_q_cnt); in xlgmac_init()
140 pdata->hw_feat.rx_ch_cnt); in xlgmac_init()
142 pdata->hw_feat.rx_q_cnt); in xlgmac_init()
181 if (pdata->hw_feat.tso) { in xlgmac_init()
187 } else if (pdata->hw_feat.tx_coe) { in xlgmac_init()
192 if (pdata->hw_feat.rx_coe) { in xlgmac_init()
197 if (pdata->hw_feat.rss) in xlgmac_init()
203 if (pdata->hw_feat.sa_vlan_ins) in xlgmac_init()
[all …]
Ddwc-xlgmac-hw.c303 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 …]
Ddwc-xlgmac-ethtool.c102 u32 ver = pdata->hw_feat.version; in xlgmac_ethtool_get_drvinfo()
Ddwc-xlgmac.h559 struct xlgmac_hw_features hw_feat; member
/drivers/net/ethernet/amd/xgbe/
Dxgbe-drv.c747 struct xgbe_hw_features *hw_feat = &pdata->hw_feat; in xgbe_get_all_hw_features() local
753 memset(hw_feat, 0, sizeof(*hw_feat)); in xgbe_get_all_hw_features()
755 hw_feat->version = XGMAC_IOREAD(pdata, MAC_VR); in xgbe_get_all_hw_features()
758 hw_feat->gmii = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, GMIISEL); in xgbe_get_all_hw_features()
759 hw_feat->vlhash = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, VLHASH); in xgbe_get_all_hw_features()
760 hw_feat->sma = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, SMASEL); in xgbe_get_all_hw_features()
761 hw_feat->rwk = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, RWKSEL); in xgbe_get_all_hw_features()
762 hw_feat->mgk = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, MGKSEL); in xgbe_get_all_hw_features()
763 hw_feat->mmc = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, MMCSEL); in xgbe_get_all_hw_features()
764 hw_feat->aoe = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, ARPOFFSEL); in xgbe_get_all_hw_features()
[all …]
Dxgbe-main.c221 pdata->tx_max_channel_count = pdata->hw_feat.tx_ch_cnt; in xgbe_set_counts()
223 pdata->rx_max_channel_count = pdata->hw_feat.rx_ch_cnt; in xgbe_set_counts()
226 pdata->tx_max_q_count = pdata->hw_feat.tx_q_cnt; in xgbe_set_counts()
228 pdata->rx_max_q_count = pdata->hw_feat.rx_q_cnt; in xgbe_set_counts()
238 pdata->hw_feat.tx_ch_cnt); in xgbe_set_counts()
247 pdata->hw_feat.rx_ch_cnt); in xgbe_set_counts()
251 pdata->rx_q_count = min_t(unsigned int, pdata->hw_feat.rx_q_cnt, in xgbe_set_counts()
292 DMA_BIT_MASK(pdata->hw_feat.dma_width)); in xgbe_config_netdev()
300 pdata->tx_max_fifo_size = pdata->hw_feat.tx_fifo_size; in xgbe_config_netdev()
302 pdata->rx_max_fifo_size = pdata->hw_feat.rx_fifo_size; in xgbe_config_netdev()
[all …]
Dxgbe-dcb.c129 ets->ets_cap = pdata->hw_feat.tc_cnt; in xgbe_dcb_ieee_getets()
181 if (max_tc >= pdata->hw_feat.tc_cnt) { in xgbe_dcb_ieee_setets()
216 pfc->pfc_cap = pdata->hw_feat.tc_cnt; in xgbe_dcb_ieee_getpfc()
237 if (pfc->pfc_en & ~((1 << pdata->hw_feat.tc_cnt) - 1)) { in xgbe_dcb_ieee_setpfc()
Dxgbe-ethtool.c408 struct xgbe_hw_features *hw_feat = &pdata->hw_feat; in xgbe_get_drvinfo() local
414 XGMAC_GET_BITS(hw_feat->version, MAC_VR, USERVER), in xgbe_get_drvinfo()
415 XGMAC_GET_BITS(hw_feat->version, MAC_VR, DEVID), in xgbe_get_drvinfo()
416 XGMAC_GET_BITS(hw_feat->version, MAC_VR, SNPSVER)); in xgbe_get_drvinfo()
707 rx = min(pdata->hw_feat.rx_ch_cnt, pdata->rx_max_channel_count); in xgbe_get_channels()
709 tx = min(pdata->hw_feat.tx_ch_cnt, pdata->tx_max_channel_count); in xgbe_get_channels()
752 rx = min(pdata->hw_feat.rx_ch_cnt, pdata->rx_max_channel_count); in xgbe_set_channels()
754 tx = min(pdata->hw_feat.tx_ch_cnt, pdata->tx_max_channel_count); in xgbe_set_channels()
Dxgbe-dev.c413 if (!pdata->hw_feat.rss) in xgbe_enable_rss()
437 if (!pdata->hw_feat.rss) in xgbe_disable_rss()
449 if (!pdata->hw_feat.rss) in xgbe_config_rss()
494 if (!pdata->hw_feat.vxn) in xgbe_enable_vxlan()
512 if (!pdata->hw_feat.vxn) in xgbe_disable_vxlan()
532 if (XGMAC_GET_BITS(pdata->hw_feat.version, MAC_VR, SNPSVER) >= 0x30) in xgbe_get_fc_queue_count()
667 ver = XGMAC_GET_BITS(pdata->hw_feat.version, MAC_VR, SNPSVER); in xgbe_enable_dma_interrupts()
725 q_count = max(pdata->hw_feat.tx_q_cnt, pdata->hw_feat.rx_q_cnt); in xgbe_enable_mtl_interrupts()
1020 addn_macs = pdata->hw_feat.addn_mac; in xgbe_set_mac_addn_addrs()
1055 hash_table_shift = 26 - (pdata->hw_feat.hash_table_size >> 7); in xgbe_set_mac_hash_table()
[all …]
Dxgbe.h1237 struct xgbe_hw_features hw_feat; member
/drivers/gpu/drm/panfrost/
Dpanfrost_gpu.c218 u64 hw_feat = 0; in panfrost_gpu_init_features() local
283 hw_feat = model->features; in panfrost_gpu_init_features()
299 bitmap_from_u64(pfdev->features.hw_features, hw_feat); in panfrost_gpu_init_features()