/drivers/cpufreq/ |
D | gx-suspmod.c | 221 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()
|
D | pxa2xx-cpufreq.c | 60 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()
|
D | longhaul.c | 110 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()
|
D | sa1110-cpufreq.c | 125 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()
|
D | powernow-k8.c | 1213 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/ |
D | nva3_pm.c | 121 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()
|
D | nv04_pm.c | 64 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/ |
D | disp.c | 170 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/ |
D | zatm.h | 83 int khz; /* timer clock */ member
|
D | zatm.c | 1250 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/ |
D | disp.h | 46 u16 nvbios_oclk_match(struct nouveau_bios *, u16 cmp, u32 khz);
|
/drivers/ata/ |
D | pata_legacy.c | 465 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()
|