Home
last modified time | relevance | path

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

12345678910>>...20

/third_party/ltp/testcases/kernel/device-drivers/v4l/user_space/
Dtest_VIDIOC_FREQUENCY.c37 struct v4l2_frequency freq; in test_VIDIOC_G_FREQUENCY() local
41 memset(&freq, 0xff, sizeof(freq)); in test_VIDIOC_G_FREQUENCY()
42 freq.tuner = tuner; in test_VIDIOC_G_FREQUENCY()
43 ret_get = ioctl(get_video_fd(), VIDIOC_G_FREQUENCY, &freq); in test_VIDIOC_G_FREQUENCY()
52 CU_ASSERT_EQUAL(freq.tuner, tuner); in test_VIDIOC_G_FREQUENCY()
57 CU_ASSERT_EQUAL(freq.reserved[0], 0); in test_VIDIOC_G_FREQUENCY()
58 CU_ASSERT_EQUAL(freq.reserved[1], 0); in test_VIDIOC_G_FREQUENCY()
59 CU_ASSERT_EQUAL(freq.reserved[2], 0); in test_VIDIOC_G_FREQUENCY()
60 CU_ASSERT_EQUAL(freq.reserved[3], 0); in test_VIDIOC_G_FREQUENCY()
61 CU_ASSERT_EQUAL(freq.reserved[4], 0); in test_VIDIOC_G_FREQUENCY()
[all …]
/third_party/rust/crates/memchr/bench/src/memmem/
Dmod.rs113 ($inp:expr, $q:expr, $freq:expr, $impl:ident) => { in oneshot()
131 freq = $freq, in oneshot()
157 ($inp:expr, $q:expr, $freq:expr) => { in oneshot()
158 def_impl!($inp, $q, $freq, krate); in oneshot()
159 def_impl!($inp, $q, $freq, krate_nopre); in oneshot()
160 def_impl!($inp, $q, $freq, bstr); in oneshot()
161 def_impl!($inp, $q, $freq, regex); in oneshot()
162 def_impl!($inp, $q, $freq, stud); in oneshot()
163 def_impl!($inp, $q, $freq, twoway); in oneshot()
164 def_impl!($inp, $q, $freq, sliceslice); in oneshot()
[all …]
/third_party/cups-filters/fontembed/
Dfrequent.c36 void frequent_add(FREQUENT *freq,intptr_t key) // {{{ in frequent_add() argument
38 assert(freq); in frequent_add()
40 for (iA=freq->size-1;iA>=0;iA--) { in frequent_add()
41 if (freq->pair[iA].key==key) { in frequent_add()
42 freq->pair[iA].count++; in frequent_add()
43 freq->sorted=0; in frequent_add()
45 } else if (freq->pair[iA].count==freq->czero) { in frequent_add()
50 freq->pair[zero].key=key; in frequent_add()
51 freq->pair[zero].count++; // i.e. czero+1 in frequent_add()
52 freq->pair[zero].zero=freq->czero; in frequent_add()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
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 hw_mode_get_channel(struct hostapd_hw_modes *mode, int freq, int *chan) in hw_mode_get_channel() argument
51 if (ch->freq == freq) { in hw_mode_get_channel()
63 hw_get_channel_freq(enum hostapd_hw_mode mode, int freq, int *chan, in hw_get_channel_freq() argument
81 chan_data = hw_mode_get_channel(curr_mode, freq, chan); in hw_get_channel_freq()
92 int freq; in hw_get_freq() local
[all …]
Dieee802_11_common.c871 enum hostapd_hw_mode ieee80211_freq_to_chan(int freq, u8 *channel) in ieee80211_freq_to_chan() argument
875 return ieee80211_freq_to_channel_ext(freq, 0, CHANWIDTH_USE_HT, in ieee80211_freq_to_chan()
890 enum hostapd_hw_mode ieee80211_freq_to_channel_ext(unsigned int freq, in ieee80211_freq_to_channel_ext() argument
902 if (freq >= 2412 && freq <= 2472) { in ieee80211_freq_to_channel_ext()
903 if ((freq - 2407) % 5) in ieee80211_freq_to_channel_ext()
917 *channel = (freq - 2407) / 5; in ieee80211_freq_to_channel_ext()
922 if (freq == 2484) { in ieee80211_freq_to_channel_ext()
932 if (freq >= 4900 && freq < 5000) { in ieee80211_freq_to_channel_ext()
933 if ((freq - 4000) % 5) in ieee80211_freq_to_channel_ext()
935 *channel = (freq - 4000) / 5; in ieee80211_freq_to_channel_ext()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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()
164 chan = dfs_get_chan_data(mode, first_chan->freq + i * 20, in dfs_chan_range_available()
168 first_chan->freq + i * 20); in dfs_chan_range_available()
176 first_chan->freq + i * 20); in dfs_chan_range_available()
182 first_chan->freq + i * 20); in dfs_chan_range_available()
230 chan->freq, chan->chan); in dfs_find_channel()
238 chan->freq, chan->chan); in dfs_find_channel()
245 chan->freq, chan->chan); in dfs_find_channel()
254 chan->freq, chan->chan); in dfs_find_channel()
[all …]
Dacs.c384 if (chan->freq == allowed[i]) in acs_usable_bw40_chan()
399 if (chan->freq == allowed[i]) in acs_usable_bw80_chan()
413 if (chan->freq == allowed[i]) in acs_usable_bw160_chan()
527 chan->freq); in is_in_freqlist()
553 chan->chan, chan->freq); in acs_survey_mode_interference_factor()
578 acs_find_chan_mode(struct hostapd_hw_modes *mode, int freq) in acs_find_chan_mode() argument
589 if (chan->freq == freq) in acs_find_chan_mode()
598 acs_find_chan(struct hostapd_iface *iface, int freq) in acs_find_chan() argument
607 chan = acs_find_chan_mode(mode, freq); in acs_find_chan()
694 is_6ghz_freq(chan->freq)) && in acs_find_ideal_chan_mode()
[all …]
Ddpp_hostapd.c310 (unsigned int) hapd->iface->freq && hapd->iface->freq > 0) { in hostapd_dpp_tx_status()
314 hapd->dpp_auth->neg_freq, hapd->iface->freq); in hostapd_dpp_tx_status()
327 unsigned int freq; in hostapd_dpp_reply_wait_timeout() local
375 freq = auth->curr_freq; in hostapd_dpp_reply_wait_timeout()
377 freq = auth->neg_freq; in hostapd_dpp_reply_wait_timeout()
380 freq, wait_time); in hostapd_dpp_reply_wait_timeout()
383 if (freq != (unsigned int) hapd->iface->freq && hapd->iface->freq > 0) { in hostapd_dpp_reply_wait_timeout()
387 freq, hapd->iface->freq); in hostapd_dpp_reply_wait_timeout()
447 unsigned int wait_time, max_wait_time, freq, max_tries, used; in hostapd_dpp_auth_init_next() local
495 freq = auth->freq[auth->freq_idx++]; in hostapd_dpp_auth_init_next()
[all …]
Dhw_features.c138 feature->channels[j].freq, in hostapd_get_hw_features()
237 pri_freq = iface->freq; in ieee80211n_allowed_ht40_channel_pair()
260 iface->freq += 20; in ieee80211n_switch_pri_sec()
264 iface->freq -= 20; in ieee80211n_switch_pri_sec()
277 pri_freq = iface->freq; in ieee80211n_check_40mhz_5g()
400 pri_freq = iface->freq; in ieee80211n_scan_channels_2g4()
425 if (chan->freq < affected_start || in ieee80211n_scan_channels_2g4()
426 chan->freq > affected_end) in ieee80211n_scan_channels_2g4()
428 params->freqs[pos++] = chan->freq; in ieee80211n_scan_channels_2g4()
445 pri_freq = iface->freq; in ieee80211n_scan_channels_5g()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/
Dieee802_11_common.c705 enum hostapd_hw_mode ieee80211_freq_to_chan(int freq, u8 *channel) in ieee80211_freq_to_chan() argument
709 return ieee80211_freq_to_channel_ext(freq, 0, CHANWIDTH_USE_HT, in ieee80211_freq_to_chan()
724 enum hostapd_hw_mode ieee80211_freq_to_channel_ext(unsigned int freq, in ieee80211_freq_to_channel_ext() argument
735 if (freq >= 2412 && freq <= 2472) { in ieee80211_freq_to_channel_ext()
736 if ((freq - 2407) % 5) in ieee80211_freq_to_channel_ext()
750 *channel = (freq - 2407) / 5; in ieee80211_freq_to_channel_ext()
755 if (freq == 2484) { in ieee80211_freq_to_channel_ext()
765 if (freq >= 4900 && freq < 5000) { in ieee80211_freq_to_channel_ext()
766 if ((freq - 4000) % 5) in ieee80211_freq_to_channel_ext()
768 *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 …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/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()
159 chan = dfs_get_chan_data(mode, first_chan->freq + i * 20, in dfs_chan_range_available()
485 static int set_dfs_state_freq(struct hostapd_iface *iface, int freq, u32 state) in set_dfs_state_freq() argument
495 wpa_printf(MSG_DEBUG, "set_dfs_state 0x%X for %d MHz", state, freq); in set_dfs_state_freq()
498 if (chan->freq == freq) { in set_dfs_state_freq()
506 wpa_printf(MSG_WARNING, "Can't set DFS state for freq %d MHz", freq); in set_dfs_state_freq()
511 static int set_dfs_state(struct hostapd_iface *iface, int freq, int ht_enabled, in set_dfs_state() argument
517 int frequency = freq; in set_dfs_state()
566 static int dfs_are_channels_overlapped(struct hostapd_iface *iface, int freq, in dfs_are_channels_overlapped() argument
[all …]
Ddpp_hostapd.c196 (unsigned int) hapd->iface->freq && hapd->iface->freq > 0) { in hostapd_dpp_tx_status()
200 hapd->dpp_auth->neg_freq, hapd->iface->freq); in hostapd_dpp_tx_status()
213 unsigned int freq; in hostapd_dpp_reply_wait_timeout() local
261 freq = auth->curr_freq; in hostapd_dpp_reply_wait_timeout()
263 freq = auth->neg_freq; in hostapd_dpp_reply_wait_timeout()
266 freq, wait_time); in hostapd_dpp_reply_wait_timeout()
269 if (freq != (unsigned int) hapd->iface->freq && hapd->iface->freq > 0) { in hostapd_dpp_reply_wait_timeout()
273 freq, hapd->iface->freq); in hostapd_dpp_reply_wait_timeout()
314 unsigned int wait_time, max_wait_time, freq, max_tries, used; in hostapd_dpp_auth_init_next() local
362 freq = auth->freq[auth->freq_idx++]; in hostapd_dpp_auth_init_next()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Ddpp_supplicant.c32 unsigned int freq);
36 unsigned int freq, const u8 *dst,
44 unsigned int freq, const u8 *dst,
161 unsigned int freq, const u8 *dst, in wpas_dpp_tx_status() argument
173 " result=%s", freq, MAC2STR(dst), res_txt); in wpas_dpp_tx_status()
175 " freq=%u result=%s", MAC2STR(dst), freq, res_txt); in wpas_dpp_tx_status()
253 unsigned int freq; in wpas_dpp_reply_wait_timeout() local
301 freq = auth->curr_freq; in wpas_dpp_reply_wait_timeout()
303 freq = auth->neg_freq; in wpas_dpp_reply_wait_timeout()
306 freq, wait_time); in wpas_dpp_reply_wait_timeout()
[all …]
Dp2p_supplicant.c128 static int wpas_p2p_join_start(struct wpa_supplicant *wpa_s, int freq,
130 static int wpas_p2p_setup_freqs(struct wpa_supplicant *wpa_s, int freq,
134 static void wpas_p2p_join_scan_req(struct wpa_supplicant *wpa_s, int freq,
139 int auto_join, int freq,
162 static int wpas_p2p_go_is_peer_freq(struct wpa_supplicant *wpa_s, int freq);
216 if (p2p_supported_freq(wpa_s->global->p2p, freqs[i].freq)) in wpas_p2p_valid_oper_freqs()
229 int freq) in wpas_p2p_set_own_freq_preference() argument
238 freq > 0 && wpa_s->num_multichan_concurrent > 1 && in wpas_p2p_set_own_freq_preference()
241 freq); in wpas_p2p_set_own_freq_preference()
242 freq = 0; in wpas_p2p_set_own_freq_preference()
[all …]
Doffchannel.c259 int offchannel_send_action(struct wpa_supplicant *wpa_s, unsigned int freq, in offchannel_send_action() argument
263 unsigned int freq, const u8 *dst, in offchannel_send_action()
272 freq, MAC2STR(dst), MAC2STR(src), MAC2STR(bssid), in offchannel_send_action()
298 wpa_s->pending_action_freq = freq; in offchannel_send_action()
307 if (freq != 0 && wpa_s->drv_flags & WPA_DRIVER_FLAGS_OFFCHANNEL_TX) { in offchannel_send_action()
328 if (freq) { in offchannel_send_action()
331 if (tx_iface->assoc_freq == freq) { in offchannel_send_action()
335 freq = 0; in offchannel_send_action()
339 if (wpa_s->off_channel_freq == freq || freq == 0) { in offchannel_send_action()
351 if (wpa_s->roc_waiting_drv_freq == freq) { in offchannel_send_action()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/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 …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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 …]
/third_party/flutter/skia/third_party/externals/sdl/test/
Dtestautomation_audio.c173 desired.freq = 22050; in audio_initOpenCloseQuitAudio()
182 desired.freq = 48000; in audio_initOpenCloseQuitAudio()
262 desired.freq = 22050; in audio_pauseUnpauseAudio()
271 desired.freq = 48000; in audio_pauseUnpauseAudio()
526 spec1.freq = 22050; in audio_buildAudioCVT()
527 result = SDL_BuildAudioCVT(&cvt, spec1.format, spec1.channels, spec1.freq, in audio_buildAudioCVT()
528 spec1.format, spec1.channels, spec1.freq); in audio_buildAudioCVT()
535 spec1.freq = 22050; in audio_buildAudioCVT()
538 spec2.freq = 44100; in audio_buildAudioCVT()
539 result = SDL_BuildAudioCVT(&cvt, spec1.format, spec1.channels, spec1.freq, in audio_buildAudioCVT()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Ddpp_supplicant.c33 unsigned int freq);
38 unsigned int freq, const u8 *dst,
46 unsigned int freq, const u8 *dst,
263 unsigned int freq, in wpas_dpp_stop_listen_for_tx() argument
279 if (wpa_s->dpp_listen_freq == freq && remaining > wait_time) in wpas_dpp_stop_listen_for_tx()
284 wpa_s->dpp_listen_freq, remaining, freq, wait_time); in wpas_dpp_stop_listen_for_tx()
427 unsigned int freq, const u8 *dst, in wpas_dpp_tx_status() argument
439 " result=%s", freq, MAC2STR(dst), res_txt); in wpas_dpp_tx_status()
441 " freq=%u result=%s", MAC2STR(dst), freq, res_txt); in wpas_dpp_tx_status()
548 unsigned int freq; in wpas_dpp_reply_wait_timeout() local
[all …]
Doffchannel.c259 int offchannel_send_action(struct wpa_supplicant *wpa_s, unsigned int freq, in offchannel_send_action() argument
263 unsigned int freq, const u8 *dst, in offchannel_send_action()
272 freq, MAC2STR(dst), MAC2STR(src), MAC2STR(bssid), in offchannel_send_action()
298 wpa_s->pending_action_freq = freq; in offchannel_send_action()
307 if (freq != 0 && wpa_s->drv_flags & WPA_DRIVER_FLAGS_OFFCHANNEL_TX) { in offchannel_send_action()
328 if (freq) { in offchannel_send_action()
331 if (tx_iface->assoc_freq == freq) { in offchannel_send_action()
335 freq = 0; in offchannel_send_action()
339 if (wpa_s->off_channel_freq == freq || freq == 0) { in offchannel_send_action()
351 if (wpa_s->roc_waiting_drv_freq == freq) { in offchannel_send_action()
[all …]
Dp2p_supplicant.c128 static int wpas_p2p_join_start(struct wpa_supplicant *wpa_s, int freq,
130 static int wpas_p2p_setup_freqs(struct wpa_supplicant *wpa_s, int freq,
134 static void wpas_p2p_join_scan_req(struct wpa_supplicant *wpa_s, int freq,
139 int auto_join, int freq,
162 static int wpas_p2p_go_is_peer_freq(struct wpa_supplicant *wpa_s, int freq);
227 if (p2p_supported_freq(wpa_s->global->p2p, freqs[i].freq)) in wpas_p2p_valid_oper_freqs()
240 int freq) in wpas_p2p_set_own_freq_preference() argument
249 freq > 0 && wpa_s->num_multichan_concurrent > 1 && in wpas_p2p_set_own_freq_preference()
252 freq); in wpas_p2p_set_own_freq_preference()
253 freq = 0; in wpas_p2p_set_own_freq_preference()
[all …]
Dmesh.c219 &params->freq, in wpas_mesh_update_freq_params()
221 ifmsh->freq, in wpas_mesh_update_freq_params()
260 if (ifmsh->freq > 0 && ifmsh->freq != params->freq.freq) { in wpas_mesh_complete()
261 wpa_s->assoc_freq = ifmsh->freq; in wpas_mesh_complete()
262 ssid->frequency = ifmsh->freq; in wpas_mesh_complete()
382 struct hostapd_freq_params *freq) in wpa_supplicant_mesh_init() argument
427 if (frequency != freq->freq && in wpa_supplicant_mesh_init()
428 frequency == freq->freq + freq->sec_channel_offset * 20) { in wpa_supplicant_mesh_init()
430 frequency = freq->freq; in wpa_supplicant_mesh_init()
441 if (is_6ghz_freq(freq->freq)) { in wpa_supplicant_mesh_init()
[all …]
/third_party/vk-gl-cts/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()
/third_party/optimized-routines/string/bench/
Dmemcpy.c46 typedef struct { uint16_t size; uint16_t freq; } freq_data_t; member
47 typedef struct { uint8_t align; uint16_t freq; } align_data_t; member
119 int i, j, freq, size, n; in init_copy_distribution() local
121 for (n = i = 0; (freq = size_freq[i].freq) != 0; i++) in init_copy_distribution()
122 for (j = 0, size = size_freq[i].size; j < freq; j++) in init_copy_distribution()
126 for (n = i = 0; (freq = src_align_freq[i].freq) != 0; i++) in init_copy_distribution()
127 for (j = 0, size = src_align_freq[i].align; j < freq; j++) in init_copy_distribution()
131 for (n = i = 0; (freq = dst_align_freq[i].freq) != 0; i++) in init_copy_distribution()
132 for (j = 0, size = dst_align_freq[i].align; j < freq; j++) in init_copy_distribution()

12345678910>>...20