Searched refs:cximsd (Results 1 – 3 of 3) sorted by relevance
| /linux/tools/testing/cxl/test/ |
| H A D | cxl_translate.c | 37 struct cxl_cxims_data *cximsd; variable 75 cximsd->nr_maps = hbiw_to_nr_maps[hb_ways]; in to_hpa() 76 if (cximsd->nr_maps) in to_hpa() 77 return cxl_do_xormap_calc(cximsd, hpa_offset, hb_ways); in to_hpa() 98 cximsd->nr_maps = hbiw_to_nr_maps[hb_ways]; in to_dpa() 99 if (cximsd->nr_maps) in to_dpa() 101 cxl_do_xormap_calc(cximsd, hpa_offset, hb_ways); in to_dpa() 123 offset = cxl_do_xormap_calc(cximsd, hpa_offset, hb_ways); in to_pos() 235 cximsd = kzalloc(struct_size(cximsd, xormaps, nr_maps), GFP_KERNEL); in setup_xor_mapping() 236 if (!cximsd) in setup_xor_mapping() [all …]
|
| /linux/drivers/cxl/ |
| H A D | acpi.c | 25 u64 cxl_do_xormap_calc(struct cxl_cxims_data *cximsd, u64 addr, int hbiw) in cxl_do_xormap_calc() argument 42 if (nr_maps_to_apply == -1 || nr_maps_to_apply > cximsd->nr_maps) in cxl_do_xormap_calc() 64 for (int i = 0; i < cximsd->nr_maps; i++) { in cxl_do_xormap_calc() 65 if (!cximsd->xormaps[i]) in cxl_do_xormap_calc() 67 pos = __ffs(cximsd->xormaps[i]); in cxl_do_xormap_calc() 68 val = (hweight64(addr & cximsd->xormaps[i]) & 1); in cxl_do_xormap_calc() 79 struct cxl_cxims_data *cximsd; in cxl_apply_xor_maps() local 85 cximsd = cxlrd->platform_data; in cxl_apply_xor_maps() 87 return cxl_do_xormap_calc(cximsd, addr, hbiw); in cxl_apply_xor_maps() 103 struct cxl_cxims_data *cximsd; in cxl_parse_cxims() local [all …]
|
| H A D | cxl.h | 781 u64 cxl_do_xormap_calc(struct cxl_cxims_data *cximsd, u64 addr, int hbiw); 783 static inline u64 cxl_do_xormap_calc(struct cxl_cxims_data *cximsd, u64 addr, int hbiw) in cxl_do_xormap_calc() argument
|