Lines Matching refs:pe
56 read_ev7_csr(int pe, unsigned long offset) in read_ev7_csr() argument
58 ev7_csr *ev7csr = EV7_CSR_KERN(pe, offset); in read_ev7_csr()
69 write_ev7_csr(int pe, unsigned long offset, unsigned long q) in write_ev7_csr() argument
71 ev7_csr *ev7csr = EV7_CSR_KERN(pe, offset); in write_ev7_csr()
79 mk_resource_name(int pe, int port, char *str) in mk_resource_name() argument
84 sprintf(tmp, "PCI %s PE %d PORT %d", str, pe, port); in mk_resource_name()
101 marvel_find_io7(int pe) in marvel_find_io7() argument
105 for (io7 = io7_head; io7 && io7->pe != pe; io7 = io7->next) in marvel_find_io7()
112 alloc_io7(unsigned int pe) in alloc_io7() argument
118 if (marvel_find_io7(pe)) { in alloc_io7()
119 printk(KERN_WARNING "IO7 at PE %d already allocated!\n", pe); in alloc_io7()
127 io7->pe = pe; in alloc_io7()
141 else if (io7_head->pe > io7->pe) { /* insert at head */ in alloc_io7()
146 if (insp->pe == io7->pe) { in alloc_io7()
148 io7->pe); in alloc_io7()
153 insp->next->pe > io7->pe) { /* insert here */ in alloc_io7()
162 " - adding at head of list\n", io7->pe); in alloc_io7()
183 csrs = IO7_CSRS_KERN(io7->pe, port); in io7_clear_errors()
194 p7csrs = IO7_PORT7_CSRS_KERN(io7->pe); in io7_clear_errors()
212 io7_ioport_csrs *csrs = IO7_CSRS_KERN(io7->pe, port); in io7_init_hose()
240 hose->dense_mem_base = IO7_MEM_PHYS(io7->pe, port); in io7_init_hose()
241 hose->dense_io_base = IO7_IO_PHYS(io7->pe, port); in io7_init_hose()
246 hose->config_space_base = (unsigned long)IO7_CONF_KERN(io7->pe, port); in io7_init_hose()
248 hose->io_space->start = (unsigned long)IO7_IO_KERN(io7->pe, port); in io7_init_hose()
250 hose->io_space->name = mk_resource_name(io7->pe, port, "IO"); in io7_init_hose()
253 hose->mem_space->start = (unsigned long)IO7_MEM_KERN(io7->pe, port); in io7_init_hose()
255 hose->mem_space->name = mk_resource_name(io7->pe, port, "MEM"); in io7_init_hose()
291 hose->sg_isa = iommu_arena_new_node(marvel_cpuid_to_nid(io7->pe), in io7_init_hose()
309 hose->sg_pci = iommu_arena_new_node(marvel_cpuid_to_nid(io7->pe), in io7_init_hose()
342 printk("Initializing IO7 at PID %d\n", io7->pe); in marvel_init_io7()
347 io7->csrs = IO7_PORT7_CSRS_KERN(io7->pe); in marvel_init_io7()
353 io7_ioport_csrs *csrs = IO7_CSRS_KERN(io7->pe, i); in marvel_init_io7()
364 int pe; in marvel_io7_present() local
370 pe = (node->id >> 8) & 0xff; in marvel_io7_present()
371 printk("Found an IO7 at PID %d\n", pe); in marvel_io7_present()
373 alloc_io7(pe); in marvel_io7_present()