• Home
  • Raw
  • Download

Lines Matching refs:pdata

52 	struct mpc85xx_pci_pdata *pdata = pci->pvt_info;  in mpc85xx_pci_check()  local
55 err_detect = in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DR); in mpc85xx_pci_check()
59 out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DR, err_detect); in mpc85xx_pci_check()
67 in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_ATTRIB)); in mpc85xx_pci_check()
69 in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_ADDR)); in mpc85xx_pci_check()
71 in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_EXT_ADDR)); in mpc85xx_pci_check()
73 in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DL)); in mpc85xx_pci_check()
75 in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DH)); in mpc85xx_pci_check()
78 out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DR, err_detect); in mpc85xx_pci_check()
89 struct mpc85xx_pci_pdata *pdata = pci->pvt_info; in mpc85xx_pcie_check() local
92 err_detect = in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DR); in mpc85xx_pcie_check()
93 err_cap_stat = in_be32(pdata->pci_vbase + MPC85XX_PCI_GAS_TIMR); in mpc85xx_pcie_check()
99 in_be32(pdata->pci_vbase + MPC85XX_PCIE_ERR_CAP_R0)); in mpc85xx_pcie_check()
101 in_be32(pdata->pci_vbase + MPC85XX_PCIE_ERR_CAP_R1)); in mpc85xx_pcie_check()
103 in_be32(pdata->pci_vbase + MPC85XX_PCIE_ERR_CAP_R2)); in mpc85xx_pcie_check()
105 in_be32(pdata->pci_vbase + MPC85XX_PCIE_ERR_CAP_R3)); in mpc85xx_pcie_check()
108 out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DR, err_detect); in mpc85xx_pcie_check()
111 out_be32(pdata->pci_vbase + MPC85XX_PCI_GAS_TIMR, err_cap_stat | 0x1); in mpc85xx_pcie_check()
129 struct mpc85xx_pci_pdata *pdata = pci->pvt_info; in mpc85xx_pci_isr() local
132 err_detect = in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DR); in mpc85xx_pci_isr()
137 if (pdata->is_pcie) in mpc85xx_pci_isr()
148 struct mpc85xx_pci_pdata *pdata; in mpc85xx_pci_err_probe() local
157 pci = edac_pci_alloc_ctl_info(sizeof(*pdata), "mpc85xx_pci_err"); in mpc85xx_pci_err_probe()
171 pdata = pci->pvt_info; in mpc85xx_pci_err_probe()
172 pdata->name = "mpc85xx_pci_err"; in mpc85xx_pci_err_probe()
183 pdata->is_pcie = true; in mpc85xx_pci_err_probe()
188 pci->ctl_name = pdata->name; in mpc85xx_pci_err_probe()
192 if (pdata->is_pcie) in mpc85xx_pci_err_probe()
198 pdata->edac_idx = edac_pci_idx++; in mpc85xx_pci_err_probe()
210 pdata->name)) { in mpc85xx_pci_err_probe()
216 pdata->pci_vbase = devm_ioremap(&op->dev, r.start, resource_size(&r)); in mpc85xx_pci_err_probe()
217 if (!pdata->pci_vbase) { in mpc85xx_pci_err_probe()
223 if (pdata->is_pcie) { in mpc85xx_pci_err_probe()
225 in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_ADDR); in mpc85xx_pci_err_probe()
226 out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_ADDR, ~0); in mpc85xx_pci_err_probe()
228 in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_EN); in mpc85xx_pci_err_probe()
229 out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_EN, 0); in mpc85xx_pci_err_probe()
232 in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_CAP_DR); in mpc85xx_pci_err_probe()
235 out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_CAP_DR, 0x40); in mpc85xx_pci_err_probe()
238 in_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_EN); in mpc85xx_pci_err_probe()
241 out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_EN, ~0x40); in mpc85xx_pci_err_probe()
245 out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_DR, ~0); in mpc85xx_pci_err_probe()
248 out_be32(pdata->pci_vbase + MPC85XX_PCI_GAS_TIMR, 0x1); in mpc85xx_pci_err_probe()
250 if (edac_pci_add_device(pci, pdata->edac_idx) > 0) { in mpc85xx_pci_err_probe()
256 pdata->irq = irq_of_parse_and_map(of_node, 0); in mpc85xx_pci_err_probe()
257 res = devm_request_irq(&op->dev, pdata->irq, in mpc85xx_pci_err_probe()
263 __func__, pdata->irq); in mpc85xx_pci_err_probe()
264 irq_dispose_mapping(pdata->irq); in mpc85xx_pci_err_probe()
270 pdata->irq); in mpc85xx_pci_err_probe()
273 if (pdata->is_pcie) { in mpc85xx_pci_err_probe()
283 out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_EN, ~0 in mpc85xx_pci_err_probe()
285 out_be32(pdata->pci_vbase + MPC85XX_PCI_ERR_ADDR, 0 in mpc85xx_pci_err_probe()
327 struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; in mpc85xx_l2_inject_data_hi_show() local
329 in_be32(pdata->l2_vbase + MPC85XX_L2_ERRINJHI)); in mpc85xx_l2_inject_data_hi_show()
335 struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; in mpc85xx_l2_inject_data_lo_show() local
337 in_be32(pdata->l2_vbase + MPC85XX_L2_ERRINJLO)); in mpc85xx_l2_inject_data_lo_show()
343 struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; in mpc85xx_l2_inject_ctrl_show() local
345 in_be32(pdata->l2_vbase + MPC85XX_L2_ERRINJCTL)); in mpc85xx_l2_inject_ctrl_show()
352 struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; in mpc85xx_l2_inject_data_hi_store() local
354 out_be32(pdata->l2_vbase + MPC85XX_L2_ERRINJHI, in mpc85xx_l2_inject_data_hi_store()
365 struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; in mpc85xx_l2_inject_data_lo_store() local
367 out_be32(pdata->l2_vbase + MPC85XX_L2_ERRINJLO, in mpc85xx_l2_inject_data_lo_store()
378 struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; in mpc85xx_l2_inject_ctrl_store() local
380 out_be32(pdata->l2_vbase + MPC85XX_L2_ERRINJCTL, in mpc85xx_l2_inject_ctrl_store()
426 struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; in mpc85xx_l2_check() local
429 err_detect = in_be32(pdata->l2_vbase + MPC85XX_L2_ERRDET); in mpc85xx_l2_check()
437 in_be32(pdata->l2_vbase + MPC85XX_L2_CAPTDATAHI)); in mpc85xx_l2_check()
439 in_be32(pdata->l2_vbase + MPC85XX_L2_CAPTDATALO)); in mpc85xx_l2_check()
441 in_be32(pdata->l2_vbase + MPC85XX_L2_CAPTECC)); in mpc85xx_l2_check()
443 in_be32(pdata->l2_vbase + MPC85XX_L2_ERRATTR)); in mpc85xx_l2_check()
445 in_be32(pdata->l2_vbase + MPC85XX_L2_ERRADDR)); in mpc85xx_l2_check()
448 out_be32(pdata->l2_vbase + MPC85XX_L2_ERRDET, err_detect); in mpc85xx_l2_check()
460 struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; in mpc85xx_l2_isr() local
463 err_detect = in_be32(pdata->l2_vbase + MPC85XX_L2_ERRDET); in mpc85xx_l2_isr()
476 struct mpc85xx_l2_pdata *pdata; in mpc85xx_l2_err_probe() local
483 edac_dev = edac_device_alloc_ctl_info(sizeof(*pdata), in mpc85xx_l2_err_probe()
491 pdata = edac_dev->pvt_info; in mpc85xx_l2_err_probe()
492 pdata->name = "mpc85xx_l2_err"; in mpc85xx_l2_err_probe()
495 edac_dev->ctl_name = pdata->name; in mpc85xx_l2_err_probe()
496 edac_dev->dev_name = pdata->name; in mpc85xx_l2_err_probe()
508 pdata->name)) { in mpc85xx_l2_err_probe()
514 pdata->l2_vbase = devm_ioremap(&op->dev, r.start, resource_size(&r)); in mpc85xx_l2_err_probe()
515 if (!pdata->l2_vbase) { in mpc85xx_l2_err_probe()
521 out_be32(pdata->l2_vbase + MPC85XX_L2_ERRDET, ~0); in mpc85xx_l2_err_probe()
523 orig_l2_err_disable = in_be32(pdata->l2_vbase + MPC85XX_L2_ERRDIS); in mpc85xx_l2_err_probe()
526 out_be32(pdata->l2_vbase + MPC85XX_L2_ERRDIS, 0); in mpc85xx_l2_err_probe()
535 pdata->edac_idx = edac_dev_idx++; in mpc85xx_l2_err_probe()
543 pdata->irq = irq_of_parse_and_map(op->dev.of_node, 0); in mpc85xx_l2_err_probe()
544 res = devm_request_irq(&op->dev, pdata->irq, in mpc85xx_l2_err_probe()
549 __func__, pdata->irq); in mpc85xx_l2_err_probe()
550 irq_dispose_mapping(pdata->irq); in mpc85xx_l2_err_probe()
555 pr_info(EDAC_MOD_STR " acquired irq %d for L2 Err\n", pdata->irq); in mpc85xx_l2_err_probe()
559 out_be32(pdata->l2_vbase + MPC85XX_L2_ERRINTEN, L2_EIE_MASK); in mpc85xx_l2_err_probe()
580 struct mpc85xx_l2_pdata *pdata = edac_dev->pvt_info; in mpc85xx_l2_err_remove() local
585 out_be32(pdata->l2_vbase + MPC85XX_L2_ERRINTEN, 0); in mpc85xx_l2_err_remove()
586 irq_dispose_mapping(pdata->irq); in mpc85xx_l2_err_remove()
589 out_be32(pdata->l2_vbase + MPC85XX_L2_ERRDIS, orig_l2_err_disable); in mpc85xx_l2_err_remove()