Lines Matching refs:hw_feat

498 	struct axgbe_hw_features *hw_feat = &pdata->hw_feat;  in axgbe_dev_mac_addr_add()  local
500 if (index > hw_feat->addn_mac) { in axgbe_dev_mac_addr_add()
656 struct axgbe_hw_features *hw_feat = &pdata->hw_feat; in axgbe_dev_mac_addr_remove() local
658 if (index > hw_feat->addn_mac) { in axgbe_dev_mac_addr_remove()
671 struct axgbe_hw_features *hw_feat = &pdata->hw_feat; in axgbe_dev_set_mc_addr_list() local
675 if (nb_mc_addr > hw_feat->addn_mac) { in axgbe_dev_set_mc_addr_list()
681 for (i = 1; i < hw_feat->addn_mac; i++) { in axgbe_dev_set_mc_addr_list()
699 struct axgbe_hw_features *hw_feat = &pdata->hw_feat; in axgbe_dev_uc_hash_table_set() local
701 if (!hw_feat->hash_table_size) { in axgbe_dev_uc_hash_table_set()
722 struct axgbe_hw_features *hw_feat = &pdata->hw_feat; in axgbe_dev_uc_all_hash_table_set() local
725 if (!hw_feat->hash_table_size) { in axgbe_dev_uc_all_hash_table_set()
1213 dev_info->max_mac_addrs = pdata->hw_feat.addn_mac + 1; in axgbe_dev_info_get()
1214 dev_info->max_hash_mac_addrs = pdata->hw_feat.hash_table_size; in axgbe_dev_info_get()
1234 if (pdata->hw_feat.rss) { in axgbe_dev_info_get()
1236 dev_info->reta_size = pdata->hw_feat.hash_table_size; in axgbe_dev_info_get()
1342 if (pfc_conf->priority >= pdata->hw_feat.tc_cnt) { in axgbe_priority_flow_ctrl_set()
1344 pdata->hw_feat.tc_cnt); in axgbe_priority_flow_ctrl_set()
1953 struct axgbe_hw_features *hw_feat = &pdata->hw_feat; in axgbe_get_all_hw_features() local
1960 memset(hw_feat, 0, sizeof(*hw_feat)); in axgbe_get_all_hw_features()
1962 hw_feat->version = AXGMAC_IOREAD(pdata, MAC_VR); in axgbe_get_all_hw_features()
1965 hw_feat->gmii = AXGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, GMIISEL); in axgbe_get_all_hw_features()
1966 hw_feat->vlhash = AXGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, VLHASH); in axgbe_get_all_hw_features()
1967 hw_feat->sma = AXGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, SMASEL); in axgbe_get_all_hw_features()
1968 hw_feat->rwk = AXGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, RWKSEL); in axgbe_get_all_hw_features()
1969 hw_feat->mgk = AXGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, MGKSEL); in axgbe_get_all_hw_features()
1970 hw_feat->mmc = AXGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, MMCSEL); in axgbe_get_all_hw_features()
1971 hw_feat->aoe = AXGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, ARPOFFSEL); in axgbe_get_all_hw_features()
1972 hw_feat->ts = AXGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, TSSEL); in axgbe_get_all_hw_features()
1973 hw_feat->eee = AXGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, EEESEL); in axgbe_get_all_hw_features()
1974 hw_feat->tx_coe = AXGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, TXCOESEL); in axgbe_get_all_hw_features()
1975 hw_feat->rx_coe = AXGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, RXCOESEL); in axgbe_get_all_hw_features()
1976 hw_feat->addn_mac = AXGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, in axgbe_get_all_hw_features()
1978 hw_feat->ts_src = AXGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, TSSTSSEL); in axgbe_get_all_hw_features()
1979 hw_feat->sa_vlan_ins = AXGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, SAVLANINS); in axgbe_get_all_hw_features()
1982 hw_feat->rx_fifo_size = AXGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, in axgbe_get_all_hw_features()
1984 hw_feat->tx_fifo_size = AXGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, in axgbe_get_all_hw_features()
1986 hw_feat->adv_ts_hi = AXGMAC_GET_BITS(mac_hfr1, in axgbe_get_all_hw_features()
1988 hw_feat->dma_width = AXGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, ADDR64); in axgbe_get_all_hw_features()
1989 hw_feat->dcb = AXGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, DCBEN); in axgbe_get_all_hw_features()
1990 hw_feat->sph = AXGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, SPHEN); in axgbe_get_all_hw_features()
1991 hw_feat->tso = AXGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, TSOEN); in axgbe_get_all_hw_features()
1992 hw_feat->dma_debug = AXGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, DBGMEMA); in axgbe_get_all_hw_features()
1993 hw_feat->rss = AXGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, RSSEN); in axgbe_get_all_hw_features()
1994 hw_feat->tc_cnt = AXGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, NUMTC); in axgbe_get_all_hw_features()
1995 hw_feat->hash_table_size = AXGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, in axgbe_get_all_hw_features()
1997 hw_feat->l3l4_filter_num = AXGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, in axgbe_get_all_hw_features()
2001 hw_feat->rx_q_cnt = AXGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, RXQCNT); in axgbe_get_all_hw_features()
2002 hw_feat->tx_q_cnt = AXGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, TXQCNT); in axgbe_get_all_hw_features()
2003 hw_feat->rx_ch_cnt = AXGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, RXCHCNT); in axgbe_get_all_hw_features()
2004 hw_feat->tx_ch_cnt = AXGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, TXCHCNT); in axgbe_get_all_hw_features()
2005 hw_feat->pps_out_num = AXGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, PPSOUTNUM); in axgbe_get_all_hw_features()
2006 hw_feat->aux_snap_num = AXGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, in axgbe_get_all_hw_features()
2010 hw_feat->tx_q_vlan_tag_ins = AXGMAC_GET_BITS(mac_hfr3, in axgbe_get_all_hw_features()
2012 hw_feat->no_of_vlan_extn = AXGMAC_GET_BITS(mac_hfr3, in axgbe_get_all_hw_features()
2016 switch (hw_feat->hash_table_size) { in axgbe_get_all_hw_features()
2020 hw_feat->hash_table_size = 64; in axgbe_get_all_hw_features()
2023 hw_feat->hash_table_size = 128; in axgbe_get_all_hw_features()
2026 hw_feat->hash_table_size = 256; in axgbe_get_all_hw_features()
2031 switch (hw_feat->dma_width) { in axgbe_get_all_hw_features()
2033 hw_feat->dma_width = 32; in axgbe_get_all_hw_features()
2036 hw_feat->dma_width = 40; in axgbe_get_all_hw_features()
2039 hw_feat->dma_width = 48; in axgbe_get_all_hw_features()
2042 hw_feat->dma_width = 32; in axgbe_get_all_hw_features()
2048 hw_feat->rx_q_cnt++; in axgbe_get_all_hw_features()
2049 hw_feat->tx_q_cnt++; in axgbe_get_all_hw_features()
2050 hw_feat->rx_ch_cnt++; in axgbe_get_all_hw_features()
2051 hw_feat->tx_ch_cnt++; in axgbe_get_all_hw_features()
2052 hw_feat->tc_cnt++; in axgbe_get_all_hw_features()
2055 hw_feat->rx_fifo_size = 1 << (hw_feat->rx_fifo_size + 7); in axgbe_get_all_hw_features()
2056 hw_feat->tx_fifo_size = 1 << (hw_feat->tx_fifo_size + 7); in axgbe_get_all_hw_features()
2077 pdata->tx_max_channel_count = pdata->hw_feat.tx_ch_cnt; in axgbe_set_counts()
2079 pdata->rx_max_channel_count = pdata->hw_feat.rx_ch_cnt; in axgbe_set_counts()
2082 pdata->tx_max_q_count = pdata->hw_feat.tx_q_cnt; in axgbe_set_counts()
2084 pdata->rx_max_q_count = pdata->hw_feat.rx_q_cnt; in axgbe_set_counts()
2093 pdata->tx_ring_count = RTE_MIN(pdata->hw_feat.tx_ch_cnt, in axgbe_set_counts()
2100 pdata->rx_ring_count = RTE_MIN(pdata->hw_feat.rx_ch_cnt, in axgbe_set_counts()
2103 pdata->rx_q_count = RTE_MIN(pdata->hw_feat.rx_q_cnt, in axgbe_set_counts()
2311 pdata->tx_max_fifo_size = pdata->hw_feat.tx_fifo_size; in eth_axgbe_dev_init()
2313 pdata->rx_max_fifo_size = pdata->hw_feat.rx_fifo_size; in eth_axgbe_dev_init()