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()204 struct cxl_root_decoder *cxlrd; in __cxl_parse_cfmws() local[all …]
423 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);
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()
383 struct cxl_root_decoder *cxlrd = to_cxl_root_decoder(dev->parent); in interleave_ways_store() local384 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() local452 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() local552 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() local1138 parent_iw = cxlrd->cxlsd.cxld.interleave_ways; in cxl_port_setup_targets()1423 struct cxl_root_decoder *cxlrd, in cxl_region_attach_position() argument1431 if (cxlrd->calc_hb(cxlrd, pos) != dport) { in cxl_region_attach_position()[all …]
315 static bool can_create_pmem(struct cxl_root_decoder *cxlrd) in can_create_pmem() argument319 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() argument326 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() local334 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() local434 if (atomic_read(&cxlrd->region_id) >= 0) in cxl_root_decoder_release()[all …]