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()
85 * hpa_offset: host physical address offset
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()
109 * hpa_offset
117 to_pos(u64 hpa_offset,u8 r_eiw,u16 r_eig,u8 hb_ways,u8 math) to_pos() argument
[all...]
/linux/drivers/cxl/core/
H A Dregion.c3118 u64 cxl_calculate_dpa_offset(u64 hpa_offset, u8 eiw, u16 eig) in cxl_calculate_dpa_offset() argument
3139 bits_lower = hpa_offset & GENMASK_ULL(eig + 7, 0); in cxl_calculate_dpa_offset()
3141 temp = hpa_offset &= ~GENMASK_ULL(eig + eiw + 8 - 1, 0); in cxl_calculate_dpa_offset()
3144 bits_upper = div64_u64(hpa_offset >> (eig + eiw), 3); in cxl_calculate_dpa_offset()
3153 int cxl_calculate_position(u64 hpa_offset, u8 eiw, u16 eig) in cxl_calculate_position() argument
3178 pos = (hpa_offset >> (eig + 8)) & GENMASK(eiw - 1, 0); in cxl_calculate_position()
3180 shifted = hpa_offset >> (eig + 8); in cxl_calculate_position()
3192 u64 mask_upper, hpa_offset, bits_upper; in cxl_calculate_hpa_offset() local
3212 hpa_offset = (dpa_offset & mask_upper) << eiw; in cxl_calculate_hpa_offset()
3213 hpa_offset |= pos << (eig + 8); in cxl_calculate_hpa_offset()
[all …]
/linux/drivers/cxl/
H A Dcxl.h707 u64 cxl_calculate_dpa_offset(u64 hpa_offset, u8 eiw, u16 eig);
708 int cxl_calculate_position(u64 hpa_offset, u8 eiw, u16 eig);