Searched refs:hw_dom (Results 1 – 4 of 4) sorted by relevance
/linux/arch/x86/kernel/cpu/resctrl/ |
H A D | core.c | 319 struct rdt_hw_ctrl_domain *hw_dom = resctrl_to_arch_ctrl_dom(m->dom); in mba_wrmsr_amd() local 324 wrmsrl(hw_res->msr_base + i, hw_dom->ctrl_val[i]); in mba_wrmsr_amd() 343 struct rdt_hw_ctrl_domain *hw_dom = resctrl_to_arch_ctrl_dom(m->dom); in mba_wrmsr_intel() local 349 wrmsrl(hw_res->msr_base + i, delay_bw_map(hw_dom->ctrl_val[i], m->res)); in mba_wrmsr_intel() 354 struct rdt_hw_ctrl_domain *hw_dom = resctrl_to_arch_ctrl_dom(m->dom); in cat_wrmsr() local 359 wrmsrl(hw_res->msr_base + i, hw_dom->ctrl_val[i]); in cat_wrmsr() 450 static void ctrl_domain_free(struct rdt_hw_ctrl_domain *hw_dom) in ctrl_domain_free() argument 452 kfree(hw_dom->ctrl_val); in ctrl_domain_free() 453 kfree(hw_dom); in ctrl_domain_free() 456 static void mon_domain_free(struct rdt_hw_mon_domain *hw_dom) in mon_domain_free() argument [all …]
|
H A D | ctrlmondata.c | 283 struct rdt_hw_ctrl_domain *hw_dom = resctrl_to_arch_ctrl_dom(d); in resctrl_arch_update_one() local 291 hw_dom->ctrl_val[idx] = cfg_val; in resctrl_arch_update_one() 305 struct rdt_hw_ctrl_domain *hw_dom; in resctrl_arch_update_domains() local 315 hw_dom = resctrl_to_arch_ctrl_dom(d); in resctrl_arch_update_domains() 318 cfg = &hw_dom->d_resctrl.staged_config[t]; in resctrl_arch_update_domains() 323 if (cfg->new_ctrl == hw_dom->ctrl_val[idx]) in resctrl_arch_update_domains() 325 hw_dom->ctrl_val[idx] = cfg->new_ctrl; in resctrl_arch_update_domains() 441 struct rdt_hw_ctrl_domain *hw_dom = resctrl_to_arch_ctrl_dom(d); in resctrl_arch_get_config() local 444 return hw_dom->ctrl_val[idx]; in resctrl_arch_get_config()
|
H A D | monitor.c | 252 static struct arch_mbm_state *get_arch_mbm_state(struct rdt_hw_mon_domain *hw_dom, in get_arch_mbm_state() argument 260 return &hw_dom->arch_mbm_total[rmid]; in get_arch_mbm_state() 262 return &hw_dom->arch_mbm_local[rmid]; in get_arch_mbm_state() 275 struct rdt_hw_mon_domain *hw_dom = resctrl_to_arch_mon_dom(d); in resctrl_arch_reset_rmid() local 280 am = get_arch_mbm_state(hw_dom, rmid, eventid); in resctrl_arch_reset_rmid() 296 struct rdt_hw_mon_domain *hw_dom = resctrl_to_arch_mon_dom(d); in resctrl_arch_reset_rmid_all() local 299 memset(hw_dom->arch_mbm_total, 0, in resctrl_arch_reset_rmid_all() 300 sizeof(*hw_dom->arch_mbm_total) * r->num_rmid); in resctrl_arch_reset_rmid_all() 303 memset(hw_dom->arch_mbm_local, 0, in resctrl_arch_reset_rmid_all() 304 sizeof(*hw_dom->arch_mbm_local) * r->num_rmid); in resctrl_arch_reset_rmid_all() [all …]
|
H A D | rdtgroup.c | 2818 struct rdt_hw_ctrl_domain *hw_dom; in reset_all_ctrls() local 2836 hw_dom = resctrl_to_arch_ctrl_dom(d); in reset_all_ctrls() 2839 hw_dom->ctrl_val[i] = r->default_ctrl; in reset_all_ctrls()
|