Lines Matching refs:eaddr

137 	u64 (*err_addr_to_sys_addr)(u64 eaddr, int mc);
139 u64 (*err_addr_to_imc_addr)(u64 eaddr, int mc);
235 static u64 ehl_err_addr_to_sys_addr(u64 eaddr, int mc) in ehl_err_addr_to_sys_addr() argument
237 return eaddr; in ehl_err_addr_to_sys_addr()
240 static u64 ehl_err_addr_to_imc_addr(u64 eaddr, int mc) in ehl_err_addr_to_imc_addr() argument
242 if (eaddr < igen6_tolud) in ehl_err_addr_to_imc_addr()
243 return eaddr; in ehl_err_addr_to_imc_addr()
246 return eaddr + igen6_tolud - _4GB; in ehl_err_addr_to_imc_addr()
248 if (eaddr < _4GB) in ehl_err_addr_to_imc_addr()
249 return eaddr + igen6_tolud - igen6_tom; in ehl_err_addr_to_imc_addr()
251 return eaddr; in ehl_err_addr_to_imc_addr()
301 static u64 tgl_err_addr_to_mem_addr(u64 eaddr, int mc) in tgl_err_addr_to_mem_addr() argument
308 if (eaddr >= ms_s_size) in tgl_err_addr_to_mem_addr()
309 return eaddr + ms_s_size; in tgl_err_addr_to_mem_addr()
316 maddr = GET_BITFIELD(eaddr, intlv_bit, 63) << (intlv_bit + 1) | in tgl_err_addr_to_mem_addr()
317 GET_BITFIELD(eaddr, 0, intlv_bit - 1); in tgl_err_addr_to_mem_addr()
324 static u64 tgl_err_addr_to_sys_addr(u64 eaddr, int mc) in tgl_err_addr_to_sys_addr() argument
326 u64 maddr = tgl_err_addr_to_mem_addr(eaddr, mc); in tgl_err_addr_to_sys_addr()
331 static u64 tgl_err_addr_to_imc_addr(u64 eaddr, int mc) in tgl_err_addr_to_imc_addr() argument
333 return eaddr; in tgl_err_addr_to_imc_addr()
336 static u64 adl_err_addr_to_sys_addr(u64 eaddr, int mc) in adl_err_addr_to_sys_addr() argument
338 return mem_addr_to_sys_addr(eaddr); in adl_err_addr_to_sys_addr()
341 static u64 adl_err_addr_to_imc_addr(u64 eaddr, int mc) in adl_err_addr_to_imc_addr() argument
348 if (eaddr >= 2 * ms_s_size) in adl_err_addr_to_imc_addr()
349 return eaddr - ms_s_size; in adl_err_addr_to_imc_addr()
355 imc_addr = GET_BITFIELD(eaddr, intlv_bit + 1, 63) << intlv_bit | in adl_err_addr_to_imc_addr()
356 GET_BITFIELD(eaddr, 0, intlv_bit - 1); in adl_err_addr_to_imc_addr()
674 u64 eaddr; in ecclog_work_cb() local
682 eaddr = ECC_ERROR_LOG_ADDR(node->ecclog) << in ecclog_work_cb()
685 res.sys_addr = res_cfg->err_addr_to_sys_addr(eaddr, res.mc); in ecclog_work_cb()
686 res.imc_addr = res_cfg->err_addr_to_imc_addr(eaddr, res.mc); in ecclog_work_cb()