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()
98 marvel_find_io7(int pe) in marvel_find_io7() argument
102 for (io7 = io7_head; io7 && io7->pe != pe; io7 = io7->next) in marvel_find_io7()
109 alloc_io7(unsigned int pe) in alloc_io7() argument
115 if (marvel_find_io7(pe)) { in alloc_io7()
116 printk(KERN_WARNING "IO7 at PE %d already allocated!\n", pe); in alloc_io7()
121 io7->pe = pe; in alloc_io7()
135 else if (io7_head->pe > io7->pe) { /* insert at head */ in alloc_io7()
140 if (insp->pe == io7->pe) { in alloc_io7()
142 io7->pe); in alloc_io7()
147 insp->next->pe > io7->pe) { /* insert here */ in alloc_io7()
156 " - adding at head of list\n", io7->pe); in alloc_io7()
177 csrs = IO7_CSRS_KERN(io7->pe, port); in io7_clear_errors()
188 p7csrs = IO7_PORT7_CSRS_KERN(io7->pe); in io7_clear_errors()
206 io7_ioport_csrs *csrs = IO7_CSRS_KERN(io7->pe, port); in io7_init_hose()
234 hose->dense_mem_base = IO7_MEM_PHYS(io7->pe, port); in io7_init_hose()
235 hose->dense_io_base = IO7_IO_PHYS(io7->pe, port); in io7_init_hose()
240 hose->config_space_base = (unsigned long)IO7_CONF_KERN(io7->pe, port); in io7_init_hose()
242 hose->io_space->start = (unsigned long)IO7_IO_KERN(io7->pe, port); in io7_init_hose()
244 hose->io_space->name = mk_resource_name(io7->pe, port, "IO"); in io7_init_hose()
247 hose->mem_space->start = (unsigned long)IO7_MEM_KERN(io7->pe, port); in io7_init_hose()
249 hose->mem_space->name = mk_resource_name(io7->pe, port, "MEM"); in io7_init_hose()
285 hose->sg_isa = iommu_arena_new_node(marvel_cpuid_to_nid(io7->pe), in io7_init_hose()
303 hose->sg_pci = iommu_arena_new_node(marvel_cpuid_to_nid(io7->pe), in io7_init_hose()
336 printk("Initializing IO7 at PID %d\n", io7->pe); in marvel_init_io7()
341 io7->csrs = IO7_PORT7_CSRS_KERN(io7->pe); in marvel_init_io7()
347 io7_ioport_csrs *csrs = IO7_CSRS_KERN(io7->pe, i); in marvel_init_io7()
358 int pe; in marvel_io7_present() local
364 pe = (node->id >> 8) & 0xff; in marvel_io7_present()
365 printk("Found an IO7 at PID %d\n", pe); in marvel_io7_present()
367 alloc_io7(pe); in marvel_io7_present()