Searched refs:freqs (Results 1 - 25 of 31) sorted by relevance

12

/freebsd-11-stable/usr.sbin/powerd/
H A Dpowerd.c90 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 Dbgscan_learn.c215 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 Dscan.c364 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(&params->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 Dinterworking.h27 int *freqs);
H A Drrm.c470 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 Dp2p_supplicant.c156 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 Dconfig.c1333 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 Dwpa_priv.c142 int freqs[PRIVSEP_MAX_SCAN_FREQS + 1]; local
171 freqs[i] = scan->freqs[i];
172 freqs[i] = 0;
173 params.freqs = freqs;
H A Dbgscan_simple.c43 params.freqs = data->ssid->scan_freq;
H A Dwnm_sta.c1246 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 Dwpa_supplicant.c3755 * 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 Dwpa_supplicant_i.h372 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 Dsme.c2145 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 Dctrl_iface.c275 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 Dprivsep_commands.h40 u16 freqs[PRIVSEP_MAX_SCAN_FREQS]; member in struct:privsep_cmd_scan
/freebsd-11-stable/contrib/wpa/src/drivers/
H A Ddriver_nl80211_scan.c220 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 Ddriver_privsep.c120 params->freqs && params->freqs[i]; i++)
121 scan.freqs[i] = params->freqs[i];
H A Ddriver_nl80211_event.c1140 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 Ddriver.h422 * 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 Dhw_features.c371 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 Dacs.c927 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 Dah_regdomain.h162 REG_DMN_FREQ_BAND *freqs; member in struct:cmode
/freebsd-11-stable/sys/x86/cpufreq/
H A Dest.c907 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 Ddbus_new_handlers.c1203 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 Ddbus_new.c1550 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];

Completed in 376 milliseconds

12