| /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 | 70 struct xe_guc_db_mgr dbm; member
|
| /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/nxp/nxpwifi/ |
| H A D | sta_cfg.c | 550 u16 dbm = 0; in nxpwifi_set_tx_power() local 553 dbm = (u16)power_cfg->power_level; in nxpwifi_set_tx_power() 554 if (dbm < priv->min_tx_power_level || in nxpwifi_set_tx_power() 555 dbm > priv->max_tx_power_level) { in nxpwifi_set_tx_power() 559 dbm, priv->min_tx_power_level, in nxpwifi_set_tx_power() 572 dbm : priv->min_tx_power_level; in nxpwifi_set_tx_power() 589 pg->power_max = (s8)dbm; in nxpwifi_set_tx_power() 597 pg->power_max = (s8)dbm; in nxpwifi_set_tx_power() 605 pg->power_max = (s8)dbm; in nxpwifi_set_tx_power() 614 pg->power_max = (s8)dbm; in nxpwifi_set_tx_power()
|
| H A D | cfg80211.c | 331 int dbm = MBM_TO_DBM(mbm); in nxpwifi_cfg80211_set_tx_power() local 337 power_cfg.power_level = dbm; in nxpwifi_cfg80211_set_tx_power() 342 power_cfg.power_level = dbm; in nxpwifi_cfg80211_set_tx_power() 360 int *dbm) in nxpwifi_cfg80211_get_tx_power() argument 369 *dbm = priv->tx_power_level; in nxpwifi_cfg80211_get_tx_power()
|
| /linux/drivers/net/wireless/marvell/mwifiex/ |
| H A D | sta_ioctl.c | 734 u16 dbm = 0; in mwifiex_set_tx_power() local 737 dbm = (u16) power_cfg->power_level; in mwifiex_set_tx_power() 738 if ((dbm < priv->min_tx_power_level) || in mwifiex_set_tx_power() 739 (dbm > priv->max_tx_power_level)) { in mwifiex_set_tx_power() 743 dbm, priv->min_tx_power_level, in mwifiex_set_tx_power() 756 dbm : priv->min_tx_power_level; in mwifiex_set_tx_power() 773 pg->power_max = (s8) dbm; in mwifiex_set_tx_power() 781 pg->power_max = (s8) dbm; in mwifiex_set_tx_power() 789 pg->power_max = (s8) dbm; in mwifiex_set_tx_power() 798 pg->power_max = (s8) dbm; in mwifiex_set_tx_power()
|
| H A D | cfg80211.c | 384 int dbm = MBM_TO_DBM(mbm); in mwifiex_cfg80211_set_tx_power() local 390 power_cfg.power_level = dbm; in mwifiex_cfg80211_set_tx_power() 395 power_cfg.power_level = dbm; in mwifiex_cfg80211_set_tx_power() 414 unsigned int link_id, int *dbm) in mwifiex_cfg80211_get_tx_power() argument 426 *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 | 883 int radio_idx, unsigned int link_id, int *dbm) in qtnf_get_tx_power() argument 888 ret = qtnf_cmd_get_tx_power(vif, dbm); in qtnf_get_tx_power()
|
| /linux/net/wireless/ |
| H A D | wext-compat.c | 851 int dbm = 0; in cfg80211_wext_siwtxpower() local 872 dbm = data->txpower.value; in cfg80211_wext_siwtxpower() 883 dbm = data->txpower.value; in cfg80211_wext_siwtxpower() 895 return rdev_set_tx_power(rdev, wdev, -1, type, DBM_TO_MBM(dbm)); in cfg80211_wext_siwtxpower()
|
| H A D | rdev-ops.h | 611 unsigned int link_id, int *dbm) in rdev_get_tx_power() argument 616 dbm); in rdev_get_tx_power() 617 trace_rdev_return_int_int(&rdev->wiphy, ret, *dbm); in rdev_get_tx_power()
|
| /linux/drivers/net/wireless/mediatek/mt76/ |
| H A D | mt792x_core.c | 423 unsigned int link_id, int *dbm) in mt792x_get_txpower() argument 434 return mt76_get_txpower(hw, vif, link_id, dbm); in mt792x_get_txpower() 457 *dbm = DIV_ROUND_UP(max_power, 2); in mt792x_get_txpower()
|
| H A D | mt792x.h | 481 unsigned int link_id, int *dbm);
|
| H A D | mac80211.c | 1807 unsigned int link_id, int *dbm) in mt76_get_txpower() argument 1817 *dbm = DIV_ROUND_UP(phy->txpower_cur + delta, 2); in mt76_get_txpower()
|
| /linux/drivers/net/wireless/ath/ath6kl/ |
| H A D | cfg80211.c | 1421 int dbm = MBM_TO_DBM(mbm); in ath6kl_cfg80211_set_txpower() local 1424 type, dbm); in ath6kl_cfg80211_set_txpower() 1437 ar->tx_pwr = dbm; in ath6kl_cfg80211_set_txpower() 1445 ath6kl_wmi_set_tx_pwr_cmd(ar->wmi, vif->fw_vif_idx, dbm); in ath6kl_cfg80211_set_txpower() 1454 int *dbm) in ath6kl_cfg80211_get_txpower() argument 1483 *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/realtek/rtw89/ |
| H A D | phy.h | 1118 static inline s8 rtw89_phy_txpwr_dbm_to_mac(struct rtw89_dev *rtwdev, s8 dbm) in rtw89_phy_txpwr_dbm_to_mac() argument 1122 return clamp_t(s16, dbm << chip->txpwr_factor_mac, -64, 63); in rtw89_phy_txpwr_dbm_to_mac()
|
| H A D | rtw8851b_rfk.c | 2148 enum rtw89_rf_path path, u8 dbm, in _dpk_kip_set_txagc() argument 2152 dbm = clamp_t(u8, dbm, 7, 24); in _dpk_kip_set_txagc() 2155 "[DPK] set S%d txagc to %ddBm\n", path, dbm); in _dpk_kip_set_txagc() 2157 B_TXPWRB_VAL, dbm << 2); in _dpk_kip_set_txagc()
|
| H A D | rtw8852c_rfk.c | 2218 enum rtw89_rf_path path, u8 dbm, bool set_from_bb) in _dpk_kip_set_txagc() argument 2221 dbm = clamp_t(u8, dbm, 7, 24); in _dpk_kip_set_txagc() 2222 rtw89_debug(rtwdev, RTW89_DBG_RFK, "[DPK] set S%d txagc to %ddBm\n", path, dbm); in _dpk_kip_set_txagc() 2223 rtw89_phy_write32_mask(rtwdev, R_TXPWRB + (path << 13), B_TXPWRB_VAL, dbm << 2); in _dpk_kip_set_txagc()
|
| /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 | 1672 int radio_idx, unsigned int link_id, int *dbm) in get_tx_power() argument 1682 ret = wilc_get_tx_power(vif, (u8 *)dbm); in get_tx_power()
|
| /linux/net/mac80211/ |
| H A D | cfg.c | 3850 int *dbm) in ieee80211_get_tx_power() argument 3858 return drv_get_txpower(local, sdata, link_id, dbm); in ieee80211_get_tx_power() 3861 *dbm = local->hw.conf.power_level; in ieee80211_get_tx_power() 3866 *dbm = link_data->conf->txpower; in ieee80211_get_tx_power() 3872 if (*dbm == INT_MIN) in ieee80211_get_tx_power()
|
| /linux/drivers/net/wireless/morsemicro/mm81x/ |
| H A D | mac.c | 1492 unsigned int link_id, int *dbm) in mm81x_mac_ops_get_txpower() argument 1505 *dbm = MBM_TO_DBM(mors->tx_power_mbm); in mm81x_mac_ops_get_txpower()
|