Home
last modified time | relevance | path

Searched refs:dbm (Results 1 – 14 of 14) 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_types.h66 struct xe_guc_db_mgr dbm; member
H A Dxe_gt_sriov_pf_config.c1018 struct xe_guc_db_mgr *dbm = &gt->uc.guc.dbm; in pf_reserve_dbs() local
1021 return xe_guc_db_mgr_reserve_range(dbm, num, spare); in pf_reserve_dbs()
1026 struct xe_guc_db_mgr *dbm = &gt->uc.guc.dbm; in pf_release_dbs() local
1029 xe_guc_db_mgr_release_range(dbm, start, num); in pf_release_dbs()
1180 struct xe_guc_db_mgr *dbm = &gt->uc.guc.dbm; in pf_estimate_fair_dbs() local
1186 ret = xe_guc_db_mgr_reserve_range(dbm, fair * num_vfs, spare); in pf_estimate_fair_dbs()
1189 xe_guc_db_mgr_release_range(dbm, ret, fair * num_vfs); in pf_estimate_fair_dbs()
H A Dxe_guc.c738 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/quantenna/qtnfmac/
H A Dcommands.h73 int qtnf_cmd_get_tx_power(const struct qtnf_vif *vif, int *dbm);
/linux/drivers/net/wireless/marvell/libertas/
H A Dcmd.h119 int lbs_set_tx_power(struct lbs_private *priv, s16 dbm);
H A Dcmd.c535 int lbs_set_tx_power(struct lbs_private *priv, s16 dbm) in lbs_set_tx_power() argument
543 cmd.curlevel = cpu_to_le16(dbm); in lbs_set_tx_power()
545 lbs_deb_cmd("SET_RF_TX_POWER: %d dBm\n", dbm); in lbs_set_tx_power()
/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/net/mac80211/
H A Dcfg.c3199 int *dbm) in ieee80211_get_tx_power() argument
3207 return drv_get_txpower(local, sdata, link_id, dbm); in ieee80211_get_tx_power()
3210 *dbm = local->hw.conf.power_level; in ieee80211_get_tx_power()
3215 *dbm = link_data->conf->txpower; in ieee80211_get_tx_power()
3221 if (*dbm == INT_MIN) in ieee80211_get_tx_power()
/linux/include/net/
H A Dmac80211.h4771 unsigned int link_id, int *dbm);
/linux/net/wireless/
H A Dnl80211.c4004 int dbm, ret; in nl80211_send_iface() local
4006 ret = rdev_get_tx_power(rdev, wdev, 0, &dbm); in nl80211_send_iface()
4009 DBM_TO_MBM(dbm))) in nl80211_send_iface()
4076 int dbm, ret; in nl80211_send_iface() local
4078 ret = rdev_get_tx_power(rdev, wdev, link_id, &dbm); in nl80211_send_iface()
4081 DBM_TO_MBM(dbm))) in nl80211_send_iface()