Home
last modified time | relevance | path

Searched refs:freq (Results 1 – 25 of 259) sorted by relevance

1234567891011

/external/wpa_supplicant_8/src/common/
Dieee802_11_common.c578 enum hostapd_hw_mode ieee80211_freq_to_chan(int freq, u8 *channel) in ieee80211_freq_to_chan() argument
582 return ieee80211_freq_to_channel_ext(freq, 0, VHT_CHANWIDTH_USE_HT, in ieee80211_freq_to_chan()
597 enum hostapd_hw_mode ieee80211_freq_to_channel_ext(unsigned int freq, in ieee80211_freq_to_channel_ext() argument
608 if (freq >= 2412 && freq <= 2472) { in ieee80211_freq_to_channel_ext()
609 if ((freq - 2407) % 5) in ieee80211_freq_to_channel_ext()
623 *channel = (freq - 2407) / 5; in ieee80211_freq_to_channel_ext()
628 if (freq == 2484) { in ieee80211_freq_to_channel_ext()
638 if (freq >= 4900 && freq < 5000) { in ieee80211_freq_to_channel_ext()
639 if ((freq - 4000) % 5) in ieee80211_freq_to_channel_ext()
641 *channel = (freq - 4000) / 5; in ieee80211_freq_to_channel_ext()
[all …]
Dhw_features_common.c20 int chan, int *freq) in hw_get_channel_chan() argument
24 if (freq) in hw_get_channel_chan()
25 *freq = 0; in hw_get_channel_chan()
33 if (freq) in hw_get_channel_chan()
34 *freq = ch->freq; in hw_get_channel_chan()
44 int freq, int *chan) in hw_get_channel_freq() argument
56 if (ch->freq == freq) { in hw_get_channel_freq()
69 int freq; in hw_get_freq() local
71 hw_get_channel_chan(mode, chan, &freq); in hw_get_freq()
73 return freq; in hw_get_freq()
[all …]
Dhw_features_common.h16 int chan, int *freq);
18 int freq, int *chan);
21 int hw_get_chan(struct hostapd_hw_modes *mode, int freq);
34 int freq, int channel, int ht_enabled,
/external/wpa_supplicant_8/src/ap/
Ddfs.c126 dfs_get_chan_data(struct hostapd_hw_modes *mode, int freq, int first_chan_idx) in dfs_get_chan_data() argument
131 if (mode->channels[i].freq == freq) in dfs_get_chan_data()
152 chan = dfs_get_chan_data(mode, first_chan->freq + i * 20, in dfs_chan_range_available()
472 static int set_dfs_state_freq(struct hostapd_iface *iface, int freq, u32 state) in set_dfs_state_freq() argument
482 wpa_printf(MSG_DEBUG, "set_dfs_state 0x%X for %d MHz", state, freq); in set_dfs_state_freq()
485 if (chan->freq == freq) { in set_dfs_state_freq()
493 wpa_printf(MSG_WARNING, "Can't set DFS state for freq %d MHz", freq); in set_dfs_state_freq()
498 static int set_dfs_state(struct hostapd_iface *iface, int freq, int ht_enabled, in set_dfs_state() argument
504 int frequency = freq; in set_dfs_state()
553 static int dfs_are_channels_overlapped(struct hostapd_iface *iface, int freq, in dfs_are_channels_overlapped() argument
[all …]
Ddfs.h14 int hostapd_dfs_complete_cac(struct hostapd_iface *iface, int success, int freq,
17 int hostapd_dfs_radar_detected(struct hostapd_iface *iface, int freq,
21 int hostapd_dfs_nop_finished(struct hostapd_iface *iface, int freq,
25 int hostapd_dfs_start_cac(struct hostapd_iface *iface, int freq,
Dacs.c505 chan->chan, chan->freq); in acs_survey_all_chans_intereference_factor()
516 int freq) in acs_find_chan() argument
527 if (chan->freq == freq) in acs_find_chan()
642 adj_chan = acs_find_chan(iface, chan->freq + (j * 20)); in acs_find_ideal_chan()
662 adj_chan = acs_find_chan(iface, chan->freq + in acs_find_ideal_chan()
670 adj_chan = acs_find_chan(iface, chan->freq + in acs_find_ideal_chan()
678 adj_chan = acs_find_chan(iface, chan->freq + in acs_find_ideal_chan()
686 adj_chan = acs_find_chan(iface, chan->freq + in acs_find_ideal_chan()
737 ideal_chan->chan, ideal_chan->freq, ideal_factor); in acs_find_ideal_chan()
882 int i, *freq; in acs_request_scan() local
[all …]
/external/wpa_supplicant_8/src/p2p/
Dp2p_utils.c69 int p2p_freq_to_channel(unsigned int freq, u8 *op_class, u8 *channel) in p2p_freq_to_channel() argument
71 if (ieee80211_freq_to_channel_ext(freq, 0, 0, op_class, channel) == in p2p_freq_to_channel()
225 int freq = p2p_channel_to_freq(op->reg_class, in p2p_channels_remove_freqs() local
227 if (freq > 0 && freq_range_list_includes(list, freq)) { in p2p_channels_remove_freqs()
272 unsigned int freq) in p2p_channels_includes_freq() argument
279 reg->channel[j]) == (int) freq) in p2p_channels_includes_freq()
287 int p2p_supported_freq(struct p2p_data *p2p, unsigned int freq) in p2p_supported_freq() argument
290 if (p2p_freq_to_channel(freq, &op_reg_class, &op_channel) < 0) in p2p_supported_freq()
297 int p2p_supported_freq_go(struct p2p_data *p2p, unsigned int freq) in p2p_supported_freq_go() argument
300 if (p2p_freq_to_channel(freq, &op_reg_class, &op_channel) < 0) in p2p_supported_freq_go()
[all …]
Dp2p.h96 int freq; member
624 int (*p2p_scan)(void *ctx, enum p2p_scan_type type, int freq,
651 unsigned int freq);
671 int (*send_action)(void *ctx, unsigned int freq, const u8 *dst,
705 int (*start_listen)(void *ctx, unsigned int freq,
819 void (*sd_request)(void *ctx, int freq, const u8 *sa, u8 dialog_token,
976 const u8 *addr, int freq, int peer_oper_freq);
1051 unsigned int *freq);
1077 unsigned int freq, const u8 *group_ssid,
1238 u8 seek_count, const char **seek_string, int freq);
[all …]
/external/deqp/framework/delibs/deutil/
DdeClock.c40 LARGE_INTEGER freq; in deGetMicroseconds() local
43 QueryPerformanceFrequency(&freq); in deGetMicroseconds()
44 DE_ASSERT(freq.LowPart != 0 || freq.HighPart != 0); in deGetMicroseconds()
49 DE_ASSERT(freq.QuadPart != 0); in deGetMicroseconds()
50 return count.QuadPart * 1000000 / freq.QuadPart; in deGetMicroseconds()
54 DE_ASSERT(freq.QuadPart >= 1000000); in deGetMicroseconds()
55 return count.QuadPart / (freq.QuadPart / 1000000); in deGetMicroseconds()
/external/wpa_supplicant_8/wpa_supplicant/
Doffchannel.c238 int offchannel_send_action(struct wpa_supplicant *wpa_s, unsigned int freq, in offchannel_send_action() argument
242 unsigned int freq, const u8 *dst, in offchannel_send_action()
251 freq, MAC2STR(dst), MAC2STR(src), MAC2STR(bssid), in offchannel_send_action()
277 wpa_s->pending_action_freq = freq; in offchannel_send_action()
286 if (freq != 0 && wpa_s->drv_flags & WPA_DRIVER_FLAGS_OFFCHANNEL_TX) { in offchannel_send_action()
305 if (freq) { in offchannel_send_action()
308 if (tx_iface->assoc_freq == freq) { in offchannel_send_action()
312 freq = 0; in offchannel_send_action()
316 if (wpa_s->off_channel_freq == freq || freq == 0) { in offchannel_send_action()
328 if (wpa_s->roc_waiting_drv_freq == freq) { in offchannel_send_action()
[all …]
Dp2p_supplicant.c125 static int wpas_p2p_join_start(struct wpa_supplicant *wpa_s, int freq,
127 static int wpas_p2p_setup_freqs(struct wpa_supplicant *wpa_s, int freq,
131 static void wpas_p2p_join_scan_req(struct wpa_supplicant *wpa_s, int freq,
136 int auto_join, int freq,
159 static int wpas_p2p_go_is_peer_freq(struct wpa_supplicant *wpa_s, int freq);
213 if (p2p_supported_freq(wpa_s->global->p2p, freqs[i].freq)) in wpas_p2p_valid_oper_freqs()
226 int freq) in wpas_p2p_set_own_freq_preference() argument
235 freq > 0 && wpa_s->num_multichan_concurrent > 1 && in wpas_p2p_set_own_freq_preference()
238 freq); in wpas_p2p_set_own_freq_preference()
239 freq = 0; in wpas_p2p_set_own_freq_preference()
[all …]
Dp2p_supplicant.h38 int go_intent, int freq, unsigned int vht_center_freq2,
43 int freq, struct wpa_ssid *ssid);
45 int freq, int vht_center_freq2, int ht40, int vht,
76 u8 seek_cnt, const char **seek_string, int freq);
92 void wpas_p2p_sd_response(struct wpa_supplicant *wpa_s, int freq,
112 void wpas_sd_request(void *ctx, int freq, const u8 *sa, u8 dialog_token,
118 struct wpa_ssid *ssid, const u8 *go_dev_addr, int freq,
189 u8 category, const u8 *data, size_t len, int freq);
191 unsigned int freq, unsigned int duration);
193 unsigned int freq);
[all …]
Dbgscan_learn.c25 int freq; member
134 bss->freq = atoi(buf + 4 + 18); in bgscan_learn_load()
138 MAC2STR(bss->bssid), bss->freq); in bgscan_learn_load()
179 MAC2STR(bss->bssid), bss->freq); in bgscan_learn_save()
220 if (in_array(freqs, bss->freq)) in bgscan_learn_get_freqs()
226 freqs[*count] = bss->freq; in bgscan_learn_get_freqs()
366 if (in_array(freqs, modes[i].channels[j].freq)) in bgscan_learn_get_supp_freqs()
373 freqs[count] = modes[i].channels[j].freq; in bgscan_learn_get_supp_freqs()
521 if (bss && bss->freq != res->freq) { in bgscan_learn_notify_scan()
524 MAC2STR(res->bssid), bss->freq, res->freq); in bgscan_learn_notify_scan()
[all …]
/external/autotest/client/site_tests/kernel_Delay/
Dkernel_Delay.py123 def _set_freq(self, freq): argument
139 self._set_file(str(freq), p)
143 self._check_freq(freq)
146 def _check_freq(self, freq): argument
160 if speed != freq:
162 freq, speed))
165 if f != freq:
167 f, freq))
211 for freq in freqs:
212 self._set_freq(freq)
[all …]
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Dtime_util.h20 inline uint32_t NtpToRtp(NtpTime ntp, uint32_t freq) { in NtpToRtp() argument
21 uint32_t tmp = (static_cast<uint64_t>(ntp.fractions()) * freq) >> 32; in NtpToRtp()
22 return ntp.seconds() * freq + tmp; in NtpToRtp()
26 inline uint32_t CurrentRtp(const Clock& clock, uint32_t freq) { in CurrentRtp() argument
27 return NtpToRtp(NtpTime(clock), freq); in CurrentRtp()
/external/webp/src/utils/
Dquant_levels.c29 int freq[NUM_SYMBOLS] = { 0 }; in QuantizeLevels() local
54 num_levels_in += (freq[data[n]] == 0); in QuantizeLevels()
57 ++freq[data[n]]; in QuantizeLevels()
87 if (freq[s] > 0) { in QuantizeLevels()
88 q_sum[slot] += s * freq[s]; in QuantizeLevels()
89 q_count[slot] += freq[s]; in QuantizeLevels()
108 err += freq[s] * error * error; in QuantizeLevels()
/external/libopus/silk/float/
Dapply_sine_window_FLP.c46 silk_float freq, c, S0, S1; in silk_apply_sine_window_FLP() local
53 freq = PI / ( length + 1 ); in silk_apply_sine_window_FLP()
56 c = 2.0f - freq * freq; in silk_apply_sine_window_FLP()
63 S1 = freq; in silk_apply_sine_window_FLP()
/external/autotest/client/site_tests/power_CPUFreq/
Dpower_CPUFreq.py72 for freq in available_frequencies:
73 cpu.set_frequency(freq)
74 if freq != cpu.get_current_frequency():
103 for freq in available_frequencies:
105 cpu.set_frequency(freq)
107 if freq != cpu.get_current_frequency():
185 freq = int(self.__read_file('scaling_cur_freq'))
186 logging.info('current frequency: %s' % freq)
187 return freq
/external/autotest/client/site_tests/kernel_CpufreqMinMax/
Dkernel_CpufreqMinMax.py39 for freq in freqs:
40 logging.info('setting %s to %d' % (filename, freq))
42 f.write(str(freq))
49 if (cur_freq != freq):
51 (filename, cur_freq, freq))
53 (filename, freq))
/external/autotest/server/site_tests/network_WiFi_ChannelHop/
Dnetwork_WiFi_ChannelHop.py21 freq = network_WiFi_ChannelHop.ORIGINAL_FREQUENCY
24 frequency=freq,
35 freq)
40 for freq, bssid in ((2437, network_WiFi_ChannelHop.ORIGINAL_BSSID),
54 frequency=freq,
77 freq)
/external/iw/
Dphy.c48 uint32_t freq; in handle_freqs() local
73 freq = strtoul(argv[1], &end, 10); in handle_freqs()
76 NLA_PUT_U32(msg, NL80211_ATTR_CENTER_FREQ1, freq); in handle_freqs()
84 freq = strtoul(argv[2], &end, 10); in handle_freqs()
87 NLA_PUT_U32(msg, NL80211_ATTR_CENTER_FREQ2, freq); in handle_freqs()
107 unsigned int freq; in handle_freqchan() local
115 freq = strtoul(argv[0], &end, 10); in handle_freqchan()
121 band = freq <= 14 ? NL80211_BAND_2GHZ : NL80211_BAND_5GHZ; in handle_freqchan()
122 freq = ieee80211_channel_to_frequency(freq, band); in handle_freqchan()
125 NLA_PUT_U32(msg, NL80211_ATTR_WIPHY_FREQ, freq); in handle_freqchan()
[all …]
/external/compiler-rt/test/builtins/timing/
Dtiming.h17 uint64_t freq = 0; in intervalInCycles() local
18 size_t freqSize = sizeof( freq ); in intervalInCycles()
19 int err2 = sysctlbyname( "hw.cpufrequency", &freq, &freqSize, NULL, 0L ); in intervalInCycles()
23 conversion = (double) freq * (1e-9 * (double) info.numer / (double) info.denom); in intervalInCycles()
/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/
Dlsf_to_lsp.c34 int16_t freq; /* normalized frequency in Q15 (0..1) */ in WebRtcIlbcfix_Lsf2Lsp() local
39 freq = (int16_t)((lsf[i] * 20861) >> 15); in WebRtcIlbcfix_Lsf2Lsp()
46 k = freq >> 8; in WebRtcIlbcfix_Lsf2Lsp()
47 diff = (freq&0x00ff); in WebRtcIlbcfix_Lsf2Lsp()
/external/vboot_reference/firmware/lib/
Dvboot_audio.c259 uint16_t freq = audio->current_frequency; in VbAudioLooping() local
266 freq = audio->music_notes[audio->next_note].frequency; in VbAudioLooping()
274 freq = 0; in VbAudioLooping()
279 if (audio->current_frequency != freq) { in VbAudioLooping()
280 VbExBeep(0, freq); in VbAudioLooping()
281 audio->current_frequency = freq; in VbAudioLooping()
283 } else if (freq && msec) { in VbAudioLooping()
284 VbExBeep(msec, freq); in VbAudioLooping()
/external/webrtc/webrtc/sound/
Dalsasoundsystem.cc81 int freq) in AlsaStream() argument
87 freq_(freq) { in AlsaStream()
243 int freq) in AlsaInputStream() argument
244 : stream_(alsa, handle, frame_size, wait_timeout_ms, flags, freq), in AlsaInputStream()
348 int freq) in AlsaOutputStream() argument
349 : stream_(alsa, handle, frame_size, wait_timeout_ms, flags, freq) { in AlsaOutputStream()
624 int freq)) { in OpenDevice() argument
658 params.freq / in OpenDevice()
672 params.freq, in OpenDevice()
693 params.freq); in OpenDevice()
[all …]

1234567891011