pcicptr           196 arch/mips/include/asm/txx9/tx4927pcic.h void tx4927_pcic_setup(struct tx4927_pcic_reg __iomem *pcicptr,
pcicptr            22 arch/mips/pci/ops-tx4927.c 	struct tx4927_pcic_reg __iomem *pcicptr;
pcicptr            26 arch/mips/pci/ops-tx4927.c 				      struct tx4927_pcic_reg __iomem *pcicptr)
pcicptr            32 arch/mips/pci/ops-tx4927.c 			pcicptrs[i].pcicptr = pcicptr;
pcicptr            39 arch/mips/pci/ops-tx4927.c 			pcicptrs[i].pcicptr = pcicptr;
pcicptr            53 arch/mips/pci/ops-tx4927.c 			return pcicptrs[i].pcicptr;
pcicptr            59 arch/mips/pci/ops-tx4927.c 		  struct tx4927_pcic_reg __iomem *pcicptr)
pcicptr            67 arch/mips/pci/ops-tx4927.c 		     &pcicptr->g2pcfgadrs);
pcicptr            69 arch/mips/pci/ops-tx4927.c 	__raw_writel((__raw_readl(&pcicptr->pcistatus) & 0x0000ffff)
pcicptr            71 arch/mips/pci/ops-tx4927.c 		     &pcicptr->pcistatus);
pcicptr            75 arch/mips/pci/ops-tx4927.c static int check_abort(struct tx4927_pcic_reg __iomem *pcicptr)
pcicptr            80 arch/mips/pci/ops-tx4927.c 	while (__raw_readl(&pcicptr->pcicstatus) & TX4927_PCIC_PCICSTATUS_IWB)
pcicptr            82 arch/mips/pci/ops-tx4927.c 	if (__raw_readl(&pcicptr->pcistatus)
pcicptr            84 arch/mips/pci/ops-tx4927.c 		__raw_writel((__raw_readl(&pcicptr->pcistatus) & 0x0000ffff)
pcicptr            86 arch/mips/pci/ops-tx4927.c 			     &pcicptr->pcistatus);
pcicptr            94 arch/mips/pci/ops-tx4927.c static u8 icd_readb(int offset, struct tx4927_pcic_reg __iomem *pcicptr)
pcicptr            99 arch/mips/pci/ops-tx4927.c 	return __raw_readb((void __iomem *)&pcicptr->g2pcfgdata + offset);
pcicptr           101 arch/mips/pci/ops-tx4927.c static u16 icd_readw(int offset, struct tx4927_pcic_reg __iomem *pcicptr)
pcicptr           106 arch/mips/pci/ops-tx4927.c 	return __raw_readw((void __iomem *)&pcicptr->g2pcfgdata + offset);
pcicptr           108 arch/mips/pci/ops-tx4927.c static u32 icd_readl(struct tx4927_pcic_reg __iomem *pcicptr)
pcicptr           110 arch/mips/pci/ops-tx4927.c 	return __raw_readl(&pcicptr->g2pcfgdata);
pcicptr           113 arch/mips/pci/ops-tx4927.c 		       struct tx4927_pcic_reg __iomem *pcicptr)
pcicptr           118 arch/mips/pci/ops-tx4927.c 	__raw_writeb(val, (void __iomem *)&pcicptr->g2pcfgdata + offset);
pcicptr           121 arch/mips/pci/ops-tx4927.c 		       struct tx4927_pcic_reg __iomem *pcicptr)
pcicptr           126 arch/mips/pci/ops-tx4927.c 	__raw_writew(val, (void __iomem *)&pcicptr->g2pcfgdata + offset);
pcicptr           128 arch/mips/pci/ops-tx4927.c static void icd_writel(u32 val, struct tx4927_pcic_reg __iomem *pcicptr)
pcicptr           130 arch/mips/pci/ops-tx4927.c 	__raw_writel(val, &pcicptr->g2pcfgdata);
pcicptr           142 arch/mips/pci/ops-tx4927.c 	struct tx4927_pcic_reg __iomem *pcicptr = pci_bus_to_pcicptr(bus);
pcicptr           144 arch/mips/pci/ops-tx4927.c 	if (mkaddr(bus, devfn, where, pcicptr)) {
pcicptr           150 arch/mips/pci/ops-tx4927.c 		*val = icd_readb(where & 3, pcicptr);
pcicptr           153 arch/mips/pci/ops-tx4927.c 		*val = icd_readw(where & 3, pcicptr);
pcicptr           156 arch/mips/pci/ops-tx4927.c 		*val = icd_readl(pcicptr);
pcicptr           158 arch/mips/pci/ops-tx4927.c 	return check_abort(pcicptr);
pcicptr           164 arch/mips/pci/ops-tx4927.c 	struct tx4927_pcic_reg __iomem *pcicptr = pci_bus_to_pcicptr(bus);
pcicptr           166 arch/mips/pci/ops-tx4927.c 	if (mkaddr(bus, devfn, where, pcicptr))
pcicptr           170 arch/mips/pci/ops-tx4927.c 		icd_writeb(val, where & 3, pcicptr);
pcicptr           173 arch/mips/pci/ops-tx4927.c 		icd_writew(val, where & 3, pcicptr);
pcicptr           176 arch/mips/pci/ops-tx4927.c 		icd_writel(val, pcicptr);
pcicptr           178 arch/mips/pci/ops-tx4927.c 	return check_abort(pcicptr);
pcicptr           219 arch/mips/pci/ops-tx4927.c void __init tx4927_pcic_setup(struct tx4927_pcic_reg __iomem *pcicptr,
pcicptr           225 arch/mips/pci/ops-tx4927.c 	set_tx4927_pcicptr(channel, pcicptr);
pcicptr           230 arch/mips/pci/ops-tx4927.c 		       __raw_readl(&pcicptr->pciid) >> 16,
pcicptr           231 arch/mips/pci/ops-tx4927.c 		       __raw_readl(&pcicptr->pciid) & 0xffff,
pcicptr           232 arch/mips/pci/ops-tx4927.c 		       __raw_readl(&pcicptr->pciccrev) & 0xff,
pcicptr           239 arch/mips/pci/ops-tx4927.c 	__raw_writel(__raw_readl(&pcicptr->pciccfg)
pcicptr           244 arch/mips/pci/ops-tx4927.c 		     &pcicptr->pciccfg);
pcicptr           249 arch/mips/pci/ops-tx4927.c 		     &pcicptr->g2piomask);
pcicptr           257 arch/mips/pci/ops-tx4927.c 		       , &pcicptr->g2piogbase);
pcicptr           259 arch/mips/pci/ops-tx4927.c 		       &pcicptr->g2piopbase);
pcicptr           261 arch/mips/pci/ops-tx4927.c 		__raw_writel(0, &pcicptr->g2pmmask[i]);
pcicptr           262 arch/mips/pci/ops-tx4927.c 		____raw_writeq(0, &pcicptr->g2pmgbase[i]);
pcicptr           263 arch/mips/pci/ops-tx4927.c 		____raw_writeq(0, &pcicptr->g2pmpbase[i]);
pcicptr           268 arch/mips/pci/ops-tx4927.c 			     &pcicptr->g2pmmask[0]);
pcicptr           275 arch/mips/pci/ops-tx4927.c 			       , &pcicptr->g2pmgbase[0]);
pcicptr           278 arch/mips/pci/ops-tx4927.c 			       &pcicptr->g2pmpbase[0]);
pcicptr           281 arch/mips/pci/ops-tx4927.c 	__raw_writel(0, &pcicptr->p2giopbase); /* 256B */
pcicptr           282 arch/mips/pci/ops-tx4927.c 	____raw_writeq(0, &pcicptr->p2giogbase);
pcicptr           284 arch/mips/pci/ops-tx4927.c 	__raw_writel(0, &pcicptr->p2gm0plbase);
pcicptr           285 arch/mips/pci/ops-tx4927.c 	__raw_writel(0, &pcicptr->p2gm0pubase);
pcicptr           292 arch/mips/pci/ops-tx4927.c 		       , &pcicptr->p2gmgbase[0]);
pcicptr           294 arch/mips/pci/ops-tx4927.c 	__raw_writel(0xffffffff, &pcicptr->p2gm1plbase);
pcicptr           295 arch/mips/pci/ops-tx4927.c 	__raw_writel(0xffffffff, &pcicptr->p2gm1pubase);
pcicptr           296 arch/mips/pci/ops-tx4927.c 	____raw_writeq(0, &pcicptr->p2gmgbase[1]);
pcicptr           298 arch/mips/pci/ops-tx4927.c 	__raw_writel(0xffffffff, &pcicptr->p2gm2pbase); /* 1MB */
pcicptr           299 arch/mips/pci/ops-tx4927.c 	____raw_writeq(0, &pcicptr->p2gmgbase[2]);
pcicptr           304 arch/mips/pci/ops-tx4927.c 		     &pcicptr->pciccfg);
pcicptr           307 arch/mips/pci/ops-tx4927.c 		__raw_writel(__raw_readl(&pcicptr->pciccfg)
pcicptr           309 arch/mips/pci/ops-tx4927.c 			     &pcicptr->pciccfg);
pcicptr           312 arch/mips/pci/ops-tx4927.c 		__raw_writel(__raw_readl(&pcicptr->pciccfg)
pcicptr           314 arch/mips/pci/ops-tx4927.c 			     &pcicptr->pciccfg);
pcicptr           316 arch/mips/pci/ops-tx4927.c 	__raw_writel(__raw_readl(&pcicptr->pciccfg)
pcicptr           318 arch/mips/pci/ops-tx4927.c 		     &pcicptr->pciccfg);
pcicptr           321 arch/mips/pci/ops-tx4927.c 	__raw_writel(0, &pcicptr->pcicfg1);
pcicptr           323 arch/mips/pci/ops-tx4927.c 	__raw_writel((__raw_readl(&pcicptr->g2ptocnt) & ~0xffff)
pcicptr           326 arch/mips/pci/ops-tx4927.c 		     &pcicptr->g2ptocnt);
pcicptr           329 arch/mips/pci/ops-tx4927.c 	__raw_writel(TX4927_PCIC_PCICSTATUS_ALL, &pcicptr->pcicstatus);
pcicptr           331 arch/mips/pci/ops-tx4927.c 	__raw_writel(TX4927_PCIC_PCICSTATUS_ALL, &pcicptr->pcicmask);
pcicptr           333 arch/mips/pci/ops-tx4927.c 	__raw_writel(TX4927_PCIC_G2PSTATUS_ALL, &pcicptr->g2pstatus);
pcicptr           335 arch/mips/pci/ops-tx4927.c 	__raw_writel(TX4927_PCIC_G2PSTATUS_ALL, &pcicptr->g2pmask);
pcicptr           337 arch/mips/pci/ops-tx4927.c 	__raw_writel((__raw_readl(&pcicptr->pcistatus) & 0x0000ffff)
pcicptr           339 arch/mips/pci/ops-tx4927.c 		     &pcicptr->pcistatus);
pcicptr           341 arch/mips/pci/ops-tx4927.c 	__raw_writel(TX4927_PCIC_PCISTATUS_ALL, &pcicptr->pcimask);
pcicptr           345 arch/mips/pci/ops-tx4927.c 		__raw_writel(TX4927_PCIC_PBACFG_RPBA, &pcicptr->pbacfg);
pcicptr           346 arch/mips/pci/ops-tx4927.c 		__raw_writel(0, &pcicptr->pbabm);
pcicptr           348 arch/mips/pci/ops-tx4927.c 		__raw_writel(TX4927_PCIC_PBACFG_PBAEN, &pcicptr->pbacfg);
pcicptr           353 arch/mips/pci/ops-tx4927.c 		     &pcicptr->pcistatus);
pcicptr           359 arch/mips/pci/ops-tx4927.c 	       __raw_readl(&pcicptr->pcistatus) & 0xffff,
pcicptr           360 arch/mips/pci/ops-tx4927.c 	       __raw_readl(&pcicptr->pcimask) & 0xffff,
pcicptr           361 arch/mips/pci/ops-tx4927.c 	       __raw_readl(&pcicptr->g2ptocnt) & 0xff,
pcicptr           362 arch/mips/pci/ops-tx4927.c 	       (__raw_readl(&pcicptr->g2ptocnt) & 0xff00) >> 8,
pcicptr           363 arch/mips/pci/ops-tx4927.c 	       (__raw_readl(&pcicptr->pciccfg) >> 16) & 0xfff);
pcicptr           366 arch/mips/pci/ops-tx4927.c static void tx4927_report_pcic_status1(struct tx4927_pcic_reg __iomem *pcicptr)
pcicptr           368 arch/mips/pci/ops-tx4927.c 	__u16 pcistatus = (__u16)(__raw_readl(&pcicptr->pcistatus) >> 16);
pcicptr           369 arch/mips/pci/ops-tx4927.c 	__u32 g2pstatus = __raw_readl(&pcicptr->g2pstatus);
pcicptr           370 arch/mips/pci/ops-tx4927.c 	__u32 pcicstatus = __raw_readl(&pcicptr->pcicstatus);
pcicptr           429 arch/mips/pci/ops-tx4927.c 		if (pcicptrs[i].pcicptr)
pcicptr           430 arch/mips/pci/ops-tx4927.c 			tx4927_report_pcic_status1(pcicptrs[i].pcicptr);
pcicptr           434 arch/mips/pci/ops-tx4927.c static void tx4927_dump_pcic_settings1(struct tx4927_pcic_reg __iomem *pcicptr)
pcicptr           437 arch/mips/pci/ops-tx4927.c 	__u32 __iomem *preg = (__u32 __iomem *)pcicptr;
pcicptr           439 arch/mips/pci/ops-tx4927.c 	printk(KERN_INFO "tx4927 pcic (0x%p) settings:", pcicptr);
pcicptr           463 arch/mips/pci/ops-tx4927.c 		if (pcicptrs[i].pcicptr)
pcicptr           464 arch/mips/pci/ops-tx4927.c 			tx4927_dump_pcic_settings1(pcicptrs[i].pcicptr);
pcicptr           471 arch/mips/pci/ops-tx4927.c 	struct tx4927_pcic_reg __iomem *pcicptr =
pcicptr           477 arch/mips/pci/ops-tx4927.c 		tx4927_report_pcic_status1(pcicptr);
pcicptr           481 arch/mips/pci/ops-tx4927.c 		__raw_writel((__raw_readl(&pcicptr->pcistatus) & 0x0000ffff)
pcicptr           483 arch/mips/pci/ops-tx4927.c 			     &pcicptr->pcistatus);
pcicptr           484 arch/mips/pci/ops-tx4927.c 		__raw_writel(TX4927_PCIC_G2PSTATUS_ALL, &pcicptr->g2pstatus);
pcicptr           485 arch/mips/pci/ops-tx4927.c 		__raw_writel(TX4927_PCIC_PBASTATUS_ALL, &pcicptr->pbastatus);
pcicptr           486 arch/mips/pci/ops-tx4927.c 		__raw_writel(TX4927_PCIC_PCICSTATUS_ALL, &pcicptr->pcicstatus);
pcicptr           490 arch/mips/pci/ops-tx4927.c 	tx4927_dump_pcic_settings1(pcicptr);
pcicptr           497 arch/mips/pci/ops-tx4927.c 	struct tx4927_pcic_reg __iomem *pcicptr = pci_bus_to_pcicptr(dev->bus);
pcicptr           499 arch/mips/pci/ops-tx4927.c 	if (!pcicptr)
pcicptr           501 arch/mips/pci/ops-tx4927.c 	if (__raw_readl(&pcicptr->pbacfg) & TX4927_PCIC_PBACFG_PBAEN) {
pcicptr           503 arch/mips/pci/ops-tx4927.c 		__raw_writel(TX4927_PCIC_PBACFG_RPBA, &pcicptr->pbacfg);
pcicptr           509 arch/mips/pci/ops-tx4927.c 		__raw_writel(0x72543610, &pcicptr->pbareqport);
pcicptr           510 arch/mips/pci/ops-tx4927.c 		__raw_writel(0, &pcicptr->pbabm);
pcicptr           512 arch/mips/pci/ops-tx4927.c 		__raw_writel(TX4927_PCIC_PBACFG_FIXPA, &pcicptr->pbacfg);
pcicptr           516 arch/mips/pci/ops-tx4927.c 			     &pcicptr->pbacfg);
pcicptr           518 arch/mips/pci/ops-tx4927.c 		       __raw_readl(&pcicptr->pbareqport));