Home
last modified time | relevance | path

Searched refs:hw_res (Results 1 – 14 of 14) sorted by relevance

/Linux-v5.15/arch/x86/kernel/cpu/resctrl/
Dcore.c131 struct rdt_hw_resource *hw_res = &rdt_resources_all[RDT_RESOURCE_L3]; in cache_alloc_hsw_probe() local
132 struct rdt_resource *r = &hw_res->r_resctrl; in cache_alloc_hsw_probe()
144 hw_res->num_closid = 4; in cache_alloc_hsw_probe()
186 struct rdt_hw_resource *hw_res = resctrl_to_arch_res(r); in __get_mem_config_intel() local
192 hw_res->num_closid = edx.split.cos_max + 1; in __get_mem_config_intel()
221 struct rdt_hw_resource *hw_res = resctrl_to_arch_res(r); in __rdt_get_mem_config_amd() local
227 hw_res->num_closid = edx.split.cos_max + 1; in __rdt_get_mem_config_amd()
252 struct rdt_hw_resource *hw_res = resctrl_to_arch_res(r); in rdt_get_cache_alloc_cfg() local
258 hw_res->num_closid = edx.split.cos_max + 1; in rdt_get_cache_alloc_cfg()
292 struct rdt_hw_resource *hw_res = resctrl_to_arch_res(r); in mba_wrmsr_amd() local
[all …]
Dmonitor.c290 struct rdt_hw_resource *hw_res = resctrl_to_arch_res(rr->r); in __mon_event_count() local
322 chunks = mbm_overflow_count(m->prev_msr, tval, hw_res->mbm_width); in __mon_event_count()
337 struct rdt_hw_resource *hw_res = resctrl_to_arch_res(rr->r); in mbm_bw_count() local
345 chunks = mbm_overflow_count(m->prev_bw_msr, tval, hw_res->mbm_width); in mbm_bw_count()
346 cur_bw = (get_corrected_mbm_count(rmid, chunks) * hw_res->mon_scale) >> 20; in mbm_bw_count()
688 struct rdt_hw_resource *hw_res = resctrl_to_arch_res(r); in rdt_get_mon_l3_config() local
692 hw_res->mon_scale = boot_cpu_data.x86_cache_occ_scale; in rdt_get_mon_l3_config()
694 hw_res->mbm_width = MBM_CNTR_WIDTH_BASE; in rdt_get_mon_l3_config()
697 hw_res->mbm_width += mbm_offset; in rdt_get_mon_l3_config()
711 resctrl_cqm_threshold /= hw_res->mon_scale; in rdt_get_mon_l3_config()
Dinternal.h428 struct rdt_hw_resource *hw_res = resctrl_to_arch_res(res); in resctrl_inc() local
430 hw_res++; in resctrl_inc()
431 return &hw_res->r_resctrl; in resctrl_inc()
Dctrlmondata.c521 struct rdt_hw_resource *hw_res; in rdtgroup_mondata_show() local
541 hw_res = &rdt_resources_all[resid]; in rdtgroup_mondata_show()
542 r = &hw_res->r_resctrl; in rdtgroup_mondata_show()
556 seq_printf(m, "%llu\n", rr.val * hw_res->mon_scale); in rdtgroup_mondata_show()
Drdtgroup.c1034 struct rdt_hw_resource *hw_res = resctrl_to_arch_res(r); in max_threshold_occ_show() local
1036 seq_printf(seq, "%u\n", resctrl_cqm_threshold * hw_res->mon_scale); in max_threshold_occ_show()
1058 struct rdt_hw_resource *hw_res; in max_threshold_occ_write() local
1069 hw_res = resctrl_to_arch_res(of->kn->parent->priv); in max_threshold_occ_write()
1070 resctrl_cqm_threshold = bytes / hw_res->mon_scale; in max_threshold_occ_write()
1880 struct rdt_hw_resource *hw_res = resctrl_to_arch_res(r); in rdt_domain_reconfigure_cdp() local
1886 l2_qos_cfg_update(&hw_res->cdp_enabled); in rdt_domain_reconfigure_cdp()
1889 l3_qos_cfg_update(&hw_res->cdp_enabled); in rdt_domain_reconfigure_cdp()
1944 struct rdt_hw_resource *hw_res = &rdt_resources_all[l]; in resctrl_arch_set_cdp_enabled() local
1946 if (!hw_res->r_resctrl.cdp_capable) in resctrl_arch_set_cdp_enabled()
[all …]
/Linux-v5.15/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_rm.c31 struct dpu_encoder_hw_resources hw_res; member
486 struct dpu_encoder_hw_resources *hw_res) in _dpu_rm_reserve_intf_related_hw() argument
491 for (i = 0; i < ARRAY_SIZE(hw_res->intfs); i++) { in _dpu_rm_reserve_intf_related_hw()
492 if (hw_res->intfs[i] == INTF_MODE_NONE) in _dpu_rm_reserve_intf_related_hw()
525 &reqs->hw_res); in _dpu_rm_make_reservation()
537 dpu_encoder_get_hw_resources(enc, &reqs->hw_res); in _dpu_rm_populate_requirements()
Ddpu_encoder.h35 struct dpu_encoder_hw_resources *hw_res);
Ddpu_encoder_phys.h133 struct dpu_encoder_hw_resources *hw_res);
Ddpu_encoder_phys_cmd.c539 struct dpu_encoder_hw_resources *hw_res) in dpu_encoder_phys_cmd_get_hw_resources() argument
541 hw_res->intfs[phys_enc->intf_idx - INTF_0] = INTF_MODE_CMD; in dpu_encoder_phys_cmd_get_hw_resources()
Ddpu_encoder_phys_vid.c470 struct dpu_encoder_hw_resources *hw_res) in dpu_encoder_phys_vid_get_hw_resources() argument
472 hw_res->intfs[phys_enc->intf_idx - INTF_0] = INTF_MODE_VIDEO; in dpu_encoder_phys_vid_get_hw_resources()
Ddpu_encoder.c429 struct dpu_encoder_hw_resources *hw_res) in dpu_encoder_get_hw_resources() argument
438 memset(hw_res, 0, sizeof(*hw_res)); in dpu_encoder_get_hw_resources()
444 phys->ops.get_hw_resources(phys, hw_res); in dpu_encoder_get_hw_resources()
/Linux-v5.15/drivers/net/fjes/
Dfjes_hw.c37 if (!request_mem_region(hw->hw_res.start, hw->hw_res.size, in fjes_hw_iomap()
43 base = (u8 *)ioremap(hw->hw_res.start, hw->hw_res.size); in fjes_hw_iomap()
51 release_mem_region(hw->hw_res.start, hw->hw_res.size); in fjes_hw_iounmap()
Dfjes_main.c222 result = request_irq(adapter->hw.hw_res.irq, fjes_intr, in fjes_request_irq()
243 free_irq(adapter->hw.hw_res.irq, adapter); in fjes_free_irq()
1261 hw->hw_res.start = res->start; in fjes_probe()
1262 hw->hw_res.size = resource_size(res); in fjes_probe()
1263 hw->hw_res.irq = platform_get_irq(plat_dev, 0); in fjes_probe()
1356 fjes_intr(adapter->hw.hw_res.irq, adapter); in fjes_irq_watch_task()
Dfjes_hw.h313 } hw_res; member