| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_guc_db_mgr.c | 31 static struct xe_guc *dbm_to_guc(struct xe_guc_db_mgr *dbm) in dbm_to_guc() argument 33 return container_of(dbm, struct xe_guc, dbm); in dbm_to_guc() 36 static struct xe_gt *dbm_to_gt(struct xe_guc_db_mgr *dbm) in dbm_to_gt() argument 38 return guc_to_gt(dbm_to_guc(dbm)); in dbm_to_gt() 41 static struct xe_device *dbm_to_xe(struct xe_guc_db_mgr *dbm) in dbm_to_xe() argument 43 return gt_to_xe(dbm_to_gt(dbm)); in dbm_to_xe() 49 static void dbm_print_locked(struct xe_guc_db_mgr *dbm, struct drm_printer *p, int indent); 53 struct xe_guc_db_mgr *dbm = arg; in __fini_dbm() local 56 mutex_lock(dbm_mutex(dbm)); in __fini_dbm() 58 weight = bitmap_weight(dbm->bitmap, dbm->count); in __fini_dbm() [all …]
|
| H A D | xe_guc_db_mgr.h | 12 int xe_guc_db_mgr_init(struct xe_guc_db_mgr *dbm, unsigned int count); 14 int xe_guc_db_mgr_reserve_id_locked(struct xe_guc_db_mgr *dbm); 15 void xe_guc_db_mgr_release_id_locked(struct xe_guc_db_mgr *dbm, unsigned int id); 17 int xe_guc_db_mgr_reserve_range(struct xe_guc_db_mgr *dbm, unsigned int count, unsigned int spare); 18 void xe_guc_db_mgr_release_range(struct xe_guc_db_mgr *dbm, unsigned int start, unsigned int count); 20 void xe_guc_db_mgr_print(struct xe_guc_db_mgr *dbm, struct drm_printer *p, int indent);
|
| H A D | xe_guc.c | 864 ret = xe_guc_db_mgr_init(&guc->dbm, ~0); in xe_guc_init_post_hwconfig()
|
| /linux/drivers/gpu/drm/xe/tests/ |
| H A D | xe_guc_db_mgr_test.c | 13 struct xe_guc_db_mgr *dbm; in guc_dbm_test_init() local 16 dbm = &xe_device_get_gt(test->priv, 0)->uc.guc.dbm; in guc_dbm_test_init() 18 mutex_init(dbm_mutex(dbm)); in guc_dbm_test_init() 19 test->priv = dbm; in guc_dbm_test_init() 25 struct xe_guc_db_mgr *dbm = test->priv; in test_empty() local 27 KUNIT_ASSERT_EQ(test, xe_guc_db_mgr_init(dbm, 0), 0); in test_empty() 28 KUNIT_ASSERT_EQ(test, dbm->count, 0); in test_empty() 30 mutex_lock(dbm_mutex(dbm)); in test_empty() 31 KUNIT_EXPECT_LT(test, xe_guc_db_mgr_reserve_id_locked(dbm), 0); in test_empty() 32 mutex_unlock(dbm_mutex(dbm)); in test_empty() [all …]
|
| /linux/drivers/net/wireless/marvell/mwifiex/ |
| H A D | sta_ioctl.c | 720 u16 dbm = 0; in mwifiex_set_tx_power() local 723 dbm = (u16) power_cfg->power_level; in mwifiex_set_tx_power() 724 if ((dbm < priv->min_tx_power_level) || in mwifiex_set_tx_power() 725 (dbm > priv->max_tx_power_level)) { in mwifiex_set_tx_power() 729 dbm, priv->min_tx_power_level, in mwifiex_set_tx_power() 742 dbm : priv->min_tx_power_level; in mwifiex_set_tx_power() 759 pg->power_max = (s8) dbm; in mwifiex_set_tx_power() 767 pg->power_max = (s8) dbm; in mwifiex_set_tx_power() 775 pg->power_max = (s8) dbm; in mwifiex_set_tx_power() 784 pg->power_max = (s8) dbm; in mwifiex_set_tx_power()
|
| H A D | cfg80211.c | 385 int dbm = MBM_TO_DBM(mbm); in mwifiex_cfg80211_set_tx_power() local 391 power_cfg.power_level = dbm; in mwifiex_cfg80211_set_tx_power() 396 power_cfg.power_level = dbm; in mwifiex_cfg80211_set_tx_power() 415 unsigned int link_id, int *dbm) in mwifiex_cfg80211_get_tx_power() argument 427 *dbm = priv->tx_power_level; in mwifiex_cfg80211_get_tx_power()
|
| /linux/drivers/net/wireless/quantenna/qtnfmac/ |
| H A D | commands.h | 73 int qtnf_cmd_get_tx_power(const struct qtnf_vif *vif, int *dbm);
|
| H A D | cfg80211.c | 885 int radio_idx, unsigned int link_id, int *dbm) in qtnf_get_tx_power() argument 890 ret = qtnf_cmd_get_tx_power(vif, dbm); in qtnf_get_tx_power()
|
| H A D | commands.c | 2592 int qtnf_cmd_get_tx_power(const struct qtnf_vif *vif, int *dbm) in qtnf_cmd_get_tx_power() argument 2617 *dbm = MBM_TO_DBM(le32_to_cpu(resp->txpwr)); in qtnf_cmd_get_tx_power()
|
| /linux/net/wireless/ |
| H A D | wext-compat.c | 848 int dbm = 0; in cfg80211_wext_siwtxpower() local 869 dbm = data->txpower.value; in cfg80211_wext_siwtxpower() 880 dbm = data->txpower.value; in cfg80211_wext_siwtxpower() 892 return rdev_set_tx_power(rdev, wdev, -1, type, DBM_TO_MBM(dbm)); in cfg80211_wext_siwtxpower()
|
| H A D | rdev-ops.h | 608 unsigned int link_id, int *dbm) in rdev_get_tx_power() argument 613 dbm); in rdev_get_tx_power() 614 trace_rdev_return_int_int(&rdev->wiphy, ret, *dbm); in rdev_get_tx_power()
|
| /linux/net/mac80211/ |
| H A D | trace.h | 2247 unsigned int link_id, int dbm, int ret), 2249 TP_ARGS(local, sdata, link_id, dbm, ret), 2255 __field(int, dbm) 2263 __entry->dbm = dbm; 2268 LOCAL_PR_FMT VIF_PR_FMT " link_id:%d dbm:%d ret:%d", 2269 LOCAL_PR_ARG, VIF_PR_ARG, __entry->link_id, __entry->dbm, __entry->ret
|
| H A D | driver-ops.h | 1308 unsigned int link_id, int *dbm) in drv_get_txpower() argument 1318 ret = local->ops->get_txpower(&local->hw, &sdata->vif, link_id, dbm); in drv_get_txpower() 1319 trace_drv_get_txpower(local, sdata, link_id, *dbm, ret); in drv_get_txpower()
|
| H A D | cfg.c | 3491 int *dbm) in ieee80211_get_tx_power() argument 3499 return drv_get_txpower(local, sdata, link_id, dbm); in ieee80211_get_tx_power() 3502 *dbm = local->hw.conf.power_level; in ieee80211_get_tx_power() 3507 *dbm = link_data->conf->txpower; in ieee80211_get_tx_power() 3513 if (*dbm == INT_MIN) in ieee80211_get_tx_power()
|
| /linux/drivers/net/wireless/ath/ath6kl/ |
| H A D | cfg80211.c | 1415 int dbm = MBM_TO_DBM(mbm); in ath6kl_cfg80211_set_txpower() local 1418 type, dbm); in ath6kl_cfg80211_set_txpower() 1431 ar->tx_pwr = dbm; in ath6kl_cfg80211_set_txpower() 1439 ath6kl_wmi_set_tx_pwr_cmd(ar->wmi, vif->fw_vif_idx, dbm); in ath6kl_cfg80211_set_txpower() 1448 int *dbm) in ath6kl_cfg80211_get_txpower() argument 1477 *dbm = ar->tx_pwr; in ath6kl_cfg80211_get_txpower()
|
| /linux/drivers/net/wireless/broadcom/b43/ |
| H A D | phy_g.c | 2755 s8 dbm; in b43_gphy_estimate_power_out() local 2760 dbm = gphy->tssi2dbm[tmp]; in b43_gphy_estimate_power_out() 2762 return dbm; in b43_gphy_estimate_power_out() 2964 int dbm = pwr_adjust < 0 ? -pwr_adjust : pwr_adjust; in b43_gphy_op_recalc_txpower() local 2968 (pwr_adjust < 0 ? "-" : ""), Q52_ARG(dbm), in b43_gphy_op_recalc_txpower()
|
| /linux/drivers/net/wireless/broadcom/b43legacy/ |
| H A D | phy.c | 1730 s8 dbm = 0; in b43legacy_phy_estimate_power_out() local 1741 dbm = phy->tssi2dbm[tmp]; in b43legacy_phy_estimate_power_out() 1747 return dbm; in b43legacy_phy_estimate_power_out()
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | main.c | 2773 unsigned int link_id, int *dbm) in ath9k_get_txpower() argument 2780 *dbm = avp->chanctx->cur_txpower; in ath9k_get_txpower() 2782 *dbm = sc->cur_chan->cur_txpower; in ath9k_get_txpower() 2785 *dbm /= 2; in ath9k_get_txpower()
|
| /linux/drivers/net/wireless/microchip/wilc1000/ |
| H A D | cfg80211.c | 1664 int radio_idx, unsigned int link_id, int *dbm) in get_tx_power() argument 1674 ret = wilc_get_tx_power(vif, (u8 *)dbm); in get_tx_power()
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7996/ |
| H A D | main.c | 728 unsigned int link_id, int *dbm) in mt7996_get_txpower() argument 748 *dbm = DIV_ROUND_UP(phy->mt76->txpower_cur + delta, 2); in mt7996_get_txpower()
|
| /linux/drivers/staging/rtl8723bs/os_dep/ |
| H A D | ioctl_cfg80211.c | 1807 unsigned int link_id, int *dbm) in cfg80211_rtw_get_txpower() argument 1809 *dbm = (12); in cfg80211_rtw_get_txpower()
|
| /linux/drivers/net/wireless/ath/ath11k/ |
| H A D | mac.c | 4110 int *dbm) in ath11k_mac_handle_get_txpower() argument 4146 *dbm = pdev->chan_tx_power / 2; in ath11k_mac_handle_get_txpower() 4151 pdev->chan_tx_power, *dbm); in ath11k_mac_handle_get_txpower() 4156 *dbm = vif->bss_conf.txpower; in ath11k_mac_handle_get_txpower() 4158 *dbm); in ath11k_mac_handle_get_txpower() 4165 int *dbm) in ath11k_mac_op_get_txpower() argument 4171 ret = ath11k_mac_handle_get_txpower(ar, vif, dbm); in ath11k_mac_op_get_txpower()
|
| /linux/drivers/net/wireless/realtek/rtw89/ |
| H A D | phy.c | 2430 static s8 rtw89_phy_txpwr_dbm_without_tolerance(s8 dbm) in rtw89_phy_txpwr_dbm_without_tolerance() argument 2435 if (dbm <= tssi_deviation_point) in rtw89_phy_txpwr_dbm_without_tolerance() 2436 dbm -= tssi_max_deviation; in rtw89_phy_txpwr_dbm_without_tolerance() 2438 return dbm; in rtw89_phy_txpwr_dbm_without_tolerance()
|
| /linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
| H A D | cfg80211.c | 2701 int radio_idx, unsigned int link_id, s32 *dbm) in brcmf_cfg80211_get_tx_power() argument 2718 *dbm = (qdbm & ~WL_TXPWR_OVERRIDE) / 4; in brcmf_cfg80211_get_tx_power() 2721 brcmf_dbg(TRACE, "Exit (0x%x %d)\n", qdbm, *dbm); in brcmf_cfg80211_get_tx_power()
|
| /linux/drivers/net/wireless/ath/ath12k/ |
| H A D | mac.c | 5395 int *dbm) in ath12k_mac_op_get_txpower() argument 5457 *dbm = ar->chan_tx_pwr; in ath12k_mac_op_get_txpower() 5459 *dbm); in ath12k_mac_op_get_txpower() 5464 *dbm = vif->bss_conf.txpower; in ath12k_mac_op_get_txpower() 5466 *dbm); in ath12k_mac_op_get_txpower()
|