Home
last modified time | relevance | path

Searched refs:freqs (Results 1 – 25 of 58) sorted by relevance

123

/external/igt-gpu-tools/tests/i915/
Di915_pm_rps.c87 static void read_freqs(int *freqs) in read_freqs() argument
92 freqs[i] = readval(sysfs_files[i].filp); in read_freqs()
116 int freqs[NUMFREQ]; in wait_freq_settle() local
118 read_freqs(freqs); in wait_freq_settle()
119 if (freqs[CUR] >= freqs[MIN] && freqs[CUR] <= freqs[MAX]) in wait_freq_settle()
154 static void check_freq_constraints(const int *freqs) in check_freq_constraints() argument
156 igt_assert_lte(freqs[MIN], freqs[MAX]); in check_freq_constraints()
157 igt_assert_lte(freqs[CUR], freqs[MAX]); in check_freq_constraints()
158 igt_assert_lte(freqs[RPn], freqs[CUR]); in check_freq_constraints()
159 igt_assert_lte(freqs[RPn], freqs[MIN]); in check_freq_constraints()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
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 …]
Dscan.c399 if (params->freqs == NULL && wpa_s->p2p_in_provisioning && in wpa_supplicant_optimize_freqs()
407 params->freqs = os_calloc(2, sizeof(int)); in wpa_supplicant_optimize_freqs()
408 if (params->freqs) in wpa_supplicant_optimize_freqs()
409 params->freqs[0] = wpa_s->go_params->freq; in wpa_supplicant_optimize_freqs()
414 int_array_concat(&params->freqs, in wpa_supplicant_optimize_freqs()
416 if (params->freqs) in wpa_supplicant_optimize_freqs()
417 int_array_sort_unique(params->freqs); in wpa_supplicant_optimize_freqs()
422 if (params->freqs == NULL && wpa_s->p2p_in_invitation) { in wpa_supplicant_optimize_freqs()
431 params->freqs = os_calloc(2, sizeof(int)); in wpa_supplicant_optimize_freqs()
432 if (params->freqs) in wpa_supplicant_optimize_freqs()
[all …]
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
522 freqs = os_calloc(num_chans * num_primary_channels + 1, sizeof(*freqs)); in wpas_add_channels()
523 if (!freqs) { in wpas_add_channels()
529 next_freq = freqs; in wpas_add_channels()
540 os_free(freqs); in wpas_add_channels()
[all …]
Dp2p_supplicant.c156 struct wpa_used_freq_data *freqs,
162 struct wpa_used_freq_data *freqs, unsigned int num,
173 int *freqs; in wpas_p2p_num_unused_channels() local
176 freqs = os_calloc(wpa_s->num_multichan_concurrent, sizeof(int)); in wpas_p2p_num_unused_channels()
177 if (!freqs) in wpas_p2p_num_unused_channels()
180 num = get_shared_radio_freqs(wpa_s, freqs, in wpas_p2p_num_unused_channels()
182 os_free(freqs); in wpas_p2p_num_unused_channels()
199 struct wpa_used_freq_data *freqs; in wpas_p2p_valid_oper_freqs() local
202 freqs = os_calloc(wpa_s->num_multichan_concurrent, in wpas_p2p_valid_oper_freqs()
204 if (!freqs) in wpas_p2p_valid_oper_freqs()
[all …]
Dconfig.c1382 int *freqs; in wpa_config_parse_int_array() local
1388 freqs = os_calloc(len + 1, sizeof(int)); in wpa_config_parse_int_array()
1389 if (freqs == NULL) in wpa_config_parse_int_array()
1399 n = os_realloc_array(freqs, len * 2 + 1, sizeof(int)); in wpa_config_parse_int_array()
1401 os_free(freqs); in wpa_config_parse_int_array()
1406 freqs = n; in wpa_config_parse_int_array()
1410 freqs[used] = atoi(pos); in wpa_config_parse_int_array()
1411 if (freqs[used] == 0) in wpa_config_parse_int_array()
1417 return freqs; in wpa_config_parse_int_array()
1425 int *freqs; in wpa_config_parse_scan_freq() local
[all …]
/external/perfetto/test/trace_processor/parsing/
Dthread_time_in_state_event.py42 trace.add_process_stats(pid=1, freqs={1: 1, 2: 1, 9: 1, 10: 1})
43 trace.add_process_stats(pid=2, freqs={1: 1, 2: 1, 9: 1, 10: 1})
44 trace.add_process_stats(pid=3, freqs={1: 1, 2: 1, 9: 1, 10: 1})
45 trace.add_process_stats(pid=4, freqs={1: 1, 2: 1, 9: 1, 10: 1})
48 trace.add_process_stats(pid=1, freqs={1: 2, 9: 2})
53 trace.add_process_stats(pid=1, freqs={2: 11, 10: 11})
54 trace.add_process_stats(pid=2, freqs={1: 11, 9: 11})
57 trace.add_process_stats(pid=3, freqs={1: 1})
60 trace.add_process_stats(pid=4, freqs={1: 2, 9: 1})
/external/autotest/client/profilers/powertop/src/
Dcpufreqstats.c40 struct cpufreqdata freqs[16]; variable
50 memset(freqs, 0, sizeof(freqs)); in zap()
99 memcpy(&oldfreqs, &freqs, sizeof(freqs)); in do_cpufreq_stats()
104 freqs[ret].count = 0; in do_cpufreq_stats()
131 if (freqs[i].frequency && freqs[i].frequency != f) { in do_cpufreq_stats()
136 freqs[i].frequency = f; in do_cpufreq_stats()
137 freqs[i].count += count; in do_cpufreq_stats()
151 delta[ret].count = freqs[ret].count - oldfreqs[ret].count; in do_cpufreq_stats()
153 delta[ret].frequency = freqs[ret].frequency; in do_cpufreq_stats()
154 if (freqs[ret].frequency != oldfreqs[ret].frequency) in do_cpufreq_stats()
/external/zstd/lib/dictBuilder/
Dfastcover.c127 U32 *freqs; member
149 U32 *freqs, U32 begin, U32 end, in FASTCOVER_selectSegment() argument
177 activeSegment.score += freqs[idx]; in FASTCOVER_selectSegment()
189 activeSegment.score -= freqs[delIndex]; in FASTCOVER_selectSegment()
213 freqs[i] = 0; in FASTCOVER_selectSegment()
264 free(ctx->freqs); in FASTCOVER_ctx_destroy()
265 ctx->freqs = NULL; in FASTCOVER_ctx_destroy()
276 FASTCOVER_computeFrequency(U32* freqs, const FASTCOVER_ctx_t* ctx) in FASTCOVER_computeFrequency() argument
290 freqs[dmerIndex]++; in FASTCOVER_computeFrequency()
374 ctx->freqs = (U32*)calloc(((U64)1 << f), sizeof(U32)); in FASTCOVER_ctx_init()
[all …]
Dcover.c221 U32 *freqs; member
405 static COVER_segment_t COVER_selectSegment(const COVER_ctx_t *ctx, U32 *freqs, in COVER_selectSegment() argument
435 activeSegment.score += freqs[newDmer]; in COVER_selectSegment()
450 activeSegment.score -= freqs[delDmer]; in COVER_selectSegment()
465 U32 freq = freqs[ctx->dmerAt[pos]]; in COVER_selectSegment()
478 freqs[ctx->dmerAt[pos]] = 0; in COVER_selectSegment()
520 if (ctx->freqs) { in COVER_ctx_destroy()
521 free(ctx->freqs); in COVER_ctx_destroy()
522 ctx->freqs = NULL; in COVER_ctx_destroy()
591 ctx->freqs = NULL; in COVER_ctx_init()
[all …]
/external/skia/tools/skpbench/
D_hardware_android.py128freqs = self._adb.check('cat /sys/devices/system/cpu/cpu%i/cpufreq/scaling_available_frequencies' …
129 speed = freqs[int((len(freqs)-1) * self.desiredClock)]
149 freqs = self._adb.check('cat /sys/class/kgsl/kgsl-3d0/devfreq/available_frequencies').split()
150 speed = freqs[int((len(freqs)-1) * self.desiredClock)]
/external/perfetto/src/traced/probes/common/
Dcpu_freq_info.cc32 void ReadAndAppendFreqs(std::set<CpuAndFreq>* freqs, in ReadAndAppendFreqs() argument
39 freqs->insert({cpu_index, freq.value()}); in ReadAndAppendFreqs()
52 std::set<CpuAndFreq> freqs; in CpuFreqInfo() local
66 &freqs, cpu_index, in CpuFreqInfo()
70 &freqs, cpu_index, in CpuFreqInfo()
79 for (const auto& cpu_freq : freqs) { in CpuFreqInfo()
Dcpu_freq_info_unittest.cc37 std::vector<uint32_t> freqs; in FreqsToVector() local
39 freqs.push_back(*it); in FreqsToVector()
40 return freqs; in FreqsToVector()
/external/igt-gpu-tools/lib/
Digt_audio.c77 struct audio_signal_freq freqs[FREQS_MAX]; member
140 freq = &signal->freqs[index]; in audio_signal_add_frequency()
167 freq = signal->freqs[i].freq; in audio_signal_synthesize()
179 signal->freqs[i].period = period; in audio_signal_synthesize()
180 signal->freqs[i].period_len = period_len; in audio_signal_synthesize()
207 free(signal->freqs[i].period); in audio_signal_reset()
220 freq = &signal->freqs[i]; in audio_signal_count_freqs()
286 freq = &signal->freqs[i]; in audio_signal_fill()
443 if (signal->freqs[j].channel >= 0 && in audio_signal_detect()
444 signal->freqs[j].channel != channel) in audio_signal_detect()
[all …]
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/
Ddirected_interleave_dataset_test.py73 freqs = np.zeros([num_datasets])
75 freqs[self.evaluate(next_element())] += 1
79 return freqs
93 freqs = self._testSampleFromDatasetsHelper(probs, classes, num_samples)
94 self.assertLess(self._chi2(probs, freqs / num_samples), 1e-2)
98 freqs = self._testSampleFromDatasetsHelper(probs_ds, classes, num_samples)
99 self.assertLess(self._chi2(probs, freqs / num_samples), 1e-2)
/external/linux-kselftest/tools/testing/selftests/intel_pstate/
Drun.sh60 grep MHz /proc/cpuinfo | sort -u > /tmp/result.freqs
61 num_freqs=$(wc -l /tmp/result.freqs | awk ' { print $1 } ')
63 tail -n 1 /tmp/result.freqs > /tmp/result.$1
65 cp /tmp/result.freqs /tmp/result.$1
/external/flac/src/utils/loudness/
Dloudness.sci95 freqs = [ 8000 11025 12000 16000 18900 22050 24000 ..
98 for fx = 1:1:length(freqs)
100 printf("\n%d\n", freqs(fx));
102 [a1,b1,a2,b2] = equalloudfilt(freqs(fx));
110 // freqz_fwd(bb,aa,1024,freqs(fx));
/external/linux-kselftest/tools/testing/selftests/cpufreq/
Dcpufreq.sh149 local freqs=$(cat $filepath/scaling_available_frequencies)
150 printf "Available frequencies for $1: $freqs\n\n"
153 for freq in $freqs; do
Dspecial-tests.sh98 local freqs=$(cat $filepath/scaling_available_frequencies)
104 for freq in $freqs; do
/external/wpa_supplicant_8/src/drivers/
Ddriver_nl80211_scan.c218 if (params->freqs) { in nl80211_scan_common()
219 struct nlattr *freqs; in nl80211_scan_common() local
220 freqs = nla_nest_start(msg, NL80211_ATTR_SCAN_FREQUENCIES); in nl80211_scan_common()
221 if (freqs == NULL) in nl80211_scan_common()
223 for (i = 0; params->freqs[i]; i++) { in nl80211_scan_common()
225 "MHz", params->freqs[i]); in nl80211_scan_common()
226 if (nla_put_u32(msg, i + 1, params->freqs[i])) in nl80211_scan_common()
229 nla_nest_end(msg, freqs); in nl80211_scan_common()
1137 if (params->freqs) { in wpa_driver_nl80211_vendor_scan()
1138 struct nlattr *freqs; in wpa_driver_nl80211_vendor_scan() local
[all …]
/external/autotest/client/site_tests/kernel_Delay/
Dkernel_Delay.py170 freqs = self._get_freqs()
171 for f in freqs:
213 freqs = [ min_freq, max_freq ]
214 for freq in freqs:
/external/tensorflow/tensorflow/python/kernel_tests/signal/
Dfft_ops_test.py619 freqs = [[0, 1, 2], [3, 4, -4], [-3, -2, -1]]
621 self.assertAllEqual(fft_ops.fftshift(freqs, axes=(0, 1)), shifted)
623 fft_ops.fftshift(freqs, axes=0),
624 fft_ops.fftshift(freqs, axes=(0,)))
625 self.assertAllEqual(fft_ops.ifftshift(shifted, axes=(0, 1)), freqs)
629 self.assertAllEqual(fft_ops.fftshift(freqs), shifted)
630 self.assertAllEqual(fft_ops.ifftshift(shifted), freqs)
642 freqs = [[0, 1, 2], [3, 4, -4], [-3, -2, -1]]
645 fft_ops.fftshift(freqs, axes=(0, 1)),
646 np.fft.fftshift(freqs, axes=(0, 1)))
[all …]
/external/tensorflow/tensorflow/compiler/tests/
Dcategorical_op_test.py75 freqs = [(cnts[k] * 1. / num_samples if k in cnts else 0)
77 freqs_mat.append(freqs)
132 freqs = self._do_sampling(logits, num_samples)
139 chi2 = self._chi2(probs, freqs)
/external/wpa_supplicant_8/src/ap/
Dacs.c1059 params.freqs = os_calloc(num_channels + 1, sizeof(params.freqs[0])); in acs_request_scan()
1060 if (params.freqs == NULL) in acs_request_scan()
1063 freq = params.freqs; in acs_request_scan()
1073 if (params.freqs == freq) { in acs_request_scan()
1075 os_free(params.freqs); in acs_request_scan()
1088 os_free(params.freqs); in acs_request_scan()
1092 os_free(params.freqs); in acs_request_scan()
Dhw_features.c411 params->freqs = os_calloc(mode->num_channels + 1, sizeof(int)); in ieee80211n_scan_channels_2g4()
412 if (params->freqs == NULL) in ieee80211n_scan_channels_2g4()
423 params->freqs[pos++] = chan->freq; in ieee80211n_scan_channels_2g4()
452 params->freqs = os_calloc(mode->num_channels + 1, sizeof(int)); in ieee80211n_scan_channels_5g()
453 if (params->freqs == NULL) in ieee80211n_scan_channels_5g()
464 params->freqs[pos++] = chan->freq; in ieee80211n_scan_channels_5g()
484 os_free(params.freqs); in ap_ht40_scan_retry()
533 os_free(params.freqs); in ieee80211n_check_40mhz()

123