Home
last modified time | relevance | path

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

/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) + 0x01), GENMASK(27, 26))
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.bw, efuse->hw_cap.ptcl, in rtw88xxa_read_usb_type()
197 efuse->hw_cap.ant_num, efuse->hw_cap.nss); in rtw88xxa_read_usb_type()
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()
/linux/drivers/net/ethernet/samsung/sxgbe/
H A Dsxgbe_main.c129 if (priv->hw_cap.eee) { in sxgbe_eee_init()
704 SXGBE_FOR_EACH_QUEUE(priv->hw_cap.tx_mtl_queues, queue_num) in sxgbe_mtl_operation_mode()
710 SXGBE_FOR_EACH_QUEUE(priv->hw_cap.rx_mtl_queues, queue_num) in sxgbe_mtl_operation_mode()
716 SXGBE_FOR_EACH_QUEUE(priv->hw_cap.tx_mtl_queues, queue_num) in sxgbe_mtl_operation_mode()
720 SXGBE_FOR_EACH_QUEUE(priv->hw_cap.rx_mtl_queues, queue_num) in sxgbe_mtl_operation_mode()
874 struct sxgbe_hw_features *features = &priv->hw_cap; in sxgbe_get_hw_features()
986 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 …]
H A Dsxgbe_common.h484 struct sxgbe_hw_features hw_cap; member
H A Dsxgbe_ethtool.c140 if (!priv->hw_cap.eee) in sxgbe_get_eee()
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_npc_hash.c202 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()
/linux/drivers/accel/habanalabs/gaudi2/
H A Dgaudi2.c6093 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()