Home
last modified time | relevance | path

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

12345678910>>...17

/netbsd/src/sys/arch/arm/imx/
Dimx51_ccm.c153 u_int freq = 0; in imx51_get_clock() local
207 freq = imx51_get_clock(IMX51CLK_PLL1SW); in imx51_get_clock()
209 return freq / (cacrr + 1); in imx51_get_clock()
217 freq = imx51_get_clock(IMX51CLK_PLL1SW); in imx51_get_clock()
220 freq = imx51_get_clock(IMX51CLK_PLL2SW); in imx51_get_clock()
223 freq = imx51_get_clock(IMX51CLK_PLL3SW); in imx51_get_clock()
226 freq = imx51_get_clock(IMX51CLK_LP_APM); in imx51_get_clock()
231 freq = imx51_get_clock(IMX51CLK_PLL2SW); in imx51_get_clock()
236 freq = imx51_get_clock(IMX51CLK_PLL1SW); in imx51_get_clock()
239 freq = imx51_get_clock(IMX51CLK_PLL3SW); in imx51_get_clock()
[all …]
/netbsd/src/sys/dev/ic/
Dtea5757.c67 tea5757_encode_freq(u_int32_t freq, int tea5759) in tea5757_encode_freq() argument
70 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()
80 return freq & TEA5757_FREQ; in tea5757_encode_freq()
87 tea5757_decode_freq(u_int32_t freq, int tea5759) in tea5757_decode_freq() argument
89 freq &= TEA5757_FREQ; in tea5757_decode_freq()
90 freq *= 125; /* 12.5 kHz */ in tea5757_decode_freq()
91 freq /= 10; in tea5757_decode_freq()
[all …]
Drtwphy.c71 u_int freq) in rtw_bbp_preinit() argument
76 if (freq == 2484) /* channel 14 */ in rtw_bbp_preinit()
83 int dflantb, uint8_t cs_threshold, u_int freq) in rtw_bbp_init() argument
105 if ((rc = rtw_bbp_preinit(regs, bb->bb_antatten, dflantb, freq)) != 0) in rtw_bbp_init()
128 verify_syna(u_int freq, uint32_t val) in verify_syna() argument
133 switch (freq) { in verify_syna()
183 rtw_sa2400_tune(struct rtw_rf *rf, u_int freq) in rtw_sa2400_tune() argument
195 int n = freq / 4, nf = (freq % 4) * 2; in rtw_sa2400_tune()
198 verify_syna(freq, syna); in rtw_sa2400_tune()
365 rtw_sa2400_calibrate(struct rtw_rf *rf, u_int freq) in rtw_sa2400_calibrate() argument
[all …]
/netbsd/src/external/bsd/wpa/dist/src/ap/
Ddfs.c159 dfs_get_chan_data(struct hostapd_hw_modes *mode, int freq, int first_chan_idx) in dfs_get_chan_data() argument
164 if (mode->channels[i].freq == freq) in dfs_get_chan_data()
197 chan = dfs_get_chan_data(mode, first_chan->freq + i * 20, in dfs_chan_range_available()
201 first_chan->freq + i * 20); in dfs_chan_range_available()
209 first_chan->freq + i * 20); in dfs_chan_range_available()
215 first_chan->freq + i * 20); in dfs_chan_range_available()
263 chan->freq, chan->chan); in dfs_find_channel()
271 chan->freq, chan->chan); in dfs_find_channel()
278 chan->freq, chan->chan); in dfs_find_channel()
291 chan->freq, chan->chan); in dfs_find_channel()
[all …]
Dacs.c447 if (chan->freq == bw_desc[bw][i].first) in acs_usable_bw_chan()
456 static int acs_get_bw_center_chan(int freq, enum bw_type bw) in acs_get_bw_center_chan() argument
461 if (freq >= bw_desc[bw][i].first && in acs_get_bw_center_chan()
462 freq <= bw_desc[bw][i].last) in acs_get_bw_center_chan()
476 survey->freq); in acs_survey_is_sufficient()
483 survey->freq); in acs_survey_is_sufficient()
491 survey->freq); in acs_survey_is_sufficient()
583 chan->freq); in is_in_freqlist()
617 chan->chan, chan->freq); in acs_survey_mode_interference_factor()
642 acs_find_chan_mode(struct hostapd_hw_modes *mode, int freq) in acs_find_chan_mode() argument
[all …]
Ddpp_hostapd.c227 static int hostapd_dpp_allow_ir(struct hostapd_data *hapd, unsigned int freq) in hostapd_dpp_allow_ir() argument
240 if (chan->freq != (int) freq) in hostapd_dpp_allow_ir()
254 freq); in hostapd_dpp_allow_ir()
263 if (pkex->freq == 2437) in hostapd_dpp_pkex_next_channel()
264 pkex->freq = 5745; in hostapd_dpp_pkex_next_channel()
265 else if (pkex->freq == 5745) in hostapd_dpp_pkex_next_channel()
266 pkex->freq = 5220; in hostapd_dpp_pkex_next_channel()
267 else if (pkex->freq == 5220) in hostapd_dpp_pkex_next_channel()
268 pkex->freq = 60480; in hostapd_dpp_pkex_next_channel()
272 if (hostapd_dpp_allow_ir(hapd, pkex->freq) == 1) { in hostapd_dpp_pkex_next_channel()
[all …]
Dhw_features.c125 is_6ghz == is_6ghz_freq(feature->channels[0].freq)) in hostapd_get_hw_features()
159 feature->channels[j].freq, in hostapd_get_hw_features()
259 pri_freq = iface->freq; in ieee80211n_allowed_ht40_channel_pair()
282 iface->freq += 20; in ieee80211n_switch_pri_sec()
286 iface->freq -= 20; in ieee80211n_switch_pri_sec()
299 pri_freq = iface->freq; in ieee80211n_check_40mhz_5g()
422 pri_freq = iface->freq; in ieee80211n_scan_channels_2g4()
447 if (chan->freq < affected_start || in ieee80211n_scan_channels_2g4()
448 chan->freq > affected_end) in ieee80211n_scan_channels_2g4()
450 params->freqs[pos++] = chan->freq; in ieee80211n_scan_channels_2g4()
[all …]
/netbsd/src/sys/arch/x86/x86/
Didentcpu_subr.c71 uint64_t freq; in tsc_freq_vmware_cpuid() local
78 freq = descs[0]; in tsc_freq_vmware_cpuid()
79 if (freq == 0) in tsc_freq_vmware_cpuid()
94 return freq * 1000; in tsc_freq_vmware_cpuid()
101 uint64_t freq = 0, khz; in tsc_freq_cpuid() local
142 freq = khz * 1000 * numerator / denominator; in tsc_freq_cpuid()
154 if (freq == 0) { in tsc_freq_cpuid()
157 freq = (uint64_t)descs[0] * 1000000; in tsc_freq_cpuid()
176 return freq; in tsc_freq_cpuid()
182 uint64_t freq = 0; in cpu_tsc_freq_cpuid() local
[all …]
Dpowernow.c413 if (i > 0 && (sc->sc_state->state_table[i].freq == in powernow_k7_init()
414 sc->sc_state->state_table[i - 1].freq)) in powernow_k7_init()
418 __func__, sc->sc_state->state_table[i].freq)); in powernow_k7_init()
424 sc->sc_state->state_table[i].freq, in powernow_k7_init()
521 powernow_k7_setperf(device_t self, unsigned int freq) in powernow_k7_setperf() argument
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()
622 state.freq = powernow_k7_fidtomult[state.fid]/10 * cstate->fsb; in powernow_k7_decode_pst()
630 while (j > 0 && cstate->state_table[j - 1].freq > state.freq) { in powernow_k7_decode_pst()
[all …]
/netbsd/src/external/bsd/wpa/dist/wpa_supplicant/
Dnan_usd.c36 unsigned int freq, const u8 *dst, in wpas_nan_de_tx_status() argument
46 MAC2STR(dst), MAC2STR(src), MAC2STR(bssid), freq, in wpas_nan_de_tx_status()
49 nan_de_tx_status(wpa_s->nan_de, freq, dst); in wpas_nan_de_tx_status()
54 unsigned int freq; member
86 static int wpas_nan_de_tx_send(struct wpa_supplicant *wpa_s, unsigned int freq, in wpas_nan_de_tx_send() argument
93 MAC2STR(dst), MAC2STR(src), MAC2STR(bssid), freq, in wpas_nan_de_tx_send()
96 return offchannel_send_action(wpa_s, freq, dst, src, bssid, in wpas_nan_de_tx_send()
118 if (wpas_nan_de_tx_send(wpa_s, twork->freq, twork->wait_time, in wpas_nan_usd_start_tx_cb()
125 static int wpas_nan_de_tx(void *ctx, unsigned int freq, unsigned int wait_time, in wpas_nan_de_tx() argument
134 return wpas_nan_de_tx_send(wpa_s, freq, wait_time, dst, src, in wpas_nan_de_tx()
[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.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);
166 unsigned 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()
[all …]
Dmesh.c219 &params->freq, in wpas_mesh_update_freq_params()
221 ifmsh->freq, in wpas_mesh_update_freq_params()
261 if (ifmsh->freq > 0 && ifmsh->freq != params->freq.freq) { in wpas_mesh_complete()
262 wpa_s->assoc_freq = ifmsh->freq; in wpas_mesh_complete()
263 ssid->frequency = ifmsh->freq; in wpas_mesh_complete()
383 struct hostapd_freq_params *freq) in wpa_supplicant_mesh_init() argument
428 if (frequency != freq->freq && in wpa_supplicant_mesh_init()
429 frequency == freq->freq + freq->sec_channel_offset * 20) { in wpa_supplicant_mesh_init()
431 frequency = freq->freq; in wpa_supplicant_mesh_init()
442 if (is_6ghz_freq(freq->freq)) { in wpa_supplicant_mesh_init()
[all …]
Ddpp_supplicant.c35 unsigned int freq);
40 unsigned int freq, const u8 *dst,
48 unsigned int freq, const u8 *dst,
273 unsigned int freq, in wpas_dpp_stop_listen_for_tx() argument
289 if (wpa_s->dpp_listen_freq == freq && remaining > wait_time) in wpas_dpp_stop_listen_for_tx()
294 wpa_s->dpp_listen_freq, remaining, freq, wait_time); in wpas_dpp_stop_listen_for_tx()
502 unsigned int freq, const u8 *dst, in wpas_dpp_tx_status() argument
514 " result=%s", freq, MAC2STR(dst), res_txt); in wpas_dpp_tx_status()
516 " freq=%u result=%s", MAC2STR(dst), freq, res_txt); in wpas_dpp_tx_status()
630 unsigned int freq; in wpas_dpp_reply_wait_timeout() local
[all …]
/netbsd/src/external/bsd/wpa/dist/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.c1363 enum hostapd_hw_mode ieee80211_freq_to_chan(int freq, u8 *channel) in ieee80211_freq_to_chan() argument
1367 return ieee80211_freq_to_channel_ext(freq, 0, CONF_OPER_CHWIDTH_USE_HT, in ieee80211_freq_to_chan()
1383 ieee80211_freq_to_channel_ext(unsigned int freq, int sec_channel, in ieee80211_freq_to_channel_ext() argument
1394 if (freq >= 2412 && freq <= 2472) { in ieee80211_freq_to_channel_ext()
1395 if ((freq - 2407) % 5) in ieee80211_freq_to_channel_ext()
1409 *channel = (freq - 2407) / 5; in ieee80211_freq_to_channel_ext()
1414 if (freq == 2484) { in ieee80211_freq_to_channel_ext()
1424 if (freq >= 4900 && freq < 5000) { in ieee80211_freq_to_channel_ext()
1425 if ((freq - 4000) % 5) in ieee80211_freq_to_channel_ext()
1427 *channel = (freq - 4000) / 5; in ieee80211_freq_to_channel_ext()
[all …]
Dnan_de.h30 int (*tx)(void *ctx, unsigned int freq, unsigned int wait_time,
33 int (*listen)(void *ctx, unsigned int freq, unsigned int duration);
63 void nan_de_listen_started(struct nan_de *de, unsigned int freq,
65 void nan_de_listen_ended(struct nan_de *de, unsigned int freq);
66 void nan_de_tx_status(struct nan_de *de, unsigned int freq, const u8 *dst);
69 void nan_de_rx_sdf(struct nan_de *de, const u8 *peer_addr, unsigned int freq,
95 unsigned int freq; member
125 unsigned int freq; member
/netbsd/src/sys/kern/
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
309 xc = xc_unicast(0, (*cf->cf_get_freq), cf->cf_cookie, &freq, ci); in cpufreq_get_raw()
312 return freq; in cpufreq_get_raw()
334 cpufreq_get_state(uint32_t freq, struct cpufreq_state *cfs) in cpufreq_get_state() argument
345 cpufreq_get_state_raw(freq, cfs); in cpufreq_get_state()
375 cpufreq_get_state_raw(uint32_t freq, struct cpufreq_state *cfs) in cpufreq_get_state_raw() argument
391 if (freq == f) in cpufreq_get_state_raw()
[all …]
/netbsd/src/external/bsd/wpa/dist/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 …]
/netbsd/src/sys/arch/evbmips/evbmips/
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/src/sys/dev/i2c/
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/src/sys/external/isc/atheros_hal/dist/
Dah.c258 mapgsm(u_int freq, u_int flags) in mapgsm() argument
260 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()
271 mappsb(u_int freq, u_int flags) in mappsb() argument
273 return ((freq * 10) + (((freq % 5) == 2) ? 5 : 0) - 49400) / 5; in mappsb()
280 ath_hal_mhz2ieee(struct ath_hal *ah, u_int freq, u_int flags) in ath_hal_mhz2ieee() argument
283 if (freq == 2484) in ath_hal_mhz2ieee()
[all …]
/netbsd/src/sys/dev/isa/
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 …]
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/src/external/bsd/ntp/dist/ntpd/
Dntp_loopfilter.c821 clock_frequency = FREQTOD(ntv.freq); in local_clock()
1090 double freq /* frequency update */ in set_freq() argument
1097 drift_comp = freq; in set_freq()
1105 ntv.freq = DTOFREQ(drift_comp); in set_freq()
1138 ntv.freq = DTOFREQ(drift_comp); in start_kern_loop()
1261 double freq in loop_config() argument
1267 DPRINTF(2, ("loop_config: item %d freq %f\n", item, freq)); in loop_config()
1324 allan_xpt = (u_char)freq; in loop_config()
1328 clock_codec = freq / 1e6; in loop_config()
1332 clock_phi = freq / 1e6; in loop_config()
[all …]

12345678910>>...17