| /linux/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | dwxgmac2_dma.c | 366 u32 hw_cap; in dwxgmac2_get_hw_feature() local 371 hw_cap = readl(ioaddr + XGMAC_HW_FEATURE0); in dwxgmac2_get_hw_feature() 372 dma_cap->edma = (hw_cap & XGMAC_HWFEAT_EDMA) >> 31; in dwxgmac2_get_hw_feature() 373 dma_cap->ediffc = (hw_cap & XGMAC_HWFEAT_EDIFFC) >> 30; in dwxgmac2_get_hw_feature() 374 dma_cap->vxn = (hw_cap & XGMAC_HWFEAT_VXN) >> 29; in dwxgmac2_get_hw_feature() 375 dma_cap->vlins = (hw_cap & XGMAC_HWFEAT_SAVLANINS) >> 27; in dwxgmac2_get_hw_feature() 376 dma_cap->tssrc = (hw_cap & XGMAC_HWFEAT_TSSTSSEL) >> 25; in dwxgmac2_get_hw_feature() 377 dma_cap->actphyif = FIELD_GET(XGMAC_HWFEAT_PHYSEL, hw_cap); in dwxgmac2_get_hw_feature() 378 dma_cap->multi_addr = (hw_cap & XGMAC_HWFEAT_ADDMACADRSEL) >> 18; in dwxgmac2_get_hw_feature() 379 dma_cap->rx_coe = (hw_cap in dwxgmac2_get_hw_feature() [all...] |
| H A D | dwmac4_dma.c | 383 u32 hw_cap = readl(ioaddr + GMAC_HW_FEATURE0); in dwmac4_get_hw_feature() local 386 dma_cap->mbps_10_100 = (hw_cap & GMAC_HW_FEAT_MIISEL); in dwmac4_get_hw_feature() 387 dma_cap->mbps_1000 = (hw_cap & GMAC_HW_FEAT_GMIISEL) >> 1; in dwmac4_get_hw_feature() 388 dma_cap->half_duplex = (hw_cap & GMAC_HW_FEAT_HDSEL) >> 2; in dwmac4_get_hw_feature() 389 dma_cap->vlhash = (hw_cap & GMAC_HW_FEAT_VLHASH) >> 4; in dwmac4_get_hw_feature() 390 dma_cap->multi_addr = (hw_cap & GMAC_HW_FEAT_ADDMAC) >> 18; in dwmac4_get_hw_feature() 391 dma_cap->additional_32_addr = (hw_cap & GMAC_HW_FEAT_MACADR32SEL) >> 23; in dwmac4_get_hw_feature() 392 dma_cap->additional_64_addr = (hw_cap & GMAC_HW_FEAT_MACADR64SEL) >> 24; in dwmac4_get_hw_feature() 393 dma_cap->pcs = (hw_cap & GMAC_HW_FEAT_PCSSEL) >> 3; in dwmac4_get_hw_feature() 394 dma_cap->sma_mdio = (hw_cap in dwmac4_get_hw_feature() [all...] |
| /linux/drivers/net/wireless/realtek/rtw88/ |
| H 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))
|
| H A D | rtw88xxa.c | 132 efuse->hw_cap.bw = BIT(RTW_CHANNEL_WIDTH_20) | in rtw88xxa_read_usb_type() 135 efuse->hw_cap.ptcl = EFUSE_HW_CAP_PTCL_VHT; in rtw88xxa_read_usb_type() 138 efuse->hw_cap.nss = 1; in rtw88xxa_read_usb_type() 140 efuse->hw_cap.nss = 2; in rtw88xxa_read_usb_type() 167 efuse->hw_cap.nss = 1; in rtw88xxa_read_usb_type() 175 efuse->hw_cap.nss = 2; in rtw88xxa_read_usb_type() 188 efuse->hw_cap.ptcl = 1; in rtw88xxa_read_usb_type() 189 efuse->hw_cap.bw &= ~BIT(RTW_CHANNEL_WIDTH_80); in rtw88xxa_read_usb_type() 196 efuse->hw_cap.hci, efuse->hw_cap in rtw88xxa_read_usb_type() [all...] |
| H A D | rtw8814a.c | 113 efuse->hw_cap.bw = BIT(RTW_CHANNEL_WIDTH_20) | in rtw8814a_init_hwcap() 116 efuse->hw_cap.ptcl = EFUSE_HW_CAP_PTCL_VHT; in rtw8814a_init_hwcap() 119 efuse->hw_cap.nss = 3; in rtw8814a_init_hwcap() 121 efuse->hw_cap.nss = 2; in rtw8814a_init_hwcap() 125 efuse->hw_cap.hci, efuse->hw_cap.bw, efuse->hw_cap.ptcl, in rtw8814a_init_hwcap() 126 efuse->hw_cap.ant_num, efuse->hw_cap.nss); in rtw8814a_init_hwcap()
|
| H A D | tx.c | 135 if (efuse->hw_cap.nss == 1) { in get_highest_vht_tx_rate() 148 } else if (efuse->hw_cap.nss >= 2) { in get_highest_vht_tx_rate()
|
| H A D | debug.c | 702 u8 nss = rtwdev->efuse.hw_cap.nss; in rtw_debugfs_get_tx_pwr_tbl() 833 for (ss = 0; ss < efuse->hw_cap.nss; ss++) { in rtw_debugfs_get_phy_info() 847 for (ss = 0; ss < efuse->hw_cap.nss; ss++) { in rtw_debugfs_get_phy_info()
|
| H A D | regd.c | 287 if (efuse->hw_cap.bw & BIT(RTW_CHANNEL_WIDTH_80)) in rtw_regd_apply_hw_cap_flags()
|
| H A D | main.h | 1842 } hw_cap; 1840 } hw_cap; global() member
|
| /linux/drivers/net/ethernet/hisilicon/ |
| H A D | hix5hd2_gmac.c | 197 #define HAS_CAP_TSO(hw_cap) ((hw_cap) & HW_CAP_TSO) 262 unsigned long hw_cap; 685 static u32 hix5hd2_get_desc_cmd(struct sk_buff *skb, unsigned long hw_cap) in hix5hd2_get_desc_cmd() 689 if (HAS_CAP_TSO(hw_cap)) { in hix5hd2_get_desc_cmd() 757 cmd = hix5hd2_get_desc_cmd(skb, priv->hw_cap); in hix5hd2_net_xmit() 1119 priv->hw_cap = (unsigned long)device_get_match_data(dev); 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() 196 HAS_CAP_TSO(hw_cap) global() argument 261 unsigned long hw_cap; global() member 684 hix5hd2_get_desc_cmd(struct sk_buff * skb,unsigned long hw_cap) hix5hd2_get_desc_cmd() argument [all...] |
| /linux/drivers/net/ethernet/samsung/sxgbe/ |
| H A D | sxgbe_main.c | 129 if (priv->hw_cap.eee) { in sxgbe_eee_init() 701 SXGBE_FOR_EACH_QUEUE(priv->hw_cap.tx_mtl_queues, queue_num) in sxgbe_mtl_operation_mode() 707 SXGBE_FOR_EACH_QUEUE(priv->hw_cap.rx_mtl_queues, queue_num) in sxgbe_mtl_operation_mode() 713 SXGBE_FOR_EACH_QUEUE(priv->hw_cap.tx_mtl_queues, queue_num) in sxgbe_mtl_operation_mode() 717 SXGBE_FOR_EACH_QUEUE(priv->hw_cap.rx_mtl_queues, queue_num) in sxgbe_mtl_operation_mode() 871 struct sxgbe_hw_features *features = &priv->hw_cap; in sxgbe_get_hw_features() 983 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 in sxgbe_drv_probe() [all...] |
| H A D | sxgbe_common.h | 484 struct sxgbe_hw_features hw_cap; member
|
| H A D | sxgbe_ethtool.c | 140 if (!priv->hw_cap.eee) in sxgbe_get_eee()
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rvu.h | 413 struct hw_cap { 459 struct hw_cap cap; 415 struct hw_cap { global() struct 417 nix_tx_aggr_lvlhw_cap global() argument 418 nix_txsch_per_cgx_lmachw_cap global() argument 419 nix_txsch_per_lbk_lmachw_cap global() argument 420 nix_txsch_per_sdp_lmachw_cap global() argument 421 nix_fixed_txschq_mappinghw_cap global() argument 422 nix_shapinghw_cap global() argument 423 nix_shaper_toggle_waithw_cap global() argument 424 nix_tx_link_bphw_cap global() argument 425 nix_rx_multicasthw_cap global() argument 426 nix_common_dwrr_mtuhw_cap global() argument 427 per_pf_mbox_regshw_cap global() argument 428 programmable_chanshw_cap global() argument 429 ipolicerhw_cap global() argument 430 nix_multiple_dwrr_mtuhw_cap global() argument 431 npc_hash_extracthw_cap global() argument 432 npc_exact_match_enabledhw_cap global() argument 433 cpt_rxchw_cap global() argument
|
| /linux/drivers/accel/habanalabs/gaudi2/ |
| H A D | gaudi2.c | 6093 u32 hw_cap; in gaudi2_is_hmmu_enabled() local 6095 hw_cap = HW_CAP_DCORE0_DMMU0 << (NUM_OF_HMMU_PER_DCORE * dcore_id + hmmu_id); in gaudi2_is_hmmu_enabled() 6097 if (gaudi2->hw_cap_initialized & hw_cap) in gaudi2_is_hmmu_enabled() 6405 u32 offset, mmu_base, stlb_base, hw_cap; in gaudi2_dcore_hmmu_init() local 6410 hw_cap = HW_CAP_DCORE0_DMMU0 << dmmu_seq; in gaudi2_dcore_hmmu_init() 6416 if ((gaudi2->hw_cap_initialized & hw_cap) || !(prop->hmmu_hif_enabled_mask & BIT(dmmu_seq))) in gaudi2_dcore_hmmu_init() 6447 gaudi2->hw_cap_initialized |= hw_cap; in gaudi2_dcore_hmmu_init()
|
| /linux/drivers/net/ethernet/ti/ |
| H A D | netcp_core.c | 727 * from the packet and is indicated in hw_cap. So trim it only for in netcp_process_one_rx_packet() 730 if (!(netcp->hw_cap & ETH_SW_CAN_REMOVE_ETH_FCS)) in netcp_process_one_rx_packet()
|