Searched refs:hw_dom (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/arch/x86/kernel/cpu/resctrl/ |
H A D | core.c | 304 struct rdt_hw_domain *hw_dom = resctrl_to_arch_dom(d); in mba_wrmsr_amd() local 308 wrmsrl(hw_res->msr_base + i, hw_dom->ctrl_val[i]); in mba_wrmsr_amd() 330 struct rdt_hw_domain *hw_dom = resctrl_to_arch_dom(d); in mba_wrmsr_intel() local 335 wrmsrl(hw_res->msr_base + i, delay_bw_map(hw_dom->ctrl_val[i], r)); in mba_wrmsr_intel() 342 struct rdt_hw_domain *hw_dom = resctrl_to_arch_dom(d); in cat_wrmsr() local 346 wrmsrl(hw_res->msr_base + i, hw_dom->ctrl_val[i]); in cat_wrmsr() 431 static void domain_free(struct rdt_hw_domain *hw_dom) in domain_free() argument 433 kfree(hw_dom->arch_mbm_total); in domain_free() 434 kfree(hw_dom->arch_mbm_local); in domain_free() 435 kfree(hw_dom->ctrl_val); in domain_free() [all …]
|
H A D | ctrlmondata.c | 273 static bool apply_config(struct rdt_hw_domain *hw_dom, in apply_config() argument 277 struct rdt_domain *dom = &hw_dom->d_resctrl; in apply_config() 279 if (cfg->new_ctrl != hw_dom->ctrl_val[idx]) { in apply_config() 281 hw_dom->ctrl_val[idx] = cfg->new_ctrl; in apply_config() 293 struct rdt_hw_domain *hw_dom = resctrl_to_arch_dom(d); in resctrl_arch_update_one() local 300 hw_dom->ctrl_val[idx] = cfg_val; in resctrl_arch_update_one() 313 struct rdt_hw_domain *hw_dom; in resctrl_arch_update_domains() local 325 hw_dom = resctrl_to_arch_dom(d); in resctrl_arch_update_domains() 327 cfg = &hw_dom->d_resctrl.staged_config[t]; in resctrl_arch_update_domains() 332 if (!apply_config(hw_dom, cfg, idx, cpu_mask)) in resctrl_arch_update_domains() [all …]
|
H A D | monitor.c | 173 static struct arch_mbm_state *get_arch_mbm_state(struct rdt_hw_domain *hw_dom, in get_arch_mbm_state() argument 181 return &hw_dom->arch_mbm_total[rmid]; in get_arch_mbm_state() 183 return &hw_dom->arch_mbm_local[rmid]; in get_arch_mbm_state() 195 struct rdt_hw_domain *hw_dom = resctrl_to_arch_dom(d); in resctrl_arch_reset_rmid() local 198 am = get_arch_mbm_state(hw_dom, rmid, eventid); in resctrl_arch_reset_rmid() 213 struct rdt_hw_domain *hw_dom = resctrl_to_arch_dom(d); in resctrl_arch_reset_rmid_all() local 216 memset(hw_dom->arch_mbm_total, 0, in resctrl_arch_reset_rmid_all() 217 sizeof(*hw_dom->arch_mbm_total) * r->num_rmid); in resctrl_arch_reset_rmid_all() 220 memset(hw_dom->arch_mbm_local, 0, in resctrl_arch_reset_rmid_all() 221 sizeof(*hw_dom->arch_mbm_local) * r->num_rmid); in resctrl_arch_reset_rmid_all() [all …]
|
H A D | rdtgroup.c | 2636 struct rdt_hw_domain *hw_dom; in reset_all_ctrls() local 2655 hw_dom = resctrl_to_arch_dom(d); in reset_all_ctrls() 2659 hw_dom->ctrl_val[i] = r->default_ctrl; in reset_all_ctrls()
|