Home
last modified time | relevance | path

Searched refs:msr_no (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/arch/x86/lib/
Dmsr-smp.c19 rdmsr(rv->msr_no, reg->l, reg->h); in __rdmsr_on_cpu()
33 wrmsr(rv->msr_no, reg->l, reg->h); in __wrmsr_on_cpu()
36 int rdmsr_on_cpu(unsigned int cpu, u32 msr_no, u32 *l, u32 *h) in rdmsr_on_cpu() argument
43 rv.msr_no = msr_no; in rdmsr_on_cpu()
52 int rdmsrl_on_cpu(unsigned int cpu, u32 msr_no, u64 *q) in rdmsrl_on_cpu() argument
59 rv.msr_no = msr_no; in rdmsrl_on_cpu()
67 int wrmsr_on_cpu(unsigned int cpu, u32 msr_no, u32 l, u32 h) in wrmsr_on_cpu() argument
74 rv.msr_no = msr_no; in wrmsr_on_cpu()
83 int wrmsrl_on_cpu(unsigned int cpu, u32 msr_no, u64 q) in wrmsrl_on_cpu() argument
90 rv.msr_no = msr_no; in wrmsrl_on_cpu()
[all …]
/Linux-v4.19/arch/x86/include/asm/
Dmsr.h25 u32 msr_no; member
328 int rdmsr_on_cpu(unsigned int cpu, u32 msr_no, u32 *l, u32 *h);
329 int wrmsr_on_cpu(unsigned int cpu, u32 msr_no, u32 l, u32 h);
330 int rdmsrl_on_cpu(unsigned int cpu, u32 msr_no, u64 *q);
331 int wrmsrl_on_cpu(unsigned int cpu, u32 msr_no, u64 q);
332 void rdmsr_on_cpus(const struct cpumask *mask, u32 msr_no, struct msr *msrs);
333 void wrmsr_on_cpus(const struct cpumask *mask, u32 msr_no, struct msr *msrs);
334 int rdmsr_safe_on_cpu(unsigned int cpu, u32 msr_no, u32 *l, u32 *h);
335 int wrmsr_safe_on_cpu(unsigned int cpu, u32 msr_no, u32 l, u32 h);
336 int rdmsrl_safe_on_cpu(unsigned int cpu, u32 msr_no, u64 *q);
[all …]
/Linux-v4.19/arch/x86/power/
Dcpu.c43 msr->valid = !rdmsrl_safe(msr->info.msr_no, &msr->info.reg.q); in msr_save_context()
55 wrmsrl(msr->info.msr_no, msr->info.reg.q); in msr_restore_context()
408 msr_array[i].info.msr_no = msr_id[i]; in msr_init_context()
/Linux-v4.19/drivers/powercap/
Dintel_rapl.c143 u32 msr_no; member
841 static int msrl_update_safe(u32 msr_no, u64 clear_mask, u64 set_mask) in msrl_update_safe() argument
846 err = rdmsrl_safe(msr_no, &val); in msrl_update_safe()
853 err = wrmsrl_safe(msr_no, val); in msrl_update_safe()
863 ma->err = msrl_update_safe(ma->msr_no, ma->clear_mask, ma->set_mask); in msrl_update_func()
884 ma.msr_no = rd->msrs[rp->id]; in rapl_write_data_raw()