/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac4_dma.c | 353 u32 hw_cap = readl(ioaddr + GMAC_HW_FEATURE0); in dwmac4_get_hw_feature() local 356 dma_cap->mbps_10_100 = (hw_cap & GMAC_HW_FEAT_MIISEL); in dwmac4_get_hw_feature() 357 dma_cap->mbps_1000 = (hw_cap & GMAC_HW_FEAT_GMIISEL) >> 1; in dwmac4_get_hw_feature() 358 dma_cap->half_duplex = (hw_cap & GMAC_HW_FEAT_HDSEL) >> 2; in dwmac4_get_hw_feature() 359 dma_cap->vlhash = (hw_cap & GMAC_HW_FEAT_VLHASH) >> 4; in dwmac4_get_hw_feature() 360 dma_cap->multi_addr = (hw_cap & GMAC_HW_FEAT_ADDMAC) >> 18; in dwmac4_get_hw_feature() 361 dma_cap->pcs = (hw_cap & GMAC_HW_FEAT_PCSSEL) >> 3; in dwmac4_get_hw_feature() 362 dma_cap->sma_mdio = (hw_cap & GMAC_HW_FEAT_SMASEL) >> 5; in dwmac4_get_hw_feature() 363 dma_cap->pmt_remote_wake_up = (hw_cap & GMAC_HW_FEAT_RWKSEL) >> 6; in dwmac4_get_hw_feature() 364 dma_cap->pmt_magic_frame = (hw_cap & GMAC_HW_FEAT_MGKSEL) >> 7; in dwmac4_get_hw_feature() [all …]
|
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() 235 dma_cap->half_duplex = (hw_cap & DMA_HW_FEAT_HDSEL) >> 2; in dwmac1000_get_hw_feature() 236 dma_cap->hash_filter = (hw_cap & DMA_HW_FEAT_HASHSEL) >> 4; in dwmac1000_get_hw_feature() 237 dma_cap->multi_addr = (hw_cap & DMA_HW_FEAT_ADDMAC) >> 5; 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() 240 dma_cap->pmt_remote_wake_up = (hw_cap & DMA_HW_FEAT_RWKSEL) >> 9; in dwmac1000_get_hw_feature() [all …]
|
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() 381 dma_cap->vlins = (hw_cap & XGMAC_HWFEAT_SAVLANINS) >> 27; in dwxgmac2_get_hw_feature() 382 dma_cap->rx_coe = (hw_cap & XGMAC_HWFEAT_RXCOESEL) >> 16; in dwxgmac2_get_hw_feature() 383 dma_cap->tx_coe = (hw_cap & XGMAC_HWFEAT_TXCOESEL) >> 14; in dwxgmac2_get_hw_feature() 384 dma_cap->eee = (hw_cap & XGMAC_HWFEAT_EEESEL) >> 13; in dwxgmac2_get_hw_feature() 385 dma_cap->atime_stamp = (hw_cap & XGMAC_HWFEAT_TSSEL) >> 12; in dwxgmac2_get_hw_feature() 386 dma_cap->av = (hw_cap & XGMAC_HWFEAT_AVSEL) >> 11; in dwxgmac2_get_hw_feature() 387 dma_cap->av &= !((hw_cap & XGMAC_HWFEAT_RAVSEL) >> 10); in dwxgmac2_get_hw_feature() 388 dma_cap->arpoffsel = (hw_cap & XGMAC_HWFEAT_ARPOFFSEL) >> 9; in dwxgmac2_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 | 1198 if (efuse->hw_cap.nss == 1 || rtwdev->hal.txrx_1ss) in rtw_update_sta_info() 1530 if (efuse->hw_cap.bw & BIT(RTW_CHANNEL_WIDTH_40)) in rtw_init_ht_cap() 1537 if (efuse->hw_cap.nss > 1) { in rtw_init_ht_cap() 1557 if (efuse->hw_cap.ptcl != EFUSE_HW_CAP_IGNORE && in rtw_init_vht_cap() 1558 efuse->hw_cap.ptcl != EFUSE_HW_CAP_PTCL_VHT) in rtw_init_vht_cap() 1585 if (efuse->hw_cap.nss > 1) { in rtw_init_vht_cap() 1894 efuse->hw_cap.bw = hw_bw_cap_to_bitamp(bw); in rtw_dump_hw_feature() 1895 efuse->hw_cap.hci = GET_EFUSE_HW_CAP_HCI(hw_feature); in rtw_dump_hw_feature() 1896 efuse->hw_cap.nss = GET_EFUSE_HW_CAP_NSS(hw_feature); in rtw_dump_hw_feature() 1897 efuse->hw_cap.ptcl = GET_EFUSE_HW_CAP_PTCL(hw_feature); in rtw_dump_hw_feature() [all …]
|
D | tx.c | 114 if (efuse->hw_cap.nss == 1) { in get_highest_vht_tx_rate() 127 } else if (efuse->hw_cap.nss >= 2) { in get_highest_vht_tx_rate()
|
D | debug.c | 750 for (ss = 0; ss < efuse->hw_cap.nss; ss++) { in rtw_debugfs_get_phy_info() 764 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 | 1777 } 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() 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()
|
/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 | 334 struct hw_cap { struct 376 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/misc/habanalabs/gaudi2/ |
D | gaudi2.c | 4852 u32 hw_cap; in gaudi2_is_hmmu_enabled() local 4854 hw_cap = HW_CAP_DCORE0_DMMU0 << (NUM_OF_HMMU_PER_DCORE * dcore_id + hmmu_id); in gaudi2_is_hmmu_enabled() 4856 if (gaudi2->hw_cap_initialized & hw_cap) in gaudi2_is_hmmu_enabled() 5157 u32 offset, mmu_base, stlb_base, hw_cap; in gaudi2_dcore_hmmu_init() local 5162 hw_cap = HW_CAP_DCORE0_DMMU0 << dmmu_seq; in gaudi2_dcore_hmmu_init() 5168 if ((gaudi2->hw_cap_initialized & hw_cap) || !(prop->hmmu_hif_enabled_mask & BIT(dmmu_seq))) in gaudi2_dcore_hmmu_init() 5199 gaudi2->hw_cap_initialized |= hw_cap; in gaudi2_dcore_hmmu_init()
|