Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/cxl/
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 …]
Dcxl.h423 typedef struct cxl_dport *(*cxl_calc_hb_fn)(struct cxl_root_decoder *cxlrd,
718 struct cxl_dport *cxl_hb_modulo(struct cxl_root_decoder *cxlrd, int pos);
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()
/linux-6.6.21/drivers/cxl/core/
Dregion.c383 struct cxl_root_decoder *cxlrd = to_cxl_root_decoder(dev->parent); in interleave_ways_store() local
384 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in interleave_ways_store()
451 struct cxl_root_decoder *cxlrd = to_cxl_root_decoder(dev->parent); in interleave_granularity_store() local
452 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in interleave_granularity_store()
525 struct cxl_root_decoder *cxlrd = to_cxl_root_decoder(cxlr->dev.parent); in alloc_hpa() local
552 res = alloc_free_mem_region(cxlrd->res, size, SZ_256M, in alloc_hpa()
1083 struct cxl_root_decoder *cxlrd = to_cxl_root_decoder(cxlr->dev.parent); in cxl_port_setup_targets() local
1138 parent_iw = cxlrd->cxlsd.cxld.interleave_ways; in cxl_port_setup_targets()
1423 struct cxl_root_decoder *cxlrd, in cxl_region_attach_position() argument
1431 if (cxlrd->calc_hb(cxlrd, pos) != dport) { in cxl_region_attach_position()
[all …]
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 …]