Home
last modified time | relevance | path

Searched refs:hw_cap (Results 1 – 4 of 4) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_main.c1557 u32 hw_cap = 0; in stmmac_get_hw_features() local
1560 hw_cap = priv->hw->dma->get_hw_feature(priv->ioaddr); in stmmac_get_hw_features()
1562 priv->dma_cap.mbps_10_100 = (hw_cap & DMA_HW_FEAT_MIISEL); in stmmac_get_hw_features()
1563 priv->dma_cap.mbps_1000 = (hw_cap & DMA_HW_FEAT_GMIISEL) >> 1; in stmmac_get_hw_features()
1564 priv->dma_cap.half_duplex = (hw_cap & DMA_HW_FEAT_HDSEL) >> 2; in stmmac_get_hw_features()
1565 priv->dma_cap.hash_filter = (hw_cap & DMA_HW_FEAT_HASHSEL) >> 4; in stmmac_get_hw_features()
1566 priv->dma_cap.multi_addr = (hw_cap & DMA_HW_FEAT_ADDMAC) >> 5; in stmmac_get_hw_features()
1567 priv->dma_cap.pcs = (hw_cap & DMA_HW_FEAT_PCSSEL) >> 6; in stmmac_get_hw_features()
1568 priv->dma_cap.sma_mdio = (hw_cap & DMA_HW_FEAT_SMASEL) >> 8; in stmmac_get_hw_features()
1570 (hw_cap & DMA_HW_FEAT_RWKSEL) >> 9; in stmmac_get_hw_features()
[all …]
/linux-4.1.27/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_main.c130 if (priv->hw_cap.eee) { in sxgbe_eee_init()
708 SXGBE_FOR_EACH_QUEUE(priv->hw_cap.tx_mtl_queues, queue_num) in sxgbe_mtl_operation_mode()
714 SXGBE_FOR_EACH_QUEUE(priv->hw_cap.rx_mtl_queues, queue_num) in sxgbe_mtl_operation_mode()
720 SXGBE_FOR_EACH_QUEUE(priv->hw_cap.tx_mtl_queues, queue_num) in sxgbe_mtl_operation_mode()
724 SXGBE_FOR_EACH_QUEUE(priv->hw_cap.rx_mtl_queues, queue_num) in sxgbe_mtl_operation_mode()
882 struct sxgbe_hw_features *features = &priv->hw_cap; in sxgbe_get_hw_features()
991 priv->hw_cap.tx_mtl_qsize); in sxgbe_init_mtl_engine()
2058 if (priv->hw_cap.tx_csum_offload) in sxgbe_hw_init()
2061 if (priv->hw_cap.rx_csum_offload) in sxgbe_hw_init()
2152 if (priv->hw_cap.tcpseg_offload) { in sxgbe_drv_probe()
[all …]
Dsxgbe_common.h489 struct sxgbe_hw_features hw_cap; member
Dsxgbe_ethtool.c143 if (!priv->hw_cap.eee) in sxgbe_get_eee()