khz 164 arch/arm/mach-pxa/viper.c static void viper_set_core_cpu_voltage(unsigned long khz, int force) khz 170 arch/arm/mach-pxa/viper.c if (khz < 200000) { khz 172 arch/arm/mach-pxa/viper.c } else if (khz < 300000) { khz 179 arch/arm/mach-pxa/viper.c v, (int)khz / 1000, (int)khz % 1000); khz 355 arch/x86/kernel/apb_timer.c unsigned long khz = 0; khz 395 arch/x86/kernel/apb_timer.c khz = (scale * (apbt_freq / 1000)) >> shift; khz 396 arch/x86/kernel/apb_timer.c printk(KERN_INFO "TSC freq calculated by APB timer is %lu khz\n", khz); khz 397 arch/x86/kernel/apb_timer.c return khz; khz 21 arch/x86/kernel/cpu/aperfmperf.c unsigned int khz; khz 64 arch/x86/kernel/cpu/aperfmperf.c s->khz = div64_u64((cpu_khz * aperf_delta), mperf_delta); khz 93 arch/x86/kernel/cpu/aperfmperf.c return per_cpu(samples.khz, cpu); khz 131 arch/x86/kernel/cpu/aperfmperf.c return per_cpu(samples.khz, cpu); khz 136 arch/x86/kernel/cpu/aperfmperf.c return per_cpu(samples.khz, cpu); khz 136 arch/x86/kernel/kvmclock.c unsigned long khz; khz 139 arch/x86/kernel/kvmclock.c khz = kvm_get_tsc_khz(); khz 141 arch/x86/kernel/kvmclock.c lpj = ((u64)khz * 1000); khz 123 arch/x86/kernel/tsc.c static void __set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) khz 136 arch/x86/kernel/tsc.c clocks_calc_mult_shift(&data.cyc2ns_mul, &data.cyc2ns_shift, khz, khz 161 arch/x86/kernel/tsc.c static void set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) khz 168 arch/x86/kernel/tsc.c if (khz) khz 169 arch/x86/kernel/tsc.c __set_cyc2ns_scale(khz, cpu, tsc_now); khz 1753 arch/x86/kvm/x86.c static u32 adjust_tsc_khz(u32 khz, s32 ppm) khz 1755 arch/x86/kvm/x86.c u64 v = (u64)khz * (1000000 + ppm); khz 6978 arch/x86/kvm/x86.c unsigned long khz = 0; khz 6981 arch/x86/kvm/x86.c khz = freq->new; khz 6983 arch/x86/kvm/x86.c khz = cpufreq_quick_get(raw_smp_processor_id()); khz 6984 arch/x86/kvm/x86.c if (!khz) khz 6985 arch/x86/kvm/x86.c khz = tsc_khz; khz 6986 arch/x86/kvm/x86.c __this_cpu_write(cpu_tsc_khz, khz); khz 452 drivers/ata/pata_legacy.c int khz[4] = { 50000, 40000, 33000, 25000 }; khz 461 drivers/ata/pata_legacy.c clock = 1000000000 / khz[ioread8(ap->ioaddr.lbah_addr) & 0x03]; khz 527 drivers/ata/pata_legacy.c int khz[4] = { 50000, 40000, 33000, 25000 }; khz 540 drivers/ata/pata_legacy.c clock = 1000000000 / khz[sysclk]; khz 1254 drivers/atm/zatm.c zatm_dev->khz = t2-2*t1+t0; khz 1258 drivers/atm/zatm.c zin(VER) & uPD98401_MINOR,zatm_dev->khz/1000,zatm_dev->khz % 1000); khz 84 drivers/atm/zatm.h int khz; /* timer clock */ khz 217 drivers/cpufreq/gx-suspmod.c static unsigned int gx_validate_speed(unsigned int khz, u8 *on_duration, khz 229 drivers/cpufreq/gx-suspmod.c tmp_off = ((khz * i) / stock_freq) & 0xff; khz 234 drivers/cpufreq/gx-suspmod.c if (abs(tmp_freq - khz) <= abs(old_tmp_freq - khz)) { khz 250 drivers/cpufreq/gx-suspmod.c static void gx_set_cpuspeed(struct cpufreq_policy *policy, unsigned int khz) khz 259 drivers/cpufreq/gx-suspmod.c new_khz = gx_validate_speed(khz, &gx_params->on_duration, khz 110 drivers/cpufreq/longhaul.c int khz; khz 111 drivers/cpufreq/longhaul.c khz = (mult/10)*fsb; khz 113 drivers/cpufreq/longhaul.c khz += fsb/2; khz 114 drivers/cpufreq/longhaul.c khz *= 1000; khz 115 drivers/cpufreq/longhaul.c return khz; khz 157 drivers/cpufreq/powernow-k6.c unsigned khz; khz 163 drivers/cpufreq/powernow-k6.c khz = cpu_khz; khz 165 drivers/cpufreq/powernow-k6.c if (khz >= usual_frequency_table[i].freq - FREQ_RANGE && khz 166 drivers/cpufreq/powernow-k6.c khz <= usual_frequency_table[i].freq + FREQ_RANGE) { khz 167 drivers/cpufreq/powernow-k6.c khz = usual_frequency_table[i].freq; khz 184 drivers/cpufreq/powernow-k6.c khz); khz 201 drivers/cpufreq/powernow-k6.c busfreq = khz / max_multiplier; khz 1124 drivers/cpufreq/powernow-k8.c unsigned int khz = 0; khz 1134 drivers/cpufreq/powernow-k8.c khz = find_khz_freq_from_fid(data->currfid); khz 1138 drivers/cpufreq/powernow-k8.c return khz; khz 53 drivers/cpufreq/pxa2xx-cpufreq.c unsigned int khz; khz 199 drivers/cpufreq/pxa2xx-cpufreq.c new_freq_cpu = pxa_freq_settings[idx].khz; khz 246 drivers/cpufreq/pxa2xx-cpufreq.c pxa255_run_freq_table[i].frequency = pxa255_run_freqs[i].khz; khz 254 drivers/cpufreq/pxa2xx-cpufreq.c pxa255_turbo_freqs[i].khz; khz 263 drivers/cpufreq/pxa2xx-cpufreq.c freq = pxa27x_freqs[i].khz; khz 122 drivers/cpufreq/sa1110-cpufreq.c static inline u_int ns_to_cycles(u_int ns, u_int khz) khz 124 drivers/cpufreq/sa1110-cpufreq.c return (ns * khz + 999999) / 1000000; khz 120 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c static void update_global_dpp_clk(struct clk_mgr_internal *clk_mgr, unsigned int khz) khz 123 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c * clk_mgr->dentist_vco_freq_khz / khz; khz 132 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c static void update_display_clk(struct clk_mgr_internal *clk_mgr, unsigned int khz) khz 135 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c * clk_mgr->dentist_vco_freq_khz / khz; khz 143 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c static void request_voltage_and_program_disp_clk(struct clk_mgr *clk_mgr_base, unsigned int khz) khz 148 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c bool going_up = clk_mgr->base.clks.dispclk_khz < khz; khz 153 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr->base.clks.dispclk_khz = khz; khz 158 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c update_display_clk(clk_mgr, khz); khz 164 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c static void request_voltage_and_program_global_dpp_clk(struct clk_mgr *clk_mgr_base, unsigned int khz) khz 169 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c bool going_up = clk_mgr->base.clks.dppclk_khz < khz; khz 174 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr->base.clks.dppclk_khz = khz; khz 175 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c clk_mgr->dccg->ref_dppclk = khz; khz 180 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c update_global_dpp_clk(clk_mgr, khz); khz 40 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/disp.h u16 nvbios_oclk_match(struct nvkm_bios *, u16 cmp, u32 khz); khz 15 drivers/gpu/drm/nouveau/include/nvkm/subdev/devinit.h int nvkm_devinit_pll_set(struct nvkm_devinit *, u32 type, u32 khz); khz 463 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c u32 khz = (head->asy.hz >> ior->asy.rgdiv) / 1000; khz 464 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c datakbps += khz * head->asy.or.depth; khz 198 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c struct nvkm_ior *ior, int id, u32 khz) khz 237 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c data = nvbios_oclk_match(bios, iedtrs.clkcmp[id], khz); khz 240 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c id, ior->asy.proto_evo, flags, khz); khz 328 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c const u32 khz = head->asy.hz / 1000; khz 340 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c do_div(h, khz); khz 346 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c do_div(v, khz); khz 352 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c link_data_rate = (khz * head->asy.or.depth / 8) / ior->dp.nr; khz 433 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c const u32 khz = head->asy.hz / 1000; khz 462 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c nv50_disp_super_ied_on(head, ior, 0, khz); khz 481 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c const u32 khz = head->asy.hz / 1000; khz 482 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c HEAD_DBG(head, "supervisor 2.1 - %d khz", khz); khz 483 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c if (khz) khz 484 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c nvkm_devinit_pll_set(devinit, PLL_VPLL0 + head->id, khz); khz 166 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c nvbios_oclk_match(struct nvkm_bios *bios, u16 cmp, u32 khz) khz 169 drivers/gpu/drm/nouveau/nvkm/subdev/bios/disp.c if (khz / 10 >= nvbios_rd16(bios, cmp + 0x00)) khz 285 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c int khz = pstate->base.domain[nv_clk_src_mem]; khz 287 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c ret = ram->func->calc(ram, khz); khz 187 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c gt215_clk_info(struct nvkm_clk *base, int idx, u32 khz, khz 196 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c switch (khz) { khz 199 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c return khz; khz 202 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c return khz; khz 205 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c return khz; khz 208 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c sdiv = min((sclk * 2) / khz, (u32)65); khz 210 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c diff = ((khz + 3000) - oclk); khz 235 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c gt215_pll_info(struct nvkm_clk *base, int idx, u32 pll, u32 khz, khz 248 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c ret = gt215_clk_info(&clk->base, idx, khz, info); khz 249 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c diff = khz - ret; khz 263 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c ret = gt215_pll_calc(subdev, &limits, khz, &N, NULL, &M, &P); khz 269 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c info->fb_delay = max(((khz + 7566) / 15133), (u32) 18); khz 47 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c u32 ref = 27000, khz = 0; khz 50 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c khz = ref * N / M; khz 52 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c return khz >> P; khz 66 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c u32 ref = 27000, khz = 0; khz 69 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c khz = ref * N1 / M1; khz 72 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c khz = khz * N2 / M2; khz 74 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c khz = 0; khz 78 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c return khz >> P; khz 124 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c nv40_clk_calc_pll(struct nv40_clk *clk, u32 reg, u32 khz, khz 135 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c if (khz < pll.vco1.max_freq) khz 138 drivers/gpu/drm/nouveau/nvkm/subdev/clk/nv40.c ret = nv04_pll_calc(subdev, &pll, khz, N1, M1, N2, M2, log2P); khz 38 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/base.c nvkm_devinit_pll_set(struct nvkm_devinit *init, u32 type, u32 khz) khz 40 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/base.c return init->func->pll_set(init, type, khz); khz 962 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c gk104_ram_calc_data(struct gk104_ram *ram, u32 khz, struct nvkm_ram_data *data) khz 966 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c u32 mhz = khz / 1000; khz 972 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c data->freq = khz; khz 978 drivers/mmc/core/block.c unsigned int khz; khz 981 drivers/mmc/core/block.c khz = mmc_blk_clock_khz(host); khz 982 drivers/mmc/core/block.c ms += DIV_ROUND_UP(data->timeout_clks, khz); khz 152 include/linux/clocksource.h static inline u32 clocksource_khz2mult(u32 khz, u32 shift_constant) khz 154 include/linux/clocksource.h return clocksource_freq2mult(khz, shift_constant, NSEC_PER_MSEC); khz 229 include/linux/clocksource.h static inline int clocksource_register_khz(struct clocksource *cs, u32 khz) khz 231 include/linux/clocksource.h return __clocksource_register_scale(cs, 1000, khz); khz 239 include/linux/clocksource.h static inline void __clocksource_update_freq_khz(struct clocksource *cs, u32 khz) khz 241 include/linux/clocksource.h __clocksource_update_freq_scale(cs, 1000, khz); khz 822 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c int khz; khz 834 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c khz = ratio_2_sysfs_khz(ratio); khz 835 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c retval = fprintf(fp, "%d", khz); khz 840 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c printf("echo %d > %s\n", khz, pathname);