Searched refs:freq (Results 1 - 25 of 253) sorted by relevance

1234567891011

/freebsd-10.0-release/sys/mips/malta/
H A Dyamon.c56 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-10.0-release/sys/arm/freescale/imx/
H A Dimx51_ccm.c191 u_int freq; local
249 freq = imx51_get_clock(IMX51CLK_PLL1SW);
251 return freq / (cacrr + 1);
257 freq = imx51_get_clock(IMX51CLK_PLL2SW);
259 freq = 0;
264 freq = imx51_get_clock(IMX51CLK_PLL1SW);
267 freq = imx51_get_clock(IMX51CLK_PLL3SW);
270 freq = imx51_get_clock(IMX51CLK_LP_APM);
277 return freq;
279 freq
382 uint64_t freq = 0; local
[all...]
/freebsd-10.0-release/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_radio.c85 u_int32_t freq, channel_sel, reg32; local
100 freq = centers.synth_center;
103 if (freq < 4800) { /* 2 GHz, fractional mode */
134 channel_sel = (freq * 4) / 120;
135 channel_frac = (((freq * 4) % 120) * 0x20000) / 120;
148 channel_sel = (freq * 4) / 75;
149 channel_frac = (((freq * 4) % 75) * 0x20000) / 75;
151 channel_sel = (freq * 2) / 75;
152 channel_frac = (((freq * 2) % 75) * 0x20000) / 75;
163 channel_sel = (freq *
[all...]
/freebsd-10.0-release/contrib/wpa/wpa_supplicant/
H A Doffchannel.h13 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 Doffchannel.c80 "waiting for another freq=%u (off_channel_freq=%u "
181 * @freq: The frequency in MHz indicating the channel on which the frame is to
199 int offchannel_send_action(struct wpa_supplicant *wpa_s, unsigned int freq, argument
203 unsigned int freq, const u8 *dst,
210 wpa_printf(MSG_DEBUG, "Off-channel: Send action frame: freq=%d dst="
212 freq, MAC2STR(dst), MAC2STR(src), MAC2STR(bssid),
234 wpa_s->pending_action_freq = freq;
237 if (freq != 0 && wpa_s->drv_flags & WPA_DRIVER_FLAGS_OFFCHANNEL_TX) {
253 if (freq) {
256 if (tx_iface->assoc_freq == freq) {
335 offchannel_remain_on_channel_cb(struct wpa_supplicant *wpa_s, unsigned int freq, unsigned int duration) argument
352 offchannel_cancel_remain_on_channel_cb(struct wpa_supplicant *wpa_s, unsigned int freq) argument
[all...]
H A Dgas_query.h20 const u8 *bssid, const u8 *data, size_t len, int freq);
35 int gas_query_req(struct gas_query *gas, const u8 *dst, int freq,
H A Dhs20_supplicant.c76 int freq; local
80 freq = wpa_s->assoc_freq;
84 freq = bss->freq;
86 if (freq <= 0)
96 res = gas_query_req(wpa_s->gas, dst, freq, buf, anqp_resp_cb, wpa_s);
/freebsd-10.0-release/sys/i386/include/
H A Dclock.h37 void timer_spkr_setfreq(int freq);
/freebsd-10.0-release/sys/sparc64/sparc64/
H A Didentcpu.c29 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-10.0-release/contrib/wpa/src/p2p/
H A Dp2p_utils.c142 int p2p_freq_to_channel(const char *country, unsigned int freq, u8 *reg_class, argument
146 if (freq >= 2412 && freq <= 2472) {
148 *channel = (freq - 2407) / 5;
152 if (freq == 2484) {
158 if (freq >= 5180 && freq <= 5240) {
160 *channel = (freq - 5000) / 5;
164 if (freq >= 5745 && freq <
257 p2p_supported_freq(struct p2p_data *p2p, unsigned int freq) argument
[all...]
/freebsd-10.0-release/usr.bin/setchannel/
H A Dsetchannel.c50 "[-g geom] [-m chnl_set] [chnl | freq]\n"
72 " freq Frequency in MHz (must include decimal point).\n",
95 unsigned int freq; local
106 freq = 0;
178 freq = strtol(argv[optind], &endptr, 10) * 1000;
197 freq += fraction;
206 && channel_set == -1 && !channel && !freq) {
263 } else if (freq) {
266 freq = freq / 1
[all...]
/freebsd-10.0-release/crypto/heimdal/kadmin/
H A Drandom_password.c117 int freq; member in struct:__anon4754
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-10.0-release/usr.sbin/powerd/
H A Dpowerd.c90 static int set_freq(int freq);
250 set_freq(int freq) argument
253 if (sysctl(freq_mib, 4, NULL, NULL, &freq, sizeof(freq))) {
262 get_freq_id(int freq, int *freqs, int numfreqs) argument
267 if (freqs[i] < freq)
438 "usage: powerd [-v] [-a mode] [-b mode] [-i %%] [-m freq] [-M freq] [-n mode] [-p ival] [-r %%] [-P pidfile]\n");
450 int freq, curfreq, initfreq, *freqs, i, j, *mwatts, numfreqs, load; local
539 if (sysctlnametomib("dev.cpu.0.freq", freq_mi
[all...]
/freebsd-10.0-release/etc/rc.d/
H A Dpowerd20 sysctl dev.cpu.0.freq=`sysctl -n dev.cpu.0.freq_levels |
/freebsd-10.0-release/sys/amd64/include/
H A Dclock.h39 void timer_spkr_setfreq(int freq);
/freebsd-10.0-release/sys/dev/fdt/
H A Dfdt_powerpc.c52 pcell_t freq; local
71 if (OF_getprop(child, "bus-frequency", (void *)&freq,
72 sizeof(freq)) <= 0)
75 OF_setprop(sb, "bus-frequency", (void *)&freq, sizeof(freq));
/freebsd-10.0-release/sys/kern/
H A Dkern_cpu.c161 sc->curr_level.total_set.freq = CPUFREQ_VAL_UNKNOWN;
163 /* Try to get nominal CPU freq to use it as maximum later if needed */
189 OID_AUTO, "freq", CTLTYPE_INT | CTLFLAG_RW, sc, 0,
302 CF_DEBUG("restoring saved level, freq %d prio %d\n",
303 level->total_set.freq, priority);
307 if (level->total_set.freq < cf_lowest_freq) {
308 CF_DEBUG("rejecting freq %d, less than %d limit\n",
309 level->total_set.freq, cf_lowest_freq);
315 if (sc->curr_level.total_set.freq == level->total_set.freq) {
863 int best, count, diff, bdiff, devcount, error, freq, i, n; local
[all...]
/freebsd-10.0-release/sys/arm/at91/
H A Dat91_pmcvar.h65 uint32_t at91_pmc_800mhz_plla_outb(int freq);
66 uint32_t at91_pmc_800mhz_pllb_outb(int freq);
/freebsd-10.0-release/sys/powerpc/cpufreq/
H A Ddfs.c156 sets[0].freq = 10000; sets[0].dev = dev;
157 sets[1].freq = 5000; sets[1].dev = dev;
159 sets[2].freq = 2500; sets[2].dev = dev;
176 if (set->freq == 5000)
178 else if (set->freq == 2500)
207 set->freq = 10000;
209 set->freq = 5000;
211 set->freq = 2500;
/freebsd-10.0-release/sys/i386/i386/
H A Dmp_clock.c69 u_int freq; local
73 freq = piix_freq;
74 error = sysctl_handle_int(oidp, &freq, 0, req);
76 piix_freq = freq;
/freebsd-10.0-release/sys/mips/atheros/
H A Duart_cpu_ar71xx.c57 uint64_t freq; local
59 freq = ar71xx_uart_freq();
65 di->bas.rclk = freq;
H A Duart_cpu_ar933x.c59 uint64_t freq; local
61 freq = ar71xx_uart_freq();
67 di->bas.rclk = freq;
H A Dar933x_chip.c73 uint32_t freq; local
92 freq = u_ar71xx_refclk / t;
96 freq *= t;
103 freq >>= t;
107 u_ar71xx_cpu_freq = freq / t;
111 u_ar71xx_ddr_freq = freq / t;
115 u_ar71xx_ahb_freq = freq / t;
/freebsd-10.0-release/sys/dev/ath/ath_hal/ar5212/
H A Dar5112.c80 uint16_t freq = ath_hal_gethwchannel(ah, chan); local
86 OS_MARK(ah, AH_MARK_SETCHANNEL, freq);
88 if (freq < 4800) {
91 if (((freq - 2192) % 5) == 0) {
92 channelSel = ((freq - 672) * 2 - 3040)/10;
94 } else if (((freq - 2224) % 5) == 0) {
95 channelSel = ((freq - 704) * 2 - 3040) / 10;
100 __func__, freq);
108 if (freq == 2484) {
116 } else if (((freq
187 uint16_t freq = ath_hal_gethwchannel(ah, chan); local
349 uint16_t freq = ath_hal_gethwchannel(ah, chan); local
770 uint16_t freq = chan->ic_freq; /* NB: never mapped */ local
[all...]
H A Dar5413.c80 uint16_t freq = ath_hal_gethwchannel(ah, chan); local
86 OS_MARK(ah, AH_MARK_SETCHANNEL, freq);
88 if (freq < 4800) {
91 if (((freq - 2192) % 5) == 0) {
92 channelSel = ((freq - 672) * 2 - 3040)/10;
94 } else if (((freq - 2224) % 5) == 0) {
95 channelSel = ((freq - 704) * 2 - 3040) / 10;
100 __func__, freq);
108 if (freq == 2484) {
116 } else if (((freq
167 uint16_t freq = ath_hal_gethwchannel(ah, chan); local
546 uint16_t freq = ath_hal_gethwchannel(ah, chan); local
686 uint16_t freq = chan->ic_freq; /* NB: never mapped */ local
[all...]

Completed in 317 milliseconds

1234567891011