Home
last modified time | relevance | path

Searched refs:mac_hfr2 (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/ethernet/synopsys/
H A Ddwc-xlgmac-common.c362 unsigned int mac_hfr0, mac_hfr1, mac_hfr2; in xlgmac_get_all_hw_features() local
366 mac_hfr2 = readl(pdata->mac_regs + MAC_HWF2R); in xlgmac_get_all_hw_features()
455 hw_feat->rx_q_cnt = XLGMAC_GET_REG_BITS(mac_hfr2, in xlgmac_get_all_hw_features()
458 hw_feat->tx_q_cnt = XLGMAC_GET_REG_BITS(mac_hfr2, in xlgmac_get_all_hw_features()
461 hw_feat->rx_ch_cnt = XLGMAC_GET_REG_BITS(mac_hfr2, in xlgmac_get_all_hw_features()
464 hw_feat->tx_ch_cnt = XLGMAC_GET_REG_BITS(mac_hfr2, in xlgmac_get_all_hw_features()
467 hw_feat->pps_out_num = XLGMAC_GET_REG_BITS(mac_hfr2, in xlgmac_get_all_hw_features()
470 hw_feat->aux_snap_num = XLGMAC_GET_REG_BITS(mac_hfr2, in xlgmac_get_all_hw_features()
/openbmc/linux/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-drv.c746 unsigned int mac_hfr0, mac_hfr1, mac_hfr2; in xgbe_get_all_hw_features() local
751 mac_hfr2 = XGMAC_IOREAD(pdata, MAC_HWF2R); in xgbe_get_all_hw_features()
794 hw_feat->rx_q_cnt = XGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, RXQCNT); in xgbe_get_all_hw_features()
795 hw_feat->tx_q_cnt = XGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, TXQCNT); in xgbe_get_all_hw_features()
796 hw_feat->rx_ch_cnt = XGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, RXCHCNT); in xgbe_get_all_hw_features()
797 hw_feat->tx_ch_cnt = XGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, TXCHCNT); in xgbe_get_all_hw_features()
798 hw_feat->pps_out_num = XGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, PPSOUTNUM); in xgbe_get_all_hw_features()
799 hw_feat->aux_snap_num = XGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, AUXSNAPNUM); in xgbe_get_all_hw_features()