Searched refs:dpa_offset (Results 1 – 3 of 3) sorted by relevance
| /linux/drivers/cxl/core/ |
| H A D | region.c | 3019 u64 dpa_offset, bits_lower, bits_upper, temp; in cxl_calculate_dpa_offset() local 3041 dpa_offset = temp >> eiw; in cxl_calculate_dpa_offset() 3044 dpa_offset = bits_upper << (eig + 8); in cxl_calculate_dpa_offset() 3046 dpa_offset |= bits_lower; in cxl_calculate_dpa_offset() 3048 return dpa_offset; in cxl_calculate_dpa_offset() 3089 u64 cxl_calculate_hpa_offset(u64 dpa_offset, int pos, u8 eiw, u16 eig) in cxl_calculate_hpa_offset() argument 3111 hpa_offset = (dpa_offset & mask_upper) << eiw; in cxl_calculate_hpa_offset() 3114 bits_upper = (dpa_offset & mask_upper) >> (eig + 8); in cxl_calculate_hpa_offset() 3120 hpa_offset |= dpa_offset & GENMASK_ULL(eig + 7, 0); in cxl_calculate_hpa_offset() 3264 u64 base, dpa_offset, hpa_offset, hpa; in cxl_dpa_to_hpa() local [all …]
|
| /linux/tools/testing/cxl/test/ |
| H A D | cxl_translate.c | 64 static u64 to_hpa(u64 dpa_offset, int pos, u8 r_eiw, u16 r_eig, u8 hb_ways, in to_hpa() argument 70 hpa_offset = cxl_calculate_hpa_offset(dpa_offset, pos, r_eiw, r_eig); in to_hpa()
|
| /linux/drivers/cxl/ |
| H A D | cxl.h | 772 u64 cxl_calculate_hpa_offset(u64 dpa_offset, int pos, u8 eiw, u16 eig);
|