Lines Matching refs:mbase

1236 	void __iomem *mbase;  in ppc460sx_pciex_check_link()  local
1241 mbase = ioremap(port->cfg_space.start + 0x10000000, 0x1000); in ppc460sx_pciex_check_link()
1242 if (mbase == NULL) { in ppc460sx_pciex_check_link()
1248 while (attempt && (0 == (in_le32(mbase + PECFG_460SX_DLLSTA) in ppc460sx_pciex_check_link()
1255 iounmap(mbase); in ppc460sx_pciex_check_link()
1374 void __iomem *mbase = ioremap(port->cfg_space.start + 0x10000000, in ppc_476fpe_pciex_check_link() local
1379 if (mbase == NULL) { in ppc_476fpe_pciex_check_link()
1386 val = in_le32(mbase + PECFG_TLDLP); in ppc_476fpe_pciex_check_link()
1399 iounmap(mbase); in ppc_476fpe_pciex_check_link()
1710 void __iomem *mbase, in ppc4xx_setup_one_pciex_POM() argument
1737 out_le32(mbase + PECFG_POM0LAH, pciah); in ppc4xx_setup_one_pciex_POM()
1738 out_le32(mbase + PECFG_POM0LAL, pcial); in ppc4xx_setup_one_pciex_POM()
1760 out_le32(mbase + PECFG_POM1LAH, pciah); in ppc4xx_setup_one_pciex_POM()
1761 out_le32(mbase + PECFG_POM1LAL, pcial); in ppc4xx_setup_one_pciex_POM()
1769 out_le32(mbase + PECFG_POM2LAH, pciah); in ppc4xx_setup_one_pciex_POM()
1770 out_le32(mbase + PECFG_POM2LAL, pcial); in ppc4xx_setup_one_pciex_POM()
1786 void __iomem *mbase) in ppc4xx_configure_pciex_POMs() argument
1805 if (ppc4xx_setup_one_pciex_POM(port, hose, mbase, in ppc4xx_configure_pciex_POMs()
1823 if (ppc4xx_setup_one_pciex_POM(port, hose, mbase, in ppc4xx_configure_pciex_POMs()
1833 ppc4xx_setup_one_pciex_POM(port, hose, mbase, in ppc4xx_configure_pciex_POMs()
1840 void __iomem *mbase, in ppc4xx_configure_pciex_PIMs() argument
1859 out_le32(mbase + PECFG_BAR0HMPA, RES_TO_U32_HIGH(sa)); in ppc4xx_configure_pciex_PIMs()
1860 out_le32(mbase + PECFG_BAR0LMPA, RES_TO_U32_LOW(sa) | in ppc4xx_configure_pciex_PIMs()
1864 out_le32(mbase + PECFG_BAR1MPA, 0); in ppc4xx_configure_pciex_PIMs()
1865 out_le32(mbase + PECFG_BAR2HMPA, 0); in ppc4xx_configure_pciex_PIMs()
1866 out_le32(mbase + PECFG_BAR2LMPA, 0); in ppc4xx_configure_pciex_PIMs()
1868 out_le32(mbase + PECFG_PIM01SAH, RES_TO_U32_HIGH(sa)); in ppc4xx_configure_pciex_PIMs()
1869 out_le32(mbase + PECFG_PIM01SAL, RES_TO_U32_LOW(sa)); in ppc4xx_configure_pciex_PIMs()
1871 out_le32(mbase + PCI_BASE_ADDRESS_0, RES_TO_U32_LOW(ep_addr)); in ppc4xx_configure_pciex_PIMs()
1872 out_le32(mbase + PCI_BASE_ADDRESS_1, RES_TO_U32_HIGH(ep_addr)); in ppc4xx_configure_pciex_PIMs()
1886 out_le32(mbase + PECFG_BAR0HMPA, RES_TO_U32_HIGH(sa)); in ppc4xx_configure_pciex_PIMs()
1887 out_le32(mbase + PECFG_BAR0LMPA, RES_TO_U32_LOW(sa)); in ppc4xx_configure_pciex_PIMs()
1892 out_le32(mbase + PECFG_PIM0LAL, 0x00000000); in ppc4xx_configure_pciex_PIMs()
1893 out_le32(mbase + PECFG_PIM0LAH, 0x00000000); in ppc4xx_configure_pciex_PIMs()
1894 out_le32(mbase + PECFG_PIM1LAL, 0x00000000); in ppc4xx_configure_pciex_PIMs()
1895 out_le32(mbase + PECFG_PIM1LAH, 0x00000000); in ppc4xx_configure_pciex_PIMs()
1896 out_le32(mbase + PECFG_PIM01SAH, 0xffff0000); in ppc4xx_configure_pciex_PIMs()
1897 out_le32(mbase + PECFG_PIM01SAL, 0x00000000); in ppc4xx_configure_pciex_PIMs()
1899 out_le32(mbase + PCI_BASE_ADDRESS_0, RES_TO_U32_LOW(res->start)); in ppc4xx_configure_pciex_PIMs()
1900 out_le32(mbase + PCI_BASE_ADDRESS_1, RES_TO_U32_HIGH(res->start)); in ppc4xx_configure_pciex_PIMs()
1904 out_le32(mbase + PECFG_PIMEN, 0x1); in ppc4xx_configure_pciex_PIMs()
1907 out_le16(mbase + PCI_COMMAND, in ppc4xx_configure_pciex_PIMs()
1908 in_le16(mbase + PCI_COMMAND) | in ppc4xx_configure_pciex_PIMs()
1918 void __iomem *mbase = NULL, *cfg_data = NULL; in ppc4xx_pciex_port_setup_hose() local
1972 mbase = ioremap(port->cfg_space.start + 0x10000000, 0x1000); in ppc4xx_pciex_port_setup_hose()
1973 if (mbase == NULL) { in ppc4xx_pciex_port_setup_hose()
1978 hose->cfg_addr = mbase; in ppc4xx_pciex_port_setup_hose()
1988 mbase = (void __iomem *)hose->cfg_addr; in ppc4xx_pciex_port_setup_hose()
1994 out_8(mbase + PCI_PRIMARY_BUS, hose->first_busno); in ppc4xx_pciex_port_setup_hose()
1995 out_8(mbase + PCI_SECONDARY_BUS, hose->first_busno + 1); in ppc4xx_pciex_port_setup_hose()
1996 out_8(mbase + PCI_SUBORDINATE_BUS, hose->last_busno); in ppc4xx_pciex_port_setup_hose()
2002 out_le32(mbase + PECFG_PIMEN, 0); in ppc4xx_pciex_port_setup_hose()
2008 if (ppc4xx_parse_dma_ranges(hose, mbase, &dma_window) != 0) in ppc4xx_pciex_port_setup_hose()
2012 ppc4xx_configure_pciex_POMs(port, hose, mbase); in ppc4xx_pciex_port_setup_hose()
2015 ppc4xx_configure_pciex_PIMs(port, hose, mbase, &dma_window); in ppc4xx_pciex_port_setup_hose()
2034 out_le16(mbase + 0x200, val); in ppc4xx_pciex_port_setup_hose()
2045 out_le16(mbase + 0x202, val); in ppc4xx_pciex_port_setup_hose()
2049 out_le16(mbase + 0x204, 0x7); in ppc4xx_pciex_port_setup_hose()
2053 out_le32(mbase + 0x208, 0x06040001); in ppc4xx_pciex_port_setup_hose()
2059 out_le32(mbase + 0x208, 0x0b200001); in ppc4xx_pciex_port_setup_hose()
2071 if (mbase) in ppc4xx_pciex_port_setup_hose()
2072 iounmap(mbase); in ppc4xx_pciex_port_setup_hose()