Lines Matching refs:data

194 	struct OpalIoP7IOCPhbErrorData *data;  in pnv_pci_dump_p7ioc_diag_data()  local
196 data = (struct OpalIoP7IOCPhbErrorData *)common; in pnv_pci_dump_p7ioc_diag_data()
200 if (data->brdgCtl) in pnv_pci_dump_p7ioc_diag_data()
202 be32_to_cpu(data->brdgCtl)); in pnv_pci_dump_p7ioc_diag_data()
203 if (data->portStatusReg || data->rootCmplxStatus || in pnv_pci_dump_p7ioc_diag_data()
204 data->busAgentStatus) in pnv_pci_dump_p7ioc_diag_data()
206 be32_to_cpu(data->portStatusReg), in pnv_pci_dump_p7ioc_diag_data()
207 be32_to_cpu(data->rootCmplxStatus), in pnv_pci_dump_p7ioc_diag_data()
208 be32_to_cpu(data->busAgentStatus)); in pnv_pci_dump_p7ioc_diag_data()
209 if (data->deviceStatus || data->slotStatus || in pnv_pci_dump_p7ioc_diag_data()
210 data->linkStatus || data->devCmdStatus || in pnv_pci_dump_p7ioc_diag_data()
211 data->devSecStatus) in pnv_pci_dump_p7ioc_diag_data()
213 be32_to_cpu(data->deviceStatus), in pnv_pci_dump_p7ioc_diag_data()
214 be32_to_cpu(data->slotStatus), in pnv_pci_dump_p7ioc_diag_data()
215 be32_to_cpu(data->linkStatus), in pnv_pci_dump_p7ioc_diag_data()
216 be32_to_cpu(data->devCmdStatus), in pnv_pci_dump_p7ioc_diag_data()
217 be32_to_cpu(data->devSecStatus)); in pnv_pci_dump_p7ioc_diag_data()
218 if (data->rootErrorStatus || data->uncorrErrorStatus || in pnv_pci_dump_p7ioc_diag_data()
219 data->corrErrorStatus) in pnv_pci_dump_p7ioc_diag_data()
221 be32_to_cpu(data->rootErrorStatus), in pnv_pci_dump_p7ioc_diag_data()
222 be32_to_cpu(data->uncorrErrorStatus), in pnv_pci_dump_p7ioc_diag_data()
223 be32_to_cpu(data->corrErrorStatus)); in pnv_pci_dump_p7ioc_diag_data()
224 if (data->tlpHdr1 || data->tlpHdr2 || in pnv_pci_dump_p7ioc_diag_data()
225 data->tlpHdr3 || data->tlpHdr4) in pnv_pci_dump_p7ioc_diag_data()
227 be32_to_cpu(data->tlpHdr1), in pnv_pci_dump_p7ioc_diag_data()
228 be32_to_cpu(data->tlpHdr2), in pnv_pci_dump_p7ioc_diag_data()
229 be32_to_cpu(data->tlpHdr3), in pnv_pci_dump_p7ioc_diag_data()
230 be32_to_cpu(data->tlpHdr4)); in pnv_pci_dump_p7ioc_diag_data()
231 if (data->sourceId || data->errorClass || in pnv_pci_dump_p7ioc_diag_data()
232 data->correlator) in pnv_pci_dump_p7ioc_diag_data()
234 be32_to_cpu(data->sourceId), in pnv_pci_dump_p7ioc_diag_data()
235 be64_to_cpu(data->errorClass), in pnv_pci_dump_p7ioc_diag_data()
236 be64_to_cpu(data->correlator)); in pnv_pci_dump_p7ioc_diag_data()
237 if (data->p7iocPlssr || data->p7iocCsr) in pnv_pci_dump_p7ioc_diag_data()
239 be64_to_cpu(data->p7iocPlssr), in pnv_pci_dump_p7ioc_diag_data()
240 be64_to_cpu(data->p7iocCsr)); in pnv_pci_dump_p7ioc_diag_data()
241 if (data->lemFir) in pnv_pci_dump_p7ioc_diag_data()
243 be64_to_cpu(data->lemFir), in pnv_pci_dump_p7ioc_diag_data()
244 be64_to_cpu(data->lemErrorMask), in pnv_pci_dump_p7ioc_diag_data()
245 be64_to_cpu(data->lemWOF)); in pnv_pci_dump_p7ioc_diag_data()
246 if (data->phbErrorStatus) in pnv_pci_dump_p7ioc_diag_data()
248 be64_to_cpu(data->phbErrorStatus), in pnv_pci_dump_p7ioc_diag_data()
249 be64_to_cpu(data->phbFirstErrorStatus), in pnv_pci_dump_p7ioc_diag_data()
250 be64_to_cpu(data->phbErrorLog0), in pnv_pci_dump_p7ioc_diag_data()
251 be64_to_cpu(data->phbErrorLog1)); in pnv_pci_dump_p7ioc_diag_data()
252 if (data->mmioErrorStatus) in pnv_pci_dump_p7ioc_diag_data()
254 be64_to_cpu(data->mmioErrorStatus), in pnv_pci_dump_p7ioc_diag_data()
255 be64_to_cpu(data->mmioFirstErrorStatus), in pnv_pci_dump_p7ioc_diag_data()
256 be64_to_cpu(data->mmioErrorLog0), in pnv_pci_dump_p7ioc_diag_data()
257 be64_to_cpu(data->mmioErrorLog1)); in pnv_pci_dump_p7ioc_diag_data()
258 if (data->dma0ErrorStatus) in pnv_pci_dump_p7ioc_diag_data()
260 be64_to_cpu(data->dma0ErrorStatus), in pnv_pci_dump_p7ioc_diag_data()
261 be64_to_cpu(data->dma0FirstErrorStatus), in pnv_pci_dump_p7ioc_diag_data()
262 be64_to_cpu(data->dma0ErrorLog0), in pnv_pci_dump_p7ioc_diag_data()
263 be64_to_cpu(data->dma0ErrorLog1)); in pnv_pci_dump_p7ioc_diag_data()
264 if (data->dma1ErrorStatus) in pnv_pci_dump_p7ioc_diag_data()
266 be64_to_cpu(data->dma1ErrorStatus), in pnv_pci_dump_p7ioc_diag_data()
267 be64_to_cpu(data->dma1FirstErrorStatus), in pnv_pci_dump_p7ioc_diag_data()
268 be64_to_cpu(data->dma1ErrorLog0), in pnv_pci_dump_p7ioc_diag_data()
269 be64_to_cpu(data->dma1ErrorLog1)); in pnv_pci_dump_p7ioc_diag_data()
271 pnv_pci_dump_pest(data->pestA, data->pestB, OPAL_P7IOC_NUM_PEST_REGS); in pnv_pci_dump_p7ioc_diag_data()
277 struct OpalIoPhb3ErrorData *data; in pnv_pci_dump_phb3_diag_data() local
279 data = (struct OpalIoPhb3ErrorData*)common; in pnv_pci_dump_phb3_diag_data()
282 if (data->brdgCtl) in pnv_pci_dump_phb3_diag_data()
284 be32_to_cpu(data->brdgCtl)); in pnv_pci_dump_phb3_diag_data()
285 if (data->portStatusReg || data->rootCmplxStatus || in pnv_pci_dump_phb3_diag_data()
286 data->busAgentStatus) in pnv_pci_dump_phb3_diag_data()
288 be32_to_cpu(data->portStatusReg), in pnv_pci_dump_phb3_diag_data()
289 be32_to_cpu(data->rootCmplxStatus), in pnv_pci_dump_phb3_diag_data()
290 be32_to_cpu(data->busAgentStatus)); in pnv_pci_dump_phb3_diag_data()
291 if (data->deviceStatus || data->slotStatus || in pnv_pci_dump_phb3_diag_data()
292 data->linkStatus || data->devCmdStatus || in pnv_pci_dump_phb3_diag_data()
293 data->devSecStatus) in pnv_pci_dump_phb3_diag_data()
295 be32_to_cpu(data->deviceStatus), in pnv_pci_dump_phb3_diag_data()
296 be32_to_cpu(data->slotStatus), in pnv_pci_dump_phb3_diag_data()
297 be32_to_cpu(data->linkStatus), in pnv_pci_dump_phb3_diag_data()
298 be32_to_cpu(data->devCmdStatus), in pnv_pci_dump_phb3_diag_data()
299 be32_to_cpu(data->devSecStatus)); in pnv_pci_dump_phb3_diag_data()
300 if (data->rootErrorStatus || data->uncorrErrorStatus || in pnv_pci_dump_phb3_diag_data()
301 data->corrErrorStatus) in pnv_pci_dump_phb3_diag_data()
303 be32_to_cpu(data->rootErrorStatus), in pnv_pci_dump_phb3_diag_data()
304 be32_to_cpu(data->uncorrErrorStatus), in pnv_pci_dump_phb3_diag_data()
305 be32_to_cpu(data->corrErrorStatus)); in pnv_pci_dump_phb3_diag_data()
306 if (data->tlpHdr1 || data->tlpHdr2 || in pnv_pci_dump_phb3_diag_data()
307 data->tlpHdr3 || data->tlpHdr4) in pnv_pci_dump_phb3_diag_data()
309 be32_to_cpu(data->tlpHdr1), in pnv_pci_dump_phb3_diag_data()
310 be32_to_cpu(data->tlpHdr2), in pnv_pci_dump_phb3_diag_data()
311 be32_to_cpu(data->tlpHdr3), in pnv_pci_dump_phb3_diag_data()
312 be32_to_cpu(data->tlpHdr4)); in pnv_pci_dump_phb3_diag_data()
313 if (data->sourceId || data->errorClass || in pnv_pci_dump_phb3_diag_data()
314 data->correlator) in pnv_pci_dump_phb3_diag_data()
316 be32_to_cpu(data->sourceId), in pnv_pci_dump_phb3_diag_data()
317 be64_to_cpu(data->errorClass), in pnv_pci_dump_phb3_diag_data()
318 be64_to_cpu(data->correlator)); in pnv_pci_dump_phb3_diag_data()
319 if (data->nFir) in pnv_pci_dump_phb3_diag_data()
321 be64_to_cpu(data->nFir), in pnv_pci_dump_phb3_diag_data()
322 be64_to_cpu(data->nFirMask), in pnv_pci_dump_phb3_diag_data()
323 be64_to_cpu(data->nFirWOF)); in pnv_pci_dump_phb3_diag_data()
324 if (data->phbPlssr || data->phbCsr) in pnv_pci_dump_phb3_diag_data()
326 be64_to_cpu(data->phbPlssr), in pnv_pci_dump_phb3_diag_data()
327 be64_to_cpu(data->phbCsr)); in pnv_pci_dump_phb3_diag_data()
328 if (data->lemFir) in pnv_pci_dump_phb3_diag_data()
330 be64_to_cpu(data->lemFir), in pnv_pci_dump_phb3_diag_data()
331 be64_to_cpu(data->lemErrorMask), in pnv_pci_dump_phb3_diag_data()
332 be64_to_cpu(data->lemWOF)); in pnv_pci_dump_phb3_diag_data()
333 if (data->phbErrorStatus) in pnv_pci_dump_phb3_diag_data()
335 be64_to_cpu(data->phbErrorStatus), in pnv_pci_dump_phb3_diag_data()
336 be64_to_cpu(data->phbFirstErrorStatus), in pnv_pci_dump_phb3_diag_data()
337 be64_to_cpu(data->phbErrorLog0), in pnv_pci_dump_phb3_diag_data()
338 be64_to_cpu(data->phbErrorLog1)); in pnv_pci_dump_phb3_diag_data()
339 if (data->mmioErrorStatus) in pnv_pci_dump_phb3_diag_data()
341 be64_to_cpu(data->mmioErrorStatus), in pnv_pci_dump_phb3_diag_data()
342 be64_to_cpu(data->mmioFirstErrorStatus), in pnv_pci_dump_phb3_diag_data()
343 be64_to_cpu(data->mmioErrorLog0), in pnv_pci_dump_phb3_diag_data()
344 be64_to_cpu(data->mmioErrorLog1)); in pnv_pci_dump_phb3_diag_data()
345 if (data->dma0ErrorStatus) in pnv_pci_dump_phb3_diag_data()
347 be64_to_cpu(data->dma0ErrorStatus), in pnv_pci_dump_phb3_diag_data()
348 be64_to_cpu(data->dma0FirstErrorStatus), in pnv_pci_dump_phb3_diag_data()
349 be64_to_cpu(data->dma0ErrorLog0), in pnv_pci_dump_phb3_diag_data()
350 be64_to_cpu(data->dma0ErrorLog1)); in pnv_pci_dump_phb3_diag_data()
351 if (data->dma1ErrorStatus) in pnv_pci_dump_phb3_diag_data()
353 be64_to_cpu(data->dma1ErrorStatus), in pnv_pci_dump_phb3_diag_data()
354 be64_to_cpu(data->dma1FirstErrorStatus), in pnv_pci_dump_phb3_diag_data()
355 be64_to_cpu(data->dma1ErrorLog0), in pnv_pci_dump_phb3_diag_data()
356 be64_to_cpu(data->dma1ErrorLog1)); in pnv_pci_dump_phb3_diag_data()
358 pnv_pci_dump_pest(data->pestA, data->pestB, OPAL_PHB3_NUM_PEST_REGS); in pnv_pci_dump_phb3_diag_data()
364 struct OpalIoPhb4ErrorData *data; in pnv_pci_dump_phb4_diag_data() local
366 data = (struct OpalIoPhb4ErrorData*)common; in pnv_pci_dump_phb4_diag_data()
369 if (data->brdgCtl) in pnv_pci_dump_phb4_diag_data()
371 be32_to_cpu(data->brdgCtl)); in pnv_pci_dump_phb4_diag_data()
372 if (data->deviceStatus || data->slotStatus || in pnv_pci_dump_phb4_diag_data()
373 data->linkStatus || data->devCmdStatus || in pnv_pci_dump_phb4_diag_data()
374 data->devSecStatus) in pnv_pci_dump_phb4_diag_data()
376 be32_to_cpu(data->deviceStatus), in pnv_pci_dump_phb4_diag_data()
377 be32_to_cpu(data->slotStatus), in pnv_pci_dump_phb4_diag_data()
378 be32_to_cpu(data->linkStatus), in pnv_pci_dump_phb4_diag_data()
379 be32_to_cpu(data->devCmdStatus), in pnv_pci_dump_phb4_diag_data()
380 be32_to_cpu(data->devSecStatus)); in pnv_pci_dump_phb4_diag_data()
381 if (data->rootErrorStatus || data->uncorrErrorStatus || in pnv_pci_dump_phb4_diag_data()
382 data->corrErrorStatus) in pnv_pci_dump_phb4_diag_data()
384 be32_to_cpu(data->rootErrorStatus), in pnv_pci_dump_phb4_diag_data()
385 be32_to_cpu(data->uncorrErrorStatus), in pnv_pci_dump_phb4_diag_data()
386 be32_to_cpu(data->corrErrorStatus)); in pnv_pci_dump_phb4_diag_data()
387 if (data->tlpHdr1 || data->tlpHdr2 || in pnv_pci_dump_phb4_diag_data()
388 data->tlpHdr3 || data->tlpHdr4) in pnv_pci_dump_phb4_diag_data()
390 be32_to_cpu(data->tlpHdr1), in pnv_pci_dump_phb4_diag_data()
391 be32_to_cpu(data->tlpHdr2), in pnv_pci_dump_phb4_diag_data()
392 be32_to_cpu(data->tlpHdr3), in pnv_pci_dump_phb4_diag_data()
393 be32_to_cpu(data->tlpHdr4)); in pnv_pci_dump_phb4_diag_data()
394 if (data->sourceId) in pnv_pci_dump_phb4_diag_data()
395 pr_info("sourceId: %08x\n", be32_to_cpu(data->sourceId)); in pnv_pci_dump_phb4_diag_data()
396 if (data->nFir) in pnv_pci_dump_phb4_diag_data()
398 be64_to_cpu(data->nFir), in pnv_pci_dump_phb4_diag_data()
399 be64_to_cpu(data->nFirMask), in pnv_pci_dump_phb4_diag_data()
400 be64_to_cpu(data->nFirWOF)); in pnv_pci_dump_phb4_diag_data()
401 if (data->phbPlssr || data->phbCsr) in pnv_pci_dump_phb4_diag_data()
403 be64_to_cpu(data->phbPlssr), in pnv_pci_dump_phb4_diag_data()
404 be64_to_cpu(data->phbCsr)); in pnv_pci_dump_phb4_diag_data()
405 if (data->lemFir) in pnv_pci_dump_phb4_diag_data()
407 be64_to_cpu(data->lemFir), in pnv_pci_dump_phb4_diag_data()
408 be64_to_cpu(data->lemErrorMask), in pnv_pci_dump_phb4_diag_data()
409 be64_to_cpu(data->lemWOF)); in pnv_pci_dump_phb4_diag_data()
410 if (data->phbErrorStatus) in pnv_pci_dump_phb4_diag_data()
412 be64_to_cpu(data->phbErrorStatus), in pnv_pci_dump_phb4_diag_data()
413 be64_to_cpu(data->phbFirstErrorStatus), in pnv_pci_dump_phb4_diag_data()
414 be64_to_cpu(data->phbErrorLog0), in pnv_pci_dump_phb4_diag_data()
415 be64_to_cpu(data->phbErrorLog1)); in pnv_pci_dump_phb4_diag_data()
416 if (data->phbTxeErrorStatus) in pnv_pci_dump_phb4_diag_data()
418 be64_to_cpu(data->phbTxeErrorStatus), in pnv_pci_dump_phb4_diag_data()
419 be64_to_cpu(data->phbTxeFirstErrorStatus), in pnv_pci_dump_phb4_diag_data()
420 be64_to_cpu(data->phbTxeErrorLog0), in pnv_pci_dump_phb4_diag_data()
421 be64_to_cpu(data->phbTxeErrorLog1)); in pnv_pci_dump_phb4_diag_data()
422 if (data->phbRxeArbErrorStatus) in pnv_pci_dump_phb4_diag_data()
424 be64_to_cpu(data->phbRxeArbErrorStatus), in pnv_pci_dump_phb4_diag_data()
425 be64_to_cpu(data->phbRxeArbFirstErrorStatus), in pnv_pci_dump_phb4_diag_data()
426 be64_to_cpu(data->phbRxeArbErrorLog0), in pnv_pci_dump_phb4_diag_data()
427 be64_to_cpu(data->phbRxeArbErrorLog1)); in pnv_pci_dump_phb4_diag_data()
428 if (data->phbRxeMrgErrorStatus) in pnv_pci_dump_phb4_diag_data()
430 be64_to_cpu(data->phbRxeMrgErrorStatus), in pnv_pci_dump_phb4_diag_data()
431 be64_to_cpu(data->phbRxeMrgFirstErrorStatus), in pnv_pci_dump_phb4_diag_data()
432 be64_to_cpu(data->phbRxeMrgErrorLog0), in pnv_pci_dump_phb4_diag_data()
433 be64_to_cpu(data->phbRxeMrgErrorLog1)); in pnv_pci_dump_phb4_diag_data()
434 if (data->phbRxeTceErrorStatus) in pnv_pci_dump_phb4_diag_data()
436 be64_to_cpu(data->phbRxeTceErrorStatus), in pnv_pci_dump_phb4_diag_data()
437 be64_to_cpu(data->phbRxeTceFirstErrorStatus), in pnv_pci_dump_phb4_diag_data()
438 be64_to_cpu(data->phbRxeTceErrorLog0), in pnv_pci_dump_phb4_diag_data()
439 be64_to_cpu(data->phbRxeTceErrorLog1)); in pnv_pci_dump_phb4_diag_data()
441 if (data->phbPblErrorStatus) in pnv_pci_dump_phb4_diag_data()
443 be64_to_cpu(data->phbPblErrorStatus), in pnv_pci_dump_phb4_diag_data()
444 be64_to_cpu(data->phbPblFirstErrorStatus), in pnv_pci_dump_phb4_diag_data()
445 be64_to_cpu(data->phbPblErrorLog0), in pnv_pci_dump_phb4_diag_data()
446 be64_to_cpu(data->phbPblErrorLog1)); in pnv_pci_dump_phb4_diag_data()
447 if (data->phbPcieDlpErrorStatus) in pnv_pci_dump_phb4_diag_data()
449 be64_to_cpu(data->phbPcieDlpErrorLog1), in pnv_pci_dump_phb4_diag_data()
450 be64_to_cpu(data->phbPcieDlpErrorLog2), in pnv_pci_dump_phb4_diag_data()
451 be64_to_cpu(data->phbPcieDlpErrorStatus)); in pnv_pci_dump_phb4_diag_data()
452 if (data->phbRegbErrorStatus) in pnv_pci_dump_phb4_diag_data()
454 be64_to_cpu(data->phbRegbErrorStatus), in pnv_pci_dump_phb4_diag_data()
455 be64_to_cpu(data->phbRegbFirstErrorStatus), in pnv_pci_dump_phb4_diag_data()
456 be64_to_cpu(data->phbRegbErrorLog0), in pnv_pci_dump_phb4_diag_data()
457 be64_to_cpu(data->phbRegbErrorLog1)); in pnv_pci_dump_phb4_diag_data()
460 pnv_pci_dump_pest(data->pestA, data->pestB, OPAL_PHB4_NUM_PEST_REGS); in pnv_pci_dump_phb4_diag_data()