/freebsd-11-stable/sys/mips/malta/ |
H A D | yamon.c | 56 uint32_t freq; local 59 freq = 0; 60 ret = YAMON_SYSCON_READ(SYSCON_BOARD_CPU_CLOCK_FREQ_ID, &freq, 61 sizeof(freq)); 63 freq = 0; 65 return (freq);
|
/freebsd-11-stable/sys/dev/fdt/ |
H A D | fdt_powerpc.c | 52 pcell_t freq; local 71 if (OF_getprop(child, "bus-frequency", (void *)&freq, 72 sizeof(freq)) <= 0) 78 freq /= div; 80 OF_setprop(sb, "bus-frequency", (void *)&freq, sizeof(freq)); 101 pcell_t freq; local 106 if (OF_getprop(node, "bus-frequency", (void *)&freq, 107 sizeof(freq)) <= 0) 118 if (OF_setprop(node, "clock-frequency", (void *)&freq, [all...] |
/freebsd-11-stable/contrib/wpa/src/ap/ |
H A D | dfs.h | 14 int hostapd_dfs_complete_cac(struct hostapd_iface *iface, int success, int freq, 17 int hostapd_dfs_pre_cac_expired(struct hostapd_iface *iface, int freq, 20 int hostapd_dfs_radar_detected(struct hostapd_iface *iface, int freq, 24 int hostapd_dfs_nop_finished(struct hostapd_iface *iface, int freq, 28 int hostapd_dfs_start_cac(struct hostapd_iface *iface, int freq,
|
/freebsd-11-stable/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_radio.c | 85 u_int32_t freq, channel_sel, reg32; local 102 freq = centers.synth_center; 104 if (freq < 4800) { /* 2 GHz, fractional mode */ 129 * will not be the frequency of chan->ic_freq or ichan->freq; 130 * it needs to be whatever frequency maps to 'freq'. 132 i = ath_hal_mhz2ieee_2ghz(ah, freq); 147 channel_sel = (freq * 4) / 120; 148 channel_frac = (((freq * 4) % 120) * 0x20000) / 120; 161 channel_sel = (freq * 4) / 75; 162 channel_frac = (((freq * [all...] |
/freebsd-11-stable/contrib/wpa/wpa_supplicant/ |
H A D | offchannel.h | 13 int offchannel_send_action(struct wpa_supplicant *wpa_s, unsigned int freq, 17 unsigned int freq, const u8 *dst, 25 unsigned int freq, unsigned int duration); 27 unsigned int freq);
|
H A D | offchannel.c | 102 "waiting for another freq=%u (off_channel_freq=%u " 241 * @freq: The frequency in MHz indicating the channel on which the frame is to 259 int offchannel_send_action(struct wpa_supplicant *wpa_s, unsigned int freq, argument 263 unsigned int freq, const u8 *dst, 270 wpa_printf(MSG_DEBUG, "Off-channel: Send action frame: freq=%d dst=" 272 freq, MAC2STR(dst), MAC2STR(src), MAC2STR(bssid), 298 wpa_s->pending_action_freq = freq; 307 if (freq != 0 && wpa_s->drv_flags & WPA_DRIVER_FLAGS_OFFCHANNEL_TX) { 328 if (freq) { 331 if (tx_iface->assoc_freq == freq) { 423 offchannel_remain_on_channel_cb(struct wpa_supplicant *wpa_s, unsigned int freq, unsigned int duration) argument 440 offchannel_cancel_remain_on_channel_cb(struct wpa_supplicant *wpa_s, unsigned int freq) argument [all...] |
/freebsd-11-stable/sys/sparc64/sparc64/ |
H A D | identcpu.c | 29 static SYSCTL_NODE(_hw, OID_AUTO, freq, CTLFLAG_RD, 0, ""); 37 cpu_identify(u_long vers, u_int freq, u_int id) argument 126 (freq + 4999) / 1000000, ((freq + 4999) / 10000) % 100); 135 freq = (freq + 500000ul) / 1000000ul; 136 cpu_freq = (cpu_freq * cpu_count + freq) / (cpu_count + 1);
|
/freebsd-11-stable/sys/arm/freescale/imx/ |
H A D | imx51_ccm.c | 262 u_int freq; local 320 freq = imx51_get_clock(IMX51CLK_PLL1SW); 322 return freq / (cacrr + 1); 328 freq = imx51_get_clock(IMX51CLK_PLL2SW); 330 freq = 0; 335 freq = imx51_get_clock(IMX51CLK_PLL1SW); 338 freq = imx51_get_clock(IMX51CLK_PLL3SW); 341 freq = imx51_get_clock(IMX51CLK_LP_APM); 348 return freq; 350 freq 453 uint64_t freq = 0; local [all...] |
/freebsd-11-stable/usr.bin/setchannel/ |
H A D | setchannel.c | 52 "[-g geom] [-m chnl_set] [chnl | freq]\n" 74 " freq Frequency in MHz (must include decimal point).\n", 97 unsigned int freq; local 108 freq = 0; 180 freq = strtol(argv[optind], &endptr, 10) * 1000; 199 freq += fraction; 208 && channel_set == -1 && !channel && !freq) { 265 } else if (freq) { 268 freq = freq / 1 [all...] |
/freebsd-11-stable/crypto/heimdal/kadmin/ |
H A D | random_password.c | 117 int freq; member in struct:__anon5930 134 classes[i].freq = va_arg(ap, int); 135 len += classes[i].freq; 148 if(x < t + classes[j].freq) { 151 classes[j].freq--; 154 t += classes[j].freq;
|
/freebsd-11-stable/sys/powerpc/booke/ |
H A D | platform_bare.c | 95 pcell_t freq; local 133 freq = 0; 134 if (OF_getprop(child, "bus-frequency", (void *)&freq, 135 sizeof(freq)) <= 0) 142 if (freq != 0) 143 ticks = freq / 8;
|
/freebsd-11-stable/sys/arm/amlogic/aml8726/ |
H A D | aml8726_machdep.c | 62 pcell_t freq, prop; local 70 if ((freq = aml8726_clkmsr_bus_frequency()) == 0 || 75 freq = cpu_to_fdt32(freq); 79 OF_setprop(node, "bus-frequency", (void *)&freq, sizeof(freq));
|
/freebsd-11-stable/sys/arm/nvidia/tegra124/ |
H A D | tegra124_cpufreq.c | 54 uint64_t freq; /* Frequency point */ member in struct:speedo_entry 70 uint64_t freq; /* Frequecy */ member in struct:cpu_speed_point 226 freq_to_voltage(struct tegra124_cpufreq_softc *sc, uint64_t freq) argument 235 if (sc->cpu_def->speedo_tbl[i].freq >= freq) { 272 sc->speed_points[i].freq = cpu_freq_tbl[i]; 279 get_speed_point(struct tegra124_cpufreq_softc *sc, uint64_t freq) argument 283 if (sc->speed_points[0].freq >= freq) 287 if (sc->speed_points[i + 1].freq > fre 322 set_cpu_freq(struct tegra124_cpufreq_softc *sc, uint64_t freq) argument 375 uint64_t freq; local 504 uint64_t freq; local [all...] |
/freebsd-11-stable/usr.sbin/powerd/ |
H A D | powerd.c | 92 static int set_freq(int freq); 260 set_freq(int freq) argument 263 if (sysctl(freq_mib, 4, NULL, NULL, &freq, sizeof(freq))) { 272 get_freq_id(int freq, int *freqs, int numfreqs) argument 277 if (freqs[i] < freq) 474 "usage: powerd [-v] [-a mode] [-b mode] [-i %%] [-m freq] [-M freq] [-n mode] [-p ival] [-r %%] [-s source] [-P pidfile]\n"); 486 int freq, curfreq, initfreq, *freqs, i, j, *mwatts, numfreqs, load; local 578 if (sysctlnametomib("dev.cpu.0.freq", freq_mi [all...] |
/freebsd-11-stable/etc/rc.d/ |
H A D | powerd | 21 sysctl dev.cpu.0.freq=`sysctl -n dev.cpu.0.freq_levels |
|
/freebsd-11-stable/sys/dev/extres/clk/ |
H A D | clk_fixed.h | 44 uint64_t freq; member in struct:clk_fixed_def
|
H A D | clk_fixed.c | 51 static int clknode_fixed_recalc(struct clknode *clk, uint64_t *freq); 57 uint64_t freq; member in struct:clknode_fixed_sc 78 if (sc->freq == 0) 84 clknode_fixed_recalc(struct clknode *clk, uint64_t *freq) argument 91 *freq = (*freq / sc->div) * sc->mult; 93 *freq = sc->freq; 107 if (*fout != sc->freq) 129 sc->freq 172 uint32_t freq; local [all...] |
/freebsd-11-stable/sys/i386/include/ |
H A D | clock.h | 40 void timer_spkr_setfreq(int freq);
|
/freebsd-11-stable/sys/amd64/include/ |
H A D | clock.h | 42 void timer_spkr_setfreq(int freq);
|
/freebsd-11-stable/contrib/wpa/src/common/ |
H A D | hw_features_common.h | 16 int chan, int *freq); 18 int freq, int *chan); 21 int hw_get_chan(struct hostapd_hw_modes *mode, int freq); 34 int freq, int channel, int ht_enabled,
|
H A D | hw_features_common.c | 20 int chan, int *freq) 24 if (freq) 25 *freq = 0; 33 if (freq) 34 *freq = ch->freq; 44 int freq, int *chan) 56 if (ch->freq == freq) { 69 int freq; local 19 hw_get_channel_chan(struct hostapd_hw_modes *mode, int chan, int *freq) argument 43 hw_get_channel_freq(struct hostapd_hw_modes *mode, int freq, int *chan) argument 77 hw_get_chan(struct hostapd_hw_modes *mode, int freq) argument 361 hostapd_set_freq_params(struct hostapd_freq_params *data, enum hostapd_hw_mode mode, int freq, int channel, int ht_enabled, int vht_enabled, int he_enabled, int sec_channel_offset, int oper_chwidth, int center_segment0, int center_segment1, u32 vht_caps, struct he_capabilities *he_cap) argument [all...] |
/freebsd-11-stable/sys/arm/allwinner/clk/ |
H A D | aw_oscclk.c | 67 uint32_t freq; local 72 if (OF_getencprop(node, "clock-frequency", &freq, sizeof(freq)) <= 0) { 82 def.freq = freq;
|
H A D | aw_pll.c | 197 a10_pll1_recalc(struct aw_pll_sc *sc, uint64_t *freq) argument 212 *freq = (*freq * n * k) / (m * p); 218 a10_pll2_recalc(struct aw_pll_sc *sc, uint64_t *freq) argument 238 *freq = (*freq * 2 * n) / pre_div / post_div / 2; 241 *freq = (*freq * 2 * n) / pre_div / 4; 244 *freq = (*freq * 293 a10_pll3_recalc(struct aw_pll_sc *sc, uint64_t *freq) argument 368 a10_pll5_recalc(struct aw_pll_sc *sc, uint64_t *freq) argument 426 a10_pll6_recalc(struct aw_pll_sc *sc, uint64_t *freq) argument 475 a13_pll2_recalc(struct aw_pll_sc *sc, uint64_t *freq) argument 550 a23_pll1_recalc(struct aw_pll_sc *sc, uint64_t *freq) argument 569 a31_pll1_recalc(struct aw_pll_sc *sc, uint64_t *freq) argument 623 a31_pll6_recalc(struct aw_pll_sc *sc, uint64_t *freq) argument 649 a80_pll4_recalc(struct aw_pll_sc *sc, uint64_t *freq) argument 728 aw_pll_recalc(struct clknode *clk, uint64_t *freq) argument [all...] |
/freebsd-11-stable/sys/kern/ |
H A D | kern_cpu.c | 159 sc->curr_level.total_set.freq = CPUFREQ_VAL_UNKNOWN; 161 /* Try to get nominal CPU freq to use it as maximum later if needed */ 187 OID_AUTO, "freq", CTLTYPE_INT | CTLFLAG_RW, sc, 0, 304 CF_DEBUG("restoring saved level, freq %d prio %d\n", 305 level->total_set.freq, priority); 309 if (level->total_set.freq < cf_lowest_freq) { 310 CF_DEBUG("rejecting freq %d, less than %d limit\n", 311 level->total_set.freq, cf_lowest_freq); 317 if (sc->curr_level.total_set.freq == level->total_set.freq) { 866 int best, count, diff, bdiff, devcount, error, freq, i, n; local [all...] |
/freebsd-11-stable/contrib/wpa/src/p2p/ |
H A D | p2p_utils.c | 69 int p2p_freq_to_channel(unsigned int freq, u8 *op_class, u8 *channel) argument 71 if (ieee80211_freq_to_channel_ext(freq, 0, 0, op_class, channel) == 225 int freq = p2p_channel_to_freq(op->reg_class, local 227 if (freq > 0 && freq_range_list_includes(list, freq)) { 272 unsigned int freq) 279 reg->channel[j]) == (int) freq) 287 int p2p_supported_freq(struct p2p_data *p2p, unsigned int freq) argument 290 if (p2p_freq_to_channel(freq, &op_reg_class, &op_channel) < 0) 297 int p2p_supported_freq_go(struct p2p_data *p2p, unsigned int freq) argument 271 p2p_channels_includes_freq(const struct p2p_channels *channels, unsigned int freq) argument 308 p2p_supported_freq_cli(struct p2p_data *p2p, unsigned int freq) argument 324 int freq = 0; local 474 int freq; local [all...] |