Home
last modified time | relevance | path

Searched refs:dbm (Results 1 – 17 of 17) 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_guc.c877 ret = xe_guc_db_mgr_init(&guc->dbm, ~0); in xe_guc_init_post_hwconfig()
/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/marvell/mwifiex/
H A Dsta_ioctl.c720 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 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/net/wireless/quantenna/qtnfmac/
H A Dcommands.h73 int qtnf_cmd_get_tx_power(const struct qtnf_vif *vif, int *dbm);
H A Dcommands.c2592 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 Dwext-compat.c850 int dbm = 0; in cfg80211_wext_siwtxpower() local
871 dbm = data->txpower.value; in cfg80211_wext_siwtxpower()
882 dbm = data->txpower.value; in cfg80211_wext_siwtxpower()
894 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.c4510 int dbm, ret; in nl80211_send_iface() local
4512 ret = rdev_get_tx_power(rdev, wdev, -1, 0, &dbm); in nl80211_send_iface()
4515 DBM_TO_MBM(dbm))) in nl80211_send_iface()
4582 int dbm, ret; in nl80211_send_iface() local
4584 ret = rdev_get_tx_power(rdev, wdev, -1, link_id, &dbm); in nl80211_send_iface()
4587 DBM_TO_MBM(dbm))) in nl80211_send_iface()
/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/net/mac80211/
H A Dcfg.c3637 int *dbm) in ieee80211_get_tx_power() argument
3645 return drv_get_txpower(local, sdata, link_id, dbm); in ieee80211_get_tx_power()
3648 *dbm = local->hw.conf.power_level; in ieee80211_get_tx_power()
3653 *dbm = link_data->conf->txpower; in ieee80211_get_tx_power()
3659 if (*dbm == INT_MIN) in ieee80211_get_tx_power()
/linux/include/net/
H A Dmac80211.h4988 unsigned int link_id, int *dbm);
/linux/drivers/net/wireless/ath/ath12k/
H A Dmac.c5408 int *dbm) in ath12k_mac_op_get_txpower() argument
5470 *dbm = ar->chan_tx_pwr; in ath12k_mac_op_get_txpower()
5472 *dbm); in ath12k_mac_op_get_txpower()
5477 *dbm = vif->bss_conf.txpower; in ath12k_mac_op_get_txpower()
5479 *dbm); in ath12k_mac_op_get_txpower()