Lines Matching refs:pcie
674 struct mpc83xx_pcie_priv *pcie = hose->dn->data; in mpc83xx_pcie_remap_cfg() local
686 return pcie->cfg_type0 + offset; in mpc83xx_pcie_remap_cfg()
688 if (pcie->dev_base == dev_base) in mpc83xx_pcie_remap_cfg()
691 out_le32(pcie->cfg_type0 + PEX_OUTWIN0_TAL, dev_base); in mpc83xx_pcie_remap_cfg()
693 pcie->dev_base = dev_base; in mpc83xx_pcie_remap_cfg()
695 return pcie->cfg_type1 + offset; in mpc83xx_pcie_remap_cfg()
719 struct mpc83xx_pcie_priv *pcie; in mpc83xx_pcie_setup() local
723 pcie = zalloc_maybe_bootmem(sizeof(*pcie), GFP_KERNEL); in mpc83xx_pcie_setup()
724 if (!pcie) in mpc83xx_pcie_setup()
727 pcie->cfg_type0 = ioremap(reg->start, resource_size(reg)); in mpc83xx_pcie_setup()
728 if (!pcie->cfg_type0) in mpc83xx_pcie_setup()
731 cfg_bar = in_le32(pcie->cfg_type0 + PEX_OUTWIN0_BAR); in mpc83xx_pcie_setup()
738 pcie->cfg_type1 = ioremap(cfg_bar, 0x1000); in mpc83xx_pcie_setup()
739 if (!pcie->cfg_type1) in mpc83xx_pcie_setup()
743 hose->dn->data = pcie; in mpc83xx_pcie_setup()
747 out_le32(pcie->cfg_type0 + PEX_OUTWIN0_TAH, 0); in mpc83xx_pcie_setup()
748 out_le32(pcie->cfg_type0 + PEX_OUTWIN0_TAL, 0); in mpc83xx_pcie_setup()
755 iounmap(pcie->cfg_type0); in mpc83xx_pcie_setup()
757 kfree(pcie); in mpc83xx_pcie_setup()
858 struct mpc83xx_pcie_priv *pcie = hose->dn->data; in fsl_pci_immrbar_base() local
863 in = pcie->cfg_type0 + PEX_RC_INWIN_BASE; in fsl_pci_immrbar_base()