Lines Matching refs:res

207 static void show_retry_rd_err_log(struct decoded_addr *res, char *msg,
210 struct skx_imc *imc = &res->dev->imc[res->imc];
224 pch = res->cs & 1;
241 log0 = I10NM_GET_REG32(imc, res->channel, offsets[0]);
242 log1 = I10NM_GET_REG32(imc, res->channel, offsets[1]);
243 log3 = I10NM_GET_REG32(imc, res->channel, offsets[3]);
244 log4 = I10NM_GET_REG32(imc, res->channel, offsets[4]);
245 log5 = I10NM_GET_REG64(imc, res->channel, offsets[5]);
248 lxg0 = I10NM_GET_REG32(imc, res->channel, xffsets[0]);
249 lxg1 = I10NM_GET_REG32(imc, res->channel, xffsets[1]);
250 lxg3 = I10NM_GET_REG32(imc, res->channel, xffsets[3]);
251 lxg4 = I10NM_GET_REG32(imc, res->channel, xffsets[4]);
252 lxg5 = I10NM_GET_REG64(imc, res->channel, xffsets[5]);
256 log2a = I10NM_GET_REG64(imc, res->channel, offsets[2]);
262 lxg2a = I10NM_GET_REG64(imc, res->channel, xffsets[2]);
270 log2 = I10NM_GET_REG32(imc, res->channel, offsets[2]);
277 corr0 = I10NM_GET_REG32(imc, res->channel, 0x2c18);
278 corr1 = I10NM_GET_REG32(imc, res->channel, 0x2c1c);
279 corr2 = I10NM_GET_REG32(imc, res->channel, 0x2c20);
280 corr3 = I10NM_GET_REG32(imc, res->channel, 0x2c24);
282 corr0 = I10NM_GET_REG32(imc, res->channel, 0x2818);
283 corr1 = I10NM_GET_REG32(imc, res->channel, 0x281c);
284 corr2 = I10NM_GET_REG32(imc, res->channel, 0x2820);
285 corr3 = I10NM_GET_REG32(imc, res->channel, 0x2824);
288 corr0 = I10NM_GET_REG32(imc, res->channel, 0x22c18);
289 corr1 = I10NM_GET_REG32(imc, res->channel, 0x22c1c);
290 corr2 = I10NM_GET_REG32(imc, res->channel, 0x22c20);
291 corr3 = I10NM_GET_REG32(imc, res->channel, 0x22c24);
306 I10NM_SET_REG32(imc, res->channel, offsets[0], log0);
311 I10NM_SET_REG32(imc, res->channel, xffsets[0], lxg0);
513 static bool i10nm_mc_decode(struct decoded_addr *res)
515 struct mce *m = res->mce;
524 res->socket = m->socketid;
525 res->dev = d;
533 res->imc = bank / 4;
534 res->channel = bank % 2;
535 res->column = GET_BITFIELD(m->misc, 9, 18) << 2;
536 res->row = GET_BITFIELD(m->misc, 19, 39);
537 res->bank_group = GET_BITFIELD(m->misc, 40, 41);
538 res->bank_address = GET_BITFIELD(m->misc, 42, 43);
539 res->bank_group |= GET_BITFIELD(m->misc, 44, 44) << 2;
540 res->rank = GET_BITFIELD(m->misc, 56, 58);
541 res->dimm = res->rank >> 2;
542 res->rank = res->rank % 4;
546 res->imc = bank / 2;
547 res->channel = bank % 2;
548 res->column = GET_BITFIELD(m->misc, 9, 18) << 2;
549 res->row = GET_BITFIELD(m->misc, 19, 36);
550 res->bank_group = GET_BITFIELD(m->misc, 37, 38);
551 res->bank_address = GET_BITFIELD(m->misc, 39, 40);
552 res->bank_group |= GET_BITFIELD(m->misc, 41, 41) << 2;
553 res->rank = GET_BITFIELD(m->misc, 57, 57);
554 res->dimm = GET_BITFIELD(m->misc, 58, 58);
560 if (!res->dev) {
562 m->socketid, res->imc);