Searched refs:XGMAC_GET_BITS (Results 1 - 5 of 5) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-drv.c349 (XGMAC_GET_BITS(dma_ch_isr, DMA_CH_SR, TI) || xgbe_isr()
350 XGMAC_GET_BITS(dma_ch_isr, DMA_CH_SR, RI))) { xgbe_isr()
361 if (XGMAC_GET_BITS(dma_ch_isr, DMA_CH_SR, FBE)) xgbe_isr()
368 if (XGMAC_GET_BITS(dma_isr, DMA_ISR, MACIS)) { xgbe_isr()
371 if (XGMAC_GET_BITS(mac_isr, MAC_ISR, MMCTXIS)) xgbe_isr()
374 if (XGMAC_GET_BITS(mac_isr, MAC_ISR, MMCRXIS)) xgbe_isr()
377 if (XGMAC_GET_BITS(mac_isr, MAC_ISR, TSIS)) { xgbe_isr()
380 if (XGMAC_GET_BITS(mac_tssr, MAC_TSSR, TXTSC)) { xgbe_isr()
494 hw_feat->gmii = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, GMIISEL); xgbe_get_all_hw_features()
495 hw_feat->vlhash = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, VLHASH); xgbe_get_all_hw_features()
496 hw_feat->sma = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, SMASEL); xgbe_get_all_hw_features()
497 hw_feat->rwk = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, RWKSEL); xgbe_get_all_hw_features()
498 hw_feat->mgk = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, MGKSEL); xgbe_get_all_hw_features()
499 hw_feat->mmc = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, MMCSEL); xgbe_get_all_hw_features()
500 hw_feat->aoe = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, ARPOFFSEL); xgbe_get_all_hw_features()
501 hw_feat->ts = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, TSSEL); xgbe_get_all_hw_features()
502 hw_feat->eee = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, EEESEL); xgbe_get_all_hw_features()
503 hw_feat->tx_coe = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, TXCOESEL); xgbe_get_all_hw_features()
504 hw_feat->rx_coe = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, RXCOESEL); xgbe_get_all_hw_features()
505 hw_feat->addn_mac = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, xgbe_get_all_hw_features()
507 hw_feat->ts_src = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, TSSTSSEL); xgbe_get_all_hw_features()
508 hw_feat->sa_vlan_ins = XGMAC_GET_BITS(mac_hfr0, MAC_HWF0R, SAVLANINS); xgbe_get_all_hw_features()
511 hw_feat->rx_fifo_size = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, xgbe_get_all_hw_features()
513 hw_feat->tx_fifo_size = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, xgbe_get_all_hw_features()
515 hw_feat->dma_width = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, ADDR64); xgbe_get_all_hw_features()
516 hw_feat->dcb = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, DCBEN); xgbe_get_all_hw_features()
517 hw_feat->sph = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, SPHEN); xgbe_get_all_hw_features()
518 hw_feat->tso = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, TSOEN); xgbe_get_all_hw_features()
519 hw_feat->dma_debug = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, DBGMEMA); xgbe_get_all_hw_features()
520 hw_feat->rss = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, RSSEN); xgbe_get_all_hw_features()
521 hw_feat->tc_cnt = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, NUMTC); xgbe_get_all_hw_features()
522 hw_feat->hash_table_size = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, xgbe_get_all_hw_features()
524 hw_feat->l3l4_filter_num = XGMAC_GET_BITS(mac_hfr1, MAC_HWF1R, xgbe_get_all_hw_features()
528 hw_feat->rx_q_cnt = XGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, RXQCNT); xgbe_get_all_hw_features()
529 hw_feat->tx_q_cnt = XGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, TXQCNT); xgbe_get_all_hw_features()
530 hw_feat->rx_ch_cnt = XGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, RXCHCNT); xgbe_get_all_hw_features()
531 hw_feat->tx_ch_cnt = XGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, TXCHCNT); xgbe_get_all_hw_features()
532 hw_feat->pps_out_num = XGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, PPSOUTNUM); xgbe_get_all_hw_features()
533 hw_feat->aux_snap_num = XGMAC_GET_BITS(mac_hfr2, MAC_HWF2R, AUXSNAPNUM); xgbe_get_all_hw_features()
1227 if (XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, PTP)) { xgbe_prep_tx_tstamp()
1240 if (!XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, PTP)) xgbe_prep_tx_tstamp()
1254 if (!XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, xgbe_prep_tso()
1970 incomplete = XGMAC_GET_BITS(packet->attributes, xgbe_rx_poll()
1973 context_next = XGMAC_GET_BITS(packet->attributes, xgbe_rx_poll()
1976 context = XGMAC_GET_BITS(packet->attributes, xgbe_rx_poll()
2046 if (XGMAC_GET_BITS(packet->attributes, xgbe_rx_poll()
2050 if (XGMAC_GET_BITS(packet->attributes, xgbe_rx_poll()
2055 if (XGMAC_GET_BITS(packet->attributes, xgbe_rx_poll()
2065 if (XGMAC_GET_BITS(packet->attributes, xgbe_rx_poll()
H A Dxgbe-dev.c1243 if (XGMAC_GET_BITS(tx_snr, MAC_TXSNR, TXTSSTSMIS)) xgbe_get_tx_tstamp()
1286 if (!XGMAC_GET_BITS(mac_tscr, MAC_TSCR, TSENA)) xgbe_config_tstamp()
1416 csum = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, xgbe_dev_xmit()
1418 tso = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, xgbe_dev_xmit()
1420 vlan = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, xgbe_dev_xmit()
1516 if (XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, PTP)) xgbe_dev_xmit()
1867 if (XGMAC_GET_BITS(pdata->hw_feat.version, MAC_VR, SNPSVER) < 0x21) xgbe_flush_tx_queues()
2238 if (XGMAC_GET_BITS(mmc_isr, MMC_TISR, TXOCTETCOUNT_GB)) xgbe_tx_mmc_int()
2242 if (XGMAC_GET_BITS(mmc_isr, MMC_TISR, TXFRAMECOUNT_GB)) xgbe_tx_mmc_int()
2246 if (XGMAC_GET_BITS(mmc_isr, MMC_TISR, TXBROADCASTFRAMES_G)) xgbe_tx_mmc_int()
2250 if (XGMAC_GET_BITS(mmc_isr, MMC_TISR, TXMULTICASTFRAMES_G)) xgbe_tx_mmc_int()
2254 if (XGMAC_GET_BITS(mmc_isr, MMC_TISR, TX64OCTETS_GB)) xgbe_tx_mmc_int()
2258 if (XGMAC_GET_BITS(mmc_isr, MMC_TISR, TX65TO127OCTETS_GB)) xgbe_tx_mmc_int()
2262 if (XGMAC_GET_BITS(mmc_isr, MMC_TISR, TX128TO255OCTETS_GB)) xgbe_tx_mmc_int()
2266 if (XGMAC_GET_BITS(mmc_isr, MMC_TISR, TX256TO511OCTETS_GB)) xgbe_tx_mmc_int()
2270 if (XGMAC_GET_BITS(mmc_isr, MMC_TISR, TX512TO1023OCTETS_GB)) xgbe_tx_mmc_int()
2274 if (XGMAC_GET_BITS(mmc_isr, MMC_TISR, TX1024TOMAXOCTETS_GB)) xgbe_tx_mmc_int()
2278 if (XGMAC_GET_BITS(mmc_isr, MMC_TISR, TXUNICASTFRAMES_GB)) xgbe_tx_mmc_int()
2282 if (XGMAC_GET_BITS(mmc_isr, MMC_TISR, TXMULTICASTFRAMES_GB)) xgbe_tx_mmc_int()
2286 if (XGMAC_GET_BITS(mmc_isr, MMC_TISR, TXBROADCASTFRAMES_GB)) xgbe_tx_mmc_int()
2290 if (XGMAC_GET_BITS(mmc_isr, MMC_TISR, TXUNDERFLOWERROR)) xgbe_tx_mmc_int()
2294 if (XGMAC_GET_BITS(mmc_isr, MMC_TISR, TXOCTETCOUNT_G)) xgbe_tx_mmc_int()
2298 if (XGMAC_GET_BITS(mmc_isr, MMC_TISR, TXFRAMECOUNT_G)) xgbe_tx_mmc_int()
2302 if (XGMAC_GET_BITS(mmc_isr, MMC_TISR, TXPAUSEFRAMES)) xgbe_tx_mmc_int()
2306 if (XGMAC_GET_BITS(mmc_isr, MMC_TISR, TXVLANFRAMES_G)) xgbe_tx_mmc_int()
2316 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RXFRAMECOUNT_GB)) xgbe_rx_mmc_int()
2320 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RXOCTETCOUNT_GB)) xgbe_rx_mmc_int()
2324 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RXOCTETCOUNT_G)) xgbe_rx_mmc_int()
2328 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RXBROADCASTFRAMES_G)) xgbe_rx_mmc_int()
2332 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RXMULTICASTFRAMES_G)) xgbe_rx_mmc_int()
2336 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RXCRCERROR)) xgbe_rx_mmc_int()
2340 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RXRUNTERROR)) xgbe_rx_mmc_int()
2344 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RXJABBERERROR)) xgbe_rx_mmc_int()
2348 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RXUNDERSIZE_G)) xgbe_rx_mmc_int()
2352 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RXOVERSIZE_G)) xgbe_rx_mmc_int()
2356 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RX64OCTETS_GB)) xgbe_rx_mmc_int()
2360 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RX65TO127OCTETS_GB)) xgbe_rx_mmc_int()
2364 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RX128TO255OCTETS_GB)) xgbe_rx_mmc_int()
2368 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RX256TO511OCTETS_GB)) xgbe_rx_mmc_int()
2372 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RX512TO1023OCTETS_GB)) xgbe_rx_mmc_int()
2376 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RX1024TOMAXOCTETS_GB)) xgbe_rx_mmc_int()
2380 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RXUNICASTFRAMES_G)) xgbe_rx_mmc_int()
2384 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RXLENGTHERROR)) xgbe_rx_mmc_int()
2388 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RXOUTOFRANGETYPE)) xgbe_rx_mmc_int()
2392 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RXPAUSEFRAMES)) xgbe_rx_mmc_int()
2396 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RXFIFOOVERFLOW)) xgbe_rx_mmc_int()
2400 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RXVLANFRAMES_GB)) xgbe_rx_mmc_int()
2404 if (XGMAC_GET_BITS(mmc_isr, MMC_RISR, RXWATCHDOGERROR)) xgbe_rx_mmc_int()
H A Dxgbe-ethtool.c370 XGMAC_GET_BITS(hw_feat->version, MAC_VR, USERVER), xgbe_get_drvinfo()
371 XGMAC_GET_BITS(hw_feat->version, MAC_VR, DEVID), xgbe_get_drvinfo()
372 XGMAC_GET_BITS(hw_feat->version, MAC_VR, SNPSVER)); xgbe_get_drvinfo()
507 indir[i] = XGMAC_GET_BITS(pdata->rss_table[i], xgbe_get_rxfh()
H A Dxgbe-desc.c509 tso = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, xgbe_map_tx_skb()
511 vlan = XGMAC_GET_BITS(packet->attributes, TX_PACKET_ATTRIBUTES, xgbe_map_tx_skb()
H A Dxgbe-common.h1015 #define XGMAC_GET_BITS(_var, _prefix, _field) \ macro

Completed in 121 milliseconds