Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwxgmac2_dma.c389 u32 hw_cap; in dwxgmac2_get_hw_feature() local
392 hw_cap = readl(ioaddr + XGMAC_HW_FEATURE0); in dwxgmac2_get_hw_feature()
393 dma_cap->edma = (hw_cap & XGMAC_HWFEAT_EDMA) >> 31; in dwxgmac2_get_hw_feature()
394 dma_cap->ediffc = (hw_cap & XGMAC_HWFEAT_EDIFFC) >> 30; in dwxgmac2_get_hw_feature()
395 dma_cap->vxn = (hw_cap & XGMAC_HWFEAT_VXN) >> 29; in dwxgmac2_get_hw_feature()
396 dma_cap->vlins = (hw_cap & XGMAC_HWFEAT_SAVLANINS) >> 27; in dwxgmac2_get_hw_feature()
397 dma_cap->tssrc = (hw_cap & XGMAC_HWFEAT_TSSTSSEL) >> 25; in dwxgmac2_get_hw_feature()
398 dma_cap->multi_addr = (hw_cap & XGMAC_HWFEAT_ADDMACADRSEL) >> 18; in dwxgmac2_get_hw_feature()
399 dma_cap->rx_coe = (hw_cap & XGMAC_HWFEAT_RXCOESEL) >> 16; in dwxgmac2_get_hw_feature()
400 dma_cap->tx_coe = (hw_cap in dwxgmac2_get_hw_feature()
[all...]
H A Ddwmac1000_dma.c231 u32 hw_cap = readl(ioaddr + DMA_HW_FEATURE); in dwmac1000_get_hw_feature() local
233 if (!hw_cap) { in dwmac1000_get_hw_feature()
240 dma_cap->mbps_10_100 = (hw_cap & DMA_HW_FEAT_MIISEL); in dwmac1000_get_hw_feature()
241 dma_cap->mbps_1000 = (hw_cap & DMA_HW_FEAT_GMIISEL) >> 1; in dwmac1000_get_hw_feature()
242 dma_cap->half_duplex = (hw_cap & DMA_HW_FEAT_HDSEL) >> 2; in dwmac1000_get_hw_feature()
243 dma_cap->hash_filter = (hw_cap & DMA_HW_FEAT_HASHSEL) >> 4; in dwmac1000_get_hw_feature()
244 dma_cap->multi_addr = (hw_cap & DMA_HW_FEAT_ADDMAC) >> 5; in dwmac1000_get_hw_feature()
245 dma_cap->pcs = (hw_cap & DMA_HW_FEAT_PCSSEL) >> 6; in dwmac1000_get_hw_feature()
246 dma_cap->sma_mdio = (hw_cap & DMA_HW_FEAT_SMASEL) >> 8; in dwmac1000_get_hw_feature()
247 dma_cap->pmt_remote_wake_up = (hw_cap in dwmac1000_get_hw_feature()
[all...]
H A Ddwmac4_dma.c388 u32 hw_cap = readl(ioaddr + GMAC_HW_FEATURE0); in dwmac4_get_hw_feature() local
391 dma_cap->mbps_10_100 = (hw_cap & GMAC_HW_FEAT_MIISEL); in dwmac4_get_hw_feature()
392 dma_cap->mbps_1000 = (hw_cap & GMAC_HW_FEAT_GMIISEL) >> 1; in dwmac4_get_hw_feature()
393 dma_cap->half_duplex = (hw_cap & GMAC_HW_FEAT_HDSEL) >> 2; in dwmac4_get_hw_feature()
394 dma_cap->vlhash = (hw_cap & GMAC_HW_FEAT_VLHASH) >> 4; in dwmac4_get_hw_feature()
395 dma_cap->multi_addr = (hw_cap & GMAC_HW_FEAT_ADDMAC) >> 18; in dwmac4_get_hw_feature()
396 dma_cap->pcs = (hw_cap & GMAC_HW_FEAT_PCSSEL) >> 3; in dwmac4_get_hw_feature()
397 dma_cap->sma_mdio = (hw_cap & GMAC_HW_FEAT_SMASEL) >> 5; in dwmac4_get_hw_feature()
398 dma_cap->pmt_remote_wake_up = (hw_cap & GMAC_HW_FEAT_RWKSEL) >> 6; in dwmac4_get_hw_feature()
399 dma_cap->pmt_magic_frame = (hw_cap in dwmac4_get_hw_feature()
[all...]
/linux/drivers/net/wireless/realtek/rtw88/
H A Defuse.h15 #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)
[all...]
H A Dmain.c1248 if (efuse->hw_cap.nss == 1 || rtwdev->hal.txrx_1ss) in rtw_update_sta_info()
1250 else if (efuse->hw_cap.nss == 2) in rtw_update_sta_info()
1313 tx_num = efuse->hw_cap.nss; in rtw_update_sta_info()
1588 if (efuse->hw_cap.bw & BIT(RTW_CHANNEL_WIDTH_40)) in rtw_init_ht_cap()
1596 for (i = 0; i < efuse->hw_cap.nss; i++) in rtw_init_ht_cap()
1599 ht_cap->mcs.rx_highest = cpu_to_le16(150 * efuse->hw_cap.nss); in rtw_init_ht_cap()
1610 if (efuse->hw_cap.ptcl != EFUSE_HW_CAP_IGNORE && in rtw_init_vht_cap()
1611 efuse->hw_cap.ptcl != EFUSE_HW_CAP_PTCL_VHT) in rtw_init_vht_cap()
1632 if (i < efuse->hw_cap.nss) in rtw_init_vht_cap()
1638 highest = cpu_to_le16(390 * efuse->hw_cap in rtw_init_vht_cap()
[all...]
H A Drtw88xxa.c132 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 Drtw8814a.c113 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 Dtx.c133 if (efuse->hw_cap.nss == 1) { in get_highest_vht_tx_rate()
146 } else if (efuse->hw_cap.nss >= 2) { in get_highest_vht_tx_rate()
H A Ddebug.c697 u8 nss = rtwdev->efuse.hw_cap.nss; in rtw_debugfs_get_tx_pwr_tbl()
828 for (ss = 0; ss < efuse->hw_cap.nss; ss++) { in rtw_debugfs_get_phy_info()
842 for (ss = 0; ss < efuse->hw_cap.nss; ss++) { in rtw_debugfs_get_phy_info()
H A Dregd.c287 if (efuse->hw_cap.bw & BIT(RTW_CHANNEL_WIDTH_80)) in rtw_regd_apply_hw_cap_flags()
H A Dmain.h1834 } hw_cap; member
/linux/drivers/net/ethernet/hisilicon/
H A Dhix5hd2_gmac.c196 #define HAS_CAP_TSO(hw_cap) ((hw_cap) & HW_CAP_TSO) argument
261 unsigned long hw_cap; member
684 static u32 hix5hd2_get_desc_cmd(struct sk_buff *skb, unsigned long hw_cap) in hix5hd2_get_desc_cmd() argument
688 if (HAS_CAP_TSO(hw_cap)) { in hix5hd2_get_desc_cmd()
756 cmd = hix5hd2_get_desc_cmd(skb, priv->hw_cap); in hix5hd2_net_xmit()
1113 priv->hw_cap = (unsigned long)device_get_match_data(dev); in hix5hd2_dev_probe()
1230 if (HAS_CAP_TSO(priv->hw_cap)) in hix5hd2_dev_probe()
1242 if (HAS_CAP_TSO(priv->hw_cap)) { in hix5hd2_dev_probe()
1260 if (HAS_CAP_TSO(priv->hw_cap)) in hix5hd2_dev_probe()
[all...]
/linux/drivers/net/ethernet/samsung/sxgbe/
H A Dsxgbe_main.c129 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 in sxgbe_drv_probe()
[all...]
H A Dsxgbe_common.h484 struct sxgbe_hw_features hw_cap; member
/linux/drivers/net/ethernet/ti/
H A Dnetcp.h100 u32 hw_cap; member
H A Dnetcp_core.c728 * from the packet and is indicated in hw_cap. So trim it only for in netcp_process_one_rx_packet()
731 if (!(netcp->hw_cap & ETH_SW_CAN_REMOVE_ETH_FCS)) in netcp_process_one_rx_packet()
H A Dnetcp_ethss.c2923 netcp->hw_cap = ETH_SW_CAN_REMOVE_ETH_FCS; in gbe_open()
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu.h414 struct hw_cap { struct
458 struct hw_cap cap;
416 nix_tx_aggr_lvlhw_cap global() argument
417 nix_txsch_per_cgx_lmachw_cap global() argument
418 nix_txsch_per_lbk_lmachw_cap global() argument
419 nix_txsch_per_sdp_lmachw_cap global() argument
420 nix_fixed_txschq_mappinghw_cap global() argument
421 nix_shapinghw_cap global() argument
422 nix_shaper_toggle_waithw_cap global() argument
423 nix_tx_link_bphw_cap global() argument
424 nix_rx_multicasthw_cap global() argument
425 nix_common_dwrr_mtuhw_cap global() argument
426 per_pf_mbox_regshw_cap global() argument
427 programmable_chanshw_cap global() argument
428 ipolicerhw_cap global() argument
429 nix_multiple_dwrr_mtuhw_cap global() argument
430 npc_hash_extracthw_cap global() argument
431 npc_exact_match_enabledhw_cap global() argument
432 cpt_rxchw_cap global() argument
/linux/drivers/accel/habanalabs/gaudi2/
H A Dgaudi2.c5739 u32 hw_cap; in gaudi2_is_hmmu_enabled() local
5741 hw_cap = HW_CAP_DCORE0_DMMU0 << (NUM_OF_HMMU_PER_DCORE * dcore_id + hmmu_id); in gaudi2_is_hmmu_enabled()
5743 if (gaudi2->hw_cap_initialized & hw_cap) in gaudi2_is_hmmu_enabled()
6051 u32 offset, mmu_base, stlb_base, hw_cap; in gaudi2_dcore_hmmu_init() local
6056 hw_cap = HW_CAP_DCORE0_DMMU0 << dmmu_seq; in gaudi2_dcore_hmmu_init()
6062 if ((gaudi2->hw_cap_initialized & hw_cap) || !(prop->hmmu_hif_enabled_mask & BIT(dmmu_seq))) in gaudi2_dcore_hmmu_init()
6093 gaudi2->hw_cap_initialized |= hw_cap; in gaudi2_dcore_hmmu_init()