/freebsd-11.0-release/usr.sbin/powerd/ |
H A D | powerd.c | 88 static int read_freqs(int *numfreqs, int **freqs, int **power, 185 read_freqs(int *numfreqs, int **freqs, int **power, int minfreq, int maxfreq) argument 203 if ((*freqs = malloc(*numfreqs * sizeof(int))) == NULL) { 209 free(*freqs); 216 if (sscanf(p, "%d/%d", &(*freqs)[j], &(*power)[i]) != 2) { 218 free(*freqs); 222 if (((*freqs)[j] >= minfreq || minfreq == -1) && 223 ((*freqs)[j] <= maxfreq || maxfreq == -1)) 229 if ((*freqs = realloc(*freqs, *numfreq 268 get_freq_id(int freq, int *freqs, int numfreqs) argument 450 int freq, curfreq, initfreq, *freqs, i, j, *mwatts, numfreqs, load; local [all...] |
/freebsd-11.0-release/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 354 int i, j, *freqs = NULL, *n; local [all...] |
H A D | scan.c | 338 if (params->freqs == NULL && wpa_s->p2p_in_provisioning && 346 params->freqs = os_calloc(2, sizeof(int)); 347 if (params->freqs) 348 params->freqs[0] = wpa_s->go_params->freq; 353 int_array_concat(¶ms->freqs, 355 if (params->freqs) 356 int_array_sort_unique(params->freqs); 361 if (params->freqs == NULL && wpa_s->p2p_in_invitation) { 370 params->freqs = os_calloc(2, sizeof(int)); 371 if (params->freqs) [all...] |
H A D | interworking.h | 26 int *freqs);
|
H A D | p2p_supplicant.c | 145 struct wpa_used_freq_data *freqs, 151 struct wpa_used_freq_data *freqs, unsigned int num, 162 int *freqs; local 165 freqs = os_calloc(wpa_s->num_multichan_concurrent, sizeof(int)); 166 if (!freqs) 169 num = get_shared_radio_freqs(wpa_s, freqs, 171 os_free(freqs); 188 struct wpa_used_freq_data *freqs; local 191 freqs = os_calloc(wpa_s->num_multichan_concurrent, 193 if (!freqs) 2691 wpas_p2p_pick_best_used_freq(struct wpa_supplicant *wpa_s, struct wpa_used_freq_data *freqs, unsigned int num) argument 2736 struct wpa_used_freq_data *freqs; local 4429 struct wpa_used_freq_data *freqs; local 4722 int freqs[2] = { 0, 0 }; local 4916 struct wpa_used_freq_data *freqs; local 5526 struct wpa_used_freq_data *freqs; local 7151 struct wpa_used_freq_data *freqs = NULL; local 8436 wpas_p2p_optimize_listen_channel(struct wpa_supplicant *wpa_s, struct wpa_used_freq_data *freqs, unsigned int num) argument 8552 struct wpa_used_freq_data *freqs = NULL; local 8580 wpas_p2p_consider_moving_one_go(struct wpa_supplicant *wpa_s, struct wpa_used_freq_data *freqs, unsigned int num) argument 8662 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 | 1105 int *freqs; local 1111 freqs = os_calloc(len + 1, sizeof(int)); 1112 if (freqs == NULL) 1122 n = os_realloc_array(freqs, len * 2 + 1, sizeof(int)); 1124 os_free(freqs); 1129 freqs = n; 1133 freqs[used] = atoi(pos); 1134 if (freqs[used] == 0) 1140 return freqs; 1148 int *freqs; local 1168 int *freqs; local 1185 wpa_config_write_freqs(const struct parse_data *data, const int *freqs) argument 3716 int *freqs; local [all...] |
H A D | wnm_sta.c | 757 int *freqs; local 770 freqs = os_calloc(wpa_s->wnm_num_neighbor_report + 1, sizeof(int)); 771 if (freqs == NULL) 783 os_free(freqs); 787 add_freq(freqs, &num_freqs, nei->freq); 791 os_free(freqs); 798 wpa_s->next_scan_freqs = freqs;
|
H A D | bgscan_simple.c | 43 params.freqs = data->ssid->scan_freq;
|
H A D | sme.c | 1350 params->freqs = os_zalloc(sizeof(int)); 1392 params->freqs = os_calloc(mode->num_channels + 1, sizeof(int)); 1393 if (params->freqs == NULL) 1403 params->freqs[count++] = freq; 1427 os_free(params.freqs);
|
H A D | wpa_supplicant.c | 2705 * Don't optimize next scan freqs since a new ESS has been 5053 void add_freq(int *freqs, int *num_freqs, int freq) argument 5058 if (freqs[i] == freq) 5062 freqs[*num_freqs] = freq; 5071 int *freqs; local 5074 freqs = os_calloc(max_freqs + 1, sizeof(int)); 5075 if (freqs == NULL) 5086 add_freq(freqs, &num_freqs, bss->freq); 5093 os_free(freqs); 5094 freqs 5105 int *freqs = NULL; local [all...] |
H A D | wpa_supplicant_i.h | 1086 void add_freq(int *freqs, int *num_freqs, int freq);
|
H A D | ctrl_iface.c | 267 int *freqs = NULL; local 277 freqs = freq_range_to_channel_list(wpa_s, 280 wpa_s->manual_sched_scan_freqs = freqs; 2739 int *freqs = freq_range_to_channel_list(wpa_s, pos + 6); local 2740 if (freqs) { 2743 wpa_s->manual_scan_freqs = freqs; 6068 int *freqs = NULL; local 6093 int_array_add_unique(&freqs, freq); 6098 return freqs; 6107 int *freqs local [all...] |
H A D | bss.c | 742 if (bss->freq == info->freqs[i]) {
|
H A D | events.c | 649 static int freq_allowed(int *freqs, int freq) argument 653 if (freqs == NULL) 656 for (i = 0; freqs[i]; i++) 657 if (freqs[i] == freq)
|
/freebsd-11.0-release/contrib/wpa/src/ap/ |
H A D | acs.c | 886 params.freqs = os_calloc(iface->current_mode->num_channels + 1, 887 sizeof(params.freqs[0])); 888 if (params.freqs == NULL) 891 freq = params.freqs; 913 os_free(params.freqs); 917 os_free(params.freqs);
|
H A D | hw_features.c | 367 params->freqs = os_calloc(mode->num_channels + 1, sizeof(int)); 368 if (params->freqs == NULL) 379 params->freqs[pos++] = chan->freq; 408 params->freqs = os_calloc(mode->num_channels + 1, sizeof(int)); 409 if (params->freqs == NULL) 420 params->freqs[pos++] = chan->freq; 440 os_free(params.freqs); 488 os_free(params.freqs);
|
/freebsd-11.0-release/contrib/wpa/src/drivers/ |
H A D | driver_nl80211_scan.c | 144 if (params->freqs) { 145 struct nlattr *freqs; local 146 freqs = nla_nest_start(msg, NL80211_ATTR_SCAN_FREQUENCIES); 147 if (freqs == NULL) 149 for (i = 0; params->freqs[i]; i++) { 151 "MHz", params->freqs[i]); 152 if (nla_put_u32(msg, i + 1, params->freqs[i])) 155 nla_nest_end(msg, freqs);
|
H A D | driver_nl80211_event.c | 978 int freqs[MAX_REPORT_FREQS]; local 1016 freqs[num_freqs] = nla_get_u32(nl); 1018 freqs[num_freqs]); 1025 info->freqs = freqs;
|
H A D | driver.h | 324 * freqs - Array of frequencies to scan or %NULL for all frequencies 328 int *freqs; member in struct:wpa_driver_scan_params 4379 * @freqs: Scanned frequencies in MHz (%NULL = all channels scanned) 4380 * @num_freqs: Number of entries in freqs array 4387 const int *freqs; member in struct:wpa_event_data::scan_info
|
/freebsd-11.0-release/sys/dev/ath/ath_hal/ |
H A D | ah_regdomain.h | 162 REG_DMN_FREQ_BAND *freqs; member in struct:cmode
|
H A D | ah_regdomain.c | 534 fband = &cm->freqs[b];
|
/freebsd-11.0-release/contrib/wpa/wpa_supplicant/dbus/ |
H A D | dbus_new_handlers.c | 1141 int *freqs = NULL, *nfreqs; local 1182 os_free(freqs); 1196 os_free(freqs); 1205 freqs, freqs_num + FREQS_ALLOC_CHUNK, 1208 os_free(freqs); 1209 freqs = nfreqs; 1211 if (freqs == NULL) { 1216 freqs[freqs_num] = freq; 1222 nfreqs = os_realloc_array(freqs, freqs_num + 1, sizeof(int)); 1224 os_free(freqs); [all...] |
H A D | dbus_new.c | 1329 dbus_int32_t freqs[P2P_MAX_CHANNELS]; local 1330 dbus_int32_t *f_array = freqs; 1338 os_memset(freqs, 0, sizeof(freqs)); 1394 freqs[i] = res->freq_list[i];
|
/freebsd-11.0-release/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.0-release/sys/dev/usb/wlan/ |
H A D | if_run.c | 4566 const struct rt5592_freqs *freqs; local 4573 freqs = (tmp & RT5592_SEL_XTAL) ? 4577 for (i = 0; rt2860_rf2850[i].chan != chan; i++, freqs++); 4590 run_rt3070_rf_write(sc, 8, freqs->n & 0xff); 4593 rf |= ((freqs->n & 0x0100) >> 8) << 4; 4599 rf |= (freqs->k & 0x0f); 4605 rf |= ((freqs->m - 0x8) & 0x3) << 2; 4609 rf |= (((freqs->m - 0x8) & 0x4) >> 2) << 7; 4615 rf |= (freqs->r - 0x1);
|