/drivers/net/ethernet/stmicro/stmmac/ |
D | dwxgmac2_dma.c | 391 u32 hw_cap; in dwxgmac2_get_hw_feature() local 394 hw_cap = readl(ioaddr + XGMAC_HW_FEATURE0); in dwxgmac2_get_hw_feature() 395 dma_cap->edma = (hw_cap & XGMAC_HWFEAT_EDMA) >> 31; in dwxgmac2_get_hw_feature() 396 dma_cap->ediffc = (hw_cap & XGMAC_HWFEAT_EDIFFC) >> 30; in dwxgmac2_get_hw_feature() 397 dma_cap->vxn = (hw_cap & XGMAC_HWFEAT_VXN) >> 29; in dwxgmac2_get_hw_feature() 398 dma_cap->vlins = (hw_cap & XGMAC_HWFEAT_SAVLANINS) >> 27; in dwxgmac2_get_hw_feature() 399 dma_cap->tssrc = (hw_cap & XGMAC_HWFEAT_TSSTSSEL) >> 25; in dwxgmac2_get_hw_feature() 400 dma_cap->multi_addr = (hw_cap & XGMAC_HWFEAT_ADDMACADRSEL) >> 18; in dwxgmac2_get_hw_feature() 401 dma_cap->rx_coe = (hw_cap & XGMAC_HWFEAT_RXCOESEL) >> 16; in dwxgmac2_get_hw_feature() 402 dma_cap->tx_coe = (hw_cap & XGMAC_HWFEAT_TXCOESEL) >> 14; in dwxgmac2_get_hw_feature() [all …]
|
D | dwmac1000_dma.c | 229 u32 hw_cap = readl(ioaddr + DMA_HW_FEATURE); in dwmac1000_get_hw_feature() local 231 if (!hw_cap) { in dwmac1000_get_hw_feature() 238 dma_cap->mbps_10_100 = (hw_cap & DMA_HW_FEAT_MIISEL); in dwmac1000_get_hw_feature() 239 dma_cap->mbps_1000 = (hw_cap & DMA_HW_FEAT_GMIISEL) >> 1; in dwmac1000_get_hw_feature() 240 dma_cap->half_duplex = (hw_cap & DMA_HW_FEAT_HDSEL) >> 2; in dwmac1000_get_hw_feature() 241 dma_cap->hash_filter = (hw_cap & DMA_HW_FEAT_HASHSEL) >> 4; in dwmac1000_get_hw_feature() 242 dma_cap->multi_addr = (hw_cap & DMA_HW_FEAT_ADDMAC) >> 5; in dwmac1000_get_hw_feature() 243 dma_cap->pcs = (hw_cap & DMA_HW_FEAT_PCSSEL) >> 6; in dwmac1000_get_hw_feature() 244 dma_cap->sma_mdio = (hw_cap & DMA_HW_FEAT_SMASEL) >> 8; in dwmac1000_get_hw_feature() 245 dma_cap->pmt_remote_wake_up = (hw_cap & DMA_HW_FEAT_RWKSEL) >> 9; in dwmac1000_get_hw_feature() [all …]
|
D | dwmac4_dma.c | 380 u32 hw_cap = readl(ioaddr + GMAC_HW_FEATURE0); in dwmac4_get_hw_feature() local 383 dma_cap->mbps_10_100 = (hw_cap & GMAC_HW_FEAT_MIISEL); in dwmac4_get_hw_feature() 384 dma_cap->mbps_1000 = (hw_cap & GMAC_HW_FEAT_GMIISEL) >> 1; in dwmac4_get_hw_feature() 385 dma_cap->half_duplex = (hw_cap & GMAC_HW_FEAT_HDSEL) >> 2; in dwmac4_get_hw_feature() 386 dma_cap->vlhash = (hw_cap & GMAC_HW_FEAT_VLHASH) >> 4; in dwmac4_get_hw_feature() 387 dma_cap->multi_addr = (hw_cap & GMAC_HW_FEAT_ADDMAC) >> 18; in dwmac4_get_hw_feature() 388 dma_cap->pcs = (hw_cap & GMAC_HW_FEAT_PCSSEL) >> 3; in dwmac4_get_hw_feature() 389 dma_cap->sma_mdio = (hw_cap & GMAC_HW_FEAT_SMASEL) >> 5; in dwmac4_get_hw_feature() 390 dma_cap->pmt_remote_wake_up = (hw_cap & GMAC_HW_FEAT_RWKSEL) >> 6; in dwmac4_get_hw_feature() 391 dma_cap->pmt_magic_frame = (hw_cap & GMAC_HW_FEAT_MGKSEL) >> 7; in dwmac4_get_hw_feature() [all …]
|
/drivers/net/wireless/realtek/rtw88/ |
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))
|
D | main.c | 1227 if (efuse->hw_cap.nss == 1 || rtwdev->hal.txrx_1ss) in rtw_update_sta_info() 1558 if (efuse->hw_cap.bw & BIT(RTW_CHANNEL_WIDTH_40)) in rtw_init_ht_cap() 1565 if (efuse->hw_cap.nss > 1) { in rtw_init_ht_cap() 1585 if (efuse->hw_cap.ptcl != EFUSE_HW_CAP_IGNORE && in rtw_init_vht_cap() 1586 efuse->hw_cap.ptcl != EFUSE_HW_CAP_PTCL_VHT) in rtw_init_vht_cap() 1613 if (efuse->hw_cap.nss > 1) { in rtw_init_vht_cap() 1932 efuse->hw_cap.bw = hw_bw_cap_to_bitamp(bw); in rtw_dump_hw_feature() 1933 efuse->hw_cap.hci = GET_EFUSE_HW_CAP_HCI(hw_feature); in rtw_dump_hw_feature() 1934 efuse->hw_cap.nss = GET_EFUSE_HW_CAP_NSS(hw_feature); in rtw_dump_hw_feature() 1935 efuse->hw_cap.ptcl = GET_EFUSE_HW_CAP_PTCL(hw_feature); in rtw_dump_hw_feature() [all …]
|
D | tx.c | 128 if (efuse->hw_cap.nss == 1) { in get_highest_vht_tx_rate() 141 } else if (efuse->hw_cap.nss >= 2) { in get_highest_vht_tx_rate()
|
D | debug.c | 783 for (ss = 0; ss < efuse->hw_cap.nss; ss++) { in rtw_debugfs_get_phy_info() 797 for (ss = 0; ss < efuse->hw_cap.nss; ss++) { in rtw_debugfs_get_phy_info()
|
D | regd.c | 287 if (efuse->hw_cap.bw & BIT(RTW_CHANNEL_WIDTH_80)) in rtw_regd_apply_hw_cap_flags()
|
D | main.h | 1781 } hw_cap; member
|
/drivers/net/ethernet/hisilicon/ |
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() 1235 if (HAS_CAP_TSO(priv->hw_cap)) in hix5hd2_dev_probe() 1247 if (HAS_CAP_TSO(priv->hw_cap)) { in hix5hd2_dev_probe() 1265 if (HAS_CAP_TSO(priv->hw_cap)) in hix5hd2_dev_probe() 1295 if (HAS_CAP_TSO(priv->hw_cap)) in hix5hd2_dev_remove()
|
/drivers/net/ethernet/samsung/sxgbe/ |
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 …]
|
D | sxgbe_common.h | 484 struct sxgbe_hw_features hw_cap; member
|
D | sxgbe_ethtool.c | 140 if (!priv->hw_cap.eee) in sxgbe_get_eee()
|
/drivers/net/ethernet/ti/ |
D | netcp.h | 100 u32 hw_cap; member
|
D | netcp_core.c | 731 if (!(netcp->hw_cap & ETH_SW_CAN_REMOVE_ETH_FCS)) in netcp_process_one_rx_packet()
|
D | netcp_ethss.c | 2928 netcp->hw_cap = ETH_SW_CAN_REMOVE_ETH_FCS; in gbe_open()
|
/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu.h | 354 struct hw_cap { struct 397 struct hw_cap cap;
|
D | rvu_npc_hash.c | 202 struct hw_cap *hwcap = &rvu->hw->cap; in npc_config_secret_key() 222 struct hw_cap *hwcap = &rvu->hw->cap; in npc_program_mkex_hash()
|
/drivers/accel/habanalabs/gaudi2/ |
D | gaudi2.c | 5557 u32 hw_cap; in gaudi2_is_hmmu_enabled() local 5559 hw_cap = HW_CAP_DCORE0_DMMU0 << (NUM_OF_HMMU_PER_DCORE * dcore_id + hmmu_id); in gaudi2_is_hmmu_enabled() 5561 if (gaudi2->hw_cap_initialized & hw_cap) in gaudi2_is_hmmu_enabled() 5862 u32 offset, mmu_base, stlb_base, hw_cap; in gaudi2_dcore_hmmu_init() local 5867 hw_cap = HW_CAP_DCORE0_DMMU0 << dmmu_seq; in gaudi2_dcore_hmmu_init() 5873 if ((gaudi2->hw_cap_initialized & hw_cap) || !(prop->hmmu_hif_enabled_mask & BIT(dmmu_seq))) in gaudi2_dcore_hmmu_init() 5904 gaudi2->hw_cap_initialized |= hw_cap; in gaudi2_dcore_hmmu_init()
|