Home
last modified time | relevance | path

Searched refs:hw_cap (Results 1 – 13 of 13) 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 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.nss); 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.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()
H A Dmain.h1834 } hw_cap; member
/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()
2028 if (priv->hw_cap.tx_csum_offload) in sxgbe_hw_init()
2031 if (priv->hw_cap.rx_csum_offload) in sxgbe_hw_init()
2126 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/net/ethernet/ti/
H A Dnetcp_core.c731 if (!(netcp->hw_cap & ETH_SW_CAN_REMOVE_ETH_FCS)) in netcp_process_one_rx_packet()