/drivers/thermal/ |
D | power_allocator.c | 288 static void divvy_up_power(u32 *req_power, u32 *max_power, int num_actors, in divvy_up_power() argument 309 if (granted_power[i] > max_power[i]) { in divvy_up_power() 310 extra_power += granted_power[i] - max_power[i]; in divvy_up_power() 311 granted_power[i] = max_power[i]; in divvy_up_power() 314 extra_actor_power[i] = max_power[i] - granted_power[i]; in divvy_up_power() 337 u32 *req_power, *max_power, *granted_power, *extra_actor_power; in allocate_power() local 368 BUILD_BUG_ON(sizeof(*req_power) != sizeof(*max_power)); in allocate_power() 378 max_power = &req_power[num_actors]; in allocate_power() 408 if (power_actor_get_max_power(cdev, tz, &max_power[i])) in allocate_power() 412 max_allocatable_power += max_power[i]; in allocate_power() [all …]
|
/drivers/net/wireless/ti/wlcore/ |
D | main.c | 5902 { .hw_value = 1, .center_freq = 2412, .max_power = WLCORE_MAX_TXPWR }, 5903 { .hw_value = 2, .center_freq = 2417, .max_power = WLCORE_MAX_TXPWR }, 5904 { .hw_value = 3, .center_freq = 2422, .max_power = WLCORE_MAX_TXPWR }, 5905 { .hw_value = 4, .center_freq = 2427, .max_power = WLCORE_MAX_TXPWR }, 5906 { .hw_value = 5, .center_freq = 2432, .max_power = WLCORE_MAX_TXPWR }, 5907 { .hw_value = 6, .center_freq = 2437, .max_power = WLCORE_MAX_TXPWR }, 5908 { .hw_value = 7, .center_freq = 2442, .max_power = WLCORE_MAX_TXPWR }, 5909 { .hw_value = 8, .center_freq = 2447, .max_power = WLCORE_MAX_TXPWR }, 5910 { .hw_value = 9, .center_freq = 2452, .max_power = WLCORE_MAX_TXPWR }, 5911 { .hw_value = 10, .center_freq = 2457, .max_power = WLCORE_MAX_TXPWR }, [all …]
|
D | scan.c | 206 channels[j].tx_power_att = req_channels[i]->max_power; in wlcore_scan_get_channels() 231 req_channels[i]->max_power, in wlcore_scan_get_channels()
|
/drivers/net/wireless/ath/carl9170/ |
D | phy.c | 1298 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()
|
/drivers/staging/vt6656/ |
D | channel.c | 142 ch[i].max_power = VNT_RF_MAX_POWER; in vnt_init_bands() 156 ch[i].max_power = VNT_RF_MAX_POWER; in vnt_init_bands()
|
/drivers/net/wireless/st/cw1200/ |
D | scan.c | 208 (*it)->max_power != first->max_power) in cw1200_scan_work() 250 priv->scan.output_power != first->max_power) { in cw1200_scan_work() 251 priv->scan.output_power = first->max_power; in cw1200_scan_work()
|
D | main.c | 107 .max_power = 30, \ 116 .max_power = 30, \ 323 sband->channels[i].max_power = 30; in cw1200_init_common()
|
/drivers/net/wireless/intel/iwlegacy/ |
D | 3945.c | 1523 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 …]
|
/drivers/staging/vt6655/ |
D | channel.c | 130 ch[i].max_power = 0x3f; in vnt_init_bands() 145 ch[i].max_power = 0x3f; in vnt_init_bands()
|
/drivers/net/wireless/ath/ath9k/ |
D | common-init.c | 25 .max_power = 20, \ 32 .max_power = 20, \
|
D | xmit.c | 1133 u8 max_power; in ath_get_rate_txpower() local 1182 max_power = min_t(u8, ah->tx_power[rateidx], txpower); in ath_get_rate_txpower() 1188 if (!max_power && !AR_SREV_9280_20_OR_LATER(ah)) in ath_get_rate_txpower() 1189 max_power = 1; in ath_get_rate_txpower() 1192 max_power = min_t(u8, ah->tx_power_stbc[rateidx], in ath_get_rate_txpower() 1195 max_power = min_t(u8, ah->tx_power[rateidx], in ath_get_rate_txpower() 1198 max_power = ah->paprd_training_power; in ath_get_rate_txpower() 1201 return max_power; in ath_get_rate_txpower()
|
/drivers/misc/habanalabs/ |
D | sysfs.c | 309 hdev->max_power = value; in max_power_store() 352 static DEVICE_ATTR_RW(max_power); 410 hdev->max_power = hdev->asic_prop.max_power_default; in hl_sysfs_init()
|
/drivers/net/wireless/marvell/mwifiex/ |
D | sta_cmdresp.c | 337 int length, max_power = -1, min_power = -1; in mwifiex_get_power_level() local 353 max_power = pg->power_max; in mwifiex_get_power_level() 359 if (max_power < pg->power_max) in mwifiex_get_power_level() 360 max_power = pg->power_max; in mwifiex_get_power_level() 368 priv->max_tx_power_level = (u8) max_power; in mwifiex_get_power_level() 444 priv->max_tx_power_level = txp->max_power; in mwifiex_ret_rf_tx_power()
|
/drivers/net/wireless/intersil/p54/ |
D | eeprom.c | 75 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()
|
/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-eeprom-parse.c | 406 if (chan->max_power < max_txpower_avg && in iwl_eeprom_enh_txp_read_element() 408 chan->max_power = max_txpower_avg; in iwl_eeprom_enh_txp_read_element() 625 channel->max_power = in iwl_init_channel_map() 665 data->channels[i].max_power * 2); in iwl_init_channel_map()
|
/drivers/net/wireless/mediatek/mt76/mt76x2/ |
D | init.c | 171 chan->max_power = min_t(int, chan->max_reg_power, in mt76x2_init_txpower()
|
/drivers/net/wireless/intel/iwlwifi/pcie/ |
D | trans.c | 207 u8 max_power, u8 min_power) in iwl_pcie_alloc_fw_monitor_block() argument 214 for (power = max_power; power >= min_power; power--) { in iwl_pcie_alloc_fw_monitor_block() 230 if (power != max_power) in iwl_pcie_alloc_fw_monitor_block() 234 (unsigned long)BIT(max_power - 10)); in iwl_pcie_alloc_fw_monitor_block() 242 void iwl_pcie_alloc_fw_monitor(struct iwl_trans *trans, u8 max_power) in iwl_pcie_alloc_fw_monitor() argument 244 if (!max_power) { in iwl_pcie_alloc_fw_monitor() 246 max_power = 26; in iwl_pcie_alloc_fw_monitor() 248 max_power += 11; in iwl_pcie_alloc_fw_monitor() 251 if (WARN(max_power > 26, in iwl_pcie_alloc_fw_monitor() 253 max_power)) in iwl_pcie_alloc_fw_monitor() [all …]
|
/drivers/net/wireless/intel/ipw2x00/ |
D | libipw_geo.c | 155 .max_power = 0,
|
/drivers/net/wireless/ti/wl12xx/ |
D | scan.c | 46 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()
|
/drivers/net/wireless/marvell/libertas/ |
D | cmd.c | 753 max_pwr = ch->max_power; in lbs_set_11d_domain_info() 759 (ch->max_power == max_pwr)) { in lbs_set_11d_domain_info() 771 t->chans.max_power = max_pwr; in lbs_set_11d_domain_info() 784 t->chans.max_power = max_pwr; in lbs_set_11d_domain_info()
|
/drivers/net/wireless/ath/wcn36xx/ |
D | wcn36xx.h | 91 #define WCN36XX_MAX_POWER(__wcn) (__wcn->hw->conf.chandef.chan->max_power)
|
/drivers/staging/wilc1000/ |
D | wilc_wfi_netdevice.h | 90 .max_power = 30, \
|
/drivers/net/wireless/ |
D | virt_wifi.c | 31 .max_power = 20, 70 .max_power = 20,
|
/drivers/power/supply/ |
D | cros_usbpd-charger.c | 236 port->psy_power_max = resp.max_power; in cros_usbpd_charger_get_power_info() 298 resp.meas.current_lim, resp.max_power); in cros_usbpd_charger_get_power_info()
|
/drivers/hid/ |
D | hid-cp2112.c | 87 u8 max_power; /* Power requested in 2mA units */ member 914 CP2112_CONFIG_ATTR(max_power, ({ 920 cfg.max_power = (mA + 1) / 2; 922 }), "%u mA\n", cfg.max_power * 2);
|