Home
last modified time | relevance | path

Searched refs:hpa_offset (Results 1 – 3 of 3) sorted by relevance

/linux/tools/testing/cxl/test/
H A Dcxl_translate.c67 u64 hpa_offset; in to_hpa() local
70 hpa_offset = cxl_calculate_hpa_offset(dpa_offset, pos, r_eiw, r_eig); in to_hpa()
71 if (hpa_offset == ULLONG_MAX) in to_hpa()
77 return cxl_do_xormap_calc(cximsd, hpa_offset, hb_ways); in to_hpa()
79 return hpa_offset; in to_hpa()
93 static u64 to_dpa(u64 hpa_offset, u8 r_eiw, u16 r_eig, u8 hb_ways, u8 math) in to_dpa() argument
95 u64 offset = hpa_offset; in to_dpa()
101 cxl_do_xormap_calc(cximsd, hpa_offset, hb_ways); in to_dpa()
117 static u64 to_pos(u64 hpa_offset, u8 r_eiw, u16 r_eig, u8 hb_ways, u8 math) in to_pos() argument
119 u64 offset = hpa_offset; in to_pos()
[all …]
/linux/drivers/cxl/core/
H A Dregion.c3006 u64 cxl_calculate_dpa_offset(u64 hpa_offset, u8 eiw, u16 eig) in cxl_calculate_dpa_offset() argument
3027 bits_lower = hpa_offset & GENMASK_ULL(eig + 7, 0); in cxl_calculate_dpa_offset()
3029 temp = hpa_offset &= ~GENMASK_ULL(eig + eiw + 8 - 1, 0); in cxl_calculate_dpa_offset()
3032 bits_upper = div64_u64(hpa_offset >> (eig + eiw), 3); in cxl_calculate_dpa_offset()
3041 int cxl_calculate_position(u64 hpa_offset, u8 eiw, u16 eig) in cxl_calculate_position() argument
3066 pos = (hpa_offset >> (eig + 8)) & GENMASK(eiw - 1, 0); in cxl_calculate_position()
3068 shifted = hpa_offset >> (eig + 8); in cxl_calculate_position()
3080 u64 mask_upper, hpa_offset, bits_upper; in cxl_calculate_hpa_offset() local
3100 hpa_offset = (dpa_offset & mask_upper) << eiw; in cxl_calculate_hpa_offset()
3101 hpa_offset |= pos << (eig + 8); in cxl_calculate_hpa_offset()
[all …]
/linux/drivers/cxl/
H A Dcxl.h752 u64 cxl_calculate_dpa_offset(u64 hpa_offset, u8 eiw, u16 eig);
753 int cxl_calculate_position(u64 hpa_offset, u8 eiw, u16 eig);