Home
last modified time | relevance | path

Searched refs:khz (Results 1 – 12 of 12) sorted by relevance

/drivers/cpufreq/
Dgx-suspmod.c221 static unsigned int gx_validate_speed(unsigned int khz, u8 *on_duration, in gx_validate_speed() argument
233 tmp_off = ((khz * i) / stock_freq) & 0xff; in gx_validate_speed()
238 if (abs(tmp_freq - khz) <= abs(old_tmp_freq - khz)) { in gx_validate_speed()
254 static void gx_set_cpuspeed(struct cpufreq_policy *policy, unsigned int khz) in gx_set_cpuspeed() argument
263 new_khz = gx_validate_speed(khz, &gx_params->on_duration, in gx_set_cpuspeed()
Dpxa2xx-cpufreq.c60 unsigned int khz; member
309 new_freq_cpu = pxa_freq_settings[idx].khz; in pxa_set_target()
422 pxa255_run_freq_table[i].frequency = pxa255_run_freqs[i].khz; in pxa_cpufreq_init()
430 pxa255_turbo_freqs[i].khz; in pxa_cpufreq_init()
439 freq = pxa27x_freqs[i].khz; in pxa_cpufreq_init()
Dlonghaul.c110 int khz; in calc_speed() local
111 khz = (mult/10)*fsb; in calc_speed()
113 khz += fsb/2; in calc_speed()
114 khz *= 1000; in calc_speed()
115 return khz; in calc_speed()
Dsa1110-cpufreq.c125 static inline u_int ns_to_cycles(u_int ns, u_int khz) in ns_to_cycles() argument
127 return (ns * khz + 999999) / 1000000; in ns_to_cycles()
Dpowernow-k8.c1213 unsigned int khz = 0; in powernowk8_get() local
1223 khz = find_khz_freq_from_fid(data->currfid); in powernowk8_get()
1227 return khz; in powernowk8_get()
/drivers/gpu/drm/nouveau/
Dnva3_pm.c121 calc_clk(struct drm_device *dev, int clk, u32 pll, u32 khz, struct creg *reg) in calc_clk() argument
133 if (!khz) { in calc_clk()
138 switch (khz) { in calc_clk()
141 return khz; in calc_clk()
144 return khz; in calc_clk()
147 return khz; in calc_clk()
150 sdiv = min((sclk * 2) / (khz - 2999), (u32)65); in calc_clk()
161 diff = khz - oclk; in calc_clk()
169 NV_ERROR(drm, "bad freq %02x: %d %d\n", clk, khz, sclk); in calc_clk()
184 ret = nva3_calc_pll(dev, &limits, khz, &N, NULL, &M, &P); in calc_clk()
Dnv04_pm.c64 calc_pll(struct drm_device *dev, u32 id, int khz, struct nv04_pm_clock *clk) in calc_pll() argument
75 ret = pclk->pll_calc(pclk, &clk->pll, khz, &clk->calc); in calc_pll()
/drivers/gpu/drm/nouveau/core/subdev/bios/
Ddisp.c170 nvbios_oclk_match(struct nouveau_bios *bios, u16 cmp, u32 khz) in nvbios_oclk_match() argument
173 if (khz / 10 >= nv_ro16(bios, cmp + 0x00)) in nvbios_oclk_match()
/drivers/atm/
Dzatm.h83 int khz; /* timer clock */ member
Dzatm.c1250 zatm_dev->khz = t2-2*t1+t0; in zatm_init()
1254 zin(VER) & uPD98401_MINOR,zatm_dev->khz/1000,zatm_dev->khz % 1000); in zatm_init()
/drivers/gpu/drm/nouveau/core/include/subdev/bios/
Ddisp.h46 u16 nvbios_oclk_match(struct nouveau_bios *, u16 cmp, u32 khz);
/drivers/ata/
Dpata_legacy.c465 int khz[4] = { 50000, 40000, 33000, 25000 }; in opti82c611a_set_piomode() local
474 clock = 1000000000 / khz[ioread8(ap->ioaddr.lbah_addr) & 0x03]; in opti82c611a_set_piomode()
540 int khz[4] = { 50000, 40000, 33000, 25000 }; in opti82c46x_set_piomode() local
553 clock = 1000000000 / khz[sysclk]; in opti82c46x_set_piomode()