hw_feat 200 drivers/gpu/drm/panfrost/panfrost_gpu.c u64 hw_feat = 0; hw_feat 264 drivers/gpu/drm/panfrost/panfrost_gpu.c hw_feat = model->features; hw_feat 280 drivers/gpu/drm/panfrost/panfrost_gpu.c bitmap_from_u64(pfdev->features.hw_features, hw_feat); hw_feat 129 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c ets->ets_cap = pdata->hw_feat.tc_cnt; hw_feat 181 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c if (max_tc >= pdata->hw_feat.tc_cnt) { hw_feat 216 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c pfc->pfc_cap = pdata->hw_feat.tc_cnt; hw_feat 237 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c if (pfc->pfc_en & ~((1 << pdata->hw_feat.tc_cnt) - 1)) { hw_feat 413 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->hw_feat.rss) hw_feat 437 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->hw_feat.rss) hw_feat 449 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->hw_feat.rss) hw_feat 494 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->hw_feat.vxn) hw_feat 512 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (!pdata->hw_feat.vxn) hw_feat 660 drivers/net/ethernet/amd/xgbe/xgbe-dev.c ver = XGMAC_GET_BITS(pdata->hw_feat.version, MAC_VR, SNPSVER); hw_feat 718 drivers/net/ethernet/amd/xgbe/xgbe-dev.c q_count = max(pdata->hw_feat.tx_q_cnt, pdata->hw_feat.rx_q_cnt); hw_feat 1013 drivers/net/ethernet/amd/xgbe/xgbe-dev.c addn_macs = pdata->hw_feat.addn_mac; hw_feat 1048 drivers/net/ethernet/amd/xgbe/xgbe-dev.c hash_table_shift = 26 - (pdata->hw_feat.hash_table_size >> 7); hw_feat 1049 drivers/net/ethernet/amd/xgbe/xgbe-dev.c hash_table_count = pdata->hw_feat.hash_table_size / 32; hw_feat 1075 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->hw_feat.hash_table_size) hw_feat 2199 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (XGMAC_GET_BITS(pdata->hw_feat.version, MAC_VR, SNPSVER) < 0x21) hw_feat 2263 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->hw_feat.tc_cnt; i++) { hw_feat 2367 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->hw_feat.tx_fifo_size); hw_feat 2374 drivers/net/ethernet/amd/xgbe/xgbe-dev.c pdata->hw_feat.rx_fifo_size); hw_feat 2611 drivers/net/ethernet/amd/xgbe/xgbe-dev.c qptc = pdata->tx_q_count / pdata->hw_feat.tc_cnt; hw_feat 2612 drivers/net/ethernet/amd/xgbe/xgbe-dev.c qptc_extra = pdata->tx_q_count % pdata->hw_feat.tc_cnt; hw_feat 2614 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0, queue = 0; i < pdata->hw_feat.tc_cnt; i++) { hw_feat 2727 drivers/net/ethernet/amd/xgbe/xgbe-dev.c total_weight = pdata->netdev->mtu * pdata->hw_feat.tc_cnt; hw_feat 2732 drivers/net/ethernet/amd/xgbe/xgbe-dev.c for (i = 0; i < pdata->hw_feat.tc_cnt; i++) { hw_feat 2803 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (pdata->hw_feat.hash_table_size) { hw_feat 3246 drivers/net/ethernet/amd/xgbe/xgbe-dev.c if (XGMAC_GET_BITS(pdata->hw_feat.version, MAC_VR, SNPSVER) > 0x20) hw_feat 731 drivers/net/ethernet/amd/xgbe/xgbe-drv.c struct xgbe_hw_features *hw_feat = &pdata->hw_feat; hw_feat 737 drivers/net/ethernet/amd/xgbe/xgbe-drv.c memset(hw_feat, 0, sizeof(*hw_feat)); hw_feat 739 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->version = XGMAC_IOREAD(pdata, MAC_VR); hw_feat 742 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->gmii = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, GMIISEL); hw_feat 743 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->vlhash = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, VLHASH); hw_feat 744 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->sma = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, SMASEL); hw_feat 745 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->rwk = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, RWKSEL); hw_feat 746 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->mgk = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, MGKSEL); hw_feat 747 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->mmc = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, MMCSEL); hw_feat 748 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->aoe = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, ARPOFFSEL); hw_feat 749 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->ts = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, TSSEL); hw_feat 750 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->eee = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, EEESEL); hw_feat 751 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->tx_coe = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, TXCOESEL); hw_feat 752 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->rx_coe = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, RXCOESEL); hw_feat 753 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->addn_mac = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, hw_feat 755 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->ts_src = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, TSSTSSEL); hw_feat 756 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->sa_vlan_ins = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, SAVLANINS); hw_feat 757 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->vxn = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, VXN); hw_feat 760 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->rx_fifo_size = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, hw_feat 762 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->tx_fifo_size = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, hw_feat 764 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->adv_ts_hi = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, ADVTHWORD); hw_feat 765 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->dma_width = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, ADDR64); hw_feat 766 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->dcb = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, DCBEN); hw_feat 767 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->sph = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, SPHEN); hw_feat 768 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->tso = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, TSOEN); hw_feat 769 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->dma_debug = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, DBGMEMA); hw_feat 770 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->rss = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, RSSEN); hw_feat 771 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->tc_cnt = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, NUMTC); hw_feat 772 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->hash_table_size = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, hw_feat 774 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->l3l4_filter_num = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, hw_feat 778 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->rx_q_cnt = XGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, RXQCNT); hw_feat 779 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->tx_q_cnt = XGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, TXQCNT); hw_feat 780 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->rx_ch_cnt = XGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, RXCHCNT); hw_feat 781 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->tx_ch_cnt = XGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, TXCHCNT); hw_feat 782 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->pps_out_num = XGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, PPSOUTNUM); hw_feat 783 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->aux_snap_num = XGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, AUXSNAPNUM); hw_feat 786 drivers/net/ethernet/amd/xgbe/xgbe-drv.c switch (hw_feat->hash_table_size) { hw_feat 790 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->hash_table_size = 64; hw_feat 793 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->hash_table_size = 128; hw_feat 796 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->hash_table_size = 256; hw_feat 801 drivers/net/ethernet/amd/xgbe/xgbe-drv.c switch (hw_feat->dma_width) { hw_feat 803 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->dma_width = 32; hw_feat 806 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->dma_width = 40; hw_feat 809 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->dma_width = 48; hw_feat 812 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->dma_width = 32; hw_feat 818 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->rx_q_cnt++; hw_feat 819 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->tx_q_cnt++; hw_feat 820 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->rx_ch_cnt++; hw_feat 821 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->tx_ch_cnt++; hw_feat 822 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->tc_cnt++; hw_feat 825 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->rx_fifo_size = 1 << (hw_feat->rx_fifo_size + 7); hw_feat 826 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->tx_fifo_size = 1 << (hw_feat->tx_fifo_size + 7); hw_feat 833 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->gmii ? "yes" : "no"); hw_feat 835 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->vlhash ? "yes" : "no"); hw_feat 837 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->sma ? "yes" : "no"); hw_feat 839 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->rwk ? "yes" : "no"); hw_feat 841 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->mgk ? "yes" : "no"); hw_feat 843 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->mmc ? "yes" : "no"); hw_feat 845 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->aoe ? "yes" : "no"); hw_feat 847 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->ts ? "yes" : "no"); hw_feat 849 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->eee ? "yes" : "no"); hw_feat 851 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->tx_coe ? "yes" : "no"); hw_feat 853 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->rx_coe ? "yes" : "no"); hw_feat 855 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->addn_mac); hw_feat 857 drivers/net/ethernet/amd/xgbe/xgbe-drv.c (hw_feat->ts_src == 1) ? "internal" : hw_feat 858 drivers/net/ethernet/amd/xgbe/xgbe-drv.c (hw_feat->ts_src == 2) ? "external" : hw_feat 859 drivers/net/ethernet/amd/xgbe/xgbe-drv.c (hw_feat->ts_src == 3) ? "internal/external" : "n/a"); hw_feat 861 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->sa_vlan_ins ? "yes" : "no"); hw_feat 863 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->vxn ? "yes" : "no"); hw_feat 867 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->rx_fifo_size); hw_feat 869 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->tx_fifo_size); hw_feat 871 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->adv_ts_hi ? "yes" : "no"); hw_feat 873 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->dma_width); hw_feat 875 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->dcb ? "yes" : "no"); hw_feat 877 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->sph ? "yes" : "no"); hw_feat 879 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->tso ? "yes" : "no"); hw_feat 881 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->dma_debug ? "yes" : "no"); hw_feat 883 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->rss ? "yes" : "no"); hw_feat 885 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->tc_cnt); hw_feat 887 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->hash_table_size); hw_feat 889 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->l3l4_filter_num); hw_feat 893 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->rx_q_cnt); hw_feat 895 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->tx_q_cnt); hw_feat 897 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->rx_ch_cnt); hw_feat 899 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->rx_ch_cnt); hw_feat 901 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->pps_out_num); hw_feat 903 drivers/net/ethernet/amd/xgbe/xgbe-drv.c hw_feat->aux_snap_num); hw_feat 2261 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (tc > pdata->hw_feat.tc_cnt) hw_feat 2289 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!pdata->hw_feat.vxn) hw_feat 2388 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!pdata->hw_feat.vxn) hw_feat 2433 drivers/net/ethernet/amd/xgbe/xgbe-drv.c if (!pdata->hw_feat.vxn) hw_feat 405 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c struct xgbe_hw_features *hw_feat = &pdata->hw_feat; hw_feat 412 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c XGMAC_GET_BITS(hw_feat->version, MAC_VR, USERVER), hw_feat 413 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c XGMAC_GET_BITS(hw_feat->version, MAC_VR, DEVID), hw_feat 414 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c XGMAC_GET_BITS(hw_feat->version, MAC_VR, SNPSVER)); hw_feat 720 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c rx = min(pdata->hw_feat.rx_ch_cnt, pdata->rx_max_channel_count); hw_feat 722 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c tx = min(pdata->hw_feat.tx_ch_cnt, pdata->tx_max_channel_count); hw_feat 765 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c rx = min(pdata->hw_feat.rx_ch_cnt, pdata->rx_max_channel_count); hw_feat 767 drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c tx = min(pdata->hw_feat.tx_ch_cnt, pdata->tx_max_channel_count); hw_feat 223 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_max_channel_count = pdata->hw_feat.tx_ch_cnt; hw_feat 225 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_max_channel_count = pdata->hw_feat.rx_ch_cnt; hw_feat 228 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_max_q_count = pdata->hw_feat.tx_q_cnt; hw_feat 230 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_max_q_count = pdata->hw_feat.rx_q_cnt; hw_feat 240 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->hw_feat.tx_ch_cnt); hw_feat 249 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->hw_feat.rx_ch_cnt); hw_feat 253 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_q_count = min_t(unsigned int, pdata->hw_feat.rx_q_cnt, hw_feat 294 drivers/net/ethernet/amd/xgbe/xgbe-main.c DMA_BIT_MASK(pdata->hw_feat.dma_width)); hw_feat 302 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->tx_max_fifo_size = pdata->hw_feat.tx_fifo_size; hw_feat 304 drivers/net/ethernet/amd/xgbe/xgbe-main.c pdata->rx_max_fifo_size = pdata->hw_feat.rx_fifo_size; hw_feat 358 drivers/net/ethernet/amd/xgbe/xgbe-main.c if (pdata->hw_feat.rss) hw_feat 361 drivers/net/ethernet/amd/xgbe/xgbe-main.c if (pdata->hw_feat.vxn) { hw_feat 1222 drivers/net/ethernet/amd/xgbe/xgbe.h struct xgbe_hw_features hw_feat; hw_feat 97 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c DMA_BIT_MASK(pdata->hw_feat.dma_width)); hw_feat 128 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.tx_ch_cnt); hw_feat 130 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.tx_q_cnt); hw_feat 140 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.rx_ch_cnt); hw_feat 142 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.rx_q_cnt); hw_feat 181 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c if (pdata->hw_feat.tso) { hw_feat 187 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c } else if (pdata->hw_feat.tx_coe) { hw_feat 192 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c if (pdata->hw_feat.rx_coe) { hw_feat 197 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c if (pdata->hw_feat.rss) hw_feat 203 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c if (pdata->hw_feat.sa_vlan_ins) hw_feat 205 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c if (pdata->hw_feat.vlhash) hw_feat 361 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c struct xlgmac_hw_features *hw_feat = &pdata->hw_feat; hw_feat 368 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c memset(hw_feat, 0, sizeof(*hw_feat)); hw_feat 370 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->version = readl(pdata->mac_regs + MAC_VR); hw_feat 373 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->phyifsel = XLGMAC_GET_REG_BITS(mac_hfr0, hw_feat 376 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->vlhash = XLGMAC_GET_REG_BITS(mac_hfr0, hw_feat 379 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->sma = XLGMAC_GET_REG_BITS(mac_hfr0, hw_feat 382 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->rwk = XLGMAC_GET_REG_BITS(mac_hfr0, hw_feat 385 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->mgk = XLGMAC_GET_REG_BITS(mac_hfr0, hw_feat 388 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->mmc = XLGMAC_GET_REG_BITS(mac_hfr0, hw_feat 391 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->aoe = XLGMAC_GET_REG_BITS(mac_hfr0, hw_feat 394 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->ts = XLGMAC_GET_REG_BITS(mac_hfr0, hw_feat 397 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->eee = XLGMAC_GET_REG_BITS(mac_hfr0, hw_feat 400 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->tx_coe = XLGMAC_GET_REG_BITS(mac_hfr0, hw_feat 403 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->rx_coe = XLGMAC_GET_REG_BITS(mac_hfr0, hw_feat 406 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->addn_mac = XLGMAC_GET_REG_BITS(mac_hfr0, hw_feat 409 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->ts_src = XLGMAC_GET_REG_BITS(mac_hfr0, hw_feat 412 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->sa_vlan_ins = XLGMAC_GET_REG_BITS(mac_hfr0, hw_feat 417 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->rx_fifo_size = XLGMAC_GET_REG_BITS(mac_hfr1, hw_feat 420 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->tx_fifo_size = XLGMAC_GET_REG_BITS(mac_hfr1, hw_feat 423 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->adv_ts_hi = XLGMAC_GET_REG_BITS(mac_hfr1, hw_feat 426 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->dma_width = XLGMAC_GET_REG_BITS(mac_hfr1, hw_feat 429 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->dcb = XLGMAC_GET_REG_BITS(mac_hfr1, hw_feat 432 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->sph = XLGMAC_GET_REG_BITS(mac_hfr1, hw_feat 435 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->tso = XLGMAC_GET_REG_BITS(mac_hfr1, hw_feat 438 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->dma_debug = XLGMAC_GET_REG_BITS(mac_hfr1, hw_feat 441 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->rss = XLGMAC_GET_REG_BITS(mac_hfr1, hw_feat 444 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->tc_cnt = XLGMAC_GET_REG_BITS(mac_hfr1, hw_feat 447 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->hash_table_size = XLGMAC_GET_REG_BITS(mac_hfr1, hw_feat 450 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->l3l4_filter_num = XLGMAC_GET_REG_BITS(mac_hfr1, hw_feat 455 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->rx_q_cnt = XLGMAC_GET_REG_BITS(mac_hfr2, hw_feat 458 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->tx_q_cnt = XLGMAC_GET_REG_BITS(mac_hfr2, hw_feat 461 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->rx_ch_cnt = XLGMAC_GET_REG_BITS(mac_hfr2, hw_feat 464 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->tx_ch_cnt = XLGMAC_GET_REG_BITS(mac_hfr2, hw_feat 467 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->pps_out_num = XLGMAC_GET_REG_BITS(mac_hfr2, hw_feat 470 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->aux_snap_num = XLGMAC_GET_REG_BITS(mac_hfr2, hw_feat 475 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c switch (hw_feat->hash_table_size) { hw_feat 479 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->hash_table_size = 64; hw_feat 482 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->hash_table_size = 128; hw_feat 485 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->hash_table_size = 256; hw_feat 490 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c switch (hw_feat->dma_width) { hw_feat 492 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->dma_width = 32; hw_feat 495 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->dma_width = 40; hw_feat 498 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->dma_width = 48; hw_feat 501 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->dma_width = 32; hw_feat 507 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->rx_q_cnt++; hw_feat 508 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->tx_q_cnt++; hw_feat 509 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->rx_ch_cnt++; hw_feat 510 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->tx_ch_cnt++; hw_feat 511 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c hw_feat->tc_cnt++; hw_feat 525 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.vlhash ? "YES" : "NO"); hw_feat 527 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.sma ? "YES" : "NO"); hw_feat 529 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.rwk ? "YES" : "NO"); hw_feat 531 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.mgk ? "YES" : "NO"); hw_feat 533 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.mmc ? "YES" : "NO"); hw_feat 535 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.aoe ? "YES" : "NO"); hw_feat 537 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.ts ? "YES" : "NO"); hw_feat 539 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.eee ? "YES" : "NO"); hw_feat 541 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.tx_coe ? "YES" : "NO"); hw_feat 543 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.rx_coe ? "YES" : "NO"); hw_feat 545 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.addn_mac ? "YES" : "NO"); hw_feat 547 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c switch (pdata->hw_feat.ts_src) { hw_feat 564 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.sa_vlan_ins ? "YES" : "NO"); hw_feat 567 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c switch (pdata->hw_feat.rx_fifo_size) { hw_feat 609 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c switch (pdata->hw_feat.tx_fifo_size) { hw_feat 652 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.adv_ts_hi ? "YES" : "NO"); hw_feat 654 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.dma_width); hw_feat 656 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.dcb ? "YES" : "NO"); hw_feat 658 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.sph ? "YES" : "NO"); hw_feat 660 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.tso ? "YES" : "NO"); hw_feat 662 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.dma_debug ? "YES" : "NO"); hw_feat 664 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.rss ? "YES" : "NO"); hw_feat 666 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c (pdata->hw_feat.tc_cnt)); hw_feat 668 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.hash_table_size); hw_feat 670 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.l3l4_filter_num); hw_feat 674 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.rx_q_cnt); hw_feat 676 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.tx_q_cnt); hw_feat 678 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.rx_ch_cnt); hw_feat 680 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c pdata->hw_feat.tx_ch_cnt); hw_feat 682 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c switch (pdata->hw_feat.pps_out_num) { hw_feat 703 drivers/net/ethernet/synopsys/dwc-xlgmac-common.c switch (pdata->hw_feat.aux_snap_num) { hw_feat 102 drivers/net/ethernet/synopsys/dwc-xlgmac-ethtool.c u32 ver = pdata->hw_feat.version; hw_feat 303 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c addn_macs = pdata->hw_feat.addn_mac; hw_feat 338 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c hash_table_shift = 26 - (pdata->hw_feat.hash_table_size >> 7); hw_feat 339 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c hash_table_count = pdata->hw_feat.hash_table_size / 32; hw_feat 365 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (pdata->hw_feat.hash_table_size) hw_feat 380 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (pdata->hw_feat.hash_table_size) { hw_feat 1388 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (pdata->hw_feat.tso) { hw_feat 1485 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0; i < pdata->hw_feat.tc_cnt; i++) { hw_feat 1515 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c qptc = pdata->tx_q_count / pdata->hw_feat.tc_cnt; hw_feat 1516 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c qptc_extra = pdata->tx_q_count % pdata->hw_feat.tc_cnt; hw_feat 1518 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c for (i = 0, queue = 0; i < pdata->hw_feat.tc_cnt; i++) { hw_feat 1637 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c pdata->hw_feat.tx_fifo_size, hw_feat 1659 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c pdata->hw_feat.rx_fifo_size, hw_feat 2389 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (!pdata->hw_feat.rss) hw_feat 2418 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (!pdata->hw_feat.rss) hw_feat 2433 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c if (!pdata->hw_feat.rss) hw_feat 2516 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c q_count = max(pdata->hw_feat.tx_q_cnt, pdata->hw_feat.rx_q_cnt); hw_feat 558 drivers/net/ethernet/synopsys/dwc-xlgmac.h struct xlgmac_hw_features hw_feat;