Home
last modified time | relevance | path

Searched full:freqs (Results 1 – 25 of 53) sorted by relevance

123

/freebsd/contrib/wpa/wpa_supplicant/
H A Dbgscan_learn.c215 int *freqs = NULL, *n; in bgscan_learn_get_freqs() local
220 if (in_array(freqs, bss->freq)) in bgscan_learn_get_freqs()
222 n = os_realloc_array(freqs, *count + 2, sizeof(int)); in bgscan_learn_get_freqs()
224 return freqs; in bgscan_learn_get_freqs()
225 freqs = n; in bgscan_learn_get_freqs()
226 freqs[*count] = bss->freq; in bgscan_learn_get_freqs()
228 freqs[*count] = 0; in bgscan_learn_get_freqs()
231 return freqs; in bgscan_learn_get_freqs()
236 int *freqs, size_t count) in bgscan_learn_get_probe_freq() argument
241 return freqs; in bgscan_learn_get_probe_freq()
[all …]
H A Dscan.c323 wpa_s->last_scan_all_chan = !params->freqs; in wpa_supplicant_trigger_scan()
438 if (params->freqs == NULL && wpa_s->p2p_in_provisioning && in wpa_supplicant_optimize_freqs()
446 params->freqs = os_calloc(2, sizeof(int)); in wpa_supplicant_optimize_freqs()
447 if (params->freqs) in wpa_supplicant_optimize_freqs()
448 params->freqs[0] = wpa_s->go_params->freq; in wpa_supplicant_optimize_freqs()
453 int_array_concat(&params->freqs, in wpa_supplicant_optimize_freqs()
455 if (params->freqs) in wpa_supplicant_optimize_freqs()
456 int_array_sort_unique(params->freqs); in wpa_supplicant_optimize_freqs()
461 if (params->freqs == NULL && wpa_s->p2p_in_invitation) { in wpa_supplicant_optimize_freqs()
484 params->freqs = os_calloc(2, sizeof(int)); in wpa_supplicant_optimize_freqs()
[all …]
H A Drrm.c477 int *freqs) in wpas_add_channel() argument
484 freqs[i] = ieee80211_chan_to_freq(NULL, op_class, primary_chan); in wpas_add_channel()
488 if (freqs[i] < 0 && in wpas_add_channel()
490 freqs[i] = 5000 + 5 * primary_chan; in wpas_add_channel()
491 if (freqs[i] < 0) { in wpas_add_channel()
507 int *freqs, *next_freq; in wpas_add_channels() local
524 freqs = os_calloc(num_chans * num_primary_channels + 1, sizeof(*freqs)); in wpas_add_channels()
525 if (!freqs) { in wpas_add_channels()
527 "Beacon Report: Failed to allocate freqs array"); in wpas_add_channels()
531 next_freq = freqs; in wpas_add_channels()
[all …]
H A Dp2p_supplicant.c156 struct wpa_used_freq_data *freqs,
162 struct wpa_used_freq_data *freqs, unsigned int num,
186 int *freqs; in wpas_p2p_num_unused_channels() local
189 freqs = os_calloc(wpa_s->num_multichan_concurrent, sizeof(int)); in wpas_p2p_num_unused_channels()
190 if (!freqs) in wpas_p2p_num_unused_channels()
193 num = get_shared_radio_freqs(wpa_s, freqs, in wpas_p2p_num_unused_channels()
195 os_free(freqs); in wpas_p2p_num_unused_channels()
212 struct wpa_used_freq_data *freqs; in wpas_p2p_valid_oper_freqs() local
215 freqs = os_calloc(wpa_s->num_multichan_concurrent, in wpas_p2p_valid_oper_freqs()
217 if (!freqs) in wpas_p2p_valid_oper_freqs()
[all …]
H A Dconfig.c1438 int *freqs; in wpa_config_parse_int_array() local
1444 freqs = os_calloc(len + 1, sizeof(int)); in wpa_config_parse_int_array()
1445 if (freqs == NULL) in wpa_config_parse_int_array()
1455 n = os_realloc_array(freqs, len * 2 + 1, sizeof(int)); in wpa_config_parse_int_array()
1457 os_free(freqs); in wpa_config_parse_int_array()
1462 freqs = n; in wpa_config_parse_int_array()
1466 freqs[used] = atoi(pos); in wpa_config_parse_int_array()
1467 if (freqs[used] == 0) in wpa_config_parse_int_array()
1473 return freqs; in wpa_config_parse_int_array()
1481 int *freqs; in wpa_config_parse_scan_freq() local
[all …]
H A Dnan_usd.c487 int *freqs = NULL; in wpas_nan_usd_all_freqs() local
508 int_array_add_unique(&freqs, chan->freq); in wpas_nan_usd_all_freqs()
512 return freqs; in wpas_nan_usd_all_freqs()
H A Dinterworking.h27 int *freqs);
H A Dwpa_priv.c142 int freqs[PRIVSEP_MAX_SCAN_FREQS + 1]; in wpa_priv_cmd_scan() local
171 freqs[i] = scan->freqs[i]; in wpa_priv_cmd_scan()
172 freqs[i] = 0; in wpa_priv_cmd_scan()
173 params.freqs = freqs; in wpa_priv_cmd_scan()
H A Dwnm_sta.c1330 int *freqs; in wnm_set_scan_freqs() local
1343 freqs = os_calloc(wpa_s->wnm_num_neighbor_report + 1, sizeof(int)); in wnm_set_scan_freqs()
1344 if (freqs == NULL) in wnm_set_scan_freqs()
1360 os_free(freqs); in wnm_set_scan_freqs()
1364 add_freq(freqs, &num_freqs, nei->freq); in wnm_set_scan_freqs()
1368 os_free(freqs); in wnm_set_scan_freqs()
1375 wpa_s->next_scan_freqs = freqs; in wnm_set_scan_freqs()
/freebsd/usr.sbin/powerd/
H A Dpowerd.c96 static int read_freqs(int *numfreqs, int **freqs, int **power,
205 read_freqs(int *numfreqs, int **freqs, int **power, int minfreq, int maxfreq) in read_freqs() argument
225 if ((*freqs = malloc(*numfreqs * sizeof(int))) == NULL) { in read_freqs()
231 free(*freqs); in read_freqs()
238 if (sscanf(p, "%d/%d", &(*freqs)[j], &(*power)[i]) != 2) { in read_freqs()
240 free(*freqs); in read_freqs()
244 if (((*freqs)[j] >= minfreq || minfreq == -1) && in read_freqs()
245 ((*freqs)[j] <= maxfreq || maxfreq == -1)) in read_freqs()
251 if ((*freqs = realloc(*freqs, *numfreq in read_freqs()
290 get_freq_id(int freq,int * freqs,int numfreqs) get_freq_id() argument
587 int freq, curfreq, initfreq, *freqs, i, j, *mwatts, numfreqs, load; global() local
[all...]
/freebsd/sys/contrib/zstd/lib/dictBuilder/
H A Dfastcover.c135 U32 *freqs; member
157 U32 *freqs, U32 begin, U32 end, in FASTCOVER_selectSegment() argument
185 activeSegment.score += freqs[idx]; in FASTCOVER_selectSegment()
197 activeSegment.score -= freqs[delIndex]; in FASTCOVER_selectSegment()
221 freqs[i] = 0; in FASTCOVER_selectSegment()
272 free(ctx->freqs); in FASTCOVER_ctx_destroy()
273 ctx->freqs = NULL; in FASTCOVER_ctx_destroy()
284 FASTCOVER_computeFrequency(U32* freqs, const FASTCOVER_ctx_t* ctx) in FASTCOVER_computeFrequency() argument
298 freqs[dmerIndex]++; in FASTCOVER_computeFrequency()
382 ctx->freqs = (U32*)calloc(((U64)1 << f), sizeof(U32)); in FASTCOVER_ctx_init()
[all …]
H A Dcover.c229 U32 *freqs; member
413 static COVER_segment_t COVER_selectSegment(const COVER_ctx_t *ctx, U32 *freqs, in COVER_selectSegment() argument
443 activeSegment.score += freqs[newDmer]; in COVER_selectSegment()
458 activeSegment.score -= freqs[delDmer]; in COVER_selectSegment()
473 U32 freq = freqs[ctx->dmerAt[pos]]; in COVER_selectSegment()
486 freqs[ctx->dmerAt[pos]] = 0; in COVER_selectSegment()
528 if (ctx->freqs) { in COVER_ctx_destroy()
529 free(ctx->freqs); in COVER_ctx_destroy()
530 ctx->freqs = NULL; in COVER_ctx_destroy()
599 ctx->freqs = NULL; in COVER_ctx_init()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DBlockFrequencyInfoImpl.cpp295 std::vector<FrequencyData>().swap(Freqs); in clear()
303 /// Releases all memory not used downstream. In particular, saves Freqs.
305 std::vector<FrequencyData> SavedFreqs(std::move(BFI.Freqs)); in cleanup()
308 BFI.Freqs = std::move(SavedFreqs); in cleanup()
502 for (size_t Index = 0; Index < BFI.Freqs.size(); ++Index) { in convertFloatingToInteger()
503 Scaled64 Scaled = BFI.Freqs[Index].Scaled * ScalingFactor; in convertFloatingToInteger()
504 BFI.Freqs[Index].Integer = std::max(UINT64_C(1), Scaled.toInt<uint64_t>()); in convertFloatingToInteger()
506 << BFI.Freqs[Index].Scaled << ", scaled = " << Scaled in convertFloatingToInteger()
507 << ", int = " << BFI.Freqs[Index].Integer << "\n"); in convertFloatingToInteger()
529 : BFI.Freqs[N.Index].Scaled; in unwrapLoop()
[all …]
/freebsd/contrib/wpa/src/drivers/
H A Ddriver_nl80211_scan.c232 if (params->freqs) { in nl80211_scan_common()
233 struct nlattr *freqs; in nl80211_scan_common() local
234 freqs = nla_nest_start(msg, NL80211_ATTR_SCAN_FREQUENCIES); in nl80211_scan_common()
235 if (freqs == NULL) in nl80211_scan_common()
237 for (i = 0; params->freqs[i]; i++) { in nl80211_scan_common()
239 "MHz", params->freqs[i]); in nl80211_scan_common()
240 if (nla_put_u32(msg, i + 1, params->freqs[i])) in nl80211_scan_common()
243 nla_nest_end(msg, freqs); in nl80211_scan_common()
1186 if (params->freqs) { in wpa_driver_nl80211_vendor_scan()
1187 struct nlattr *freqs; in wpa_driver_nl80211_vendor_scan() local
[all …]
H A Ddriver_privsep.c120 params->freqs && params->freqs[i]; i++) in wpa_driver_privsep_scan()
121 scan.freqs[i] = params->freqs[i]; in wpa_driver_privsep_scan()
/freebsd/usr.bin/caesar/
H A Dcaesar.c101 * now "dot" the freqs with the observed letter freqs in main()
/freebsd/contrib/wpa/src/ap/
H A Dhw_features.c438 params->freqs = os_calloc(mode->num_channels + 1, sizeof(int)); in ieee80211n_scan_channels_2g4()
439 if (params->freqs == NULL) in ieee80211n_scan_channels_2g4()
450 params->freqs[pos++] = chan->freq; in ieee80211n_scan_channels_2g4()
479 params->freqs = os_calloc(mode->num_channels + 1, sizeof(int)); in ieee80211n_scan_channels_5g()
480 if (params->freqs == NULL) in ieee80211n_scan_channels_5g()
491 params->freqs[pos++] = chan->freq; in ieee80211n_scan_channels_5g()
517 os_free(params.freqs); in ap_ht40_scan_retry()
572 os_free(params.freqs); in ieee80211n_check_40mhz()
H A Dacs.c1410 params.freqs = os_calloc(num_channels + 1, sizeof(params.freqs[0])); in acs_request_scan()
1411 if (params.freqs == NULL) in acs_request_scan()
1414 freq = params.freqs; in acs_request_scan()
1424 if (params.freqs == freq) { in acs_request_scan()
1426 os_free(params.freqs); in acs_request_scan()
1442 os_free(params.freqs); in acs_request_scan()
/freebsd/sys/x86/cpufreq/
H A Dest.c859 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,
1059 est_acpi_info(device_t dev, freq_info **freqs, size_t *freqslen) in est_acpi_info() argument
1114 *freqs = table; in est_acpi_info()
1127 est_table_info(device_t dev, uint64_t msr, freq_info **freqs, size_t *freqslen) in est_table_info() argument
1147 *freqs = p->freqtab; in est_table_info()
1171 est_msr_info(device_t dev, uint64_t msr, freq_info **freqs, size_t *freqslen) in est_msr_info() argument
1199 /* Fill out a new freq table containing just the high and low freqs. */ in est_msr_info()
1233 *freqs = fp; in est_msr_info()
/freebsd/contrib/dialog/samples/copifuncs/
H A Dcopi.ifmcfg413 # "[No]WaZOO", "[No]Freqs", "[No]Zmodem", "[No]ZedZap", "[No]Janus",
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DBlockFrequencyInfoImpl.h422 std::vector<FrequencyData> Freqs; variable
537 assert(!Freqs.empty()); in getEntryFreq()
538 return BlockFrequency(Freqs[0].Integer); in getEntryFreq()
1041 // We don't erase corresponding items from `Freqs`, `RPOT` and other to
1151 // by the size of Freqs.
1152 BlockNode NewNode(Freqs.size());
1154 Freqs.emplace_back();
1179 Freqs.resize(RPOT.size());
1413 Freqs[Node.Index].Scaled = Freq[BlockIndex[&BB]];
1415 Freqs[Node.Index].Scaled = Scaled64::getZero();
[all …]
/freebsd/contrib/wpa/src/common/
H A Dprivsep_commands.h40 u16 freqs[PRIVSEP_MAX_SCAN_FREQS]; member
/freebsd/sys/contrib/device-tree/Bindings/media/
H A Dnvidia,tegra-vde.yaml73 Should contain freqs and voltages and opp-supported-hw property,
/freebsd/sys/contrib/device-tree/Bindings/devfreq/
H A Dnvidia,tegra30-actmon.yaml63 Should contain freqs and voltages and opp-supported-hw property, which
/freebsd/contrib/wpa/wpa_supplicant/dbus/
H A Ddbus_new_handlers.c1501 int *freqs = NULL, *nfreqs; in wpas_dbus_get_scan_channels() local
1542 os_free(freqs); in wpas_dbus_get_scan_channels()
1556 os_free(freqs); in wpas_dbus_get_scan_channels()
1565 freqs, freqs_num + FREQS_ALLOC_CHUNK, in wpas_dbus_get_scan_channels()
1568 os_free(freqs); in wpas_dbus_get_scan_channels()
1569 freqs = nfreqs; in wpas_dbus_get_scan_channels()
1571 if (freqs == NULL) { in wpas_dbus_get_scan_channels()
1576 freqs[freqs_num] = freq; in wpas_dbus_get_scan_channels()
1582 nfreqs = os_realloc_array(freqs, freqs_num + 1, sizeof(int)); in wpas_dbus_get_scan_channels()
1584 os_free(freqs); in wpas_dbus_get_scan_channels()
[all …]

123