/third_party/ltp/testcases/kernel/device-drivers/v4l/user_space/ |
D | test_VIDIOC_FREQUENCY.c | 37 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/ |
D | mod.rs | 113 ($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/ |
D | frequent.c | 36 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/ |
D | hw_features_common.c | 20 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 …]
|
D | ieee802_11_common.c | 871 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/ |
D | dfs.c | 131 dfs_get_chan_data(struct hostapd_hw_modes *mode, int freq, int first_chan_idx) in dfs_get_chan_data() argument 136 if (mode->channels[i].freq == freq) in dfs_get_chan_data() 169 chan = dfs_get_chan_data(mode, first_chan->freq + i * 20, in dfs_chan_range_available() 173 first_chan->freq + i * 20); in dfs_chan_range_available() 181 first_chan->freq + i * 20); in dfs_chan_range_available() 187 first_chan->freq + i * 20); in dfs_chan_range_available() 235 chan->freq, chan->chan); in dfs_find_channel() 243 chan->freq, chan->chan); in dfs_find_channel() 250 chan->freq, chan->chan); in dfs_find_channel() 259 chan->freq, chan->chan); in dfs_find_channel() [all …]
|
D | acs.c | 384 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 …]
|
D | dpp_hostapd.c | 310 (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 …]
|
D | hw_features.c | 138 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/ap/ |
D | dfs.c | 126 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 …]
|
D | dpp_hostapd.c | 196 (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/src/common/ |
D | ieee802_11_common.c | 705 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 …]
|
D | hw_features_common.c | 20 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/wpa_supplicant/ |
D | dpp_supplicant.c | 32 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 …]
|
D | offchannel.c | 259 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 …]
|
D | p2p_supplicant.c | 128 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 …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/p2p/ |
D | p2p_utils.c | 69 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/ |
D | p2p_utils.c | 72 int p2p_freq_to_channel(unsigned int freq, u8 *op_class, u8 *channel) in p2p_freq_to_channel() argument 74 if (ieee80211_freq_to_channel_ext(freq, 0, 0, op_class, channel) == in p2p_freq_to_channel() 228 int freq = p2p_channel_to_freq(op->reg_class, in p2p_channels_remove_freqs() local 230 if (freq > 0 && freq_range_list_includes(list, freq)) { in p2p_channels_remove_freqs() 275 unsigned int freq) in p2p_channels_includes_freq() argument 282 reg->channel[j]) == (int) freq) in p2p_channels_includes_freq() 290 int p2p_supported_freq(struct p2p_data *p2p, unsigned int freq) in p2p_supported_freq() argument 293 if (p2p_freq_to_channel(freq, &op_reg_class, &op_channel) < 0) in p2p_supported_freq() 300 int p2p_supported_freq_go(struct p2p_data *p2p, unsigned int freq) in p2p_supported_freq_go() argument 303 if (p2p_freq_to_channel(freq, &op_reg_class, &op_channel) < 0) in p2p_supported_freq_go() [all …]
|
/third_party/vk-gl-cts/framework/delibs/deutil/ |
D | deClock.c | 40 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/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
D | offchannel.c | 259 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_SEC(dst), MAC2STR_SEC(src), MAC2STR_SEC(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 …]
|
D | dpp_supplicant.c | 33 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_SEC(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 …]
|
D | p2p_supplicant.c | 141 static int wpas_p2p_join_start(struct wpa_supplicant *wpa_s, int freq, 143 static int wpas_p2p_setup_freqs(struct wpa_supplicant *wpa_s, int freq, 147 static void wpas_p2p_join_scan_req(struct wpa_supplicant *wpa_s, int freq, 152 int auto_join, int freq, 175 static int wpas_p2p_go_is_peer_freq(struct wpa_supplicant *wpa_s, int freq); 241 if (p2p_supported_freq(wpa_s->global->p2p, freqs[i].freq)) in wpas_p2p_valid_oper_freqs() 254 int freq) in wpas_p2p_set_own_freq_preference() argument 263 freq > 0 && wpa_s->num_multichan_concurrent > 1 && in wpas_p2p_set_own_freq_preference() 266 freq); in wpas_p2p_set_own_freq_preference() 267 freq = 0; in wpas_p2p_set_own_freq_preference() [all …]
|
D | mesh.c | 219 ¶ms->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() 387 struct hostapd_freq_params *freq) in wpa_supplicant_mesh_init() argument 432 if (frequency != freq->freq && in wpa_supplicant_mesh_init() 433 frequency == freq->freq + freq->sec_channel_offset * 20) { in wpa_supplicant_mesh_init() 435 frequency = freq->freq; in wpa_supplicant_mesh_init() 446 if (is_6ghz_freq(freq->freq)) { in wpa_supplicant_mesh_init() [all …]
|
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/java/com/mobileer/miditools/synth/ |
D | SawOscillatorDPW.java | 30 public void setFrequency(float freq) { in setFrequency() argument 32 freq = Math.abs(freq); in setFrequency() 33 super.setFrequency(freq); in setFrequency() 34 if (freq < VERY_LOW_FREQ) { in setFrequency() 37 mScaler = (float) (0.125 * 44100 / freq); in setFrequency()
|
/third_party/alsa-utils/bat/tests/ |
D | analog_audio_playback_and_capture.sh | 67 for freq in $freq_table 69 alsabat -P $device -C plug$record_device -c $test_channel -F $freq 71 echo "Test target frequency:$freq for Analog playback -- Passed \ 73 echo "Test target frequency:$freq for Analog capture -- Passed \ 76 echo "Test target frequency:$freq for Analog playback -- Failed \ 78 echo "Test target frequency:$freq for Analog capture -- Failed \
|