Lines Matching refs:pe

55 read_ev7_csr(int pe, unsigned long offset)  in read_ev7_csr()  argument
57 ev7_csr *ev7csr = EV7_CSR_KERN(pe, offset); in read_ev7_csr()
68 write_ev7_csr(int pe, unsigned long offset, unsigned long q) in write_ev7_csr() argument
70 ev7_csr *ev7csr = EV7_CSR_KERN(pe, offset); in write_ev7_csr()
78 mk_resource_name(int pe, int port, char *str) in mk_resource_name() argument
83 sprintf(tmp, "PCI %s PE %d PORT %d", str, pe, port); in mk_resource_name()
100 marvel_find_io7(int pe) in marvel_find_io7() argument
104 for (io7 = io7_head; io7 && io7->pe != pe; io7 = io7->next) in marvel_find_io7()
111 alloc_io7(unsigned int pe) in alloc_io7() argument
117 if (marvel_find_io7(pe)) { in alloc_io7()
118 printk(KERN_WARNING "IO7 at PE %d already allocated!\n", pe); in alloc_io7()
126 io7->pe = pe; in alloc_io7()
140 else if (io7_head->pe > io7->pe) { /* insert at head */ in alloc_io7()
145 if (insp->pe == io7->pe) { in alloc_io7()
147 io7->pe); in alloc_io7()
152 insp->next->pe > io7->pe) { /* insert here */ in alloc_io7()
161 " - adding at head of list\n", io7->pe); in alloc_io7()
182 csrs = IO7_CSRS_KERN(io7->pe, port); in io7_clear_errors()
193 p7csrs = IO7_PORT7_CSRS_KERN(io7->pe); in io7_clear_errors()
211 io7_ioport_csrs *csrs = IO7_CSRS_KERN(io7->pe, port); in io7_init_hose()
239 hose->dense_mem_base = IO7_MEM_PHYS(io7->pe, port); in io7_init_hose()
240 hose->dense_io_base = IO7_IO_PHYS(io7->pe, port); in io7_init_hose()
245 hose->config_space_base = (unsigned long)IO7_CONF_KERN(io7->pe, port); in io7_init_hose()
247 hose->io_space->start = (unsigned long)IO7_IO_KERN(io7->pe, port); in io7_init_hose()
249 hose->io_space->name = mk_resource_name(io7->pe, port, "IO"); in io7_init_hose()
252 hose->mem_space->start = (unsigned long)IO7_MEM_KERN(io7->pe, port); in io7_init_hose()
254 hose->mem_space->name = mk_resource_name(io7->pe, port, "MEM"); in io7_init_hose()
339 printk("Initializing IO7 at PID %d\n", io7->pe); in marvel_init_io7()
344 io7->csrs = IO7_PORT7_CSRS_KERN(io7->pe); in marvel_init_io7()
350 io7_ioport_csrs *csrs = IO7_CSRS_KERN(io7->pe, i); in marvel_init_io7()
361 int pe; in marvel_io7_present() local
367 pe = (node->id >> 8) & 0xff; in marvel_io7_present()
368 printk("Found an IO7 at PID %d\n", pe); in marvel_io7_present()
370 alloc_io7(pe); in marvel_io7_present()