/freebsd-11-stable/usr.sbin/powerd/ |
H A D | powerd.c | 90 static int read_freqs(int *numfreqs, int **freqs, int **power, 189 read_freqs(int *numfreqs, int **freqs, int **power, int minfreq, int maxfreq) argument 207 if ((*freqs = malloc(*numfreqs * sizeof(int))) == NULL) { 213 free(*freqs); 220 if (sscanf(p, "%d/%d", &(*freqs)[j], &(*power)[i]) != 2) { 222 free(*freqs); 226 if (((*freqs)[j] >= minfreq || minfreq == -1) && 227 ((*freqs)[j] <= maxfreq || maxfreq == -1)) 233 if ((*freqs = realloc(*freqs, *numfreq 272 get_freq_id(int freq, int *freqs, int numfreqs) argument 486 int freq, curfreq, initfreq, *freqs, i, j, *mwatts, numfreqs, load; local [all...] |
/freebsd-11-stable/contrib/wpa/wpa_supplicant/ |
H A D | bgscan_learn.c | 215 int *freqs = NULL, *n; local 220 if (in_array(freqs, bss->freq)) 222 n = os_realloc_array(freqs, *count + 2, sizeof(int)); 224 return freqs; 225 freqs = n; 226 freqs[*count] = bss->freq; 228 freqs[*count] = 0; 231 return freqs; 236 int *freqs, size_t count) 241 return freqs; 235 bgscan_learn_get_probe_freq(struct bgscan_learn_data *data, int *freqs, size_t count) argument 275 int *freqs = NULL; local 351 int i, j, *freqs = NULL, *n; local [all...] |
H A D | scan.c | 364 if (params->freqs == NULL && wpa_s->p2p_in_provisioning && 372 params->freqs = os_calloc(2, sizeof(int)); 373 if (params->freqs) 374 params->freqs[0] = wpa_s->go_params->freq; 379 int_array_concat(¶ms->freqs, 381 if (params->freqs) 382 int_array_sort_unique(params->freqs); 387 if (params->freqs == NULL && wpa_s->p2p_in_invitation) { 396 params->freqs = os_calloc(2, sizeof(int)); 397 if (params->freqs) [all...] |
H A D | interworking.h | 27 int *freqs);
|
H A D | rrm.c | 470 int *freqs) 477 freqs[i] = ieee80211_chan_to_freq(NULL, op_class, primary_chan); 481 if (freqs[i] < 0 && 483 freqs[i] = 5000 + 5 * primary_chan; 484 if (freqs[i] < 0) { 500 int *freqs, *next_freq; local 515 freqs = os_calloc(num_chans * num_primary_channels + 1, sizeof(*freqs)); 516 if (!freqs) { 518 "Beacon Report: Failed to allocate freqs arra 469 wpas_add_channel(u8 op_class, u8 chan, u8 num_primary_channels, int *freqs) argument 575 int *freqs = NULL, *new_freqs; local 636 int *freqs = NULL, *ext_freqs = NULL; local [all...] |
H A D | p2p_supplicant.c | 156 struct wpa_used_freq_data *freqs, 162 struct wpa_used_freq_data *freqs, unsigned int num, 173 int *freqs; local 176 freqs = os_calloc(wpa_s->num_multichan_concurrent, sizeof(int)); 177 if (!freqs) 180 num = get_shared_radio_freqs(wpa_s, freqs, 182 os_free(freqs); 199 struct wpa_used_freq_data *freqs; local 202 freqs = os_calloc(wpa_s->num_multichan_concurrent, 204 if (!freqs) 2869 wpas_p2p_pick_best_used_freq(struct wpa_supplicant *wpa_s, struct wpa_used_freq_data *freqs, unsigned int num) argument 2914 struct wpa_used_freq_data *freqs; local 4805 struct wpa_used_freq_data *freqs; local 5102 int freqs[2] = { 0, 0 }; local 5316 struct wpa_used_freq_data *freqs; local 5965 struct wpa_used_freq_data *freqs; local 7765 struct wpa_used_freq_data *freqs = NULL; local 9064 wpas_p2p_optimize_listen_channel(struct wpa_supplicant *wpa_s, struct wpa_used_freq_data *freqs, unsigned int num) argument 9288 struct wpa_used_freq_data *freqs = NULL; local 9316 wpas_p2p_consider_moving_one_go(struct wpa_supplicant *wpa_s, struct wpa_used_freq_data *freqs, unsigned int num) argument 9431 wpas_p2p_consider_moving_gos(struct wpa_supplicant *wpa_s, struct wpa_used_freq_data *freqs, unsigned int num, enum wpas_p2p_channel_update_trig trig) argument [all...] |
H A D | config.c | 1333 int *freqs; local 1339 freqs = os_calloc(len + 1, sizeof(int)); 1340 if (freqs == NULL) 1350 n = os_realloc_array(freqs, len * 2 + 1, sizeof(int)); 1352 os_free(freqs); 1357 freqs = n; 1361 freqs[used] = atoi(pos); 1362 if (freqs[used] == 0) 1368 return freqs; 1376 int *freqs; local 1396 int *freqs; local 1413 wpa_config_write_freqs(const struct parse_data *data, const int *freqs) argument 4294 int *freqs; local [all...] |
H A D | wpa_priv.c | 142 int freqs[PRIVSEP_MAX_SCAN_FREQS + 1]; local 171 freqs[i] = scan->freqs[i]; 172 freqs[i] = 0; 173 params.freqs = freqs;
|
H A D | bgscan_simple.c | 43 params.freqs = data->ssid->scan_freq;
|
H A D | wnm_sta.c | 1246 int *freqs; local 1259 freqs = os_calloc(wpa_s->wnm_num_neighbor_report + 1, sizeof(int)); 1260 if (freqs == NULL) 1272 os_free(freqs); 1276 add_freq(freqs, &num_freqs, nei->freq); 1280 os_free(freqs); 1287 wpa_s->next_scan_freqs = freqs;
|
H A D | wpa_supplicant.c | 3755 * Don't optimize next scan freqs since a new ESS has been 5061 unsigned int wpas_get_bands(struct wpa_supplicant *wpa_s, const int *freqs) argument 5066 if (freqs) { 5067 /* freqs are specified for the radio work */ 5068 for (i = 0; freqs[i]; i++) 5069 band |= wpas_freq_to_band(freqs[i]); 5072 * freqs are not specified, implies all 5073 * the supported freqs by HW 5466 ctx)->freqs); 6643 void add_freq(int *freqs, in argument 6661 int *freqs; local 6695 int *freqs = NULL; local [all...] |
H A D | wpa_supplicant_i.h | 372 unsigned int wpas_get_bands(struct wpa_supplicant *wpa_s, const int *freqs); 1361 void add_freq(int *freqs, int *num_freqs, int freq);
|
H A D | sme.c | 2145 params->freqs = os_zalloc(sizeof(int)); 2187 params->freqs = os_calloc(mode->num_channels + 1, sizeof(int)); 2188 if (params->freqs == NULL) 2198 params->freqs[count++] = freq; 2222 os_free(params.freqs);
|
H A D | ctrl_iface.c | 275 int *freqs = NULL; local 285 freqs = freq_range_to_channel_list(wpa_s, 288 wpa_s->manual_sched_scan_freqs = freqs; 3208 int *freqs = freq_range_to_channel_list(wpa_s, pos + 6); local 3209 if (freqs) { 3211 wpa_s->select_network_scan_freqs = freqs; 7008 int *freqs = NULL; local 7033 int_array_add_unique(&freqs, freq); 7038 return freqs; 7047 int *freqs local [all...] |
/freebsd-11-stable/contrib/wpa/src/common/ |
H A D | privsep_commands.h | 40 u16 freqs[PRIVSEP_MAX_SCAN_FREQS]; member in struct:privsep_cmd_scan
|
/freebsd-11-stable/contrib/wpa/src/drivers/ |
H A D | driver_nl80211_scan.c | 220 if (params->freqs) { 221 struct nlattr *freqs; local 222 freqs = nla_nest_start(msg, NL80211_ATTR_SCAN_FREQUENCIES); 223 if (freqs == NULL) 225 for (i = 0; params->freqs[i]; i++) { 227 "MHz", params->freqs[i]); 228 if (nla_put_u32(msg, i + 1, params->freqs[i])) 231 nla_nest_end(msg, freqs); 1119 if (params->freqs) { 1120 struct nlattr *freqs; local [all...] |
H A D | driver_privsep.c | 120 params->freqs && params->freqs[i]; i++) 121 scan.freqs[i] = params->freqs[i];
|
H A D | driver_nl80211_event.c | 1140 int freqs[MAX_REPORT_FREQS]; local 1180 freqs[num_freqs] = nla_get_u32(nl); 1182 freqs[num_freqs]); 1189 info->freqs = freqs; 1958 int freqs[MAX_REPORT_FREQS]; local 1993 freqs[num_freqs] = nla_get_u32(nl); 1995 freqs[num_freqs]); 2003 info->freqs = freqs; [all...] |
H A D | driver.h | 422 * freqs - Array of frequencies to scan or %NULL for all frequencies 426 int *freqs; member in struct:wpa_driver_scan_params 5315 * @freqs: Scanned frequencies in MHz (%NULL = all channels scanned) 5316 * @num_freqs: Number of entries in freqs array 5331 const int *freqs; member in struct:wpa_event_data::scan_info
|
/freebsd-11-stable/contrib/wpa/src/ap/ |
H A D | hw_features.c | 371 params->freqs = os_calloc(mode->num_channels + 1, sizeof(int)); 372 if (params->freqs == NULL) 383 params->freqs[pos++] = chan->freq; 412 params->freqs = os_calloc(mode->num_channels + 1, sizeof(int)); 413 if (params->freqs == NULL) 424 params->freqs[pos++] = chan->freq; 444 os_free(params.freqs); 493 os_free(params.freqs);
|
H A D | acs.c | 927 params.freqs = os_calloc(iface->current_mode->num_channels + 1, 928 sizeof(params.freqs[0])); 929 if (params.freqs == NULL) 932 freq = params.freqs; 954 os_free(params.freqs); 958 os_free(params.freqs);
|
/freebsd-11-stable/sys/dev/ath/ath_hal/ |
H A D | ah_regdomain.h | 162 REG_DMN_FREQ_BAND *freqs; member in struct:cmode
|
/freebsd-11-stable/sys/x86/cpufreq/ |
H A D | est.c | 907 static int est_acpi_info(device_t dev, freq_info **freqs); 908 static int est_table_info(device_t dev, uint64_t msr, freq_info **freqs); 909 static int est_msr_info(device_t dev, uint64_t msr, freq_info **freqs); 1095 est_acpi_info(device_t dev, freq_info **freqs) argument 1152 *freqs = table; 1164 est_table_info(device_t dev, uint64_t msr, freq_info **freqs) argument 1184 *freqs = p->freqtab; 1207 est_msr_info(device_t dev, uint64_t msr, freq_info **freqs) argument 1235 /* Fill out a new freq table containing just the high and low freqs. */ 1269 *freqs [all...] |
/freebsd-11-stable/contrib/wpa/wpa_supplicant/dbus/ |
H A D | dbus_new_handlers.c | 1203 int *freqs = NULL, *nfreqs; local 1244 os_free(freqs); 1258 os_free(freqs); 1267 freqs, freqs_num + FREQS_ALLOC_CHUNK, 1270 os_free(freqs); 1271 freqs = nfreqs; 1273 if (freqs == NULL) { 1278 freqs[freqs_num] = freq; 1284 nfreqs = os_realloc_array(freqs, freqs_num + 1, sizeof(int)); 1286 os_free(freqs); [all...] |
H A D | dbus_new.c | 1550 dbus_int32_t freqs[P2P_MAX_CHANNELS]; local 1551 dbus_int32_t *f_array = freqs; 1559 os_memset(freqs, 0, sizeof(freqs)); 1615 freqs[i] = res->freq_list[i];
|