/freebsd/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_radio.c | 28 0x101479e, /* Freq 2412 - (128 << 17) + 83870 */ 29 0x101d027, /* Freq 2417 - (128 << 17) + 118823 */ 30 0x10258af, /* Freq 2422 - (129 << 17) + 22703 */ 31 0x102e138, /* Freq 2427 - (129 << 17) + 57656 */ 32 0x10369c0, /* Freq 2432 - (129 << 17) + 92608 */ 33 0x103f249, /* Freq 2437 - (129 << 17) + 127561 */ 34 0x1047ad1, /* Freq 2442 - (130 << 17) + 31441 */ 35 0x105035a, /* Freq 2447 - (130 << 17) + 66394 */ 36 0x1058be2, /* Freq 2452 - (130 << 17) + 101346 */ 37 0x106146b, /* Freq 2457 - (131 << 17) + 5227 */ [all …]
|
/freebsd/sys/dev/clk/rockchip/ |
H A D | rk3399_pmucru.c | 140 .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 …]
|
H A D | rk_clk_pll.c | 156 rk3066_clk_pll_recalc(struct clknode *clk, uint64_t *freq) in rk3066_clk_pll_recalc() argument 180 *freq = 0; in rk3066_clk_pll_recalc() 195 rate = *freq * fbdiv; in rk3066_clk_pll_recalc() 197 *freq = rate / postdiv; in rk3066_clk_pll_recalc() 216 for (rates = sc->rates; rates->freq; rates++) { in rk3066_clk_pll_set_freq() 217 if (rates->freq == *fout) in rk3066_clk_pll_set_freq() 220 if (rates->freq == 0) { in rk3066_clk_pll_set_freq() 377 rk3328_clk_pll_recalc(struct clknode *clk, uint64_t *freq) in rk3328_clk_pll_recalc() argument 404 rate = *freq * fbdiv / refdiv; in rk3328_clk_pll_recalc() 409 frac_rate = *freq * frac / refdiv; in rk3328_clk_pll_recalc() [all …]
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | nan_usd.c | 36 unsigned int freq, const u8 *dst, in wpas_nan_de_tx_status() argument 45 " A3=" MACSTR " freq=%d len=%zu result=%s", in wpas_nan_de_tx_status() 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 92 " A3=" MACSTR " freq=%d len=%zu", in wpas_nan_de_tx_send() 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() [all …]
|
H A D | dpp_supplicant.c | 35 unsigned int freq); 40 unsigned int freq, const u8 *dst, 48 unsigned int freq, const u8 *dst, 89 " freq=%u type=%d", in wpas_dpp_qr_code() 204 " freq=%u type=%d", in wpas_dpp_auth_resp_retry_timeout() 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() 424 DPP_EVENT_TX "dst=" MACSTR " freq=%u type=%d", in wpas_dpp_send_conn_status_result() 502 unsigned int freq, const u8 *dst, in wpas_dpp_tx_status() argument [all …]
|
H A D | p2p_supplicant.c | 125 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 …]
|
/freebsd/sys/kern/ |
H A D | kern_cpu.c | 172 sc->curr_level.total_set.freq = CPUFREQ_VAL_UNKNOWN; in cpufreq_attach() 174 /* Try to get nominal CPU freq to use it as maximum later if needed */ in cpufreq_attach() 192 OID_AUTO, "freq", CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, in cpufreq_attach() 305 CF_DEBUG("restoring saved level, freq %d prio %d\n", in cf_set_method() 306 level->total_set.freq, priority); in cf_set_method() 310 if (level->total_set.freq < cf_lowest_freq) { in cf_set_method() 311 CF_DEBUG("rejecting freq %d, less than %d limit\n", 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() 319 CF_DEBUG("skipping freq %d, same as current level %d\n", in cf_set_method() [all …]
|
/freebsd/contrib/wpa/src/ap/ |
H A D | dfs.c | 159 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 D | dpp_hostapd.c | 70 " freq=%u type=%d", in hostapd_dpp_qr_code() 182 " freq=%u type=%d", in hostapd_dpp_auth_resp_retry_timeout() 227 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() [all …]
|
/freebsd/sys/dev/cpufreq/ |
H A D | cpufreq_dt.c | 61 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/sys/contrib/device-tree/Bindings/cpufreq/ |
H A D | cpufreq-qcom-hw.txt | 32 "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 …]
|
H A D | cpufreq-qcom-hw.yaml | 60 - const: freq-domain0 61 - const: freq-domain1 62 - const: freq-domain2 63 - const: freq-domain3 87 '#freq-domain-cells': 98 - '#freq-domain-cells' 225 qcom,freq-domain = <&cpufreq_hw 0>; 246 qcom,freq-domain = <&cpufreq_hw 0>; 262 qcom,freq-domain = <&cpufreq_hw 0>; 278 qcom,freq [all...] |
/freebsd/sys/arm64/nvidia/tegra210/ |
H A D | tegra210_cpufreq.c | 50 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/contrib/libarchive/libarchive/ |
H A D | archive_ppmd8.c | 373 s->Freq = 1; in RestartModel() 423 escFreq = ctx->SummFreq - s->Freq; in Refresh() 424 sumFreq = (s->Freq = (Byte)((s->Freq + scale) >> scale)); in Refresh() 427 escFreq -= (++s)->Freq; in Refresh() 428 sumFreq += (s->Freq = (Byte)((s->Freq + scale) >> scale)); in Refresh() 494 /* 9.31: the code was fixed. It's was not BUG, if Freq <= MAX_FREQ = 124 */ in CutOff() 495 ONE_STATE(ctx)->Freq = (Byte)(((unsigned)ONE_STATE(ctx)->Freq + 11) >> 3); in CutOff() 566 ONE_STATE(c)->Freq = (Byte)(((unsigned)ONE_STATE(c)->Freq + 11) >> 3); in RestoreModel() 573 ONE_STATE(c)->Freq = (Byte)(ONE_STATE(c)->Freq - (ONE_STATE(c)->Freq >> 1)); in RestoreModel() 636 if (s->Freq < MAX_FREQ - 9) in CreateSuccessors() [all …]
|
H A D | archive_ppmd7.c | 22 &p->BinSumm[Ppmd7Context_OneState(p->MinContext)->Freq - 1][p->PrevSuccess + \ 344 s->Freq = 1; in RestartModel() 412 upState.Freq = ONE_STATE(c)->Freq; in CreateSuccessors() 418 cf = s->Freq - 1; in CreateSuccessors() 420 … upState.Freq = (Byte)(1 + ((2 * cf <= s0) ? (5 * cf > s0) : ((2 * cf + 3 * s0 - 1) / (2 * s0)))); in CreateSuccessors() 460 if (p->FoundState->Freq < MAX_FREQ / 4 && p->MinContext->Suffix != 0) in UpdateModel() 467 if (s->Freq < 32) in UpdateModel() 468 s->Freq++; in UpdateModel() 476 if (s[0].Freq >= s[-1].Freq) in UpdateModel() 482 if (s->Freq < MAX_FREQ - 9) in UpdateModel() [all …]
|
/freebsd/usr.sbin/powerd/ |
H A D | powerd.c | 98 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() 575 "usage: powerd [-v] [-a mode] [-b mode] [-i %%] [-m freq] [-M freq] [-N] [-n mode] [-p ival] [-r %%… 587 int freq, curfreq, initfreq, *freqs, i, j, *mwatts, numfreqs, load; local 684 if (sysctlnametomib("dev.cpu.0.freq", freq_mib, &len)) 728 freq = initfreq = curfreq = get_freq(); 730 if (freq < 1) [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | RegAllocScore.h | 47 void onCopy(double Freq) { CopyCounts += Freq; } in onCopy() argument 48 void onLoad(double Freq) { LoadCounts += Freq; } in onLoad() argument 49 void onStore(double Freq) { StoreCounts += Freq; } in onStore() argument 50 void onLoadStore(double Freq) { LoadStoreCounts += Freq; } in onLoadStore() argument 51 void onExpensiveRemat(double Freq) { ExpensiveRematCounts += Freq; } in onExpensiveRemat() argument 52 void onCheapRemat(double Freq) { CheapRematCounts += Freq; } in onCheapRemat() argument
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | BlockFrequency.h | 31 explicit BlockFrequency(uint64_t Freq) : Frequency(Freq) {} in BlockFrequency() argument 51 BlockFrequency &operator+=(BlockFrequency Freq) { 52 uint64_t Before = Freq.Frequency; 53 Frequency += Freq.Frequency; 61 BlockFrequency operator+(BlockFrequency Freq) const { 63 NewFreq += Freq; 68 BlockFrequency &operator-=(BlockFrequency Freq) { 70 if (Frequency <= Freq.Frequency) 73 Frequency -= Freq.Frequency; 76 BlockFrequency operator-(BlockFrequency Freq) const { [all …]
|
/freebsd/sys/arm/nvidia/tegra124/ |
H A D | tegra124_cpufreq.c | 51 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/contrib/wpa/src/common/ |
H A 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 …]
|
/freebsd/sys/gnu/dev/bwn/phy_n/ |
H A D | if_bwn_radio_2055.c | 353 .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 …]
|
/freebsd/sys/contrib/libsodium/test/default/ |
H A D | randombytes.c | 6 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/sys/dev/ath/ath_hal/ar5212/ |
H A D | ar5413.c | 80 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 D | ar5112.c | 80 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 …]
|
/freebsd/sys/dev/clk/ |
H A D | clk_fixed.c | 53 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 …]
|