Home
last modified time | relevance | path

Searched refs:dbm (Results 1 – 22 of 22) sorted by relevance

/linux/drivers/gpu/drm/xe/
H A Dxe_guc_db_mgr.c31 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 Dxe_guc_db_mgr.h12 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 Dxe_gt_sriov_pf_config.c1168 struct xe_guc_db_mgr *dbm = &gt->uc.guc.dbm; in pf_reserve_dbs() local
1171 return xe_guc_db_mgr_reserve_range(dbm, num, spare); in pf_reserve_dbs()
1176 struct xe_guc_db_mgr *dbm = &gt->uc.guc.dbm; in pf_release_dbs() local
1179 xe_guc_db_mgr_release_range(dbm, start, num); in pf_release_dbs()
1345 struct xe_guc_db_mgr *dbm = &gt->uc.guc.dbm; in pf_estimate_fair_dbs() local
1351 ret = xe_guc_db_mgr_reserve_range(dbm, fair * num_vfs, spare); in pf_estimate_fair_dbs()
1354 xe_guc_db_mgr_release_range(dbm, ret, fair * num_vfs); in pf_estimate_fair_dbs()
/linux/drivers/gpu/drm/xe/tests/
H A Dxe_guc_db_mgr_test.c13 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/quantenna/qtnfmac/
H A Dcommands.h73 int qtnf_cmd_get_tx_power(const struct qtnf_vif *vif, int *dbm);
H A Dcfg80211.c885 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()
/linux/net/wireless/
H A Dwext-compat.c849 int dbm = 0; in cfg80211_wext_siwtxpower() local
870 dbm = data->txpower.value; in cfg80211_wext_siwtxpower()
881 dbm = data->txpower.value; in cfg80211_wext_siwtxpower()
893 return rdev_set_tx_power(rdev, wdev, -1, type, DBM_TO_MBM(dbm)); in cfg80211_wext_siwtxpower()
H A Drdev-ops.h608 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()
H A Dnl80211.c4234 int dbm, ret; in nl80211_send_iface() local
4236 ret = rdev_get_tx_power(rdev, wdev, -1, 0, &dbm); in nl80211_send_iface()
4239 DBM_TO_MBM(dbm))) in nl80211_send_iface()
4306 int dbm, ret; in nl80211_send_iface() local
4308 ret = rdev_get_tx_power(rdev, wdev, -1, link_id, &dbm); in nl80211_send_iface()
4311 DBM_TO_MBM(dbm))) in nl80211_send_iface()
/linux/net/mac80211/
H A Dtrace.h2247 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;
2269 LOCAL_PR_ARG, VIF_PR_ARG, __entry->link_id, __entry->dbm, __entry->ret
H A Ddriver-ops.h1308 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 Dcfg.c3468 int *dbm) in ieee80211_get_tx_power() argument
3476 return drv_get_txpower(local, sdata, link_id, dbm); in ieee80211_get_tx_power()
3479 *dbm = local->hw.conf.power_level; in ieee80211_get_tx_power()
3484 *dbm = link_data->conf->txpower; in ieee80211_get_tx_power()
3490 if (*dbm == INT_MIN) in ieee80211_get_tx_power()
/linux/drivers/net/wireless/ath/ath6kl/
H A Dcfg80211.c1415 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 Dphy_g.c2755 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 Dphy.c1730 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 Dmain.c2773 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/marvell/mwifiex/
H A Dcfg80211.c385 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/staging/rtl8723bs/os_dep/
H A Dioctl_cfg80211.c1809 unsigned int link_id, int *dbm) in cfg80211_rtw_get_txpower() argument
1811 *dbm = (12); in cfg80211_rtw_get_txpower()
/linux/drivers/net/wireless/ath/ath11k/
H A Dmac.c4108 int *dbm) in ath11k_mac_handle_get_txpower() argument
4144 *dbm = pdev->chan_tx_power / 2; in ath11k_mac_handle_get_txpower()
4149 pdev->chan_tx_power, *dbm); in ath11k_mac_handle_get_txpower()
4154 *dbm = vif->bss_conf.txpower; in ath11k_mac_handle_get_txpower()
4156 *dbm); in ath11k_mac_handle_get_txpower()
4163 int *dbm) in ath11k_mac_op_get_txpower() argument
4169 ret = ath11k_mac_handle_get_txpower(ar, vif, dbm); in ath11k_mac_op_get_txpower()
/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dcfg80211.c2701 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 Dmac.c5120 int *dbm) in ath12k_mac_op_get_txpower() argument
5182 *dbm = ar->chan_tx_pwr; in ath12k_mac_op_get_txpower()
5184 *dbm); in ath12k_mac_op_get_txpower()
5189 *dbm = vif->bss_conf.txpower; in ath12k_mac_op_get_txpower()
5191 *dbm); in ath12k_mac_op_get_txpower()
/linux/include/net/
H A Dcfg80211.h4993 int radio_idx, unsigned int link_id, int *dbm);