Lines Matching refs:pcie
636 struct mpc83xx_pcie_priv *pcie = hose->dn->data; in mpc83xx_pcie_remap_cfg() local
648 return pcie->cfg_type0 + offset; in mpc83xx_pcie_remap_cfg()
650 if (pcie->dev_base == dev_base) in mpc83xx_pcie_remap_cfg()
653 out_le32(pcie->cfg_type0 + PEX_OUTWIN0_TAL, dev_base); in mpc83xx_pcie_remap_cfg()
655 pcie->dev_base = dev_base; in mpc83xx_pcie_remap_cfg()
657 return pcie->cfg_type1 + offset; in mpc83xx_pcie_remap_cfg()
681 struct mpc83xx_pcie_priv *pcie; in mpc83xx_pcie_setup() local
685 pcie = zalloc_maybe_bootmem(sizeof(*pcie), GFP_KERNEL); in mpc83xx_pcie_setup()
686 if (!pcie) in mpc83xx_pcie_setup()
689 pcie->cfg_type0 = ioremap(reg->start, resource_size(reg)); in mpc83xx_pcie_setup()
690 if (!pcie->cfg_type0) in mpc83xx_pcie_setup()
693 cfg_bar = in_le32(pcie->cfg_type0 + PEX_OUTWIN0_BAR); in mpc83xx_pcie_setup()
700 pcie->cfg_type1 = ioremap(cfg_bar, 0x1000); in mpc83xx_pcie_setup()
701 if (!pcie->cfg_type1) in mpc83xx_pcie_setup()
705 hose->dn->data = pcie; in mpc83xx_pcie_setup()
709 out_le32(pcie->cfg_type0 + PEX_OUTWIN0_TAH, 0); in mpc83xx_pcie_setup()
710 out_le32(pcie->cfg_type0 + PEX_OUTWIN0_TAL, 0); in mpc83xx_pcie_setup()
717 iounmap(pcie->cfg_type0); in mpc83xx_pcie_setup()
719 kfree(pcie); in mpc83xx_pcie_setup()
820 struct mpc83xx_pcie_priv *pcie = hose->dn->data; in fsl_pci_immrbar_base() local
825 in = pcie->cfg_type0 + PEX_RC_INWIN_BASE; in fsl_pci_immrbar_base()