Home
last modified time | relevance | path

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

12345678910>>...28

/freebsd/sys/dev/clk/rockchip/
H A Drk3399_pmucru.c140 .freq = 2208000000,
148 .freq = 2184000000,
156 .freq = 2160000000,
164 .freq = 2136000000,
172 .freq = 2112000000,
180 .freq = 2088000000,
188 .freq = 2064000000,
196 .freq = 2040000000,
204 .freq = 2016000000,
212 .freq = 1992000000,
[all …]
/freebsd/sys/gnu/dev/bwn/phy_n/
H A Dif_bwn_radio_2057.c244 .freq = 2412,
251 .freq = 2417,
258 .freq = 2422,
265 .freq = 2427,
272 .freq = 2432,
279 .freq = 2437,
286 .freq = 2442,
293 .freq = 2447,
300 .freq = 2452,
307 .freq = 2457,
[all …]
H A Dif_bwn_radio_2055.c353 .freq = 4920, /* MHz */
361 .freq = 4930, /* MHz */
369 .freq = 4940, /* MHz */
377 .freq = 4950, /* MHz */
385 .freq = 4960, /* MHz */
393 .freq = 4970, /* MHz */
401 .freq = 4980, /* MHz */
409 .freq = 4990, /* MHz */
417 .freq = 5000, /* MHz */
425 .freq = 5010, /* MHz */
[all …]
H A Dif_bwn_radio_2056.c3140 { .freq = 4920,
3148 { .freq = 4930,
3156 { .freq = 4940,
3164 { .freq = 4950,
3172 { .freq = 4960,
3180 { .freq = 4970,
3188 { .freq = 4980,
3196 { .freq = 4990,
3204 { .freq = 5000,
3212 { .freq = 5010,
[all …]
/freebsd/sys/arm64/nvidia/tegra210/
H A Dtegra210_cpufreq.c50 uint64_t freq; /* Frequency point */ member
66 uint64_t freq; /* Frequecy */ member
179 freq_to_voltage(struct tegra210_cpufreq_softc *sc, uint64_t freq) in freq_to_voltage() argument
188 if (sc->cpu_def->speedo_tbl[i].freq >= freq) { in freq_to_voltage()
225 sc->speed_points[i].freq = cpu_freq_tbl[i]; in build_speed_points()
232 get_speed_point(struct tegra210_cpufreq_softc *sc, uint64_t freq) in get_speed_point() argument
236 if (sc->speed_points[0].freq >= freq) in get_speed_point()
240 if (sc->speed_points[i + 1].freq > freq) in get_speed_point()
260 if (sc->cpu_max_freq < sc->speed_points[j].freq) in tegra210_cpufreq_settings()
262 sets[i].freq = sc->speed_points[j].freq / 1000000; in tegra210_cpufreq_settings()
[all …]
/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_radio.c85 u_int32_t freq, channel_sel, reg32; in ar9300_set_channel() local
102 freq = centers.synth_center; in ar9300_set_channel()
104 if (freq < 4800) { /* 2 GHz, fractional mode */ in ar9300_set_channel()
132 i = ath_hal_mhz2ieee_2ghz(ah, freq); in ar9300_set_channel()
147 channel_sel = (freq * 4) / 120; in ar9300_set_channel()
148 channel_frac = (((freq * 4) % 120) * 0x20000) / 120; in ar9300_set_channel()
161 channel_sel = (freq * 4) / 75; in ar9300_set_channel()
162 channel_frac = (((freq * 4) % 75) * 0x20000) / 75; in ar9300_set_channel()
164 channel_sel = (freq * 2) / 75; in ar9300_set_channel()
165 channel_frac = (((freq * 2) % 75) * 0x20000) / 75; in ar9300_set_channel()
[all …]
/freebsd/contrib/wpa/src/ap/
H A 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 …]
H A 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 …]
/freebsd/sys/kern/
H A Dkern_cpu.c172 sc->curr_level.total_set.freq = CPUFREQ_VAL_UNKNOWN; in cpufreq_attach()
306 level->total_set.freq, priority); in cf_set_method()
310 if (level->total_set.freq < cf_lowest_freq) { in cf_set_method()
312 level->total_set.freq, cf_lowest_freq); in cf_set_method()
318 if (sc->curr_level.total_set.freq == level->total_set.freq) { in cf_set_method()
320 level->total_set.freq, sc->curr_level.total_set.freq); in cf_set_method()
345 CF_DEBUG("setting abs freq %d on %s (cpu %d)\n", set->freq, in cf_set_method()
372 CF_DEBUG("setting rel freq %d on %s (cpu %d)\n", set->freq, in cf_set_method()
390 if (sc->curr_level.total_set.freq != CPUFREQ_VAL_UNKNOWN && in cf_set_method()
393 sc->curr_level.total_set.freq, sc->curr_priority); in cf_set_method()
[all …]
/freebsd/sys/arm/nvidia/tegra124/
H A Dtegra124_cpufreq.c51 uint64_t freq; /* Frequency point */ member
67 uint64_t freq; /* Frequecy */ member
222 freq_to_voltage(struct tegra124_cpufreq_softc *sc, uint64_t freq) in freq_to_voltage() argument
231 if (sc->cpu_def->speedo_tbl[i].freq >= freq) { in freq_to_voltage()
267 sc->speed_points[i].freq = cpu_freq_tbl[i]; in build_speed_points()
274 get_speed_point(struct tegra124_cpufreq_softc *sc, uint64_t freq) in get_speed_point() argument
278 if (sc->speed_points[0].freq >= freq) in get_speed_point()
282 if (sc->speed_points[i + 1].freq > freq) in get_speed_point()
302 if (sc->cpu_max_freq < sc->speed_points[j].freq) in tegra124_cpufreq_settings()
304 sets[i].freq = sc->speed_points[j].freq / 1000000; in tegra124_cpufreq_settings()
[all …]
/freebsd/sys/dev/cpufreq/
H A Dcpufreq_dt.c61 uint64_t freq; member
86 cpufreq_dt_notify(device_t dev, uint64_t freq) in cpufreq_dt_notify() argument
97 pc->pc_clock = freq; in cpufreq_dt_notify()
103 cpufreq_dt_find_opp(device_t dev, uint64_t freq) in cpufreq_dt_find_opp() argument
113 DPRINTF(dev, "Looking for freq %ju\n", freq); in cpufreq_dt_find_opp()
115 diff = abs64((int64_t)sc->opp[n].freq - (int64_t)freq); in cpufreq_dt_find_opp()
116 DPRINTF(dev, "Testing %ju, diff is %ju\n", sc->opp[n].freq, diff); in cpufreq_dt_find_opp()
120 DPRINTF(dev, "%ju is best for now\n", sc->opp[n].freq); in cpufreq_dt_find_opp()
124 DPRINTF(dev, "Will use %ju\n", sc->opp[best_n].freq); in cpufreq_dt_find_opp()
134 set->freq = opp->freq / 1000000; in cpufreq_dt_opp_to_setting()
[all …]
/freebsd/contrib/wpa/wpa_supplicant/
H A 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 …]
H A 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 …]
/freebsd/usr.sbin/powerd/
H A Dpowerd.c98 static int set_freq(int freq);
278 set_freq(int freq) in set_freq() argument
281 if (sysctl(freq_mib, 4, NULL, NULL, &freq, sizeof(freq))) { in set_freq()
290 get_freq_id(int freq, int *freqs, int numfreqs) in get_freq_id() argument
295 if (freqs[i] < freq) in get_freq_id()
567 "usage: powerd [-v] [-a mode] [-b mode] [-i %%] [-m freq] [-M freq] [-N] [-n mode] [-p ival] [-r %%] [-s source] [-P pidfile]\n");
579 int freq, curfreq, initfreq, *freqs, i, j, *mwatts, numfreqs, load;
676 if (sysctlnametomib("dev.cpu.0.freq", freq_mi
587 int freq, curfreq, initfreq, *freqs, i, j, *mwatts, numfreqs, load; global() local
[all...]
/freebsd/sys/contrib/libsodium/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()
66 ++freq[randombytes_uniform(256)]; in randombytes_tests()
69 if (!freq[i]) { in randombytes_tests()
81 freq[i] = 0; in randombytes_tests()
84 ++freq[randombytes_uniform(256)]; in randombytes_tests()
87 if (!freq[i]) { in randombytes_tests()
[all …]
/freebsd/contrib/wpa/src/common/
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()
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 …]
H A 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 …]
/freebsd/sys/contrib/device-tree/Bindings/cpufreq/
H A Dcpufreq-qcom-hw.txt32 "freq-domain0", "freq-domain1".
34 - #freq-domain-cells:
38 * Property qcom,freq-domain
39 Devices supporting freq-domain must set their "qcom,freq-domain" property with
59 qcom,freq-domain = <&cpufreq_hw 0>;
75 qcom,freq-domain = <&cpufreq_hw 0>;
88 qcom,freq-domain = <&cpufreq_hw 0>;
101 qcom,freq-domain = <&cpufreq_hw 0>;
114 qcom,freq-domain = <&cpufreq_hw 1>;
127 qcom,freq-domain = <&cpufreq_hw 1>;
[all …]
/freebsd/sys/dev/clk/
H A Dclk_fixed.c53 static int clknode_fixed_recalc(struct clknode *clk, uint64_t *freq);
59 uint64_t freq; member
80 if (sc->freq == 0) in clknode_fixed_init()
86 clknode_fixed_recalc(struct clknode *clk, uint64_t *freq) in clknode_fixed_recalc() argument
93 *freq = (*freq / sc->div) * sc->mult; in clknode_fixed_recalc()
95 *freq = sc->freq; in clknode_fixed_recalc()
109 if (*fout != sc->freq) in clknode_fixed_set_freq()
131 sc->freq = clkdef->freq; in clknode_fixed_register()
184 uint32_t freq; in clk_fixed_init_fixed() local
188 rv = OF_getencprop(node, "clock-frequency", &freq, sizeof(freq)); in clk_fixed_init_fixed()
[all …]
H A Dclk.c66 static int clknode_method_recalc_freq(struct clknode *clk, uint64_t *freq);
122 uint64_t freq; /* Actual frequency */ member
207 clknode_method_recalc_freq(struct clknode *clknode, uint64_t *freq) in clknode_method_recalc_freq() argument
282 clknode_refresh_cache(struct clknode *clknode, uint64_t freq) in clknode_refresh_cache() argument
290 rv = CLKNODE_RECALC_FREQ(clknode, &freq); in clknode_refresh_cache()
301 clknode->freq = freq; in clknode_refresh_cache()
305 rv = clknode_refresh_cache(entry, freq); in clknode_refresh_cache()
510 uint64_t freq; in clkdom_dump() local
514 rv = clknode_get_freq(clknode, &freq); in clkdom_dump()
524 clknode->parent_idx, (uintmax_t)freq); in clkdom_dump()
[all …]
/freebsd/sys/dev/ath/ath_hal/ar5212/
H A Dar5413.c80 uint16_t freq = ath_hal_gethwchannel(ah, chan); in ar5413SetChannel() local
86 OS_MARK(ah, AH_MARK_SETCHANNEL, freq); in ar5413SetChannel()
88 if (freq < 4800) { in ar5413SetChannel()
91 if (((freq - 2192) % 5) == 0) { in ar5413SetChannel()
92 channelSel = ((freq - 672) * 2 - 3040)/10; in ar5413SetChannel()
94 } else if (((freq - 2224) % 5) == 0) { in ar5413SetChannel()
95 channelSel = ((freq - 704) * 2 - 3040) / 10; in ar5413SetChannel()
100 __func__, freq); in ar5413SetChannel()
108 if (freq == 2484) { in ar5413SetChannel()
116 } else if (((freq % 5) == 2) && (freq <= 5435)) { in ar5413SetChannel()
[all …]
H A Dar5112.c80 uint16_t freq = ath_hal_gethwchannel(ah, chan); in ar5112SetChannel() local
86 OS_MARK(ah, AH_MARK_SETCHANNEL, freq); in ar5112SetChannel()
88 if (freq < 4800) { in ar5112SetChannel()
91 if (((freq - 2192) % 5) == 0) { in ar5112SetChannel()
92 channelSel = ((freq - 672) * 2 - 3040)/10; in ar5112SetChannel()
94 } else if (((freq - 2224) % 5) == 0) { in ar5112SetChannel()
95 channelSel = ((freq - 704) * 2 - 3040) / 10; in ar5112SetChannel()
100 __func__, freq); in ar5112SetChannel()
108 if (freq == 2484) { in ar5112SetChannel()
116 } else if (((freq % 5) == 2) && (freq <= 5435)) { in ar5112SetChannel()
[all …]
H A Dar2413.c80 uint16_t freq = ath_hal_gethwchannel(ah, chan); in ar2413SetChannel() local
86 OS_MARK(ah, AH_MARK_SETCHANNEL, freq); in ar2413SetChannel()
88 if (freq < 4800) { in ar2413SetChannel()
91 if (((freq - 2192) % 5) == 0) { in ar2413SetChannel()
92 channelSel = ((freq - 672) * 2 - 3040)/10; in ar2413SetChannel()
94 } else if (((freq - 2224) % 5) == 0) { in ar2413SetChannel()
95 channelSel = ((freq - 704) * 2 - 3040) / 10; in ar2413SetChannel()
100 __func__, freq); in ar2413SetChannel()
108 if (freq == 2484) { in ar2413SetChannel()
116 } else if (((freq % 5) == 2) && (freq <= 5435)) { in ar2413SetChannel()
[all …]
/freebsd/contrib/wpa/src/p2p/
H A 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 …]
/freebsd/sys/riscv/vmm/
H A Dvmm_vtimer.c47 vtimer_get_timebase(uint32_t *freq) in vtimer_get_timebase() argument
60 OF_getencprop(node, "timebase-frequency", freq, len); in vtimer_get_timebase()
69 uint32_t freq; in vtimer_cpuinit() local
76 error = vtimer_get_timebase(&freq); in vtimer_cpuinit()
78 freq = VTIMER_DEFAULT_FREQ; in vtimer_cpuinit()
80 vtimer->freq = freq; in vtimer_cpuinit()
109 time = delta * SBT_1S / vtimer->freq; in vtimer_set_timer()

12345678910>>...28