Home
last modified time | relevance | path

Searched refs:cxlrd (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/drivers/cxl/
H A Dacpi.c45 static struct cxl_dport *cxl_hb_xor(struct cxl_root_decoder *cxlrd, int pos) in cxl_hb_xor() argument
47 struct cxl_cxims_data *cximsd = cxlrd->platform_data; in cxl_hb_xor()
48 struct cxl_switch_decoder *cxlsd = &cxlrd->cxlsd; in cxl_hb_xor()
60 hpa = cxlrd->res->start + pos * ig; in cxl_hb_xor()
69 return cxlrd->cxlsd.target[n]; in cxl_hb_xor()
74 struct cxl_root_decoder *cxlrd; member
82 struct cxl_root_decoder *cxlrd = ctx->cxlrd; in cxl_parse_cxims() local
83 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in cxl_parse_cxims()
118 cxlrd->platform_data = cximsd; in cxl_parse_cxims()
204 struct cxl_root_decoder *cxlrd; in __cxl_parse_cfmws() local
[all …]
H A Dcxl.h425 typedef struct cxl_dport *(*cxl_calc_hb_fn)(struct cxl_root_decoder *cxlrd,
721 struct cxl_dport *cxl_hb_modulo(struct cxl_root_decoder *cxlrd, int pos);
H A Dcxlmem.h68 static inline struct cxl_port *cxlrd_to_port(struct cxl_root_decoder *cxlrd) in cxlrd_to_port() argument
70 return to_cxl_port(cxlrd->cxlsd.cxld.dev.parent); in cxlrd_to_port()
/openbmc/linux/drivers/cxl/core/
H A Dregion.c367 struct cxl_root_decoder *cxlrd = to_cxl_root_decoder(dev->parent); in interleave_ways_store() local
368 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in interleave_ways_store()
435 struct cxl_root_decoder *cxlrd = to_cxl_root_decoder(dev->parent); in interleave_granularity_store() local
436 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in interleave_granularity_store()
509 struct cxl_root_decoder *cxlrd = to_cxl_root_decoder(cxlr->dev.parent); in alloc_hpa() local
536 res = alloc_free_mem_region(cxlrd->res, size, SZ_256M, in alloc_hpa()
1161 struct cxl_root_decoder *cxlrd = to_cxl_root_decoder(cxlr->dev.parent); in cxl_port_setup_targets() local
1205 distance *= cxlrd->cxlsd.cxld.interleave_ways; in cxl_port_setup_targets()
1227 parent_iw = cxlrd->cxlsd.cxld.interleave_ways; in cxl_port_setup_targets()
1521 struct cxl_root_decoder *cxlrd, in cxl_region_attach_position() argument
[all …]
H A Dport.c315 static bool can_create_pmem(struct cxl_root_decoder *cxlrd) in can_create_pmem() argument
319 return (cxlrd->cxlsd.cxld.flags & flags) == flags; in can_create_pmem()
322 static bool can_create_ram(struct cxl_root_decoder *cxlrd) in can_create_ram() argument
326 return (cxlrd->cxlsd.cxld.flags & flags) == flags; in can_create_ram()
332 struct cxl_root_decoder *cxlrd = to_cxl_root_decoder(dev); in cxl_root_decoder_visible() local
334 if (a == CXL_REGION_ATTR(create_pmem_region) && !can_create_pmem(cxlrd)) in cxl_root_decoder_visible()
337 if (a == CXL_REGION_ATTR(create_ram_region) && !can_create_ram(cxlrd)) in cxl_root_decoder_visible()
341 !(can_create_pmem(cxlrd) || can_create_ram(cxlrd))) in cxl_root_decoder_visible()
432 struct cxl_root_decoder *cxlrd = to_cxl_root_decoder(dev); in cxl_root_decoder_release() local
434 if (atomic_read(&cxlrd->region_id) >= 0) in cxl_root_decoder_release()
[all …]