Home
last modified time | relevance | path

Searched refs:max_power (Results 1 – 25 of 104) sorted by relevance

12345

/linux-6.1.9/drivers/net/wireless/mediatek/mt76/
Deeprom.c228 s8 target_power, s8 nss_delta, s8 *max_power) in mt76_apply_array_limit() argument
238 *max_power = max(*max_power, pwr[i]); in mt76_apply_array_limit()
245 s8 nss_delta, s8 *max_power) in mt76_apply_multi_array_limit() argument
259 target_power, nss_delta, max_power); in mt76_apply_multi_array_limit()
285 s8 max_power = 0; in mt76_get_rate_power_limits() local
327 target_power, txs_delta, &max_power); in mt76_get_rate_power_limits()
332 target_power, txs_delta, &max_power); in mt76_get_rate_power_limits()
337 target_power, txs_delta, &max_power); in mt76_get_rate_power_limits()
342 target_power, txs_delta, &max_power); in mt76_get_rate_power_limits()
344 return max_power; in mt76_get_rate_power_limits()
/linux-6.1.9/drivers/thermal/
Dgov_power_allocator.c337 static void divvy_up_power(u32 *req_power, u32 *max_power, int num_actors, in divvy_up_power() argument
358 if (granted_power[i] > max_power[i]) { in divvy_up_power()
359 extra_power += granted_power[i] - max_power[i]; in divvy_up_power()
360 granted_power[i] = max_power[i]; in divvy_up_power()
363 extra_actor_power[i] = max_power[i] - granted_power[i]; in divvy_up_power()
388 u32 *req_power, *max_power, *granted_power, *extra_actor_power; in allocate_power() local
415 BUILD_BUG_ON(sizeof(*req_power) != sizeof(*max_power)); in allocate_power()
423 max_power = &req_power[num_actors]; in allocate_power()
454 &max_power[i])) in allocate_power()
458 max_allocatable_power += max_power[i]; in allocate_power()
[all …]
/linux-6.1.9/drivers/net/wireless/silabs/wfx/
Dscan.c50 if (ch_cur->max_power != ch_start->max_power) in send_scan_req()
81 if (req->channels[start_idx]->max_power != vif->bss_conf.txpower) in send_scan_req()
/linux-6.1.9/drivers/net/wireless/ti/wlcore/
Dmain.c5837 { .hw_value = 1, .center_freq = 2412, .max_power = WLCORE_MAX_TXPWR },
5838 { .hw_value = 2, .center_freq = 2417, .max_power = WLCORE_MAX_TXPWR },
5839 { .hw_value = 3, .center_freq = 2422, .max_power = WLCORE_MAX_TXPWR },
5840 { .hw_value = 4, .center_freq = 2427, .max_power = WLCORE_MAX_TXPWR },
5841 { .hw_value = 5, .center_freq = 2432, .max_power = WLCORE_MAX_TXPWR },
5842 { .hw_value = 6, .center_freq = 2437, .max_power = WLCORE_MAX_TXPWR },
5843 { .hw_value = 7, .center_freq = 2442, .max_power = WLCORE_MAX_TXPWR },
5844 { .hw_value = 8, .center_freq = 2447, .max_power = WLCORE_MAX_TXPWR },
5845 { .hw_value = 9, .center_freq = 2452, .max_power = WLCORE_MAX_TXPWR },
5846 { .hw_value = 10, .center_freq = 2457, .max_power = WLCORE_MAX_TXPWR },
[all …]
Dscan.c204 channels[j].tx_power_att = req_channels[i]->max_power; in wlcore_scan_get_channels()
229 req_channels[i]->max_power, in wlcore_scan_get_channels()
/linux-6.1.9/drivers/net/wireless/ath/carl9170/
Dphy.c1298 u8 max_power; in carl9170_calc_ctl() member
1378 modes[i].max_power = in carl9170_calc_ctl()
1397 modes[i].max_power = AR5416_MAX_RATE_POWER; in carl9170_calc_ctl()
1399 if (modes[k].max_power != in carl9170_calc_ctl()
1401 modes[i].max_power = modes[k].max_power; in carl9170_calc_ctl()
1410 modes[i].max_power); in carl9170_calc_ctl()
/linux-6.1.9/drivers/net/wireless/ath/ath9k/
Dcommon-init.c25 .max_power = 20, \
32 .max_power = 20, \
/linux-6.1.9/drivers/net/wireless/st/cw1200/
Dscan.c204 (*it)->max_power != first->max_power) in cw1200_scan_work()
246 priv->scan.output_power != first->max_power) { in cw1200_scan_work()
247 priv->scan.output_power = first->max_power; in cw1200_scan_work()
Dmain.c107 .max_power = 30, \
116 .max_power = 30, \
323 sband->channels[i].max_power = 30; in cw1200_init_common()
/linux-6.1.9/drivers/net/wireless/intel/iwlegacy/
D3945.c1523 s8 max_power; in il3945_hw_reg_get_ch_txpower_limit() local
1527 if (ch_info->tgd_data.max_power != 0) in il3945_hw_reg_get_ch_txpower_limit()
1528 max_power = in il3945_hw_reg_get_ch_txpower_limit()
1529 min(ch_info->tgd_data.max_power, in il3945_hw_reg_get_ch_txpower_limit()
1535 max_power = ch_info->eeprom.max_power_avg; in il3945_hw_reg_get_ch_txpower_limit()
1537 return min(max_power, ch_info->max_power_avg); in il3945_hw_reg_get_ch_txpower_limit()
1621 s8 max_power; in il3945_hw_reg_set_txpower() local
1640 max_power = il3945_hw_reg_get_ch_txpower_limit(ch_info); in il3945_hw_reg_set_txpower()
1641 max_power = min(power, max_power); in il3945_hw_reg_set_txpower()
1642 if (max_power != ch_info->curr_txpow) { in il3945_hw_reg_set_txpower()
[all …]
/linux-6.1.9/drivers/staging/vt6656/
Dchannel.c72 ch[i].max_power = VNT_RF_MAX_POWER; in vnt_init_bands()
/linux-6.1.9/drivers/misc/habanalabs/common/
Dsysfs.c340 hdev->max_power = value; in max_power_store()
395 static DEVICE_ATTR_RW(max_power);
482 hdev->max_power = hdev->asic_prop.max_power_default; in hl_sysfs_init()
/linux-6.1.9/include/linux/
Dmaple.h65 unsigned short max_power; member
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/
Diwl-eeprom-parse.c352 if (chan->max_power < max_txpower_avg && in iwl_eeprom_enh_txp_read_element()
354 chan->max_power = max_txpower_avg; in iwl_eeprom_enh_txp_read_element()
571 channel->max_power = in iwl_init_channel_map()
611 data->channels[i].max_power * 2); in iwl_init_channel_map()
/linux-6.1.9/drivers/net/wireless/intersil/p54/
Deeprom.c75 int max_power; member
194 dest->max_power = chan->max_power; in p54_generate_band()
266 entry->max_power = 0; in p54_update_channel_param()
379 tmp->max_power = p54_get_maxpower(priv, data); in p54_generate_channel_lists()
/linux-6.1.9/drivers/net/wireless/marvell/mwifiex/
Dsta_cmdresp.c326 int length, max_power = -1, min_power = -1; in mwifiex_get_power_level() local
342 max_power = pg->power_max; in mwifiex_get_power_level()
348 if (max_power < pg->power_max) in mwifiex_get_power_level()
349 max_power = pg->power_max; in mwifiex_get_power_level()
357 priv->max_tx_power_level = (u8) max_power; in mwifiex_get_power_level()
433 priv->max_tx_power_level = txp->max_power; in mwifiex_ret_rf_tx_power()
/linux-6.1.9/drivers/staging/vt6655/
Dchannel.c59 supported_band->channels[i].max_power = 0x3f; in vnt_init_band()
/linux-6.1.9/drivers/powercap/
Ddtpm.c292 static int get_max_power_uw(struct powercap_zone *pcz, int id, u64 *max_power) in get_max_power_uw() argument
294 *max_power = to_dtpm(pcz)->power_max; in get_max_power_uw()
/linux-6.1.9/arch/powerpc/include/asm/
Dsmu.h625 __u16 max_power; member
/linux-6.1.9/drivers/net/wireless/intel/ipw2x00/
Dlibipw_geo.c155 .max_power = 0,
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt76x2/
Dinit.c200 chan->max_power = min_t(int, chan->max_reg_power, in mt76x2_init_txpower()
/linux-6.1.9/net/wireless/
Dreg.c1825 chan->max_reg_power = chan->max_power = chan->orig_mpwr = in handle_channel_single_rule()
1861 chan->max_power = chan->max_reg_power; in handle_channel_single_rule()
1863 chan->max_power = min(chan->orig_mpwr, in handle_channel_single_rule()
1866 chan->max_power = chan->max_reg_power; in handle_channel_single_rule()
1912 chan->max_power = chan->max_reg_power; in handle_channel_adjacent_rules()
1970 chan->max_power = chan->max_reg_power; in handle_channel_adjacent_rules()
1972 chan->max_power = min(chan->orig_mpwr, in handle_channel_adjacent_rules()
1975 chan->max_power = chan->max_reg_power; in handle_channel_adjacent_rules()
2603 chan->max_reg_power = chan->max_power = in handle_channel_custom()
2613 chan->max_power = chan->max_reg_power; in handle_channel_custom()
[all …]
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/pcie/
Dtrans.c164 u8 max_power, u8 min_power) in iwl_pcie_alloc_fw_monitor_block() argument
175 for (power = max_power; power >= min_power; power--) { in iwl_pcie_alloc_fw_monitor_block()
191 if (power != max_power) in iwl_pcie_alloc_fw_monitor_block()
195 (unsigned long)BIT(max_power - 10)); in iwl_pcie_alloc_fw_monitor_block()
202 void iwl_pcie_alloc_fw_monitor(struct iwl_trans *trans, u8 max_power) in iwl_pcie_alloc_fw_monitor() argument
204 if (!max_power) { in iwl_pcie_alloc_fw_monitor()
206 max_power = 26; in iwl_pcie_alloc_fw_monitor()
208 max_power += 11; in iwl_pcie_alloc_fw_monitor()
211 if (WARN(max_power > 26, in iwl_pcie_alloc_fw_monitor()
213 max_power)) in iwl_pcie_alloc_fw_monitor()
[all …]
/linux-6.1.9/drivers/net/wireless/ti/wl12xx/
Dscan.c46 req->channels[i]->max_power); in wl1271_get_scan_channels()
62 channels[j].tx_power_att = req->channels[i]->max_power; in wl1271_get_scan_channels()
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt76x0/
Dinit.c231 chan->max_power = min_t(int, chan->max_reg_power, in mt76x0_init_txpower()

12345