Home
last modified time | relevance | path

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

/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
Dnv40.c47 u32 ref = 27000, khz = 0; in read_pll_1() local
50 khz = ref * N / M; in read_pll_1()
52 return khz >> P; in read_pll_1()
66 u32 ref = 27000, khz = 0; in read_pll_2() local
69 khz = ref * N1 / M1; in read_pll_2()
72 khz = khz * N2 / M2; in read_pll_2()
74 khz = 0; in read_pll_2()
78 return khz >> P; in read_pll_2()
124 nv40_clk_calc_pll(struct nv40_clk *clk, u32 reg, u32 khz, in nv40_clk_calc_pll() argument
135 if (khz < pll.vco1.max_freq) in nv40_clk_calc_pll()
[all …]
Dgt215.c184 gt215_clk_info(struct nvkm_clk *base, int idx, u32 khz, in gt215_clk_info() argument
193 switch (khz) { in gt215_clk_info()
196 return khz; in gt215_clk_info()
199 return khz; in gt215_clk_info()
202 return khz; in gt215_clk_info()
205 sdiv = min((sclk * 2) / khz, (u32)65); in gt215_clk_info()
207 diff = ((khz + 3000) - oclk); in gt215_clk_info()
232 gt215_pll_info(struct nvkm_clk *base, int idx, u32 pll, u32 khz, in gt215_pll_info() argument
245 ret = gt215_clk_info(&clk->base, idx, khz, info); in gt215_pll_info()
246 diff = khz - ret; in gt215_pll_info()
[all …]
Dbase.c286 int khz = pstate->base.domain[nv_clk_src_mem]; in nvkm_pstate_prog() local
288 ret = ram->func->calc(ram, khz); in nvkm_pstate_prog()
/drivers/cpufreq/
Dpowernow-k6.c158 unsigned khz; in powernow_k6_cpu_init() local
164 khz = cpu_khz; in powernow_k6_cpu_init()
166 if (khz >= usual_frequency_table[i].freq - FREQ_RANGE && in powernow_k6_cpu_init()
167 khz <= usual_frequency_table[i].freq + FREQ_RANGE) { in powernow_k6_cpu_init()
168 khz = usual_frequency_table[i].freq; in powernow_k6_cpu_init()
185 khz); in powernow_k6_cpu_init()
202 busfreq = khz / max_multiplier; in powernow_k6_cpu_init()
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.c62 unsigned int khz; member
282 new_freq_cpu = pxa_freq_settings[idx].khz; in pxa_set_target()
379 pxa255_run_freq_table[i].frequency = pxa255_run_freqs[i].khz; in pxa_cpufreq_init()
387 pxa255_turbo_freqs[i].khz; in pxa_cpufreq_init()
396 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.c1143 unsigned int khz = 0; in powernowk8_get() local
1153 khz = find_khz_freq_from_fid(data->currfid); in powernowk8_get()
1157 return khz; in powernowk8_get()
/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dnv50.c134 struct nvkm_ior *ior, int id, u32 khz) in nv50_disp_super_ied_on() argument
173 data = nvbios_oclk_match(bios, iedtrs.clkcmp[id], khz); in nv50_disp_super_ied_on()
176 id, ior->asy.proto_evo, flags, khz); in nv50_disp_super_ied_on()
264 const u32 khz = head->asy.hz / 1000; in nv50_disp_super_2_2_dp() local
276 do_div(h, khz); in nv50_disp_super_2_2_dp()
282 do_div(v, khz); in nv50_disp_super_2_2_dp()
288 link_data_rate = (khz * head->asy.or.depth / 8) / ior->dp.nr; in nv50_disp_super_2_2_dp()
369 const u32 khz = head->asy.hz / 1000; in nv50_disp_super_2_2() local
398 nv50_disp_super_ied_on(head, ior, 0, khz); in nv50_disp_super_2_2()
417 const u32 khz = head->asy.hz / 1000; in nv50_disp_super_2_1() local
[all …]
Ddp.c462 u32 khz = (head->asy.hz >> ior->asy.rgdiv) / 1000; in nvkm_dp_acquire() local
463 datakbps += khz * head->asy.or.depth; in nvkm_dp_acquire()
/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/
Dbase.c38 nvkm_devinit_pll_set(struct nvkm_devinit *init, u32 type, u32 khz) in nvkm_devinit_pll_set() argument
40 return init->func->pll_set(init, type, khz); in nvkm_devinit_pll_set()
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Ddisp.c166 nvbios_oclk_match(struct nvkm_bios *bios, u16 cmp, u32 khz) in nvbios_oclk_match() argument
169 if (khz / 10 >= nvbios_rd16(bios, cmp + 0x00)) in nvbios_oclk_match()
/drivers/gpu/drm/nouveau/include/nvkm/subdev/
Ddevinit.h15 int nvkm_devinit_pll_set(struct nvkm_devinit *, u32 type, u32 khz);
/drivers/atm/
Dzatm.h84 int khz; /* timer clock */ member
Dzatm.c1253 zatm_dev->khz = t2-2*t1+t0; in zatm_init()
1257 zin(VER) & uPD98401_MINOR,zatm_dev->khz/1000,zatm_dev->khz % 1000); in zatm_init()
/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
Ddisp.h40 u16 nvbios_oclk_match(struct nvkm_bios *, u16 cmp, u32 khz);
/drivers/ata/
Dpata_legacy.c466 int khz[4] = { 50000, 40000, 33000, 25000 }; in opti82c611a_set_piomode() local
475 clock = 1000000000 / khz[ioread8(ap->ioaddr.lbah_addr) & 0x03]; in opti82c611a_set_piomode()
541 int khz[4] = { 50000, 40000, 33000, 25000 }; in opti82c46x_set_piomode() local
554 clock = 1000000000 / khz[sysclk]; in opti82c46x_set_piomode()
/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dramgk104.c962 gk104_ram_calc_data(struct gk104_ram *ram, u32 khz, struct nvkm_ram_data *data) in gk104_ram_calc_data() argument
966 u32 mhz = khz / 1000; in gk104_ram_calc_data()
972 data->freq = khz; in gk104_ram_calc_data()