Home
last modified time | relevance | path

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

/linux-6.15/arch/x86/kernel/cpu/resctrl/
H A Dcore.c380 kfree(hw_dom->ctrl_val); in ctrl_domain_free()
381 kfree(hw_dom); in ctrl_domain_free()
388 kfree(hw_dom); in mon_domain_free()
403 hw_dom->ctrl_val = dc; in domain_setup_ctrlval()
486 hw_dom = kzalloc_node(sizeof(*hw_dom), GFP_KERNEL, cpu_to_node(cpu)); in domain_add_cpu_ctrl()
487 if (!hw_dom) in domain_add_cpu_ctrl()
490 d = &hw_dom->d_resctrl; in domain_add_cpu_ctrl()
539 hw_dom = kzalloc_node(sizeof(*hw_dom), GFP_KERNEL, cpu_to_node(cpu)); in domain_add_cpu_mon()
540 if (!hw_dom) in domain_add_cpu_mon()
543 d = &hw_dom->d_resctrl; in domain_add_cpu_mon()
[all …]
H A Dmonitor.c260 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()
319 struct rdt_hw_mon_domain *hw_dom = resctrl_to_arch_mon_dom(d); in resctrl_arch_rmid_read() local
[all …]
H A Dctrlmondata.c293 struct rdt_hw_ctrl_domain *hw_dom = resctrl_to_arch_ctrl_dom(d); in resctrl_arch_update_one() local
301 hw_dom->ctrl_val[idx] = cfg_val; in resctrl_arch_update_one()
315 struct rdt_hw_ctrl_domain *hw_dom; in resctrl_arch_update_domains() local
325 hw_dom = resctrl_to_arch_ctrl_dom(d); in resctrl_arch_update_domains()
328 cfg = &hw_dom->d_resctrl.staged_config[t]; in resctrl_arch_update_domains()
333 if (cfg->new_ctrl == hw_dom->ctrl_val[idx]) in resctrl_arch_update_domains()
335 hw_dom->ctrl_val[idx] = cfg->new_ctrl; in resctrl_arch_update_domains()
451 struct rdt_hw_ctrl_domain *hw_dom = resctrl_to_arch_ctrl_dom(d); in resctrl_arch_get_config() local
454 return hw_dom->ctrl_val[idx]; in resctrl_arch_get_config()
H A Drdtgroup.c2927 struct rdt_hw_ctrl_domain *hw_dom; in resctrl_arch_reset_all_ctrls() local
2945 hw_dom = resctrl_to_arch_ctrl_dom(d); in resctrl_arch_reset_all_ctrls()
2948 hw_dom->ctrl_val[i] = resctrl_get_default_ctrl(r); in resctrl_arch_reset_all_ctrls()