/linux-6.12.1/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
D | nv40.c | 47 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 …]
|
D | gt215.c | 187 gt215_clk_info(struct nvkm_clk *base, int idx, u32 khz, in gt215_clk_info() argument 196 switch (khz) { in gt215_clk_info() 199 return khz; in gt215_clk_info() 202 return khz; in gt215_clk_info() 205 return khz; in gt215_clk_info() 208 sdiv = min((sclk * 2) / khz, (u32)65); in gt215_clk_info() 210 diff = ((khz + 3000) - oclk); in gt215_clk_info() 235 gt215_pll_info(struct nvkm_clk *base, int idx, u32 pll, u32 khz, in gt215_pll_info() argument 248 ret = gt215_clk_info(&clk->base, idx, khz, info); in gt215_pll_info() 249 diff = khz - ret; in gt215_pll_info() [all …]
|
/linux-6.12.1/drivers/cpufreq/ |
D | powernow-k6.c | 157 unsigned khz; in powernow_k6_cpu_init() local 163 khz = cpu_khz; in powernow_k6_cpu_init() 165 if (khz >= usual_frequency_table[i].freq - FREQ_RANGE && in powernow_k6_cpu_init() 166 khz <= usual_frequency_table[i].freq + FREQ_RANGE) { in powernow_k6_cpu_init() 167 khz = usual_frequency_table[i].freq; in powernow_k6_cpu_init() 184 khz); in powernow_k6_cpu_init() 201 busfreq = khz / max_multiplier; in powernow_k6_cpu_init()
|
D | pxa2xx-cpufreq.c | 51 unsigned int khz; member 195 new_freq_cpu = pxa_freq_settings[idx].khz; in pxa_set_target() 242 pxa255_run_freq_table[i].frequency = pxa255_run_freqs[i].khz; in pxa_cpufreq_init() 250 pxa255_turbo_freqs[i].khz; in pxa_cpufreq_init() 259 freq = pxa27x_freqs[i].khz; in pxa_cpufreq_init()
|
D | gx-suspmod.c | 217 static unsigned int gx_validate_speed(unsigned int khz, u8 *on_duration, in gx_validate_speed() argument 229 tmp_off = ((khz * i) / stock_freq) & 0xff; in gx_validate_speed() 234 if (abs(tmp_freq - khz) <= abs(old_tmp_freq - khz)) { in gx_validate_speed() 250 static void gx_set_cpuspeed(struct cpufreq_policy *policy, unsigned int khz) in gx_set_cpuspeed() argument 259 new_khz = gx_validate_speed(khz, &gx_params->on_duration, in gx_set_cpuspeed()
|
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 | 122 static inline u_int ns_to_cycles(u_int ns, u_int khz) in ns_to_cycles() argument 124 return (ns * khz + 999999) / 1000000; in ns_to_cycles()
|
/linux-6.12.1/include/linux/ |
D | clocksource.h | 178 static inline u32 clocksource_khz2mult(u32 khz, u32 shift_constant) in clocksource_khz2mult() argument 180 return clocksource_freq2mult(khz, shift_constant, NSEC_PER_MSEC); in clocksource_khz2mult() 255 static inline int clocksource_register_khz(struct clocksource *cs, u32 khz) in clocksource_register_khz() argument 257 return __clocksource_register_scale(cs, 1000, khz); in clocksource_register_khz() 265 static inline void __clocksource_update_freq_khz(struct clocksource *cs, u32 khz) in __clocksource_update_freq_khz() argument 267 __clocksource_update_freq_scale(cs, 1000, khz); in __clocksource_update_freq_khz()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/inc/hw/ |
D | clk_mgr_internal.h | 393 static inline int khz_to_mhz_ceil(int khz) in khz_to_mhz_ceil() argument 395 return (khz + 999) / 1000; in khz_to_mhz_ceil() 398 static inline int khz_to_mhz_floor(int khz) in khz_to_mhz_floor() argument 400 return khz / 1000; in khz_to_mhz_floor()
|
/linux-6.12.1/Documentation/devicetree/bindings/clock/ |
D | maxim,max77686.txt | 10 The MAX77686 contains three 32.768khz clock outputs that can be controlled 15 The MAX77802 contains two 32.768khz clock outputs that can be controlled 19 The MAX77686 contains one 32.768khz clock outputs that can be controlled
|
/linux-6.12.1/arch/x86/kernel/ |
D | kvmclock.c | 125 unsigned long khz; in kvm_get_preset_lpj() local 128 khz = kvm_get_tsc_khz(); in kvm_get_preset_lpj() 130 lpj = ((u64)khz * 1000); in kvm_get_preset_lpj()
|
D | tsc.c | 145 static void __set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in __set_cyc2ns_scale() argument 158 clocks_calc_mult_shift(&data.cyc2ns_mul, &data.cyc2ns_shift, khz, in __set_cyc2ns_scale() 183 static void set_cyc2ns_scale(unsigned long khz, int cpu, unsigned long long tsc_now) in set_cyc2ns_scale() argument 190 if (khz) in set_cyc2ns_scale() 191 __set_cyc2ns_scale(khz, cpu, tsc_now); in set_cyc2ns_scale()
|
/linux-6.12.1/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
D | base.c | 38 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()
|
/linux-6.12.1/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | nv50.c | 1030 struct nvkm_ior *ior, int id, u32 khz) in nv50_disp_super_ied_on() argument 1069 data = nvbios_oclk_match(bios, iedtrs.clkcmp[id], khz); in nv50_disp_super_ied_on() 1072 id, ior->asy.proto_evo, flags, khz); in nv50_disp_super_ied_on() 1160 const u32 khz = head->asy.hz / 1000; in nv50_disp_super_2_2_dp() local 1172 do_div(h, khz); in nv50_disp_super_2_2_dp() 1178 do_div(v, khz); in nv50_disp_super_2_2_dp() 1184 link_data_rate = (khz * head->asy.or.depth / 8) / ior->dp.nr; in nv50_disp_super_2_2_dp() 1265 const u32 khz = head->asy.hz / 1000; in nv50_disp_super_2_2() local 1292 nv50_disp_super_ied_on(head, ior, 0, khz); in nv50_disp_super_2_2() 1311 const u32 khz = head->asy.hz / 1000; in nv50_disp_super_2_1() local [all …]
|
D | gm200.c | 71 gm200_sor_hdmi_scdc(struct nvkm_ior *ior, u32 khz, bool support, bool scrambling, in gm200_sor_hdmi_scdc() argument 78 ior->tmds.high_speed = khz > 340000; in gm200_sor_hdmi_scdc()
|
/linux-6.12.1/drivers/gpu/drm/sprd/ |
D | megacores_pll.c | 32 const u32 khz = 1000; in dphy_calc_pll_param() local 38 pll->potential_fvco = pll->freq / khz; in dphy_calc_pll_param() 39 pll->ref_clk = PHY_REF_CLK / khz; in dphy_calc_pll_param()
|
/linux-6.12.1/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | disp.c | 166 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()
|
/linux-6.12.1/drivers/gpu/drm/nouveau/nvif/ |
D | outp.c | 230 u32 khz, bool scdc, bool scdc_scrambling, bool scdc_low_rates) in nvif_outp_hdmi() argument 240 args.khz = khz; in nvif_outp_hdmi() 249 args.head, args.enable, args.max_ac_packet, args.rekey, args.khz, in nvif_outp_hdmi()
|
/linux-6.12.1/drivers/gpu/drm/nouveau/include/nvkm/subdev/ |
D | devinit.h | 15 int nvkm_devinit_pll_set(struct nvkm_devinit *, u32 type, u32 khz);
|
/linux-6.12.1/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
D | disp.h | 40 u16 nvbios_oclk_match(struct nvkm_bios *, u16 cmp, u32 khz);
|
/linux-6.12.1/drivers/gpu/drm/nouveau/ |
D | nouveau_encoder.h | 164 bool nouveau_dp_train(struct nouveau_encoder *, bool mst, u32 khz, u8 bpc);
|
/linux-6.12.1/drivers/gpu/drm/nouveau/include/nvif/ |
D | outp.h | 92 int nvif_outp_hdmi(struct nvif_outp *, int head, bool enable, u8 max_ac_packet, u8 rekey, u32 khz,
|
D | if0012.h | 178 __u32 khz; member
|
/linux-6.12.1/drivers/ata/ |
D | pata_legacy.c | 489 int khz[4] = { 50000, 40000, 33000, 25000 }; in opti82c611a_set_piomode() local 498 clock = 1000000000 / khz[ioread8(ap->ioaddr.lbah_addr) & 0x03]; in opti82c611a_set_piomode() 564 int khz[4] = { 50000, 40000, 33000, 25000 }; in opti82c46x_set_piomode() local 577 clock = 1000000000 / khz[sysclk]; in opti82c46x_set_piomode()
|
/linux-6.12.1/tools/power/x86/x86_energy_perf_policy/ |
D | x86_energy_perf_policy.c | 964 int khz; in update_cpufreq_scaling_freq() local 976 khz = ratio_2_sysfs_khz(ratio); in update_cpufreq_scaling_freq() 977 retval = fprintf(fp, "%d", khz); in update_cpufreq_scaling_freq() 982 printf("echo %d > %s\n", khz, pathname); in update_cpufreq_scaling_freq()
|