Home
last modified time | relevance | path

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

/linux/arch/x86/kernel/cpu/resctrl/
H A Dcore.c289 struct rdt_hw_ctrl_domain *hw_dom = resctrl_to_arch_ctrl_dom(m->dom); in mba_wrmsr_amd() local
294 wrmsrq(hw_res->msr_base + i, hw_dom->ctrl_val[i]); in mba_wrmsr_amd()
313 struct rdt_hw_ctrl_domain *hw_dom = resctrl_to_arch_ctrl_dom(m->dom); in mba_wrmsr_intel() local
319 wrmsrq(hw_res->msr_base + i, delay_bw_map(hw_dom->ctrl_val[i], m->res)); in mba_wrmsr_intel()
324 struct rdt_hw_ctrl_domain *hw_dom = resctrl_to_arch_ctrl_dom(m->dom); in cat_wrmsr() local
329 wrmsrq(hw_res->msr_base + i, hw_dom->ctrl_val[i]); in cat_wrmsr()
360 static void ctrl_domain_free(struct rdt_hw_ctrl_domain *hw_dom) in ctrl_domain_free() argument
362 kfree(hw_dom->ctrl_val); in ctrl_domain_free()
363 kfree(hw_dom); in ctrl_domain_free()
366 static void mon_domain_free(struct rdt_hw_mon_domain *hw_dom) in mon_domain_free() argument
375 struct rdt_hw_ctrl_domain *hw_dom = resctrl_to_arch_ctrl_dom(d); domain_setup_ctrlval() local
401 arch_domain_mbm_alloc(u32 num_rmid,struct rdt_hw_mon_domain * hw_dom) arch_domain_mbm_alloc() argument
442 struct rdt_hw_ctrl_domain *hw_dom; domain_add_cpu_ctrl() local
498 struct rdt_hw_mon_domain *hw_dom; domain_add_cpu_mon() local
566 struct rdt_hw_ctrl_domain *hw_dom; domain_remove_cpu_ctrl() local
612 struct rdt_hw_mon_domain *hw_dom; domain_remove_cpu_mon() local
[all...]
H A Dctrlmondata.c25 struct rdt_hw_ctrl_domain *hw_dom = resctrl_to_arch_ctrl_dom(d); in resctrl_arch_update_one() local
33 hw_dom->ctrl_val[idx] = cfg_val; in resctrl_arch_update_one()
47 struct rdt_hw_ctrl_domain *hw_dom; in resctrl_arch_update_domains() local
57 hw_dom = resctrl_to_arch_ctrl_dom(d); in resctrl_arch_update_domains()
60 cfg = &hw_dom->d_resctrl.staged_config[t]; in resctrl_arch_update_domains()
65 if (cfg->new_ctrl == hw_dom->ctrl_val[idx]) in resctrl_arch_update_domains()
67 hw_dom->ctrl_val[idx] = cfg->new_ctrl; in resctrl_arch_update_domains()
89 struct rdt_hw_ctrl_domain *hw_dom = resctrl_to_arch_ctrl_dom(d); in resctrl_arch_get_config() local
92 return hw_dom->ctrl_val[idx]; in resctrl_arch_get_config()
H A Dmonitor.c165 static struct arch_mbm_state *get_arch_mbm_state(struct rdt_hw_mon_domain *hw_dom, in get_arch_mbm_state() argument
173 return &hw_dom->arch_mbm_total[rmid]; in get_arch_mbm_state()
175 return &hw_dom->arch_mbm_local[rmid]; in get_arch_mbm_state()
187 struct rdt_hw_mon_domain *hw_dom = resctrl_to_arch_mon_dom(d); in resctrl_arch_reset_rmid() local
192 am = get_arch_mbm_state(hw_dom, rmid, eventid); in resctrl_arch_reset_rmid()
208 struct rdt_hw_mon_domain *hw_dom = resctrl_to_arch_mon_dom(d); in resctrl_arch_reset_rmid_all() local
211 memset(hw_dom->arch_mbm_total, 0, in resctrl_arch_reset_rmid_all()
212 sizeof(*hw_dom->arch_mbm_total) * r->num_rmid); in resctrl_arch_reset_rmid_all()
215 memset(hw_dom->arch_mbm_local, 0, in resctrl_arch_reset_rmid_all()
216 sizeof(*hw_dom in resctrl_arch_reset_rmid_all()
231 struct rdt_hw_mon_domain *hw_dom = resctrl_to_arch_mon_dom(d); resctrl_arch_rmid_read() local
[all...]
H A Drdtgroup.c235 struct rdt_hw_ctrl_domain *hw_dom; in resctrl_arch_reset_all_ctrls() local
253 hw_dom = resctrl_to_arch_ctrl_dom(d); in resctrl_arch_reset_all_ctrls()
256 hw_dom->ctrl_val[i] = resctrl_get_default_ctrl(r); in resctrl_arch_reset_all_ctrls()