Lines Matching full:data

191 	struct OpalIoP7IOCPhbErrorData *data;
193 data = (struct OpalIoP7IOCPhbErrorData *)common;
194 pr_info("P7IOC PHB#%x Diag-data (Version: %d)\n",
197 if (data->brdgCtl)
199 be32_to_cpu(data->brdgCtl));
200 if (data->portStatusReg || data->rootCmplxStatus ||
201 data->busAgentStatus)
203 be32_to_cpu(data->portStatusReg),
204 be32_to_cpu(data->rootCmplxStatus),
205 be32_to_cpu(data->busAgentStatus));
206 if (data->deviceStatus || data->slotStatus ||
207 data->linkStatus || data->devCmdStatus ||
208 data->devSecStatus)
210 be32_to_cpu(data->deviceStatus),
211 be32_to_cpu(data->slotStatus),
212 be32_to_cpu(data->linkStatus),
213 be32_to_cpu(data->devCmdStatus),
214 be32_to_cpu(data->devSecStatus));
215 if (data->rootErrorStatus || data->uncorrErrorStatus ||
216 data->corrErrorStatus)
218 be32_to_cpu(data->rootErrorStatus),
219 be32_to_cpu(data->uncorrErrorStatus),
220 be32_to_cpu(data->corrErrorStatus));
221 if (data->tlpHdr1 || data->tlpHdr2 ||
222 data->tlpHdr3 || data->tlpHdr4)
224 be32_to_cpu(data->tlpHdr1),
225 be32_to_cpu(data->tlpHdr2),
226 be32_to_cpu(data->tlpHdr3),
227 be32_to_cpu(data->tlpHdr4));
228 if (data->sourceId || data->errorClass ||
229 data->correlator)
231 be32_to_cpu(data->sourceId),
232 be64_to_cpu(data->errorClass),
233 be64_to_cpu(data->correlator));
234 if (data->p7iocPlssr || data->p7iocCsr)
236 be64_to_cpu(data->p7iocPlssr),
237 be64_to_cpu(data->p7iocCsr));
238 if (data->lemFir)
240 be64_to_cpu(data->lemFir),
241 be64_to_cpu(data->lemErrorMask),
242 be64_to_cpu(data->lemWOF));
243 if (data->phbErrorStatus)
245 be64_to_cpu(data->phbErrorStatus),
246 be64_to_cpu(data->phbFirstErrorStatus),
247 be64_to_cpu(data->phbErrorLog0),
248 be64_to_cpu(data->phbErrorLog1));
249 if (data->mmioErrorStatus)
251 be64_to_cpu(data->mmioErrorStatus),
252 be64_to_cpu(data->mmioFirstErrorStatus),
253 be64_to_cpu(data->mmioErrorLog0),
254 be64_to_cpu(data->mmioErrorLog1));
255 if (data->dma0ErrorStatus)
257 be64_to_cpu(data->dma0ErrorStatus),
258 be64_to_cpu(data->dma0FirstErrorStatus),
259 be64_to_cpu(data->dma0ErrorLog0),
260 be64_to_cpu(data->dma0ErrorLog1));
261 if (data->dma1ErrorStatus)
263 be64_to_cpu(data->dma1ErrorStatus),
264 be64_to_cpu(data->dma1FirstErrorStatus),
265 be64_to_cpu(data->dma1ErrorLog0),
266 be64_to_cpu(data->dma1ErrorLog1));
268 pnv_pci_dump_pest(data->pestA, data->pestB, OPAL_P7IOC_NUM_PEST_REGS);
274 struct OpalIoPhb3ErrorData *data;
276 data = (struct OpalIoPhb3ErrorData*)common;
277 pr_info("PHB3 PHB#%x Diag-data (Version: %d)\n",
279 if (data->brdgCtl)
281 be32_to_cpu(data->brdgCtl));
282 if (data->portStatusReg || data->rootCmplxStatus ||
283 data->busAgentStatus)
285 be32_to_cpu(data->portStatusReg),
286 be32_to_cpu(data->rootCmplxStatus),
287 be32_to_cpu(data->busAgentStatus));
288 if (data->deviceStatus || data->slotStatus ||
289 data->linkStatus || data->devCmdStatus ||
290 data->devSecStatus)
292 be32_to_cpu(data->deviceStatus),
293 be32_to_cpu(data->slotStatus),
294 be32_to_cpu(data->linkStatus),
295 be32_to_cpu(data->devCmdStatus),
296 be32_to_cpu(data->devSecStatus));
297 if (data->rootErrorStatus || data->uncorrErrorStatus ||
298 data->corrErrorStatus)
300 be32_to_cpu(data->rootErrorStatus),
301 be32_to_cpu(data->uncorrErrorStatus),
302 be32_to_cpu(data->corrErrorStatus));
303 if (data->tlpHdr1 || data->tlpHdr2 ||
304 data->tlpHdr3 || data->tlpHdr4)
306 be32_to_cpu(data->tlpHdr1),
307 be32_to_cpu(data->tlpHdr2),
308 be32_to_cpu(data->tlpHdr3),
309 be32_to_cpu(data->tlpHdr4));
310 if (data->sourceId || data->errorClass ||
311 data->correlator)
313 be32_to_cpu(data->sourceId),
314 be64_to_cpu(data->errorClass),
315 be64_to_cpu(data->correlator));
316 if (data->nFir)
318 be64_to_cpu(data->nFir),
319 be64_to_cpu(data->nFirMask),
320 be64_to_cpu(data->nFirWOF));
321 if (data->phbPlssr || data->phbCsr)
323 be64_to_cpu(data->phbPlssr),
324 be64_to_cpu(data->phbCsr));
325 if (data->lemFir)
327 be64_to_cpu(data->lemFir),
328 be64_to_cpu(data->lemErrorMask),
329 be64_to_cpu(data->lemWOF));
330 if (data->phbErrorStatus)
332 be64_to_cpu(data->phbErrorStatus),
333 be64_to_cpu(data->phbFirstErrorStatus),
334 be64_to_cpu(data->phbErrorLog0),
335 be64_to_cpu(data->phbErrorLog1));
336 if (data->mmioErrorStatus)
338 be64_to_cpu(data->mmioErrorStatus),
339 be64_to_cpu(data->mmioFirstErrorStatus),
340 be64_to_cpu(data->mmioErrorLog0),
341 be64_to_cpu(data->mmioErrorLog1));
342 if (data->dma0ErrorStatus)
344 be64_to_cpu(data->dma0ErrorStatus),
345 be64_to_cpu(data->dma0FirstErrorStatus),
346 be64_to_cpu(data->dma0ErrorLog0),
347 be64_to_cpu(data->dma0ErrorLog1));
348 if (data->dma1ErrorStatus)
350 be64_to_cpu(data->dma1ErrorStatus),
351 be64_to_cpu(data->dma1FirstErrorStatus),
352 be64_to_cpu(data->dma1ErrorLog0),
353 be64_to_cpu(data->dma1ErrorLog1));
355 pnv_pci_dump_pest(data->pestA, data->pestB, OPAL_PHB3_NUM_PEST_REGS);
361 struct OpalIoPhb4ErrorData *data;
363 data = (struct OpalIoPhb4ErrorData*)common;
364 pr_info("PHB4 PHB#%d Diag-data (Version: %d)\n",
366 if (data->brdgCtl)
368 be32_to_cpu(data->brdgCtl));
369 if (data->deviceStatus || data->slotStatus ||
370 data->linkStatus || data->devCmdStatus ||
371 data->devSecStatus)
373 be32_to_cpu(data->deviceStatus),
374 be32_to_cpu(data->slotStatus),
375 be32_to_cpu(data->linkStatus),
376 be32_to_cpu(data->devCmdStatus),
377 be32_to_cpu(data->devSecStatus));
378 if (data->rootErrorStatus || data->uncorrErrorStatus ||
379 data->corrErrorStatus)
381 be32_to_cpu(data->rootErrorStatus),
382 be32_to_cpu(data->uncorrErrorStatus),
383 be32_to_cpu(data->corrErrorStatus));
384 if (data->tlpHdr1 || data->tlpHdr2 ||
385 data->tlpHdr3 || data->tlpHdr4)
387 be32_to_cpu(data->tlpHdr1),
388 be32_to_cpu(data->tlpHdr2),
389 be32_to_cpu(data->tlpHdr3),
390 be32_to_cpu(data->tlpHdr4));
391 if (data->sourceId)
392 pr_info("sourceId: %08x\n", be32_to_cpu(data->sourceId));
393 if (data->nFir)
395 be64_to_cpu(data->nFir),
396 be64_to_cpu(data->nFirMask),
397 be64_to_cpu(data->nFirWOF));
398 if (data->phbPlssr || data->phbCsr)
400 be64_to_cpu(data->phbPlssr),
401 be64_to_cpu(data->phbCsr));
402 if (data->lemFir)
404 be64_to_cpu(data->lemFir),
405 be64_to_cpu(data->lemErrorMask),
406 be64_to_cpu(data->lemWOF));
407 if (data->phbErrorStatus)
409 be64_to_cpu(data->phbErrorStatus),
410 be64_to_cpu(data->phbFirstErrorStatus),
411 be64_to_cpu(data->phbErrorLog0),
412 be64_to_cpu(data->phbErrorLog1));
413 if (data->phbTxeErrorStatus)
415 be64_to_cpu(data->phbTxeErrorStatus),
416 be64_to_cpu(data->phbTxeFirstErrorStatus),
417 be64_to_cpu(data->phbTxeErrorLog0),
418 be64_to_cpu(data->phbTxeErrorLog1));
419 if (data->phbRxeArbErrorStatus)
421 be64_to_cpu(data->phbRxeArbErrorStatus),
422 be64_to_cpu(data->phbRxeArbFirstErrorStatus),
423 be64_to_cpu(data->phbRxeArbErrorLog0),
424 be64_to_cpu(data->phbRxeArbErrorLog1));
425 if (data->phbRxeMrgErrorStatus)
427 be64_to_cpu(data->phbRxeMrgErrorStatus),
428 be64_to_cpu(data->phbRxeMrgFirstErrorStatus),
429 be64_to_cpu(data->phbRxeMrgErrorLog0),
430 be64_to_cpu(data->phbRxeMrgErrorLog1));
431 if (data->phbRxeTceErrorStatus)
433 be64_to_cpu(data->phbRxeTceErrorStatus),
434 be64_to_cpu(data->phbRxeTceFirstErrorStatus),
435 be64_to_cpu(data->phbRxeTceErrorLog0),
436 be64_to_cpu(data->phbRxeTceErrorLog1));
438 if (data->phbPblErrorStatus)
440 be64_to_cpu(data->phbPblErrorStatus),
441 be64_to_cpu(data->phbPblFirstErrorStatus),
442 be64_to_cpu(data->phbPblErrorLog0),
443 be64_to_cpu(data->phbPblErrorLog1));
444 if (data->phbPcieDlpErrorStatus)
446 be64_to_cpu(data->phbPcieDlpErrorLog1),
447 be64_to_cpu(data->phbPcieDlpErrorLog2),
448 be64_to_cpu(data->phbPcieDlpErrorStatus));
449 if (data->phbRegbErrorStatus)
451 be64_to_cpu(data->phbRegbErrorStatus),
452 be64_to_cpu(data->phbRegbFirstErrorStatus),
453 be64_to_cpu(data->phbRegbErrorLog0),
454 be64_to_cpu(data->phbRegbErrorLog1));
457 pnv_pci_dump_pest(data->pestA, data->pestB, OPAL_PHB4_NUM_PEST_REGS);
492 /* Fetch PHB diag-data */