/freebsd-10.1-release/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-10.1-release/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) 75 OF_setprop(sb, "bus-frequency", (void *)&freq, sizeof(freq));
|
/freebsd-10.1-release/sys/contrib/dev/ath/ath_hal/ar9300/ |
H A D | ar9300_radio.c | 85 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.1-release/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 | 80 "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 D | gas_query.h | 20 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,
|
/freebsd-10.1-release/sys/i386/include/ |
H A D | clock.h | 37 void timer_spkr_setfreq(int freq);
|
/freebsd-10.1-release/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-10.1-release/sys/arm/freescale/imx/ |
H A D | imx51_ccm.c | 196 u_int freq; local 254 freq = imx51_get_clock(IMX51CLK_PLL1SW); 256 return freq / (cacrr + 1); 262 freq = imx51_get_clock(IMX51CLK_PLL2SW); 264 freq = 0; 269 freq = imx51_get_clock(IMX51CLK_PLL1SW); 272 freq = imx51_get_clock(IMX51CLK_PLL3SW); 275 freq = imx51_get_clock(IMX51CLK_LP_APM); 282 return freq; 284 freq 387 uint64_t freq = 0; local [all...] |
/freebsd-10.1-release/contrib/wpa/src/p2p/ |
H A D | p2p_utils.c | 142 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.1-release/usr.bin/setchannel/ |
H A D | setchannel.c | 50 "[-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.1-release/crypto/heimdal/kadmin/ |
H A D | random_password.c | 117 int freq; member in struct:__anon4942 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.1-release/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-10.1-release/usr.sbin/powerd/ |
H A D | powerd.c | 90 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) 439 "usage: powerd [-v] [-a mode] [-b mode] [-i %%] [-m freq] [-M freq] [-n mode] [-p ival] [-r %%] [-P pidfile]\n"); 451 int freq, curfreq, initfreq, *freqs, i, j, *mwatts, numfreqs, load; local 540 if (sysctlnametomib("dev.cpu.0.freq", freq_mi [all...] |
/freebsd-10.1-release/etc/rc.d/ |
H A D | powerd | 20 sysctl dev.cpu.0.freq=`sysctl -n dev.cpu.0.freq_levels |
|
/freebsd-10.1-release/sys/amd64/include/ |
H A D | clock.h | 39 void timer_spkr_setfreq(int freq);
|
/freebsd-10.1-release/sys/kern/ |
H A D | kern_cpu.c | 161 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) { 864 int best, count, diff, bdiff, devcount, error, freq, i, n; local [all...] |
/freebsd-10.1-release/sys/arm/at91/ |
H A D | at91_pmcvar.h | 65 uint32_t at91_pmc_800mhz_plla_outb(int freq); 66 uint32_t at91_pmc_800mhz_pllb_outb(int freq);
|
/freebsd-10.1-release/sys/powerpc/cpufreq/ |
H A D | dfs.c | 156 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.1-release/sys/i386/i386/ |
H A D | mp_clock.c | 69 u_int freq; local 73 freq = piix_freq; 74 error = sysctl_handle_int(oidp, &freq, 0, req); 76 piix_freq = freq;
|
/freebsd-10.1-release/sys/mips/atheros/ |
H A D | uart_cpu_ar71xx.c | 57 uint64_t freq; local 59 freq = ar71xx_uart_freq(); 65 di->bas.rclk = freq;
|
H A D | uart_cpu_ar933x.c | 59 uint64_t freq; local 61 freq = ar71xx_uart_freq(); 67 di->bas.rclk = freq;
|
H A D | ar933x_chip.c | 73 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.1-release/sys/dev/ath/ath_hal/ar5212/ |
H A D | ar5112.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 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 D | ar5413.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 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...] |