Lines Matching refs:p
50 struct starfire_irqinfo *p; in starfire_hookup() local
53 p = kmalloc(sizeof(*p), GFP_KERNEL); in starfire_hookup()
54 if (!p) { in starfire_hookup()
62 p->hwmid = hwmid; in starfire_hookup()
66 p->imap_slots[i] = 0UL; in starfire_hookup()
67 p->tregs[i] = treg_base + (i * 0x10UL); in starfire_hookup()
69 if (upa_readl(p->tregs[i]) != 0) in starfire_hookup()
70 p->imap_slots[i] = 0xdeadbeaf; in starfire_hookup()
72 p->upaid = upaid; in starfire_hookup()
73 p->next = sflist; in starfire_hookup()
74 sflist = p; in starfire_hookup()
80 struct starfire_irqinfo *p; in starfire_translate() local
85 for (p = sflist; p != NULL; p = p->next) in starfire_translate()
86 if (p->hwmid == bus_hwmid) in starfire_translate()
88 if (p == NULL) { in starfire_translate()
94 if (p->imap_slots[i] == imap || in starfire_translate()
95 p->imap_slots[i] == 0UL) in starfire_translate()
102 p->imap_slots[i] = imap; in starfire_translate()
109 upa_writel(upaid, p->tregs[i]); in starfire_translate()