Searched refs:cxlrd (Results 1 – 6 of 6) sorted by relevance
| /linux/drivers/cxl/core/ |
| H A D | region.c | 491 struct cxl_root_decoder *cxlrd = cxlr->cxlrd; in set_interleave_ways() local 492 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in set_interleave_ways() 565 struct cxl_root_decoder *cxlrd = cxlr->cxlrd; in set_interleave_granularity() local 566 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in set_interleave_granularity() 655 struct cxl_root_decoder *cxlrd = cxlr->cxlrd; in alloc_hpa() local 682 res = alloc_free_mem_region(cxlrd->res, size, SZ_256M, in alloc_hpa() 687 res, &size, cxlrd->res->name, cxlrd->res); in alloc_hpa() 1442 struct cxl_root_decoder *cxlrd = cxlr->cxlrd; in cxl_port_setup_targets() local 1486 distance *= cxlrd->cxlsd.cxld.interleave_ways; in cxl_port_setup_targets() 1508 parent_iw = cxlrd->cxlsd.cxld.interleave_ways; in cxl_port_setup_targets() [all …]
|
| H A D | port.c | 309 struct cxl_root_decoder *cxlrd = to_cxl_root_decoder(dev); in qos_class_show() local 311 return sysfs_emit(buf, "%d\n", cxlrd->qos_class); in qos_class_show() 341 static bool can_create_pmem(struct cxl_root_decoder *cxlrd) in can_create_pmem() argument 345 return (cxlrd->cxlsd.cxld.flags & flags) == flags; in can_create_pmem() 348 static bool can_create_ram(struct cxl_root_decoder *cxlrd) in can_create_ram() argument 352 return (cxlrd->cxlsd.cxld.flags & flags) == flags; in can_create_ram() 358 struct cxl_root_decoder *cxlrd = to_cxl_root_decoder(dev); in cxl_root_decoder_visible() local 360 if (a == CXL_REGION_ATTR(create_pmem_region) && !can_create_pmem(cxlrd)) in cxl_root_decoder_visible() 363 if (a == CXL_REGION_ATTR(create_ram_region) && !can_create_ram(cxlrd)) in cxl_root_decoder_visible() 367 !(can_create_pmem(cxlrd) || can_create_ram(cxlrd))) in cxl_root_decoder_visible() [all …]
|
| H A D | cdat.c | 292 struct cxl_root_decoder *cxlrd; in match_cxlrd_qos_class() local 297 cxlrd = to_cxl_root_decoder(dev); in match_cxlrd_qos_class() 298 if (cxlrd->qos_class == CXL_QOS_CLASS_INVALID) in match_cxlrd_qos_class() 301 if (cxlrd->qos_class == dev_qos_class) in match_cxlrd_qos_class() 331 struct cxl_root_decoder *cxlrd; in match_cxlrd_hb() local 336 cxlrd = to_cxl_root_decoder(dev); in match_cxlrd_hb() 337 cxlsd = &cxlrd->cxlsd; in match_cxlrd_hb()
|
| H A D | core.h | 55 void kill_regions(struct cxl_root_decoder *cxlrd); 85 static inline void kill_regions(struct cxl_root_decoder *cxlrd) { }; in kill_regions() argument
|
| /linux/drivers/cxl/ |
| H A D | cxl.h | 364 u64 (*hpa_to_spa)(struct cxl_root_decoder *cxlrd, u64 hpa); 365 u64 (*spa_to_hpa)(struct cxl_root_decoder *cxlrd, u64 spa); 486 struct cxl_root_decoder *cxlrd; member 786 struct cxl_root_decoder *cxlrd) in cxl_root_decoder_autoremove() argument 788 return cxl_decoder_autoremove(host, &cxlrd->cxlsd.cxld); in cxl_root_decoder_autoremove()
|
| H A D | cxlmem.h | 81 static inline struct cxl_port *cxlrd_to_port(struct cxl_root_decoder *cxlrd) in cxlrd_to_port() argument 83 return to_cxl_port(cxlrd->cxlsd.cxld.dev.parent); in cxlrd_to_port()
|