/freebsd-current/usr.sbin/powerd/ |
H A D | powerd.c | 87 static int read_freqs(int *numfreqs, int **freqs, int **power, 192 read_freqs(int *numfreqs, int **freqs, int **power, int minfreq, int maxfreq) argument 212 if ((*freqs = malloc(*numfreqs * sizeof(int))) == NULL) { 218 free(*freqs); 225 if (sscanf(p, "%d/%d", &(*freqs)[j], &(*power)[i]) != 2) { 227 free(*freqs); 231 if (((*freqs)[j] >= minfreq || minfreq == -1) && 232 ((*freqs)[j] <= maxfreq || maxfreq == -1)) 238 if ((*freqs = realloc(*freqs, *numfreq 277 get_freq_id(int freq, int *freqs, int numfreqs) argument 491 int freq, curfreq, initfreq, *freqs, i, j, *mwatts, numfreqs, load; local [all...] |
/freebsd-current/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 | 422 if (params->freqs == NULL && wpa_s->p2p_in_provisioning && 430 params->freqs = os_calloc(2, sizeof(int)); 431 if (params->freqs) 432 params->freqs[0] = wpa_s->go_params->freq; 437 int_array_concat(¶ms->freqs, 439 if (params->freqs) 440 int_array_sort_unique(params->freqs); 445 if (params->freqs == NULL && wpa_s->p2p_in_invitation) { 454 params->freqs = os_calloc(2, sizeof(int)); 455 if (params->freqs) 717 int *freqs, i; local [all...] |
H A D | interworking.h | 27 int *freqs);
|
H A D | rrm.c | 477 int *freqs) 484 freqs[i] = ieee80211_chan_to_freq(NULL, op_class, primary_chan); 488 if (freqs[i] < 0 && 490 freqs[i] = 5000 + 5 * primary_chan; 491 if (freqs[i] < 0) { 507 int *freqs, *next_freq; local 522 freqs = os_calloc(num_chans * num_primary_channels + 1, sizeof(*freqs)); 523 if (!freqs) { 525 "Beacon Report: Failed to allocate freqs arra 476 wpas_add_channel(u8 op_class, u8 chan, u8 num_primary_channels, int *freqs) argument 592 int *freqs = NULL, *new_freqs; local 654 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, 184 int *freqs; local 187 freqs = os_calloc(wpa_s->num_multichan_concurrent, sizeof(int)); 188 if (!freqs) 191 num = get_shared_radio_freqs(wpa_s, freqs, 193 os_free(freqs); 210 struct wpa_used_freq_data *freqs; local 213 freqs = os_calloc(wpa_s->num_multichan_concurrent, 215 if (!freqs) 3033 wpas_p2p_pick_best_used_freq(struct wpa_supplicant *wpa_s, struct wpa_used_freq_data *freqs, unsigned int num) argument 3078 struct wpa_used_freq_data *freqs; local 5162 struct wpa_used_freq_data *freqs; local 5461 int freqs[2] = { 0, 0 }; local 5685 struct wpa_used_freq_data *freqs; local 6258 const int freqs[] = { local 6413 struct wpa_used_freq_data *freqs; local 8271 struct wpa_used_freq_data *freqs = NULL; local 9575 wpas_p2p_optimize_listen_channel(struct wpa_supplicant *wpa_s, struct wpa_used_freq_data *freqs, unsigned int num) argument 9815 struct wpa_used_freq_data *freqs = NULL; local 9843 wpas_p2p_consider_moving_one_go(struct wpa_supplicant *wpa_s, struct wpa_used_freq_data *freqs, unsigned int num) argument 9958 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 | 1382 int *freqs; local 1388 freqs = os_calloc(len + 1, sizeof(int)); 1389 if (freqs == NULL) 1399 n = os_realloc_array(freqs, len * 2 + 1, sizeof(int)); 1401 os_free(freqs); 1406 freqs = n; 1410 freqs[used] = atoi(pos); 1411 if (freqs[used] == 0) 1417 return freqs; 1425 int *freqs; local 1445 int *freqs; local 1462 wpa_config_write_freqs(const struct parse_data *data, const int *freqs) argument 4629 int *freqs; local 4649 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 | 1274 int *freqs; local 1287 freqs = os_calloc(wpa_s->wnm_num_neighbor_report + 1, sizeof(int)); 1288 if (freqs == NULL) 1300 os_free(freqs); 1304 add_freq(freqs, &num_freqs, nei->freq); 1308 os_free(freqs); 1315 wpa_s->next_scan_freqs = freqs;
|
H A D | wpa_supplicant.c | 4490 * Don't optimize next scan freqs since a new ESS has been 5981 unsigned int wpas_get_bands(struct wpa_supplicant *wpa_s, const int *freqs) argument 5986 if (freqs) { 5987 /* freqs are specified for the radio work */ 5988 for (i = 0; freqs[i]; i++) 5989 band |= wpas_freq_to_band(freqs[i]); 5992 * freqs are not specified, implies all 5993 * the supported freqs by HW 6390 ctx)->freqs); 7599 void add_freq(int *freqs, in argument 7617 int *freqs; local 7651 int *freqs = NULL; local [all...] |
H A D | wpa_supplicant_i.h | 399 unsigned int wpas_get_bands(struct wpa_supplicant *wpa_s, const int *freqs); 1640 void add_freq(int *freqs, int *num_freqs, int freq);
|
/freebsd-current/sys/contrib/zstd/lib/dictBuilder/ |
H A D | fastcover.c | 135 U32 *freqs; member in struct:__anon151 157 U32 *freqs, U32 begin, U32 end, 185 activeSegment.score += freqs[idx]; 197 activeSegment.score -= freqs[delIndex]; 221 freqs[i] = 0; 272 free(ctx->freqs); 273 ctx->freqs = NULL; 284 FASTCOVER_computeFrequency(U32* freqs, const FASTCOVER_ctx_t* ctx) argument 298 freqs[dmerIndex]++; 382 ctx->freqs 156 FASTCOVER_selectSegment(const FASTCOVER_ctx_t *ctx, U32 *freqs, U32 begin, U32 end, ZDICT_cover_params_t parameters, U16* segmentFreqs) argument 400 FASTCOVER_buildDictionary(const FASTCOVER_ctx_t* ctx, U32* freqs, void* dictBuffer, size_t dictBufferCapacity, ZDICT_cover_params_t parameters, U16* segmentFreqs) argument 486 U32* freqs = (U32*) malloc(((U64)1 << ctx->f) * sizeof(U32)); local [all...] |
H A D | cover.c | 229 U32 *freqs; member in struct:__anon144 413 static COVER_segment_t COVER_selectSegment(const COVER_ctx_t *ctx, U32 *freqs, argument 443 activeSegment.score += freqs[newDmer]; 458 activeSegment.score -= freqs[delDmer]; 473 U32 freq = freqs[ctx->dmerAt[pos]]; 486 freqs[ctx->dmerAt[pos]] = 0; 528 if (ctx->freqs) { 529 free(ctx->freqs); 530 ctx->freqs = NULL; 599 ctx->freqs 683 COVER_buildDictionary(const COVER_ctx_t *ctx, U32 *freqs, COVER_map_t *activeDmers, void *dictBuffer, size_t dictBufferCapacity, ZDICT_cover_params_t parameters) argument 1085 U32* const freqs = (U32*)malloc(ctx->suffixSize * sizeof(U32)); local [all...] |
/freebsd-current/contrib/wpa/src/common/ |
H A D | privsep_commands.h | 40 u16 freqs[PRIVSEP_MAX_SCAN_FREQS]; member in struct:privsep_cmd_scan
|
H A D | dpp.c | 464 static int freq_included(const unsigned int freqs[], unsigned int num, argument 468 if (freqs[--num] == freq) 475 static void freq_to_start(unsigned int freqs[], unsigned int num, argument 481 if (freqs[i] == freq) 486 os_memmove(&freqs[1], &freqs[0], i * sizeof(freqs[0])); 487 freqs[0] = freq; 560 char freqs[DPP_BOOTSTRAP_MAX_FREQ * 6 + 10], *pos, *end; local 588 pos = freqs; [all...] |
/freebsd-current/contrib/wpa/src/ap/ |
H A D | acs.c | 1082 params.freqs = os_calloc(num_channels + 1, sizeof(params.freqs[0])); 1083 if (params.freqs == NULL) 1086 freq = params.freqs; 1096 if (params.freqs == freq) { 1098 os_free(params.freqs); 1111 os_free(params.freqs); 1115 os_free(params.freqs);
|
H A D | hw_features.c | 411 params->freqs = os_calloc(mode->num_channels + 1, sizeof(int)); 412 if (params->freqs == NULL) 423 params->freqs[pos++] = chan->freq; 452 params->freqs = os_calloc(mode->num_channels + 1, sizeof(int)); 453 if (params->freqs == NULL) 464 params->freqs[pos++] = chan->freq; 484 os_free(params.freqs); 533 os_free(params.freqs);
|
/freebsd-current/contrib/wpa/src/drivers/ |
H A D | driver_nl80211_scan.c | 218 if (params->freqs) { 219 struct nlattr *freqs; local 220 freqs = nla_nest_start(msg, NL80211_ATTR_SCAN_FREQUENCIES); 221 if (freqs == NULL) 223 for (i = 0; params->freqs[i]; i++) { 225 "MHz", params->freqs[i]); 226 if (nla_put_u32(msg, i + 1, params->freqs[i])) 229 nla_nest_end(msg, freqs); 1137 if (params->freqs) { 1138 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 | 1333 int freqs[MAX_REPORT_FREQS]; local 1373 freqs[num_freqs] = nla_get_u32(nl); 1375 freqs[num_freqs]); 1382 info->freqs = freqs; 2251 int freqs[MAX_REPORT_FREQS]; local 2286 freqs[num_freqs] = nla_get_u32(nl); 2288 freqs[num_freqs]); 2296 info->freqs = freqs; [all...] |
H A D | driver_nl80211.c | 3892 int freqs[2]; local 3900 freqs[0] = params->freq; 3901 freqs[1] = 0; 3902 scan.freqs = freqs; 11012 u32 *freqs; local 11017 freqs = os_malloc(sizeof(u32) * len); 11018 if (!freqs) 11021 freqs[i] = freq_list[i]; 11023 sizeof(u32) * len, freqs); 11151 u32 *freqs; local [all...] |
/freebsd-current/sys/dev/ath/ath_hal/ |
H A D | ah_regdomain.h | 162 REG_DMN_FREQ_BAND *freqs; member in struct:cmode
|
/freebsd-current/sys/x86/cpufreq/ |
H A D | est.c | 859 static int est_acpi_info(device_t dev, freq_info **freqs, 861 static int est_table_info(device_t dev, uint64_t msr, freq_info **freqs, 863 static int est_msr_info(device_t dev, uint64_t msr, freq_info **freqs, 1058 est_acpi_info(device_t dev, freq_info **freqs, size_t *freqslen) argument 1112 *freqs = table; 1125 est_table_info(device_t dev, uint64_t msr, freq_info **freqs, size_t *freqslen) argument 1145 *freqs = p->freqtab; 1169 est_msr_info(device_t dev, uint64_t msr, freq_info **freqs, size_t *freqslen) argument 1197 /* Fill out a new freq table containing just the high and low freqs. */ 1231 *freqs [all...] |
/freebsd-current/contrib/wpa/wpa_supplicant/dbus/ |
H A D | dbus_new_handlers.c | 1350 int *freqs = NULL, *nfreqs; local 1391 os_free(freqs); 1405 os_free(freqs); 1414 freqs, freqs_num + FREQS_ALLOC_CHUNK, 1417 os_free(freqs); 1418 freqs = nfreqs; 1420 if (freqs == NULL) { 1425 freqs[freqs_num] = freq; 1431 nfreqs = os_realloc_array(freqs, freqs_num + 1, sizeof(int)); 1433 os_free(freqs); [all...] |