Home
last modified time | relevance | path

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

12345678910>>...29

/netbsd/sys/arch/arm/imx/
H A Dimx51_ccm.c250 return freq; in imx51_get_clock()
289 return freq; in imx51_get_clock()
330 return freq; in imx51_get_clock()
347 return freq; in imx51_get_clock()
389 return freq; in imx51_get_clock()
406 return freq; in imx51_get_clock()
436 return freq; in imx51_get_clock()
552 freq = (ref * mfi) + freq; in imx51_get_pll_freq()
560 freq /= 2; in imx51_get_pll_freq()
574 return freq; in imx51_get_pll_freq()
[all …]
/netbsd/sys/dev/ic/
H A Dtea5757.c70 freq -= IF_FREQ; in tea5757_encode_freq()
72 freq += IF_FREQ; in tea5757_encode_freq()
77 freq *= 10; in tea5757_encode_freq()
78 freq /= 125; in tea5757_encode_freq()
91 freq /= 10; in tea5757_decode_freq()
94 freq += IF_FREQ; in tea5757_decode_freq()
96 freq -= IF_FREQ; in tea5757_decode_freq()
98 return freq; in tea5757_decode_freq()
144 freq = MIN_FM_FREQ; in tea5757_set_freq()
146 freq = MAX_FM_FREQ; in tea5757_set_freq()
[all …]
H A Drtwphy.c71 u_int freq) in rtw_bbp_preinit() argument
76 if (freq == 2484) /* channel 14 */ in rtw_bbp_preinit()
128 verify_syna(u_int freq, uint32_t val) in verify_syna() argument
133 switch (freq) { in verify_syna()
195 int n = freq / 4, nf = (freq % 4) * 2; in rtw_sa2400_tune()
198 verify_syna(freq, syna); in rtw_sa2400_tune()
512 if (freq == 2484) in rtw_grf5101_tune()
517 freq)); in rtw_grf5101_tune()
633 if (freq < 2400 || freq > 2499) in rtw_max2820_tune()
778 freq)) != 0) in rtw_phy_init()
[all …]
/netbsd/external/bsd/wpa/dist/src/common/
H A Dieee802_11_common.c735 if (freq >= 2412 && freq <= 2472) { in ieee80211_freq_to_channel_ext()
765 if (freq >= 4900 && freq < 5000) { in ieee80211_freq_to_channel_ext()
789 if (freq >= 5180 && freq <= 5240) { in ieee80211_freq_to_channel_ext()
808 if (freq >= 5260 && freq <= 5320) { in ieee80211_freq_to_channel_ext()
827 if (freq >= 5745 && freq <= 5845) { in ieee80211_freq_to_channel_ext()
848 if (freq >= 5000 && freq <= 5700) { in ieee80211_freq_to_channel_ext()
866 if (freq >= 5000 && freq < 5900) { in ieee80211_freq_to_channel_ext()
1181 int freq; in ieee80211_chan_to_freq() local
1217 return (freq >= 5260 && freq <= 5320) || in ieee80211_is_dfs()
1218 (freq >= 5500 && freq <= 5700); in ieee80211_is_dfs()
[all …]
H A 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()
56 if (ch->freq == freq) { in hw_get_channel_freq()
69 int freq; in hw_get_freq() local
73 return freq; in hw_get_freq()
253 if (bss->freq < start || bss->freq > end || bss->freq == pri_freq) in check_20mhz_bss()
297 int pri = bss->freq; in check_40mhz_2g4()
[all …]
H A Dgas_server.c38 int freq; member
62 response->freq, response->frag_id, in gas_server_response_timeout()
86 const u8 *da, int freq, u8 dialog_token, in gas_server_send_resp() argument
89 size_t max_len = (freq > 56160) ? 928 : 1400; in gas_server_send_resp()
105 response->freq = freq; in gas_server_send_resp()
160 const u8 *bssid, int freq, u8 dialog_token, in gas_server_rx_initial_req() argument
290 const u8 *bssid, int freq, u8 dialog_token) in gas_server_rx_comeback_req() argument
323 int freq) in gas_server_rx() argument
352 freq, dialog_token, in gas_server_rx()
355 freq, dialog_token); in gas_server_rx()
[all …]
/netbsd/external/bsd/wpa/dist/src/ap/
H A Ddfs.c131 if (mode->channels[i].freq == freq) in dfs_get_chan_data()
498 if (chan->freq == freq) { in set_dfs_state_freq()
517 int frequency = freq; in set_dfs_state()
724 iface->freq = channel->freq; in hostapd_handle_dfs()
737 iface->freq, in hostapd_handle_dfs()
867 iface->freq = channel->freq; in hostapd_dfs_start_channel_switch_cac()
936 iface->freq = channel->freq; in hostapd_dfs_start_channel_switch()
961 channel->freq, in hostapd_dfs_start_channel_switch()
988 iface->freq = channel->freq; in hostapd_dfs_start_channel_switch()
1099 freq, (freq - 5000) / 5, chan_offset, chan_width, cf1, cf2, 60); in hostapd_dfs_start_cac()
[all …]
H A Ddpp_hostapd.c196 (unsigned int) hapd->iface->freq && hapd->iface->freq > 0) { in hostapd_dpp_tx_status()
213 unsigned int freq; in hostapd_dpp_reply_wait_timeout() local
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()
362 freq = auth->freq[auth->freq_idx++]; in hostapd_dpp_auth_init_next()
490 int freq; in hostapd_dpp_listen() local
492 freq = atoi(cmd); in hostapd_dpp_listen()
493 if (freq <= 0) in hostapd_dpp_listen()
505 if (freq != hapd->iface->freq && hapd->iface->freq > 0) { in hostapd_dpp_listen()
509 freq, hapd->iface->freq); in hostapd_dpp_listen()
[all …]
/netbsd/sys/external/isc/libsodium/dist/test/default/
H A Drandombytes.c6 static unsigned long long freq[256]; variable
16 freq[i] = 0; in compat_tests()
19 ++freq[255 & (int) x[i]]; in compat_tests()
22 if (!freq[i]) { in compat_tests()
63 freq[i] = 0; in randombytes_tests()
69 if (!freq[i]) { in randombytes_tests()
81 freq[i] = 0; in randombytes_tests()
87 if (!freq[i]) { in randombytes_tests()
94 freq[i] = 0; in randombytes_tests()
97 ++freq[255 & (int) x[i]]; in randombytes_tests()
[all …]
/netbsd/sys/kern/
H A Dsubr_cpufreq.c262 uint32_t freq; in cpufreq_get() local
271 freq = cpufreq_get_raw(ci); in cpufreq_get()
274 return freq; in cpufreq_get()
303 uint32_t freq = 0; in cpufreq_get_raw() local
312 return freq; in cpufreq_get_raw()
391 if (freq == f) in cpufreq_get_state_raw()
393 else if (freq > f) in cpufreq_get_state_raw()
415 cpufreq_set_raw(ci, freq); in cpufreq_set()
444 cpufreq_set_all_raw(freq); in cpufreq_set_all()
479 uint32_t freq; in cpufreq_set_step() local
[all …]
/netbsd/external/bsd/wpa/dist/wpa_supplicant/
H A Ddpp_supplicant.c253 unsigned int freq; in wpas_dpp_reply_wait_timeout() local
397 freq = auth->freq[auth->freq_idx++]; in wpas_dpp_auth_init_next()
638 lwork->freq = freq; in wpas_dpp_listen_start()
652 int freq; in wpas_dpp_listen() local
655 if (freq <= 0) in wpas_dpp_listen()
669 freq); in wpas_dpp_listen()
1193 if (auth->curr_freq != freq && auth->neg_freq == freq) { in wpas_dpp_rx_auth_resp()
1459 if (chan->freq != (int) freq) in wpas_dpp_allow_ir()
1473 freq); in wpas_dpp_allow_ir()
1841 freq); in wpas_dpp_rx_action()
[all …]
H A Doffchannel.c263 unsigned int freq, const u8 *dst, in offchannel_send_action()
298 wpa_s->pending_action_freq = freq; 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()
375 "Frame TX", freq); in offchannel_send_action()
379 wpa_s->roc_waiting_drv_freq = freq; in offchannel_send_action()
427 wpa_s->off_channel_freq = freq; in offchannel_remain_on_channel_cb()
[all …]
H A Dp2p_supplicant.c339 (freq == 2412 || freq == 2437 || freq == 2462)) { in wpas_p2p_search_social_channel()
1568 awork->freq = freq; in wpas_send_action_work()
2555 lwork->freq = freq; in wpas_start_listen()
4892 freq = bss->freq; in wpas_p2p_scan_res_join()
5000 freq = bss->freq; in wpas_p2p_scan_res_join()
5263 res.freq = freq; in wpas_p2p_join_start()
5275 res.freq = bss->freq; in wpas_p2p_join_start()
5369 if (freqs[i].freq == freq) in wpas_p2p_setup_freqs()
6041 params->freq = freq; in wpas_p2p_init_go_params()
6056 params->freq = freq; in wpas_p2p_init_go_params()
[all …]
/netbsd/external/bsd/wpa/dist/src/p2p/
H A Dp2p_utils.c227 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()
324 int freq = 0; in p2p_get_pref_freq() local
334 if (p2p_channels_includes_freq(tmpc, freq)) in p2p_get_pref_freq()
335 return freq; in p2p_get_pref_freq()
474 int freq; in p2p_channels_to_freqs() local
479 freq = p2p_channel_to_freq(c->reg_class, in p2p_channels_to_freqs()
481 if (freq < 0) in p2p_channels_to_freqs()
485 if (freq_list[k] == freq) in p2p_channels_to_freqs()
[all …]
/netbsd/sys/arch/evbmips/evbmips/
H A Dyamon.c137 uint32_t freq; in yamon_setcpufreq() local
140 ret = YAMON_SYSCON_READ(SYSCON_BOARD_CPU_CLOCK_FREQ_ID, &freq, in yamon_setcpufreq()
141 sizeof(freq)); in yamon_setcpufreq()
142 if (!force && (ret != 0 || freq == 0)) in yamon_setcpufreq()
145 if (ret != 0 || freq == 0) { in yamon_setcpufreq()
146 freq = 100 * 1000 * 1000; in yamon_setcpufreq()
151 ci->ci_cpu_freq = freq; in yamon_setcpufreq()
152 ci->ci_cycles_per_hz = (freq + hz / 2) / hz; in yamon_setcpufreq()
153 ci->ci_divisor_delay = ((freq + 500000) / 1000000); in yamon_setcpufreq()
/netbsd/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/clk/
H A Dnouveau_nvkm_subdev_clk_gf100.c38 u32 freq; member
232 switch (freq) { in calc_src()
236 if (freq == 108000) in calc_src()
238 return freq; in calc_src()
241 return freq; in calc_src()
282 u32 freq = cstate->domain[dom]; in calc_clk() local
287 if (!freq) in calc_clk()
304 if (abs((int)freq - clk0) <= abs((int)freq - clk1)) { in calc_clk()
316 info->freq = clk0; in calc_clk()
323 info->freq = clk1; in calc_clk()
[all …]
H A Dnouveau_nvkm_subdev_clk_gk104.c38 u32 freq; member
245 switch (freq) { in calc_src()
249 if (freq == 108000) in calc_src()
251 return freq; in calc_src()
254 return freq; in calc_src()
296 u32 freq = cstate->domain[dom]; in calc_clk() local
301 if (!freq) in calc_clk()
318 if (abs((int)freq - clk0) <= abs((int)freq - clk1)) { in calc_clk()
329 info->freq = clk0; in calc_clk()
337 info->freq = clk1; in calc_clk()
[all …]
/netbsd/sys/dev/i2c/
H A Dtea5767.c51 uint32_t freq; member
120 sc->tune.freq = MIN_FM_FREQ; in tea5767_attach()
209 pll_word = 4 * (tune.freq - 225) * 1000 / 50000; in tea5767_freq_to_pll()
211 pll_word = 4 * (tune.freq - 225) * 1000 / 32768; in tea5767_freq_to_pll()
215 pll_word = 4 * (tune.freq - 225) * 1000 / 50000; in tea5767_freq_to_pll()
265 tune->freq = pll_word * 50 / 4 + 225; in tea5767_pll_to_freq()
267 tune->freq = pll_word * 32768 / 4000 + 225; in tea5767_pll_to_freq()
269 tune->freq = pll_word * 50 / 4 + 225; in tea5767_pll_to_freq()
282 ri->freq = sc->tune.freq; in tea5767_get_info()
299 sc->tune.freq = ri->freq; in tea5767_set_info()
[all …]
/netbsd/sys/external/isc/atheros_hal/dist/
H A Dah.c260 freq *= 10; in mapgsm()
262 freq += 5; in mapgsm()
264 freq += 10; in mapgsm()
266 freq += 20; in mapgsm()
267 return (freq - 24220) / 5; in mapgsm()
273 return ((freq * 10) + (((freq % 5) == 2) ? 5 : 0) - 49400) / 5; in mappsb()
283 if (freq == 2484) in ath_hal_mhz2ieee()
285 if (freq < 2484) { in ath_hal_mhz2ieee()
301 if (freq == 2484) in ath_hal_mhz2ieee()
303 if (freq < 2484) { in ath_hal_mhz2ieee()
[all …]
/netbsd/sys/arch/arm/acpi/
H A Dacpi_cpu_md.c146 uint32_t freq; in acpicpu_md_pstate_sysctl_current() local
149 freq = cpufreq_get(curcpu()); in acpicpu_md_pstate_sysctl_current()
150 if (freq == 0) in acpicpu_md_pstate_sysctl_current()
154 node.sysctl_data = &freq; in acpicpu_md_pstate_sysctl_current()
173 uint32_t freq; in acpicpu_md_pstate_sysctl_target() local
176 freq = cpufreq_get(curcpu()); in acpicpu_md_pstate_sysctl_target()
177 if (freq == 0) in acpicpu_md_pstate_sysctl_target()
181 node.sysctl_data = &freq; in acpicpu_md_pstate_sysctl_target()
187 cpufreq_set_all(freq); in acpicpu_md_pstate_sysctl_target()
323 acpicpu_md_pstate_get(struct acpicpu_softc *sc, uint32_t *freq) in acpicpu_md_pstate_get() argument
/netbsd/sys/dev/isa/
H A Dradiotrack2.c100 u_int32_t freq; member
174 sc->freq = MIN_FM_FREQ; in rtii_attach()
191 tea5757_set_freq(&sc->tea, sc->stereo, sc->lock, sc->freq); in rtii_attach()
231 u_int32_t freq; in rtii_find() local
248 sc.freq = MIN_FM_FREQ; in rtii_find()
249 tea5757_set_freq(&sc.tea, sc.stereo, sc.lock, sc.freq); in rtii_find()
251 freq = rtii_hw_read(iot, ioh, sc.tea.offset); in rtii_find()
252 if (tea5757_decode_freq(freq, 0) == sc.freq) in rtii_find()
304 ri->freq = sc->freq = tea5757_decode_freq(rtii_hw_read(sc->tea.iot, in rtii_get_info()
330 ri->freq = sc->freq = tea5757_set_freq(&sc->tea, in rtii_set_info()
[all …]
H A Dsf16fmr2.c100 u_int32_t freq; member
174 sc->freq = MIN_FM_FREQ; in sf2r_attach()
191 tea5757_set_freq(&sc->tea, sc->stereo, sc->lock, sc->freq); in sf2r_attach()
230 u_int32_t freq; in sf2r_find() local
248 sc.freq = MIN_FM_FREQ; in sf2r_find()
249 tea5757_set_freq(&sc.tea, sc.stereo, sc.lock, sc.freq); in sf2r_find()
251 freq = sf2r_read_register(iot, ioh, sc.tea.offset); in sf2r_find()
252 if (tea5757_decode_freq(freq, 0) == sc.freq) in sf2r_find()
324 ri->freq = sc->freq = tea5757_decode_freq(buf, 0); in sf2r_get_info()
339 ri->freq = sc->freq = tea5757_set_freq(&sc->tea, in sf2r_set_info()
[all …]
/netbsd/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
H A Damdgpu_afmt.c56 static void amdgpu_afmt_calc_cts(uint32_t clock, int *CTS, int *N, int freq) in amdgpu_afmt_calc_cts() argument
62 n = 128 * freq; in amdgpu_afmt_calc_cts()
75 mul = ((128*freq/1000) + (n-1))/n; in amdgpu_afmt_calc_cts()
81 if (n < (128*freq/1500)) in amdgpu_afmt_calc_cts()
83 if (n > (128*freq/300)) in amdgpu_afmt_calc_cts()
90 *N, *CTS, freq); in amdgpu_afmt_calc_cts()
/netbsd/sys/arch/x86/x86/
H A Dpowernow.c414 sc->sc_state->state_table[i - 1].freq)) in powernow_k7_init()
424 sc->sc_state->state_table[i].freq, in powernow_k7_init()
533 if (sc->sc_state->state_table[i].freq >= freq) { in powernow_k7_setperf()
534 DPRINTF(("%s: freq=%d\n", __func__, freq)); in powernow_k7_setperf()
588 freq = sc->sc_state->state_table[i].freq; in powernow_k7_setperf()
630 while (j > 0 && cstate->state_table[j - 1].freq > state.freq) { in powernow_k7_decode_pst()
694 sc->sc_state->state_table[i].freq, in powernow_k8_init()
811 if (sc->sc_state->state_table[i].freq >= freq) { in powernow_k8_setperf()
895 freq = sc->sc_state->state_table[i].freq; in powernow_k8_setperf()
941 state.freq = 800 + state.fid * 100; in powernow_k8_decode_pst()
[all …]
/netbsd/external/bsd/ntp/dist/ntpd/
H A Dntp_loopfilter.c1084 drift_comp = freq; in set_freq()
1243 double freq in loop_config() argument
1314 clock_phi = freq / 1e6; in loop_config()
1318 init_drift_comp = freq; in loop_config()
1323 if (freq < HUFFPUFF) in loop_config()
1324 freq = HUFFPUFF; in loop_config()
1333 clock_panic = freq; in loop_config()
1338 if (freq == 0 || freq > 0.5) in loop_config()
1343 clock_max_back = freq; in loop_config()
1355 clock_max_fwd = freq; in loop_config()
[all …]

12345678910>>...29