Searched refs:cxlrd (Results 1 – 5 of 5) sorted by relevance
45 static struct cxl_dport *cxl_hb_xor(struct cxl_root_decoder *cxlrd, int pos) in cxl_hb_xor() argument47 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; member82 struct cxl_root_decoder *cxlrd = ctx->cxlrd; in cxl_parse_cxims() local83 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in cxl_parse_cxims()118 cxlrd->platform_data = cximsd; in cxl_parse_cxims()205 struct cxl_root_decoder *cxlrd; in cxl_parse_cfmws() local[all …]
425 typedef struct cxl_dport *(*cxl_calc_hb_fn)(struct cxl_root_decoder *cxlrd,719 struct cxl_dport *cxl_hb_modulo(struct cxl_root_decoder *cxlrd, int pos);
68 static inline struct cxl_port *cxlrd_to_port(struct cxl_root_decoder *cxlrd) in cxlrd_to_port() argument70 return to_cxl_port(cxlrd->cxlsd.cxld.dev.parent); in cxlrd_to_port()
389 struct cxl_root_decoder *cxlrd = to_cxl_root_decoder(dev->parent); in interleave_ways_store() local390 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in interleave_ways_store()457 struct cxl_root_decoder *cxlrd = to_cxl_root_decoder(dev->parent); in interleave_granularity_store() local458 struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; in interleave_granularity_store()531 struct cxl_root_decoder *cxlrd = to_cxl_root_decoder(cxlr->dev.parent); in alloc_hpa() local558 res = alloc_free_mem_region(cxlrd->res, size, SZ_256M, in alloc_hpa()1089 struct cxl_root_decoder *cxlrd = to_cxl_root_decoder(cxlr->dev.parent); in cxl_port_setup_targets() local1136 parent_ig = cxlrd->cxlsd.cxld.interleave_granularity; in cxl_port_setup_targets()1137 parent_iw = cxlrd->cxlsd.cxld.interleave_ways; in cxl_port_setup_targets()1414 struct cxl_root_decoder *cxlrd, in cxl_region_attach_position() argument[all …]
306 static bool can_create_pmem(struct cxl_root_decoder *cxlrd) in can_create_pmem() argument310 return (cxlrd->cxlsd.cxld.flags & flags) == flags; in can_create_pmem()313 static bool can_create_ram(struct cxl_root_decoder *cxlrd) in can_create_ram() argument317 return (cxlrd->cxlsd.cxld.flags & flags) == flags; in can_create_ram()323 struct cxl_root_decoder *cxlrd = to_cxl_root_decoder(dev); in cxl_root_decoder_visible() local325 if (a == CXL_REGION_ATTR(create_pmem_region) && !can_create_pmem(cxlrd)) in cxl_root_decoder_visible()328 if (a == CXL_REGION_ATTR(create_ram_region) && !can_create_ram(cxlrd)) in cxl_root_decoder_visible()332 !(can_create_pmem(cxlrd) || can_create_ram(cxlrd))) in cxl_root_decoder_visible()423 struct cxl_root_decoder *cxlrd = to_cxl_root_decoder(dev); in cxl_root_decoder_release() local425 if (atomic_read(&cxlrd->region_id) >= 0) in cxl_root_decoder_release()[all …]