/freebsd-9.3-release/sys/powerpc/cpufreq/ |
H A D | pcr.c | 250 sets[0].freq = 10000; sets[0].dev = dev; 251 sets[1].freq = 5000; sets[1].dev = dev; 253 sets[2].freq = 2500; sets[2].dev = dev; 274 if (set->freq == 10000) 276 else if (set->freq == 5000) 278 else if (set->freq == 2500) 320 set->freq = 10000; 322 set->freq = 5000; 324 set->freq = 2500;
|
/freebsd-9.3-release/sys/x86/x86/ |
H A D | tsc.c | 194 uint64_t freq; local 231 freq = C2D(p[0]) * 1000; 232 freq += C2D(p[2]) * 100; 233 freq += C2D(p[3]) * 10; 234 freq *= i * 1000; 236 freq = C2D(p[0]) * 1000; 237 freq += C2D(p[1]) * 100; 238 freq += C2D(p[2]) * 10; 239 freq += C2D(p[3]); 240 freq * 671 uint64_t freq; local 688 uint64_t freq; local [all...] |
/freebsd-9.3-release/contrib/ntp/ntpd/ |
H A D | ntp_loopfilter.c | 59 * NSET FREQ step, FREQ freq not set 61 * FSET SYNC step, SYNC freq set 63 * FREQ if (mu < 900) if (mu < 900) set freq direct 66 * freq, SYNC freq, step, SYNC 68 * SYNC SYNC SPIK, ignore adjust phase/freq 70 * SPIK SYNC if (mu < 900) adjust phase/freq 827 clock_frequency = FREQTOD(ntv.freq); 921 DPRINTF(1, ("local_clock: offset %.9f jit %.9f freq %.3f stab %.3f poll %d\n", 1065 double freq /* frequenc [all...] |
/freebsd-9.3-release/sys/dev/ath/ath_hal/ar5212/ |
H A D | ar2413.c | 80 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 501 uint16_t freq = ath_hal_gethwchannel(ah, chan); local 642 uint16_t freq = chan->ic_freq; /* NB: never mapped */ local [all...] |
H A D | ar2425.c | 87 uint16_t freq = ath_hal_gethwchannel(ah, chan); local 93 OS_MARK(ah, AH_MARK_SETCHANNEL, freq); 95 if (freq < 4800) { 98 channelSel = freq - 2272; 102 if (freq == 2484) { 111 } else if (((freq % 5) == 2) && (freq <= 5435)) { 112 freq = freq - 2; /* Align to even 5MHz raster */ 114 (uint32_t)(((freq 501 uint16_t freq = ath_hal_gethwchannel(ah, chan); local 605 uint16_t freq = chan->ic_freq; /* NB: never mapped */ local [all...] |
H A D | ar2316.c | 93 uint16_t freq = ath_hal_gethwchannel(ah, chan); local 99 OS_MARK(ah, AH_MARK_SETCHANNEL, freq); 101 if (freq < 4800) { 104 if (((freq - 2192) % 5) == 0) { 105 channelSel = ((freq - 672) * 2 - 3040)/10; 107 } else if (((freq - 2224) % 5) == 0) { 108 channelSel = ((freq - 704) * 2 - 3040) / 10; 113 __func__, freq); 121 if (freq == 2484) { 129 } else if ((freq 647 uint16_t freq = chan->ic_freq; /* NB: never mapped */ local [all...] |
H A D | ar2317.c | 84 uint16_t freq = ath_hal_gethwchannel(ah, chan); local 90 OS_MARK(ah, AH_MARK_SETCHANNEL, freq); 92 if (freq < 4800) { 94 channelSel = freq - 2272 ; 98 if (freq == 2484) { 106 } else if ((freq % 20) == 0 && freq >= 5120) { 108 ((freq - 4800) / 20 << 2), 8); 110 } else if ((freq % 10) == 0) { 112 ((freq 627 uint16_t freq = chan->ic_freq; /* NB: never mapped */ local [all...] |
H A D | ar5111.c | 80 uint16_t freq = ath_hal_gethwchannel(ah, chan); local 144 OS_MARK(ah, AH_MARK_SETCHANNEL, freq); 157 if (freq == 2484) { 221 uint16_t freq = ath_hal_gethwchannel(ah, chan); local 235 if (4000 < freq && freq < 5260) { 238 } else if (5260 <= freq && freq < 5500) { 241 } else if (5500 <= freq && freq < 572 395 uint16_t freq = ath_hal_gethwchannel(ah, chan); local [all...] |
/freebsd-9.3-release/sys/powerpc/powermac/ |
H A D | vcoregpio.c | 93 if (level->rel_set[0].freq == 10000 /* max */) { 106 if (level->rel_set[0].freq < 10000 /* max */) {
|
/freebsd-9.3-release/sys/dev/ath/ath_hal/ar9002/ |
H A D | ar9287.c | 76 uint32_t freq, ndiv, channelSel = 0, channelFrac = 0, reg32 = 0; local 83 freq = centers.synth_center; 88 if (freq < 4800) { /* 2 GHz, fractional mode */ 95 channelSel = (freq * 0x10000)/15; 98 if (freq == 2484) { 110 if (freq == 2484) { 122 if ((freq % 20) == 0) { 124 } else if ((freq % 10) == 0) { 134 channelSel = (freq * 0x8000)/15; 141 ndiv = (freq * (refDiv [all...] |
H A D | ar9280.c | 76 uint32_t freq, ndiv, channelSel = 0, channelFrac = 0, reg32 = 0; local 84 freq = centers.synth_center; 92 if (freq < 4800) { /* 2 GHz, fractional mode */ 98 channelSel = (freq * 0x10000)/15; 101 if (freq == 2484) { 115 if ((freq % 20) == 0) { 117 } else if ((freq % 10) == 0) { 127 channelSel = (freq * 0x8000)/15; 135 ndiv = (freq * (refDivA >> aModeRefSel))/60; 245 * (freq pier [all...] |
/freebsd-9.3-release/sys/dev/ath/ath_hal/ar5416/ |
H A D | ar2133.c | 131 uint16_t freq; local 137 freq = centers.synth_center; 139 if (freq < 4800) { 142 if (((freq - 2192) % 5) == 0) { 143 channelSel = ((freq - 672) * 2 - 3040)/10; 145 } else if (((freq - 2224) % 5) == 0) { 146 channelSel = ((freq - 704) * 2 - 3040) / 10; 150 "%s: invalid channel %u MHz\n", __func__, freq); 158 if (freq == 2484) { 166 } else if ((freq [all...] |
/freebsd-9.3-release/sys/net80211/ |
H A D | ieee80211.c | 802 mapgsm(u_int freq, u_int flags) argument 804 freq *= 10; 806 freq += 5; 808 freq += 10; 810 freq += 20; 812 return (freq - 906*10) / 5; 816 mappsb(u_int freq, u_int flags) argument 818 return 37 + ((freq * 10) + ((freq % 5) == 2 ? 5 : 0) - 49400) / 5; 825 ieee80211_mhz2ieee(u_int freq, u_in argument 918 ieee80211_find_channel(struct ieee80211com *ic, int freq, int flags) argument [all...] |
/freebsd-9.3-release/sys/x86/isa/ |
H A D | clock.c | 96 TUNABLE_INT("hw.i8254.freq", &i8254_freq); 216 timer_spkr_setfreq(int freq) argument 219 freq = i8254_freq / freq; 222 outb(TIMER_CNTR1, freq & 0xff); 223 outb(TIMER_CNTR1, freq >> 8); 225 outb(TIMER_CNTR2, freq & 0xff); 226 outb(TIMER_CNTR2, freq >> 8); 261 uint64_t end, freq, now; local 265 freq 508 u_int freq; local [all...] |
/freebsd-9.3-release/contrib/wpa/src/common/ |
H A D | privsep_commands.h | 40 int freq; member in struct:privsep_cmd_associate
|
/freebsd-9.3-release/sys/amd64/amd64/ |
H A D | prof_machdep.c | 314 uint64_t freq; local 316 freq = atomic_load_acq_64(&tsc_freq); 318 if (freq != 0 && mp_ncpus == 1) 324 gp->profrate = freq >> 1; 385 printf("warning: cpu freq changed while profiling active\n");
|
/freebsd-9.3-release/sys/i386/isa/ |
H A D | prof_machdep.c | 290 uint64_t freq; local 292 freq = atomic_load_acq_64(&tsc_freq); 294 if (freq != 0 && mp_ncpus == 1) 300 gp->profrate = freq >> 1; 369 printf("warning: cpu freq changed while profiling active\n");
|
/freebsd-9.3-release/sys/mips/atheros/ |
H A D | ar71xx_chip.c | 93 uint32_t freq; local 99 freq = div * AR71XX_BASE_FREQ; 102 u_ar71xx_cpu_freq = freq / div; 105 u_ar71xx_ddr_freq = freq / div;
|
/freebsd-9.3-release/sys/x86/cpufreq/ |
H A D | hwpstate.c | 93 int freq; /* CPU clock in Mhz or 100ths of a percent. */ member in struct:hwpstate_setting 222 if (CPUFREQ_CMP(cf->freq, set[i].freq)) 245 cf->freq = set.freq; 267 sets->freq = set.freq; 416 hwpstate_set[i].freq = 100 * (fid + 0x08) / (1 << did); 420 hwpstate_set[i].freq = 100 * (fid + 0x10) / (1 << did); 465 hwpstate_set[i].freq [all...] |
H A D | p4tcc.c | 210 set.freq = 10000; 230 set.freq = 10000; 251 sets[i].freq = TCC_SPEED_PERCENT(val); 274 val = set->freq * TCC_NUM_SETTINGS / 10000; 275 if (val * 10000 != set->freq * TCC_NUM_SETTINGS || 332 set->freq = TCC_SPEED_PERCENT(val);
|
/freebsd-9.3-release/games/morse/ |
H A D | morse.c | 282 static int freq = FREQUENCY; variable 324 freq = atoi(optarg); 359 if ((pflag || device) && (freq == 0)) 360 freq = FREQUENCY; 505 sound.frequency = freq; 509 sound.frequency = freq;
|
/freebsd-9.3-release/sys/dev/usb/misc/ |
H A D | ufm.c | 212 int freq = *(int *)addr; local 222 sc->sc_freq = freq; 225 freq = (freq + 10700001) / 12500; 229 freq >> 8, freq, NULL) != 0) {
|
/freebsd-9.3-release/sys/powerpc/booke/ |
H A D | platform_bare.c | 179 pcell_t freq; local 198 freq = 0; 199 if (OF_getprop(child, "bus-frequency", (void *)&freq, 200 sizeof(freq)) <= 0) 207 if (freq != 0) 208 ticks = freq / 8;
|
/freebsd-9.3-release/tools/tools/ath/athrd/ |
H A D | athrd.c | 827 mapgsm(u_int freq, u_int flags) argument 829 freq *= 10; 831 freq += 5; 833 freq += 10; 835 freq += 20; 836 return (freq - 24220) / 5; 840 mappsb(u_int freq, u_int flags) argument 842 return ((freq * 10) + (((freq % 5) == 2) ? 5 : 0) - 49400) / 5; 849 ath_hal_mhz2ieee(struct ath_hal *ah, u_int freq, u_in argument [all...] |
/freebsd-9.3-release/contrib/wpa/src/drivers/ |
H A D | driver.h | 45 * freq - Frequency in MHz 47 short freq; member in struct:hostapd_channel_data 125 * @freq: frequency of the channel in MHz (e.g., 2412 = channel 1) 149 int freq; member in struct:wpa_scan_res 271 int freq; member in struct:wpa_driver_auth_params 306 * freq - Frequency of the channel the selected AP is using 310 int freq; member in struct:wpa_driver_associate_params 542 int freq; member in struct:hostapd_freq_params 967 * @freq: Frequency of the channel in MHz 974 int freq); 2127 unsigned int freq; member in struct:wpa_event_data::assoc_info 2350 int freq; member in struct:wpa_event_data::rx_action 2362 unsigned int freq; member in struct:wpa_event_data::remain_on_channel 2393 int freq; member in struct:wpa_event_data::mlme_rx [all...] |