/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_types.h | 66 struct xe_guc_db_mgr dbm; member
|
H A D | xe_gt_sriov_pf_config.c | 1018 struct xe_guc_db_mgr *dbm = >->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 = >->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 = >->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 D | xe_guc.c | 738 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/quantenna/qtnfmac/ |
H A D | commands.h | 73 int qtnf_cmd_get_tx_power(const struct qtnf_vif *vif, int *dbm);
|
/linux/drivers/net/wireless/marvell/libertas/ |
H A D | cmd.h | 119 int lbs_set_tx_power(struct lbs_private *priv, s16 dbm);
|
H A D | cmd.c | 535 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 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/net/mac80211/ |
H A D | cfg.c | 3199 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 D | mac80211.h | 4771 unsigned int link_id, int *dbm);
|
/linux/net/wireless/ |
H A D | nl80211.c | 4004 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()
|