Home
last modified time | relevance | path

Searched refs:cxlr (Results 1 – 12 of 12) sorted by relevance

/linux/drivers/cxl/core/
H A Dregion.c57 struct cxl_region *cxlr = to_cxl_region(dev); \
59 if (cxlr->coord[level].attrib == 0) \
62 return sysfs_emit(buf, "%u\n", cxlr->coord[level].attrib); \
100 struct cxl_region *cxlr = to_cxl_region(dev); \
103 cxlr->coord[level].read_latency == 0) \
107 cxlr->coord[level].write_latency == 0) \
111 cxlr->coord[level].read_bandwidth == 0) \
115 cxlr->coord[level].write_bandwidth == 0) \
149 struct cxl_region *cxlr = to_cxl_region(dev); in uuid_show() local
150 struct cxl_region_params *p = &cxlr->params; in uuid_show()
[all …]
H A Dcdat.c628 static int cxl_endpoint_gather_bandwidth(struct cxl_region *cxlr, in cxl_endpoint_gather_bandwidth() argument
754 static struct xarray *cxl_switch_gather_bandwidth(struct cxl_region *cxlr, in DEFINE_FREE()
845 dev_dbg(&cxlr->dev, in DEFINE_FREE()
954 static void cxl_region_update_bandwidth(struct cxl_region *cxlr, in cxl_region_update_bandwidth() argument
966 cxlr->coord[i].read_bandwidth = coord[i].read_bandwidth; in cxl_region_update_bandwidth()
967 cxlr->coord[i].write_bandwidth = coord[i].write_bandwidth; in cxl_region_update_bandwidth()
980 void cxl_region_shared_upstream_bandwidth_update(struct cxl_region *cxlr) in cxl_region_shared_upstream_bandwidth_update() argument
998 for (int i = 0; i < cxlr->params.nr_targets; i++) { in cxl_region_shared_upstream_bandwidth_update()
999 struct cxl_endpoint_decoder *cxled = cxlr->params.targets[i]; in cxl_region_shared_upstream_bandwidth_update()
1002 rc = cxl_endpoint_gather_bandwidth(cxlr, cxled, usp_xa, &is_root); in cxl_region_shared_upstream_bandwidth_update()
[all …]
H A Dcore.h38 int cxl_decoder_detach(struct cxl_region *cxlr,
51 u64 cxl_dpa_to_hpa(struct cxl_region *cxlr, const struct cxl_memdev *cxlmd,
53 int devm_cxl_add_dax_region(struct cxl_region *cxlr);
54 int devm_cxl_add_pmem_region(struct cxl_region *cxlr);
58 static inline u64 cxl_dpa_to_hpa(struct cxl_region *cxlr, in cxl_dpa_to_hpa() argument
72 static inline int cxl_decoder_detach(struct cxl_region *cxlr, in cxl_decoder_detach() argument
H A Dtrace.h460 struct cxl_region *cxlr, u64 hpa, u64 hpa_alias0,
463 TP_ARGS(cxlmd, log, cxlr, hpa, hpa_alias0, rec),
485 __string(region_name, cxlr ? dev_name(&cxlr->dev) : "")
509 if (cxlr) {
511 uuid_copy(&__entry->region_uuid, &cxlr->params.uuid);
603 struct cxl_region *cxlr, u64 hpa, u64 hpa_alias0,
606 TP_ARGS(cxlmd, log, cxlr, hpa, hpa_alias0, rec),
634 __string(region_name, cxlr ? dev_name(&cxlr->dev) : "")
661 if (cxlr) {
663 uuid_copy(&__entry->region_uuid, &cxlr->params.uuid);
[all …]
H A Dmce.c14 struct cxl_region *cxlr = container_of(nb, struct cxl_region, in cxl_handle_mce() local
16 struct cxl_region_params *p = &cxlr->params; in cxl_handle_mce()
42 dev_emerg(&cxlr->dev, "Offlining aliased SPA address0: %#llx\n", in cxl_handle_mce()
H A Dedac.c37 struct cxl_region *cxlr; member
108 struct cxl_region *cxlr; in cxl_scrub_get_attrbs() local
112 if (!cxl_ps_ctx->cxlr) { in cxl_scrub_get_attrbs()
122 cxlr = cxl_ps_ctx->cxlr; in cxl_scrub_get_attrbs()
123 p = &cxlr->params; in cxl_scrub_get_attrbs()
157 struct cxl_region *cxlr; in cxl_scrub_set_attrbs_region() local
164 cxlr = cxl_ps_ctx->cxlr; in cxl_scrub_set_attrbs_region()
165 p = &cxlr->params; in cxl_scrub_set_attrbs_region()
187 cxlmd->scrub_region_id, cxlr->id, in cxl_scrub_set_attrbs_region()
191 cxlmd->scrub_region_id = cxlr->id; in cxl_scrub_set_attrbs_region()
[all …]
H A Dmemdev.c297 struct cxl_region *cxlr; in cxl_inject_poison_locked() local
320 cxlr = cxl_dpa_to_region(cxlmd, dpa); in cxl_inject_poison_locked()
321 if (cxlr) in cxl_inject_poison_locked()
324 dev_name(&cxlr->dev)); in cxl_inject_poison_locked()
330 trace_cxl_poison(cxlmd, cxlr, &record, 0, 0, CXL_POISON_TRACE_INJECT); in cxl_inject_poison_locked()
357 struct cxl_region *cxlr; in cxl_clear_poison_locked() local
389 cxlr = cxl_dpa_to_region(cxlmd, dpa); in cxl_clear_poison_locked()
390 if (cxlr) in cxl_clear_poison_locked()
393 dev_name(&cxlr->dev)); in cxl_clear_poison_locked()
399 trace_cxl_poison(cxlmd, cxlr, &record, 0, 0, CXL_POISON_TRACE_CLEAR); in cxl_clear_poison_locked()
H A Dmbox.c918 struct cxl_region *cxlr; in cxl_event_trace_record() local
930 cxlr = cxl_dpa_to_region(cxlmd, dpa); in cxl_event_trace_record()
931 if (cxlr) { in cxl_event_trace_record()
932 u64 cache_size = cxlr->params.cache_size; in cxl_event_trace_record()
934 hpa = cxl_dpa_to_hpa(cxlr, cxlmd, dpa); in cxl_event_trace_record()
952 trace_cxl_general_media(cxlmd, type, cxlr, hpa, in cxl_event_trace_record()
967 trace_cxl_dram(cxlmd, type, cxlr, hpa, hpa_alias, in cxl_event_trace_record()
1380 struct cxl_region *cxlr) in cxl_mem_get_poison() argument
1417 trace_cxl_poison(cxlmd, cxlr, &po->record[i], in cxl_mem_get_poison()
/linux/drivers/cxl/
H A Dpmem.c399 struct cxl_region *cxlr = cxlr_pmem->cxlr; in cxl_pmem_region_probe() local
400 struct cxl_nvdimm_bridge *cxl_nvb = cxlr->cxl_nvb; in cxl_pmem_region_probe()
437 dev_dbg(&cxlr->dev, "changing target node from %d to %d", in cxl_pmem_region_probe()
445 ndr_desc.memregion = cxlr->id; in cxl_pmem_region_probe()
H A Dcxl.h533 struct cxl_region *cxlr; member
542 struct cxl_region *cxlr; member
905 void cxl_region_perf_data_calculate(struct cxl_region *cxlr,
907 void cxl_region_shared_upstream_bandwidth_update(struct cxl_region *cxlr);
H A Dcxlmem.h814 struct cxl_region *cxlr);
823 int devm_cxl_region_edac_register(struct cxl_region *cxlr);
829 static inline int devm_cxl_region_edac_register(struct cxl_region *cxlr) in devm_cxl_region_edac_register() argument
/linux/Documentation/driver-api/cxl/linux/
H A Daccess-coordinates.rst169 access coordinates residing in the cxl region (cxlr) context.