/linux/drivers/net/ethernet/stmicro/stmmac/ |
A D | dwmac4_dma.c | 353 u32 hw_cap = readl(ioaddr + GMAC_HW_FEATURE0); in dwmac4_get_hw_feature() local 378 hw_cap = readl(ioaddr + GMAC_HW_FEATURE1); in dwmac4_get_hw_feature() 381 dma_cap->av = (hw_cap & GMAC_HW_FEAT_AVSEL) >> 20; in dwmac4_get_hw_feature() 382 dma_cap->tsoen = (hw_cap & GMAC_HW_TSOEN) >> 18; in dwmac4_get_hw_feature() 407 hw_cap = readl(ioaddr + GMAC_HW_FEATURE2); in dwmac4_get_hw_feature() 410 ((hw_cap & GMAC_HW_FEAT_RXCHCNT) >> 12) + 1; in dwmac4_get_hw_feature() 412 ((hw_cap & GMAC_HW_FEAT_TXCHCNT) >> 18) + 1; in dwmac4_get_hw_feature() 415 ((hw_cap & GMAC_HW_FEAT_RXQCNT) >> 0) + 1; in dwmac4_get_hw_feature() 417 ((hw_cap & GMAC_HW_FEAT_TXQCNT) >> 6) + 1; in dwmac4_get_hw_feature() 427 hw_cap = readl(ioaddr + GMAC_HW_FEATURE3); in dwmac4_get_hw_feature() [all …]
|
A D | dwmac1000_dma.c | 224 u32 hw_cap = readl(ioaddr + DMA_HW_FEATURE); in dwmac1000_get_hw_feature() local 226 if (!hw_cap) { in dwmac1000_get_hw_feature() 233 dma_cap->mbps_10_100 = (hw_cap & DMA_HW_FEAT_MIISEL); in dwmac1000_get_hw_feature() 234 dma_cap->mbps_1000 = (hw_cap & DMA_HW_FEAT_GMIISEL) >> 1; in dwmac1000_get_hw_feature() 238 dma_cap->pcs = (hw_cap & DMA_HW_FEAT_PCSSEL) >> 6; in dwmac1000_get_hw_feature() 239 dma_cap->sma_mdio = (hw_cap & DMA_HW_FEAT_SMASEL) >> 8; in dwmac1000_get_hw_feature() 243 dma_cap->rmon = (hw_cap & DMA_HW_FEAT_MMCSEL) >> 11; in dwmac1000_get_hw_feature() 246 (hw_cap & DMA_HW_FEAT_TSVER1SEL) >> 12; in dwmac1000_get_hw_feature() 250 dma_cap->eee = (hw_cap & DMA_HW_FEAT_EEESEL) >> 14; in dwmac1000_get_hw_feature() 251 dma_cap->av = (hw_cap & DMA_HW_FEAT_AVSEL) >> 15; in dwmac1000_get_hw_feature() [all …]
|
A D | dwxgmac2_dma.c | 377 u32 hw_cap; in dwxgmac2_get_hw_feature() local 380 hw_cap = readl(ioaddr + XGMAC_HW_FEATURE0); in dwxgmac2_get_hw_feature() 386 dma_cap->av = (hw_cap & XGMAC_HWFEAT_AVSEL) >> 11; in dwxgmac2_get_hw_feature() 396 hw_cap = readl(ioaddr + XGMAC_HW_FEATURE1); in dwxgmac2_get_hw_feature() 425 hw_cap = readl(ioaddr + XGMAC_HW_FEATURE2); in dwxgmac2_get_hw_feature() 428 ((hw_cap & XGMAC_HWFEAT_TXCHCNT) >> 18) + 1; in dwxgmac2_get_hw_feature() 430 ((hw_cap & XGMAC_HWFEAT_RXCHCNT) >> 12) + 1; in dwxgmac2_get_hw_feature() 432 ((hw_cap & XGMAC_HWFEAT_TXQCNT) >> 6) + 1; in dwxgmac2_get_hw_feature() 434 ((hw_cap & XGMAC_HWFEAT_RXQCNT) >> 0) + 1; in dwxgmac2_get_hw_feature() 437 hw_cap = readl(ioaddr + XGMAC_HW_FEATURE3); in dwxgmac2_get_hw_feature() [all …]
|
/linux/drivers/net/wireless/realtek/rtw88/ |
A D | efuse.h | 15 #define GET_EFUSE_HW_CAP_HCI(hw_cap) \ argument 16 le32_get_bits(*((__le32 *)(hw_cap) + 0x01), GENMASK(3, 0)) 17 #define GET_EFUSE_HW_CAP_BW(hw_cap) \ argument 18 le32_get_bits(*((__le32 *)(hw_cap) + 0x01), GENMASK(18, 16)) 19 #define GET_EFUSE_HW_CAP_NSS(hw_cap) \ argument 20 le32_get_bits(*((__le32 *)(hw_cap) + 0x01), GENMASK(20, 19)) 21 #define GET_EFUSE_HW_CAP_ANT_NUM(hw_cap) \ argument 22 le32_get_bits(*((__le32 *)(hw_cap) + 0x01), GENMASK(23, 21)) 23 #define GET_EFUSE_HW_CAP_PTCL(hw_cap) \ argument 24 le32_get_bits(*((__le32 *)(hw_cap) + 0x01), GENMASK(27, 26))
|
A D | main.c | 1079 if (efuse->hw_cap.nss == 1) in rtw_update_sta_info() 1360 if (efuse->hw_cap.nss > 1) { in rtw_init_ht_cap() 1380 if (efuse->hw_cap.ptcl != EFUSE_HW_CAP_IGNORE && in rtw_init_vht_cap() 1381 efuse->hw_cap.ptcl != EFUSE_HW_CAP_PTCL_VHT) in rtw_init_vht_cap() 1408 if (efuse->hw_cap.nss > 1) { in rtw_init_vht_cap() 1667 efuse->hw_cap.bw = hw_bw_cap_to_bitamp(bw); in rtw_dump_hw_feature() 1675 if (efuse->hw_cap.nss == EFUSE_HW_CAP_IGNORE || in rtw_dump_hw_feature() 1676 efuse->hw_cap.nss > rtwdev->hal.rf_path_num) in rtw_dump_hw_feature() 1677 efuse->hw_cap.nss = rtwdev->hal.rf_path_num; in rtw_dump_hw_feature() 1681 efuse->hw_cap.hci, efuse->hw_cap.bw, efuse->hw_cap.ptcl, in rtw_dump_hw_feature() [all …]
|
A D | tx.c | 110 if (efuse->hw_cap.nss == 1) { in get_highest_vht_tx_rate() 123 } else if (efuse->hw_cap.nss >= 2) { in get_highest_vht_tx_rate()
|
A D | debug.c | 704 for (ss = 0; ss < efuse->hw_cap.nss; ss++) { in rtw_debugfs_get_phy_info() 718 for (ss = 0; ss < efuse->hw_cap.nss; ss++) { in rtw_debugfs_get_phy_info()
|
A D | regd.c | 287 if (efuse->hw_cap.bw & BIT(RTW_CHANNEL_WIDTH_80)) in rtw_regd_apply_hw_cap_flags()
|
A D | main.h | 1728 } hw_cap; member
|
/linux/drivers/net/ethernet/hisilicon/ |
A D | hix5hd2_gmac.c | 195 #define HAS_CAP_TSO(hw_cap) ((hw_cap) & HW_CAP_TSO) argument 260 unsigned long hw_cap; member 683 static u32 hix5hd2_get_desc_cmd(struct sk_buff *skb, unsigned long hw_cap) in hix5hd2_get_desc_cmd() argument 687 if (HAS_CAP_TSO(hw_cap)) { in hix5hd2_get_desc_cmd() 755 cmd = hix5hd2_get_desc_cmd(skb, priv->hw_cap); in hix5hd2_net_xmit() 1118 priv->hw_cap = (unsigned long)of_id->data; in hix5hd2_dev_probe() 1236 if (HAS_CAP_TSO(priv->hw_cap)) in hix5hd2_dev_probe() 1248 if (HAS_CAP_TSO(priv->hw_cap)) { in hix5hd2_dev_probe() 1266 if (HAS_CAP_TSO(priv->hw_cap)) in hix5hd2_dev_probe() 1296 if (HAS_CAP_TSO(priv->hw_cap)) in hix5hd2_dev_remove()
|
/linux/drivers/net/ethernet/samsung/sxgbe/ |
A D | sxgbe_main.c | 128 if (priv->hw_cap.eee) { in sxgbe_eee_init() 706 SXGBE_FOR_EACH_QUEUE(priv->hw_cap.tx_mtl_queues, queue_num) in sxgbe_mtl_operation_mode() 712 SXGBE_FOR_EACH_QUEUE(priv->hw_cap.rx_mtl_queues, queue_num) in sxgbe_mtl_operation_mode() 718 SXGBE_FOR_EACH_QUEUE(priv->hw_cap.tx_mtl_queues, queue_num) in sxgbe_mtl_operation_mode() 722 SXGBE_FOR_EACH_QUEUE(priv->hw_cap.rx_mtl_queues, queue_num) in sxgbe_mtl_operation_mode() 876 struct sxgbe_hw_features *features = &priv->hw_cap; in sxgbe_get_hw_features() 988 priv->hw_cap.tx_mtl_qsize); in sxgbe_init_mtl_engine() 2026 if (priv->hw_cap.tx_csum_offload) in sxgbe_hw_init() 2029 if (priv->hw_cap.rx_csum_offload) in sxgbe_hw_init() 2124 if (priv->hw_cap.tcpseg_offload) { in sxgbe_drv_probe() [all …]
|
A D | sxgbe_common.h | 484 struct sxgbe_hw_features hw_cap; member
|
A D | sxgbe_ethtool.c | 140 if (!priv->hw_cap.eee) in sxgbe_get_eee()
|
/linux/drivers/net/ethernet/ti/ |
A D | netcp.h | 100 u32 hw_cap; member
|
A D | netcp_core.c | 732 if (!(netcp->hw_cap & ETH_SW_CAN_REMOVE_ETH_FCS)) in netcp_process_one_rx_packet()
|
A D | netcp_ethss.c | 2932 netcp->hw_cap = ETH_SW_CAN_REMOVE_ETH_FCS; in gbe_open()
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
A D | rvu.h | 326 struct hw_cap { struct 366 struct hw_cap cap;
|