hose 21 arch/alpha/include/asm/agp_backend.h struct pci_controller *hose; hose 298 arch/alpha/include/asm/core_marvel.h struct pci_controller *hose; hose 254 arch/alpha/include/asm/core_mcpcia.h if (__mcpcia_is_mmio(hose)) { \ hose 255 arch/alpha/include/asm/core_mcpcia.h set_hae(hose & 0xffffffff); \ hose 256 arch/alpha/include/asm/core_mcpcia.h hose = hose - MCPCIA_DENSE(4) + MCPCIA_SPARSE(4); \ hose 260 arch/alpha/include/asm/core_mcpcia.h if (__mcpcia_is_mmio(hose)) { \ hose 261 arch/alpha/include/asm/core_mcpcia.h hose = hose - MCPCIA_DENSE(4) + MCPCIA_SPARSE(4); \ hose 273 arch/alpha/include/asm/core_mcpcia.h unsigned long hose = (unsigned long)xaddr & ~MCPCIA_MEM_MASK; hose 278 arch/alpha/include/asm/core_mcpcia.h result = *(vip) ((addr << 5) + hose + 0x00); hose 285 arch/alpha/include/asm/core_mcpcia.h unsigned long hose = (unsigned long)xaddr & ~MCPCIA_MEM_MASK; hose 291 arch/alpha/include/asm/core_mcpcia.h *(vuip) ((addr << 5) + hose + 0x00) = w; hose 297 arch/alpha/include/asm/core_mcpcia.h unsigned long hose = (unsigned long)xaddr & ~MCPCIA_MEM_MASK; hose 302 arch/alpha/include/asm/core_mcpcia.h result = *(vip) ((addr << 5) + hose + 0x08); hose 309 arch/alpha/include/asm/core_mcpcia.h unsigned long hose = (unsigned long)xaddr & ~MCPCIA_MEM_MASK; hose 315 arch/alpha/include/asm/core_mcpcia.h *(vuip) ((addr << 5) + hose + 0x08) = w; hose 46 arch/alpha/include/asm/machvec.h void (*mv_pci_tbi)(struct pci_controller *hose, hose 69 arch/alpha/include/asm/pci.h struct pci_controller *hose = bus->sysdata; hose 70 arch/alpha/include/asm/pci.h return hose->need_domain_info; hose 41 arch/alpha/kernel/console.c struct pci_controller *hose = NULL; hose 49 arch/alpha/kernel/console.c if (!hose) hose 50 arch/alpha/kernel/console.c hose = dev->sysdata; hose 52 arch/alpha/kernel/console.c hose = sel_func(hose, dev->sysdata); hose 56 arch/alpha/kernel/console.c if (!hose || (conswitchp == &vga_con && pci_vga_hose == hose)) hose 60 arch/alpha/kernel/console.c alpha_vga.start += hose->io_space->start; hose 61 arch/alpha/kernel/console.c alpha_vga.end += hose->io_space->start; hose 62 arch/alpha/kernel/console.c request_resource(hose->io_space, &alpha_vga); hose 65 arch/alpha/kernel/console.c pci_vga_hose = hose; hose 77 arch/alpha/kernel/console.c struct pci_controller *hose; hose 84 arch/alpha/kernel/console.c for (hose = hose_head; hose; hose = hose->next) { hose 85 arch/alpha/kernel/console.c if (hose->index == h) break; hose 88 arch/alpha/kernel/console.c if (hose) { hose 90 arch/alpha/kernel/console.c pci_vga_hose = hose; hose 317 arch/alpha/kernel/core_apecs.c apecs_pci_tbi(struct pci_controller *hose, dma_addr_t start, dma_addr_t end) hose 327 arch/alpha/kernel/core_apecs.c struct pci_controller *hose; hose 333 arch/alpha/kernel/core_apecs.c pci_isa_hose = hose = alloc_pci_controller(); hose 334 arch/alpha/kernel/core_apecs.c hose->io_space = &ioport_resource; hose 335 arch/alpha/kernel/core_apecs.c hose->mem_space = &iomem_resource; hose 336 arch/alpha/kernel/core_apecs.c hose->index = 0; hose 338 arch/alpha/kernel/core_apecs.c hose->sparse_mem_base = APECS_SPARSE_MEM - IDENT_ADDR; hose 339 arch/alpha/kernel/core_apecs.c hose->dense_mem_base = APECS_DENSE_MEM - IDENT_ADDR; hose 340 arch/alpha/kernel/core_apecs.c hose->sparse_io_base = APECS_IO - IDENT_ADDR; hose 341 arch/alpha/kernel/core_apecs.c hose->dense_io_base = 0; hose 349 arch/alpha/kernel/core_apecs.c hose->sg_isa = iommu_arena_new(hose, 0x00800000, 0x00800000, hose 351 arch/alpha/kernel/core_apecs.c hose->sg_pci = NULL; hose 359 arch/alpha/kernel/core_apecs.c *(vuip)APECS_IOC_PB2R = hose->sg_isa->dma_base | 0x000c0000; hose 360 arch/alpha/kernel/core_apecs.c *(vuip)APECS_IOC_PM2R = (hose->sg_isa->size - 1) & 0xfff00000; hose 361 arch/alpha/kernel/core_apecs.c *(vuip)APECS_IOC_TB2R = virt_to_phys(hose->sg_isa->ptes) >> 1; hose 363 arch/alpha/kernel/core_apecs.c apecs_pci_tbi(hose, 0, -1); hose 257 arch/alpha/kernel/core_cia.c cia_pci_tbi(struct pci_controller *hose, dma_addr_t start, dma_addr_t end) hose 284 arch/alpha/kernel/core_cia.c cia_pci_tbi_try2(struct pci_controller *hose, hose 449 arch/alpha/kernel/core_cia.c cia_pci_tbi(arena->hose, 0, -1); hose 539 arch/alpha/kernel/core_cia.c alpha_mv.mv_pci_tbi(arena->hose, 0, -1); hose 636 arch/alpha/kernel/core_cia.c struct pci_controller *hose; hose 687 arch/alpha/kernel/core_cia.c pci_isa_hose = hose = alloc_pci_controller(); hose 688 arch/alpha/kernel/core_cia.c hose->io_space = &ioport_resource; hose 689 arch/alpha/kernel/core_cia.c hose->mem_space = &iomem_resource; hose 690 arch/alpha/kernel/core_cia.c hose->index = 0; hose 694 arch/alpha/kernel/core_cia.c hose->mem_space = hae_mem; hose 704 arch/alpha/kernel/core_cia.c hose->sparse_mem_base = CIA_SPARSE_MEM - IDENT_ADDR; hose 705 arch/alpha/kernel/core_cia.c hose->dense_mem_base = CIA_DENSE_MEM - IDENT_ADDR; hose 706 arch/alpha/kernel/core_cia.c hose->sparse_io_base = CIA_IO - IDENT_ADDR; hose 707 arch/alpha/kernel/core_cia.c hose->dense_io_base = 0; hose 709 arch/alpha/kernel/core_cia.c hose->sparse_mem_base = 0; hose 710 arch/alpha/kernel/core_cia.c hose->dense_mem_base = CIA_BW_MEM - IDENT_ADDR; hose 711 arch/alpha/kernel/core_cia.c hose->sparse_io_base = 0; hose 712 arch/alpha/kernel/core_cia.c hose->dense_io_base = CIA_BW_IO - IDENT_ADDR; hose 729 arch/alpha/kernel/core_cia.c hose->sg_pci = NULL; hose 730 arch/alpha/kernel/core_cia.c hose->sg_isa = iommu_arena_new(hose, 0x00800000, 0x00800000, 32768); hose 735 arch/alpha/kernel/core_cia.c *(vip)CIA_IOC_PCI_W0_BASE = hose->sg_isa->dma_base | 3; hose 736 arch/alpha/kernel/core_cia.c *(vip)CIA_IOC_PCI_W0_MASK = (hose->sg_isa->size - 1) & 0xfff00000; hose 737 arch/alpha/kernel/core_cia.c *(vip)CIA_IOC_PCI_T0_BASE = virt_to_phys(hose->sg_isa->ptes) >> 2; hose 261 arch/alpha/kernel/core_irongate.c struct pci_controller *hose; hose 277 arch/alpha/kernel/core_irongate.c pci_isa_hose = hose = alloc_pci_controller(); hose 278 arch/alpha/kernel/core_irongate.c hose->io_space = &ioport_resource; hose 279 arch/alpha/kernel/core_irongate.c hose->mem_space = &iomem_resource; hose 280 arch/alpha/kernel/core_irongate.c hose->index = 0; hose 286 arch/alpha/kernel/core_irongate.c hose->sparse_mem_base = 0; hose 287 arch/alpha/kernel/core_irongate.c hose->sparse_io_base = 0; hose 288 arch/alpha/kernel/core_irongate.c hose->dense_mem_base hose 290 arch/alpha/kernel/core_irongate.c hose->dense_io_base hose 293 arch/alpha/kernel/core_irongate.c hose->sg_isa = hose->sg_pci = NULL; hose 242 arch/alpha/kernel/core_lca.c lca_pci_tbi(struct pci_controller *hose, dma_addr_t start, dma_addr_t end) hose 252 arch/alpha/kernel/core_lca.c struct pci_controller *hose; hose 258 arch/alpha/kernel/core_lca.c pci_isa_hose = hose = alloc_pci_controller(); hose 259 arch/alpha/kernel/core_lca.c hose->io_space = &ioport_resource; hose 260 arch/alpha/kernel/core_lca.c hose->mem_space = &iomem_resource; hose 261 arch/alpha/kernel/core_lca.c hose->index = 0; hose 263 arch/alpha/kernel/core_lca.c hose->sparse_mem_base = LCA_SPARSE_MEM - IDENT_ADDR; hose 264 arch/alpha/kernel/core_lca.c hose->dense_mem_base = LCA_DENSE_MEM - IDENT_ADDR; hose 265 arch/alpha/kernel/core_lca.c hose->sparse_io_base = LCA_IO - IDENT_ADDR; hose 266 arch/alpha/kernel/core_lca.c hose->dense_io_base = 0; hose 278 arch/alpha/kernel/core_lca.c hose->sg_isa = iommu_arena_new(hose, 0x00800000, 0x00800000, hose 280 arch/alpha/kernel/core_lca.c hose->sg_pci = NULL; hose 284 arch/alpha/kernel/core_lca.c *(vulp)LCA_IOC_W_BASE0 = hose->sg_isa->dma_base | (3UL << 32); hose 285 arch/alpha/kernel/core_lca.c *(vulp)LCA_IOC_W_MASK0 = (hose->sg_isa->size - 1) & 0xfff00000; hose 286 arch/alpha/kernel/core_lca.c *(vulp)LCA_IOC_T_BASE0 = virt_to_phys(hose->sg_isa->ptes); hose 294 arch/alpha/kernel/core_lca.c lca_pci_tbi(hose, 0, -1); hose 210 arch/alpha/kernel/core_marvel.c struct pci_controller *hose = alloc_pci_controller(); hose 215 arch/alpha/kernel/core_marvel.c hose->index = hose_index++; /* arbitrary */ hose 225 arch/alpha/kernel/core_marvel.c if (hose->index == 0) hose 226 arch/alpha/kernel/core_marvel.c pci_isa_hose = hose; hose 229 arch/alpha/kernel/core_marvel.c io7_port->hose = hose; hose 230 arch/alpha/kernel/core_marvel.c hose->sysdata = io7_port; hose 232 arch/alpha/kernel/core_marvel.c hose->io_space = alloc_resource(); hose 233 arch/alpha/kernel/core_marvel.c hose->mem_space = alloc_resource(); hose 239 arch/alpha/kernel/core_marvel.c hose->sparse_mem_base = hose->sparse_io_base = 0; hose 240 arch/alpha/kernel/core_marvel.c hose->dense_mem_base = IO7_MEM_PHYS(io7->pe, port); hose 241 arch/alpha/kernel/core_marvel.c hose->dense_io_base = IO7_IO_PHYS(io7->pe, port); hose 246 arch/alpha/kernel/core_marvel.c hose->config_space_base = (unsigned long)IO7_CONF_KERN(io7->pe, port); hose 248 arch/alpha/kernel/core_marvel.c hose->io_space->start = (unsigned long)IO7_IO_KERN(io7->pe, port); hose 249 arch/alpha/kernel/core_marvel.c hose->io_space->end = hose->io_space->start + IO7_IO_SPACE - 1; hose 250 arch/alpha/kernel/core_marvel.c hose->io_space->name = mk_resource_name(io7->pe, port, "IO"); hose 251 arch/alpha/kernel/core_marvel.c hose->io_space->flags = IORESOURCE_IO; hose 253 arch/alpha/kernel/core_marvel.c hose->mem_space->start = (unsigned long)IO7_MEM_KERN(io7->pe, port); hose 254 arch/alpha/kernel/core_marvel.c hose->mem_space->end = hose->mem_space->start + IO7_MEM_SPACE - 1; hose 255 arch/alpha/kernel/core_marvel.c hose->mem_space->name = mk_resource_name(io7->pe, port, "MEM"); hose 256 arch/alpha/kernel/core_marvel.c hose->mem_space->flags = IORESOURCE_MEM; hose 258 arch/alpha/kernel/core_marvel.c if (request_resource(&ioport_resource, hose->io_space) < 0) hose 260 arch/alpha/kernel/core_marvel.c hose->index); hose 261 arch/alpha/kernel/core_marvel.c if (request_resource(&iomem_resource, hose->mem_space) < 0) hose 263 arch/alpha/kernel/core_marvel.c hose->index); hose 286 arch/alpha/kernel/core_marvel.c marvel_pci_tbi(hose, 0, -1); hose 291 arch/alpha/kernel/core_marvel.c hose->sg_isa = iommu_arena_new_node(marvel_cpuid_to_nid(io7->pe), hose 292 arch/alpha/kernel/core_marvel.c hose, 0x00800000, 0x00800000, 0); hose 293 arch/alpha/kernel/core_marvel.c hose->sg_isa->align_entry = 8; /* cache line boundary */ hose 295 arch/alpha/kernel/core_marvel.c hose->sg_isa->dma_base | wbase_m_ena | wbase_m_sg; hose 296 arch/alpha/kernel/core_marvel.c csrs->POx_WMASK[0].csr = (hose->sg_isa->size - 1) & wbase_m_addr; hose 297 arch/alpha/kernel/core_marvel.c csrs->POx_TBASE[0].csr = virt_to_phys(hose->sg_isa->ptes); hose 309 arch/alpha/kernel/core_marvel.c hose->sg_pci = iommu_arena_new_node(marvel_cpuid_to_nid(io7->pe), hose 310 arch/alpha/kernel/core_marvel.c hose, 0xc0000000, 0x40000000, 0); hose 311 arch/alpha/kernel/core_marvel.c hose->sg_pci->align_entry = 8; /* cache line boundary */ hose 313 arch/alpha/kernel/core_marvel.c hose->sg_pci->dma_base | wbase_m_ena | wbase_m_sg; hose 314 arch/alpha/kernel/core_marvel.c csrs->POx_WMASK[2].csr = (hose->sg_pci->size - 1) & wbase_m_addr; hose 315 arch/alpha/kernel/core_marvel.c csrs->POx_TBASE[2].csr = virt_to_phys(hose->sg_pci->ptes); hose 334 arch/alpha/kernel/core_marvel.c marvel_pci_tbi(hose, 0, -1); hose 383 arch/alpha/kernel/core_marvel.c struct pci_controller *hose = NULL; hose 406 arch/alpha/kernel/core_marvel.c hose = io7->ports[port].hose; hose 408 arch/alpha/kernel/core_marvel.c if (hose) { hose 409 arch/alpha/kernel/core_marvel.c printk("Console graphics on hose %d\n", hose->index); hose 410 arch/alpha/kernel/core_marvel.c pci_vga_hose = hose; hose 506 arch/alpha/kernel/core_marvel.c build_conf_addr(struct pci_controller *hose, u8 bus, hose 509 arch/alpha/kernel/core_marvel.c return (hose->config_space_base | (bus << 16) | (devfn << 8) | where); hose 515 arch/alpha/kernel/core_marvel.c struct pci_controller *hose = pbus->sysdata; hose 520 arch/alpha/kernel/core_marvel.c if (!hose) hose 524 arch/alpha/kernel/core_marvel.c io7_port = hose->sysdata; hose 535 arch/alpha/kernel/core_marvel.c addr = build_conf_addr(hose, bus, devfn, where); hose 610 arch/alpha/kernel/core_marvel.c marvel_pci_tbi(struct pci_controller *hose, dma_addr_t start, dma_addr_t end) hose 612 arch/alpha/kernel/core_marvel.c io7_ioport_csrs *csrs = ((struct io7_port *)hose->sysdata)->csrs; hose 689 arch/alpha/kernel/core_marvel.c struct pci_controller *hose; hose 704 arch/alpha/kernel/core_marvel.c for (hose = hose_head; hose; hose = hose->next) { hose 705 arch/alpha/kernel/core_marvel.c if ((addr >> 32) == (hose->mem_space->start >> 32)) hose 708 arch/alpha/kernel/core_marvel.c if (!hose) hose 714 arch/alpha/kernel/core_marvel.c baddr = addr - hose->mem_space->start; hose 729 arch/alpha/kernel/core_marvel.c if (hose->sg_pci && hose 730 arch/alpha/kernel/core_marvel.c baddr >= (unsigned long)hose->sg_pci->dma_base && hose 731 arch/alpha/kernel/core_marvel.c last < (unsigned long)hose->sg_pci->dma_base + hose->sg_pci->size) { hose 736 arch/alpha/kernel/core_marvel.c baddr -= hose->sg_pci->dma_base; hose 737 arch/alpha/kernel/core_marvel.c last -= hose->sg_pci->dma_base; hose 748 arch/alpha/kernel/core_marvel.c ptes = hose->sg_pci->ptes; hose 777 arch/alpha/kernel/core_marvel.c vaddr = baddr + hose->mem_space->start; hose 918 arch/alpha/kernel/core_marvel.c aper->arena = agp->hose->sg_pci; hose 961 arch/alpha/kernel/core_marvel.c io7_ioport_csrs *csrs = ((struct io7_port *)agp->hose->sysdata)->csrs; hose 962 arch/alpha/kernel/core_marvel.c struct io7 *io7 = ((struct io7_port *)agp->hose->sysdata)->io7; hose 1014 arch/alpha/kernel/core_marvel.c agp->hose->index, agp->mode.bits.rate, hose 1072 arch/alpha/kernel/core_marvel.c struct pci_controller *hose; hose 1083 arch/alpha/kernel/core_marvel.c hose = NULL; hose 1091 arch/alpha/kernel/core_marvel.c h = io7->ports[IO7_AGP_PORT].hose; hose 1095 arch/alpha/kernel/core_marvel.c hose = h; hose 1100 arch/alpha/kernel/core_marvel.c if (!hose || !hose->sg_pci) hose 1103 arch/alpha/kernel/core_marvel.c printk("MARVEL - using hose %d as AGP\n", hose->index); hose 1108 arch/alpha/kernel/core_marvel.c csrs = ((struct io7_port *)hose->sysdata)->csrs; hose 1120 arch/alpha/kernel/core_marvel.c agp->hose = hose; hose 88 arch/alpha/kernel/core_mcpcia.c struct pci_controller *hose) hose 91 arch/alpha/kernel/core_mcpcia.c unsigned long mid = MCPCIA_HOSE2MID(hose->index); hose 136 arch/alpha/kernel/core_mcpcia.c struct pci_controller *hose) hose 139 arch/alpha/kernel/core_mcpcia.c unsigned long mid = MCPCIA_HOSE2MID(hose->index); hose 171 arch/alpha/kernel/core_mcpcia.c struct pci_controller *hose, unsigned long *pci_addr, hose 179 arch/alpha/kernel/core_mcpcia.c bus, devfn, hose->index, where, pci_addr, type1)); hose 188 arch/alpha/kernel/core_mcpcia.c addr |= hose->config_space_base; hose 199 arch/alpha/kernel/core_mcpcia.c struct pci_controller *hose = bus->sysdata; hose 203 arch/alpha/kernel/core_mcpcia.c if (mk_conf_addr(bus, devfn, where, hose, &addr, &type1)) hose 207 arch/alpha/kernel/core_mcpcia.c w = conf_read(addr, type1, hose); hose 226 arch/alpha/kernel/core_mcpcia.c struct pci_controller *hose = bus->sysdata; hose 230 arch/alpha/kernel/core_mcpcia.c if (mk_conf_addr(bus, devfn, where, hose, &addr, &type1)) hose 235 arch/alpha/kernel/core_mcpcia.c conf_write(addr, value, type1, hose); hose 246 arch/alpha/kernel/core_mcpcia.c mcpcia_pci_tbi(struct pci_controller *hose, dma_addr_t start, dma_addr_t end) hose 249 arch/alpha/kernel/core_mcpcia.c *(vuip)MCPCIA_SG_TBIA(MCPCIA_HOSE2MID(hose->index)) = 0; hose 291 arch/alpha/kernel/core_mcpcia.c struct pci_controller *hose; hose 295 arch/alpha/kernel/core_mcpcia.c hose = alloc_pci_controller(); hose 297 arch/alpha/kernel/core_mcpcia.c pci_isa_hose = hose; hose 302 arch/alpha/kernel/core_mcpcia.c hose->io_space = io; hose 303 arch/alpha/kernel/core_mcpcia.c hose->mem_space = hae_mem; hose 304 arch/alpha/kernel/core_mcpcia.c hose->sparse_mem_base = MCPCIA_SPARSE(mid) - IDENT_ADDR; hose 305 arch/alpha/kernel/core_mcpcia.c hose->dense_mem_base = MCPCIA_DENSE(mid) - IDENT_ADDR; hose 306 arch/alpha/kernel/core_mcpcia.c hose->sparse_io_base = MCPCIA_IO(mid) - IDENT_ADDR; hose 307 arch/alpha/kernel/core_mcpcia.c hose->dense_io_base = 0; hose 308 arch/alpha/kernel/core_mcpcia.c hose->config_space_base = MCPCIA_CONF(mid); hose 309 arch/alpha/kernel/core_mcpcia.c hose->index = h; hose 344 arch/alpha/kernel/core_mcpcia.c mcpcia_startup_hose(struct pci_controller *hose) hose 346 arch/alpha/kernel/core_mcpcia.c int mid = MCPCIA_HOSE2MID(hose->index); hose 367 arch/alpha/kernel/core_mcpcia.c hose->sg_isa = iommu_arena_new(hose, 0x00800000, 0x00800000, hose 369 arch/alpha/kernel/core_mcpcia.c hose->sg_pci = iommu_arena_new(hose, 0x40000000, hose 376 arch/alpha/kernel/core_mcpcia.c *(vuip)MCPCIA_W0_BASE(mid) = hose->sg_isa->dma_base | 3; hose 377 arch/alpha/kernel/core_mcpcia.c *(vuip)MCPCIA_W0_MASK(mid) = (hose->sg_isa->size - 1) & 0xfff00000; hose 378 arch/alpha/kernel/core_mcpcia.c *(vuip)MCPCIA_T0_BASE(mid) = virt_to_phys(hose->sg_isa->ptes) >> 8; hose 380 arch/alpha/kernel/core_mcpcia.c *(vuip)MCPCIA_W1_BASE(mid) = hose->sg_pci->dma_base | 3; hose 381 arch/alpha/kernel/core_mcpcia.c *(vuip)MCPCIA_W1_MASK(mid) = (hose->sg_pci->size - 1) & 0xfff00000; hose 382 arch/alpha/kernel/core_mcpcia.c *(vuip)MCPCIA_T1_BASE(mid) = virt_to_phys(hose->sg_pci->ptes) >> 8; hose 390 arch/alpha/kernel/core_mcpcia.c mcpcia_pci_tbi(hose, 0, -1); hose 423 arch/alpha/kernel/core_mcpcia.c struct pci_controller *hose; hose 440 arch/alpha/kernel/core_mcpcia.c for (hose = hose_head; hose; hose = hose->next) hose 441 arch/alpha/kernel/core_mcpcia.c mcpcia_startup_hose(hose); hose 520 arch/alpha/kernel/core_mcpcia.c struct pci_controller *hose; hose 551 arch/alpha/kernel/core_mcpcia.c for (hose = hose_head; hose; hose = hose->next, iodpp++) { hose 554 arch/alpha/kernel/core_mcpcia.c hose->index, iodpp->base); hose 594 arch/alpha/kernel/core_mcpcia.c struct pci_controller *hose; hose 595 arch/alpha/kernel/core_mcpcia.c for (hose = hose_head; hose; hose = hose->next) hose 596 arch/alpha/kernel/core_mcpcia.c mcpcia_pci_clr_err(MCPCIA_HOSE2MID(hose->index)); hose 149 arch/alpha/kernel/core_polaris.c struct pci_controller *hose; hose 163 arch/alpha/kernel/core_polaris.c pci_isa_hose = hose = alloc_pci_controller(); hose 164 arch/alpha/kernel/core_polaris.c hose->io_space = &ioport_resource; hose 165 arch/alpha/kernel/core_polaris.c hose->mem_space = &iomem_resource; hose 166 arch/alpha/kernel/core_polaris.c hose->index = 0; hose 168 arch/alpha/kernel/core_polaris.c hose->sparse_mem_base = 0; hose 169 arch/alpha/kernel/core_polaris.c hose->dense_mem_base = POLARIS_DENSE_MEM_BASE - IDENT_ADDR; hose 170 arch/alpha/kernel/core_polaris.c hose->sparse_io_base = 0; hose 171 arch/alpha/kernel/core_polaris.c hose->dense_io_base = POLARIS_DENSE_IO_BASE - IDENT_ADDR; hose 173 arch/alpha/kernel/core_polaris.c hose->sg_isa = hose->sg_pci = NULL; hose 346 arch/alpha/kernel/core_t2.c t2_sg_map_window2(struct pci_controller *hose, hose 354 arch/alpha/kernel/core_t2.c hose->sg_isa = iommu_arena_new(hose, base, length, SMP_CACHE_BYTES); hose 355 arch/alpha/kernel/core_t2.c hose->sg_pci = NULL; hose 361 arch/alpha/kernel/core_t2.c *(vulp)T2_TBASE2 = virt_to_phys(hose->sg_isa->ptes) >> 1; hose 364 arch/alpha/kernel/core_t2.c t2_pci_tbi(hose, 0, -1); /* flush TLB all */ hose 408 arch/alpha/kernel/core_t2.c struct pci_controller *hose; hose 435 arch/alpha/kernel/core_t2.c pci_isa_hose = hose = alloc_pci_controller(); hose 436 arch/alpha/kernel/core_t2.c hose->io_space = &ioport_resource; hose 443 arch/alpha/kernel/core_t2.c hose->mem_space = hae_mem; hose 444 arch/alpha/kernel/core_t2.c hose->index = 0; hose 446 arch/alpha/kernel/core_t2.c hose->sparse_mem_base = T2_SPARSE_MEM - IDENT_ADDR; hose 447 arch/alpha/kernel/core_t2.c hose->dense_mem_base = T2_DENSE_MEM - IDENT_ADDR; hose 448 arch/alpha/kernel/core_t2.c hose->sparse_io_base = T2_IO - IDENT_ADDR; hose 449 arch/alpha/kernel/core_t2.c hose->dense_io_base = 0; hose 461 arch/alpha/kernel/core_t2.c t2_sg_map_window2(hose, T2_ISA_SG_START, T2_ISA_SG_LENGTH); hose 506 arch/alpha/kernel/core_t2.c t2_pci_tbi(struct pci_controller *hose, dma_addr_t start, dma_addr_t end) hose 119 arch/alpha/kernel/core_titan.c struct pci_controller *hose = pbus->sysdata; hose 132 arch/alpha/kernel/core_titan.c addr |= hose->config_space_base; hose 203 arch/alpha/kernel/core_titan.c titan_pci_tbi(struct pci_controller *hose, dma_addr_t start, dma_addr_t end) hose 206 arch/alpha/kernel/core_titan.c (hose->index & 1) ? TITAN_pachip1 : TITAN_pachip0; hose 213 arch/alpha/kernel/core_titan.c if (hose->index & 2) hose 250 arch/alpha/kernel/core_titan.c struct pci_controller *hose; hose 252 arch/alpha/kernel/core_titan.c hose = alloc_pci_controller(); hose 254 arch/alpha/kernel/core_titan.c pci_isa_hose = hose; hose 255 arch/alpha/kernel/core_titan.c hose->io_space = alloc_resource(); hose 256 arch/alpha/kernel/core_titan.c hose->mem_space = alloc_resource(); hose 265 arch/alpha/kernel/core_titan.c hose->sparse_mem_base = 0; hose 266 arch/alpha/kernel/core_titan.c hose->sparse_io_base = 0; hose 267 arch/alpha/kernel/core_titan.c hose->dense_mem_base hose 269 arch/alpha/kernel/core_titan.c hose->dense_io_base hose 272 arch/alpha/kernel/core_titan.c hose->config_space_base = TITAN_CONF(index); hose 273 arch/alpha/kernel/core_titan.c hose->index = index; hose 275 arch/alpha/kernel/core_titan.c hose->io_space->start = TITAN_IO(index) - TITAN_IO_BIAS; hose 276 arch/alpha/kernel/core_titan.c hose->io_space->end = hose->io_space->start + TITAN_IO_SPACE - 1; hose 277 arch/alpha/kernel/core_titan.c hose->io_space->name = pci_io_names[index]; hose 278 arch/alpha/kernel/core_titan.c hose->io_space->flags = IORESOURCE_IO; hose 280 arch/alpha/kernel/core_titan.c hose->mem_space->start = TITAN_MEM(index) - TITAN_MEM_BIAS; hose 281 arch/alpha/kernel/core_titan.c hose->mem_space->end = hose->mem_space->start + 0xffffffff; hose 282 arch/alpha/kernel/core_titan.c hose->mem_space->name = pci_mem_names[index]; hose 283 arch/alpha/kernel/core_titan.c hose->mem_space->flags = IORESOURCE_MEM; hose 285 arch/alpha/kernel/core_titan.c if (request_resource(&ioport_resource, hose->io_space) < 0) hose 287 arch/alpha/kernel/core_titan.c if (request_resource(&iomem_resource, hose->mem_space) < 0) hose 319 arch/alpha/kernel/core_titan.c hose->sg_isa = iommu_arena_new(hose, 0x00800000, 0x00800000, hose 321 arch/alpha/kernel/core_titan.c hose->sg_isa->align_entry = 8; /* 64KB for ISA */ hose 323 arch/alpha/kernel/core_titan.c hose->sg_pci = iommu_arena_new(hose, 0xc0000000, 0x40000000, hose 325 arch/alpha/kernel/core_titan.c hose->sg_pci->align_entry = 4; /* Titan caches 4 PTEs at a time */ hose 327 arch/alpha/kernel/core_titan.c port->wsba[0].csr = hose->sg_isa->dma_base | 3; hose 328 arch/alpha/kernel/core_titan.c port->wsm[0].csr = (hose->sg_isa->size - 1) & 0xfff00000; hose 329 arch/alpha/kernel/core_titan.c port->tba[0].csr = virt_to_phys(hose->sg_isa->ptes); hose 335 arch/alpha/kernel/core_titan.c port->wsba[2].csr = hose->sg_pci->dma_base | 3; hose 336 arch/alpha/kernel/core_titan.c port->wsm[2].csr = (hose->sg_pci->size - 1) & 0xfff00000; hose 337 arch/alpha/kernel/core_titan.c port->tba[2].csr = virt_to_phys(hose->sg_pci->ptes); hose 350 arch/alpha/kernel/core_titan.c titan_pci_tbi(hose, 0, -1); hose 461 arch/alpha/kernel/core_titan.c struct pci_controller *hose; hose 480 arch/alpha/kernel/core_titan.c for (hose = hose_head; hose; hose = hose->next) hose 481 arch/alpha/kernel/core_titan.c if (hose->index == h) hose 483 arch/alpha/kernel/core_titan.c if (!hose) hose 498 arch/alpha/kernel/core_titan.c if (hose->sg_pci && hose 499 arch/alpha/kernel/core_titan.c baddr >= (unsigned long)hose->sg_pci->dma_base && hose 500 arch/alpha/kernel/core_titan.c last < (unsigned long)hose->sg_pci->dma_base + hose->sg_pci->size){ hose 505 arch/alpha/kernel/core_titan.c baddr -= hose->sg_pci->dma_base; hose 506 arch/alpha/kernel/core_titan.c last -= hose->sg_pci->dma_base; hose 519 arch/alpha/kernel/core_titan.c ptes = hose->sg_pci->ptes; hose 602 arch/alpha/kernel/core_titan.c aper->arena = agp->hose->sg_pci; hose 735 arch/alpha/kernel/core_titan.c struct pci_controller *hose; hose 754 arch/alpha/kernel/core_titan.c for (hose = hose_head; hose; hose = hose->next) hose 755 arch/alpha/kernel/core_titan.c if (hose->index == hosenum) hose 758 arch/alpha/kernel/core_titan.c if (!hose || !hose->sg_pci) hose 771 arch/alpha/kernel/core_titan.c agp->hose = hose; hose 95 arch/alpha/kernel/core_tsunami.c struct pci_controller *hose = pbus->sysdata; hose 108 arch/alpha/kernel/core_tsunami.c addr |= hose->config_space_base; hose 178 arch/alpha/kernel/core_tsunami.c tsunami_pci_tbi(struct pci_controller *hose, dma_addr_t start, dma_addr_t end) hose 180 arch/alpha/kernel/core_tsunami.c tsunami_pchip *pchip = hose->index ? TSUNAMI_pchip1 : TSUNAMI_pchip0; hose 249 arch/alpha/kernel/core_tsunami.c struct pci_controller *hose; hose 254 arch/alpha/kernel/core_tsunami.c hose = alloc_pci_controller(); hose 256 arch/alpha/kernel/core_tsunami.c pci_isa_hose = hose; hose 257 arch/alpha/kernel/core_tsunami.c hose->io_space = alloc_resource(); hose 258 arch/alpha/kernel/core_tsunami.c hose->mem_space = alloc_resource(); hose 264 arch/alpha/kernel/core_tsunami.c hose->sparse_mem_base = 0; hose 265 arch/alpha/kernel/core_tsunami.c hose->sparse_io_base = 0; hose 266 arch/alpha/kernel/core_tsunami.c hose->dense_mem_base hose 268 arch/alpha/kernel/core_tsunami.c hose->dense_io_base hose 271 arch/alpha/kernel/core_tsunami.c hose->config_space_base = TSUNAMI_CONF(index); hose 272 arch/alpha/kernel/core_tsunami.c hose->index = index; hose 274 arch/alpha/kernel/core_tsunami.c hose->io_space->start = TSUNAMI_IO(index) - TSUNAMI_IO_BIAS; hose 275 arch/alpha/kernel/core_tsunami.c hose->io_space->end = hose->io_space->start + TSUNAMI_IO_SPACE - 1; hose 276 arch/alpha/kernel/core_tsunami.c hose->io_space->name = pci_io_names[index]; hose 277 arch/alpha/kernel/core_tsunami.c hose->io_space->flags = IORESOURCE_IO; hose 279 arch/alpha/kernel/core_tsunami.c hose->mem_space->start = TSUNAMI_MEM(index) - TSUNAMI_MEM_BIAS; hose 280 arch/alpha/kernel/core_tsunami.c hose->mem_space->end = hose->mem_space->start + 0xffffffff; hose 281 arch/alpha/kernel/core_tsunami.c hose->mem_space->name = pci_mem_names[index]; hose 282 arch/alpha/kernel/core_tsunami.c hose->mem_space->flags = IORESOURCE_MEM; hose 284 arch/alpha/kernel/core_tsunami.c if (request_resource(&ioport_resource, hose->io_space) < 0) hose 286 arch/alpha/kernel/core_tsunami.c if (request_resource(&iomem_resource, hose->mem_space) < 0) hose 322 arch/alpha/kernel/core_tsunami.c hose->sg_isa = iommu_arena_new(hose, 0x00800000, 0x00800000, hose 325 arch/alpha/kernel/core_tsunami.c hose->sg_isa->align_entry = 4; hose 327 arch/alpha/kernel/core_tsunami.c hose->sg_pci = iommu_arena_new(hose, 0x40000000, hose 330 arch/alpha/kernel/core_tsunami.c hose->sg_pci->align_entry = 4; /* Tsunami caches 4 PTEs at a time */ hose 335 arch/alpha/kernel/core_tsunami.c pchip->wsba[0].csr = hose->sg_isa->dma_base | 3; hose 336 arch/alpha/kernel/core_tsunami.c pchip->wsm[0].csr = (hose->sg_isa->size - 1) & 0xfff00000; hose 337 arch/alpha/kernel/core_tsunami.c pchip->tba[0].csr = virt_to_phys(hose->sg_isa->ptes); hose 339 arch/alpha/kernel/core_tsunami.c pchip->wsba[1].csr = hose->sg_pci->dma_base | 3; hose 340 arch/alpha/kernel/core_tsunami.c pchip->wsm[1].csr = (hose->sg_pci->size - 1) & 0xfff00000; hose 341 arch/alpha/kernel/core_tsunami.c pchip->tba[1].csr = virt_to_phys(hose->sg_pci->ptes); hose 352 arch/alpha/kernel/core_tsunami.c tsunami_pci_tbi(hose, 0, -1); hose 65 arch/alpha/kernel/core_wildfire.c struct pci_controller *hose; hose 68 arch/alpha/kernel/core_wildfire.c hose = alloc_pci_controller(); hose 69 arch/alpha/kernel/core_wildfire.c hose->io_space = alloc_resource(); hose 70 arch/alpha/kernel/core_wildfire.c hose->mem_space = alloc_resource(); hose 73 arch/alpha/kernel/core_wildfire.c hose->sparse_mem_base = 0; hose 74 arch/alpha/kernel/core_wildfire.c hose->sparse_io_base = 0; hose 75 arch/alpha/kernel/core_wildfire.c hose->dense_mem_base = WILDFIRE_MEM(qbbno, hoseno); hose 76 arch/alpha/kernel/core_wildfire.c hose->dense_io_base = WILDFIRE_IO(qbbno, hoseno); hose 78 arch/alpha/kernel/core_wildfire.c hose->config_space_base = WILDFIRE_CONF(qbbno, hoseno); hose 79 arch/alpha/kernel/core_wildfire.c hose->index = (qbbno << 3) + hoseno; hose 81 arch/alpha/kernel/core_wildfire.c hose->io_space->start = WILDFIRE_IO(qbbno, hoseno) - WILDFIRE_IO_BIAS; hose 82 arch/alpha/kernel/core_wildfire.c hose->io_space->end = hose->io_space->start + WILDFIRE_IO_SPACE - 1; hose 83 arch/alpha/kernel/core_wildfire.c hose->io_space->name = pci_io_names[hoseno]; hose 84 arch/alpha/kernel/core_wildfire.c hose->io_space->flags = IORESOURCE_IO; hose 86 arch/alpha/kernel/core_wildfire.c hose->mem_space->start = WILDFIRE_MEM(qbbno, hoseno)-WILDFIRE_MEM_BIAS; hose 87 arch/alpha/kernel/core_wildfire.c hose->mem_space->end = hose->mem_space->start + 0xffffffff; hose 88 arch/alpha/kernel/core_wildfire.c hose->mem_space->name = pci_mem_names[hoseno]; hose 89 arch/alpha/kernel/core_wildfire.c hose->mem_space->flags = IORESOURCE_MEM; hose 91 arch/alpha/kernel/core_wildfire.c if (request_resource(&ioport_resource, hose->io_space) < 0) hose 94 arch/alpha/kernel/core_wildfire.c if (request_resource(&iomem_resource, hose->mem_space) < 0) hose 114 arch/alpha/kernel/core_wildfire.c hose->sg_isa = iommu_arena_new(hose, 0x00800000, 0x00800000, hose 116 arch/alpha/kernel/core_wildfire.c hose->sg_pci = iommu_arena_new(hose, 0xc0000000, 0x08000000, hose 121 arch/alpha/kernel/core_wildfire.c pci->pci_window[0].wbase.csr = hose->sg_isa->dma_base | 3; hose 122 arch/alpha/kernel/core_wildfire.c pci->pci_window[0].wmask.csr = (hose->sg_isa->size - 1) & 0xfff00000; hose 123 arch/alpha/kernel/core_wildfire.c pci->pci_window[0].tbase.csr = virt_to_phys(hose->sg_isa->ptes); hose 133 arch/alpha/kernel/core_wildfire.c pci->pci_window[3].wbase.csr = hose->sg_pci->dma_base | 3; hose 134 arch/alpha/kernel/core_wildfire.c pci->pci_window[3].wmask.csr = (hose->sg_pci->size - 1) & 0xfff00000; hose 135 arch/alpha/kernel/core_wildfire.c pci->pci_window[3].tbase.csr = virt_to_phys(hose->sg_pci->ptes); hose 137 arch/alpha/kernel/core_wildfire.c wildfire_pci_tbi(hose, 0, 0); /* Flush TLB at the end. */ hose 347 arch/alpha/kernel/core_wildfire.c wildfire_pci_tbi(struct pci_controller *hose, dma_addr_t start, dma_addr_t end) hose 349 arch/alpha/kernel/core_wildfire.c int qbbno = hose->index >> 3; hose 350 arch/alpha/kernel/core_wildfire.c int hoseno = hose->index & 7; hose 361 arch/alpha/kernel/core_wildfire.c struct pci_controller *hose = pbus->sysdata; hose 374 arch/alpha/kernel/core_wildfire.c addr |= hose->config_space_base; hose 34 arch/alpha/kernel/pci-noop.c struct pci_controller *hose; hose 36 arch/alpha/kernel/pci-noop.c hose = memblock_alloc(sizeof(*hose), SMP_CACHE_BYTES); hose 37 arch/alpha/kernel/pci-noop.c if (!hose) hose 39 arch/alpha/kernel/pci-noop.c sizeof(*hose)); hose 41 arch/alpha/kernel/pci-noop.c *hose_tail = hose; hose 42 arch/alpha/kernel/pci-noop.c hose_tail = &hose->next; hose 44 arch/alpha/kernel/pci-noop.c return hose; hose 62 arch/alpha/kernel/pci-noop.c struct pci_controller *hose; hose 66 arch/alpha/kernel/pci-noop.c for (hose = hose_head; hose; hose = hose->next) hose 67 arch/alpha/kernel/pci-noop.c if (hose->index == bus) hose 69 arch/alpha/kernel/pci-noop.c if (!hose) hose 74 arch/alpha/kernel/pci-noop.c hose = pci_isa_hose; hose 81 arch/alpha/kernel/pci-noop.c return hose->index; hose 83 arch/alpha/kernel/pci-noop.c return hose->sparse_mem_base; hose 85 arch/alpha/kernel/pci-noop.c return hose->dense_mem_base; hose 87 arch/alpha/kernel/pci-noop.c return hose->sparse_io_base; hose 89 arch/alpha/kernel/pci-noop.c return hose->dense_io_base; hose 91 arch/alpha/kernel/pci-noop.c return hose->bus->number; hose 18 arch/alpha/kernel/pci-sysfs.c static int hose_mmap_page_range(struct pci_controller *hose, hose 25 arch/alpha/kernel/pci-sysfs.c base = sparse ? hose->sparse_mem_base : hose->dense_mem_base; hose 27 arch/alpha/kernel/pci-sysfs.c base = sparse ? hose->sparse_io_base : hose->dense_io_base; hose 138 arch/alpha/kernel/pci-sysfs.c struct pci_controller *hose = pdev->sysdata; hose 148 arch/alpha/kernel/pci-sysfs.c dense_offset = (long)(hose->dense_mem_base - hose->sparse_mem_base); hose 176 arch/alpha/kernel/pci-sysfs.c struct pci_controller *hose = pdev->sysdata; hose 183 arch/alpha/kernel/pci-sysfs.c sparse_base = hose->sparse_mem_base; hose 184 arch/alpha/kernel/pci-sysfs.c dense_base = hose->dense_mem_base; hose 191 arch/alpha/kernel/pci-sysfs.c sparse_base = hose->sparse_io_base; hose 192 arch/alpha/kernel/pci-sysfs.c dense_base = hose->dense_io_base; hose 252 arch/alpha/kernel/pci-sysfs.c static int __legacy_mmap_fits(struct pci_controller *hose, hose 267 arch/alpha/kernel/pci-sysfs.c hose->index, size); hose 271 arch/alpha/kernel/pci-sysfs.c static inline int has_sparse(struct pci_controller *hose, hose 276 arch/alpha/kernel/pci-sysfs.c base = (mmap_type == pci_mmap_mem) ? hose->sparse_mem_base : hose 277 arch/alpha/kernel/pci-sysfs.c hose->sparse_io_base; hose 285 arch/alpha/kernel/pci-sysfs.c struct pci_controller *hose = bus->sysdata; hose 286 arch/alpha/kernel/pci-sysfs.c int sparse = has_sparse(hose, mmap_type); hose 291 arch/alpha/kernel/pci-sysfs.c if (!__legacy_mmap_fits(hose, vma, res_size, sparse)) hose 294 arch/alpha/kernel/pci-sysfs.c return hose_mmap_page_range(hose, vma, mmap_type, sparse); hose 306 arch/alpha/kernel/pci-sysfs.c struct pci_controller *hose = bus->sysdata; hose 308 arch/alpha/kernel/pci-sysfs.c if (!has_sparse(hose, mmap_type)) hose 324 arch/alpha/kernel/pci-sysfs.c struct pci_controller *hose = bus->sysdata; hose 326 arch/alpha/kernel/pci-sysfs.c port += hose->io_space->start; hose 348 arch/alpha/kernel/pci-sysfs.c struct pci_controller *hose = bus->sysdata; hose 350 arch/alpha/kernel/pci-sysfs.c port += hose->io_space->start; hose 99 arch/alpha/kernel/pci.c struct pci_controller *hose = dev->sysdata; hose 100 arch/alpha/kernel/pci.c struct pci_iommu_arena *pci = hose->sg_pci; hose 131 arch/alpha/kernel/pci.c struct pci_controller *hose = dev->sysdata; hose 137 arch/alpha/kernel/pci.c if (start - hose->io_space->start < PCIBIOS_MIN_IO) hose 138 arch/alpha/kernel/pci.c start = PCIBIOS_MIN_IO + hose->io_space->start; hose 148 arch/alpha/kernel/pci.c if (start - hose->mem_space->start < PCIBIOS_MIN_MEM) hose 149 arch/alpha/kernel/pci.c start = PCIBIOS_MIN_MEM + hose->mem_space->start; hose 170 arch/alpha/kernel/pci.c if (hose->sparse_mem_base && size <= 7 * 16*MB) { hose 324 arch/alpha/kernel/pci.c struct pci_controller *hose; hose 335 arch/alpha/kernel/pci.c for (next_busno = 0, hose = hose_head; hose; hose = hose->next) { hose 336 arch/alpha/kernel/pci.c sg_base = hose->sg_pci ? hose->sg_pci->dma_base : ~0; hose 341 arch/alpha/kernel/pci.c end = hose->mem_space->start + pci_mem_end; hose 342 arch/alpha/kernel/pci.c if (hose->mem_space->end > end) hose 343 arch/alpha/kernel/pci.c hose->mem_space->end = end; hose 346 arch/alpha/kernel/pci.c pci_add_resource_offset(&resources, hose->io_space, hose 347 arch/alpha/kernel/pci.c hose->io_space->start); hose 348 arch/alpha/kernel/pci.c pci_add_resource_offset(&resources, hose->mem_space, hose 349 arch/alpha/kernel/pci.c hose->mem_space->start); hose 357 arch/alpha/kernel/pci.c bridge->sysdata = hose; hose 369 arch/alpha/kernel/pci.c bus = hose->bus = bridge->bus; hose 370 arch/alpha/kernel/pci.c hose->need_domain_info = need_domain_info; hose 383 arch/alpha/kernel/pci.c for (hose = hose_head; hose; hose = hose->next) { hose 384 arch/alpha/kernel/pci.c bus = hose->bus; hose 393 arch/alpha/kernel/pci.c struct pci_controller *hose; hose 395 arch/alpha/kernel/pci.c hose = memblock_alloc(sizeof(*hose), SMP_CACHE_BYTES); hose 396 arch/alpha/kernel/pci.c if (!hose) hose 398 arch/alpha/kernel/pci.c sizeof(*hose)); hose 400 arch/alpha/kernel/pci.c *hose_tail = hose; hose 401 arch/alpha/kernel/pci.c hose_tail = &hose->next; hose 403 arch/alpha/kernel/pci.c return hose; hose 425 arch/alpha/kernel/pci.c struct pci_controller *hose; hose 430 arch/alpha/kernel/pci.c for(hose = hose_head; hose; hose = hose->next) hose 431 arch/alpha/kernel/pci.c if (hose->index == bus) break; hose 432 arch/alpha/kernel/pci.c if (!hose) return -ENODEV; hose 436 arch/alpha/kernel/pci.c hose = pci_isa_hose; hose 441 arch/alpha/kernel/pci.c hose = dev->sysdata; hose 448 arch/alpha/kernel/pci.c return hose->index; hose 450 arch/alpha/kernel/pci.c return hose->sparse_mem_base; hose 452 arch/alpha/kernel/pci.c return hose->dense_mem_base; hose 454 arch/alpha/kernel/pci.c return hose->sparse_io_base; hose 456 arch/alpha/kernel/pci.c return hose->dense_io_base; hose 458 arch/alpha/kernel/pci.c return hose->bus->number; hose 136 arch/alpha/kernel/pci_impl.h struct pci_controller *hose; hose 59 arch/alpha/kernel/pci_iommu.c iommu_arena_new_node(int nid, struct pci_controller *hose, dma_addr_t base, hose 113 arch/alpha/kernel/pci_iommu.c arena->hose = hose; hose 126 arch/alpha/kernel/pci_iommu.c iommu_arena_new(struct pci_controller *hose, dma_addr_t base, hose 129 arch/alpha/kernel/pci_iommu.c return iommu_arena_new_node(0, hose, base, window_size, align); hose 176 arch/alpha/kernel/pci_iommu.c alpha_mv.mv_pci_tbi(arena->hose, 0, -1); hose 267 arch/alpha/kernel/pci_iommu.c struct pci_controller *hose = pdev ? pdev->sysdata : pci_isa_hose; hose 309 arch/alpha/kernel/pci_iommu.c arena = hose->sg_pci; hose 311 arch/alpha/kernel/pci_iommu.c arena = hose->sg_isa; hose 389 arch/alpha/kernel/pci_iommu.c struct pci_controller *hose = pdev ? pdev->sysdata : pci_isa_hose; hose 411 arch/alpha/kernel/pci_iommu.c arena = hose->sg_pci; hose 413 arch/alpha/kernel/pci_iommu.c arena = hose->sg_isa; hose 434 arch/alpha/kernel/pci_iommu.c alpha_mv.mv_pci_tbi(hose, dma_addr, dma_addr + size - 1); hose 671 arch/alpha/kernel/pci_iommu.c struct pci_controller *hose; hose 697 arch/alpha/kernel/pci_iommu.c hose = pdev ? pdev->sysdata : pci_isa_hose; hose 699 arch/alpha/kernel/pci_iommu.c arena = hose->sg_pci; hose 701 arch/alpha/kernel/pci_iommu.c arena = hose->sg_isa; hose 705 arch/alpha/kernel/pci_iommu.c hose = NULL; hose 749 arch/alpha/kernel/pci_iommu.c struct pci_controller *hose; hose 760 arch/alpha/kernel/pci_iommu.c hose = pdev ? pdev->sysdata : pci_isa_hose; hose 762 arch/alpha/kernel/pci_iommu.c arena = hose->sg_pci; hose 764 arch/alpha/kernel/pci_iommu.c arena = hose->sg_isa; hose 812 arch/alpha/kernel/pci_iommu.c alpha_mv.mv_pci_tbi(hose, fbeg, fend); hose 825 arch/alpha/kernel/pci_iommu.c struct pci_controller *hose; hose 837 arch/alpha/kernel/pci_iommu.c hose = pdev ? pdev->sysdata : pci_isa_hose; hose 838 arch/alpha/kernel/pci_iommu.c arena = hose->sg_isa; hose 841 arch/alpha/kernel/pci_iommu.c arena = hose->sg_pci; hose 247 arch/alpha/kernel/setup.c struct pci_controller *hose; hose 248 arch/alpha/kernel/setup.c for (hose = hose_head; hose; hose = hose->next) hose 249 arch/alpha/kernel/setup.c if (hose->index == 0) { hose 250 arch/alpha/kernel/setup.c io = hose->io_space; hose 389 arch/alpha/kernel/sys_dp264.c struct pci_controller *hose = dev->sysdata; hose 393 arch/alpha/kernel/sys_dp264.c irq += 16 * hose->index; hose 430 arch/alpha/kernel/sys_dp264.c struct pci_controller *hose = dev->sysdata; hose 437 arch/alpha/kernel/sys_dp264.c else if (hose->index == 1 && PCI_SLOT(dev->bus->self->devfn) == 8) { hose 443 arch/alpha/kernel/sys_dp264.c if (hose->index == 1 && hose 496 arch/alpha/kernel/sys_dp264.c struct pci_controller *hose = dev->sysdata; hose 500 arch/alpha/kernel/sys_dp264.c irq += 16 * hose->index; hose 165 arch/alpha/kernel/sys_eiger.c struct pci_controller *hose = dev->sysdata; hose 184 arch/alpha/kernel/sys_eiger.c if (hose->index == 0 hose 186 arch/alpha/kernel/sys_jensen.c struct pci_controller *hose; hose 196 arch/alpha/kernel/sys_jensen.c pci_isa_hose = hose = alloc_pci_controller(); hose 197 arch/alpha/kernel/sys_jensen.c hose->io_space = &ioport_resource; hose 198 arch/alpha/kernel/sys_jensen.c hose->mem_space = &iomem_resource; hose 199 arch/alpha/kernel/sys_jensen.c hose->index = 0; hose 201 arch/alpha/kernel/sys_jensen.c hose->sparse_mem_base = EISA_MEM - IDENT_ADDR; hose 202 arch/alpha/kernel/sys_jensen.c hose->dense_mem_base = 0; hose 203 arch/alpha/kernel/sys_jensen.c hose->sparse_io_base = EISA_IO - IDENT_ADDR; hose 204 arch/alpha/kernel/sys_jensen.c hose->dense_io_base = 0; hose 206 arch/alpha/kernel/sys_jensen.c hose->sg_isa = hose->sg_pci = NULL; hose 323 arch/alpha/kernel/sys_marvel.c struct pci_controller *hose = dev->sysdata; hose 324 arch/alpha/kernel/sys_marvel.c struct io7_port *io7_port = hose->sysdata; hose 354 arch/alpha/kernel/sys_marvel.c hose->index); hose 208 arch/alpha/kernel/sys_nautilus.c struct pci_controller *hose = hose_head; hose 224 arch/alpha/kernel/sys_nautilus.c bridge->sysdata = hose; hose 237 arch/alpha/kernel/sys_nautilus.c bus = hose->bus = bridge->bus; hose 48 arch/alpha/kernel/sys_rawhide.c rawhide_update_irq_hw(int hose, int mask) hose 50 arch/alpha/kernel/sys_rawhide.c *(vuip)MCPCIA_INT_MASK0(MCPCIA_HOSE2MID(hose)) = mask; hose 52 arch/alpha/kernel/sys_rawhide.c *(vuip)MCPCIA_INT_MASK0(MCPCIA_HOSE2MID(hose)); hose 61 arch/alpha/kernel/sys_rawhide.c unsigned int mask, hose; hose 65 arch/alpha/kernel/sys_rawhide.c hose = irq / 24; hose 66 arch/alpha/kernel/sys_rawhide.c if (!hose_exists(hose)) /* if hose non-existent, exit */ hose 69 arch/alpha/kernel/sys_rawhide.c irq -= hose * 24; hose 73 arch/alpha/kernel/sys_rawhide.c mask |= cached_irq_masks[hose]; hose 74 arch/alpha/kernel/sys_rawhide.c cached_irq_masks[hose] = mask; hose 75 arch/alpha/kernel/sys_rawhide.c rawhide_update_irq_hw(hose, mask); hose 82 arch/alpha/kernel/sys_rawhide.c unsigned int mask, hose; hose 86 arch/alpha/kernel/sys_rawhide.c hose = irq / 24; hose 87 arch/alpha/kernel/sys_rawhide.c if (!hose_exists(hose)) /* if hose non-existent, exit */ hose 90 arch/alpha/kernel/sys_rawhide.c irq -= hose * 24; hose 91 arch/alpha/kernel/sys_rawhide.c mask = ~(1 << irq) | hose_irq_masks[hose]; hose 94 arch/alpha/kernel/sys_rawhide.c mask &= cached_irq_masks[hose]; hose 95 arch/alpha/kernel/sys_rawhide.c cached_irq_masks[hose] = mask; hose 96 arch/alpha/kernel/sys_rawhide.c rawhide_update_irq_hw(hose, mask); hose 103 arch/alpha/kernel/sys_rawhide.c unsigned int mask, mask1, hose; hose 107 arch/alpha/kernel/sys_rawhide.c hose = irq / 24; hose 108 arch/alpha/kernel/sys_rawhide.c if (!hose_exists(hose)) /* if hose non-existent, exit */ hose 111 arch/alpha/kernel/sys_rawhide.c irq -= hose * 24; hose 113 arch/alpha/kernel/sys_rawhide.c mask = ~mask1 | hose_irq_masks[hose]; hose 117 arch/alpha/kernel/sys_rawhide.c mask &= cached_irq_masks[hose]; hose 118 arch/alpha/kernel/sys_rawhide.c cached_irq_masks[hose] = mask; hose 119 arch/alpha/kernel/sys_rawhide.c rawhide_update_irq_hw(hose, mask); hose 122 arch/alpha/kernel/sys_rawhide.c *(vuip)MCPCIA_INT_REQ(MCPCIA_HOSE2MID(hose)) = mask1; hose 165 arch/alpha/kernel/sys_rawhide.c struct pci_controller *hose; hose 173 arch/alpha/kernel/sys_rawhide.c for (hose = hose_head; hose; hose = hose->next) { hose 174 arch/alpha/kernel/sys_rawhide.c unsigned int h = hose->index; hose 238 arch/alpha/kernel/sys_rawhide.c struct pci_controller *hose = dev->sysdata; hose 241 arch/alpha/kernel/sys_rawhide.c irq += 24 * hose->index; hose 308 arch/alpha/kernel/sys_wildfire.c struct pci_controller *hose = dev->sysdata; hose 312 arch/alpha/kernel/sys_wildfire.c int qbbno = hose->index >> 3; hose 313 arch/alpha/kernel/sys_wildfire.c int pcano = (hose->index >> 1) & 3; hose 108 arch/microblaze/include/asm/pci-bridge.h extern int early_read_config_byte(struct pci_controller *hose, int bus, hose 110 arch/microblaze/include/asm/pci-bridge.h extern int early_read_config_word(struct pci_controller *hose, int bus, hose 112 arch/microblaze/include/asm/pci-bridge.h extern int early_read_config_dword(struct pci_controller *hose, int bus, hose 114 arch/microblaze/include/asm/pci-bridge.h extern int early_write_config_byte(struct pci_controller *hose, int bus, hose 116 arch/microblaze/include/asm/pci-bridge.h extern int early_write_config_word(struct pci_controller *hose, int bus, hose 118 arch/microblaze/include/asm/pci-bridge.h extern int early_write_config_dword(struct pci_controller *hose, int bus, hose 121 arch/microblaze/include/asm/pci-bridge.h extern int early_find_capability(struct pci_controller *hose, int bus, hose 124 arch/microblaze/include/asm/pci-bridge.h extern void setup_indirect_pci(struct pci_controller *hose, hose 133 arch/microblaze/include/asm/pci-bridge.h extern void pci_process_bridge_OF_ranges(struct pci_controller *hose, hose 21 arch/microblaze/pci/indirect_pci.c struct pci_controller *hose = pci_bus_to_host(bus); hose 26 arch/microblaze/pci/indirect_pci.c if (hose->indirect_type & INDIRECT_TYPE_NO_PCIE_LINK) { hose 27 arch/microblaze/pci/indirect_pci.c if (bus->number != hose->first_busno) hose 33 arch/microblaze/pci/indirect_pci.c if (hose->indirect_type & INDIRECT_TYPE_SET_CFG_TYPE) hose 34 arch/microblaze/pci/indirect_pci.c if (bus->number != hose->first_busno) hose 37 arch/microblaze/pci/indirect_pci.c bus_no = (bus->number == hose->first_busno) ? hose 38 arch/microblaze/pci/indirect_pci.c hose->self_busno : bus->number; hose 40 arch/microblaze/pci/indirect_pci.c if (hose->indirect_type & INDIRECT_TYPE_EXT_REG) hose 45 arch/microblaze/pci/indirect_pci.c if (hose->indirect_type & INDIRECT_TYPE_BIG_ENDIAN) hose 46 arch/microblaze/pci/indirect_pci.c out_be32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | hose 49 arch/microblaze/pci/indirect_pci.c out_le32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | hose 56 arch/microblaze/pci/indirect_pci.c cfg_data = hose->cfg_data + (offset & 3); /* Only 3 bits for function */ hose 75 arch/microblaze/pci/indirect_pci.c struct pci_controller *hose = pci_bus_to_host(bus); hose 80 arch/microblaze/pci/indirect_pci.c if (hose->indirect_type & INDIRECT_TYPE_NO_PCIE_LINK) { hose 81 arch/microblaze/pci/indirect_pci.c if (bus->number != hose->first_busno) hose 87 arch/microblaze/pci/indirect_pci.c if (hose->indirect_type & INDIRECT_TYPE_SET_CFG_TYPE) hose 88 arch/microblaze/pci/indirect_pci.c if (bus->number != hose->first_busno) hose 91 arch/microblaze/pci/indirect_pci.c bus_no = (bus->number == hose->first_busno) ? hose 92 arch/microblaze/pci/indirect_pci.c hose->self_busno : bus->number; hose 94 arch/microblaze/pci/indirect_pci.c if (hose->indirect_type & INDIRECT_TYPE_EXT_REG) hose 99 arch/microblaze/pci/indirect_pci.c if (hose->indirect_type & INDIRECT_TYPE_BIG_ENDIAN) hose 100 arch/microblaze/pci/indirect_pci.c out_be32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | hose 103 arch/microblaze/pci/indirect_pci.c out_le32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | hose 107 arch/microblaze/pci/indirect_pci.c if (hose->indirect_type & INDIRECT_TYPE_SURPRESS_PRIMARY_BUS) hose 109 arch/microblaze/pci/indirect_pci.c (bus->number == hose->first_busno)) hose 113 arch/microblaze/pci/indirect_pci.c if ((hose->indirect_type & INDIRECT_TYPE_BROKEN_MRM) && hose 122 arch/microblaze/pci/indirect_pci.c cfg_data = hose->cfg_data + (offset & 3); hose 144 arch/microblaze/pci/indirect_pci.c setup_indirect_pci(struct pci_controller *hose, hose 152 arch/microblaze/pci/indirect_pci.c hose->cfg_addr = mbase + (cfg_addr & ~PAGE_MASK); hose 155 arch/microblaze/pci/indirect_pci.c hose->cfg_data = mbase + (cfg_data & ~PAGE_MASK); hose 156 arch/microblaze/pci/indirect_pci.c hose->ops = &indirect_pci_ops; hose 157 arch/microblaze/pci/indirect_pci.c hose->indirect_type = flags; hose 78 arch/microblaze/pci/pci-common.c static resource_size_t pcibios_io_size(const struct pci_controller *hose) hose 80 arch/microblaze/pci/pci-common.c return resource_size(&hose->io_resource); hose 86 arch/microblaze/pci/pci-common.c struct pci_controller *hose; hose 90 arch/microblaze/pci/pci-common.c list_for_each_entry(hose, &hose_list, list_node) { hose 91 arch/microblaze/pci/pci-common.c size = pcibios_io_size(hose); hose 92 arch/microblaze/pci/pci-common.c if (address >= hose->io_base_virt && hose 93 arch/microblaze/pci/pci-common.c address < (hose->io_base_virt + size)) { hose 104 arch/microblaze/pci/pci-common.c struct pci_controller *hose; hose 109 arch/microblaze/pci/pci-common.c list_for_each_entry(hose, &hose_list, list_node) { hose 110 arch/microblaze/pci/pci-common.c size = pcibios_io_size(hose); hose 111 arch/microblaze/pci/pci-common.c if (address >= hose->io_base_phys && hose 112 arch/microblaze/pci/pci-common.c address < (hose->io_base_phys + size)) { hose 114 arch/microblaze/pci/pci-common.c (unsigned long)hose->io_base_virt - _IO_BASE; hose 115 arch/microblaze/pci/pci-common.c ret = base + (address - hose->io_base_phys); hose 135 arch/microblaze/pci/pci-common.c struct pci_controller *hose, *tmp; hose 136 arch/microblaze/pci/pci-common.c list_for_each_entry_safe(hose, tmp, &hose_list, list_node) hose 137 arch/microblaze/pci/pci-common.c if (hose->dn == node) hose 138 arch/microblaze/pci/pci-common.c return hose; hose 155 arch/microblaze/pci/pci-common.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); hose 158 arch/microblaze/pci/pci-common.c if (!hose) hose 162 arch/microblaze/pci/pci-common.c ioaddr -= (unsigned long)hose->io_base_virt - _IO_BASE; hose 164 arch/microblaze/pci/pci-common.c vma->vm_pgoff += (ioaddr + hose->io_base_phys) >> PAGE_SHIFT; hose 221 arch/microblaze/pci/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); hose 222 arch/microblaze/pci/pci-common.c struct resource *rp = &hose->io_resource; hose 230 arch/microblaze/pci/pci-common.c offset = (unsigned long)hose->io_base_virt - _IO_BASE; hose 237 arch/microblaze/pci/pci-common.c addr = hose->io_base_virt + port; hose 261 arch/microblaze/pci/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); hose 262 arch/microblaze/pci/pci-common.c struct resource *rp = &hose->io_resource; hose 270 arch/microblaze/pci/pci-common.c offset = (unsigned long)hose->io_base_virt - _IO_BASE; hose 277 arch/microblaze/pci/pci-common.c addr = hose->io_base_virt + port; hose 307 arch/microblaze/pci/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); hose 327 arch/microblaze/pci/pci-common.c if ((offset + size) > hose->isa_mem_size) { hose 338 arch/microblaze/pci/pci-common.c offset += hose->isa_mem_phys; hose 340 arch/microblaze/pci/pci-common.c unsigned long io_offset = (unsigned long)hose->io_base_virt - hose 343 arch/microblaze/pci/pci-common.c rp = &hose->io_resource; hose 348 arch/microblaze/pci/pci-common.c offset += hose->io_base_phys; hose 417 arch/microblaze/pci/pci-common.c void pci_process_bridge_OF_ranges(struct pci_controller *hose, hose 458 arch/microblaze/pci/pci-common.c if (hose->pci_io_size) { hose 467 arch/microblaze/pci/pci-common.c hose->io_base_virt = ioremap(range.cpu_addr, hose 473 arch/microblaze/pci/pci-common.c (unsigned long)hose->io_base_virt; hose 477 arch/microblaze/pci/pci-common.c hose->pci_io_size = range.pci_addr + range.size; hose 478 arch/microblaze/pci/pci-common.c hose->io_base_phys = range.cpu_addr - range.pci_addr; hose 481 arch/microblaze/pci/pci-common.c res = &hose->io_resource; hose 503 arch/microblaze/pci/pci-common.c hose->isa_mem_phys = range.cpu_addr; hose 504 arch/microblaze/pci/pci-common.c hose->isa_mem_size = range.size; hose 513 arch/microblaze/pci/pci-common.c hose->pci_mem_offset == isa_mb)) hose 514 arch/microblaze/pci/pci-common.c hose->pci_mem_offset = range.cpu_addr - hose 517 arch/microblaze/pci/pci-common.c hose->pci_mem_offset != range.cpu_addr - hose 524 arch/microblaze/pci/pci-common.c res = &hose->mem_resources[memno++]; hose 540 arch/microblaze/pci/pci-common.c if (isa_hole >= 0 && hose->pci_mem_offset != isa_mb) { hose 544 arch/microblaze/pci/pci-common.c memmove(&hose->mem_resources[isa_hole], hose 545 arch/microblaze/pci/pci-common.c &hose->mem_resources[next], hose 547 arch/microblaze/pci/pci-common.c hose->mem_resources[--memno].flags = 0; hose 562 arch/microblaze/pci/pci-common.c struct pci_controller *hose = pci_bus_to_host(dev->bus); hose 565 arch/microblaze/pci/pci-common.c if (!hose) { hose 822 arch/microblaze/pci/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); hose 831 arch/microblaze/pci/pci-common.c if (!(hose->io_resource.flags & IORESOURCE_IO)) hose 833 arch/microblaze/pci/pci-common.c offset = (unsigned long)hose->io_base_virt - _IO_BASE; hose 841 arch/microblaze/pci/pci-common.c if (request_resource(&hose->io_resource, res)) { hose 849 arch/microblaze/pci/pci-common.c offset = hose->pci_mem_offset; hose 852 arch/microblaze/pci/pci-common.c pres = &hose->mem_resources[i]; hose 901 arch/microblaze/pci/pci-common.c static void pcibios_setup_phb_resources(struct pci_controller *hose, hose 909 arch/microblaze/pci/pci-common.c res = &hose->io_resource; hose 912 arch/microblaze/pci/pci-common.c io_offset = (unsigned long)hose->io_base_virt - isa_io_base; hose 919 arch/microblaze/pci/pci-common.c hose->dn, hose->global_number); hose 921 arch/microblaze/pci/pci-common.c res->start = (unsigned long)hose->io_base_virt - isa_io_base; hose 926 arch/microblaze/pci/pci-common.c (__force resource_size_t)(hose->io_base_virt - _IO_BASE)); hose 935 arch/microblaze/pci/pci-common.c res = &hose->mem_resources[i]; hose 941 arch/microblaze/pci/pci-common.c hose->dn, hose->global_number); hose 944 arch/microblaze/pci/pci-common.c res->start = hose->pci_mem_offset; hose 949 arch/microblaze/pci/pci-common.c pci_add_resource_offset(resources, res, hose->pci_mem_offset); hose 958 arch/microblaze/pci/pci-common.c (unsigned long long)hose->pci_mem_offset); hose 960 arch/microblaze/pci/pci-common.c (unsigned long)hose->io_base_virt - _IO_BASE); hose 963 arch/microblaze/pci/pci-common.c static void pcibios_scan_phb(struct pci_controller *hose) hose 967 arch/microblaze/pci/pci-common.c struct device_node *node = hose->dn; hose 971 arch/microblaze/pci/pci-common.c pcibios_setup_phb_resources(hose, &resources); hose 973 arch/microblaze/pci/pci-common.c bus = pci_scan_root_bus(hose->parent, hose->first_busno, hose 974 arch/microblaze/pci/pci-common.c hose->ops, hose, &resources); hose 977 arch/microblaze/pci/pci-common.c hose->global_number); hose 981 arch/microblaze/pci/pci-common.c bus->busn_res.start = hose->first_busno; hose 982 arch/microblaze/pci/pci-common.c hose->bus = bus; hose 984 arch/microblaze/pci/pci-common.c hose->last_busno = bus->busn_res.end; hose 989 arch/microblaze/pci/pci-common.c struct pci_controller *hose, *tmp; hose 995 arch/microblaze/pci/pci-common.c list_for_each_entry_safe(hose, tmp, &hose_list, list_node) { hose 996 arch/microblaze/pci/pci-common.c hose->last_busno = 0xff; hose 997 arch/microblaze/pci/pci-common.c pcibios_scan_phb(hose); hose 998 arch/microblaze/pci/pci-common.c if (next_busno <= hose->last_busno) hose 999 arch/microblaze/pci/pci-common.c next_busno = hose->last_busno + 1; hose 1005 arch/microblaze/pci/pci-common.c list_for_each_entry_safe(hose, tmp, &hose_list, list_node) { hose 1006 arch/microblaze/pci/pci-common.c if (hose->bus) hose 1007 arch/microblaze/pci/pci-common.c pci_bus_add_devices(hose->bus); hose 1017 arch/microblaze/pci/pci-common.c struct pci_controller *hose, *tmp; hose 1019 arch/microblaze/pci/pci-common.c list_for_each_entry_safe(hose, tmp, &hose_list, list_node) hose 1020 arch/microblaze/pci/pci-common.c if (bus >= hose->first_busno && bus <= hose->last_busno) hose 1021 arch/microblaze/pci/pci-common.c return hose; hose 1033 arch/microblaze/pci/pci-common.c struct pci_controller *hose; hose 1036 arch/microblaze/pci/pci-common.c hose = pci_bus_to_hose(bus); hose 1037 arch/microblaze/pci/pci-common.c if (!hose) hose 1042 arch/microblaze/pci/pci-common.c return (long)hose->first_busno; hose 1044 arch/microblaze/pci/pci-common.c return (long)hose->pci_mem_offset; hose 1046 arch/microblaze/pci/pci-common.c return (long)hose->io_base_phys; hose 1091 arch/microblaze/pci/pci-common.c fake_pci_bus(struct pci_controller *hose, int busnr) hose 1095 arch/microblaze/pci/pci-common.c if (!hose) hose 1099 arch/microblaze/pci/pci-common.c bus.sysdata = hose; hose 1100 arch/microblaze/pci/pci-common.c bus.ops = hose ? hose->ops : &null_pci_ops; hose 1105 arch/microblaze/pci/pci-common.c int early_##rw##_config_##size(struct pci_controller *hose, int bus, \ hose 1108 arch/microblaze/pci/pci-common.c return pci_bus_##rw##_config_##size(fake_pci_bus(hose, bus), \ hose 1119 arch/microblaze/pci/pci-common.c int early_find_capability(struct pci_controller *hose, int bus, int devfn, hose 1122 arch/microblaze/pci/pci-common.c return pci_bus_find_capability(fake_pci_bus(hose, bus), devfn, cap); hose 40 arch/microblaze/pci/xilinx_pci.c struct pci_controller *hose; hose 46 arch/microblaze/pci/xilinx_pci.c hose = pci_bus_to_host(dev->bus); hose 47 arch/microblaze/pci/xilinx_pci.c if (!hose) hose 50 arch/microblaze/pci/xilinx_pci.c if (!of_match_node(xilinx_pci_match, hose->dn)) hose 75 arch/microblaze/pci/xilinx_pci.c xilinx_pci_exclude_device(struct pci_controller *hose, u_char bus, u8 devfn) hose 85 arch/microblaze/pci/xilinx_pci.c static void __init xilinx_early_pci_scan(struct pci_controller *hose) hose 98 arch/microblaze/pci/xilinx_pci.c early_read_config_dword(hose, bus, hose 114 arch/microblaze/pci/xilinx_pci.c static void __init xilinx_early_pci_scan(struct pci_controller *hose) hose 124 arch/microblaze/pci/xilinx_pci.c struct pci_controller *hose; hose 138 arch/microblaze/pci/xilinx_pci.c hose = pcibios_alloc_controller(pci_node); hose 139 arch/microblaze/pci/xilinx_pci.c if (!hose) { hose 145 arch/microblaze/pci/xilinx_pci.c setup_indirect_pci(hose, r.start + XPLB_PCI_ADDR, hose 153 arch/microblaze/pci/xilinx_pci.c early_write_config_word(hose, 0, 0, PCI_COMMAND, PCI_HOST_ENABLE_CMD); hose 156 arch/microblaze/pci/xilinx_pci.c early_write_config_byte(hose, 0, 0, PCI_LATENCY_TIMER, 0xff); hose 165 arch/microblaze/pci/xilinx_pci.c pci_process_bridge_OF_ranges(hose, pci_node, hose 169 arch/microblaze/pci/xilinx_pci.c xilinx_early_pci_scan(hose); hose 59 arch/mips/include/asm/pci.h extern void register_pci_controller(struct pci_controller *hose); hose 73 arch/mips/include/asm/pci.h extern void pci_load_of_ranges(struct pci_controller *hose, hose 76 arch/mips/include/asm/pci.h static inline void pci_load_of_ranges(struct pci_controller *hose, hose 81 arch/mips/include/asm/pci.h static inline void set_pci_need_domain_info(struct pci_controller *hose, hose 87 arch/mips/include/asm/pci.h static inline void set_pci_need_domain_info(struct pci_controller *hose, hose 90 arch/mips/include/asm/pci.h hose->need_domain_info = need_domain_info; hose 133 arch/mips/include/asm/pci.h struct pci_controller *hose = bus->sysdata; hose 134 arch/mips/include/asm/pci.h return hose->need_domain_info; hose 17 arch/mips/include/asm/txx9/pci.h int txx9_pci66_check(struct pci_controller *hose, int top_bus, hose 185 arch/mips/pci/pci-ar2315.c struct pci_controller *hose = bus->sysdata; hose 187 arch/mips/pci/pci-ar2315.c return container_of(hose, struct ar2315_pci_ctrl, pci_ctrl); hose 101 arch/mips/pci/pci-ar71xx.c struct pci_controller *hose; hose 103 arch/mips/pci/pci-ar71xx.c hose = (struct pci_controller *) bus->sysdata; hose 104 arch/mips/pci/pci-ar71xx.c return container_of(hose, struct ar71xx_pci_controller, pci_ctrl); hose 67 arch/mips/pci/pci-ar724x.c struct pci_controller *hose; hose 69 arch/mips/pci/pci-ar724x.c hose = (struct pci_controller *) bus->sysdata; hose 70 arch/mips/pci/pci-ar724x.c return container_of(hose, struct ar724x_pci_controller, pci_controller); hose 50 arch/mips/pci/pci-legacy.c struct pci_controller *hose = dev->sysdata; hose 55 arch/mips/pci/pci-legacy.c if (start < PCIBIOS_MIN_IO + hose->io_resource->start) hose 56 arch/mips/pci/pci-legacy.c start = PCIBIOS_MIN_IO + hose->io_resource->start; hose 65 arch/mips/pci/pci-legacy.c if (start < PCIBIOS_MIN_MEM + hose->mem_resource->start) hose 66 arch/mips/pci/pci-legacy.c start = PCIBIOS_MIN_MEM + hose->mem_resource->start; hose 72 arch/mips/pci/pci-legacy.c static void pcibios_scanbus(struct pci_controller *hose) hose 85 arch/mips/pci/pci-legacy.c if (hose->get_busno && pci_has_flag(PCI_PROBE_ONLY)) hose 86 arch/mips/pci/pci-legacy.c next_busno = (*hose->get_busno)(); hose 89 arch/mips/pci/pci-legacy.c hose->mem_resource, hose->mem_offset); hose 91 arch/mips/pci/pci-legacy.c hose->io_resource, hose->io_offset); hose 92 arch/mips/pci/pci-legacy.c pci_add_resource(&resources, hose->busn_resource); hose 95 arch/mips/pci/pci-legacy.c bridge->sysdata = hose; hose 97 arch/mips/pci/pci-legacy.c bridge->ops = hose->pci_ops; hose 106 arch/mips/pci/pci-legacy.c hose->bus = bus = bridge->bus; hose 109 arch/mips/pci/pci-legacy.c set_pci_need_domain_info(hose, need_domain_info); hose 138 arch/mips/pci/pci-legacy.c void pci_load_of_ranges(struct pci_controller *hose, struct device_node *node) hose 144 arch/mips/pci/pci-legacy.c hose->of_node = node; hose 157 arch/mips/pci/pci-legacy.c hose->io_map_base = hose 160 arch/mips/pci/pci-legacy.c res = hose->io_resource; hose 166 arch/mips/pci/pci-legacy.c res = hose->mem_resource; hose 176 arch/mips/pci/pci-legacy.c struct pci_controller *hose = bus->sysdata; hose 178 arch/mips/pci/pci-legacy.c return of_node_get(hose->of_node); hose 184 arch/mips/pci/pci-legacy.c void register_pci_controller(struct pci_controller *hose) hose 188 arch/mips/pci/pci-legacy.c parent = hose->mem_resource->parent; hose 192 arch/mips/pci/pci-legacy.c if (request_resource(parent, hose->mem_resource) < 0) hose 195 arch/mips/pci/pci-legacy.c parent = hose->io_resource->parent; hose 199 arch/mips/pci/pci-legacy.c if (request_resource(parent, hose->io_resource) < 0) { hose 200 arch/mips/pci/pci-legacy.c release_resource(hose->mem_resource); hose 204 arch/mips/pci/pci-legacy.c INIT_LIST_HEAD(&hose->list); hose 205 arch/mips/pci/pci-legacy.c list_add_tail(&hose->list, &controllers); hose 210 arch/mips/pci/pci-legacy.c if (!hose->io_map_base) { hose 221 arch/mips/pci/pci-legacy.c pcibios_scanbus(hose); hose 234 arch/mips/pci/pci-legacy.c struct pci_controller *hose; hose 237 arch/mips/pci/pci-legacy.c list_for_each_entry(hose, &controllers, list) hose 238 arch/mips/pci/pci-legacy.c pcibios_scanbus(hose); hose 74 arch/mips/pci/pci-rt3883.c struct pci_controller *hose; hose 76 arch/mips/pci/pci-rt3883.c hose = (struct pci_controller *) bus->sysdata; hose 77 arch/mips/pci/pci-rt3883.c return container_of(hose, struct rt3883_pci_controller, pci_controller); hose 29 arch/mips/txx9/generic/pci.c early_read_config_word(struct pci_controller *hose, hose 35 arch/mips/txx9/generic/pci.c fake_bus.sysdata = hose; hose 36 arch/mips/txx9/generic/pci.c fake_bus.ops = hose->pci_ops; hose 47 arch/mips/txx9/generic/pci.c int __init txx9_pci66_check(struct pci_controller *hose, int top_bus, hose 63 arch/mips/txx9/generic/pci.c if (early_read_config_word(hose, top_bus, current_bus, hose 74 arch/mips/txx9/generic/pci.c early_read_config_word(hose, top_bus, current_bus, hose 11 arch/powerpc/include/asm/grackle.h extern void setup_grackle(struct pci_controller *hose); hose 7 arch/powerpc/include/asm/isa-bridge.h extern void isa_bridge_find_early(struct pci_controller *hose); hose 163 arch/powerpc/include/asm/machdep.h void (*pcibios_fixup_phb)(struct pci_controller *hose); hose 46 arch/powerpc/include/asm/pci-bridge.h void (*shutdown)(struct pci_controller *hose); hose 134 arch/powerpc/include/asm/pci-bridge.h extern int early_read_config_byte(struct pci_controller *hose, int bus, hose 136 arch/powerpc/include/asm/pci-bridge.h extern int early_read_config_word(struct pci_controller *hose, int bus, hose 138 arch/powerpc/include/asm/pci-bridge.h extern int early_read_config_dword(struct pci_controller *hose, int bus, hose 140 arch/powerpc/include/asm/pci-bridge.h extern int early_write_config_byte(struct pci_controller *hose, int bus, hose 142 arch/powerpc/include/asm/pci-bridge.h extern int early_write_config_word(struct pci_controller *hose, int bus, hose 144 arch/powerpc/include/asm/pci-bridge.h extern int early_write_config_dword(struct pci_controller *hose, int bus, hose 147 arch/powerpc/include/asm/pci-bridge.h extern int early_find_capability(struct pci_controller *hose, int bus, hose 150 arch/powerpc/include/asm/pci-bridge.h extern void setup_indirect_pci(struct pci_controller* hose, hose 157 arch/powerpc/include/asm/pci-bridge.h extern int __indirect_read_config(struct pci_controller *hose, hose 228 arch/powerpc/include/asm/pci-bridge.h extern struct pci_dn *pci_add_device_node_info(struct pci_controller *hose, hose 278 arch/powerpc/include/asm/pci-bridge.h extern void pci_process_bridge_OF_ranges(struct pci_controller *hose, hose 115 arch/powerpc/include/asm/pci.h extern resource_size_t pcibios_io_space_offset(struct pci_controller *hose); hose 118 arch/powerpc/include/asm/pci.h extern void pcibios_setup_phb_io_space(struct pci_controller *hose); hose 119 arch/powerpc/include/asm/pci.h extern void pcibios_scan_phb(struct pci_controller *hose); hose 125 arch/powerpc/include/asm/pci.h extern int pnv_npu2_init(struct pci_controller *hose); hose 16 arch/powerpc/include/asm/ppc-pci.h extern void pci_setup_phb_io(struct pci_controller *hose, int primary); hose 17 arch/powerpc/include/asm/ppc-pci.h extern void pci_setup_phb_io_dynamic(struct pci_controller *hose, int primary); hose 1078 arch/powerpc/kernel/eeh.c struct pci_controller *hose, *tmp; hose 1098 arch/powerpc/kernel/eeh.c list_for_each_entry_safe(hose, tmp, &hose_list, list_node) hose 1099 arch/powerpc/kernel/eeh.c eeh_dev_phb_init_dynamic(hose); hose 1823 arch/powerpc/kernel/eeh.c struct pci_controller *hose; hose 1848 arch/powerpc/kernel/eeh.c hose = pci_find_controller_for_domain(phbid); hose 1849 arch/powerpc/kernel/eeh.c if (!hose) hose 1853 arch/powerpc/kernel/eeh.c pe = eeh_pe_get(hose, pe_no, 0); hose 1143 arch/powerpc/kernel/eeh_driver.c struct pci_controller *hose; hose 1159 arch/powerpc/kernel/eeh_driver.c list_for_each_entry(hose, &hose_list, list_node) { hose 1160 arch/powerpc/kernel/eeh_driver.c phb_pe = eeh_phb_pe_get(hose); hose 1215 arch/powerpc/kernel/eeh_driver.c list_for_each_entry(hose, &hose_list, list_node) { hose 1216 arch/powerpc/kernel/eeh_driver.c phb_pe = eeh_phb_pe_get(hose); hose 126 arch/powerpc/kernel/isa-bridge.c void __init isa_bridge_find_early(struct pci_controller *hose) hose 142 arch/powerpc/kernel/isa-bridge.c if (parent == hose->dn) { hose 158 arch/powerpc/kernel/isa-bridge.c pci_process_ISA_OF_ranges(np, hose->io_base_phys); hose 264 arch/powerpc/kernel/isa-bridge.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); hose 271 arch/powerpc/kernel/isa-bridge.c pci_process_ISA_OF_ranges(devnode, hose->io_base_phys); hose 492 arch/powerpc/kernel/legacy_serial.c struct pci_controller *hose; hose 496 arch/powerpc/kernel/legacy_serial.c hose = pci_find_hose_for_OF_device(np); hose 497 arch/powerpc/kernel/legacy_serial.c if (hose) { hose 498 arch/powerpc/kernel/legacy_serial.c unsigned long offset = (unsigned long)hose->io_base_virt - hose 211 arch/powerpc/kernel/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); hose 213 arch/powerpc/kernel/pci-common.c if (hose->controller_ops.setup_bridge) hose 214 arch/powerpc/kernel/pci-common.c hose->controller_ops.setup_bridge(bus, type); hose 270 arch/powerpc/kernel/pci-common.c static resource_size_t pcibios_io_size(const struct pci_controller *hose) hose 273 arch/powerpc/kernel/pci-common.c return hose->pci_io_size; hose 275 arch/powerpc/kernel/pci-common.c return resource_size(&hose->io_resource); hose 282 arch/powerpc/kernel/pci-common.c struct pci_controller *hose; hose 286 arch/powerpc/kernel/pci-common.c list_for_each_entry(hose, &hose_list, list_node) { hose 287 arch/powerpc/kernel/pci-common.c size = pcibios_io_size(hose); hose 288 arch/powerpc/kernel/pci-common.c if (address >= hose->io_base_virt && hose 289 arch/powerpc/kernel/pci-common.c address < (hose->io_base_virt + size)) { hose 300 arch/powerpc/kernel/pci-common.c struct pci_controller *hose; hose 305 arch/powerpc/kernel/pci-common.c list_for_each_entry(hose, &hose_list, list_node) { hose 306 arch/powerpc/kernel/pci-common.c size = pcibios_io_size(hose); hose 307 arch/powerpc/kernel/pci-common.c if (address >= hose->io_base_phys && hose 308 arch/powerpc/kernel/pci-common.c address < (hose->io_base_phys + size)) { hose 310 arch/powerpc/kernel/pci-common.c (unsigned long)hose->io_base_virt - _IO_BASE; hose 311 arch/powerpc/kernel/pci-common.c ret = base + (address - hose->io_base_phys); hose 326 arch/powerpc/kernel/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); hose 328 arch/powerpc/kernel/pci-common.c return hose->global_number; hose 342 arch/powerpc/kernel/pci-common.c struct pci_controller *hose, *tmp; hose 343 arch/powerpc/kernel/pci-common.c list_for_each_entry_safe(hose, tmp, &hose_list, list_node) hose 344 arch/powerpc/kernel/pci-common.c if (hose->dn == node) hose 345 arch/powerpc/kernel/pci-common.c return hose; hose 353 arch/powerpc/kernel/pci-common.c struct pci_controller *hose; hose 355 arch/powerpc/kernel/pci-common.c list_for_each_entry(hose, &hose_list, list_node) hose 356 arch/powerpc/kernel/pci-common.c if (hose->global_number == domain_nr) hose 357 arch/powerpc/kernel/pci-common.c return hose; hose 419 arch/powerpc/kernel/pci-common.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); hose 422 arch/powerpc/kernel/pci-common.c if (!hose) hose 426 arch/powerpc/kernel/pci-common.c ioaddr -= (unsigned long)hose->io_base_virt - _IO_BASE; hose 428 arch/powerpc/kernel/pci-common.c vma->vm_pgoff += (ioaddr + hose->io_base_phys) >> PAGE_SHIFT; hose 485 arch/powerpc/kernel/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); hose 486 arch/powerpc/kernel/pci-common.c struct resource *rp = &hose->io_resource; hose 494 arch/powerpc/kernel/pci-common.c offset = (unsigned long)hose->io_base_virt - _IO_BASE; hose 501 arch/powerpc/kernel/pci-common.c addr = hose->io_base_virt + port; hose 525 arch/powerpc/kernel/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); hose 526 arch/powerpc/kernel/pci-common.c struct resource *rp = &hose->io_resource; hose 534 arch/powerpc/kernel/pci-common.c offset = (unsigned long)hose->io_base_virt - _IO_BASE; hose 541 arch/powerpc/kernel/pci-common.c addr = hose->io_base_virt + port; hose 571 arch/powerpc/kernel/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); hose 591 arch/powerpc/kernel/pci-common.c if ((offset + size) > hose->isa_mem_size) { hose 599 arch/powerpc/kernel/pci-common.c offset += hose->isa_mem_phys; hose 601 arch/powerpc/kernel/pci-common.c unsigned long io_offset = (unsigned long)hose->io_base_virt - _IO_BASE; hose 603 arch/powerpc/kernel/pci-common.c rp = &hose->io_resource; hose 608 arch/powerpc/kernel/pci-common.c offset += hose->io_base_phys; hose 668 arch/powerpc/kernel/pci-common.c void pci_process_bridge_OF_ranges(struct pci_controller *hose, hose 703 arch/powerpc/kernel/pci-common.c if (hose->pci_io_size) { hose 714 arch/powerpc/kernel/pci-common.c hose->io_base_virt = ioremap(range.cpu_addr, hose 720 arch/powerpc/kernel/pci-common.c (unsigned long)hose->io_base_virt; hose 725 arch/powerpc/kernel/pci-common.c hose->pci_io_size = range.pci_addr + range.size; hose 726 arch/powerpc/kernel/pci-common.c hose->io_base_phys = range.cpu_addr - range.pci_addr; hose 729 arch/powerpc/kernel/pci-common.c res = &hose->io_resource; hose 750 arch/powerpc/kernel/pci-common.c hose->isa_mem_phys = range.cpu_addr; hose 751 arch/powerpc/kernel/pci-common.c hose->isa_mem_size = range.size; hose 755 arch/powerpc/kernel/pci-common.c hose->mem_offset[memno] = range.cpu_addr - hose 757 arch/powerpc/kernel/pci-common.c res = &hose->mem_resources[memno++]; hose 773 arch/powerpc/kernel/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); hose 778 arch/powerpc/kernel/pci-common.c return hose->global_number != 0; hose 795 arch/powerpc/kernel/pci-common.c struct pci_controller *hose = pci_bus_to_host(dev->bus); hose 798 arch/powerpc/kernel/pci-common.c if (!hose) { hose 848 arch/powerpc/kernel/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); hose 879 arch/powerpc/kernel/pci-common.c if ((hose->mem_resources[i].flags & IORESOURCE_MEM) && hose 880 arch/powerpc/kernel/pci-common.c hose->mem_resources[i].start == hose->mem_offset[i]) hose 890 arch/powerpc/kernel/pci-common.c offset = (unsigned long)hose->io_base_virt - _IO_BASE; hose 1300 arch/powerpc/kernel/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); hose 1308 arch/powerpc/kernel/pci-common.c if (!(hose->io_resource.flags & IORESOURCE_IO)) hose 1310 arch/powerpc/kernel/pci-common.c offset = (unsigned long)hose->io_base_virt - _IO_BASE; hose 1318 arch/powerpc/kernel/pci-common.c if (request_resource(&hose->io_resource, res)) { hose 1328 arch/powerpc/kernel/pci-common.c pres = &hose->mem_resources[i]; hose 1329 arch/powerpc/kernel/pci-common.c offset = hose->mem_offset[i]; hose 1470 arch/powerpc/kernel/pci-common.c resource_size_t pcibios_io_space_offset(struct pci_controller *hose) hose 1472 arch/powerpc/kernel/pci-common.c return (unsigned long) hose->io_base_virt - _IO_BASE; hose 1475 arch/powerpc/kernel/pci-common.c static void pcibios_setup_phb_resources(struct pci_controller *hose, hose 1483 arch/powerpc/kernel/pci-common.c res = &hose->io_resource; hose 1488 arch/powerpc/kernel/pci-common.c hose->dn, hose->global_number); hose 1490 arch/powerpc/kernel/pci-common.c offset = pcibios_io_space_offset(hose); hose 1499 arch/powerpc/kernel/pci-common.c res = &hose->mem_resources[i]; hose 1503 arch/powerpc/kernel/pci-common.c offset = hose->mem_offset[i]; hose 1547 arch/powerpc/kernel/pci-common.c fake_pci_bus(struct pci_controller *hose, int busnr) hose 1551 arch/powerpc/kernel/pci-common.c if (hose == NULL) { hose 1555 arch/powerpc/kernel/pci-common.c bus.sysdata = hose; hose 1556 arch/powerpc/kernel/pci-common.c bus.ops = hose? hose->ops: &null_pci_ops; hose 1561 arch/powerpc/kernel/pci-common.c int early_##rw##_config_##size(struct pci_controller *hose, int bus, \ hose 1564 arch/powerpc/kernel/pci-common.c return pci_bus_##rw##_config_##size(fake_pci_bus(hose, bus), \ hose 1575 arch/powerpc/kernel/pci-common.c int early_find_capability(struct pci_controller *hose, int bus, int devfn, hose 1578 arch/powerpc/kernel/pci-common.c return pci_bus_find_capability(fake_pci_bus(hose, bus), devfn, cap); hose 1583 arch/powerpc/kernel/pci-common.c struct pci_controller *hose = bus->sysdata; hose 1585 arch/powerpc/kernel/pci-common.c return of_node_get(hose->dn); hose 1592 arch/powerpc/kernel/pci-common.c void pcibios_scan_phb(struct pci_controller *hose) hose 1596 arch/powerpc/kernel/pci-common.c struct device_node *node = hose->dn; hose 1602 arch/powerpc/kernel/pci-common.c pcibios_setup_phb_io_space(hose); hose 1605 arch/powerpc/kernel/pci-common.c pcibios_setup_phb_resources(hose, &resources); hose 1607 arch/powerpc/kernel/pci-common.c hose->busn.start = hose->first_busno; hose 1608 arch/powerpc/kernel/pci-common.c hose->busn.end = hose->last_busno; hose 1609 arch/powerpc/kernel/pci-common.c hose->busn.flags = IORESOURCE_BUS; hose 1610 arch/powerpc/kernel/pci-common.c pci_add_resource(&resources, &hose->busn); hose 1613 arch/powerpc/kernel/pci-common.c bus = pci_create_root_bus(hose->parent, hose->first_busno, hose 1614 arch/powerpc/kernel/pci-common.c hose->ops, hose, &resources); hose 1617 arch/powerpc/kernel/pci-common.c hose->global_number); hose 1621 arch/powerpc/kernel/pci-common.c hose->bus = bus; hose 1625 arch/powerpc/kernel/pci-common.c if (node && hose->controller_ops.probe_mode) hose 1626 arch/powerpc/kernel/pci-common.c mode = hose->controller_ops.probe_mode(bus); hose 1633 arch/powerpc/kernel/pci-common.c hose->last_busno = pci_scan_child_bus(bus); hose 1634 arch/powerpc/kernel/pci-common.c pci_bus_update_busn_res_end(bus, hose->last_busno); hose 1641 arch/powerpc/kernel/pci-common.c ppc_md.pcibios_fixup_phb(hose); hose 116 arch/powerpc/kernel/pci_32.c struct pci_controller *hose, *tmp; hose 133 arch/powerpc/kernel/pci_32.c list_for_each_entry_safe(hose, tmp, &hose_list, list_node) { hose 134 arch/powerpc/kernel/pci_32.c struct device_node* node = hose->dn; hose 138 arch/powerpc/kernel/pci_32.c make_one_node_map(node, hose->first_busno); hose 223 arch/powerpc/kernel/pci_32.c void pcibios_setup_phb_io_space(struct pci_controller *hose) hose 226 arch/powerpc/kernel/pci_32.c struct resource *res = &hose->io_resource; hose 229 arch/powerpc/kernel/pci_32.c io_offset = pcibios_io_space_offset(hose); hose 236 arch/powerpc/kernel/pci_32.c struct pci_controller *hose, *tmp; hose 245 arch/powerpc/kernel/pci_32.c list_for_each_entry_safe(hose, tmp, &hose_list, list_node) { hose 247 arch/powerpc/kernel/pci_32.c hose->first_busno = next_busno; hose 248 arch/powerpc/kernel/pci_32.c hose->last_busno = 0xff; hose 249 arch/powerpc/kernel/pci_32.c pcibios_scan_phb(hose); hose 250 arch/powerpc/kernel/pci_32.c pci_bus_add_devices(hose->bus); hose 251 arch/powerpc/kernel/pci_32.c if (pci_assign_all_buses || next_busno <= hose->last_busno) hose 252 arch/powerpc/kernel/pci_32.c next_busno = hose->last_busno + pcibios_assign_bus_offset; hose 282 arch/powerpc/kernel/pci_32.c struct pci_controller *hose, *tmp; hose 284 arch/powerpc/kernel/pci_32.c list_for_each_entry_safe(hose, tmp, &hose_list, list_node) hose 285 arch/powerpc/kernel/pci_32.c if (bus >= hose->first_busno && bus <= hose->last_busno) hose 286 arch/powerpc/kernel/pci_32.c return hose; hose 299 arch/powerpc/kernel/pci_32.c struct pci_controller* hose; hose 302 arch/powerpc/kernel/pci_32.c hose = pci_bus_to_hose(bus); hose 303 arch/powerpc/kernel/pci_32.c if (!hose) hose 308 arch/powerpc/kernel/pci_32.c return (long)hose->first_busno; hose 310 arch/powerpc/kernel/pci_32.c return (long)hose->mem_offset[0]; hose 312 arch/powerpc/kernel/pci_32.c return (long)hose->io_base_phys; hose 42 arch/powerpc/kernel/pci_64.c struct pci_controller *hose, *tmp; hose 57 arch/powerpc/kernel/pci_64.c list_for_each_entry_safe(hose, tmp, &hose_list, list_node) hose 58 arch/powerpc/kernel/pci_64.c pcibios_scan_phb(hose); hose 64 arch/powerpc/kernel/pci_64.c list_for_each_entry_safe(hose, tmp, &hose_list, list_node) hose 65 arch/powerpc/kernel/pci_64.c pci_bus_add_devices(hose->bus); hose 80 arch/powerpc/kernel/pci_64.c struct pci_controller *hose; hose 110 arch/powerpc/kernel/pci_64.c hose = pci_bus_to_host(bus); hose 113 arch/powerpc/kernel/pci_64.c if (hose->io_base_alloc == NULL) hose 116 arch/powerpc/kernel/pci_64.c pr_debug("IO unmapping for PHB %pOF\n", hose->dn); hose 117 arch/powerpc/kernel/pci_64.c pr_debug(" alloc=0x%p\n", hose->io_base_alloc); hose 120 arch/powerpc/kernel/pci_64.c vunmap(hose->io_base_alloc); hose 126 arch/powerpc/kernel/pci_64.c static int pcibios_map_phb_io_space(struct pci_controller *hose) hose 133 arch/powerpc/kernel/pci_64.c phys_page = _ALIGN_DOWN(hose->io_base_phys, PAGE_SIZE); hose 134 arch/powerpc/kernel/pci_64.c size_page = _ALIGN_UP(hose->pci_io_size, PAGE_SIZE); hose 137 arch/powerpc/kernel/pci_64.c hose->io_base_alloc = NULL; hose 140 arch/powerpc/kernel/pci_64.c if (hose->pci_io_size == 0 || hose->io_base_phys == 0) hose 152 arch/powerpc/kernel/pci_64.c hose->io_base_alloc = area->addr; hose 153 arch/powerpc/kernel/pci_64.c hose->io_base_virt = (void __iomem *)(area->addr + hose 154 arch/powerpc/kernel/pci_64.c hose->io_base_phys - phys_page); hose 156 arch/powerpc/kernel/pci_64.c pr_debug("IO mapping for PHB %pOF\n", hose->dn); hose 158 arch/powerpc/kernel/pci_64.c hose->io_base_phys, hose->io_base_virt, hose->io_base_alloc); hose 160 arch/powerpc/kernel/pci_64.c hose->pci_io_size, size_page); hose 168 arch/powerpc/kernel/pci_64.c io_virt_offset = pcibios_io_space_offset(hose); hose 169 arch/powerpc/kernel/pci_64.c hose->io_resource.start += io_virt_offset; hose 170 arch/powerpc/kernel/pci_64.c hose->io_resource.end += io_virt_offset; hose 172 arch/powerpc/kernel/pci_64.c pr_debug(" hose->io_resource=%pR\n", &hose->io_resource); hose 197 arch/powerpc/kernel/pci_64.c void pcibios_setup_phb_io_space(struct pci_controller *hose) hose 199 arch/powerpc/kernel/pci_64.c pcibios_map_phb_io_space(hose); hose 211 arch/powerpc/kernel/pci_64.c struct pci_controller* hose; hose 244 arch/powerpc/kernel/pci_64.c hose = PCI_DN(hose_node)->phb; hose 248 arch/powerpc/kernel/pci_64.c return (long)hose->first_busno; hose 250 arch/powerpc/kernel/pci_64.c return (long)hose->mem_offset[0]; hose 252 arch/powerpc/kernel/pci_64.c return (long)hose->io_base_phys; hose 277 arch/powerpc/kernel/pci_dn.c struct pci_dn *pci_add_device_node_info(struct pci_controller *hose, hose 292 arch/powerpc/kernel/pci_dn.c pdn->phb = hose; hose 483 arch/powerpc/kernel/pci_dn.c struct pci_controller *hose = data; hose 486 arch/powerpc/kernel/pci_dn.c pdn = pci_add_device_node_info(hose, dn); hose 58 arch/powerpc/platforms/4xx/pci.c struct pci_controller *hose; hose 64 arch/powerpc/platforms/4xx/pci.c hose = pci_bus_to_host(dev->bus); hose 65 arch/powerpc/platforms/4xx/pci.c if (hose == NULL) hose 68 arch/powerpc/platforms/4xx/pci.c if (!of_device_is_compatible(hose->dn, "ibm,plb-pciex") && hose 69 arch/powerpc/platforms/4xx/pci.c !of_device_is_compatible(hose->dn, "ibm,plb-pcix") && hose 70 arch/powerpc/platforms/4xx/pci.c !of_device_is_compatible(hose->dn, "ibm,plb-pci")) hose 73 arch/powerpc/platforms/4xx/pci.c if (of_device_is_compatible(hose->dn, "ibm,plb440epx-pci") || hose 74 arch/powerpc/platforms/4xx/pci.c of_device_is_compatible(hose->dn, "ibm,plb440grx-pci")) { hose 75 arch/powerpc/platforms/4xx/pci.c hose->indirect_type |= PPC_INDIRECT_TYPE_BROKEN_MRM; hose 91 arch/powerpc/platforms/4xx/pci.c static int __init ppc4xx_parse_dma_ranges(struct pci_controller *hose, hose 98 arch/powerpc/platforms/4xx/pci.c int pna = of_n_addr_cells(hose->dn); hose 108 arch/powerpc/platforms/4xx/pci.c ranges = of_get_property(hose->dn, "dma-ranges", &rlen); hose 116 arch/powerpc/platforms/4xx/pci.c u64 cpu_addr = of_translate_dma_address(hose->dn, ranges + 3); hose 132 arch/powerpc/platforms/4xx/pci.c hose->dn, hose 155 arch/powerpc/platforms/4xx/pci.c printk(KERN_ERR "%pOF: dma-ranges(s) mismatch\n", hose->dn); hose 165 arch/powerpc/platforms/4xx/pci.c hose->dn, size, (u64)total_memory); hose 172 arch/powerpc/platforms/4xx/pci.c printk(KERN_ERR "%pOF: dma-ranges unaligned\n", hose->dn); hose 180 arch/powerpc/platforms/4xx/pci.c !(of_device_is_compatible(hose->dn, "ibm,plb-pciex-460sx") hose 181 arch/powerpc/platforms/4xx/pci.c || of_device_is_compatible(hose->dn, "ibm,plb-pciex-476fpe"))) { hose 183 arch/powerpc/platforms/4xx/pci.c hose->dn); hose 189 arch/powerpc/platforms/4xx/pci.c hose->dma_window_base_cur = res->start; hose 190 arch/powerpc/platforms/4xx/pci.c hose->dma_window_size = resource_size(res); hose 195 arch/powerpc/platforms/4xx/pci.c (unsigned long long)hose->dma_window_base_cur); hose 197 arch/powerpc/platforms/4xx/pci.c (unsigned long long)hose->dma_window_size); hose 205 arch/powerpc/platforms/4xx/pci.c static int __init ppc4xx_setup_one_pci_PMM(struct pci_controller *hose, hose 234 arch/powerpc/platforms/4xx/pci.c printk(KERN_WARNING "%pOF: Resource out of range\n", hose->dn); hose 252 arch/powerpc/platforms/4xx/pci.c static void __init ppc4xx_configure_pci_PMMs(struct pci_controller *hose, hose 259 arch/powerpc/platforms/4xx/pci.c struct resource *res = &hose->mem_resources[i]; hose 260 arch/powerpc/platforms/4xx/pci.c resource_size_t offset = hose->mem_offset[i]; hose 266 arch/powerpc/platforms/4xx/pci.c printk(KERN_WARNING "%pOF: Too many ranges\n", hose->dn); hose 271 arch/powerpc/platforms/4xx/pci.c if (ppc4xx_setup_one_pci_PMM(hose, reg, hose 288 arch/powerpc/platforms/4xx/pci.c if (j <= 2 && !found_isa_hole && hose->isa_mem_size) hose 289 arch/powerpc/platforms/4xx/pci.c if (ppc4xx_setup_one_pci_PMM(hose, reg, hose->isa_mem_phys, 0, hose 290 arch/powerpc/platforms/4xx/pci.c hose->isa_mem_size, 0, j) == 0) hose 292 arch/powerpc/platforms/4xx/pci.c hose->dn); hose 295 arch/powerpc/platforms/4xx/pci.c static void __init ppc4xx_configure_pci_PTMs(struct pci_controller *hose, hose 311 arch/powerpc/platforms/4xx/pci.c early_write_config_dword(hose, hose->first_busno, 0, hose 313 arch/powerpc/platforms/4xx/pci.c early_write_config_dword(hose, hose->first_busno, 0, hose 315 arch/powerpc/platforms/4xx/pci.c early_write_config_word(hose, hose->first_busno, 0, hose 325 arch/powerpc/platforms/4xx/pci.c struct pci_controller *hose = NULL; hose 364 arch/powerpc/platforms/4xx/pci.c hose = pcibios_alloc_controller(np); hose 365 arch/powerpc/platforms/4xx/pci.c if (!hose) hose 368 arch/powerpc/platforms/4xx/pci.c hose->first_busno = bus_range ? bus_range[0] : 0x0; hose 369 arch/powerpc/platforms/4xx/pci.c hose->last_busno = bus_range ? bus_range[1] : 0xff; hose 372 arch/powerpc/platforms/4xx/pci.c setup_indirect_pci(hose, rsrc_cfg.start, rsrc_cfg.start + 0x4, 0); hose 382 arch/powerpc/platforms/4xx/pci.c pci_process_bridge_OF_ranges(hose, np, primary); hose 385 arch/powerpc/platforms/4xx/pci.c if (ppc4xx_parse_dma_ranges(hose, reg, &dma_window) != 0) hose 389 arch/powerpc/platforms/4xx/pci.c ppc4xx_configure_pci_PMMs(hose, reg); hose 392 arch/powerpc/platforms/4xx/pci.c ppc4xx_configure_pci_PTMs(hose, reg, &dma_window); hose 399 arch/powerpc/platforms/4xx/pci.c if (hose) hose 400 arch/powerpc/platforms/4xx/pci.c pcibios_free_controller(hose); hose 409 arch/powerpc/platforms/4xx/pci.c static int __init ppc4xx_setup_one_pcix_POM(struct pci_controller *hose, hose 422 arch/powerpc/platforms/4xx/pci.c hose->dn); hose 451 arch/powerpc/platforms/4xx/pci.c static void __init ppc4xx_configure_pcix_POMs(struct pci_controller *hose, hose 458 arch/powerpc/platforms/4xx/pci.c struct resource *res = &hose->mem_resources[i]; hose 459 arch/powerpc/platforms/4xx/pci.c resource_size_t offset = hose->mem_offset[i]; hose 465 arch/powerpc/platforms/4xx/pci.c printk(KERN_WARNING "%pOF: Too many ranges\n", hose->dn); hose 470 arch/powerpc/platforms/4xx/pci.c if (ppc4xx_setup_one_pcix_POM(hose, reg, hose 487 arch/powerpc/platforms/4xx/pci.c if (j <= 1 && !found_isa_hole && hose->isa_mem_size) hose 488 arch/powerpc/platforms/4xx/pci.c if (ppc4xx_setup_one_pcix_POM(hose, reg, hose->isa_mem_phys, 0, hose 489 arch/powerpc/platforms/4xx/pci.c hose->isa_mem_size, 0, j) == 0) hose 491 arch/powerpc/platforms/4xx/pci.c hose->dn); hose 494 arch/powerpc/platforms/4xx/pci.c static void __init ppc4xx_configure_pcix_PIMs(struct pci_controller *hose, hose 529 arch/powerpc/platforms/4xx/pci.c struct pci_controller *hose = NULL; hose 570 arch/powerpc/platforms/4xx/pci.c hose = pcibios_alloc_controller(np); hose 571 arch/powerpc/platforms/4xx/pci.c if (!hose) hose 574 arch/powerpc/platforms/4xx/pci.c hose->first_busno = bus_range ? bus_range[0] : 0x0; hose 575 arch/powerpc/platforms/4xx/pci.c hose->last_busno = bus_range ? bus_range[1] : 0xff; hose 578 arch/powerpc/platforms/4xx/pci.c setup_indirect_pci(hose, rsrc_cfg.start, rsrc_cfg.start + 0x4, hose 594 arch/powerpc/platforms/4xx/pci.c pci_process_bridge_OF_ranges(hose, np, primary); hose 597 arch/powerpc/platforms/4xx/pci.c if (ppc4xx_parse_dma_ranges(hose, reg, &dma_window) != 0) hose 601 arch/powerpc/platforms/4xx/pci.c ppc4xx_configure_pcix_POMs(hose, reg); hose 604 arch/powerpc/platforms/4xx/pci.c ppc4xx_configure_pcix_PIMs(hose, reg, &dma_window, big_pim, msi); hose 611 arch/powerpc/platforms/4xx/pci.c if (hose) hose 612 arch/powerpc/platforms/4xx/pci.c pcibios_free_controller(hose); hose 637 arch/powerpc/platforms/4xx/pci.c struct pci_controller *hose; hose 1557 arch/powerpc/platforms/4xx/pci.c if (port->endpoint && bus->number != port->hose->first_busno) hose 1561 arch/powerpc/platforms/4xx/pci.c if (bus->number > port->hose->last_busno) { hose 1571 arch/powerpc/platforms/4xx/pci.c if (bus->number == port->hose->first_busno && devfn != 0) hose 1575 arch/powerpc/platforms/4xx/pci.c if (bus->number == (port->hose->first_busno + 1) && hose 1580 arch/powerpc/platforms/4xx/pci.c if ((bus->number != port->hose->first_busno) && !port->link) hose 1595 arch/powerpc/platforms/4xx/pci.c if (bus->number == port->hose->first_busno) hose 1596 arch/powerpc/platforms/4xx/pci.c return (void __iomem *)port->hose->cfg_addr; hose 1598 arch/powerpc/platforms/4xx/pci.c relbus = bus->number - (port->hose->first_busno + 1); hose 1599 arch/powerpc/platforms/4xx/pci.c return (void __iomem *)port->hose->cfg_data + hose 1606 arch/powerpc/platforms/4xx/pci.c struct pci_controller *hose = pci_bus_to_host(bus); hose 1608 arch/powerpc/platforms/4xx/pci.c &ppc4xx_pciex_ports[hose->indirect_type]; hose 1612 arch/powerpc/platforms/4xx/pci.c BUG_ON(hose != port->hose); hose 1644 arch/powerpc/platforms/4xx/pci.c bus->number, hose->first_busno, hose->last_busno, hose 1663 arch/powerpc/platforms/4xx/pci.c struct pci_controller *hose = pci_bus_to_host(bus); hose 1665 arch/powerpc/platforms/4xx/pci.c &ppc4xx_pciex_ports[hose->indirect_type]; hose 1684 arch/powerpc/platforms/4xx/pci.c bus->number, hose->first_busno, hose->last_busno, hose 1711 arch/powerpc/platforms/4xx/pci.c struct pci_controller *hose, hose 1725 arch/powerpc/platforms/4xx/pci.c printk(KERN_WARNING "%pOF: Resource out of range\n", hose->dn); hose 1787 arch/powerpc/platforms/4xx/pci.c struct pci_controller *hose, hose 1794 arch/powerpc/platforms/4xx/pci.c struct resource *res = &hose->mem_resources[i]; hose 1795 arch/powerpc/platforms/4xx/pci.c resource_size_t offset = hose->mem_offset[i]; hose 1807 arch/powerpc/platforms/4xx/pci.c if (ppc4xx_setup_one_pciex_POM(port, hose, mbase, hose 1824 arch/powerpc/platforms/4xx/pci.c if (j <= 1 && !found_isa_hole && hose->isa_mem_size) hose 1825 arch/powerpc/platforms/4xx/pci.c if (ppc4xx_setup_one_pciex_POM(port, hose, mbase, hose 1826 arch/powerpc/platforms/4xx/pci.c hose->isa_mem_phys, 0, hose 1827 arch/powerpc/platforms/4xx/pci.c hose->isa_mem_size, 0, j) == 0) hose 1829 arch/powerpc/platforms/4xx/pci.c hose->dn); hose 1834 arch/powerpc/platforms/4xx/pci.c if (hose->io_resource.flags & IORESOURCE_IO) hose 1835 arch/powerpc/platforms/4xx/pci.c ppc4xx_setup_one_pciex_POM(port, hose, mbase, hose 1836 arch/powerpc/platforms/4xx/pci.c hose->io_base_phys, 0, hose 1841 arch/powerpc/platforms/4xx/pci.c struct pci_controller *hose, hose 1917 arch/powerpc/platforms/4xx/pci.c struct pci_controller *hose = NULL; hose 1932 arch/powerpc/platforms/4xx/pci.c hose = pcibios_alloc_controller(port->node); hose 1933 arch/powerpc/platforms/4xx/pci.c if (!hose) hose 1939 arch/powerpc/platforms/4xx/pci.c hose->indirect_type = port->index; hose 1942 arch/powerpc/platforms/4xx/pci.c hose->first_busno = bus_range ? bus_range[0] : 0x0; hose 1943 arch/powerpc/platforms/4xx/pci.c hose->last_busno = bus_range ? bus_range[1] : 0xff; hose 1950 arch/powerpc/platforms/4xx/pci.c busses = hose->last_busno - hose->first_busno; /* This is off by 1 */ hose 1953 arch/powerpc/platforms/4xx/pci.c hose->last_busno = hose->first_busno + busses; hose 1961 arch/powerpc/platforms/4xx/pci.c (hose->first_busno + 1) * 0x100000, hose 1968 arch/powerpc/platforms/4xx/pci.c hose->cfg_data = cfg_data; hose 1980 arch/powerpc/platforms/4xx/pci.c hose->cfg_addr = mbase; hose 1983 arch/powerpc/platforms/4xx/pci.c hose->first_busno, hose->last_busno); hose 1985 arch/powerpc/platforms/4xx/pci.c hose->cfg_addr, hose->cfg_data); hose 1988 arch/powerpc/platforms/4xx/pci.c hose->ops = &ppc4xx_pciex_pci_ops; hose 1989 arch/powerpc/platforms/4xx/pci.c port->hose = hose; hose 1990 arch/powerpc/platforms/4xx/pci.c mbase = (void __iomem *)hose->cfg_addr; hose 1996 arch/powerpc/platforms/4xx/pci.c out_8(mbase + PCI_PRIMARY_BUS, hose->first_busno); hose 1997 arch/powerpc/platforms/4xx/pci.c out_8(mbase + PCI_SECONDARY_BUS, hose->first_busno + 1); hose 1998 arch/powerpc/platforms/4xx/pci.c out_8(mbase + PCI_SUBORDINATE_BUS, hose->last_busno); hose 2007 arch/powerpc/platforms/4xx/pci.c pci_process_bridge_OF_ranges(hose, port->node, primary); hose 2010 arch/powerpc/platforms/4xx/pci.c if (ppc4xx_parse_dma_ranges(hose, mbase, &dma_window) != 0) hose 2014 arch/powerpc/platforms/4xx/pci.c ppc4xx_configure_pciex_POMs(port, hose, mbase); hose 2017 arch/powerpc/platforms/4xx/pci.c ppc4xx_configure_pciex_PIMs(port, hose, mbase, &dma_window); hose 2069 arch/powerpc/platforms/4xx/pci.c if (hose) hose 2070 arch/powerpc/platforms/4xx/pci.c pcibios_free_controller(hose); hose 38 arch/powerpc/platforms/52xx/efika.c struct pci_controller *hose = pci_bus_to_host(bus); hose 40 arch/powerpc/platforms/52xx/efika.c | (((bus->number - hose->first_busno) & 0xff) << 16) hose 41 arch/powerpc/platforms/52xx/efika.c | (hose->global_number << 24); hose 53 arch/powerpc/platforms/52xx/efika.c struct pci_controller *hose = pci_bus_to_host(bus); hose 55 arch/powerpc/platforms/52xx/efika.c | (((bus->number - hose->first_busno) & 0xff) << 16) hose 56 arch/powerpc/platforms/52xx/efika.c | (hose->global_number << 24); hose 74 arch/powerpc/platforms/52xx/efika.c struct pci_controller *hose; hose 113 arch/powerpc/platforms/52xx/efika.c hose = pcibios_alloc_controller(pcictrl); hose 114 arch/powerpc/platforms/52xx/efika.c if (!hose) { hose 121 arch/powerpc/platforms/52xx/efika.c hose->first_busno = bus_range[0]; hose 122 arch/powerpc/platforms/52xx/efika.c hose->last_busno = bus_range[1]; hose 123 arch/powerpc/platforms/52xx/efika.c hose->ops = &rtas_pci_ops; hose 125 arch/powerpc/platforms/52xx/efika.c pci_process_bridge_OF_ranges(hose, pcictrl, 0); hose 110 arch/powerpc/platforms/52xx/mpc52xx_pci.c struct pci_controller *hose = pci_bus_to_host(bus); hose 114 arch/powerpc/platforms/52xx/mpc52xx_pci.c if (ppc_md.pci_exclude_device(hose, bus->number, devfn)) hose 117 arch/powerpc/platforms/52xx/mpc52xx_pci.c out_be32(hose->cfg_addr, hose 130 arch/powerpc/platforms/52xx/mpc52xx_pci.c value = in_8(((u8 __iomem *)hose->cfg_data) + hose 134 arch/powerpc/platforms/52xx/mpc52xx_pci.c value = in_le16(((u16 __iomem *)hose->cfg_data) + hose 139 arch/powerpc/platforms/52xx/mpc52xx_pci.c value = in_le16((u16 __iomem *)hose->cfg_data) | hose 140 arch/powerpc/platforms/52xx/mpc52xx_pci.c (in_le16(((u16 __iomem *)hose->cfg_data) + 1) << 16); hose 147 arch/powerpc/platforms/52xx/mpc52xx_pci.c value = in_le32(hose->cfg_data); hose 157 arch/powerpc/platforms/52xx/mpc52xx_pci.c out_be32(hose->cfg_addr, 0); hose 167 arch/powerpc/platforms/52xx/mpc52xx_pci.c struct pci_controller *hose = pci_bus_to_host(bus); hose 171 arch/powerpc/platforms/52xx/mpc52xx_pci.c if (ppc_md.pci_exclude_device(hose, bus->number, devfn)) hose 174 arch/powerpc/platforms/52xx/mpc52xx_pci.c out_be32(hose->cfg_addr, hose 187 arch/powerpc/platforms/52xx/mpc52xx_pci.c out_8(((u8 __iomem *)hose->cfg_data) + hose 191 arch/powerpc/platforms/52xx/mpc52xx_pci.c out_le16(((u16 __iomem *)hose->cfg_data) + hose 196 arch/powerpc/platforms/52xx/mpc52xx_pci.c out_le16((u16 __iomem *)hose->cfg_data, hose 198 arch/powerpc/platforms/52xx/mpc52xx_pci.c out_le16(((u16 __iomem *)hose->cfg_data) + 1, hose 207 arch/powerpc/platforms/52xx/mpc52xx_pci.c value = in_le32(hose->cfg_data); hose 217 arch/powerpc/platforms/52xx/mpc52xx_pci.c out_le32(hose->cfg_data, val); hose 221 arch/powerpc/platforms/52xx/mpc52xx_pci.c out_be32(hose->cfg_addr, 0); hose 238 arch/powerpc/platforms/52xx/mpc52xx_pci.c mpc52xx_pci_setup(struct pci_controller *hose, hose 245 arch/powerpc/platforms/52xx/mpc52xx_pci.c pr_debug("mpc52xx_pci_setup(hose=%p, pci_regs=%p)\n", hose, pci_regs); hose 249 arch/powerpc/platforms/52xx/mpc52xx_pci.c hose->cfg_addr = &pci_regs->car; hose 250 arch/powerpc/platforms/52xx/mpc52xx_pci.c hose->cfg_data = hose->io_base_virt; hose 258 arch/powerpc/platforms/52xx/mpc52xx_pci.c res = &hose->mem_resources[0]; hose 275 arch/powerpc/platforms/52xx/mpc52xx_pci.c res = &hose->mem_resources[1]; hose 290 arch/powerpc/platforms/52xx/mpc52xx_pci.c res = &hose->io_resource; hose 299 arch/powerpc/platforms/52xx/mpc52xx_pci.c (unsigned long long)res->flags, (void*)hose->io_base_phys); hose 301 arch/powerpc/platforms/52xx/mpc52xx_pci.c MPC52xx_PCI_IWBTAR_TRANSLATION(hose->io_base_phys, hose 368 arch/powerpc/platforms/52xx/mpc52xx_pci.c struct pci_controller *hose; hose 396 arch/powerpc/platforms/52xx/mpc52xx_pci.c hose = pcibios_alloc_controller(node); hose 397 arch/powerpc/platforms/52xx/mpc52xx_pci.c if (!hose) hose 400 arch/powerpc/platforms/52xx/mpc52xx_pci.c hose->first_busno = bus_range ? bus_range[0] : 0; hose 401 arch/powerpc/platforms/52xx/mpc52xx_pci.c hose->last_busno = bus_range ? bus_range[1] : 0xff; hose 403 arch/powerpc/platforms/52xx/mpc52xx_pci.c hose->ops = &mpc52xx_pci_ops; hose 409 arch/powerpc/platforms/52xx/mpc52xx_pci.c pci_process_bridge_OF_ranges(hose, node, 1); hose 413 arch/powerpc/platforms/52xx/mpc52xx_pci.c mpc52xx_pci_setup(hose, pci_regs, rsrc.start); hose 34 arch/powerpc/platforms/82xx/pq2.c static int pq2_pci_exclude_device(struct pci_controller *hose, hose 45 arch/powerpc/platforms/82xx/pq2.c struct pci_controller *hose; hose 53 arch/powerpc/platforms/82xx/pq2.c hose = pcibios_alloc_controller(np); hose 54 arch/powerpc/platforms/82xx/pq2.c if (!hose) hose 57 arch/powerpc/platforms/82xx/pq2.c hose->dn = np; hose 59 arch/powerpc/platforms/82xx/pq2.c setup_indirect_pci(hose, r.start + 0x100, r.start + 0x104, 0); hose 60 arch/powerpc/platforms/82xx/pq2.c pci_process_bridge_OF_ranges(hose, np, 1); hose 70 arch/powerpc/platforms/85xx/mpc85xx_cds.c static int mpc85xx_exclude_device(struct pci_controller *hose, hose 110 arch/powerpc/platforms/85xx/mpc85xx_ds.c extern int uli_exclude_device(struct pci_controller *hose, hose 115 arch/powerpc/platforms/85xx/mpc85xx_ds.c static int mpc85xx_exclude_device(struct pci_controller *hose, hose 118 arch/powerpc/platforms/85xx/mpc85xx_ds.c if (hose->dn == pci_with_uli) hose 119 arch/powerpc/platforms/85xx/mpc85xx_ds.c return uli_exclude_device(hose, bus, devfn); hose 43 arch/powerpc/platforms/86xx/mpc86xx_hpcn.c extern int uli_exclude_device(struct pci_controller *hose, hose 46 arch/powerpc/platforms/86xx/mpc86xx_hpcn.c static int mpc86xx_exclude_device(struct pci_controller *hose, hose 49 arch/powerpc/platforms/86xx/mpc86xx_hpcn.c if (hose->dn == fsl_pci_primary) hose 50 arch/powerpc/platforms/86xx/mpc86xx_hpcn.c return uli_exclude_device(hose, bus, devfn); hose 37 arch/powerpc/platforms/amigaone/setup.c struct pci_controller *hose; hose 51 arch/powerpc/platforms/amigaone/setup.c hose = pcibios_alloc_controller(dev); hose 52 arch/powerpc/platforms/amigaone/setup.c if (hose == NULL) hose 55 arch/powerpc/platforms/amigaone/setup.c hose->first_busno = bus_range ? bus_range[0] : 0; hose 56 arch/powerpc/platforms/amigaone/setup.c hose->last_busno = bus_range ? bus_range[1] : 0xff; hose 58 arch/powerpc/platforms/amigaone/setup.c setup_indirect_pci(hose, cfg_addr[0], cfg_data[0], 0); hose 62 arch/powerpc/platforms/amigaone/setup.c pci_process_bridge_OF_ranges(hose, dev, 1); hose 83 arch/powerpc/platforms/cell/setup.c struct pci_controller *hose; hose 94 arch/powerpc/platforms/cell/setup.c hose = pci_bus_to_host(dev->bus); hose 95 arch/powerpc/platforms/cell/setup.c if (hose == NULL) hose 99 arch/powerpc/platforms/cell/setup.c if (!of_device_is_compatible(hose->dn, "pciex")) hose 103 arch/powerpc/platforms/cell/setup.c s = of_get_property(hose->dn, "model", NULL); hose 38 arch/powerpc/platforms/chrp/pci.c struct pci_controller *hose = pci_bus_to_host(bus); hose 46 arch/powerpc/platforms/chrp/pci.c cfg_data = hose->cfg_data + ((bus->number<<16) | (devfn<<8) | off); hose 65 arch/powerpc/platforms/chrp/pci.c struct pci_controller *hose = pci_bus_to_host(bus); hose 73 arch/powerpc/platforms/chrp/pci.c cfg_data = hose->cfg_data + ((bus->number<<16) | (devfn<<8) | off); hose 100 arch/powerpc/platforms/chrp/pci.c struct pci_controller *hose = pci_bus_to_host(bus); hose 102 arch/powerpc/platforms/chrp/pci.c | (((bus->number - hose->first_busno) & 0xff) << 16) hose 103 arch/powerpc/platforms/chrp/pci.c | (hose->global_number << 24); hose 115 arch/powerpc/platforms/chrp/pci.c struct pci_controller *hose = pci_bus_to_host(bus); hose 117 arch/powerpc/platforms/chrp/pci.c | (((bus->number - hose->first_busno) & 0xff) << 16) hose 118 arch/powerpc/platforms/chrp/pci.c | (hose->global_number << 24); hose 165 arch/powerpc/platforms/chrp/pci.c setup_python(struct pci_controller *hose, struct device_node *dev) hose 186 arch/powerpc/platforms/chrp/pci.c setup_indirect_pci(hose, r.start + 0xf8000, r.start + 0xf8010, 0); hose 190 arch/powerpc/platforms/chrp/pci.c static void __init setup_peg2(struct pci_controller *hose, struct device_node *dev) hose 197 arch/powerpc/platforms/chrp/pci.c hose->ops = &rtas_pci_ops; hose 213 arch/powerpc/platforms/chrp/pci.c struct pci_controller *hose; hose 259 arch/powerpc/platforms/chrp/pci.c hose = pcibios_alloc_controller(dev); hose 260 arch/powerpc/platforms/chrp/pci.c if (!hose) { hose 265 arch/powerpc/platforms/chrp/pci.c hose->first_busno = hose->self_busno = bus_range[0]; hose 266 arch/powerpc/platforms/chrp/pci.c hose->last_busno = bus_range[1]; hose 272 arch/powerpc/platforms/chrp/pci.c setup_python(hose, dev); hose 275 arch/powerpc/platforms/chrp/pci.c setup_grackle(hose); hose 278 arch/powerpc/platforms/chrp/pci.c hose->ops = &gg2_pci_ops; hose 279 arch/powerpc/platforms/chrp/pci.c hose->cfg_data = p; hose 282 arch/powerpc/platforms/chrp/pci.c setup_indirect_pci(hose, 0xfec00cf8, 0xfee00cfc, 0); hose 284 arch/powerpc/platforms/chrp/pci.c setup_peg2(hose, dev); hose 286 arch/powerpc/platforms/chrp/pci.c setup_indirect_pci(hose, hose 303 arch/powerpc/platforms/chrp/pci.c hose->ops = &rtas_pci_ops; hose 306 arch/powerpc/platforms/chrp/pci.c pci_process_bridge_OF_ranges(hose, dev, index == 0); hose 44 arch/powerpc/platforms/embedded6xx/holly.c static int holly_exclude_device(struct pci_controller *hose, u_char bus, hose 41 arch/powerpc/platforms/embedded6xx/linkstation.c struct pci_controller *hose; hose 51 arch/powerpc/platforms/embedded6xx/linkstation.c hose = pcibios_alloc_controller(dev); hose 52 arch/powerpc/platforms/embedded6xx/linkstation.c if (hose == NULL) hose 54 arch/powerpc/platforms/embedded6xx/linkstation.c hose->first_busno = bus_range ? bus_range[0] : 0; hose 55 arch/powerpc/platforms/embedded6xx/linkstation.c hose->last_busno = bus_range ? bus_range[1] : 0xff; hose 56 arch/powerpc/platforms/embedded6xx/linkstation.c setup_indirect_pci(hose, 0xfec00000, 0xfee00000, 0); hose 60 arch/powerpc/platforms/embedded6xx/linkstation.c pci_process_bridge_OF_ranges(hose, dev, 1); hose 148 arch/powerpc/platforms/embedded6xx/mpc10x.h int mpc10x_bridge_init(struct pci_controller *hose, hose 153 arch/powerpc/platforms/embedded6xx/mpc10x.h int mpc10x_enable_store_gathering(struct pci_controller *hose); hose 154 arch/powerpc/platforms/embedded6xx/mpc10x.h int mpc10x_disable_store_gathering(struct pci_controller *hose); hose 52 arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c int mpc7448_hpc2_exclude_device(struct pci_controller *hose, hose 110 arch/powerpc/platforms/embedded6xx/mvme5100.c struct pci_controller *hose; hose 117 arch/powerpc/platforms/embedded6xx/mvme5100.c hose = pcibios_alloc_controller(dev); hose 118 arch/powerpc/platforms/embedded6xx/mvme5100.c if (hose == NULL) hose 121 arch/powerpc/platforms/embedded6xx/mvme5100.c hose->first_busno = bus_range ? bus_range[0] : 0; hose 122 arch/powerpc/platforms/embedded6xx/mvme5100.c hose->last_busno = bus_range ? bus_range[1] : 0xff; hose 124 arch/powerpc/platforms/embedded6xx/mvme5100.c setup_indirect_pci(hose, 0xfe000cf8, 0xfe000cfc, 0); hose 126 arch/powerpc/platforms/embedded6xx/mvme5100.c pci_process_bridge_OF_ranges(hose, dev, 1); hose 128 arch/powerpc/platforms/embedded6xx/mvme5100.c early_read_config_word(hose, 0, 0, PCI_DEVICE_ID, &devid); hose 135 arch/powerpc/platforms/embedded6xx/mvme5100.c early_read_config_dword(hose, 0, 0, PCI_BASE_ADDRESS_1, &pci_membase); hose 44 arch/powerpc/platforms/embedded6xx/storcenter.c struct pci_controller *hose; hose 49 arch/powerpc/platforms/embedded6xx/storcenter.c hose = pcibios_alloc_controller(dev); hose 50 arch/powerpc/platforms/embedded6xx/storcenter.c if (hose == NULL) hose 54 arch/powerpc/platforms/embedded6xx/storcenter.c hose->first_busno = bus_range ? bus_range[0] : 0; hose 55 arch/powerpc/platforms/embedded6xx/storcenter.c hose->last_busno = bus_range ? bus_range[1] : 0xff; hose 57 arch/powerpc/platforms/embedded6xx/storcenter.c setup_indirect_pci(hose, MPC10X_MAPB_CNFG_ADDR, MPC10X_MAPB_CNFG_DATA, 0); hose 61 arch/powerpc/platforms/embedded6xx/storcenter.c pci_process_bridge_OF_ranges(hose, dev, 1); hose 318 arch/powerpc/platforms/fsl_uli1575.c struct pci_controller *hose = pci_bus_to_host(dev->bus); hose 319 arch/powerpc/platforms/fsl_uli1575.c struct device_node *hosenode = hose ? hose->dn : NULL; hose 332 arch/powerpc/platforms/fsl_uli1575.c laddr[0] = (hose->first_busno << 16) | (PCI_DEVFN(31, 0) << 8); hose 343 arch/powerpc/platforms/fsl_uli1575.c int uli_exclude_device(struct pci_controller *hose, hose 346 arch/powerpc/platforms/fsl_uli1575.c if (bus == (hose->first_busno + 2)) { hose 96 arch/powerpc/platforms/maple/pci.c static volatile void __iomem *u3_agp_cfg_access(struct pci_controller* hose, hose 101 arch/powerpc/platforms/maple/pci.c if (bus == hose->first_busno) { hose 110 arch/powerpc/platforms/maple/pci.c out_le32(hose->cfg_addr, caddr); hose 111 arch/powerpc/platforms/maple/pci.c } while (in_le32(hose->cfg_addr) != caddr); hose 114 arch/powerpc/platforms/maple/pci.c return hose->cfg_data + offset; hose 120 arch/powerpc/platforms/maple/pci.c struct pci_controller *hose; hose 123 arch/powerpc/platforms/maple/pci.c hose = pci_bus_to_host(bus); hose 124 arch/powerpc/platforms/maple/pci.c if (hose == NULL) hose 127 arch/powerpc/platforms/maple/pci.c addr = u3_agp_cfg_access(hose, bus->number, devfn, offset); hose 151 arch/powerpc/platforms/maple/pci.c struct pci_controller *hose; hose 154 arch/powerpc/platforms/maple/pci.c hose = pci_bus_to_host(bus); hose 155 arch/powerpc/platforms/maple/pci.c if (hose == NULL) hose 158 arch/powerpc/platforms/maple/pci.c addr = u3_agp_cfg_access(hose, bus->number, devfn, offset); hose 195 arch/powerpc/platforms/maple/pci.c static volatile void __iomem *u3_ht_cfg_access(struct pci_controller* hose, hose 198 arch/powerpc/platforms/maple/pci.c if (bus == hose->first_busno) { hose 201 arch/powerpc/platforms/maple/pci.c return hose->cfg_data + u3_ht_cfa0(devfn, offset); hose 203 arch/powerpc/platforms/maple/pci.c return hose->cfg_data + u3_ht_cfa1(bus, devfn, offset); hose 206 arch/powerpc/platforms/maple/pci.c static int u3_ht_root_read_config(struct pci_controller *hose, u8 offset, hose 211 arch/powerpc/platforms/maple/pci.c addr = hose->cfg_addr; hose 229 arch/powerpc/platforms/maple/pci.c static int u3_ht_root_write_config(struct pci_controller *hose, u8 offset, hose 234 arch/powerpc/platforms/maple/pci.c addr = hose->cfg_addr + ((offset & ~3) << 2) + (4 - len - (offset & 3)); hose 257 arch/powerpc/platforms/maple/pci.c struct pci_controller *hose; hose 260 arch/powerpc/platforms/maple/pci.c hose = pci_bus_to_host(bus); hose 261 arch/powerpc/platforms/maple/pci.c if (hose == NULL) hose 264 arch/powerpc/platforms/maple/pci.c if (bus->number == hose->first_busno && devfn == PCI_DEVFN(0, 0)) hose 265 arch/powerpc/platforms/maple/pci.c return u3_ht_root_read_config(hose, offset, len, val); hose 270 arch/powerpc/platforms/maple/pci.c addr = u3_ht_cfg_access(hose, bus->number, devfn, offset); hose 295 arch/powerpc/platforms/maple/pci.c struct pci_controller *hose; hose 298 arch/powerpc/platforms/maple/pci.c hose = pci_bus_to_host(bus); hose 299 arch/powerpc/platforms/maple/pci.c if (hose == NULL) hose 302 arch/powerpc/platforms/maple/pci.c if (bus->number == hose->first_busno && devfn == PCI_DEVFN(0, 0)) hose 303 arch/powerpc/platforms/maple/pci.c return u3_ht_root_write_config(hose, offset, len, val); hose 308 arch/powerpc/platforms/maple/pci.c addr = u3_ht_cfg_access(hose, bus->number, devfn, offset); hose 352 arch/powerpc/platforms/maple/pci.c static volatile void __iomem *u4_pcie_cfg_access(struct pci_controller* hose, hose 357 arch/powerpc/platforms/maple/pci.c if (bus == hose->first_busno) hose 364 arch/powerpc/platforms/maple/pci.c out_le32(hose->cfg_addr, caddr); hose 365 arch/powerpc/platforms/maple/pci.c } while (in_le32(hose->cfg_addr) != caddr); hose 368 arch/powerpc/platforms/maple/pci.c return hose->cfg_data + offset; hose 374 arch/powerpc/platforms/maple/pci.c struct pci_controller *hose; hose 377 arch/powerpc/platforms/maple/pci.c hose = pci_bus_to_host(bus); hose 378 arch/powerpc/platforms/maple/pci.c if (hose == NULL) hose 382 arch/powerpc/platforms/maple/pci.c addr = u4_pcie_cfg_access(hose, bus->number, devfn, offset); hose 405 arch/powerpc/platforms/maple/pci.c struct pci_controller *hose; hose 408 arch/powerpc/platforms/maple/pci.c hose = pci_bus_to_host(bus); hose 409 arch/powerpc/platforms/maple/pci.c if (hose == NULL) hose 413 arch/powerpc/platforms/maple/pci.c addr = u4_pcie_cfg_access(hose, bus->number, devfn, offset); hose 440 arch/powerpc/platforms/maple/pci.c static void __init setup_u3_agp(struct pci_controller* hose) hose 451 arch/powerpc/platforms/maple/pci.c hose->first_busno = 0xf0; hose 452 arch/powerpc/platforms/maple/pci.c hose->last_busno = 0xff; hose 453 arch/powerpc/platforms/maple/pci.c hose->ops = &u3_agp_pci_ops; hose 454 arch/powerpc/platforms/maple/pci.c hose->cfg_addr = ioremap(0xf0000000 + 0x800000, 0x1000); hose 455 arch/powerpc/platforms/maple/pci.c hose->cfg_data = ioremap(0xf0000000 + 0xc00000, 0x1000); hose 457 arch/powerpc/platforms/maple/pci.c u3_agp = hose; hose 460 arch/powerpc/platforms/maple/pci.c static void __init setup_u4_pcie(struct pci_controller* hose) hose 465 arch/powerpc/platforms/maple/pci.c hose->ops = &u4_pcie_pci_ops; hose 466 arch/powerpc/platforms/maple/pci.c hose->cfg_addr = ioremap(0xf0000000 + 0x800000, 0x1000); hose 467 arch/powerpc/platforms/maple/pci.c hose->cfg_data = ioremap(0xf0000000 + 0xc00000, 0x1000); hose 469 arch/powerpc/platforms/maple/pci.c u4_pcie = hose; hose 472 arch/powerpc/platforms/maple/pci.c static void __init setup_u3_ht(struct pci_controller* hose) hose 474 arch/powerpc/platforms/maple/pci.c hose->ops = &u3_ht_pci_ops; hose 480 arch/powerpc/platforms/maple/pci.c hose->cfg_data = ioremap(0xf2000000, 0x02000000); hose 481 arch/powerpc/platforms/maple/pci.c hose->cfg_addr = ioremap(0xf8070000, 0x1000); hose 483 arch/powerpc/platforms/maple/pci.c hose->first_busno = 0; hose 484 arch/powerpc/platforms/maple/pci.c hose->last_busno = 0xef; hose 486 arch/powerpc/platforms/maple/pci.c u3_ht = hose; hose 492 arch/powerpc/platforms/maple/pci.c struct pci_controller *hose; hose 505 arch/powerpc/platforms/maple/pci.c hose = pcibios_alloc_controller(dev); hose 506 arch/powerpc/platforms/maple/pci.c if (hose == NULL) hose 508 arch/powerpc/platforms/maple/pci.c hose->first_busno = bus_range ? bus_range[0] : 0; hose 509 arch/powerpc/platforms/maple/pci.c hose->last_busno = bus_range ? bus_range[1] : 0xff; hose 510 arch/powerpc/platforms/maple/pci.c hose->controller_ops = maple_pci_controller_ops; hose 514 arch/powerpc/platforms/maple/pci.c setup_u3_agp(hose); hose 518 arch/powerpc/platforms/maple/pci.c setup_u3_ht(hose); hose 522 arch/powerpc/platforms/maple/pci.c setup_u4_pcie(hose); hose 527 arch/powerpc/platforms/maple/pci.c disp_name, hose->first_busno, hose->last_busno); hose 531 arch/powerpc/platforms/maple/pci.c pci_process_bridge_OF_ranges(hose, dev, primary); hose 537 arch/powerpc/platforms/maple/pci.c isa_bridge_find_early(hose); hose 570 arch/powerpc/platforms/maple/pci.c struct pci_controller *hose = pci_bus_to_host(bridge->bus); hose 573 arch/powerpc/platforms/maple/pci.c if (hose != u3_agp) hose 580 arch/powerpc/platforms/maple/pci.c np = hose->dn; hose 39 arch/powerpc/platforms/pasemi/pci.c static void volatile __iomem *pa_pxp_cfg_addr(struct pci_controller *hose, hose 42 arch/powerpc/platforms/pasemi/pci.c return hose->cfg_data + PA_PXP_CFA(bus, devfn, offset); hose 60 arch/powerpc/platforms/pasemi/pci.c struct pci_controller *hose; hose 68 arch/powerpc/platforms/pasemi/pci.c hose = pci_bus_to_host(bus); hose 70 arch/powerpc/platforms/pasemi/pci.c addr = pa_pxp_cfg_addr(hose, bus->number, devfn, offset & ~0x3); hose 77 arch/powerpc/platforms/pasemi/pci.c dummy = pa_pxp_cfg_addr(hose, bus->number, devfn, 0x10); hose 158 arch/powerpc/platforms/pasemi/pci.c struct pci_controller *hose; hose 161 arch/powerpc/platforms/pasemi/pci.c hose = pci_bus_to_host(bus); hose 162 arch/powerpc/platforms/pasemi/pci.c if (!hose) hose 171 arch/powerpc/platforms/pasemi/pci.c addr = pa_pxp_cfg_addr(hose, bus->number, devfn, offset); hose 197 arch/powerpc/platforms/pasemi/pci.c struct pci_controller *hose; hose 200 arch/powerpc/platforms/pasemi/pci.c hose = pci_bus_to_host(bus); hose 201 arch/powerpc/platforms/pasemi/pci.c if (!hose) hose 207 arch/powerpc/platforms/pasemi/pci.c addr = pa_pxp_cfg_addr(hose, bus->number, devfn, offset); hose 234 arch/powerpc/platforms/pasemi/pci.c static void __init setup_pa_pxp(struct pci_controller *hose) hose 236 arch/powerpc/platforms/pasemi/pci.c hose->ops = &pa_pxp_ops; hose 237 arch/powerpc/platforms/pasemi/pci.c hose->cfg_data = ioremap(0xe0000000, 0x10000000); hose 242 arch/powerpc/platforms/pasemi/pci.c struct pci_controller *hose; hose 246 arch/powerpc/platforms/pasemi/pci.c hose = pcibios_alloc_controller(dev); hose 247 arch/powerpc/platforms/pasemi/pci.c if (!hose) hose 250 arch/powerpc/platforms/pasemi/pci.c hose->first_busno = 0; hose 251 arch/powerpc/platforms/pasemi/pci.c hose->last_busno = 0xff; hose 252 arch/powerpc/platforms/pasemi/pci.c hose->controller_ops = pasemi_pci_controller_ops; hose 254 arch/powerpc/platforms/pasemi/pci.c setup_pa_pxp(hose); hose 259 arch/powerpc/platforms/pasemi/pci.c pci_process_bridge_OF_ranges(hose, dev, 1); hose 265 arch/powerpc/platforms/pasemi/pci.c isa_bridge_find_early(hose); hose 292 arch/powerpc/platforms/pasemi/pci.c struct pci_controller *hose; hose 294 arch/powerpc/platforms/pasemi/pci.c hose = pci_bus_to_host(dev->bus); hose 296 arch/powerpc/platforms/pasemi/pci.c return (void __iomem *)pa_pxp_cfg_addr(hose, dev->bus->number, dev->devfn, offset); hose 139 arch/powerpc/platforms/powermac/pci.c struct pci_controller *hose; hose 141 arch/powerpc/platforms/powermac/pci.c hose = pci_bus_to_host(bus); hose 142 arch/powerpc/platforms/powermac/pci.c if (hose == NULL) hose 145 arch/powerpc/platforms/powermac/pci.c if (bus->number == hose->first_busno) { hose 154 arch/powerpc/platforms/powermac/pci.c out_le32(hose->cfg_addr, caddr); hose 155 arch/powerpc/platforms/powermac/pci.c } while (in_le32(hose->cfg_addr) != caddr); hose 158 arch/powerpc/platforms/powermac/pci.c return hose->cfg_data + offset; hose 203 arch/powerpc/platforms/powermac/pci.c static void __init setup_chaos(struct pci_controller *hose, hose 207 arch/powerpc/platforms/powermac/pci.c hose->ops = &chaos_pci_ops; hose 208 arch/powerpc/platforms/powermac/pci.c hose->cfg_addr = ioremap(addr->start + 0x800000, 0x1000); hose 209 arch/powerpc/platforms/powermac/pci.c hose->cfg_data = ioremap(addr->start + 0xc00000, 0x1000); hose 228 arch/powerpc/platforms/powermac/pci.c static int u3_ht_skip_device(struct pci_controller *hose, hose 244 arch/powerpc/platforms/powermac/pci.c busdn = hose->dn; hose 269 arch/powerpc/platforms/powermac/pci.c static void __iomem *u3_ht_cfg_access(struct pci_controller *hose, u8 bus, hose 273 arch/powerpc/platforms/powermac/pci.c if (bus == hose->first_busno) { hose 275 arch/powerpc/platforms/powermac/pci.c return hose->cfg_data + U3_HT_CFA0(devfn, offset); hose 277 arch/powerpc/platforms/powermac/pci.c return ((void __iomem *)hose->cfg_addr) + (offset << 2); hose 279 arch/powerpc/platforms/powermac/pci.c return hose->cfg_data + U3_HT_CFA1(bus, devfn, offset); hose 285 arch/powerpc/platforms/powermac/pci.c struct pci_controller *hose; hose 289 arch/powerpc/platforms/powermac/pci.c hose = pci_bus_to_host(bus); hose 290 arch/powerpc/platforms/powermac/pci.c if (hose == NULL) hose 294 arch/powerpc/platforms/powermac/pci.c addr = u3_ht_cfg_access(hose, bus->number, devfn, offset, &swap); hose 298 arch/powerpc/platforms/powermac/pci.c switch (u3_ht_skip_device(hose, bus, devfn)) { hose 336 arch/powerpc/platforms/powermac/pci.c struct pci_controller *hose; hose 340 arch/powerpc/platforms/powermac/pci.c hose = pci_bus_to_host(bus); hose 341 arch/powerpc/platforms/powermac/pci.c if (hose == NULL) hose 345 arch/powerpc/platforms/powermac/pci.c addr = u3_ht_cfg_access(hose, bus->number, devfn, offset, &swap); hose 349 arch/powerpc/platforms/powermac/pci.c switch (u3_ht_skip_device(hose, bus, devfn)) { hose 399 arch/powerpc/platforms/powermac/pci.c struct pci_controller *hose; hose 405 arch/powerpc/platforms/powermac/pci.c hose = pci_bus_to_host(bus); hose 406 arch/powerpc/platforms/powermac/pci.c if (!hose) hose 409 arch/powerpc/platforms/powermac/pci.c if (bus->number == hose->first_busno) { hose 416 arch/powerpc/platforms/powermac/pci.c out_le32(hose->cfg_addr, caddr); hose 417 arch/powerpc/platforms/powermac/pci.c } while (in_le32(hose->cfg_addr) != caddr); hose 420 arch/powerpc/platforms/powermac/pci.c return hose->cfg_data + offset; hose 493 arch/powerpc/platforms/powermac/pci.c struct pci_controller* hose; hose 509 arch/powerpc/platforms/powermac/pci.c hose = pci_find_hose_for_OF_device(p2pbridge); hose 510 arch/powerpc/platforms/powermac/pci.c if (!hose) { hose 514 arch/powerpc/platforms/powermac/pci.c if (early_read_config_word(hose, bus, devfn, hose 521 arch/powerpc/platforms/powermac/pci.c early_write_config_word(hose, bus, devfn, PCI_BRIDGE_CONTROL, val); hose 539 arch/powerpc/platforms/powermac/pci.c struct pci_controller* hose = hose 541 arch/powerpc/platforms/powermac/pci.c if (!hose) { hose 546 arch/powerpc/platforms/powermac/pci.c early_read_config_word(hose, bus, devfn, PCI_COMMAND, &cmd); hose 549 arch/powerpc/platforms/powermac/pci.c early_write_config_word(hose, bus, devfn, PCI_COMMAND, cmd); hose 566 arch/powerpc/platforms/powermac/pci.c struct pci_controller *hose; hose 588 arch/powerpc/platforms/powermac/pci.c hose = pci_find_hose_for_OF_device(nec); hose 589 arch/powerpc/platforms/powermac/pci.c if (!hose) hose 591 arch/powerpc/platforms/powermac/pci.c early_read_config_dword(hose, bus, devfn, 0xe4, &data); hose 596 arch/powerpc/platforms/powermac/pci.c early_write_config_dword(hose, bus, devfn, 0xe4, data); hose 601 arch/powerpc/platforms/powermac/pci.c static void __init setup_bandit(struct pci_controller *hose, hose 604 arch/powerpc/platforms/powermac/pci.c hose->ops = ¯isc_pci_ops; hose 605 arch/powerpc/platforms/powermac/pci.c hose->cfg_addr = ioremap(addr->start + 0x800000, 0x1000); hose 606 arch/powerpc/platforms/powermac/pci.c hose->cfg_data = ioremap(addr->start + 0xc00000, 0x1000); hose 607 arch/powerpc/platforms/powermac/pci.c init_bandit(hose); hose 610 arch/powerpc/platforms/powermac/pci.c static int __init setup_uninorth(struct pci_controller *hose, hose 615 arch/powerpc/platforms/powermac/pci.c hose->ops = ¯isc_pci_ops; hose 616 arch/powerpc/platforms/powermac/pci.c hose->cfg_addr = ioremap(addr->start + 0x800000, 0x1000); hose 617 arch/powerpc/platforms/powermac/pci.c hose->cfg_data = ioremap(addr->start + 0xc00000, 0x1000); hose 624 arch/powerpc/platforms/powermac/pci.c static void __init setup_u3_agp(struct pci_controller* hose) hose 635 arch/powerpc/platforms/powermac/pci.c hose->first_busno = 0xf0; hose 636 arch/powerpc/platforms/powermac/pci.c hose->last_busno = 0xff; hose 638 arch/powerpc/platforms/powermac/pci.c hose->ops = ¯isc_pci_ops; hose 639 arch/powerpc/platforms/powermac/pci.c hose->cfg_addr = ioremap(0xf0000000 + 0x800000, 0x1000); hose 640 arch/powerpc/platforms/powermac/pci.c hose->cfg_data = ioremap(0xf0000000 + 0xc00000, 0x1000); hose 641 arch/powerpc/platforms/powermac/pci.c u3_agp = hose; hose 644 arch/powerpc/platforms/powermac/pci.c static void __init setup_u4_pcie(struct pci_controller* hose) hose 649 arch/powerpc/platforms/powermac/pci.c hose->ops = &u4_pcie_pci_ops; hose 650 arch/powerpc/platforms/powermac/pci.c hose->cfg_addr = ioremap(0xf0000000 + 0x800000, 0x1000); hose 651 arch/powerpc/platforms/powermac/pci.c hose->cfg_data = ioremap(0xf0000000 + 0xc00000, 0x1000); hose 659 arch/powerpc/platforms/powermac/pci.c hose->first_busno = 0x00; hose 660 arch/powerpc/platforms/powermac/pci.c hose->last_busno = 0xff; hose 663 arch/powerpc/platforms/powermac/pci.c static void __init parse_region_decode(struct pci_controller *hose, hose 687 arch/powerpc/platforms/powermac/pci.c hose->mem_resources[cur].flags = IORESOURCE_MEM; hose 688 arch/powerpc/platforms/powermac/pci.c hose->mem_resources[cur].name = hose->dn->full_name; hose 689 arch/powerpc/platforms/powermac/pci.c hose->mem_resources[cur].start = base; hose 690 arch/powerpc/platforms/powermac/pci.c hose->mem_resources[cur].end = end; hose 691 arch/powerpc/platforms/powermac/pci.c hose->mem_offset[cur] = 0; hose 695 arch/powerpc/platforms/powermac/pci.c hose->mem_resources[cur].end = end; hose 701 arch/powerpc/platforms/powermac/pci.c static void __init setup_u3_ht(struct pci_controller* hose) hose 703 arch/powerpc/platforms/powermac/pci.c struct device_node *np = hose->dn; hose 707 arch/powerpc/platforms/powermac/pci.c hose->ops = &u3_ht_pci_ops; hose 720 arch/powerpc/platforms/powermac/pci.c hose->cfg_data = ioremap(cfg_res.start, 0x02000000); hose 721 arch/powerpc/platforms/powermac/pci.c hose->cfg_addr = ioremap(self_res.start, resource_size(&self_res)); hose 728 arch/powerpc/platforms/powermac/pci.c hose->io_base_phys = 0xf4000000; hose 729 arch/powerpc/platforms/powermac/pci.c hose->pci_io_size = 0x00400000; hose 730 arch/powerpc/platforms/powermac/pci.c hose->io_resource.name = np->full_name; hose 731 arch/powerpc/platforms/powermac/pci.c hose->io_resource.start = 0; hose 732 arch/powerpc/platforms/powermac/pci.c hose->io_resource.end = 0x003fffff; hose 733 arch/powerpc/platforms/powermac/pci.c hose->io_resource.flags = IORESOURCE_IO; hose 734 arch/powerpc/platforms/powermac/pci.c hose->first_busno = 0; hose 735 arch/powerpc/platforms/powermac/pci.c hose->last_busno = 0xef; hose 738 arch/powerpc/platforms/powermac/pci.c decode = in_be32(hose->cfg_addr + 0x80); hose 762 arch/powerpc/platforms/powermac/pci.c parse_region_decode(hose, decode); hose 774 arch/powerpc/platforms/powermac/pci.c struct pci_controller *hose; hose 792 arch/powerpc/platforms/powermac/pci.c hose = pcibios_alloc_controller(dev); hose 793 arch/powerpc/platforms/powermac/pci.c if (!hose) hose 795 arch/powerpc/platforms/powermac/pci.c hose->first_busno = bus_range ? bus_range[0] : 0; hose 796 arch/powerpc/platforms/powermac/pci.c hose->last_busno = bus_range ? bus_range[1] : 0xff; hose 797 arch/powerpc/platforms/powermac/pci.c hose->controller_ops = pmac_pci_controller_ops; hose 804 arch/powerpc/platforms/powermac/pci.c setup_u3_agp(hose); hose 808 arch/powerpc/platforms/powermac/pci.c setup_u3_ht(hose); hose 812 arch/powerpc/platforms/powermac/pci.c setup_u4_pcie(hose); hose 817 arch/powerpc/platforms/powermac/pci.c " %d->%d\n", disp_name, hose->first_busno, hose->last_busno); hose 823 arch/powerpc/platforms/powermac/pci.c primary = setup_uninorth(hose, &rsrc); hose 827 arch/powerpc/platforms/powermac/pci.c setup_grackle(hose); hose 830 arch/powerpc/platforms/powermac/pci.c setup_bandit(hose, &rsrc); hose 833 arch/powerpc/platforms/powermac/pci.c setup_chaos(hose, &rsrc); hose 839 arch/powerpc/platforms/powermac/pci.c disp_name, (unsigned long long)rsrc.start, hose->first_busno, hose 840 arch/powerpc/platforms/powermac/pci.c hose->last_busno); hose 844 arch/powerpc/platforms/powermac/pci.c hose, hose->cfg_addr, hose->cfg_data); hose 848 arch/powerpc/platforms/powermac/pci.c pci_process_bridge_OF_ranges(hose, dev, primary); hose 878 arch/powerpc/platforms/powermac/pci.c struct pci_controller *hose = pci_bus_to_host(bridge->bus); hose 881 arch/powerpc/platforms/powermac/pci.c if (hose != u3_agp) hose 889 arch/powerpc/platforms/powermac/pci.c np = hose->dn; hose 56 arch/powerpc/platforms/powernv/eeh-powernv.c struct pci_controller *hose; hose 74 arch/powerpc/platforms/powernv/eeh-powernv.c list_for_each_entry(hose, &hose_list, list_node) { hose 75 arch/powerpc/platforms/powernv/eeh-powernv.c phb = hose->private_data; hose 123 arch/powerpc/platforms/powernv/eeh-powernv.c struct pci_controller *hose = filp->private_data; hose 145 arch/powerpc/platforms/powernv/eeh-powernv.c pe = eeh_pe_get(hose, pe_no, 0); hose 162 arch/powerpc/platforms/powernv/eeh-powernv.c struct pci_controller *hose = data; hose 163 arch/powerpc/platforms/powernv/eeh-powernv.c struct pnv_phb *phb = hose->private_data; hose 171 arch/powerpc/platforms/powernv/eeh-powernv.c struct pci_controller *hose = data; hose 172 arch/powerpc/platforms/powernv/eeh-powernv.c struct pnv_phb *phb = hose->private_data; hose 202 arch/powerpc/platforms/powernv/eeh-powernv.c struct pci_controller *hose; hose 205 arch/powerpc/platforms/powernv/eeh-powernv.c list_for_each_entry(hose, &hose_list, list_node) { hose 206 arch/powerpc/platforms/powernv/eeh-powernv.c phb = hose->private_data; hose 229 arch/powerpc/platforms/powernv/eeh-powernv.c struct pci_controller *hose; hose 257 arch/powerpc/platforms/powernv/eeh-powernv.c list_for_each_entry(hose, &hose_list, list_node) { hose 258 arch/powerpc/platforms/powernv/eeh-powernv.c phb = hose->private_data; hose 267 arch/powerpc/platforms/powernv/eeh-powernv.c phb->dbgfs, hose, hose 271 arch/powerpc/platforms/powernv/eeh-powernv.c phb->dbgfs, hose, hose 274 arch/powerpc/platforms/powernv/eeh-powernv.c phb->dbgfs, hose, hose 277 arch/powerpc/platforms/powernv/eeh-powernv.c phb->dbgfs, hose, hose 367 arch/powerpc/platforms/powernv/eeh-powernv.c struct pci_controller *hose = pdn->phb; hose 368 arch/powerpc/platforms/powernv/eeh-powernv.c struct pnv_phb *phb = hose->private_data; hose 453 arch/powerpc/platforms/powernv/eeh-powernv.c edev->pe->bus = pci_find_bus(hose->global_number, hose 488 arch/powerpc/platforms/powernv/eeh-powernv.c struct pci_controller *hose = pe->phb; hose 489 arch/powerpc/platforms/powernv/eeh-powernv.c struct pnv_phb *phb = hose->private_data; hose 524 arch/powerpc/platforms/powernv/eeh-powernv.c __func__, rc, phb->hose->global_number, hose 539 arch/powerpc/platforms/powernv/eeh-powernv.c __func__, rc, option, phb->hose->global_number, hose 586 arch/powerpc/platforms/powernv/eeh-powernv.c __func__, rc, phb->hose->global_number); hose 646 arch/powerpc/platforms/powernv/eeh-powernv.c __func__, rc, phb->hose->global_number, hose 683 arch/powerpc/platforms/powernv/eeh-powernv.c __func__, phb->hose->global_number, hose 764 arch/powerpc/platforms/powernv/eeh-powernv.c int pnv_eeh_phb_reset(struct pci_controller *hose, int option) hose 766 arch/powerpc/platforms/powernv/eeh-powernv.c struct pnv_phb *phb = hose->private_data; hose 770 arch/powerpc/platforms/powernv/eeh-powernv.c __func__, hose->global_number, option); hose 806 arch/powerpc/platforms/powernv/eeh-powernv.c static int pnv_eeh_root_reset(struct pci_controller *hose, int option) hose 808 arch/powerpc/platforms/powernv/eeh-powernv.c struct pnv_phb *phb = hose->private_data; hose 812 arch/powerpc/platforms/powernv/eeh-powernv.c __func__, hose->global_number, option); hose 899 arch/powerpc/platforms/powernv/eeh-powernv.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); hose 900 arch/powerpc/platforms/powernv/eeh-powernv.c struct pnv_phb *phb = hose->private_data; hose 941 arch/powerpc/platforms/powernv/eeh-powernv.c struct pci_controller *hose; hose 944 arch/powerpc/platforms/powernv/eeh-powernv.c hose = pci_bus_to_host(dev->bus); hose 945 arch/powerpc/platforms/powernv/eeh-powernv.c pnv_eeh_root_reset(hose, EEH_RESET_HOT); hose 946 arch/powerpc/platforms/powernv/eeh-powernv.c pnv_eeh_root_reset(hose, EEH_RESET_DEACTIVATE); hose 1080 arch/powerpc/platforms/powernv/eeh-powernv.c struct pci_controller *hose = pe->phb; hose 1100 arch/powerpc/platforms/powernv/eeh-powernv.c return pnv_eeh_phb_reset(hose, option); hose 1109 arch/powerpc/platforms/powernv/eeh-powernv.c phb = hose->private_data; hose 1134 arch/powerpc/platforms/powernv/eeh-powernv.c return pnv_eeh_root_reset(hose, option); hose 1163 arch/powerpc/platforms/powernv/eeh-powernv.c return pnv_eeh_root_reset(hose, option); hose 1213 arch/powerpc/platforms/powernv/eeh-powernv.c struct pci_controller *hose = pe->phb; hose 1214 arch/powerpc/platforms/powernv/eeh-powernv.c struct pnv_phb *phb = hose->private_data; hose 1245 arch/powerpc/platforms/powernv/eeh-powernv.c hose->global_number, pe->addr); hose 1322 arch/powerpc/platforms/powernv/eeh-powernv.c static void pnv_eeh_get_and_dump_hub_diag(struct pci_controller *hose) hose 1324 arch/powerpc/platforms/powernv/eeh-powernv.c struct pnv_phb *phb = hose->private_data; hose 1380 arch/powerpc/platforms/powernv/eeh-powernv.c static int pnv_eeh_get_pe(struct pci_controller *hose, hose 1383 arch/powerpc/platforms/powernv/eeh-powernv.c struct pnv_phb *phb = hose->private_data; hose 1401 arch/powerpc/platforms/powernv/eeh-powernv.c dev_pe = eeh_pe_get(hose, pe_no, 0); hose 1448 arch/powerpc/platforms/powernv/eeh-powernv.c struct pci_controller *hose; hose 1462 arch/powerpc/platforms/powernv/eeh-powernv.c list_for_each_entry(hose, &hose_list, list_node) { hose 1468 arch/powerpc/platforms/powernv/eeh-powernv.c phb = hose->private_data; hose 1469 arch/powerpc/platforms/powernv/eeh-powernv.c phb_pe = eeh_phb_pe_get(hose); hose 1478 arch/powerpc/platforms/powernv/eeh-powernv.c __func__, hose->global_number, rc); hose 1486 arch/powerpc/platforms/powernv/eeh-powernv.c __func__, hose->global_number); hose 1498 arch/powerpc/platforms/powernv/eeh-powernv.c hose->global_number); hose 1507 arch/powerpc/platforms/powernv/eeh-powernv.c pnv_eeh_get_and_dump_hub_diag(hose); hose 1517 arch/powerpc/platforms/powernv/eeh-powernv.c hose->global_number, hose 1525 arch/powerpc/platforms/powernv/eeh-powernv.c hose->global_number, hose 1531 arch/powerpc/platforms/powernv/eeh-powernv.c hose->global_number, hose 1534 arch/powerpc/platforms/powernv/eeh-powernv.c pnv_pci_dump_phb_diag_data(hose, phb_pe->data); hose 1544 arch/powerpc/platforms/powernv/eeh-powernv.c if (pnv_eeh_get_pe(hose, hose 1547 arch/powerpc/platforms/powernv/eeh-powernv.c hose->global_number, be64_to_cpu(frozen_pe_no)); hose 1555 arch/powerpc/platforms/powernv/eeh-powernv.c pnv_pci_dump_phb_diag_data(hose, hose 101 arch/powerpc/platforms/powernv/npu-dma.c struct pci_controller *hose; hose 114 arch/powerpc/platforms/powernv/npu-dma.c hose = pci_bus_to_host(pdev->bus); hose 115 arch/powerpc/platforms/powernv/npu-dma.c phb = hose->private_data; hose 162 arch/powerpc/platforms/powernv/npu-dma.c pnv_pci_link_table_and_group(phb->hose->node, num, hose 433 arch/powerpc/platforms/powernv/npu-dma.c struct pci_controller *hose; hose 446 arch/powerpc/platforms/powernv/npu-dma.c hose = pci_bus_to_host(npdev->bus); hose 448 arch/powerpc/platforms/powernv/npu-dma.c if (hose->npu) { hose 449 arch/powerpc/platforms/powernv/npu-dma.c table_group = &hose->npu->npucomp.table_group; hose 454 arch/powerpc/platforms/powernv/npu-dma.c hose->global_number, hose 462 arch/powerpc/platforms/powernv/npu-dma.c iommu_register_group(table_group, hose->global_number, hose 513 arch/powerpc/platforms/powernv/npu-dma.c list_for_each_entry(npdev, &pe->phb->hose->bus->devices, bus_list) { hose 526 arch/powerpc/platforms/powernv/npu-dma.c int pnv_npu2_init(struct pci_controller *hose) hose 542 arch/powerpc/platforms/powernv/npu-dma.c hose->npu = npu; hose 556 arch/powerpc/platforms/powernv/npu-dma.c struct pci_controller *hose; hose 562 arch/powerpc/platforms/powernv/npu-dma.c hose = pci_bus_to_host(npdev->bus); hose 563 arch/powerpc/platforms/powernv/npu-dma.c nphb = hose->private_data; hose 603 arch/powerpc/platforms/powernv/npu-dma.c struct pci_controller *hose; hose 609 arch/powerpc/platforms/powernv/npu-dma.c hose = pci_bus_to_host(npdev->bus); hose 610 arch/powerpc/platforms/powernv/npu-dma.c nphb = hose->private_data; hose 164 arch/powerpc/platforms/powernv/ocxl.c struct pci_controller *hose = pci_bus_to_host(dev->bus); hose 165 arch/powerpc/platforms/powernv/ocxl.c struct pnv_phb *phb = hose->private_data; hose 355 arch/powerpc/platforms/powernv/ocxl.c struct pci_controller *hose = pci_bus_to_host(dev->bus); hose 356 arch/powerpc/platforms/powernv/ocxl.c struct pnv_phb *phb = hose->private_data; hose 442 arch/powerpc/platforms/powernv/ocxl.c struct pci_controller *hose = pci_bus_to_host(dev->bus); hose 443 arch/powerpc/platforms/powernv/ocxl.c struct pnv_phb *phb = hose->private_data; hose 14 arch/powerpc/platforms/powernv/pci-cxl.c struct pci_controller *hose = pci_bus_to_host(dev->bus); hose 15 arch/powerpc/platforms/powernv/pci-cxl.c struct pnv_phb *phb = hose->private_data; hose 40 arch/powerpc/platforms/powernv/pci-cxl.c struct pci_controller *hose = pci_bus_to_host(dev->bus); hose 41 arch/powerpc/platforms/powernv/pci-cxl.c struct pnv_phb *phb = hose->private_data; hose 55 arch/powerpc/platforms/powernv/pci-cxl.c struct pci_controller *hose = pci_bus_to_host(dev->bus); hose 56 arch/powerpc/platforms/powernv/pci-cxl.c struct pnv_phb *phb = hose->private_data; hose 65 arch/powerpc/platforms/powernv/pci-cxl.c struct pci_controller *hose = pci_bus_to_host(dev->bus); hose 66 arch/powerpc/platforms/powernv/pci-cxl.c struct pnv_phb *phb = hose->private_data; hose 85 arch/powerpc/platforms/powernv/pci-cxl.c struct pci_controller *hose = pci_bus_to_host(dev->bus); hose 86 arch/powerpc/platforms/powernv/pci-cxl.c struct pnv_phb *phb = hose->private_data; hose 121 arch/powerpc/platforms/powernv/pci-cxl.c struct pci_controller *hose = pci_bus_to_host(dev->bus); hose 122 arch/powerpc/platforms/powernv/pci-cxl.c struct pnv_phb *phb = hose->private_data; hose 131 arch/powerpc/platforms/powernv/pci-cxl.c struct pci_controller *hose = pci_bus_to_host(dev->bus); hose 132 arch/powerpc/platforms/powernv/pci-cxl.c struct pnv_phb *phb = hose->private_data; hose 153 arch/powerpc/platforms/powernv/pci-ioda.c __func__, rc, phb->hose->global_number, pe_no); hose 162 arch/powerpc/platforms/powernv/pci-ioda.c __func__, pe_no, phb->hose->global_number); hose 168 arch/powerpc/platforms/powernv/pci-ioda.c __func__, pe_no, phb->hose->global_number); hose 230 arch/powerpc/platforms/powernv/pci-ioda.c r = &phb->hose->mem_resources[1]; hose 254 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); hose 255 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_phb *phb = hose->private_data; hose 299 arch/powerpc/platforms/powernv/pci-ioda.c rc, phb->hose->global_number, index); hose 308 arch/powerpc/platforms/powernv/pci-ioda.c rc, phb->hose->global_number, index); hose 317 arch/powerpc/platforms/powernv/pci-ioda.c r = &phb->hose->mem_resources[1]; hose 324 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.reserved_pe_idx, phb->hose->global_number); hose 353 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(bus); hose 354 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_phb *phb = hose->private_data; hose 422 arch/powerpc/platforms/powernv/pci-ioda.c __func__, rc, phb->hose->global_number, hose 433 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = phb->hose; hose 434 arch/powerpc/platforms/powernv/pci-ioda.c struct device_node *dn = hose->dn; hose 470 arch/powerpc/platforms/powernv/pci-ioda.c __func__, m64_range[1], phb->hose->global_number); hose 476 arch/powerpc/platforms/powernv/pci-ioda.c __func__, phb->hose->global_number); hose 481 arch/powerpc/platforms/powernv/pci-ioda.c res = &hose->mem_resources[1]; hose 487 arch/powerpc/platforms/powernv/pci-ioda.c hose->mem_offset[1] = res->start - pci_addr; hose 542 arch/powerpc/platforms/powernv/pci-ioda.c __func__, rc, phb->hose->global_number, pe_no); hose 556 arch/powerpc/platforms/powernv/pci-ioda.c __func__, rc, phb->hose->global_number, hose 578 arch/powerpc/platforms/powernv/pci-ioda.c __func__, rc, opt, phb->hose->global_number, pe_no); hose 592 arch/powerpc/platforms/powernv/pci-ioda.c __func__, rc, opt, phb->hose->global_number, hose 630 arch/powerpc/platforms/powernv/pci-ioda.c phb->hose->global_number, pe_no); hose 648 arch/powerpc/platforms/powernv/pci-ioda.c phb->hose->global_number, slave->pe_number); hose 665 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(dev->bus); hose 666 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_phb *phb = hose->private_data; hose 1045 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(dev->bus); hose 1046 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_phb *phb = hose->private_data; hose 1133 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(bus); hose 1134 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_phb *phb = hose->private_data; hose 1205 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(npu_pdev->bus); hose 1206 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_phb *phb = hose->private_data; hose 1269 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose; hose 1275 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry(hose, &hose_list, list_node) { hose 1276 arch/powerpc/platforms/powernv/pci-ioda.c phb = hose->private_data; hose 1280 arch/powerpc/platforms/powernv/pci-ioda.c pnv_ioda_setup_npu_PEs(hose->bus); hose 1282 arch/powerpc/platforms/powernv/pci-ioda.c WARN_ON_ONCE(pnv_npu2_init(hose)); hose 1285 arch/powerpc/platforms/powernv/pci-ioda.c bus = hose->bus; hose 1290 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry(hose, &hose_list, list_node) { hose 1291 arch/powerpc/platforms/powernv/pci-ioda.c phb = hose->private_data; hose 1304 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose; hose 1311 arch/powerpc/platforms/powernv/pci-ioda.c hose = pci_bus_to_host(bus); hose 1312 arch/powerpc/platforms/powernv/pci-ioda.c phb = hose->private_data; hose 1337 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose; hose 1350 arch/powerpc/platforms/powernv/pci-ioda.c hose = pci_bus_to_host(bus); hose 1351 arch/powerpc/platforms/powernv/pci-ioda.c phb = hose->private_data; hose 1463 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose; hose 1469 arch/powerpc/platforms/powernv/pci-ioda.c hose = pci_bus_to_host(bus); hose 1470 arch/powerpc/platforms/powernv/pci-ioda.c phb = hose->private_data; hose 1496 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose; hose 1503 arch/powerpc/platforms/powernv/pci-ioda.c hose = pci_bus_to_host(bus); hose 1504 arch/powerpc/platforms/powernv/pci-ioda.c phb = hose->private_data; hose 1544 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose; hose 1552 arch/powerpc/platforms/powernv/pci-ioda.c hose = pci_bus_to_host(bus); hose 1553 arch/powerpc/platforms/powernv/pci-ioda.c phb = hose->private_data; hose 1580 arch/powerpc/platforms/powernv/pci-ioda.c hose->global_number, pdev->bus->number, hose 1607 arch/powerpc/platforms/powernv/pci-ioda.c pe->phb->hose->global_number, pe->pe_number); hose 1616 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose; hose 1624 arch/powerpc/platforms/powernv/pci-ioda.c hose = pci_bus_to_host(bus); hose 1625 arch/powerpc/platforms/powernv/pci-ioda.c phb = hose->private_data; hose 1807 arch/powerpc/platforms/powernv/pci-ioda.c table_pages = alloc_pages_node(pe->phb->hose->node, GFP_KERNEL, hose 1843 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); hose 1844 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_phb *phb = hose->private_data; hose 2189 arch/powerpc/platforms/powernv/pci-ioda.c pci_walk_bus(phb->hose->bus, pnv_pci_ioda_dev_dma_weight, hose 2220 arch/powerpc/platforms/powernv/pci-ioda.c tbl = pnv_pci_table_alloc(phb->hose->node); hose 2224 arch/powerpc/platforms/powernv/pci-ioda.c iommu_register_group(&pe->table_group, phb->hose->global_number, hose 2226 arch/powerpc/platforms/powernv/pci-ioda.c pnv_pci_link_table_and_group(phb->hose->node, 0, tbl, &pe->table_group); hose 2244 arch/powerpc/platforms/powernv/pci-ioda.c tce_mem = alloc_pages_node(phb->hose->node, GFP_KERNEL, hose 2279 arch/powerpc/platforms/powernv/pci-ioda.c iommu_init_table(tbl, phb->hose->node, 0, 0); hose 2327 arch/powerpc/platforms/powernv/pci-ioda.c pnv_pci_link_table_and_group(phb->hose->node, num, hose 2368 arch/powerpc/platforms/powernv/pci-ioda.c int nid = pe->phb->hose->node; hose 2449 arch/powerpc/platforms/powernv/pci-ioda.c iommu_init_table(tbl, pe->phb->hose->node, res_start, res_end); hose 2612 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose; hose 2630 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry(hose, &hose_list, list_node) { hose 2631 arch/powerpc/platforms/powernv/pci-ioda.c phb = hose->private_data; hose 2647 arch/powerpc/platforms/powernv/pci-ioda.c pe->phb->hose->global_number, hose 2659 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry(hose, &hose_list, list_node) { hose 2662 arch/powerpc/platforms/powernv/pci-ioda.c phb = hose->private_data; hose 2685 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = phb->hose; hose 2686 arch/powerpc/platforms/powernv/pci-ioda.c struct device_node *dn = hose->dn; hose 2868 arch/powerpc/platforms/powernv/pci-ioda.c const __be32 *prop = of_get_property(phb->hose->dn, hose 2872 arch/powerpc/platforms/powernv/pci-ioda.c prop = of_get_property(phb->hose->dn, "msi-ranges", NULL); hose 2879 arch/powerpc/platforms/powernv/pci-ioda.c if (msi_bitmap_alloc(&phb->msi_bmp, count, phb->hose->dn)) { hose 2881 arch/powerpc/platforms/powernv/pci-ioda.c phb->hose->global_number); hose 2894 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); hose 2895 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_phb *phb = hose->private_data; hose 3036 arch/powerpc/platforms/powernv/pci-ioda.c phb->hose->mem_offset[0] - hose 3039 arch/powerpc/platforms/powernv/pci-ioda.c phb->hose->mem_offset[0] - hose 3097 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose; hose 3104 arch/powerpc/platforms/powernv/pci-ioda.c hose = (struct pci_controller *)data; hose 3105 arch/powerpc/platforms/powernv/pci-ioda.c if (!hose || !hose->private_data) hose 3108 arch/powerpc/platforms/powernv/pci-ioda.c phb = hose->private_data; hose 3117 arch/powerpc/platforms/powernv/pci-ioda.c pnv_pci_dump_phb_diag_data(phb->hose, phb->diag_data); hose 3129 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose, *tmp; hose 3133 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry_safe(hose, tmp, &hose_list, list_node) { hose 3134 arch/powerpc/platforms/powernv/pci-ioda.c phb = hose->private_data; hose 3139 arch/powerpc/platforms/powernv/pci-ioda.c sprintf(name, "PCI%04x", hose->global_number); hose 3143 arch/powerpc/platforms/powernv/pci-ioda.c __func__, hose->global_number); hose 3147 arch/powerpc/platforms/powernv/pci-ioda.c debugfs_create_file("dump_diag_regs", 0200, phb->dbgfs, hose, hose 3182 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose; hose 3184 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry(hose, &hose_list, list_node) hose 3185 arch/powerpc/platforms/powernv/pci-ioda.c pnv_pci_enable_bridge(hose->bus); hose 3217 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(bus); hose 3218 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_phb *phb = hose->private_data; hose 3256 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(bus); hose 3257 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_phb *phb = hose->private_data; hose 3276 arch/powerpc/platforms/powernv/pci-ioda.c w = &hose->io_resource; hose 3280 arch/powerpc/platforms/powernv/pci-ioda.c w = &hose->mem_resources[1]; hose 3282 arch/powerpc/platforms/powernv/pci-ioda.c w = &hose->mem_resources[0]; hose 3305 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(bus); hose 3306 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_phb *phb = hose->private_data; hose 3316 arch/powerpc/platforms/powernv/pci-ioda.c pe = pnv_ioda_setup_bus_PE(phb->hose->bus, false); hose 3349 arch/powerpc/platforms/powernv/pci-ioda.c __func__, phb->hose->global_number, phb->type); hose 3362 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); hose 3363 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_phb *phb = hose->private_data; hose 3399 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(dev->bus); hose 3400 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_phb *phb = hose->private_data; hose 3585 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); hose 3586 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_phb *phb = hose->private_data; hose 3621 arch/powerpc/platforms/powernv/pci-ioda.c static void pnv_pci_ioda_shutdown(struct pci_controller *hose) hose 3623 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_phb *phb = hose->private_data; hose 3664 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose; hose 3696 arch/powerpc/platforms/powernv/pci-ioda.c phb->hose = hose = pcibios_alloc_controller(np); hose 3697 arch/powerpc/platforms/powernv/pci-ioda.c if (!phb->hose) { hose 3707 arch/powerpc/platforms/powernv/pci-ioda.c hose->first_busno = be32_to_cpu(prop32[0]); hose 3708 arch/powerpc/platforms/powernv/pci-ioda.c hose->last_busno = be32_to_cpu(prop32[1]); hose 3711 arch/powerpc/platforms/powernv/pci-ioda.c hose->first_busno = 0; hose 3712 arch/powerpc/platforms/powernv/pci-ioda.c hose->last_busno = 0xff; hose 3714 arch/powerpc/platforms/powernv/pci-ioda.c hose->private_data = phb; hose 3745 arch/powerpc/platforms/powernv/pci-ioda.c pci_process_bridge_OF_ranges(hose, np, !hose->global_number); hose 3771 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m32_size = resource_size(&hose->mem_resources[0]); hose 3776 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.m32_pci_base = hose->mem_resources[0].start - hose->mem_offset[0]; hose 3777 arch/powerpc/platforms/powernv/pci-ioda.c phb->ioda.io_size = hose->pci_io_size; hose 3865 arch/powerpc/platforms/powernv/pci-ioda.c phb->hose->ops = &pnv_pci_ops; hose 3884 arch/powerpc/platforms/powernv/pci-ioda.c hose->controller_ops = pnv_npu_ioda_controller_ops; hose 3887 arch/powerpc/platforms/powernv/pci-ioda.c hose->controller_ops = pnv_npu_ocapi_ioda_controller_ops; hose 3891 arch/powerpc/platforms/powernv/pci-ioda.c hose->controller_ops = pnv_pci_ioda_controller_ops; hose 3922 arch/powerpc/platforms/powernv/pci-ioda.c pnv_eeh_phb_reset(hose, EEH_RESET_FUNDAMENTAL); hose 3923 arch/powerpc/platforms/powernv/pci-ioda.c pnv_eeh_phb_reset(hose, EEH_RESET_DEACTIVATE); hose 3928 arch/powerpc/platforms/powernv/pci-ioda.c hose->mem_resources[1].flags = 0; hose 3948 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(dev->bus); hose 3949 arch/powerpc/platforms/powernv/pci-ioda.c struct pnv_phb *phb = hose->private_data; hose 161 arch/powerpc/platforms/powernv/pci.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); hose 162 arch/powerpc/platforms/powernv/pci.c struct pnv_phb *phb = hose->private_data; hose 210 arch/powerpc/platforms/powernv/pci.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); hose 211 arch/powerpc/platforms/powernv/pci.c struct pnv_phb *phb = hose->private_data; hose 257 arch/powerpc/platforms/powernv/pci.c static void pnv_pci_dump_p7ioc_diag_data(struct pci_controller *hose, hose 264 arch/powerpc/platforms/powernv/pci.c hose->global_number, be32_to_cpu(common->version)); hose 340 arch/powerpc/platforms/powernv/pci.c static void pnv_pci_dump_phb3_diag_data(struct pci_controller *hose, hose 347 arch/powerpc/platforms/powernv/pci.c hose->global_number, be32_to_cpu(common->version)); hose 427 arch/powerpc/platforms/powernv/pci.c static void pnv_pci_dump_phb4_diag_data(struct pci_controller *hose, hose 434 arch/powerpc/platforms/powernv/pci.c hose->global_number, be32_to_cpu(common->version)); hose 529 arch/powerpc/platforms/powernv/pci.c void pnv_pci_dump_phb_diag_data(struct pci_controller *hose, hose 534 arch/powerpc/platforms/powernv/pci.c if (!hose || !log_buff) hose 540 arch/powerpc/platforms/powernv/pci.c pnv_pci_dump_p7ioc_diag_data(hose, common); hose 543 arch/powerpc/platforms/powernv/pci.c pnv_pci_dump_phb3_diag_data(hose, common); hose 546 arch/powerpc/platforms/powernv/pci.c pnv_pci_dump_phb4_diag_data(hose, common); hose 578 arch/powerpc/platforms/powernv/pci.c __func__, rc, phb->hose->global_number, hose 591 arch/powerpc/platforms/powernv/pci.c pnv_pci_dump_phb_diag_data(phb->hose, phb->diag_data); hose 628 arch/powerpc/platforms/powernv/pci.c __func__, rc, phb->hose->global_number, pe_no); hose 815 arch/powerpc/platforms/powernv/pci.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); hose 816 arch/powerpc/platforms/powernv/pci.c struct pnv_phb *phb = hose->private_data; hose 824 arch/powerpc/platforms/powernv/pci.c struct pci_controller *hose = bus->sysdata; hose 825 arch/powerpc/platforms/powernv/pci.c struct pnv_phb *phb = hose->private_data; hose 844 arch/powerpc/platforms/powernv/pci.c struct pci_controller *hose = pci_bus_to_host(dev->bus); hose 846 arch/powerpc/platforms/powernv/pci.c return of_node_get(hose->dn); hose 853 arch/powerpc/platforms/powernv/pci.c struct pci_controller *hose; hose 863 arch/powerpc/platforms/powernv/pci.c hose = pci_bus_to_host(dev->bus); hose 864 arch/powerpc/platforms/powernv/pci.c phb = hose->private_data; hose 906 arch/powerpc/platforms/powernv/pci.c struct pci_controller *hose; hose 908 arch/powerpc/platforms/powernv/pci.c list_for_each_entry(hose, &hose_list, list_node) hose 909 arch/powerpc/platforms/powernv/pci.c if (hose->controller_ops.shutdown) hose 910 arch/powerpc/platforms/powernv/pci.c hose->controller_ops.shutdown(hose); hose 986 arch/powerpc/platforms/powernv/pci.c struct pci_controller *hose; hose 993 arch/powerpc/platforms/powernv/pci.c hose = pci_bus_to_host(pdev->bus); hose 994 arch/powerpc/platforms/powernv/pci.c phb = hose->private_data; hose 89 arch/powerpc/platforms/powernv/pci.h struct pci_controller *hose; hose 176 arch/powerpc/platforms/powernv/pci.h void pnv_pci_dump_phb_diag_data(struct pci_controller *hose, hose 190 arch/powerpc/platforms/powernv/pci.h extern int pnv_eeh_phb_reset(struct pci_controller *hose, int option); hose 228 arch/powerpc/platforms/pseries/pci.c struct pci_controller *hose; hose 238 arch/powerpc/platforms/pseries/pci.c list_for_each_entry(hose, &hose_list, list_node) { hose 239 arch/powerpc/platforms/pseries/pci.c struct device_node *dn = hose->dn, *nvdn; hose 254 arch/powerpc/platforms/pseries/pci.c WARN_ON_ONCE(pnv_npu2_init(hose)); hose 146 arch/powerpc/sysdev/fsl_msi.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); hose 152 arch/powerpc/sysdev/fsl_msi.c reg = of_get_property(hose->dn, "msi-address-64", &len); hose 156 arch/powerpc/sysdev/fsl_msi.c address = fsl_pci_immrbar_base(hose) + msi_data->msiir_offset; hose 180 arch/powerpc/sysdev/fsl_msi.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); hose 204 arch/powerpc/sysdev/fsl_msi.c np = of_parse_phandle(hose->dn, "fsl,msi", 0); hose 213 arch/powerpc/sysdev/fsl_msi.c hose->dn, np->phandle); hose 66 arch/powerpc/sysdev/fsl_pci.c static int fsl_pcie_check_link(struct pci_controller *hose) hose 70 arch/powerpc/sysdev/fsl_pci.c if (hose->indirect_type & PPC_INDIRECT_TYPE_FSL_CFG_REG_LINK) { hose 71 arch/powerpc/sysdev/fsl_pci.c if (hose->ops->read == fsl_indirect_read_config) hose 72 arch/powerpc/sysdev/fsl_pci.c __indirect_read_config(hose, hose->first_busno, 0, hose 75 arch/powerpc/sysdev/fsl_pci.c early_read_config_dword(hose, 0, 0, PCIE_LTSSM, &val); hose 79 arch/powerpc/sysdev/fsl_pci.c struct ccsr_pci __iomem *pci = hose->private_data; hose 93 arch/powerpc/sysdev/fsl_pci.c struct pci_controller *hose = pci_bus_to_host(bus); hose 95 arch/powerpc/sysdev/fsl_pci.c if (fsl_pcie_check_link(hose)) hose 96 arch/powerpc/sysdev/fsl_pci.c hose->indirect_type |= PPC_INDIRECT_TYPE_NO_PCIE_LINK; hose 98 arch/powerpc/sysdev/fsl_pci.c hose->indirect_type &= ~PPC_INDIRECT_TYPE_NO_PCIE_LINK; hose 116 arch/powerpc/sysdev/fsl_pci.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); hose 119 arch/powerpc/sysdev/fsl_pci.c hose->dma_window_base_cur + hose->dma_window_size; hose 122 arch/powerpc/sysdev/fsl_pci.c static void setup_swiotlb_ops(struct pci_controller *hose) hose 125 arch/powerpc/sysdev/fsl_pci.c hose->controller_ops.dma_dev_setup = pci_dma_dev_setup_swiotlb; hose 128 arch/powerpc/sysdev/fsl_pci.c static inline void setup_swiotlb_ops(struct pci_controller *hose) {} hose 193 arch/powerpc/sysdev/fsl_pci.c static void setup_pci_atmu(struct pci_controller *hose) hose 195 arch/powerpc/sysdev/fsl_pci.c struct ccsr_pci __iomem *pci = hose->private_data; hose 215 arch/powerpc/sysdev/fsl_pci.c if (of_device_is_compatible(hose->dn, "fsl,bsc9132-pcie")) { hose 228 arch/powerpc/sysdev/fsl_pci.c if (early_find_capability(hose, 0, 0, PCI_CAP_ID_EXP)) { hose 247 arch/powerpc/sysdev/fsl_pci.c if (!(hose->mem_resources[i].flags & IORESOURCE_MEM)) hose 250 arch/powerpc/sysdev/fsl_pci.c paddr_lo = min(paddr_lo, (u64)hose->mem_resources[i].start); hose 251 arch/powerpc/sysdev/fsl_pci.c paddr_hi = max(paddr_hi, (u64)hose->mem_resources[i].end); hose 254 arch/powerpc/sysdev/fsl_pci.c offset = hose->mem_offset[i]; hose 255 arch/powerpc/sysdev/fsl_pci.c n = setup_one_atmu(pci, j, &hose->mem_resources[i], offset); hose 259 arch/powerpc/sysdev/fsl_pci.c hose->mem_resources[i].flags |= IORESOURCE_DISABLED; hose 265 arch/powerpc/sysdev/fsl_pci.c if (hose->io_resource.flags & IORESOURCE_IO) { hose 271 arch/powerpc/sysdev/fsl_pci.c (u64)hose->io_resource.start, hose 272 arch/powerpc/sysdev/fsl_pci.c (u64)resource_size(&hose->io_resource), hose 273 arch/powerpc/sysdev/fsl_pci.c (u64)hose->io_base_phys); hose 274 arch/powerpc/sysdev/fsl_pci.c out_be32(&pci->pow[j].potar, (hose->io_resource.start >> 12)); hose 276 arch/powerpc/sysdev/fsl_pci.c out_be32(&pci->pow[j].powbar, (hose->io_base_phys >> 12)); hose 279 arch/powerpc/sysdev/fsl_pci.c | (ilog2(hose->io_resource.end hose 280 arch/powerpc/sysdev/fsl_pci.c - hose->io_resource.start + 1) - 1)); hose 289 arch/powerpc/sysdev/fsl_pci.c pr_err("%pOF: No outbound window space\n", hose->dn); hose 294 arch/powerpc/sysdev/fsl_pci.c pr_err("%pOF: No space for inbound window\n", hose->dn); hose 299 arch/powerpc/sysdev/fsl_pci.c early_write_config_dword(hose, 0, 0, PCI_BASE_ADDRESS_0, 0xffffffff); hose 300 arch/powerpc/sysdev/fsl_pci.c early_read_config_dword(hose, 0, 0, PCI_BASE_ADDRESS_0, &pcicsrbar_sz); hose 308 arch/powerpc/sysdev/fsl_pci.c early_write_config_dword(hose, 0, 0, PCI_BASE_ADDRESS_0, pcicsrbar); hose 312 arch/powerpc/sysdev/fsl_pci.c pr_info("%pOF: PCICSRBAR @ 0x%x\n", hose->dn, pcicsrbar); hose 330 arch/powerpc/sysdev/fsl_pci.c reg = of_get_property(hose->dn, "msi-address-64", &len); hose 335 arch/powerpc/sysdev/fsl_pci.c pr_info("%pOF: extending DDR ATMU to cover MSIIR", hose->dn); hose 340 arch/powerpc/sysdev/fsl_pci.c "unsupported\n", hose->dn, address); hose 348 arch/powerpc/sysdev/fsl_pci.c if (early_find_capability(hose, 0, 0, PCI_CAP_ID_EXP)) { hose 354 arch/powerpc/sysdev/fsl_pci.c "greater than memory size\n", hose->dn); hose 367 arch/powerpc/sysdev/fsl_pci.c hose->dma_window_base_cur = 0x00000000; hose 368 arch/powerpc/sysdev/fsl_pci.c hose->dma_window_size = (resource_size_t)sz; hose 401 arch/powerpc/sysdev/fsl_pci.c pr_info("%pOF: Setup 64-bit PCI DMA window\n", hose->dn); hose 434 arch/powerpc/sysdev/fsl_pci.c hose->dma_window_base_cur = 0x00000000; hose 435 arch/powerpc/sysdev/fsl_pci.c hose->dma_window_size = (resource_size_t)paddr; hose 438 arch/powerpc/sysdev/fsl_pci.c if (hose->dma_window_size < mem) { hose 444 arch/powerpc/sysdev/fsl_pci.c hose->dn); hose 451 arch/powerpc/sysdev/fsl_pci.c hose->dn); hose 453 arch/powerpc/sysdev/fsl_pci.c pr_info("%pOF: DMA window size is 0x%llx\n", hose->dn, hose 454 arch/powerpc/sysdev/fsl_pci.c (u64)hose->dma_window_size); hose 458 arch/powerpc/sysdev/fsl_pci.c static void __init setup_pci_cmd(struct pci_controller *hose) hose 463 arch/powerpc/sysdev/fsl_pci.c early_read_config_word(hose, 0, 0, PCI_COMMAND, &cmd); hose 466 arch/powerpc/sysdev/fsl_pci.c early_write_config_word(hose, 0, 0, PCI_COMMAND, cmd); hose 468 arch/powerpc/sysdev/fsl_pci.c cap_x = early_find_capability(hose, 0, 0, PCI_CAP_ID_PCIX); hose 473 arch/powerpc/sysdev/fsl_pci.c early_write_config_word(hose, 0, 0, pci_x_cmd, cmd); hose 475 arch/powerpc/sysdev/fsl_pci.c early_write_config_byte(hose, 0, 0, PCI_LATENCY_TIMER, 0x80); hose 481 arch/powerpc/sysdev/fsl_pci.c struct pci_controller *hose = pci_bus_to_host(bus); hose 493 arch/powerpc/sysdev/fsl_pci.c is_pcie = early_find_capability(hose, 0, 0, PCI_CAP_ID_EXP); hose 494 arch/powerpc/sysdev/fsl_pci.c no_link = !!(hose->indirect_type & PPC_INDIRECT_TYPE_NO_PCIE_LINK); hose 496 arch/powerpc/sysdev/fsl_pci.c if (bus->parent == hose->bus && (is_pcie || no_link)) { hose 504 arch/powerpc/sysdev/fsl_pci.c par = &hose->io_resource; hose 506 arch/powerpc/sysdev/fsl_pci.c par = &hose->mem_resources[i-1]; hose 519 arch/powerpc/sysdev/fsl_pci.c struct pci_controller *hose; hose 550 arch/powerpc/sysdev/fsl_pci.c hose = pcibios_alloc_controller(dev); hose 551 arch/powerpc/sysdev/fsl_pci.c if (!hose) hose 555 arch/powerpc/sysdev/fsl_pci.c hose->parent = &pdev->dev; hose 556 arch/powerpc/sysdev/fsl_pci.c hose->first_busno = bus_range ? bus_range[0] : 0x0; hose 557 arch/powerpc/sysdev/fsl_pci.c hose->last_busno = bus_range ? bus_range[1] : 0xff; hose 562 arch/powerpc/sysdev/fsl_pci.c pci = hose->private_data = ioremap(rsrc.start, resource_size(&rsrc)); hose 563 arch/powerpc/sysdev/fsl_pci.c if (!hose->private_data) hose 566 arch/powerpc/sysdev/fsl_pci.c setup_indirect_pci(hose, rsrc.start, rsrc.start + 0x4, hose 570 arch/powerpc/sysdev/fsl_pci.c hose->indirect_type |= PPC_INDIRECT_TYPE_FSL_CFG_REG_LINK; hose 572 arch/powerpc/sysdev/fsl_pci.c if (early_find_capability(hose, 0, 0, PCI_CAP_ID_EXP)) { hose 574 arch/powerpc/sysdev/fsl_pci.c hose->ops = &fsl_indirect_pcie_ops; hose 576 arch/powerpc/sysdev/fsl_pci.c early_read_config_byte(hose, 0, 0, PCI_HEADER_TYPE, &hdr_type); hose 582 arch/powerpc/sysdev/fsl_pci.c early_read_config_byte(hose, 0, 0, PCI_CLASS_PROG, &progif); hose 588 arch/powerpc/sysdev/fsl_pci.c setup_pci_cmd(hose); hose 591 arch/powerpc/sysdev/fsl_pci.c if (early_find_capability(hose, 0, 0, PCI_CAP_ID_EXP)) { hose 592 arch/powerpc/sysdev/fsl_pci.c hose->indirect_type |= PPC_INDIRECT_TYPE_EXT_REG | hose 594 arch/powerpc/sysdev/fsl_pci.c if (fsl_pcie_check_link(hose)) hose 595 arch/powerpc/sysdev/fsl_pci.c hose->indirect_type |= PPC_INDIRECT_TYPE_NO_PCIE_LINK; hose 610 arch/powerpc/sysdev/fsl_pci.c !early_find_capability(hose, 0, 0, PCI_CAP_ID_PCIX)) { hose 611 arch/powerpc/sysdev/fsl_pci.c early_read_config_word(hose, 0, 0, hose 614 arch/powerpc/sysdev/fsl_pci.c early_write_config_word(hose, 0, 0, hose 621 arch/powerpc/sysdev/fsl_pci.c (unsigned long long)rsrc.start, hose->first_busno, hose 622 arch/powerpc/sysdev/fsl_pci.c hose->last_busno); hose 625 arch/powerpc/sysdev/fsl_pci.c hose, hose->cfg_addr, hose->cfg_data); hose 629 arch/powerpc/sysdev/fsl_pci.c pci_process_bridge_OF_ranges(hose, dev, is_primary); hose 632 arch/powerpc/sysdev/fsl_pci.c setup_pci_atmu(hose); hose 635 arch/powerpc/sysdev/fsl_pci.c setup_swiotlb_ops(hose); hose 640 arch/powerpc/sysdev/fsl_pci.c iounmap(hose->private_data); hose 642 arch/powerpc/sysdev/fsl_pci.c if (((unsigned long)hose->cfg_data & PAGE_MASK) != hose 643 arch/powerpc/sysdev/fsl_pci.c ((unsigned long)hose->cfg_addr & PAGE_MASK)) hose 644 arch/powerpc/sysdev/fsl_pci.c iounmap(hose->cfg_data); hose 645 arch/powerpc/sysdev/fsl_pci.c iounmap(hose->cfg_addr); hose 646 arch/powerpc/sysdev/fsl_pci.c pcibios_free_controller(hose); hose 680 arch/powerpc/sysdev/fsl_pci.c struct pci_controller *hose = pci_bus_to_host(bus); hose 682 arch/powerpc/sysdev/fsl_pci.c if (hose->indirect_type & PPC_INDIRECT_TYPE_NO_PCIE_LINK) hose 689 arch/powerpc/sysdev/fsl_pci.c if (bus->number == hose->first_busno || hose 690 arch/powerpc/sysdev/fsl_pci.c bus->primary == hose->first_busno) { hose 696 arch/powerpc/sysdev/fsl_pci.c if (ppc_md.pci_exclude_device(hose, bus->number, devfn)) hose 706 arch/powerpc/sysdev/fsl_pci.c struct pci_controller *hose = pci_bus_to_host(bus); hose 707 arch/powerpc/sysdev/fsl_pci.c struct mpc83xx_pcie_priv *pcie = hose->dn->data; hose 718 arch/powerpc/sysdev/fsl_pci.c if (bus->number == hose->first_busno) hose 734 arch/powerpc/sysdev/fsl_pci.c struct pci_controller *hose = pci_bus_to_host(bus); hose 737 arch/powerpc/sysdev/fsl_pci.c if (offset == PCI_PRIMARY_BUS && bus->number == hose->first_busno) hose 749 arch/powerpc/sysdev/fsl_pci.c static int __init mpc83xx_pcie_setup(struct pci_controller *hose, hose 775 arch/powerpc/sysdev/fsl_pci.c WARN_ON(hose->dn->data); hose 776 arch/powerpc/sysdev/fsl_pci.c hose->dn->data = pcie; hose 777 arch/powerpc/sysdev/fsl_pci.c hose->ops = &mpc83xx_pcie_ops; hose 778 arch/powerpc/sysdev/fsl_pci.c hose->indirect_type |= PPC_INDIRECT_TYPE_FSL_CFG_REG_LINK; hose 783 arch/powerpc/sysdev/fsl_pci.c if (fsl_pcie_check_link(hose)) hose 784 arch/powerpc/sysdev/fsl_pci.c hose->indirect_type |= PPC_INDIRECT_TYPE_NO_PCIE_LINK; hose 799 arch/powerpc/sysdev/fsl_pci.c struct pci_controller *hose; hose 852 arch/powerpc/sysdev/fsl_pci.c hose = pcibios_alloc_controller(dev); hose 853 arch/powerpc/sysdev/fsl_pci.c if (!hose) hose 856 arch/powerpc/sysdev/fsl_pci.c hose->first_busno = bus_range ? bus_range[0] : 0; hose 857 arch/powerpc/sysdev/fsl_pci.c hose->last_busno = bus_range ? bus_range[1] : 0xff; hose 860 arch/powerpc/sysdev/fsl_pci.c ret = mpc83xx_pcie_setup(hose, &rsrc_reg); hose 864 arch/powerpc/sysdev/fsl_pci.c setup_indirect_pci(hose, rsrc_cfg.start, hose 870 arch/powerpc/sysdev/fsl_pci.c (unsigned long long)rsrc_reg.start, hose->first_busno, hose 871 arch/powerpc/sysdev/fsl_pci.c hose->last_busno); hose 874 arch/powerpc/sysdev/fsl_pci.c hose, hose->cfg_addr, hose->cfg_data); hose 878 arch/powerpc/sysdev/fsl_pci.c pci_process_bridge_OF_ranges(hose, dev, primary); hose 882 arch/powerpc/sysdev/fsl_pci.c pcibios_free_controller(hose); hose 887 arch/powerpc/sysdev/fsl_pci.c u64 fsl_pci_immrbar_base(struct pci_controller *hose) hose 891 arch/powerpc/sysdev/fsl_pci.c struct mpc83xx_pcie_priv *pcie = hose->dn->data; hose 915 arch/powerpc/sysdev/fsl_pci.c pci_bus_read_config_dword(hose->bus, hose 1033 arch/powerpc/sysdev/fsl_pci.c struct pci_controller *hose; hose 1037 arch/powerpc/sysdev/fsl_pci.c list_for_each_entry(hose, &hose_list, list_node) { hose 1038 arch/powerpc/sysdev/fsl_pci.c if (!(hose->indirect_type & PPC_INDIRECT_TYPE_EXT_REG)) hose 1042 arch/powerpc/sysdev/fsl_pci.c res = &hose->mem_resources[i]; hose 1146 arch/powerpc/sysdev/fsl_pci.c struct pci_controller *hose = dev_id; hose 1147 arch/powerpc/sysdev/fsl_pci.c struct ccsr_pci __iomem *pci = hose->private_data; hose 1159 arch/powerpc/sysdev/fsl_pci.c static int fsl_pci_pme_probe(struct pci_controller *hose) hose 1168 arch/powerpc/sysdev/fsl_pci.c dev = list_first_entry(&hose->bus->devices, typeof(*dev), bus_list); hose 1175 arch/powerpc/sysdev/fsl_pci.c pme_irq = irq_of_parse_and_map(hose->dn, 0); hose 1182 arch/powerpc/sysdev/fsl_pci.c res = devm_request_irq(hose->parent, pme_irq, hose 1185 arch/powerpc/sysdev/fsl_pci.c "[PCI] PME", hose); hose 1193 arch/powerpc/sysdev/fsl_pci.c pci = hose->private_data; hose 1211 arch/powerpc/sysdev/fsl_pci.c static void send_pme_turnoff_message(struct pci_controller *hose) hose 1213 arch/powerpc/sysdev/fsl_pci.c struct ccsr_pci __iomem *pci = hose->private_data; hose 1232 arch/powerpc/sysdev/fsl_pci.c static void fsl_pci_syscore_do_suspend(struct pci_controller *hose) hose 1234 arch/powerpc/sysdev/fsl_pci.c send_pme_turnoff_message(hose); hose 1239 arch/powerpc/sysdev/fsl_pci.c struct pci_controller *hose, *tmp; hose 1241 arch/powerpc/sysdev/fsl_pci.c list_for_each_entry_safe(hose, tmp, &hose_list, list_node) hose 1242 arch/powerpc/sysdev/fsl_pci.c fsl_pci_syscore_do_suspend(hose); hose 1247 arch/powerpc/sysdev/fsl_pci.c static void fsl_pci_syscore_do_resume(struct pci_controller *hose) hose 1249 arch/powerpc/sysdev/fsl_pci.c struct ccsr_pci __iomem *pci = hose->private_data; hose 1267 arch/powerpc/sysdev/fsl_pci.c setup_pci_atmu(hose); hose 1272 arch/powerpc/sysdev/fsl_pci.c struct pci_controller *hose, *tmp; hose 1274 arch/powerpc/sysdev/fsl_pci.c list_for_each_entry_safe(hose, tmp, &hose_list, list_node) hose 1275 arch/powerpc/sysdev/fsl_pci.c fsl_pci_syscore_do_resume(hose); hose 118 arch/powerpc/sysdev/fsl_pci.h u64 fsl_pci_immrbar_base(struct pci_controller *hose); hose 52 arch/powerpc/sysdev/grackle.c void __init setup_grackle(struct pci_controller *hose) hose 54 arch/powerpc/sysdev/grackle.c setup_indirect_pci(hose, 0xfec00000, 0xfee00000, 0); hose 58 arch/powerpc/sysdev/grackle.c grackle_set_loop_snoop(hose, 1); hose 60 arch/powerpc/sysdev/grackle.c grackle_set_stg(hose, 1); hose 19 arch/powerpc/sysdev/indirect_pci.c int __indirect_read_config(struct pci_controller *hose, hose 27 arch/powerpc/sysdev/indirect_pci.c if (hose->indirect_type & PPC_INDIRECT_TYPE_NO_PCIE_LINK) { hose 28 arch/powerpc/sysdev/indirect_pci.c if (bus_number != hose->first_busno) hose 35 arch/powerpc/sysdev/indirect_pci.c if (ppc_md.pci_exclude_device(hose, bus_number, devfn)) hose 38 arch/powerpc/sysdev/indirect_pci.c if (hose->indirect_type & PPC_INDIRECT_TYPE_SET_CFG_TYPE) hose 39 arch/powerpc/sysdev/indirect_pci.c if (bus_number != hose->first_busno) hose 42 arch/powerpc/sysdev/indirect_pci.c bus_no = (bus_number == hose->first_busno) ? hose 43 arch/powerpc/sysdev/indirect_pci.c hose->self_busno : bus_number; hose 45 arch/powerpc/sysdev/indirect_pci.c if (hose->indirect_type & PPC_INDIRECT_TYPE_EXT_REG) hose 50 arch/powerpc/sysdev/indirect_pci.c if (hose->indirect_type & PPC_INDIRECT_TYPE_BIG_ENDIAN) hose 51 arch/powerpc/sysdev/indirect_pci.c out_be32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | hose 54 arch/powerpc/sysdev/indirect_pci.c out_le32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | hose 61 arch/powerpc/sysdev/indirect_pci.c cfg_data = hose->cfg_data + (offset & 3); hose 79 arch/powerpc/sysdev/indirect_pci.c struct pci_controller *hose = pci_bus_to_host(bus); hose 81 arch/powerpc/sysdev/indirect_pci.c return __indirect_read_config(hose, bus->number, devfn, offset, len, hose 88 arch/powerpc/sysdev/indirect_pci.c struct pci_controller *hose = pci_bus_to_host(bus); hose 93 arch/powerpc/sysdev/indirect_pci.c if (hose->indirect_type & PPC_INDIRECT_TYPE_NO_PCIE_LINK) { hose 94 arch/powerpc/sysdev/indirect_pci.c if (bus->number != hose->first_busno) hose 101 arch/powerpc/sysdev/indirect_pci.c if (ppc_md.pci_exclude_device(hose, bus->number, devfn)) hose 104 arch/powerpc/sysdev/indirect_pci.c if (hose->indirect_type & PPC_INDIRECT_TYPE_SET_CFG_TYPE) hose 105 arch/powerpc/sysdev/indirect_pci.c if (bus->number != hose->first_busno) hose 108 arch/powerpc/sysdev/indirect_pci.c bus_no = (bus->number == hose->first_busno) ? hose 109 arch/powerpc/sysdev/indirect_pci.c hose->self_busno : bus->number; hose 111 arch/powerpc/sysdev/indirect_pci.c if (hose->indirect_type & PPC_INDIRECT_TYPE_EXT_REG) hose 116 arch/powerpc/sysdev/indirect_pci.c if (hose->indirect_type & PPC_INDIRECT_TYPE_BIG_ENDIAN) hose 117 arch/powerpc/sysdev/indirect_pci.c out_be32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | hose 120 arch/powerpc/sysdev/indirect_pci.c out_le32(hose->cfg_addr, (0x80000000 | (bus_no << 16) | hose 124 arch/powerpc/sysdev/indirect_pci.c if (hose->indirect_type & PPC_INDIRECT_TYPE_SURPRESS_PRIMARY_BUS) hose 126 arch/powerpc/sysdev/indirect_pci.c (bus->number == hose->first_busno)) hose 130 arch/powerpc/sysdev/indirect_pci.c if ((hose->indirect_type & PPC_INDIRECT_TYPE_BROKEN_MRM) && hose 139 arch/powerpc/sysdev/indirect_pci.c cfg_data = hose->cfg_data + (offset & 3); hose 160 arch/powerpc/sysdev/indirect_pci.c void setup_indirect_pci(struct pci_controller *hose, resource_size_t cfg_addr, hose 167 arch/powerpc/sysdev/indirect_pci.c hose->cfg_addr = mbase + (cfg_addr & ~PAGE_MASK); hose 170 arch/powerpc/sysdev/indirect_pci.c hose->cfg_data = mbase + (cfg_data & ~PAGE_MASK); hose 171 arch/powerpc/sysdev/indirect_pci.c hose->ops = &indirect_pci_ops; hose 172 arch/powerpc/sysdev/indirect_pci.c hose->indirect_type = flags; hose 77 arch/powerpc/sysdev/mpic_u3msi.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); hose 95 arch/powerpc/sysdev/mpic_u3msi.c if (of_device_is_compatible(hose->dn, "u4-pcie") || hose 96 arch/powerpc/sysdev/mpic_u3msi.c of_device_is_compatible(hose->dn, "U4-pcie")) hose 52 arch/powerpc/sysdev/tsi108_pci.c struct pci_controller *hose = pci_bus_to_host(bus); hose 55 arch/powerpc/sysdev/tsi108_pci.c if (ppc_md.pci_exclude_device(hose, bus->number, devfunc)) hose 136 arch/powerpc/sysdev/tsi108_pci.c struct pci_controller *hose = pci_bus_to_host(bus); hose 140 arch/powerpc/sysdev/tsi108_pci.c if (ppc_md.pci_exclude_device(hose, bus->number, devfn)) hose 186 arch/powerpc/sysdev/tsi108_pci.c struct pci_controller *hose; hose 207 arch/powerpc/sysdev/tsi108_pci.c hose = pcibios_alloc_controller(dev); hose 209 arch/powerpc/sysdev/tsi108_pci.c if (!hose) { hose 214 arch/powerpc/sysdev/tsi108_pci.c hose->first_busno = bus_range ? bus_range[0] : 0; hose 215 arch/powerpc/sysdev/tsi108_pci.c hose->last_busno = bus_range ? bus_range[1] : 0xff; hose 217 arch/powerpc/sysdev/tsi108_pci.c (hose)->ops = &tsi108_direct_pci_ops; hose 221 arch/powerpc/sysdev/tsi108_pci.c rsrc.start, hose->first_busno, hose->last_busno); hose 225 arch/powerpc/sysdev/tsi108_pci.c pci_process_bridge_OF_ranges(hose, dev, primary); hose 40 arch/powerpc/sysdev/xilinx_pci.c struct pci_controller *hose; hose 46 arch/powerpc/sysdev/xilinx_pci.c hose = pci_bus_to_host(dev->bus); hose 47 arch/powerpc/sysdev/xilinx_pci.c if (!hose) hose 50 arch/powerpc/sysdev/xilinx_pci.c if (!of_match_node(xilinx_pci_match, hose->dn)) hose 74 arch/powerpc/sysdev/xilinx_pci.c xilinx_pci_exclude_device(struct pci_controller *hose, u_char bus, u8 devfn) hose 84 arch/powerpc/sysdev/xilinx_pci.c struct pci_controller *hose; hose 98 arch/powerpc/sysdev/xilinx_pci.c hose = pcibios_alloc_controller(pci_node); hose 99 arch/powerpc/sysdev/xilinx_pci.c if (!hose) { hose 105 arch/powerpc/sysdev/xilinx_pci.c setup_indirect_pci(hose, r.start + XPLB_PCI_ADDR, hose 113 arch/powerpc/sysdev/xilinx_pci.c early_write_config_word(hose, 0, 0, PCI_COMMAND, PCI_HOST_ENABLE_CMD); hose 116 arch/powerpc/sysdev/xilinx_pci.c early_write_config_byte(hose, 0, 0, PCI_LATENCY_TIMER, 0xff); hose 129 arch/powerpc/sysdev/xilinx_pci.c pci_process_bridge_OF_ranges(hose, pci_node, 1); hose 11 arch/sh/drivers/pci/common.c static struct pci_dev *fake_pci_dev(struct pci_channel *hose, hose 18 arch/sh/drivers/pci/common.c dev.sysdata = hose; hose 21 arch/sh/drivers/pci/common.c bus.sysdata = hose; hose 22 arch/sh/drivers/pci/common.c bus.ops = hose->pci_ops; hose 34 arch/sh/drivers/pci/common.c int __init early_##rw##_config_##size(struct pci_channel *hose, \ hose 38 arch/sh/drivers/pci/common.c fake_pci_dev(hose, top_bus, bus, devfn), \ hose 49 arch/sh/drivers/pci/common.c int __init pci_is_66mhz_capable(struct pci_channel *hose, hose 62 arch/sh/drivers/pci/common.c if (early_read_config_word(hose, top_bus, current_bus, hose 73 arch/sh/drivers/pci/common.c early_read_config_word(hose, top_bus, current_bus, hose 90 arch/sh/drivers/pci/common.c struct pci_channel *hose = from_timer(hose, t, err_timer); hose 92 arch/sh/drivers/pci/common.c del_timer(&hose->err_timer); hose 94 arch/sh/drivers/pci/common.c enable_irq(hose->err_irq); hose 99 arch/sh/drivers/pci/common.c struct pci_channel *hose = from_timer(hose, t, serr_timer); hose 101 arch/sh/drivers/pci/common.c del_timer(&hose->serr_timer); hose 103 arch/sh/drivers/pci/common.c enable_irq(hose->serr_irq); hose 106 arch/sh/drivers/pci/common.c void pcibios_enable_timers(struct pci_channel *hose) hose 108 arch/sh/drivers/pci/common.c if (hose->err_irq) { hose 109 arch/sh/drivers/pci/common.c timer_setup(&hose->err_timer, pcibios_enable_err, 0); hose 112 arch/sh/drivers/pci/common.c if (hose->serr_irq) { hose 113 arch/sh/drivers/pci/common.c timer_setup(&hose->serr_timer, pcibios_enable_serr, 0); hose 123 arch/sh/drivers/pci/common.c struct pci_channel *hose) hose 151 arch/sh/drivers/pci/common.c if (hose->err_irq) { hose 152 arch/sh/drivers/pci/common.c disable_irq_nosync(hose->err_irq); hose 153 arch/sh/drivers/pci/common.c hose->err_timer.expires = jiffies + HZ; hose 154 arch/sh/drivers/pci/common.c add_timer(&hose->err_timer); hose 94 arch/sh/drivers/pci/pci-sh7780.c struct pci_channel *hose = dev_id; hose 100 arch/sh/drivers/pci/pci-sh7780.c addr = __raw_readl(hose->reg_base + SH4_PCIALR); hose 105 arch/sh/drivers/pci/pci-sh7780.c status = __raw_readw(hose->reg_base + PCI_STATUS); hose 111 arch/sh/drivers/pci/pci-sh7780.c cmd = pcibios_handle_status_errors(addr, status, hose); hose 113 arch/sh/drivers/pci/pci-sh7780.c __raw_writew(cmd, hose->reg_base + PCI_STATUS); hose 119 arch/sh/drivers/pci/pci-sh7780.c status = __raw_readl(hose->reg_base + SH4_PCIAINT); hose 127 arch/sh/drivers/pci/pci-sh7780.c __raw_writel(cmd, hose->reg_base + SH4_PCIAINT); hose 132 arch/sh/drivers/pci/pci-sh7780.c status = __raw_readl(hose->reg_base + SH4_PCIINT); hose 140 arch/sh/drivers/pci/pci-sh7780.c __raw_writel(cmd, hose->reg_base + SH4_PCIINT); hose 147 arch/sh/drivers/pci/pci-sh7780.c struct pci_channel *hose = dev_id; hose 154 arch/sh/drivers/pci/pci-sh7780.c __raw_writel(SH4_PCIINTM_SDIM, hose->reg_base + SH4_PCIINTM); hose 158 arch/sh/drivers/pci/pci-sh7780.c hose->serr_timer.expires = jiffies + HZ; hose 159 arch/sh/drivers/pci/pci-sh7780.c add_timer(&hose->serr_timer); hose 164 arch/sh/drivers/pci/pci-sh7780.c static int __init sh7780_pci_setup_irqs(struct pci_channel *hose) hose 169 arch/sh/drivers/pci/pci-sh7780.c __raw_writel(0, hose->reg_base + SH4_PCIAINT); hose 177 arch/sh/drivers/pci/pci-sh7780.c PCI_STATUS_PARITY, hose->reg_base + PCI_STATUS); hose 179 arch/sh/drivers/pci/pci-sh7780.c ret = request_irq(hose->serr_irq, sh7780_pci_serr_irq, 0, hose 180 arch/sh/drivers/pci/pci-sh7780.c "PCI SERR interrupt", hose); hose 192 arch/sh/drivers/pci/pci-sh7780.c ret = request_irq(hose->err_irq, sh7780_pci_err_irq, IRQF_SHARED, hose 193 arch/sh/drivers/pci/pci-sh7780.c "PCI ERR interrupt", hose); hose 195 arch/sh/drivers/pci/pci-sh7780.c free_irq(hose->serr_irq, hose); hose 202 arch/sh/drivers/pci/pci-sh7780.c SH4_PCIAINT_WDPE, hose->reg_base + SH4_PCIAINTM); hose 210 arch/sh/drivers/pci/pci-sh7780.c SH4_PCIINTM_MRDPEIM, hose->reg_base + SH4_PCIINTM); hose 215 arch/sh/drivers/pci/pci-sh7780.c static inline void __init sh7780_pci_teardown_irqs(struct pci_channel *hose) hose 217 arch/sh/drivers/pci/pci-sh7780.c free_irq(hose->err_irq, hose); hose 218 arch/sh/drivers/pci/pci-sh7780.c free_irq(hose->serr_irq, hose); hose 221 arch/sh/drivers/pci/pci-sh7780.c static void __init sh7780_pci66_init(struct pci_channel *hose) hose 225 arch/sh/drivers/pci/pci-sh7780.c if (!pci_is_66mhz_capable(hose, 0, 0)) hose 229 arch/sh/drivers/pci/pci-sh7780.c tmp = __raw_readl(hose->reg_base + SH4_PCICR); hose 231 arch/sh/drivers/pci/pci-sh7780.c __raw_writel(tmp, hose->reg_base + SH4_PCICR); hose 234 arch/sh/drivers/pci/pci-sh7780.c tmp = __raw_readw(hose->reg_base + PCI_STATUS); hose 236 arch/sh/drivers/pci/pci-sh7780.c __raw_writew(tmp, hose->reg_base + PCI_STATUS); hose 239 arch/sh/drivers/pci/pci-sh7780.c tmp = __raw_readl(hose->reg_base + SH4_PCICR); hose 241 arch/sh/drivers/pci/pci-sh7780.c __raw_writel(tmp, hose->reg_base + SH4_PCICR); hose 32 arch/sh/drivers/pci/pci.c static void pcibios_scanbus(struct pci_channel *hose) hose 46 arch/sh/drivers/pci/pci.c for (i = 0; i < hose->nr_resources; i++) { hose 47 arch/sh/drivers/pci/pci.c res = hose->resources + i; hose 52 arch/sh/drivers/pci/pci.c offset = hose->io_offset; hose 54 arch/sh/drivers/pci/pci.c offset = hose->mem_offset; hose 60 arch/sh/drivers/pci/pci.c bridge->sysdata = hose; hose 62 arch/sh/drivers/pci/pci.c bridge->ops = hose->pci_ops; hose 72 arch/sh/drivers/pci/pci.c hose->bus = bridge->bus; hose 74 arch/sh/drivers/pci/pci.c need_domain_info = need_domain_info || hose->index; hose 75 arch/sh/drivers/pci/pci.c hose->need_domain_info = need_domain_info; hose 77 arch/sh/drivers/pci/pci.c next_busno = hose->bus->busn_res.end + 1; hose 85 arch/sh/drivers/pci/pci.c pci_bus_size_bridges(hose->bus); hose 86 arch/sh/drivers/pci/pci.c pci_bus_assign_resources(hose->bus); hose 87 arch/sh/drivers/pci/pci.c pci_bus_add_devices(hose->bus); hose 97 arch/sh/drivers/pci/pci.c int register_pci_controller(struct pci_channel *hose) hose 101 arch/sh/drivers/pci/pci.c for (i = 0; i < hose->nr_resources; i++) { hose 102 arch/sh/drivers/pci/pci.c struct resource *res = hose->resources + i; hose 116 arch/sh/drivers/pci/pci.c *hose_tail = hose; hose 117 arch/sh/drivers/pci/pci.c hose_tail = &hose->next; hose 122 arch/sh/drivers/pci/pci.c if (!hose->io_map_base) { hose 130 arch/sh/drivers/pci/pci.c pcibios_enable_timers(hose); hose 138 arch/sh/drivers/pci/pci.c pcibios_scanbus(hose); hose 146 arch/sh/drivers/pci/pci.c release_resource(&hose->resources[i]); hose 154 arch/sh/drivers/pci/pci.c struct pci_channel *hose; hose 157 arch/sh/drivers/pci/pci.c for (hose = hose_head; hose; hose = hose->next) hose 158 arch/sh/drivers/pci/pci.c pcibios_scanbus(hose); hose 176 arch/sh/drivers/pci/pci.c struct pci_channel *hose = dev->sysdata; hose 180 arch/sh/drivers/pci/pci.c if (start < PCIBIOS_MIN_IO + hose->resources[0].start) hose 181 arch/sh/drivers/pci/pci.c start = PCIBIOS_MIN_IO + hose->resources[0].start; hose 194 arch/sh/drivers/pci/pci.c pcibios_bus_report_status_early(struct pci_channel *hose, hose 205 arch/sh/drivers/pci/pci.c ret = early_read_config_word(hose, top_bus, current_bus, hose 212 arch/sh/drivers/pci/pci.c early_write_config_word(hose, top_bus, current_bus, hose 262 arch/sh/drivers/pci/pci.c struct pci_channel *hose; hose 264 arch/sh/drivers/pci/pci.c for (hose = hose_head; hose; hose = hose->next) { hose 265 arch/sh/drivers/pci/pci.c if (unlikely(!hose->bus)) hose 266 arch/sh/drivers/pci/pci.c pcibios_bus_report_status_early(hose, hose_head->index, hose 267 arch/sh/drivers/pci/pci.c hose->index, status_mask, warn); hose 269 arch/sh/drivers/pci/pci.c pcibios_bus_report_status(hose->bus, status_mask, warn); hose 24 arch/sh/drivers/pci/pcie-sh7786.c struct pci_channel *hose; hose 203 arch/sh/drivers/pci/pcie-sh7786.c struct pci_channel *chan = port->hose; hose 258 arch/sh/drivers/pci/pcie-sh7786.c struct pci_channel *chan = port->hose; hose 291 arch/sh/drivers/pci/pcie-sh7786.c struct pci_channel *chan = port->hose; hose 301 arch/sh/drivers/pci/pcie-sh7786.c struct pci_channel *chan = port->hose; hose 537 arch/sh/drivers/pci/pcie-sh7786.c register_pci_controller(port->hose); hose 598 arch/sh/drivers/pci/pcie-sh7786.c port->hose = sh7786_pci_channels + i; hose 599 arch/sh/drivers/pci/pcie-sh7786.c port->hose->io_map_base = port->hose->resources[0].start; hose 43 arch/sh/include/asm/pci.h extern int register_pci_controller(struct pci_channel *hose); hose 47 arch/sh/include/asm/pci.h extern int early_read_config_byte(struct pci_channel *hose, int top_bus, hose 49 arch/sh/include/asm/pci.h extern int early_read_config_word(struct pci_channel *hose, int top_bus, hose 51 arch/sh/include/asm/pci.h extern int early_read_config_dword(struct pci_channel *hose, int top_bus, hose 53 arch/sh/include/asm/pci.h extern int early_write_config_byte(struct pci_channel *hose, int top_bus, hose 55 arch/sh/include/asm/pci.h extern int early_write_config_word(struct pci_channel *hose, int top_bus, hose 57 arch/sh/include/asm/pci.h extern int early_write_config_dword(struct pci_channel *hose, int top_bus, hose 59 arch/sh/include/asm/pci.h extern void pcibios_enable_timers(struct pci_channel *hose); hose 61 arch/sh/include/asm/pci.h unsigned int status, struct pci_channel *hose); hose 62 arch/sh/include/asm/pci.h extern int pci_is_66mhz_capable(struct pci_channel *hose, hose 89 arch/sh/include/asm/pci.h struct pci_channel *hose = bus->sysdata; hose 90 arch/sh/include/asm/pci.h return hose->need_domain_info; hose 68 drivers/char/agp/alpha-agp.c alpha_mv.mv_pci_tbi(agp->hose, 0, -1); hose 180 drivers/char/agp/alpha-agp.c pdev->sysdata = agp->hose; hose 193 drivers/char/agp/alpha-agp.c printk(KERN_INFO PFX "Detected AGP on hose %d\n", agp->hose->index); hose 115 drivers/edac/mpc85xx_edac.c struct pci_controller *hose; hose 120 drivers/edac/mpc85xx_edac.c hose = pci_find_hose_for_OF_device(np); hose 122 drivers/edac/mpc85xx_edac.c return early_find_capability(hose, 0, 0, PCI_CAP_ID_EXP); hose 278 drivers/gpu/drm/drm_bufs.c map->offset += dev->hose->mem_space->start; hose 336 drivers/gpu/drm/drm_file.c if (!dev->hose) { hose 340 drivers/gpu/drm/drm_file.c dev->hose = pci_dev->sysdata; hose 343 drivers/gpu/drm/drm_file.c if (!dev->hose) { hose 347 drivers/gpu/drm/drm_file.c dev->hose = b->sysdata; hose 72 drivers/gpu/drm/drm_memory.c offset -= dev->hose->mem_space->start; hose 240 drivers/gpu/drm/drm_pci.c dev->hose = pdev->sysdata; hose 154 drivers/gpu/drm/drm_vm.c baddr -= dev->hose->mem_space->start; hose 512 drivers/gpu/drm/drm_vm.c return dev->hose->dense_mem_base; hose 380 drivers/gpu/drm/radeon/radeon_drv.c dev->hose = pdev->sysdata; hose 458 drivers/gpu/drm/radeon/radeon_ttm.c rdev->ddev->hose->dense_mem_base; hose 240 drivers/pci/hotplug/pnv_php.c struct pci_controller *hose = (struct pci_controller *)data; hose 243 drivers/pci/hotplug/pnv_php.c pdn = pci_add_device_node_info(hose, dn); hose 252 drivers/pci/hotplug/pnv_php.c struct pci_controller *hose = pci_bus_to_host(slot->bus); hose 254 drivers/pci/hotplug/pnv_php.c pci_traverse_device_nodes(slot->dn, pnv_php_add_one_pdn, hose); hose 399 drivers/vfio/pci/vfio_pci_nvlink2.c struct pci_controller *hose = pci_bus_to_host(npdev->bus); hose 423 drivers/vfio/pci/vfio_pci_nvlink2.c if (of_property_read_u64_index(hose->dn, "ibm,mmio-atsd", nvlink_index, hose 273 include/drm/drm_device.h struct pci_controller *hose;