bus 7 arch/alpha/include/asm/dma-mapping.h static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) bus 113 arch/alpha/include/asm/io.h unsigned long bus = phys + __direct_map_base; bus 114 arch/alpha/include/asm/io.h return phys <= __direct_map_size ? bus : 0; bus 23 arch/alpha/include/asm/pci.h struct pci_bus *bus; bus 65 arch/alpha/include/asm/pci.h #define pci_domain_nr(bus) ((struct pci_controller *)(bus)->sysdata)->index bus 67 arch/alpha/include/asm/pci.h static inline int pci_proc_domain(struct pci_bus *bus) bus 69 arch/alpha/include/asm/pci.h struct pci_controller *hose = bus->sysdata; bus 86 arch/alpha/include/asm/pci.h extern int pci_legacy_read(struct pci_bus *bus, loff_t port, u32 *val, bus 88 arch/alpha/include/asm/pci.h extern int pci_legacy_write(struct pci_bus *bus, loff_t port, u32 val, bus 90 arch/alpha/include/asm/pci.h extern int pci_mmap_legacy_page_range(struct pci_bus *bus, bus 93 arch/alpha/include/asm/pci.h extern void pci_adjust_legacy_attr(struct pci_bus *bus, bus 46 arch/alpha/include/asm/topology.h #define cpumask_of_pcibus(bus) (cpu_online_mask) bus 97 arch/alpha/kernel/core_apecs.c u8 bus = pbus->number; bus 101 arch/alpha/kernel/core_apecs.c bus, device_fn, where, pci_addr, type1)); bus 103 arch/alpha/kernel/core_apecs.c if (bus == 0) { bus 119 arch/alpha/kernel/core_apecs.c addr = (bus << 16) | (device_fn << 8) | (where); bus 275 arch/alpha/kernel/core_apecs.c apecs_read_config(struct pci_bus *bus, unsigned int devfn, int where, bus 283 arch/alpha/kernel/core_apecs.c if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) bus 294 arch/alpha/kernel/core_apecs.c apecs_write_config(struct pci_bus *bus, unsigned int devfn, int where, bus 301 arch/alpha/kernel/core_apecs.c if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) bus 93 arch/alpha/kernel/core_cia.c u8 bus = bus_dev->number; bus 95 arch/alpha/kernel/core_cia.c *type1 = (bus != 0); bus 96 arch/alpha/kernel/core_cia.c *pci_addr = (bus << 16) | (device_fn << 8) | where; bus 100 arch/alpha/kernel/core_cia.c bus, device_fn, where, *pci_addr)); bus 209 arch/alpha/kernel/core_cia.c cia_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, bus 217 arch/alpha/kernel/core_cia.c if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) bus 228 arch/alpha/kernel/core_cia.c cia_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, bus 235 arch/alpha/kernel/core_cia.c if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) bus 86 arch/alpha/kernel/core_irongate.c u8 bus = pbus->number; bus 90 arch/alpha/kernel/core_irongate.c bus, device_fn, where, pci_addr, type1)); bus 92 arch/alpha/kernel/core_irongate.c *type1 = (bus != 0); bus 94 arch/alpha/kernel/core_irongate.c addr = (bus << 16) | (device_fn << 8) | where; bus 103 arch/alpha/kernel/core_irongate.c irongate_read_config(struct pci_bus *bus, unsigned int devfn, int where, bus 109 arch/alpha/kernel/core_irongate.c if (mk_conf_addr(bus, devfn, where, &addr, &type1)) bus 128 arch/alpha/kernel/core_irongate.c irongate_write_config(struct pci_bus *bus, unsigned int devfn, int where, bus 134 arch/alpha/kernel/core_irongate.c if (mk_conf_addr(bus, devfn, where, &addr, &type1)) bus 106 arch/alpha/kernel/core_lca.c u8 bus = pbus->number; bus 108 arch/alpha/kernel/core_lca.c if (bus == 0) { bus 123 arch/alpha/kernel/core_lca.c addr = (bus << 16) | (device_fn << 8) | where; bus 202 arch/alpha/kernel/core_lca.c lca_read_config(struct pci_bus *bus, unsigned int devfn, int where, bus 209 arch/alpha/kernel/core_lca.c if (mk_conf_addr(bus, devfn, where, &pci_addr)) bus 220 arch/alpha/kernel/core_lca.c lca_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, bus 226 arch/alpha/kernel/core_lca.c if (mk_conf_addr(bus, devfn, where, &pci_addr)) bus 506 arch/alpha/kernel/core_marvel.c build_conf_addr(struct pci_controller *hose, u8 bus, bus 509 arch/alpha/kernel/core_marvel.c return (hose->config_space_base | (bus << 16) | (devfn << 8) | where); bus 518 arch/alpha/kernel/core_marvel.c u8 bus = pbus->number; bus 532 arch/alpha/kernel/core_marvel.c bus = 0; bus 535 arch/alpha/kernel/core_marvel.c addr = build_conf_addr(hose, bus, devfn, where); bus 542 arch/alpha/kernel/core_marvel.c marvel_read_config(struct pci_bus *bus, unsigned int devfn, int where, bus 547 arch/alpha/kernel/core_marvel.c if (0 == (addr = mk_conf_addr(bus, devfn, where))) bus 568 arch/alpha/kernel/core_marvel.c marvel_write_config(struct pci_bus *bus, unsigned int devfn, int where, bus 573 arch/alpha/kernel/core_marvel.c if (0 == (addr = mk_conf_addr(bus, devfn, where))) bus 174 arch/alpha/kernel/core_mcpcia.c u8 bus = pbus->number; bus 179 arch/alpha/kernel/core_mcpcia.c bus, devfn, hose->index, where, pci_addr, type1)); bus 185 arch/alpha/kernel/core_mcpcia.c bus = 0; bus 186 arch/alpha/kernel/core_mcpcia.c addr = (bus << 16) | (devfn << 8) | (where); bus 196 arch/alpha/kernel/core_mcpcia.c mcpcia_read_config(struct pci_bus *bus, unsigned int devfn, int where, bus 199 arch/alpha/kernel/core_mcpcia.c struct pci_controller *hose = bus->sysdata; bus 203 arch/alpha/kernel/core_mcpcia.c if (mk_conf_addr(bus, devfn, where, hose, &addr, &type1)) bus 223 arch/alpha/kernel/core_mcpcia.c mcpcia_write_config(struct pci_bus *bus, unsigned int devfn, int where, bus 226 arch/alpha/kernel/core_mcpcia.c struct pci_controller *hose = bus->sysdata; bus 230 arch/alpha/kernel/core_mcpcia.c if (mk_conf_addr(bus, devfn, where, hose, &addr, &type1)) bus 70 arch/alpha/kernel/core_polaris.c u8 bus = pbus->number; bus 72 arch/alpha/kernel/core_polaris.c *type1 = (bus == 0) ? 0 : 1; bus 73 arch/alpha/kernel/core_polaris.c *pci_addr = (bus << 16) | (device_fn << 8) | (where) | bus 78 arch/alpha/kernel/core_polaris.c bus, device_fn, where, *pci_addr)); bus 84 arch/alpha/kernel/core_polaris.c polaris_read_config(struct pci_bus *bus, unsigned int devfn, int where, bus 90 arch/alpha/kernel/core_polaris.c if (mk_conf_addr(bus, devfn, where, &addr, &type1)) bus 110 arch/alpha/kernel/core_polaris.c polaris_write_config(struct pci_bus *bus, unsigned int devfn, int where, bus 116 arch/alpha/kernel/core_polaris.c if (mk_conf_addr(bus, devfn, where, &addr, &type1)) bus 145 arch/alpha/kernel/core_t2.c u8 bus = pbus->number; bus 149 arch/alpha/kernel/core_t2.c bus, device_fn, where, pci_addr, type1)); bus 151 arch/alpha/kernel/core_t2.c if (bus == 0) { bus 167 arch/alpha/kernel/core_t2.c addr = (bus << 16) | (device_fn << 8) | (where); bus 284 arch/alpha/kernel/core_t2.c t2_read_config(struct pci_bus *bus, unsigned int devfn, int where, bus 292 arch/alpha/kernel/core_t2.c if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) bus 303 arch/alpha/kernel/core_t2.c t2_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, bus 310 arch/alpha/kernel/core_t2.c if (mk_conf_addr(bus, devfn, where, &pci_addr, &type1)) bus 121 arch/alpha/kernel/core_titan.c u8 bus = pbus->number; bus 125 arch/alpha/kernel/core_titan.c bus, device_fn, where, pci_addr, type1)); bus 128 arch/alpha/kernel/core_titan.c bus = 0; bus 129 arch/alpha/kernel/core_titan.c *type1 = (bus != 0); bus 131 arch/alpha/kernel/core_titan.c addr = (bus << 16) | (device_fn << 8) | where; bus 140 arch/alpha/kernel/core_titan.c titan_read_config(struct pci_bus *bus, unsigned int devfn, int where, bus 146 arch/alpha/kernel/core_titan.c if (mk_conf_addr(bus, devfn, where, &addr, &type1)) bus 165 arch/alpha/kernel/core_titan.c titan_write_config(struct pci_bus *bus, unsigned int devfn, int where, bus 171 arch/alpha/kernel/core_titan.c if (mk_conf_addr(bus, devfn, where, &addr, &type1)) bus 97 arch/alpha/kernel/core_tsunami.c u8 bus = pbus->number; bus 101 arch/alpha/kernel/core_tsunami.c bus, device_fn, where, pci_addr, type1)); bus 104 arch/alpha/kernel/core_tsunami.c bus = 0; bus 105 arch/alpha/kernel/core_tsunami.c *type1 = (bus != 0); bus 107 arch/alpha/kernel/core_tsunami.c addr = (bus << 16) | (device_fn << 8) | where; bus 116 arch/alpha/kernel/core_tsunami.c tsunami_read_config(struct pci_bus *bus, unsigned int devfn, int where, bus 122 arch/alpha/kernel/core_tsunami.c if (mk_conf_addr(bus, devfn, where, &addr, &type1)) bus 141 arch/alpha/kernel/core_tsunami.c tsunami_write_config(struct pci_bus *bus, unsigned int devfn, int where, bus 147 arch/alpha/kernel/core_tsunami.c if (mk_conf_addr(bus, devfn, where, &addr, &type1)) bus 363 arch/alpha/kernel/core_wildfire.c u8 bus = pbus->number; bus 367 arch/alpha/kernel/core_wildfire.c bus, device_fn, where, pci_addr, type1)); bus 370 arch/alpha/kernel/core_wildfire.c bus = 0; bus 371 arch/alpha/kernel/core_wildfire.c *type1 = (bus != 0); bus 373 arch/alpha/kernel/core_wildfire.c addr = (bus << 16) | (device_fn << 8) | where; bus 382 arch/alpha/kernel/core_wildfire.c wildfire_read_config(struct pci_bus *bus, unsigned int devfn, int where, bus 388 arch/alpha/kernel/core_wildfire.c if (mk_conf_addr(bus, devfn, where, &addr, &type1)) bus 407 arch/alpha/kernel/core_wildfire.c wildfire_write_config(struct pci_bus *bus, unsigned int devfn, int where, bus 413 arch/alpha/kernel/core_wildfire.c if (mk_conf_addr(bus, devfn, where, &addr, &type1)) bus 59 arch/alpha/kernel/pci-noop.c SYSCALL_DEFINE3(pciconfig_iobase, long, which, unsigned long, bus, bus 67 arch/alpha/kernel/pci-noop.c if (hose->index == bus) bus 73 arch/alpha/kernel/pci-noop.c if (bus == 0 && dfn == 0) bus 91 arch/alpha/kernel/pci-noop.c return hose->bus->number; bus 97 arch/alpha/kernel/pci-noop.c SYSCALL_DEFINE5(pciconfig_read, unsigned long, bus, unsigned long, dfn, bus 106 arch/alpha/kernel/pci-noop.c SYSCALL_DEFINE5(pciconfig_write, unsigned long, bus, unsigned long, dfn, bus 86 arch/alpha/kernel/pci-sysfs.c pcibios_resource_to_bus(pdev->bus, &bar, res); bus 142 arch/alpha/kernel/pci-sysfs.c pcibios_resource_to_bus(pdev->bus, &bar, &pdev->resource[num]); bus 282 arch/alpha/kernel/pci-sysfs.c int pci_mmap_legacy_page_range(struct pci_bus *bus, struct vm_area_struct *vma, bus 285 arch/alpha/kernel/pci-sysfs.c struct pci_controller *hose = bus->sysdata; bus 289 arch/alpha/kernel/pci-sysfs.c res_size = (mmap_type == pci_mmap_mem) ? bus->legacy_mem->size : bus 290 arch/alpha/kernel/pci-sysfs.c bus->legacy_io->size; bus 304 arch/alpha/kernel/pci-sysfs.c void pci_adjust_legacy_attr(struct pci_bus *bus, enum pci_mmap_state mmap_type) bus 306 arch/alpha/kernel/pci-sysfs.c struct pci_controller *hose = bus->sysdata; bus 312 arch/alpha/kernel/pci-sysfs.c bus->legacy_mem->attr.name = "legacy_mem_sparse"; bus 313 arch/alpha/kernel/pci-sysfs.c bus->legacy_mem->size <<= 5; bus 315 arch/alpha/kernel/pci-sysfs.c bus->legacy_io->attr.name = "legacy_io_sparse"; bus 316 arch/alpha/kernel/pci-sysfs.c bus->legacy_io->size <<= 5; bus 322 arch/alpha/kernel/pci-sysfs.c int pci_legacy_read(struct pci_bus *bus, loff_t port, u32 *val, size_t size) bus 324 arch/alpha/kernel/pci-sysfs.c struct pci_controller *hose = bus->sysdata; bus 346 arch/alpha/kernel/pci-sysfs.c int pci_legacy_write(struct pci_bus *bus, loff_t port, u32 val, size_t size) bus 348 arch/alpha/kernel/pci-sysfs.c struct pci_controller *hose = bus->sysdata; bus 254 arch/alpha/kernel/pci.c void pcibios_fixup_bus(struct pci_bus *bus) bus 256 arch/alpha/kernel/pci.c struct pci_dev *dev = bus->self; bus 260 arch/alpha/kernel/pci.c pci_read_bridge_bases(bus); bus 263 arch/alpha/kernel/pci.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 327 arch/alpha/kernel/pci.c struct pci_bus *bus; bus 369 arch/alpha/kernel/pci.c bus = hose->bus = bridge->bus; bus 371 arch/alpha/kernel/pci.c next_busno = bus->busn_res.end + 1; bus 384 arch/alpha/kernel/pci.c bus = hose->bus; bus 385 arch/alpha/kernel/pci.c if (bus) bus 386 arch/alpha/kernel/pci.c pci_bus_add_devices(bus); bus 422 arch/alpha/kernel/pci.c SYSCALL_DEFINE3(pciconfig_iobase, long, which, unsigned long, bus, bus 431 arch/alpha/kernel/pci.c if (hose->index == bus) break; bus 435 arch/alpha/kernel/pci.c if (bus == 0 && dfn == 0) { bus 438 arch/alpha/kernel/pci.c dev = pci_get_domain_bus_and_slot(0, bus, dfn); bus 458 arch/alpha/kernel/pci.c return hose->bus->number; bus 433 arch/alpha/kernel/sys_dp264.c if (!dev->bus->parent) { bus 437 arch/alpha/kernel/sys_dp264.c else if (hose->index == 1 && PCI_SLOT(dev->bus->self->devfn) == 8) { bus 444 arch/alpha/kernel/sys_dp264.c PCI_SLOT(dev->bus->self->devfn) == 8) { bus 451 arch/alpha/kernel/sys_dp264.c dev = dev->bus->self; bus 454 arch/alpha/kernel/sys_dp264.c } while (dev->bus->self); bus 182 arch/alpha/kernel/sys_eiger.c while (dev->bus->self) { bus 185 arch/alpha/kernel/sys_eiger.c && (PCI_SLOT(dev->bus->self->devfn) bus 194 arch/alpha/kernel/sys_eiger.c dev = dev->bus->self; bus 351 arch/alpha/kernel/sys_marvel.c dev->bus->number, bus 186 arch/alpha/kernel/sys_miata.c struct pci_dev *pdev = pci_get_slot(dev->bus, dev->devfn & ~7); bus 205 arch/alpha/kernel/sys_miata.c if (dev->bus->number == 0) { bus 209 arch/alpha/kernel/sys_miata.c else if ((PCI_SLOT(dev->bus->self->devfn) == 8) || bus 210 arch/alpha/kernel/sys_miata.c (PCI_SLOT(dev->bus->self->devfn) == 20)) { bus 217 arch/alpha/kernel/sys_miata.c if ((PCI_SLOT(dev->bus->self->devfn) == 8) || bus 218 arch/alpha/kernel/sys_miata.c (PCI_SLOT(dev->bus->self->devfn) == 20)) { bus 225 arch/alpha/kernel/sys_miata.c dev = dev->bus->self; bus 228 arch/alpha/kernel/sys_miata.c } while (dev->bus->self); bus 76 arch/alpha/kernel/sys_nautilus.c dev->bus->self && dev->bus->self->device == 0x700f) bus 85 arch/alpha/kernel/sys_nautilus.c struct pci_bus *bus = pci_isa_hose->bus; bus 93 arch/alpha/kernel/sys_nautilus.c pci_bus_read_config_byte(bus, 0x38, 0x43, &t8); bus 94 arch/alpha/kernel/sys_nautilus.c pci_bus_write_config_byte(bus, 0x38, 0x43, t8 | 0x80); bus 104 arch/alpha/kernel/sys_nautilus.c pci_bus_read_config_dword(bus, 0x88, 0x10, &pmuport); bus 108 arch/alpha/kernel/sys_nautilus.c pci_bus_read_config_dword(bus, 0x88, 0xe0, &pmuport); bus 210 arch/alpha/kernel/sys_nautilus.c struct pci_bus *bus; bus 237 arch/alpha/kernel/sys_nautilus.c bus = hose->bus = bridge->bus; bus 238 arch/alpha/kernel/sys_nautilus.c pcibios_claim_one_bus(bus); bus 240 arch/alpha/kernel/sys_nautilus.c irongate = pci_get_domain_bus_and_slot(pci_domain_nr(bus), 0, 0); bus 241 arch/alpha/kernel/sys_nautilus.c bus->self = irongate; bus 242 arch/alpha/kernel/sys_nautilus.c bus->resource[0] = &irongate_io; bus 243 arch/alpha/kernel/sys_nautilus.c bus->resource[1] = &irongate_mem; bus 245 arch/alpha/kernel/sys_nautilus.c pci_bus_size_bridges(bus); bus 248 arch/alpha/kernel/sys_nautilus.c bus->resource[0]->start = 0; bus 249 arch/alpha/kernel/sys_nautilus.c bus->resource[0]->end = 0xffff; bus 253 arch/alpha/kernel/sys_nautilus.c bus_align = bus->resource[1]->start; bus 254 arch/alpha/kernel/sys_nautilus.c bus_size = bus->resource[1]->end + 1 - bus_align; bus 260 arch/alpha/kernel/sys_nautilus.c bus->resource[1]->start = pci_mem; bus 261 arch/alpha/kernel/sys_nautilus.c bus->resource[1]->end = 0xffffffffUL; bus 262 arch/alpha/kernel/sys_nautilus.c if (request_resource(&iomem_resource, bus->resource[1]) < 0) bus 277 arch/alpha/kernel/sys_nautilus.c pci_bus_assign_resources(bus); bus 281 arch/alpha/kernel/sys_nautilus.c bus->self = NULL; bus 282 arch/alpha/kernel/sys_nautilus.c pci_bus_add_devices(bus); bus 230 arch/alpha/kernel/sys_noritake.c if (dev->bus->number == 0) { bus 234 arch/alpha/kernel/sys_noritake.c else if (PCI_SLOT(dev->bus->self->devfn) == 8) { bus 241 arch/alpha/kernel/sys_noritake.c if (PCI_SLOT(dev->bus->self->devfn) == 8) { bus 248 arch/alpha/kernel/sys_noritake.c dev = dev->bus->self; bus 251 arch/alpha/kernel/sys_noritake.c } while (dev->bus->self); bus 148 arch/alpha/kernel/sys_ruffian.c if (dev->bus->number == 0) { bus 152 arch/alpha/kernel/sys_ruffian.c else if (PCI_SLOT(dev->bus->self->devfn) == 13) { bus 159 arch/alpha/kernel/sys_ruffian.c if (PCI_SLOT(dev->bus->self->devfn) == 13) { bus 166 arch/alpha/kernel/sys_ruffian.c dev = dev->bus->self; bus 169 arch/alpha/kernel/sys_ruffian.c } while (dev->bus->self); bus 413 arch/alpha/kernel/sys_sable.c if (dev->bus->number == 0) { bus 417 arch/alpha/kernel/sys_sable.c else if (PCI_SLOT(dev->bus->self->devfn) == 3) { bus 424 arch/alpha/kernel/sys_sable.c if (PCI_SLOT(dev->bus->self->devfn) == 3) { bus 431 arch/alpha/kernel/sys_sable.c dev = dev->bus->self; bus 434 arch/alpha/kernel/sys_sable.c } while (dev->bus->self); bus 91 arch/alpha/kernel/sys_sio.c pci_bus_read_config_dword(pci_isa_hose->bus, PCI_DEVFN(7, 0), 0x60, bus 101 arch/alpha/kernel/sys_sio.c pci_bus_write_config_dword(pci_isa_hose->bus, PCI_DEVFN(7, 0), 0x60, bus 322 arch/alpha/kernel/sys_sio.c pci_bus_write_config_dword(pci_isa_hose->bus, PCI_DEVFN(7, 0), 0x60, bus 184 arch/alpha/kernel/sys_takara.c unsigned int busslot = PCI_SLOT(dev->bus->self->devfn); bus 222 arch/alpha/kernel/sys_takara.c if (!dev->bus->self) bus 225 arch/alpha/kernel/sys_takara.c busslot = PCI_SLOT(dev->bus->self->devfn); bus 227 arch/alpha/kernel/sys_takara.c if (dev->bus->number != 0 bus 160 arch/arm/common/it8152.c static unsigned long it8152_pci_dev_base_address(struct pci_bus *bus, bus 165 arch/arm/common/it8152.c if (bus->number == 0) { bus 169 arch/arm/common/it8152.c addr = (bus->number << 16) | (devfn << 8); bus 174 arch/arm/common/it8152.c static int it8152_pci_read_config(struct pci_bus *bus, bus 178 arch/arm/common/it8152.c unsigned long addr = it8152_pci_dev_base_address(bus, devfn); bus 192 arch/arm/common/it8152.c static int it8152_pci_write_config(struct pci_bus *bus, bus 196 arch/arm/common/it8152.c unsigned long addr = it8152_pci_dev_base_address(bus, devfn); bus 242 arch/arm/common/locomo.c dev->dev.bus = &locomo_bus_type; bus 857 arch/arm/common/locomo.c driver->drv.bus = &locomo_bus_type; bus 748 arch/arm/common/sa1111.c dev->dev.bus = &sa1111_bus_type; bus 932 arch/arm/common/sa1111.c if (dev->bus != &sa1111_bus_type) bus 1385 arch/arm/common/sa1111.c driver->drv.bus = &sa1111_bus_type; bus 28 arch/arm/include/asm/dma-iommu.h arm_iommu_create_mapping(struct bus_type *bus, dma_addr_t base, u64 size); bus 19 arch/arm/include/asm/dma-mapping.h static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) bus 46 arch/arm/include/asm/mach/pci.h struct pci_bus *bus; /* PCI bus */ bus 16 arch/arm/include/asm/pci.h static inline int pci_proc_domain(struct pci_bus *bus) bus 18 arch/arm/include/asm/pci.h return pci_domain_nr(bus); bus 26 arch/arm/kernel/bios32.c static void pcibios_bus_report_status(struct pci_bus *bus, u_int status_mask, int warn) bus 30 arch/arm/kernel/bios32.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 37 arch/arm/kernel/bios32.c if (dev->bus->number == 0 && dev->devfn == 0) bus 54 arch/arm/kernel/bios32.c list_for_each_entry(dev, &bus->devices, bus_list) bus 61 arch/arm/kernel/bios32.c struct pci_bus *bus; bus 63 arch/arm/kernel/bios32.c list_for_each_entry(bus, &pci_root_buses, node) bus 64 arch/arm/kernel/bios32.c pcibios_bus_report_status(bus, status_mask, warn); bus 290 arch/arm/kernel/bios32.c void pcibios_fixup_bus(struct pci_bus *bus) bus 299 arch/arm/kernel/bios32.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 335 arch/arm/kernel/bios32.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 349 arch/arm/kernel/bios32.c if (bus->self && bus->self->hdr_type == PCI_HEADER_TYPE_BRIDGE) { bus 351 arch/arm/kernel/bios32.c bus->bridge_ctl |= PCI_BRIDGE_CTL_FAST_BACK; bus 353 arch/arm/kernel/bios32.c bus->bridge_ctl |= PCI_BRIDGE_CTL_PARITY; bus 360 arch/arm/kernel/bios32.c bus->number, (features & PCI_COMMAND_FAST_BACK) ? "en" : "dis"); bus 512 arch/arm/kernel/bios32.c sys->bus = bridge->bus; bus 514 arch/arm/kernel/bios32.c busnr = sys->bus->busn_res.end + 1; bus 538 arch/arm/kernel/bios32.c struct pci_bus *bus = sys->bus; bus 546 arch/arm/kernel/bios32.c pci_bus_claim_resources(bus); bus 550 arch/arm/kernel/bios32.c pci_bus_size_bridges(bus); bus 551 arch/arm/kernel/bios32.c pci_bus_assign_resources(bus); bus 553 arch/arm/kernel/bios32.c list_for_each_entry(child, &bus->children, node) bus 557 arch/arm/kernel/bios32.c pci_bus_add_devices(bus); bus 604 arch/arm/kernel/bios32.c host_bridge = pci_find_host_bridge(dev->bus); bus 46 arch/arm/mach-cns3xxx/pcie.c static struct cns3xxx_pcie *pbus_to_cnspci(struct pci_bus *bus) bus 48 arch/arm/mach-cns3xxx/pcie.c return sysdata_to_cnspci(bus->sysdata); bus 51 arch/arm/mach-cns3xxx/pcie.c static void __iomem *cns3xxx_pci_map_bus(struct pci_bus *bus, bus 54 arch/arm/mach-cns3xxx/pcie.c struct cns3xxx_pcie *cnspci = pbus_to_cnspci(bus); bus 55 arch/arm/mach-cns3xxx/pcie.c int busno = bus->number; bus 86 arch/arm/mach-cns3xxx/pcie.c static int cns3xxx_pci_read_config(struct pci_bus *bus, unsigned int devfn, bus 93 arch/arm/mach-cns3xxx/pcie.c ret = pci_generic_config_read(bus, devfn, where, size, val); bus 95 arch/arm/mach-cns3xxx/pcie.c if (ret == PCIBIOS_SUCCESSFUL && !bus->number && !devfn && bus 131 arch/arm/mach-cns3xxx/pcie.c int irq = cnspci->irqs[!!dev->bus->number]; bus 134 arch/arm/mach-cns3xxx/pcie.c pci_domain_nr(dev->bus), dev->bus->number, PCI_SLOT(dev->devfn), bus 83 arch/arm/mach-dove/pcie.c static int pcie_valid_config(struct pcie_port *pp, int bus, int dev) bus 89 arch/arm/mach-dove/pcie.c if (bus == pp->root_bus_nr && dev > 1) bus 95 arch/arm/mach-dove/pcie.c static int pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, bus 98 arch/arm/mach-dove/pcie.c struct pci_sys_data *sys = bus->sysdata; bus 103 arch/arm/mach-dove/pcie.c if (pcie_valid_config(pp, bus->number, PCI_SLOT(devfn)) == 0) { bus 109 arch/arm/mach-dove/pcie.c ret = orion_pcie_rd_conf(pp->base, bus, devfn, where, size, val); bus 115 arch/arm/mach-dove/pcie.c static int pcie_wr_conf(struct pci_bus *bus, u32 devfn, bus 118 arch/arm/mach-dove/pcie.c struct pci_sys_data *sys = bus->sysdata; bus 123 arch/arm/mach-dove/pcie.c if (pcie_valid_config(pp, bus->number, PCI_SLOT(devfn)) == 0) bus 127 arch/arm/mach-dove/pcie.c ret = orion_pcie_wr_conf(pp->base, bus, devfn, where, size, val); bus 143 arch/arm/mach-dove/pcie.c if (dev->bus->parent == NULL && dev->devfn == 0) { bus 38 arch/arm/mach-footbridge/cats-pci.c dev->bus->number, dev->devfn, dev->irq); bus 259 arch/arm/mach-footbridge/common.c unsigned long __bus_to_pfn(unsigned long bus) bus 261 arch/arm/mach-footbridge/common.c return __phys_to_pfn(bus - (fb_bus_sdram_offset() - PHYS_OFFSET)); bus 37 arch/arm/mach-footbridge/dc21285.c dc21285_base_address(struct pci_bus *bus, unsigned int devfn) bus 41 arch/arm/mach-footbridge/dc21285.c if (bus->number == 0) { bus 54 arch/arm/mach-footbridge/dc21285.c addr = PCICFG1_BASE | (bus->number << 16) | (devfn << 8); bus 60 arch/arm/mach-footbridge/dc21285.c dc21285_read_config(struct pci_bus *bus, unsigned int devfn, int where, bus 63 arch/arm/mach-footbridge/dc21285.c unsigned long addr = dc21285_base_address(bus, devfn); bus 94 arch/arm/mach-footbridge/dc21285.c dc21285_write_config(struct pci_bus *bus, unsigned int devfn, int where, bus 97 arch/arm/mach-footbridge/dc21285.c unsigned long addr = dc21285_base_address(bus, devfn); bus 58 arch/arm/mach-integrator/lm.c drv->drv.bus = &lm_bustype; bus 79 arch/arm/mach-integrator/lm.c dev->dev.bus = &lm_bustype; bus 119 arch/arm/mach-iop32x/iq31244.c "device PCI:%d:%d:%d\n", dev->bus->number, bus 154 arch/arm/mach-iop32x/iq31244.c "device PCI:%d:%d:%d\n", dev->bus->number, bus 90 arch/arm/mach-iop32x/iq80321.c "device PCI:%d:%d:%d\n", dev->bus->number, bus 103 arch/arm/mach-iop32x/n2100.c "device PCI:%d:%d:%d\n", dev->bus->number, bus 126 arch/arm/mach-iop32x/n2100.c if (dev->bus->number == 0 && bus 36 arch/arm/mach-iop32x/pci.c static u32 iop3xx_cfg_address(struct pci_bus *bus, int devfn, int where) bus 38 arch/arm/mach-iop32x/pci.c struct pci_sys_data *sys = bus->sysdata; bus 41 arch/arm/mach-iop32x/pci.c if (sys->busnr == bus->number) bus 44 arch/arm/mach-iop32x/pci.c addr = bus->number << 16 | PCI_SLOT(devfn) << 11 | 1; bus 110 arch/arm/mach-iop32x/pci.c iop3xx_read_config(struct pci_bus *bus, unsigned int devfn, int where, bus 113 arch/arm/mach-iop32x/pci.c unsigned long addr = iop3xx_cfg_address(bus, devfn, where); bus 125 arch/arm/mach-iop32x/pci.c iop3xx_write_config(struct pci_bus *bus, unsigned int devfn, int where, bus 128 arch/arm/mach-iop32x/pci.c unsigned long addr = iop3xx_cfg_address(bus, devfn, where); bus 238 arch/arm/mach-ixp4xx/common-pci.c static int ixp4xx_pci_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value) bus 241 arch/arm/mach-ixp4xx/common-pci.c u8 bus_num = bus->number; bus 261 arch/arm/mach-ixp4xx/common-pci.c static int ixp4xx_pci_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) bus 264 arch/arm/mach-ixp4xx/common-pci.c u8 bus_num = bus->number; bus 125 arch/arm/mach-mv78xx0/pcie.c static int pcie_valid_config(struct pcie_port *pp, int bus, int dev) bus 131 arch/arm/mach-mv78xx0/pcie.c if (bus == pp->root_bus_nr && dev > 1) bus 137 arch/arm/mach-mv78xx0/pcie.c static int pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, bus 140 arch/arm/mach-mv78xx0/pcie.c struct pci_sys_data *sys = bus->sysdata; bus 145 arch/arm/mach-mv78xx0/pcie.c if (pcie_valid_config(pp, bus->number, PCI_SLOT(devfn)) == 0) { bus 151 arch/arm/mach-mv78xx0/pcie.c ret = orion_pcie_rd_conf(pp->base, bus, devfn, where, size, val); bus 157 arch/arm/mach-mv78xx0/pcie.c static int pcie_wr_conf(struct pci_bus *bus, u32 devfn, bus 160 arch/arm/mach-mv78xx0/pcie.c struct pci_sys_data *sys = bus->sysdata; bus 165 arch/arm/mach-mv78xx0/pcie.c if (pcie_valid_config(pp, bus->number, PCI_SLOT(devfn)) == 0) bus 169 arch/arm/mach-mv78xx0/pcie.c ret = orion_pcie_wr_conf(pp->base, bus, devfn, where, size, val); bus 185 arch/arm/mach-mv78xx0/pcie.c if (dev->bus->parent == NULL && dev->devfn == 0) { bus 218 arch/arm/mach-mv78xx0/pcie.c struct pci_sys_data *sys = dev->bus->sysdata; bus 2395 arch/arm/mach-omap2/omap_hwmod.c struct device_node *bus; bus 2400 arch/arm/mach-omap2/omap_hwmod.c bus = of_find_node_by_name(NULL, "ocp"); bus 2401 arch/arm/mach-omap2/omap_hwmod.c if (!bus) bus 2404 arch/arm/mach-omap2/omap_hwmod.c r = of_dev_hwmod_lookup(bus, oh, &index, &np); bus 2819 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c static bool __init omap3xxx_hwmod_is_hs_ip_block_usable(struct device_node *bus, bus 2825 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c if (!bus) bus 2828 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c node = of_get_child_by_name(bus, dev_name); bus 2840 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c struct device_node *bus; bus 2896 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c bus = of_find_node_by_name(NULL, "ocp"); bus 2898 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c if (h_sham && omap3xxx_hwmod_is_hs_ip_block_usable(bus, "sham")) { bus 2904 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c if (h_aes && omap3xxx_hwmod_is_hs_ip_block_usable(bus, "aes")) { bus 2909 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c of_node_put(bus); bus 2960 arch/arm/mach-omap2/omap_hwmod_3xxx_data.c of_node_put(bus); bus 49 arch/arm/mach-orion5x/pci.c static int pcie_valid_config(int bus, int dev) bus 56 arch/arm/mach-orion5x/pci.c if (bus == 0 && dev == 0) bus 62 arch/arm/mach-orion5x/pci.c if (bus == 0 && dev != 1) bus 76 arch/arm/mach-orion5x/pci.c static int pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, bus 82 arch/arm/mach-orion5x/pci.c if (pcie_valid_config(bus->number, PCI_SLOT(devfn)) == 0) { bus 88 arch/arm/mach-orion5x/pci.c ret = orion_pcie_rd_conf(PCIE_BASE, bus, devfn, where, size, val); bus 94 arch/arm/mach-orion5x/pci.c static int pcie_rd_conf_wa(struct pci_bus *bus, u32 devfn, bus 99 arch/arm/mach-orion5x/pci.c if (pcie_valid_config(bus->number, PCI_SLOT(devfn)) == 0) { bus 115 arch/arm/mach-orion5x/pci.c bus, devfn, where, size, val); bus 120 arch/arm/mach-orion5x/pci.c static int pcie_wr_conf(struct pci_bus *bus, u32 devfn, bus 126 arch/arm/mach-orion5x/pci.c if (pcie_valid_config(bus->number, PCI_SLOT(devfn)) == 0) bus 130 arch/arm/mach-orion5x/pci.c ret = orion_pcie_wr_conf(PCIE_BASE, bus, devfn, where, size, val); bus 225 arch/arm/mach-orion5x/pci.c #define PCI_CONF_BUS(bus) (((bus) & 0xff) << 16) bus 273 arch/arm/mach-orion5x/pci.c static int orion5x_pci_hw_rd_conf(int bus, int dev, u32 func, bus 279 arch/arm/mach-orion5x/pci.c writel(PCI_CONF_BUS(bus) | bus 295 arch/arm/mach-orion5x/pci.c static int orion5x_pci_hw_wr_conf(int bus, int dev, u32 func, bus 303 arch/arm/mach-orion5x/pci.c writel(PCI_CONF_BUS(bus) | bus 322 arch/arm/mach-orion5x/pci.c static int orion5x_pci_valid_config(int bus, u32 devfn) bus 324 arch/arm/mach-orion5x/pci.c if (bus == orion5x_pci_local_bus_nr()) { bus 342 arch/arm/mach-orion5x/pci.c static int orion5x_pci_rd_conf(struct pci_bus *bus, u32 devfn, bus 345 arch/arm/mach-orion5x/pci.c if (!orion5x_pci_valid_config(bus->number, devfn)) { bus 350 arch/arm/mach-orion5x/pci.c return orion5x_pci_hw_rd_conf(bus->number, PCI_SLOT(devfn), bus 354 arch/arm/mach-orion5x/pci.c static int orion5x_pci_wr_conf(struct pci_bus *bus, u32 devfn, bus 357 arch/arm/mach-orion5x/pci.c if (!orion5x_pci_valid_config(bus->number, devfn)) bus 360 arch/arm/mach-orion5x/pci.c return orion5x_pci_hw_wr_conf(bus->number, PCI_SLOT(devfn), bus 377 arch/arm/mach-orion5x/pci.c u32 pcix_status, bus, dev; bus 378 arch/arm/mach-orion5x/pci.c bus = (p2p & PCI_P2P_BUS_MASK) >> PCI_P2P_BUS_OFFS; bus 380 arch/arm/mach-orion5x/pci.c orion5x_pci_hw_rd_conf(bus, dev, 0, PCIX_STAT, 4, &pcix_status); bus 383 arch/arm/mach-orion5x/pci.c orion5x_pci_hw_wr_conf(bus, dev, 0, PCIX_STAT, 4, pcix_status); bus 411 arch/arm/mach-orion5x/pci.c int bus; bus 423 arch/arm/mach-orion5x/pci.c bus = orion5x_pci_local_bus_nr(); bus 435 arch/arm/mach-orion5x/pci.c orion5x_pci_hw_rd_conf(bus, 0, func, reg, 4, &val); bus 437 arch/arm/mach-orion5x/pci.c orion5x_pci_hw_wr_conf(bus, 0, func, reg, 4, val); bus 443 arch/arm/mach-orion5x/pci.c orion5x_pci_hw_wr_conf(bus, 0, func, reg, 4, 0); bus 517 arch/arm/mach-orion5x/pci.c if (dev->bus->parent == NULL && dev->devfn == 0) { bus 583 arch/arm/mach-orion5x/pci.c int bus = dev->bus->number; bus 588 arch/arm/mach-orion5x/pci.c if (orion5x_pci_disabled || bus < orion5x_pci_local_bus_nr()) bus 140 arch/arm/mach-prima2/rtciobrg.c const struct regmap_bus *bus = ®map_iobg; bus 142 arch/arm/mach-prima2/rtciobrg.c return devm_regmap_init(dev, bus, dev, config); bus 710 arch/arm/mach-rpc/ecard.c ec->dev.bus = &ecard_bus_type; bus 1104 arch/arm/mach-rpc/ecard.c drv->drv.bus = &ecard_bus_type; bus 92 arch/arm/mach-s3c24xx/s3c2410.c .bus = &s3c2410_subsys, bus 129 arch/arm/mach-s3c24xx/s3c2410.c s3c2410_dev.bus = &s3c2410a_subsys; bus 164 arch/arm/mach-s3c24xx/s3c2412.c .bus = &s3c2412_subsys, bus 66 arch/arm/mach-s3c24xx/s3c2416.c .bus = &s3c2416_subsys, bus 41 arch/arm/mach-s3c24xx/s3c2440.c .bus = &s3c2440_subsys, bus 41 arch/arm/mach-s3c24xx/s3c2442.c .bus = &s3c2442_subsys, bus 57 arch/arm/mach-s3c24xx/s3c2443.c .bus = &s3c2443_subsys, bus 163 arch/arm/mach-s3c64xx/common.c .bus = &s3c64xx_subsys, bus 73 arch/arm/mach-s3c64xx/s3c6400.c .bus = &s3c6400_subsys, bus 76 arch/arm/mach-s3c64xx/s3c6410.c .bus = &s3c6410_subsys, bus 19 arch/arm/mach-sa1100/pci-nanoengine.c static void __iomem *nanoengine_pci_map_bus(struct pci_bus *bus, bus 22 arch/arm/mach-sa1100/pci-nanoengine.c if (bus->number != 0 || (devfn >> 3) != 0) bus 26 arch/arm/mach-sa1100/pci-nanoengine.c ((bus->number << 16) | (devfn << 8) | (where & ~3)); bus 2072 arch/arm/mm/dma-mapping.c arm_iommu_create_mapping(struct bus_type *bus, dma_addr_t base, u64 size) bus 2113 arch/arm/mm/dma-mapping.c mapping->domain = iommu_domain_alloc(bus); bus 2250 arch/arm/mm/dma-mapping.c mapping = arm_iommu_create_mapping(dev->bus, dma_base, size); bus 24 arch/arm/plat-orion/include/plat/pcie.h int orion_pcie_rd_conf(void __iomem *base, struct pci_bus *bus, bus 26 arch/arm/plat-orion/include/plat/pcie.h int orion_pcie_rd_conf_tlp(void __iomem *base, struct pci_bus *bus, bus 28 arch/arm/plat-orion/include/plat/pcie.h int orion_pcie_rd_conf_wa(void __iomem *wa_base, struct pci_bus *bus, bus 30 arch/arm/plat-orion/include/plat/pcie.h int orion_pcie_wr_conf(void __iomem *base, struct pci_bus *bus, bus 208 arch/arm/plat-orion/pcie.c int orion_pcie_rd_conf(void __iomem *base, struct pci_bus *bus, bus 211 arch/arm/plat-orion/pcie.c writel(PCIE_CONF_BUS(bus->number) | bus 227 arch/arm/plat-orion/pcie.c int orion_pcie_rd_conf_tlp(void __iomem *base, struct pci_bus *bus, bus 230 arch/arm/plat-orion/pcie.c writel(PCIE_CONF_BUS(bus->number) | bus 238 arch/arm/plat-orion/pcie.c if (bus->number != orion_pcie_get_local_bus_nr(base) || bus 250 arch/arm/plat-orion/pcie.c int orion_pcie_rd_conf_wa(void __iomem *wa_base, struct pci_bus *bus, bus 253 arch/arm/plat-orion/pcie.c *val = readl(wa_base + (PCIE_CONF_BUS(bus->number) | bus 266 arch/arm/plat-orion/pcie.c int orion_pcie_wr_conf(void __iomem *base, struct pci_bus *bus, bus 271 arch/arm/plat-orion/pcie.c writel(PCIE_CONF_BUS(bus->number) | bus 31 arch/arm64/include/asm/pci.h static inline int pci_proc_domain(struct pci_bus *bus) bus 10 arch/arm64/include/asm/topology.h int pcibus_to_node(struct pci_bus *bus); bus 11 arch/arm64/include/asm/topology.h #define cpumask_of_pcibus(bus) (pcibus_to_node(bus) == -1 ? \ bus 13 arch/arm64/include/asm/topology.h cpumask_of_node(pcibus_to_node(bus))) bus 37 arch/arm64/kernel/pci.c int raw_pci_read(unsigned int domain, unsigned int bus, bus 40 arch/arm64/kernel/pci.c struct pci_bus *b = pci_find_bus(domain, bus); bus 47 arch/arm64/kernel/pci.c int raw_pci_write(unsigned int domain, unsigned int bus, bus 50 arch/arm64/kernel/pci.c struct pci_bus *b = pci_find_bus(domain, bus); bus 59 arch/arm64/kernel/pci.c int pcibus_to_node(struct pci_bus *bus) bus 61 arch/arm64/kernel/pci.c return dev_to_node(&bus->dev); bus 74 arch/arm64/kernel/pci.c int acpi_pci_bus_find_domain_nr(struct pci_bus *bus) bus 76 arch/arm64/kernel/pci.c struct pci_config_window *cfg = bus->sysdata; bus 86 arch/arm64/kernel/pci.c struct pci_config_window *cfg = bridge->bus->sysdata; bus 88 arch/arm64/kernel/pci.c struct device *bus_dev = &bridge->bus->dev; bus 165 arch/arm64/kernel/pci.c struct pci_bus *bus, *child; bus 189 arch/arm64/kernel/pci.c bus = acpi_pci_root_create(root, root_ops, &ri->common, ri->cfg); bus 190 arch/arm64/kernel/pci.c if (!bus) bus 194 arch/arm64/kernel/pci.c host = pci_find_host_bridge(bus); bus 196 arch/arm64/kernel/pci.c pci_bus_claim_resources(bus); bus 202 arch/arm64/kernel/pci.c pci_assign_unassigned_root_bus_resources(bus); bus 204 arch/arm64/kernel/pci.c list_for_each_entry(child, &bus->children, node) bus 207 arch/arm64/kernel/pci.c return bus; bus 210 arch/arm64/kernel/pci.c void pcibios_add_bus(struct pci_bus *bus) bus 212 arch/arm64/kernel/pci.c acpi_pci_add_bus(bus); bus 215 arch/arm64/kernel/pci.c void pcibios_remove_bus(struct pci_bus *bus) bus 217 arch/arm64/kernel/pci.c acpi_pci_remove_bus(bus); bus 1739 arch/ia64/hp/common/sba_iommu.c sac->dev.bus = &pci_bus_type; bus 1931 arch/ia64/hp/common/sba_iommu.c sba_connect_bus(struct pci_bus *bus) bus 1937 arch/ia64/hp/common/sba_iommu.c if (!PCI_CONTROLLER(bus)) bus 1938 arch/ia64/hp/common/sba_iommu.c panic(PFX "no sysdata on bus %d!\n", bus->number); bus 1940 arch/ia64/hp/common/sba_iommu.c if (PCI_CONTROLLER(bus)->iommu) bus 1943 arch/ia64/hp/common/sba_iommu.c handle = acpi_device_handle(PCI_CONTROLLER(bus)->companion); bus 1955 arch/ia64/hp/common/sba_iommu.c PCI_CONTROLLER(bus)->iommu = ioc; bus 1963 arch/ia64/hp/common/sba_iommu.c printk(KERN_WARNING "No IOC for PCI Bus %04x:%02x in ACPI\n", pci_domain_nr(bus), bus->number); bus 11 arch/ia64/include/asm/dma-mapping.h static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) bus 17 arch/ia64/include/asm/pci.h __u16 bus; /* PCI Bus number */ bus 38 arch/ia64/include/asm/pci.h extern int pci_mmap_legacy_page_range(struct pci_bus *bus, bus 42 arch/ia64/include/asm/pci.h char *pci_get_legacy_mem(struct pci_bus *bus); bus 43 arch/ia64/include/asm/pci.h int pci_legacy_read(struct pci_bus *bus, u16 port, u32 *val, u8 size); bus 44 arch/ia64/include/asm/pci.h int pci_legacy_write(struct pci_bus *bus, u16 port, u32 val, u8 size); bus 61 arch/ia64/include/asm/pci.h static inline int pci_proc_domain(struct pci_bus *bus) bus 63 arch/ia64/include/asm/pci.h return (pci_domain_nr(bus) != 0); bus 35 arch/ia64/include/asm/topology.h #define pcibus_to_node(bus) PCI_CONTROLLER(bus)->node bus 50 arch/ia64/include/asm/topology.h #define cpumask_of_pcibus(bus) (pcibus_to_node(bus) == -1 ? \ bus 52 arch/ia64/include/asm/topology.h cpumask_of_node(pcibus_to_node(bus))) bus 693 arch/ia64/kernel/palinfo.c struct pal_freq_ratio proc, itc, bus; bus 701 arch/ia64/kernel/palinfo.c if (ia64_pal_freq_ratios(&proc, &bus, &itc) != 0) return 0; bus 707 arch/ia64/kernel/palinfo.c proc.num, proc.den, bus.num, bus.den, itc.num, itc.den); bus 33 arch/ia64/pci/fixup.c struct pci_bus *bus; bus 42 arch/ia64/pci/fixup.c bus = pdev->bus; bus 43 arch/ia64/pci/fixup.c while (bus) { bus 44 arch/ia64/pci/fixup.c bridge = bus->self; bus 59 arch/ia64/pci/fixup.c bus = bus->parent; bus 40 arch/ia64/pci/pci.c #define PCI_SAL_ADDRESS(seg, bus, devfn, reg) \ bus 41 arch/ia64/pci/pci.c (((u64) seg << 24) | (bus << 16) | (devfn << 8) | (reg)) bus 45 arch/ia64/pci/pci.c #define PCI_SAL_EXT_ADDRESS(seg, bus, devfn, reg) \ bus 46 arch/ia64/pci/pci.c (((u64) seg << 28) | (bus << 20) | (devfn << 12) | (reg)) bus 48 arch/ia64/pci/pci.c int raw_pci_read(unsigned int seg, unsigned int bus, unsigned int devfn, bus 54 arch/ia64/pci/pci.c if (!value || (seg > 65535) || (bus > 255) || (devfn > 255) || (reg > 4095)) bus 58 arch/ia64/pci/pci.c addr = PCI_SAL_ADDRESS(seg, bus, devfn, reg); bus 61 arch/ia64/pci/pci.c addr = PCI_SAL_EXT_ADDRESS(seg, bus, devfn, reg); bus 75 arch/ia64/pci/pci.c int raw_pci_write(unsigned int seg, unsigned int bus, unsigned int devfn, bus 81 arch/ia64/pci/pci.c if ((seg > 65535) || (bus > 255) || (devfn > 255) || (reg > 4095)) bus 85 arch/ia64/pci/pci.c addr = PCI_SAL_ADDRESS(seg, bus, devfn, reg); bus 88 arch/ia64/pci/pci.c addr = PCI_SAL_EXT_ADDRESS(seg, bus, devfn, reg); bus 99 arch/ia64/pci/pci.c static int pci_read(struct pci_bus *bus, unsigned int devfn, int where, bus 102 arch/ia64/pci/pci.c return raw_pci_read(pci_domain_nr(bus), bus->number, bus 106 arch/ia64/pci/pci.c static int pci_write(struct pci_bus *bus, unsigned int devfn, int where, bus 109 arch/ia64/pci/pci.c return raw_pci_write(pci_domain_nr(bus), bus->number, bus 320 arch/ia64/pci/pci.c struct pci_controller *controller = bridge->bus->sysdata; bus 330 arch/ia64/pci/pci.c if (!dev->bus) bus 348 arch/ia64/pci/pci.c if (!dev->bus) bus 376 arch/ia64/pci/pci.c void pcibios_add_bus(struct pci_bus *bus) bus 378 arch/ia64/pci/pci.c acpi_pci_add_bus(bus); bus 381 arch/ia64/pci/pci.c void pcibios_remove_bus(struct pci_bus *bus) bus 383 arch/ia64/pci/pci.c acpi_pci_remove_bus(bus); bus 425 arch/ia64/pci/pci.c char *pci_get_legacy_mem(struct pci_bus *bus) bus 439 arch/ia64/pci/pci.c pci_mmap_legacy_page_range(struct pci_bus *bus, struct vm_area_struct *vma, bus 459 arch/ia64/pci/pci.c addr = pci_get_legacy_mem(bus); bus 486 arch/ia64/pci/pci.c int pci_legacy_read(struct pci_bus *bus, u16 port, u32 *val, u8 size) bus 517 arch/ia64/pci/pci.c int pci_legacy_write(struct pci_bus *bus, u16 port, u32 val, u8 size) bus 53 arch/m68k/coldfire/pci.c static unsigned long mcf_mk_pcicar(int bus, unsigned int devfn, int where) bus 55 arch/m68k/coldfire/pci.c return (bus << PCICAR_BUSN) | (devfn << PCICAR_DEVFNN) | (where & 0xfc); bus 58 arch/m68k/coldfire/pci.c static int mcf_pci_readconfig(struct pci_bus *bus, unsigned int devfn, bus 65 arch/m68k/coldfire/pci.c if (bus->number == 0) { bus 70 arch/m68k/coldfire/pci.c addr = mcf_mk_pcicar(bus->number, devfn, where); bus 92 arch/m68k/coldfire/pci.c static int mcf_pci_writeconfig(struct pci_bus *bus, unsigned int devfn, bus 97 arch/m68k/coldfire/pci.c if (bus->number == 0) { bus 102 arch/m68k/coldfire/pci.c addr = mcf_mk_pcicar(bus->number, devfn, where); bus 246 arch/m68k/coldfire/pci.c rootbus = bridge->bus; bus 86 arch/m68k/kernel/pcibios.c void pcibios_fixup_bus(struct pci_bus *bus) bus 90 arch/m68k/kernel/pcibios.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 27 arch/microblaze/include/asm/pci-bridge.h struct pci_bus *bus; bus 92 arch/microblaze/include/asm/pci-bridge.h static inline struct pci_controller *pci_bus_to_host(const struct pci_bus *bus) bus 94 arch/microblaze/include/asm/pci-bridge.h return bus->sysdata; bus 108 arch/microblaze/include/asm/pci-bridge.h extern int early_read_config_byte(struct pci_controller *hose, int bus, bus 110 arch/microblaze/include/asm/pci-bridge.h extern int early_read_config_word(struct pci_controller *hose, int bus, bus 112 arch/microblaze/include/asm/pci-bridge.h extern int early_read_config_dword(struct pci_controller *hose, int bus, bus 114 arch/microblaze/include/asm/pci-bridge.h extern int early_write_config_byte(struct pci_controller *hose, int bus, bus 116 arch/microblaze/include/asm/pci-bridge.h extern int early_write_config_word(struct pci_controller *hose, int bus, bus 118 arch/microblaze/include/asm/pci-bridge.h extern int early_write_config_dword(struct pci_controller *hose, int bus, bus 121 arch/microblaze/include/asm/pci-bridge.h extern int early_find_capability(struct pci_controller *hose, int bus, bus 39 arch/microblaze/include/asm/pci.h extern int pci_domain_nr(struct pci_bus *bus); bus 42 arch/microblaze/include/asm/pci.h extern int pci_proc_domain(struct pci_bus *bus); bus 51 arch/microblaze/include/asm/pci.h extern int pci_legacy_read(struct pci_bus *bus, loff_t port, u32 *val, bus 53 arch/microblaze/include/asm/pci.h extern int pci_legacy_write(struct pci_bus *bus, loff_t port, u32 val, bus 55 arch/microblaze/include/asm/pci.h extern int pci_mmap_legacy_page_range(struct pci_bus *bus, bus 18 arch/microblaze/pci/indirect_pci.c indirect_read_config(struct pci_bus *bus, unsigned int devfn, int offset, bus 21 arch/microblaze/pci/indirect_pci.c struct pci_controller *hose = pci_bus_to_host(bus); bus 27 arch/microblaze/pci/indirect_pci.c if (bus->number != hose->first_busno) bus 34 arch/microblaze/pci/indirect_pci.c if (bus->number != hose->first_busno) bus 37 arch/microblaze/pci/indirect_pci.c bus_no = (bus->number == hose->first_busno) ? bus 38 arch/microblaze/pci/indirect_pci.c hose->self_busno : bus->number; bus 72 arch/microblaze/pci/indirect_pci.c indirect_write_config(struct pci_bus *bus, unsigned int devfn, int offset, bus 75 arch/microblaze/pci/indirect_pci.c struct pci_controller *hose = pci_bus_to_host(bus); bus 81 arch/microblaze/pci/indirect_pci.c if (bus->number != hose->first_busno) bus 88 arch/microblaze/pci/indirect_pci.c if (bus->number != hose->first_busno) bus 91 arch/microblaze/pci/indirect_pci.c bus_no = (bus->number == hose->first_busno) ? bus 92 arch/microblaze/pci/indirect_pci.c hose->self_busno : bus->number; bus 109 arch/microblaze/pci/indirect_pci.c (bus->number == hose->first_busno)) bus 155 arch/microblaze/pci/pci-common.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); bus 218 arch/microblaze/pci/pci-common.c int pci_legacy_read(struct pci_bus *bus, loff_t port, u32 *val, size_t size) bus 221 arch/microblaze/pci/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); bus 258 arch/microblaze/pci/pci-common.c int pci_legacy_write(struct pci_bus *bus, loff_t port, u32 val, size_t size) bus 261 arch/microblaze/pci/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); bus 303 arch/microblaze/pci/pci-common.c int pci_mmap_legacy_page_range(struct pci_bus *bus, bus 307 arch/microblaze/pci/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); bus 314 arch/microblaze/pci/pci-common.c pci_domain_nr(bus), bus->number, bus 332 arch/microblaze/pci/pci-common.c pci_domain_nr(bus), bus->number); bus 366 arch/microblaze/pci/pci-common.c pcibios_resource_to_bus(dev->bus, ®ion, bus 552 arch/microblaze/pci/pci-common.c int pci_proc_domain(struct pci_bus *bus) bus 554 arch/microblaze/pci/pci-common.c return pci_domain_nr(bus); bus 562 arch/microblaze/pci/pci-common.c struct pci_controller *hose = pci_bus_to_host(dev->bus); bus 674 arch/microblaze/pci/pci-common.c static void pcibios_allocate_bus_resources(struct pci_bus *bus) bus 681 arch/microblaze/pci/pci-common.c pci_domain_nr(bus), bus->number); bus 683 arch/microblaze/pci/pci-common.c pci_bus_for_each_resource(bus, res, i) { bus 687 arch/microblaze/pci/pci-common.c if (bus->parent == NULL) bus 697 arch/microblaze/pci/pci-common.c pr = pci_find_parent_resource(bus->self, res); bus 708 arch/microblaze/pci/pci-common.c bus->self ? pci_name(bus->self) : "PHB", bus 709 arch/microblaze/pci/pci-common.c bus->number, i, bus 717 arch/microblaze/pci/pci-common.c struct pci_dev *dev = bus->self; bus 736 arch/microblaze/pci/pci-common.c pr_cont("%d of PCI bridge %d, will remap\n", i, bus->number); bus 741 arch/microblaze/pci/pci-common.c list_for_each_entry(b, &bus->children, node) bus 820 arch/microblaze/pci/pci-common.c static void __init pcibios_reserve_legacy_regions(struct pci_bus *bus) bus 822 arch/microblaze/pci/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); bus 828 arch/microblaze/pci/pci-common.c pci_domain_nr(bus)); bus 843 arch/microblaze/pci/pci-common.c pci_domain_nr(bus), bus->number, res); bus 871 arch/microblaze/pci/pci-common.c pci_domain_nr(bus), bus->number, res); bus 966 arch/microblaze/pci/pci-common.c struct pci_bus *bus; bus 973 arch/microblaze/pci/pci-common.c bus = pci_scan_root_bus(hose->parent, hose->first_busno, bus 975 arch/microblaze/pci/pci-common.c if (bus == NULL) { bus 981 arch/microblaze/pci/pci-common.c bus->busn_res.start = hose->first_busno; bus 982 arch/microblaze/pci/pci-common.c hose->bus = bus; bus 984 arch/microblaze/pci/pci-common.c hose->last_busno = bus->busn_res.end; bus 1006 arch/microblaze/pci/pci-common.c if (hose->bus) bus 1007 arch/microblaze/pci/pci-common.c pci_bus_add_devices(hose->bus); bus 1015 arch/microblaze/pci/pci-common.c static struct pci_controller *pci_bus_to_hose(int bus) bus 1020 arch/microblaze/pci/pci-common.c if (bus >= hose->first_busno && bus <= hose->last_busno) bus 1031 arch/microblaze/pci/pci-common.c long sys_pciconfig_iobase(long which, unsigned long bus, unsigned long devfn) bus 1036 arch/microblaze/pci/pci-common.c hose = pci_bus_to_hose(bus); bus 1068 arch/microblaze/pci/pci-common.c null_read_config(struct pci_bus *bus, unsigned int devfn, int offset, bus 1075 arch/microblaze/pci/pci-common.c null_write_config(struct pci_bus *bus, unsigned int devfn, int offset, bus 1093 arch/microblaze/pci/pci-common.c static struct pci_bus bus; bus 1098 arch/microblaze/pci/pci-common.c bus.number = busnr; bus 1099 arch/microblaze/pci/pci-common.c bus.sysdata = hose; bus 1100 arch/microblaze/pci/pci-common.c bus.ops = hose ? hose->ops : &null_pci_ops; bus 1101 arch/microblaze/pci/pci-common.c return &bus; bus 1105 arch/microblaze/pci/pci-common.c int early_##rw##_config_##size(struct pci_controller *hose, int bus, \ bus 1108 arch/microblaze/pci/pci-common.c return pci_bus_##rw##_config_##size(fake_pci_bus(hose, bus), \ bus 1119 arch/microblaze/pci/pci-common.c int early_find_capability(struct pci_controller *hose, int bus, int devfn, bus 1122 arch/microblaze/pci/pci-common.c return pci_bus_find_capability(fake_pci_bus(hose, bus), devfn, cap); bus 43 arch/microblaze/pci/xilinx_pci.c if (dev->devfn || dev->bus->self) bus 46 arch/microblaze/pci/xilinx_pci.c hose = pci_bus_to_host(dev->bus); bus 75 arch/microblaze/pci/xilinx_pci.c xilinx_pci_exclude_device(struct pci_controller *hose, u_char bus, u8 devfn) bus 77 arch/microblaze/pci/xilinx_pci.c return (bus != 0); bus 87 arch/microblaze/pci/xilinx_pci.c u32 bus = 0; bus 94 arch/microblaze/pci/xilinx_pci.c pr_info("%02x:%02x:%02x", bus, dev, func); bus 98 arch/microblaze/pci/xilinx_pci.c early_read_config_dword(hose, bus, bus 60 arch/mips/ar7/clock.c struct tnetd7300_clock bus; bus 245 arch/mips/ar7/clock.c &clocks->bus, bootcr, AR7_AFE_CLOCK); bus 78 arch/mips/bcm47xx/irq.c bcma_write32(bcm47xx_bus.bcma.bus.drv_mips.core, bus 146 arch/mips/bcm47xx/prom.c if (bcm47xx_bus.bcma.bus.chipinfo.id == BCMA_CHIP_ID_BCM4706) bus 57 arch/mips/bcm47xx/serial.c struct bcma_drv_cc *cc = &(bcm47xx_bus.bcma.bus.drv_cc); bus 76 arch/mips/bcm47xx/setup.c bcma_chipco_watchdog_timer_set(&bcm47xx_bus.bcma.bus.drv_cc, 1); bus 96 arch/mips/bcm47xx/setup.c bcma_chipco_watchdog_timer_set(&bcm47xx_bus.bcma.bus.drv_cc, 0); bus 156 arch/mips/bcm47xx/setup.c bcm47xx_set_system_type(bcm47xx_bus.bcma.bus.chipinfo.id); bus 242 arch/mips/bcm47xx/setup.c if (bcm47xx_bus.bcma.bus.chipinfo.id == BCMA_CHIP_ID_BCM4706) bus 269 arch/mips/bcm47xx/setup.c bcma_bus_register(&bcm47xx_bus.bcma.bus); bus 55 arch/mips/bcm47xx/time.c hz = bcma_cpu_clock(&bcm47xx_bus.bcma.bus.drv_mips) / 2; bus 56 arch/mips/bcm47xx/time.c chip_id = bcm47xx_bus.bcma.bus.chipinfo.id; bus 721 arch/mips/bcm63xx/boards/board_bcm963xx.c int bcm63xx_get_fallback_sprom(struct ssb_bus *bus, struct ssb_sprom *out) bus 723 arch/mips/bcm63xx/boards/board_bcm963xx.c if (bus->bustype == SSB_BUSTYPE_PCI) { bus 9 arch/mips/include/asm/dma-mapping.h static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) bus 438 arch/mips/include/asm/io.h #define __BUILD_MEMORY_PFX(bus, bwlq, type, relax) \ bus 440 arch/mips/include/asm/io.h __BUILD_MEMORY_SINGLE(bus, bwlq, type, 1, relax, 1) bus 459 arch/mips/include/asm/io.h #define __BUILD_IOPORT_PFX(bus, bwlq, type) \ bus 460 arch/mips/include/asm/io.h __BUILD_IOPORT_SINGLE(bus, bwlq, type, 1, 0,) \ bus 461 arch/mips/include/asm/io.h __BUILD_IOPORT_SINGLE(bus, bwlq, type, 1, 0, _p) bus 24 arch/mips/include/asm/mach-ip27/topology.h #define cpumask_of_pcibus(bus) (cpumask_of_node(pcibus_to_node(bus))) bus 13 arch/mips/include/asm/mach-loongson64/topology.h #define cpumask_of_pcibus(bus) (cpu_online_mask) bus 53 arch/mips/include/asm/netlogic/xlp-hal/iomap.h #define XLP_HDR_OFFSET(node, bus, dev, fn) \ bus 54 arch/mips/include/asm/netlogic/xlp-hal/iomap.h XLP_IO_PCI_OFFSET(bus, XLP_IO_DEV(node, dev), fn) bus 32 arch/mips/include/asm/pci.h struct pci_bus *bus; bus 124 arch/mips/include/asm/pci.h static inline int pci_proc_domain(struct pci_bus *bus) bus 126 arch/mips/include/asm/pci.h return pci_domain_nr(bus); bus 129 arch/mips/include/asm/pci.h #define pci_domain_nr(bus) ((struct pci_controller *)(bus)->sysdata)->index bus 131 arch/mips/include/asm/pci.h static inline int pci_proc_domain(struct pci_bus *bus) bus 133 arch/mips/include/asm/pci.h struct pci_controller *hose = bus->sysdata; bus 813 arch/mips/include/asm/pci/bridge.h #define BRIDGE_CONTROLLER(bus) \ bus 814 arch/mips/include/asm/pci/bridge.h ((struct bridge_controller *)((bus)->sysdata)) bus 27 arch/mips/jz4740/setup.c u32 ctrl, bus, bank, rows, cols; bus 32 arch/mips/jz4740/setup.c bus = 2 - ((ctrl >> 31) & 1); bus 38 arch/mips/jz4740/setup.c bus, bank, rows, cols); bus 41 arch/mips/jz4740/setup.c size = 1 << (bus + bank + cols + rows); bus 19 arch/mips/lib/iomap-pci.c struct pci_controller *ctrl = dev->bus->sysdata; bus 24 arch/mips/lib/iomap-pci.c struct pci_bus *bus = dev->bus; bus 27 arch/mips/lib/iomap-pci.c while (bus->parent) bus 28 arch/mips/lib/iomap-pci.c bus = bus->parent; bus 32 arch/mips/lib/iomap-pci.c sprintf(name, "%04x:%02x", pci_domain_nr(bus), bus->number); bus 259 arch/mips/loongson64/loongson-3/numa.c int pcibus_to_node(struct pci_bus *bus) bus 289 arch/mips/netlogic/common/irq.c int socid, ret, bus; bus 299 arch/mips/netlogic/common/irq.c bus = (res.start >> 20) & 0xf; bus 303 arch/mips/netlogic/common/irq.c if (nlm_get_node(socid)->socbus == bus) bus 308 arch/mips/netlogic/common/irq.c node, bus); bus 75 arch/mips/pci/fixup-jmr3927.c if (dev->bus->parent == NULL && bus 43 arch/mips/pci/fixup-rc32434.c if (dev->bus->number < 2 && PCI_SLOT(dev->devfn) < 12) bus 44 arch/mips/pci/fixup-rc32434.c irq = irq_map[dev->bus->number][PCI_SLOT(dev->devfn)]; bus 51 arch/mips/pci/fixup-rc32434.c if (PCI_SLOT(dev->devfn) == 6 && dev->bus->number == 0) { bus 43 arch/mips/pci/fixup-sb1250.c exclude_this = exclude->set && (dev->bus->number >= exclude->start && bus 44 arch/mips/pci/fixup-sb1250.c dev->bus->number <= exclude->end); bus 68 arch/mips/pci/fixup-sb1250.c pci_walk_bus(dev->bus, sb1250_bus_dma_mask, &exclude); bus 142 arch/mips/pci/fixup-sni.c while (dev && dev->bus->number != 1) bus 143 arch/mips/pci/fixup-sni.c dev = dev->bus->self; bus 14 arch/mips/pci/fixup-tb0287.c unsigned char bus; bus 17 arch/mips/pci/fixup-tb0287.c bus = dev->bus->number; bus 18 arch/mips/pci/fixup-tb0287.c if (bus == 0) { bus 29 arch/mips/pci/fixup-tb0287.c } else if (bus == 1) { bus 41 arch/mips/pci/fixup-tb0287.c } else if (bus > 1) { bus 147 arch/mips/pci/ops-bcm63xx.c static int bcm63xx_pci_read(struct pci_bus *bus, unsigned int devfn, bus 152 arch/mips/pci/ops-bcm63xx.c type = bus->parent ? 1 : 0; bus 157 arch/mips/pci/ops-bcm63xx.c return bcm63xx_do_cfg_read(type, bus->number, devfn, bus 161 arch/mips/pci/ops-bcm63xx.c static int bcm63xx_pci_write(struct pci_bus *bus, unsigned int devfn, bus 166 arch/mips/pci/ops-bcm63xx.c type = bus->parent ? 1 : 0; bus 171 arch/mips/pci/ops-bcm63xx.c return bcm63xx_do_cfg_write(type, bus->number, devfn, bus 362 arch/mips/pci/ops-bcm63xx.c static int bcm63xx_cb_read(struct pci_bus *bus, unsigned int devfn, bus 367 arch/mips/pci/ops-bcm63xx.c if (!bus->parent && PCI_SLOT(devfn) == FAKE_CB_BRIDGE_SLOT) { bus 368 arch/mips/pci/ops-bcm63xx.c fake_cb_bridge_bus_number = bus->number; bus 377 arch/mips/pci/ops-bcm63xx.c bus->number == fake_cb_bridge_regs.cardbus_busn && bus 386 arch/mips/pci/ops-bcm63xx.c static int bcm63xx_cb_write(struct pci_bus *bus, unsigned int devfn, bus 389 arch/mips/pci/ops-bcm63xx.c if (!bus->parent && PCI_SLOT(devfn) == FAKE_CB_BRIDGE_SLOT) { bus 390 arch/mips/pci/ops-bcm63xx.c fake_cb_bridge_bus_number = bus->number; bus 395 arch/mips/pci/ops-bcm63xx.c bus->number == fake_cb_bridge_regs.cardbus_busn && bus 432 arch/mips/pci/ops-bcm63xx.c if (dev->bus->number == fake_cb_bridge_bus_number) bus 437 arch/mips/pci/ops-bcm63xx.c dev->bus->number == fake_cb_bridge_regs.cardbus_busn && bus 468 arch/mips/pci/ops-bcm63xx.c static int bcm63xx_pcie_can_access(struct pci_bus *bus, int devfn) bus 470 arch/mips/pci/ops-bcm63xx.c switch (bus->number) { bus 483 arch/mips/pci/ops-bcm63xx.c static int bcm63xx_pcie_read(struct pci_bus *bus, unsigned int devfn, bus 489 arch/mips/pci/ops-bcm63xx.c if (!bcm63xx_pcie_can_access(bus, devfn)) bus 492 arch/mips/pci/ops-bcm63xx.c if (bus->number == PCIE_BUS_DEVICE) bus 503 arch/mips/pci/ops-bcm63xx.c static int bcm63xx_pcie_write(struct pci_bus *bus, unsigned int devfn, bus 509 arch/mips/pci/ops-bcm63xx.c if (!bcm63xx_pcie_can_access(bus, devfn)) bus 512 arch/mips/pci/ops-bcm63xx.c if (bus->number == PCIE_BUS_DEVICE) bus 25 arch/mips/pci/ops-bonito64.c struct pci_bus *bus, bus 29 arch/mips/pci/ops-bonito64.c u32 busnum = bus->number; bus 89 arch/mips/pci/ops-bonito64.c static int bonito64_pcibios_read(struct pci_bus *bus, unsigned int devfn, bus 99 arch/mips/pci/ops-bonito64.c if (bonito64_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, bus 113 arch/mips/pci/ops-bonito64.c static int bonito64_pcibios_write(struct pci_bus *bus, unsigned int devfn, bus 126 arch/mips/pci/ops-bonito64.c if (bonito64_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, bus 138 arch/mips/pci/ops-bonito64.c if (bonito64_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where, bus 26 arch/mips/pci/ops-emma2rh.c static int check_args(struct pci_bus *bus, u32 devfn, u32 * bus_num) bus 29 arch/mips/pci/ops-emma2rh.c if (bus->parent != NULL) bus 30 arch/mips/pci/ops-emma2rh.c *bus_num = bus->number; bus 69 arch/mips/pci/ops-emma2rh.c static int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, bus 79 arch/mips/pci/ops-emma2rh.c if (check_args(bus, devfn, &bus_num) == PCIBIOS_DEVICE_NOT_FOUND) bus 114 arch/mips/pci/ops-emma2rh.c static int pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, bus 123 arch/mips/pci/ops-emma2rh.c if (check_args(bus, devfn, &bus_num) == PCIBIOS_DEVICE_NOT_FOUND) bus 31 arch/mips/pci/ops-gt64xxx_pci0.c struct pci_bus *bus, unsigned int devfn, int where, u32 * data) bus 33 arch/mips/pci/ops-gt64xxx_pci0.c unsigned char busnum = bus->number; bus 91 arch/mips/pci/ops-gt64xxx_pci0.c static int gt64xxx_pci0_pcibios_read(struct pci_bus *bus, unsigned int devfn, bus 96 arch/mips/pci/ops-gt64xxx_pci0.c if (gt64xxx_pci0_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, bus 110 arch/mips/pci/ops-gt64xxx_pci0.c static int gt64xxx_pci0_pcibios_write(struct pci_bus *bus, unsigned int devfn, bus 118 arch/mips/pci/ops-gt64xxx_pci0.c if (gt64xxx_pci0_pcibios_config_access(PCI_ACCESS_READ, bus, bus 130 arch/mips/pci/ops-gt64xxx_pci0.c if (gt64xxx_pci0_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, bus 26 arch/mips/pci/ops-lantiq.c static int ltq_pci_config_access(unsigned char access_type, struct pci_bus *bus, bus 35 arch/mips/pci/ops-lantiq.c if ((bus->number != 0) || ((devfn & 0xf8) > 0x78) bus 42 arch/mips/pci/ops-lantiq.c cfg_base |= (bus->number << LTQ_PCI_CFG_BUSNUM_SHF) | (devfn << bus 71 arch/mips/pci/ops-lantiq.c int ltq_pci_read_config_dword(struct pci_bus *bus, unsigned int devfn, bus 76 arch/mips/pci/ops-lantiq.c if (ltq_pci_config_access(PCI_ACCESS_READ, bus, devfn, where, &data)) bus 89 arch/mips/pci/ops-lantiq.c int ltq_pci_write_config_dword(struct pci_bus *bus, unsigned int devfn, bus 97 arch/mips/pci/ops-lantiq.c if (ltq_pci_config_access(PCI_ACCESS_READ, bus, bus 109 arch/mips/pci/ops-lantiq.c if (ltq_pci_config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data)) bus 33 arch/mips/pci/ops-loongson2.c struct pci_bus *bus, bus 37 arch/mips/pci/ops-loongson2.c u32 busnum = bus->number; bus 118 arch/mips/pci/ops-loongson2.c static int loongson_pcibios_read(struct pci_bus *bus, unsigned int devfn, bus 128 arch/mips/pci/ops-loongson2.c if (loongson_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, bus 142 arch/mips/pci/ops-loongson2.c static int loongson_pcibios_write(struct pci_bus *bus, unsigned int devfn, bus 155 arch/mips/pci/ops-loongson2.c if (loongson_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, bus 167 arch/mips/pci/ops-loongson2.c if (loongson_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where, bus 184 arch/mips/pci/ops-loongson2.c struct pci_bus bus = { bus 191 arch/mips/pci/ops-loongson2.c loongson_pcibios_write(&bus, devfn, PCI_MSR_ADDR, 4, msr); bus 192 arch/mips/pci/ops-loongson2.c loongson_pcibios_read(&bus, devfn, PCI_MSR_DATA_LO, 4, lo); bus 193 arch/mips/pci/ops-loongson2.c loongson_pcibios_read(&bus, devfn, PCI_MSR_DATA_HI, 4, hi); bus 200 arch/mips/pci/ops-loongson2.c struct pci_bus bus = { bus 207 arch/mips/pci/ops-loongson2.c loongson_pcibios_write(&bus, devfn, PCI_MSR_ADDR, 4, msr); bus 208 arch/mips/pci/ops-loongson2.c loongson_pcibios_write(&bus, devfn, PCI_MSR_DATA_LO, 4, lo); bus 209 arch/mips/pci/ops-loongson2.c loongson_pcibios_write(&bus, devfn, PCI_MSR_DATA_HI, 4, hi); bus 17 arch/mips/pci/ops-loongson3.c struct pci_bus *bus, unsigned int devfn, bus 20 arch/mips/pci/ops-loongson3.c unsigned char busnum = bus->number; bus 65 arch/mips/pci/ops-loongson3.c static int loongson3_pci_pcibios_read(struct pci_bus *bus, unsigned int devfn, bus 70 arch/mips/pci/ops-loongson3.c bus, devfn, where, &data); bus 85 arch/mips/pci/ops-loongson3.c static int loongson3_pci_pcibios_write(struct pci_bus *bus, unsigned int devfn, bus 95 arch/mips/pci/ops-loongson3.c bus, devfn, where, &data); bus 108 arch/mips/pci/ops-loongson3.c bus, devfn, where, &data); bus 30 arch/mips/pci/ops-mace.c static inline int mkaddr(struct pci_bus *bus, unsigned int devfn, bus 33 arch/mips/pci/ops-mace.c return ((bus->number & 0xff) << 16) | bus 40 arch/mips/pci/ops-mace.c mace_pci_read_config(struct pci_bus *bus, unsigned int devfn, bus 47 arch/mips/pci/ops-mace.c mace->pci.config_addr = mkaddr(bus, devfn, reg); bus 66 arch/mips/pci/ops-mace.c if (bus->number == 0 && reg == 0x40 && size == 4 && bus 76 arch/mips/pci/ops-mace.c mace_pci_write_config(struct pci_bus *bus, unsigned int devfn, bus 79 arch/mips/pci/ops-mace.c mace->pci.config_addr = mkaddr(bus, devfn, reg); bus 34 arch/mips/pci/ops-msc.c struct pci_bus *bus, unsigned int devfn, int where, u32 * data) bus 36 arch/mips/pci/ops-msc.c unsigned char busnum = bus->number; bus 75 arch/mips/pci/ops-msc.c static int msc_pcibios_read(struct pci_bus *bus, unsigned int devfn, bus 85 arch/mips/pci/ops-msc.c if (msc_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, bus 99 arch/mips/pci/ops-msc.c static int msc_pcibios_write(struct pci_bus *bus, unsigned int devfn, bus 112 arch/mips/pci/ops-msc.c if (msc_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, bus 124 arch/mips/pci/ops-msc.c if (msc_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, where, bus 18 arch/mips/pci/ops-nile4.c struct pci_bus *bus, unsigned int devfn, int where, u32 *val) bus 20 arch/mips/pci/ops-nile4.c unsigned char busnum = bus->number; bus 75 arch/mips/pci/ops-nile4.c static int nile4_pcibios_read(struct pci_bus *bus, unsigned int devfn, bus 86 arch/mips/pci/ops-nile4.c err = nile4_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, bus 101 arch/mips/pci/ops-nile4.c static int nile4_pcibios_write(struct pci_bus *bus, unsigned int devfn, bus 112 arch/mips/pci/ops-nile4.c err = nile4_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, where, bus 127 arch/mips/pci/ops-nile4.c (PCI_ACCESS_WRITE, bus, devfn, where, &data)) bus 332 arch/mips/pci/ops-pmcmsp.c struct pci_bus *bus, bus 338 arch/mips/pci/ops-pmcmsp.c unsigned char bus_num = bus->number; bus 461 arch/mips/pci/ops-pmcmsp.c msp_pcibios_read_config_byte(struct pci_bus *bus, bus 473 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, bus 509 arch/mips/pci/ops-pmcmsp.c msp_pcibios_read_config_word(struct pci_bus *bus, bus 532 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, bus 566 arch/mips/pci/ops-pmcmsp.c msp_pcibios_read_config_dword(struct pci_bus *bus, bus 584 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, bus 619 arch/mips/pci/ops-pmcmsp.c msp_pcibios_write_config_byte(struct pci_bus *bus, bus 627 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, bus 636 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, bus 668 arch/mips/pci/ops-pmcmsp.c msp_pcibios_write_config_word(struct pci_bus *bus, bus 680 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_config_access(PCI_ACCESS_READ, bus, devfn, bus 689 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, bus 720 arch/mips/pci/ops-pmcmsp.c msp_pcibios_write_config_dword(struct pci_bus *bus, bus 730 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_config_access(PCI_ACCESS_WRITE, bus, devfn, bus 762 arch/mips/pci/ops-pmcmsp.c msp_pcibios_read_config(struct pci_bus *bus, bus 769 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_read_config_byte(bus, devfn, where, val)) { bus 773 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_read_config_word(bus, devfn, where, val)) { bus 777 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_read_config_dword(bus, devfn, where, val)) { bus 813 arch/mips/pci/ops-pmcmsp.c msp_pcibios_write_config(struct pci_bus *bus, bus 820 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_write_config_byte(bus, devfn, bus 825 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_write_config_word(bus, devfn, bus 830 arch/mips/pci/ops-pmcmsp.c if (msp_pcibios_write_config_dword(bus, devfn, where, val)) { bus 41 arch/mips/pci/ops-rc32434.c #define PCI_CFG_SET(bus, slot, func, off) \ bus 43 arch/mips/pci/ops-rc32434.c ((bus) << 16) | ((slot)<<11) | \ bus 47 arch/mips/pci/ops-rc32434.c struct pci_bus *bus, unsigned int devfn, bus 54 arch/mips/pci/ops-rc32434.c PCI_CFG_SET(bus->number, slot, func, where); bus 72 arch/mips/pci/ops-rc32434.c static int read_config_byte(struct pci_bus *bus, unsigned int devfn, bus 78 arch/mips/pci/ops-rc32434.c ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); bus 83 arch/mips/pci/ops-rc32434.c static int read_config_word(struct pci_bus *bus, unsigned int devfn, bus 89 arch/mips/pci/ops-rc32434.c ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); bus 94 arch/mips/pci/ops-rc32434.c static int read_config_dword(struct pci_bus *bus, unsigned int devfn, bus 104 arch/mips/pci/ops-rc32434.c if (bus->number == 0 && PCI_SLOT(devfn) > 21) bus 108 arch/mips/pci/ops-rc32434.c ret = config_access(PCI_ACCESS_READ, bus, devfn, where, val); bus 129 arch/mips/pci/ops-rc32434.c write_config_byte(struct pci_bus *bus, unsigned int devfn, int where, bus 134 arch/mips/pci/ops-rc32434.c if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data)) bus 140 arch/mips/pci/ops-rc32434.c if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data)) bus 148 arch/mips/pci/ops-rc32434.c write_config_word(struct pci_bus *bus, unsigned int devfn, int where, bus 153 arch/mips/pci/ops-rc32434.c if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data)) bus 159 arch/mips/pci/ops-rc32434.c if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data)) bus 168 arch/mips/pci/ops-rc32434.c write_config_dword(struct pci_bus *bus, unsigned int devfn, int where, bus 171 arch/mips/pci/ops-rc32434.c if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &val)) bus 177 arch/mips/pci/ops-rc32434.c static int pci_config_read(struct pci_bus *bus, unsigned int devfn, bus 182 arch/mips/pci/ops-rc32434.c return read_config_byte(bus, devfn, where, (u8 *) val); bus 184 arch/mips/pci/ops-rc32434.c return read_config_word(bus, devfn, where, (u16 *) val); bus 186 arch/mips/pci/ops-rc32434.c return read_config_dword(bus, devfn, where, val); bus 190 arch/mips/pci/ops-rc32434.c static int pci_config_write(struct pci_bus *bus, unsigned int devfn, bus 195 arch/mips/pci/ops-rc32434.c return write_config_byte(bus, devfn, where, (u8) val); bus 197 arch/mips/pci/ops-rc32434.c return write_config_word(bus, devfn, where, (u16) val); bus 199 arch/mips/pci/ops-rc32434.c return write_config_dword(bus, devfn, where, val); bus 40 arch/mips/pci/ops-sni.c static int pcimt_read(struct pci_bus *bus, unsigned int devfn, int reg, bus 45 arch/mips/pci/ops-sni.c if ((res = set_config_address(bus->number, devfn, reg))) bus 63 arch/mips/pci/ops-sni.c static int pcimt_write(struct pci_bus *bus, unsigned int devfn, int reg, bus 68 arch/mips/pci/ops-sni.c if ((res = set_config_address(bus->number, devfn, reg))) bus 100 arch/mips/pci/ops-sni.c static int pcit_read(struct pci_bus *bus, unsigned int devfn, int reg, bus 110 arch/mips/pci/ops-sni.c if (bus->number == 0) { bus 120 arch/mips/pci/ops-sni.c if ((res = pcit_set_config_address(bus->number, devfn, reg))) bus 137 arch/mips/pci/ops-sni.c static int pcit_write(struct pci_bus *bus, unsigned int devfn, int reg, bus 142 arch/mips/pci/ops-sni.c if ((res = pcit_set_config_address(bus->number, devfn, reg))) bus 48 arch/mips/pci/ops-tx3927.c static int mkaddr(struct pci_bus *bus, unsigned char devfn, unsigned char where) bus 50 arch/mips/pci/ops-tx3927.c if (bus->parent == NULL && bus 54 arch/mips/pci/ops-tx3927.c ((bus->number & 0xff) << 0x10) | bus 56 arch/mips/pci/ops-tx3927.c (where & 0xfc) | (bus->parent ? 1 : 0); bus 76 arch/mips/pci/ops-tx3927.c static int tx3927_pci_read_config(struct pci_bus *bus, unsigned int devfn, bus 79 arch/mips/pci/ops-tx3927.c if (mkaddr(bus, devfn, where)) { bus 101 arch/mips/pci/ops-tx3927.c static int tx3927_pci_write_config(struct pci_bus *bus, unsigned int devfn, bus 104 arch/mips/pci/ops-tx3927.c if (mkaddr(bus, devfn, where)) bus 58 arch/mips/pci/ops-tx4927.c static int mkaddr(struct pci_bus *bus, unsigned int devfn, int where, bus 61 arch/mips/pci/ops-tx4927.c if (bus->parent == NULL && bus 64 arch/mips/pci/ops-tx4927.c __raw_writel(((bus->number & 0xff) << 0x10) bus 66 arch/mips/pci/ops-tx4927.c | (bus->parent ? 1 : 0), bus 133 arch/mips/pci/ops-tx4927.c static struct tx4927_pcic_reg __iomem *pci_bus_to_pcicptr(struct pci_bus *bus) bus 135 arch/mips/pci/ops-tx4927.c struct pci_controller *channel = bus->sysdata; bus 139 arch/mips/pci/ops-tx4927.c static int tx4927_pci_config_read(struct pci_bus *bus, unsigned int devfn, bus 142 arch/mips/pci/ops-tx4927.c struct tx4927_pcic_reg __iomem *pcicptr = pci_bus_to_pcicptr(bus); bus 144 arch/mips/pci/ops-tx4927.c if (mkaddr(bus, devfn, where, pcicptr)) { bus 161 arch/mips/pci/ops-tx4927.c static int tx4927_pci_config_write(struct pci_bus *bus, unsigned int devfn, bus 164 arch/mips/pci/ops-tx4927.c struct tx4927_pcic_reg __iomem *pcicptr = pci_bus_to_pcicptr(bus); bus 166 arch/mips/pci/ops-tx4927.c if (mkaddr(bus, devfn, where, pcicptr)) bus 497 arch/mips/pci/ops-tx4927.c struct tx4927_pcic_reg __iomem *pcicptr = pci_bus_to_pcicptr(dev->bus); bus 48 arch/mips/pci/ops-vr41xx.c static int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, bus 54 arch/mips/pci/ops-vr41xx.c if (set_pci_configuration_address(bus->number, devfn, where) < 0) bus 76 arch/mips/pci/ops-vr41xx.c static int pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, bus 82 arch/mips/pci/ops-vr41xx.c if (set_pci_configuration_address(bus->number, devfn, where) < 0) bus 99 arch/mips/pci/pci-alchemy.c static int config_access(unsigned char access_type, struct pci_bus *bus, bus 102 arch/mips/pci/pci-alchemy.c struct alchemy_pci_context *ctx = bus->sysdata; bus 129 arch/mips/pci/pci-alchemy.c if (bus->number == 0) bus 132 arch/mips/pci/pci-alchemy.c cfg_base = 0x80000000 | (bus->number << 16) | (device << 11); bus 161 arch/mips/pci/pci-alchemy.c access_type, bus->number, device, where, *data, offset); bus 169 arch/mips/pci/pci-alchemy.c access_type, bus->number, device); bus 188 arch/mips/pci/pci-alchemy.c static int read_config_byte(struct pci_bus *bus, unsigned int devfn, bus 192 arch/mips/pci/pci-alchemy.c int ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); bus 202 arch/mips/pci/pci-alchemy.c static int read_config_word(struct pci_bus *bus, unsigned int devfn, bus 206 arch/mips/pci/pci-alchemy.c int ret = config_access(PCI_ACCESS_READ, bus, devfn, where, &data); bus 214 arch/mips/pci/pci-alchemy.c static int read_config_dword(struct pci_bus *bus, unsigned int devfn, bus 217 arch/mips/pci/pci-alchemy.c return config_access(PCI_ACCESS_READ, bus, devfn, where, val); bus 220 arch/mips/pci/pci-alchemy.c static int write_config_byte(struct pci_bus *bus, unsigned int devfn, bus 225 arch/mips/pci/pci-alchemy.c if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data)) bus 231 arch/mips/pci/pci-alchemy.c if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data)) bus 237 arch/mips/pci/pci-alchemy.c static int write_config_word(struct pci_bus *bus, unsigned int devfn, bus 242 arch/mips/pci/pci-alchemy.c if (config_access(PCI_ACCESS_READ, bus, devfn, where, &data)) bus 248 arch/mips/pci/pci-alchemy.c if (config_access(PCI_ACCESS_WRITE, bus, devfn, where, &data)) bus 254 arch/mips/pci/pci-alchemy.c static int write_config_dword(struct pci_bus *bus, unsigned int devfn, bus 257 arch/mips/pci/pci-alchemy.c return config_access(PCI_ACCESS_WRITE, bus, devfn, where, &val); bus 260 arch/mips/pci/pci-alchemy.c static int alchemy_pci_read(struct pci_bus *bus, unsigned int devfn, bus 266 arch/mips/pci/pci-alchemy.c int rc = read_config_byte(bus, devfn, where, &_val); bus 273 arch/mips/pci/pci-alchemy.c int rc = read_config_word(bus, devfn, where, &_val); bus 279 arch/mips/pci/pci-alchemy.c return read_config_dword(bus, devfn, where, val); bus 283 arch/mips/pci/pci-alchemy.c static int alchemy_pci_write(struct pci_bus *bus, unsigned int devfn, bus 288 arch/mips/pci/pci-alchemy.c return write_config_byte(bus, devfn, where, (u8) val); bus 290 arch/mips/pci/pci-alchemy.c return write_config_word(bus, devfn, where, (u16) val); bus 292 arch/mips/pci/pci-alchemy.c return write_config_dword(bus, devfn, where, val); bus 183 arch/mips/pci/pci-ar2315.c static inline struct ar2315_pci_ctrl *ar2315_pci_bus_to_apc(struct pci_bus *bus) bus 185 arch/mips/pci/pci-ar2315.c struct pci_controller *hose = bus->sysdata; bus 280 arch/mips/pci/pci-ar2315.c static int ar2315_pci_cfg_read(struct pci_bus *bus, unsigned devfn, int where, bus 283 arch/mips/pci/pci-ar2315.c struct ar2315_pci_ctrl *apc = ar2315_pci_bus_to_apc(bus); bus 291 arch/mips/pci/pci-ar2315.c static int ar2315_pci_cfg_write(struct pci_bus *bus, unsigned devfn, int where, bus 294 arch/mips/pci/pci-ar2315.c struct ar2315_pci_ctrl *apc = ar2315_pci_bus_to_apc(bus); bus 515 arch/mips/pci/pci-ar2315.c struct ar2315_pci_ctrl *apc = ar2315_pci_bus_to_apc(dev->bus); bus 80 arch/mips/pci/pci-ar71xx.c static inline u32 ar71xx_pci_bus_addr(struct pci_bus *bus, unsigned int devfn, bus 85 arch/mips/pci/pci-ar71xx.c if (!bus->number) { bus 91 arch/mips/pci/pci-ar71xx.c ret = (bus->number << 16) | (PCI_SLOT(devfn) << 11) | bus 99 arch/mips/pci/pci-ar71xx.c pci_bus_to_ar71xx_controller(struct pci_bus *bus) bus 103 arch/mips/pci/pci-ar71xx.c hose = (struct pci_controller *) bus->sysdata; bus 159 arch/mips/pci/pci-ar71xx.c static inline int ar71xx_pci_set_cfgaddr(struct pci_bus *bus, bus 163 arch/mips/pci/pci-ar71xx.c struct ar71xx_pci_controller *apc = pci_bus_to_ar71xx_controller(bus); bus 167 arch/mips/pci/pci-ar71xx.c addr = ar71xx_pci_bus_addr(bus, devfn, where); bus 176 arch/mips/pci/pci-ar71xx.c static int ar71xx_pci_read_config(struct pci_bus *bus, unsigned int devfn, bus 179 arch/mips/pci/pci-ar71xx.c struct ar71xx_pci_controller *apc = pci_bus_to_ar71xx_controller(bus); bus 188 arch/mips/pci/pci-ar71xx.c err = ar71xx_pci_set_cfgaddr(bus, devfn, where, size, bus 200 arch/mips/pci/pci-ar71xx.c static int ar71xx_pci_write_config(struct pci_bus *bus, unsigned int devfn, bus 203 arch/mips/pci/pci-ar71xx.c struct ar71xx_pci_controller *apc = pci_bus_to_ar71xx_controller(bus); bus 211 arch/mips/pci/pci-ar71xx.c err = ar71xx_pci_set_cfgaddr(bus, devfn, where, size, bus 65 arch/mips/pci/pci-ar724x.c pci_bus_to_ar724x_controller(struct pci_bus *bus) bus 69 arch/mips/pci/pci-ar724x.c hose = (struct pci_controller *) bus->sysdata; bus 113 arch/mips/pci/pci-ar724x.c static int ar724x_pci_read(struct pci_bus *bus, unsigned int devfn, int where, bus 120 arch/mips/pci/pci-ar724x.c apc = pci_bus_to_ar724x_controller(bus); bus 160 arch/mips/pci/pci-ar724x.c static int ar724x_pci_write(struct pci_bus *bus, unsigned int devfn, int where, bus 168 arch/mips/pci/pci-ar724x.c apc = pci_bus_to_ar724x_controller(bus); bus 40 arch/mips/pci/pci-bcm1480.c #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where)) bus 41 arch/mips/pci/pci-bcm1480.c #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) bus 84 arch/mips/pci/pci-bcm1480.c static int bcm1480_pci_can_access(struct pci_bus *bus, int devfn) bus 91 arch/mips/pci/pci-bcm1480.c if (bus->number == 0) { bus 107 arch/mips/pci/pci-bcm1480.c static int bcm1480_pcibios_read(struct pci_bus *bus, unsigned int devfn, bus 117 arch/mips/pci/pci-bcm1480.c if (bcm1480_pci_can_access(bus, devfn)) bus 118 arch/mips/pci/pci-bcm1480.c data = READCFG32(CFGADDR(bus, devfn, where)); bus 132 arch/mips/pci/pci-bcm1480.c static int bcm1480_pcibios_write(struct pci_bus *bus, unsigned int devfn, bus 135 arch/mips/pci/pci-bcm1480.c u32 cfgaddr = CFGADDR(bus, devfn, where); bus 143 arch/mips/pci/pci-bcm1480.c if (!bcm1480_pci_can_access(bus, devfn)) bus 38 arch/mips/pci/pci-bcm1480ht.c #define CFGOFFSET(bus, devfn, where) (((bus)<<16)+((devfn)<<8)+(where)) bus 39 arch/mips/pci/pci-bcm1480ht.c #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) bus 75 arch/mips/pci/pci-bcm1480ht.c static int bcm1480ht_can_access(struct pci_bus *bus, int devfn) bus 82 arch/mips/pci/pci-bcm1480ht.c if (bus->number == 0) { bus 96 arch/mips/pci/pci-bcm1480ht.c static int bcm1480ht_pcibios_read(struct pci_bus *bus, unsigned int devfn, bus 106 arch/mips/pci/pci-bcm1480ht.c if (bcm1480ht_can_access(bus, devfn)) bus 107 arch/mips/pci/pci-bcm1480ht.c data = READCFG32(CFGADDR(bus, devfn, where)); bus 121 arch/mips/pci/pci-bcm1480ht.c static int bcm1480ht_pcibios_write(struct pci_bus *bus, unsigned int devfn, bus 124 arch/mips/pci/pci-bcm1480ht.c u32 cfgaddr = CFGADDR(bus, devfn, where); bus 132 arch/mips/pci/pci-bcm1480ht.c if (!bcm1480ht_can_access(bus, devfn)) bus 36 arch/mips/pci/pci-generic.c host_bridge = pci_find_host_bridge(dev->bus); bus 45 arch/mips/pci/pci-generic.c void pcibios_fixup_bus(struct pci_bus *bus) bus 47 arch/mips/pci/pci-generic.c pci_read_bridge_bases(bus); bus 15 arch/mips/pci/pci-ip27.c struct bridge_controller *bc = BRIDGE_CONTROLLER(pdev->bus); bus 26 arch/mips/pci/pci-ip27.c int pcibus_to_node(struct pci_bus *bus) bus 28 arch/mips/pci/pci-ip27.c struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); bus 11 arch/mips/pci/pci-lantiq.h extern int ltq_pci_read_config_dword(struct pci_bus *bus, bus 13 arch/mips/pci/pci-lantiq.h extern int ltq_pci_write_config_dword(struct pci_bus *bus, bus 77 arch/mips/pci/pci-legacy.c struct pci_bus *bus; bus 106 arch/mips/pci/pci-legacy.c hose->bus = bus = bridge->bus; bus 108 arch/mips/pci/pci-legacy.c need_domain_info = need_domain_info || pci_domain_nr(bus); bus 111 arch/mips/pci/pci-legacy.c next_busno = bus->busn_res.end + 1; bus 125 arch/mips/pci/pci-legacy.c pci_bus_claim_resources(bus); bus 129 arch/mips/pci/pci-legacy.c pci_bus_size_bridges(bus); bus 130 arch/mips/pci/pci-legacy.c pci_bus_assign_resources(bus); bus 131 arch/mips/pci/pci-legacy.c list_for_each_entry(child, &bus->children, node) bus 134 arch/mips/pci/pci-legacy.c pci_bus_add_devices(bus); bus 174 arch/mips/pci/pci-legacy.c struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus) bus 176 arch/mips/pci/pci-legacy.c struct pci_controller *hose = bus->sysdata; bus 293 arch/mips/pci/pci-legacy.c void pcibios_fixup_bus(struct pci_bus *bus) bus 295 arch/mips/pci/pci-legacy.c struct pci_dev *dev = bus->self; bus 299 arch/mips/pci/pci-legacy.c pci_read_bridge_bases(bus); bus 136 arch/mips/pci/pci-mt7620.c static int pci_config_read(struct pci_bus *bus, unsigned int devfn, int where, bus 145 arch/mips/pci/pci-mt7620.c if (bus) bus 146 arch/mips/pci/pci-mt7620.c num = bus->number; bus 168 arch/mips/pci/pci-mt7620.c static int pci_config_write(struct pci_bus *bus, unsigned int devfn, int where, bus 177 arch/mips/pci/pci-mt7620.c if (bus) bus 178 arch/mips/pci/pci-mt7620.c num = bus->number; bus 367 arch/mips/pci/pci-mt7620.c if ((dev->bus->number == 0) && (slot == 0)) { bus 369 arch/mips/pci/pci-mt7620.c pci_config_write(dev->bus, 0, PCI_BASE_ADDRESS_0, 4, bus 371 arch/mips/pci/pci-mt7620.c pci_config_read(dev->bus, 0, PCI_BASE_ADDRESS_0, 4, &val); bus 372 arch/mips/pci/pci-mt7620.c } else if ((dev->bus->number == 1) && (slot == 0x0)) { bus 376 arch/mips/pci/pci-mt7620.c dev->bus->number, slot); bus 380 arch/mips/pci/pci-mt7620.c dev->bus->number, slot, irq); bus 53 arch/mips/pci/pci-octeon.c uint64_t bus:8; bus 257 arch/mips/pci/pci-octeon.c static int octeon_read_config(struct pci_bus *bus, unsigned int devfn, bus 268 arch/mips/pci/pci-octeon.c pci_addr.s.bus = bus->number; bus 291 arch/mips/pci/pci-octeon.c static int octeon_write_config(struct pci_bus *bus, unsigned int devfn, bus 302 arch/mips/pci/pci-octeon.c pci_addr.s.bus = bus->number; bus 56 arch/mips/pci/pci-rt2880.c static inline u32 rt2880_pci_get_cfgaddr(unsigned int bus, unsigned int slot, bus 59 arch/mips/pci/pci-rt2880.c return ((bus << 16) | (slot << 11) | (func << 8) | (where & 0xfc) | bus 63 arch/mips/pci/pci-rt2880.c static int rt2880_pci_config_read(struct pci_bus *bus, unsigned int devfn, bus 70 arch/mips/pci/pci-rt2880.c address = rt2880_pci_get_cfgaddr(bus->number, PCI_SLOT(devfn), bus 93 arch/mips/pci/pci-rt2880.c static int rt2880_pci_config_write(struct pci_bus *bus, unsigned int devfn, bus 100 arch/mips/pci/pci-rt2880.c address = rt2880_pci_get_cfgaddr(bus->number, PCI_SLOT(devfn), bus 186 arch/mips/pci/pci-rt2880.c if (dev->bus->number != 0) bus 72 arch/mips/pci/pci-rt3883.c pci_bus_to_rt3883_controller(struct pci_bus *bus) bus 76 arch/mips/pci/pci-rt3883.c hose = (struct pci_controller *) bus->sysdata; bus 92 arch/mips/pci/pci-rt3883.c static inline u32 rt3883_pci_get_cfgaddr(unsigned int bus, unsigned int slot, bus 95 arch/mips/pci/pci-rt3883.c return (bus << 16) | (slot << 11) | (func << 8) | (where & 0xfc) | bus 100 arch/mips/pci/pci-rt3883.c unsigned bus, unsigned slot, bus 107 arch/mips/pci/pci-rt3883.c address = rt3883_pci_get_cfgaddr(bus, slot, func, reg); bus 116 arch/mips/pci/pci-rt3883.c unsigned bus, unsigned slot, bus 122 arch/mips/pci/pci-rt3883.c address = rt3883_pci_get_cfgaddr(bus, slot, func, reg); bus 228 arch/mips/pci/pci-rt3883.c static int rt3883_pci_config_read(struct pci_bus *bus, unsigned int devfn, bus 236 arch/mips/pci/pci-rt3883.c rpc = pci_bus_to_rt3883_controller(bus); bus 238 arch/mips/pci/pci-rt3883.c if (!rpc->pcie_ready && bus->number == 1) bus 241 arch/mips/pci/pci-rt3883.c address = rt3883_pci_get_cfgaddr(bus->number, PCI_SLOT(devfn), bus 262 arch/mips/pci/pci-rt3883.c static int rt3883_pci_config_write(struct pci_bus *bus, unsigned int devfn, bus 270 arch/mips/pci/pci-rt3883.c rpc = pci_bus_to_rt3883_controller(bus); bus 272 arch/mips/pci/pci-rt3883.c if (!rpc->pcie_ready && bus->number == 1) bus 275 arch/mips/pci/pci-rt3883.c address = rt3883_pci_get_cfgaddr(bus->number, PCI_SLOT(devfn), bus 40 arch/mips/pci/pci-sb1250.c #define CFGOFFSET(bus, devfn, where) (((bus)<<16) + ((devfn)<<8) + (where)) bus 41 arch/mips/pci/pci-sb1250.c #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where) bus 91 arch/mips/pci/pci-sb1250.c static int sb1250_pci_can_access(struct pci_bus *bus, int devfn) bus 98 arch/mips/pci/pci-sb1250.c if (bus->number == 0) { bus 116 arch/mips/pci/pci-sb1250.c static int sb1250_pcibios_read(struct pci_bus *bus, unsigned int devfn, bus 126 arch/mips/pci/pci-sb1250.c if (sb1250_pci_can_access(bus, devfn)) bus 127 arch/mips/pci/pci-sb1250.c data = READCFG32(CFGADDR(bus, devfn, where)); bus 141 arch/mips/pci/pci-sb1250.c static int sb1250_pcibios_write(struct pci_bus *bus, unsigned int devfn, bus 144 arch/mips/pci/pci-sb1250.c u32 cfgaddr = CFGADDR(bus, devfn, where); bus 152 arch/mips/pci/pci-sb1250.c if (!sb1250_pci_can_access(bus, devfn)) bus 117 arch/mips/pci/pci-tx4938.c if (get_tx4927_pcicptr(dev->bus->sysdata) == tx4938_pcic1ptr) { bus 53 arch/mips/pci/pci-tx4939.c if (get_tx4927_pcicptr(dev->bus->sysdata) == tx4939_pcic1ptr) { bus 43 arch/mips/pci/pci-virtio-guest.c static void pci_virtio_guest_write_config_addr(struct pci_bus *bus, bus 50 arch/mips/pci/pci-virtio-guest.c pca.bus_number = bus->number; bus 56 arch/mips/pci/pci-virtio-guest.c static int pci_virtio_guest_write_config(struct pci_bus *bus, bus 59 arch/mips/pci/pci-virtio-guest.c pci_virtio_guest_write_config_addr(bus, devfn, reg); bus 76 arch/mips/pci/pci-virtio-guest.c static int pci_virtio_guest_read_config(struct pci_bus *bus, unsigned int devfn, bus 79 arch/mips/pci/pci-virtio-guest.c pci_virtio_guest_write_config_addr(bus, devfn, reg); bus 60 arch/mips/pci/pci-xlp.c #define pci_cfg_addr(bus, devfn, off) (((bus) << 20) | ((devfn) << 12) | (off)) bus 63 arch/mips/pci/pci-xlp.c static inline u32 pci_cfg_read_32bit(struct pci_bus *bus, unsigned int devfn, bus 72 arch/mips/pci/pci-xlp.c if (bus->number == 0) { bus 77 arch/mips/pci/pci-xlp.c } else if (bus->parent->number == 0) { /* SoC bus */ bus 83 arch/mips/pci/pci-xlp.c } else if (bus->number == 0 && PCI_SLOT(devfn) == 1 && where == 0x954) { bus 87 arch/mips/pci/pci-xlp.c pci_cfg_addr(bus->number, devfn, where)); bus 92 arch/mips/pci/pci-xlp.c static inline void pci_cfg_write_32bit(struct pci_bus *bus, unsigned int devfn, bus 98 arch/mips/pci/pci-xlp.c pci_cfg_addr(bus->number, devfn, where & ~3)); bus 102 arch/mips/pci/pci-xlp.c static int nlm_pcibios_read(struct pci_bus *bus, unsigned int devfn, bus 112 arch/mips/pci/pci-xlp.c data = pci_cfg_read_32bit(bus, devfn, where); bus 125 arch/mips/pci/pci-xlp.c static int nlm_pcibios_write(struct pci_bus *bus, unsigned int devfn, bus 135 arch/mips/pci/pci-xlp.c data = pci_cfg_read_32bit(bus, devfn, where); bus 146 arch/mips/pci/pci-xlp.c pci_cfg_write_32bit(bus, devfn, where, data); bus 181 arch/mips/pci/pci-xlp.c struct pci_bus *bus, *p; bus 183 arch/mips/pci/pci-xlp.c bus = dev->bus; bus 187 arch/mips/pci/pci-xlp.c for (p = bus->parent; p && p->parent && p->parent->number != 0; bus 189 arch/mips/pci/pci-xlp.c bus = p; bus 190 arch/mips/pci/pci-xlp.c return (p && p->parent) ? bus->self : NULL; bus 193 arch/mips/pci/pci-xlp.c for (p = bus->parent; p && p->number != 0; p = p->parent) bus 194 arch/mips/pci/pci-xlp.c bus = p; bus 196 arch/mips/pci/pci-xlp.c return p ? bus->self : NULL; bus 203 arch/mips/pci/pci-xlp.c return PCI_FUNC(lnkdev->bus->self->devfn); bus 59 arch/mips/pci/pci-xlr.c #define pci_cfg_addr(bus, devfn, off) (((bus) << 16) | ((devfn) << 8) | (off)) bus 62 arch/mips/pci/pci-xlr.c static inline u32 pci_cfg_read_32bit(struct pci_bus *bus, unsigned int devfn, bus 69 arch/mips/pci/pci-xlr.c pci_cfg_addr(bus->number, devfn, where & ~3)); bus 74 arch/mips/pci/pci-xlr.c static inline void pci_cfg_write_32bit(struct pci_bus *bus, unsigned int devfn, bus 80 arch/mips/pci/pci-xlr.c pci_cfg_addr(bus->number, devfn, where & ~3)); bus 84 arch/mips/pci/pci-xlr.c static int nlm_pcibios_read(struct pci_bus *bus, unsigned int devfn, bus 94 arch/mips/pci/pci-xlr.c data = pci_cfg_read_32bit(bus, devfn, where); bus 107 arch/mips/pci/pci-xlr.c static int nlm_pcibios_write(struct pci_bus *bus, unsigned int devfn, bus 117 arch/mips/pci/pci-xlr.c data = pci_cfg_read_32bit(bus, devfn, where); bus 128 arch/mips/pci/pci-xlr.c pci_cfg_write_32bit(bus, devfn, where, data); bus 168 arch/mips/pci/pci-xlr.c struct pci_bus *bus, *p; bus 171 arch/mips/pci/pci-xlr.c bus = dev->bus; bus 172 arch/mips/pci/pci-xlr.c for (p = bus->parent; p && p->number != 0; p = p->parent) bus 173 arch/mips/pci/pci-xlr.c bus = p; bus 175 arch/mips/pci/pci-xlr.c return p ? bus->self : NULL; bus 71 arch/mips/pci/pci-xtalk-bridge.c struct bridge_controller *bc = BRIDGE_CONTROLLER(dev->bus); bus 93 arch/mips/pci/pci-xtalk-bridge.c static int pci_conf0_read_config(struct pci_bus *bus, unsigned int devfn, bus 96 arch/mips/pci/pci-xtalk-bridge.c struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); bus 129 arch/mips/pci/pci-xtalk-bridge.c static int pci_conf1_read_config(struct pci_bus *bus, unsigned int devfn, bus 132 arch/mips/pci/pci-xtalk-bridge.c struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); bus 134 arch/mips/pci/pci-xtalk-bridge.c int busno = bus->number; bus 167 arch/mips/pci/pci-xtalk-bridge.c static int pci_read_config(struct pci_bus *bus, unsigned int devfn, bus 170 arch/mips/pci/pci-xtalk-bridge.c if (!pci_is_root_bus(bus)) bus 171 arch/mips/pci/pci-xtalk-bridge.c return pci_conf1_read_config(bus, devfn, where, size, value); bus 173 arch/mips/pci/pci-xtalk-bridge.c return pci_conf0_read_config(bus, devfn, where, size, value); bus 176 arch/mips/pci/pci-xtalk-bridge.c static int pci_conf0_write_config(struct pci_bus *bus, unsigned int devfn, bus 179 arch/mips/pci/pci-xtalk-bridge.c struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); bus 215 arch/mips/pci/pci-xtalk-bridge.c static int pci_conf1_write_config(struct pci_bus *bus, unsigned int devfn, bus 218 arch/mips/pci/pci-xtalk-bridge.c struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); bus 222 arch/mips/pci/pci-xtalk-bridge.c int busno = bus->number; bus 256 arch/mips/pci/pci-xtalk-bridge.c static int pci_write_config(struct pci_bus *bus, unsigned int devfn, bus 259 arch/mips/pci/pci-xtalk-bridge.c if (!pci_is_root_bus(bus)) bus 260 arch/mips/pci/pci-xtalk-bridge.c return pci_conf1_write_config(bus, devfn, where, size, value); bus 262 arch/mips/pci/pci-xtalk-bridge.c return pci_conf0_write_config(bus, devfn, where, size, value); bus 409 arch/mips/pci/pci-xtalk-bridge.c struct bridge_controller *bc = BRIDGE_CONTROLLER(dev->bus); bus 530 arch/mips/pci/pci-xtalk-bridge.c pci_bus_claim_resources(host->bus); bus 531 arch/mips/pci/pci-xtalk-bridge.c pci_bus_add_devices(host->bus); bus 533 arch/mips/pci/pci-xtalk-bridge.c platform_set_drvdata(pdev, host->bus); bus 546 arch/mips/pci/pci-xtalk-bridge.c struct pci_bus *bus = platform_get_drvdata(pdev); bus 547 arch/mips/pci/pci-xtalk-bridge.c struct bridge_controller *bc = BRIDGE_CONTROLLER(bus); bus 551 arch/mips/pci/pci-xtalk-bridge.c pci_stop_root_bus(bus); bus 552 arch/mips/pci/pci-xtalk-bridge.c pci_remove_root_bus(bus); bus 58 arch/mips/pci/pcie-octeon.c uint64_t bus:8; bus 228 arch/mips/pci/pcie-octeon.c static inline uint64_t __cvmx_pcie_build_config_addr(int pcie_port, int bus, bus 236 arch/mips/pci/pcie-octeon.c if ((bus <= pciercx_cfg006.s.pbnum) && (dev != 0)) bus 246 arch/mips/pci/pcie-octeon.c pcie_addr.config.ty = (bus > pciercx_cfg006.s.pbnum); bus 247 arch/mips/pci/pcie-octeon.c pcie_addr.config.bus = bus; bus 265 arch/mips/pci/pcie-octeon.c static uint8_t cvmx_pcie_config_read8(int pcie_port, int bus, int dev, bus 269 arch/mips/pci/pcie-octeon.c __cvmx_pcie_build_config_addr(pcie_port, bus, dev, fn, reg); bus 287 arch/mips/pci/pcie-octeon.c static uint16_t cvmx_pcie_config_read16(int pcie_port, int bus, int dev, bus 291 arch/mips/pci/pcie-octeon.c __cvmx_pcie_build_config_addr(pcie_port, bus, dev, fn, reg); bus 309 arch/mips/pci/pcie-octeon.c static uint32_t cvmx_pcie_config_read32(int pcie_port, int bus, int dev, bus 313 arch/mips/pci/pcie-octeon.c __cvmx_pcie_build_config_addr(pcie_port, bus, dev, fn, reg); bus 330 arch/mips/pci/pcie-octeon.c static void cvmx_pcie_config_write8(int pcie_port, int bus, int dev, int fn, bus 334 arch/mips/pci/pcie-octeon.c __cvmx_pcie_build_config_addr(pcie_port, bus, dev, fn, reg); bus 349 arch/mips/pci/pcie-octeon.c static void cvmx_pcie_config_write16(int pcie_port, int bus, int dev, int fn, bus 353 arch/mips/pci/pcie-octeon.c __cvmx_pcie_build_config_addr(pcie_port, bus, dev, fn, reg); bus 368 arch/mips/pci/pcie-octeon.c static void cvmx_pcie_config_write32(int pcie_port, int bus, int dev, int fn, bus 372 arch/mips/pci/pcie-octeon.c __cvmx_pcie_build_config_addr(pcie_port, bus, dev, fn, reg); bus 1474 arch/mips/pci/pcie-octeon.c dev->bus && dev->bus->parent) { bus 1479 arch/mips/pci/pcie-octeon.c while (dev->bus && dev->bus->parent) bus 1480 arch/mips/pci/pcie-octeon.c dev = to_pci_dev(dev->bus->bridge); bus 1486 arch/mips/pci/pcie-octeon.c if ((dev->bus->number == 1) && bus 1537 arch/mips/pci/pcie-octeon.c static int octeon_pcie_read_config(unsigned int pcie_port, struct pci_bus *bus, bus 1543 arch/mips/pci/pcie-octeon.c int bus_number = bus->number; bus 1555 arch/mips/pci/pcie-octeon.c if (bus->parent == NULL) { bus 1578 arch/mips/pci/pcie-octeon.c if ((bus->parent == NULL) && (devfn >> 3 != 0)) bus 1596 arch/mips/pci/pcie-octeon.c if ((bus->parent == NULL) && (devfn >= 2)) bus 1709 arch/mips/pci/pcie-octeon.c static int octeon_pcie0_read_config(struct pci_bus *bus, unsigned int devfn, bus 1712 arch/mips/pci/pcie-octeon.c return octeon_pcie_read_config(0, bus, devfn, reg, size, val); bus 1715 arch/mips/pci/pcie-octeon.c static int octeon_pcie1_read_config(struct pci_bus *bus, unsigned int devfn, bus 1718 arch/mips/pci/pcie-octeon.c return octeon_pcie_read_config(1, bus, devfn, reg, size, val); bus 1721 arch/mips/pci/pcie-octeon.c static int octeon_dummy_read_config(struct pci_bus *bus, unsigned int devfn, bus 1730 arch/mips/pci/pcie-octeon.c static int octeon_pcie_write_config(unsigned int pcie_port, struct pci_bus *bus, bus 1734 arch/mips/pci/pcie-octeon.c int bus_number = bus->number; bus 1738 arch/mips/pci/pcie-octeon.c if ((bus->parent == NULL) && (enable_pcie_bus_num_war[pcie_port])) bus 1765 arch/mips/pci/pcie-octeon.c static int octeon_pcie0_write_config(struct pci_bus *bus, unsigned int devfn, bus 1768 arch/mips/pci/pcie-octeon.c return octeon_pcie_write_config(0, bus, devfn, reg, size, val); bus 1771 arch/mips/pci/pcie-octeon.c static int octeon_pcie1_write_config(struct pci_bus *bus, unsigned int devfn, bus 1774 arch/mips/pci/pcie-octeon.c return octeon_pcie_write_config(1, bus, devfn, reg, size, val); bus 1777 arch/mips/pci/pcie-octeon.c static int octeon_dummy_write_config(struct pci_bus *bus, unsigned int devfn, bus 86 arch/mips/pic32/pic32mzda/early_clk.c u32 pic32_get_pbclk(int bus) bus 90 arch/mips/pic32/pic32mzda/early_clk.c u32 pbxdiv = PB1DIV + ((bus - 1) * 0x10); bus 10 arch/mips/pic32/pic32mzda/pic32mzda.h u32 pic32_get_pbclk(int bus); bus 102 arch/mips/sgi-ip22/ip22-gio.c giodev->dev.bus = &gio_bus_type; bus 218 arch/mips/sgi-ip22/ip22-gio.c drv->driver.bus = &gio_bus_type; bus 110 arch/mips/txx9/generic/7segled.c dev->bus = &tx_7segled_subsys; bus 30 arch/mips/txx9/generic/pci.c int top_bus, int bus, int devfn, int offset, u16 *value) bus 34 arch/mips/txx9/generic/pci.c fake_bus.number = bus; bus 38 arch/mips/txx9/generic/pci.c if (bus != top_bus) bus 945 arch/mips/txx9/generic/setup.c dev->dev.bus = &txx9_sramc_subsys; bus 24 arch/parisc/include/asm/dma-mapping.h static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) bus 122 arch/parisc/include/asm/pci.h void (*fixup_bus)(struct pci_bus *bus); bus 49 arch/parisc/kernel/drivers.c if (dev->bus == &parisc_bus_type) { bus 165 arch/parisc/kernel/drivers.c driver->drv.bus = &parisc_bus_type; bus 326 arch/parisc/kernel/drivers.c } else if (dev->bus == &parisc_bus_type) { bus 430 arch/parisc/kernel/drivers.c dev->dev.bus = &parisc_bus_type; bus 705 arch/parisc/kernel/drivers.c if (dev->bus == &parisc_bus_type) { bus 711 arch/parisc/kernel/drivers.c } else if (dev->bus == NULL) { bus 781 arch/parisc/kernel/drivers.c if (dev->bus == &parisc_bus_type) { bus 121 arch/parisc/kernel/pci.c void pcibios_fixup_bus(struct pci_bus *bus) bus 124 arch/parisc/kernel/pci.c pci_bios->fixup_bus(bus); bus 243 arch/parisc/kernel/pci.c if (dev->bus->bridge_ctl & PCI_BRIDGE_CTL_FAST_BACK) bus 58 arch/powerpc/boot/devtree.c void dt_fixup_cpu_clocks(u32 cpu, u32 tb, u32 bus) bus 64 arch/powerpc/boot/devtree.c if (bus > 0) bus 65 arch/powerpc/boot/devtree.c printf("CPU bus-frequency <- 0x%x (%dMHz)\n\r", bus, MHZ(bus)); bus 70 arch/powerpc/boot/devtree.c if (bus > 0) bus 71 arch/powerpc/boot/devtree.c setprop_val(devp, "bus-frequency", bus); bus 8 arch/powerpc/include/asm/dma-mapping.h static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) bus 80 arch/powerpc/include/asm/eeh.h struct pci_bus *bus; /* Top PCI bus for bus PE */ bus 369 arch/powerpc/include/asm/eeh.h static inline void eeh_add_device_tree_late(struct pci_bus *bus) { } bus 371 arch/powerpc/include/asm/eeh.h static inline void eeh_add_sysfs_files(struct pci_bus *bus) { } bus 40 arch/powerpc/include/asm/macio.h struct macio_bus *bus; /* macio bus this device is on */ bus 118 arch/powerpc/include/asm/macio.h return mdev->bus->pdev; bus 19 arch/powerpc/include/asm/pci-bridge.h void (*dma_bus_setup)(struct pci_bus *bus); bus 23 arch/powerpc/include/asm/pci-bridge.h int (*probe_mode)(struct pci_bus *bus); bus 34 arch/powerpc/include/asm/pci-bridge.h resource_size_t (*window_alignment)(struct pci_bus *bus, bus 36 arch/powerpc/include/asm/pci-bridge.h void (*setup_bridge)(struct pci_bus *bus, bus 53 arch/powerpc/include/asm/pci-bridge.h struct pci_bus *bus; bus 134 arch/powerpc/include/asm/pci-bridge.h extern int early_read_config_byte(struct pci_controller *hose, int bus, bus 136 arch/powerpc/include/asm/pci-bridge.h extern int early_read_config_word(struct pci_controller *hose, int bus, bus 138 arch/powerpc/include/asm/pci-bridge.h extern int early_read_config_dword(struct pci_controller *hose, int bus, bus 140 arch/powerpc/include/asm/pci-bridge.h extern int early_write_config_byte(struct pci_controller *hose, int bus, bus 142 arch/powerpc/include/asm/pci-bridge.h extern int early_write_config_word(struct pci_controller *hose, int bus, bus 144 arch/powerpc/include/asm/pci-bridge.h extern int early_write_config_dword(struct pci_controller *hose, int bus, bus 147 arch/powerpc/include/asm/pci-bridge.h extern int early_find_capability(struct pci_controller *hose, int bus, bus 154 arch/powerpc/include/asm/pci-bridge.h extern int indirect_read_config(struct pci_bus *bus, unsigned int devfn, bus 161 arch/powerpc/include/asm/pci-bridge.h extern int indirect_write_config(struct pci_bus *bus, unsigned int devfn, bus 164 arch/powerpc/include/asm/pci-bridge.h static inline struct pci_controller *pci_bus_to_host(const struct pci_bus *bus) bus 166 arch/powerpc/include/asm/pci-bridge.h return bus->sysdata; bus 172 arch/powerpc/include/asm/pci-bridge.h u8 *bus, u8 *devfn); bus 223 arch/powerpc/include/asm/pci-bridge.h extern struct pci_dn *pci_get_pdn_by_devfn(struct pci_bus *bus, bus 233 arch/powerpc/include/asm/pci-bridge.h u8 *bus, u8 *devfn) bus 237 arch/powerpc/include/asm/pci-bridge.h *bus = PCI_DN(np)->busno; bus 255 arch/powerpc/include/asm/pci-bridge.h extern void pci_hp_remove_devices(struct pci_bus *bus); bus 258 arch/powerpc/include/asm/pci-bridge.h extern void pci_hp_add_devices(struct pci_bus *bus); bus 260 arch/powerpc/include/asm/pci-bridge.h extern int pcibios_unmap_io_space(struct pci_bus *bus); bus 261 arch/powerpc/include/asm/pci-bridge.h extern int pcibios_map_io_space(struct pci_bus *bus); bus 67 arch/powerpc/include/asm/pci.h extern int pci_domain_nr(struct pci_bus *bus); bus 70 arch/powerpc/include/asm/pci.h extern int pci_proc_domain(struct pci_bus *bus); bus 80 arch/powerpc/include/asm/pci.h extern int pci_legacy_read(struct pci_bus *bus, loff_t port, u32 *val, bus 82 arch/powerpc/include/asm/pci.h extern int pci_legacy_write(struct pci_bus *bus, loff_t port, u32 val, bus 84 arch/powerpc/include/asm/pci.h extern int pci_mmap_legacy_page_range(struct pci_bus *bus, bus 92 arch/powerpc/include/asm/pci.h extern void pcibios_finish_adding_to_bus(struct pci_bus *bus); bus 100 arch/powerpc/include/asm/pci.h struct pci_bus *bus, int devfn); bus 106 arch/powerpc/include/asm/pci.h extern void of_scan_bus(struct device_node *node, struct pci_bus *bus); bus 107 arch/powerpc/include/asm/pci.h extern void of_rescan_bus(struct device_node *node, struct pci_bus *bus); bus 116 arch/powerpc/include/asm/pci.h extern void pcibios_setup_bus_devices(struct pci_bus *bus); bus 117 arch/powerpc/include/asm/pci.h extern void pcibios_setup_bus_self(struct pci_bus *bus); bus 64 arch/powerpc/include/asm/pmac_low_i2c.h extern struct device_node *pmac_i2c_get_controller(struct pmac_i2c_bus *bus); bus 65 arch/powerpc/include/asm/pmac_low_i2c.h extern struct device_node *pmac_i2c_get_bus_node(struct pmac_i2c_bus *bus); bus 66 arch/powerpc/include/asm/pmac_low_i2c.h extern int pmac_i2c_get_type(struct pmac_i2c_bus *bus); bus 67 arch/powerpc/include/asm/pmac_low_i2c.h extern int pmac_i2c_get_flags(struct pmac_i2c_bus *bus); bus 68 arch/powerpc/include/asm/pmac_low_i2c.h extern int pmac_i2c_get_channel(struct pmac_i2c_bus *bus); bus 71 arch/powerpc/include/asm/pmac_low_i2c.h extern struct i2c_adapter *pmac_i2c_get_adapter(struct pmac_i2c_bus *bus); bus 87 arch/powerpc/include/asm/pmac_low_i2c.h extern int pmac_i2c_open(struct pmac_i2c_bus *bus, int polled); bus 88 arch/powerpc/include/asm/pmac_low_i2c.h extern void pmac_i2c_close(struct pmac_i2c_bus *bus); bus 89 arch/powerpc/include/asm/pmac_low_i2c.h extern int pmac_i2c_setmode(struct pmac_i2c_bus *bus, int mode); bus 90 arch/powerpc/include/asm/pmac_low_i2c.h extern int pmac_i2c_xfer(struct pmac_i2c_bus *bus, u8 addrdir, int subsize, bus 62 arch/powerpc/include/asm/pnv-pci.h struct pci_bus *bus; bus 484 arch/powerpc/include/asm/smu.h u8 bus; /* SMU bus ID (from device tree) */ bus 26 arch/powerpc/include/asm/topology.h extern int pcibus_to_node(struct pci_bus *bus); bus 28 arch/powerpc/include/asm/topology.h static inline int pcibus_to_node(struct pci_bus *bus) bus 34 arch/powerpc/include/asm/topology.h #define cpumask_of_pcibus(bus) (pcibus_to_node(bus) == -1 ? \ bus 36 arch/powerpc/include/asm/topology.h cpumask_of_node(pcibus_to_node(bus))) bus 83 arch/powerpc/include/asm/tsi108.h extern int tsi108_direct_write_config(struct pci_bus *bus, unsigned int devfn, bus 85 arch/powerpc/include/asm/tsi108.h extern int tsi108_direct_read_config(struct pci_bus *bus, unsigned int devfn, bus 114 arch/powerpc/kernel/dma-iommu.c struct pci_controller *phb = pci_bus_to_host(pdev->bus); bus 1176 arch/powerpc/kernel/eeh.c pdn = pci_get_pdn_by_devfn(dev->bus, dev->devfn); bus 1224 arch/powerpc/kernel/eeh.c void eeh_add_device_tree_late(struct pci_bus *bus) bus 1230 arch/powerpc/kernel/eeh.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 1249 arch/powerpc/kernel/eeh.c void eeh_add_sysfs_files(struct pci_bus *bus) bus 1253 arch/powerpc/kernel/eeh.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 1889 arch/powerpc/kernel/eeh.c uint32_t domain, bus, dev, fn; bus 1900 arch/powerpc/kernel/eeh.c ret = sscanf(buf, "%x:%x:%x.%x", &domain, &bus, &dev, &fn); bus 1906 arch/powerpc/kernel/eeh.c pdev = pci_get_domain_bus_and_slot(domain, bus, (dev << 3) | fn); bus 1919 arch/powerpc/kernel/eeh.c domain, bus, dev, fn, ret); bus 2030 arch/powerpc/kernel/eeh.c uint32_t domain, bus, dev, fn; bus 2040 arch/powerpc/kernel/eeh.c ret = sscanf(buf, "%x:%x:%x.%x", &domain, &bus, &dev, &fn); bus 2046 arch/powerpc/kernel/eeh.c pdev = pci_get_domain_bus_and_slot(domain, bus, (dev << 3) | fn); bus 166 arch/powerpc/kernel/eeh_cache.c pdn = pci_get_pdn_by_devfn(dev->bus, dev->devfn); bus 642 arch/powerpc/kernel/eeh_driver.c static int eeh_reset_device(struct eeh_pe *pe, struct pci_bus *bus, bus 670 arch/powerpc/kernel/eeh_driver.c pci_hp_remove_devices(bus); bus 723 arch/powerpc/kernel/eeh_driver.c pci_hp_add_devices(bus); bus 856 arch/powerpc/kernel/eeh_driver.c struct pci_bus *bus; bus 865 arch/powerpc/kernel/eeh_driver.c bus = eeh_pe_bus_get(pe); bus 866 arch/powerpc/kernel/eeh_driver.c if (!bus) { bus 989 arch/powerpc/kernel/eeh_driver.c rc = eeh_reset_device(pe, bus, NULL, false); bus 1036 arch/powerpc/kernel/eeh_driver.c rc = eeh_reset_device(pe, bus, &rmv_data, true); bus 1109 arch/powerpc/kernel/eeh_driver.c pci_hp_remove_devices(bus); bus 1142 arch/powerpc/kernel/eeh_driver.c struct pci_bus *bus; bus 1222 arch/powerpc/kernel/eeh_driver.c bus = eeh_pe_bus_get(phb_pe); bus 1223 arch/powerpc/kernel/eeh_driver.c if (!bus) { bus 1231 arch/powerpc/kernel/eeh_driver.c pci_hp_remove_devices(bus); bus 885 arch/powerpc/kernel/eeh_pe.c struct pci_bus *bus = eeh_pe_bus_get(pe); bus 889 arch/powerpc/kernel/eeh_pe.c while (bus) { bus 890 arch/powerpc/kernel/eeh_pe.c dn = pci_bus_to_OF_node(bus); bus 892 arch/powerpc/kernel/eeh_pe.c bus = bus->parent; bus 896 arch/powerpc/kernel/eeh_pe.c if (pci_is_root_bus(bus)) bus 905 arch/powerpc/kernel/eeh_pe.c bus = bus->parent; bus 927 arch/powerpc/kernel/eeh_pe.c return pe->phb->bus; bus 931 arch/powerpc/kernel/eeh_pe.c return pe->bus; bus 937 arch/powerpc/kernel/eeh_pe.c return pdev->bus; bus 34 arch/powerpc/kernel/io-workarounds.c struct iowa_bus *bus = &iowa_busses[i]; bus 35 arch/powerpc/kernel/io-workarounds.c struct pci_controller *phb = bus->phb; bus 41 arch/powerpc/kernel/io-workarounds.c return bus; bus 48 arch/powerpc/kernel/io-workarounds.c return bus; bus 59 arch/powerpc/kernel/io-workarounds.c struct iowa_bus *bus; bus 65 arch/powerpc/kernel/io-workarounds.c bus = &iowa_busses[token - 1]; bus 84 arch/powerpc/kernel/io-workarounds.c bus = iowa_pci_find(vaddr, paddr); bus 86 arch/powerpc/kernel/io-workarounds.c if (bus == NULL) bus 90 arch/powerpc/kernel/io-workarounds.c return bus; bus 115 arch/powerpc/kernel/io-workarounds.c struct iowa_bus *bus; \ bus 116 arch/powerpc/kernel/io-workarounds.c bus = iowa_##space##_find_bus(aa); \ bus 117 arch/powerpc/kernel/io-workarounds.c if (bus && bus->ops && bus->ops->name) \ bus 118 arch/powerpc/kernel/io-workarounds.c return bus->ops->name al; \ bus 125 arch/powerpc/kernel/io-workarounds.c struct iowa_bus *bus; \ bus 126 arch/powerpc/kernel/io-workarounds.c bus = iowa_##space##_find_bus(aa); \ bus 127 arch/powerpc/kernel/io-workarounds.c if (bus && bus->ops && bus->ops->name) { \ bus 128 arch/powerpc/kernel/io-workarounds.c bus->ops->name al; \ bus 155 arch/powerpc/kernel/io-workarounds.c struct iowa_bus *bus; bus 159 arch/powerpc/kernel/io-workarounds.c bus = iowa_pci_find(0, (unsigned long)addr); bus 160 arch/powerpc/kernel/io-workarounds.c if (bus != NULL) { bus 161 arch/powerpc/kernel/io-workarounds.c busno = bus - iowa_busses; bus 183 arch/powerpc/kernel/io-workarounds.c struct iowa_bus *bus; bus 194 arch/powerpc/kernel/io-workarounds.c bus = &iowa_busses[iowa_bus_count]; bus 195 arch/powerpc/kernel/io-workarounds.c bus->phb = phb; bus 196 arch/powerpc/kernel/io-workarounds.c bus->ops = ops; bus 197 arch/powerpc/kernel/io-workarounds.c bus->private = data; bus 200 arch/powerpc/kernel/io-workarounds.c if ((*initfunc)(bus, data)) bus 264 arch/powerpc/kernel/isa-bridge.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); bus 14 arch/powerpc/kernel/msi.c struct pci_controller *phb = pci_bus_to_host(dev->bus); bus 31 arch/powerpc/kernel/msi.c struct pci_controller *phb = pci_bus_to_host(dev->bus); bus 74 arch/powerpc/kernel/of_platform.c if (phb->bus == NULL) bus 81 arch/powerpc/kernel/of_platform.c pcibios_claim_one_bus(phb->bus); bus 84 arch/powerpc/kernel/of_platform.c eeh_add_device_tree_late(phb->bus); bus 87 arch/powerpc/kernel/of_platform.c pci_bus_add_devices(phb->bus); bus 90 arch/powerpc/kernel/of_platform.c eeh_add_sysfs_files(phb->bus); bus 193 arch/powerpc/kernel/pci-common.c resource_size_t pcibios_window_alignment(struct pci_bus *bus, bus 196 arch/powerpc/kernel/pci-common.c struct pci_controller *phb = pci_bus_to_host(bus); bus 199 arch/powerpc/kernel/pci-common.c return phb->controller_ops.window_alignment(bus, type); bus 209 arch/powerpc/kernel/pci-common.c void pcibios_setup_bridge(struct pci_bus *bus, unsigned long type) bus 211 arch/powerpc/kernel/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); bus 214 arch/powerpc/kernel/pci-common.c hose->controller_ops.setup_bridge(bus, type); bus 219 arch/powerpc/kernel/pci-common.c struct pci_controller *phb = pci_bus_to_host(dev->bus); bus 324 arch/powerpc/kernel/pci-common.c int pci_domain_nr(struct pci_bus *bus) bus 326 arch/powerpc/kernel/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); bus 419 arch/powerpc/kernel/pci-common.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); bus 482 arch/powerpc/kernel/pci-common.c int pci_legacy_read(struct pci_bus *bus, loff_t port, u32 *val, size_t size) bus 485 arch/powerpc/kernel/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); bus 522 arch/powerpc/kernel/pci-common.c int pci_legacy_write(struct pci_bus *bus, loff_t port, u32 val, size_t size) bus 525 arch/powerpc/kernel/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); bus 567 arch/powerpc/kernel/pci-common.c int pci_mmap_legacy_page_range(struct pci_bus *bus, bus 571 arch/powerpc/kernel/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); bus 578 arch/powerpc/kernel/pci-common.c pci_domain_nr(bus), bus->number, bus 594 arch/powerpc/kernel/pci-common.c current->comm, current->pid, pci_domain_nr(bus), bus->number); bus 626 arch/powerpc/kernel/pci-common.c pcibios_resource_to_bus(dev->bus, ®ion, bus 771 arch/powerpc/kernel/pci-common.c int pci_proc_domain(struct pci_bus *bus) bus 773 arch/powerpc/kernel/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); bus 795 arch/powerpc/kernel/pci-common.c struct pci_controller *hose = pci_bus_to_host(dev->bus); bus 818 arch/powerpc/kernel/pci-common.c pcibios_resource_to_bus(dev->bus, ®, res); bus 845 arch/powerpc/kernel/pci-common.c static int pcibios_uninitialized_bridge_resource(struct pci_bus *bus, bus 848 arch/powerpc/kernel/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); bus 849 arch/powerpc/kernel/pci-common.c struct pci_dev *dev = bus->self; bus 861 arch/powerpc/kernel/pci-common.c pcibios_resource_to_bus(dev->bus, ®ion, res); bus 911 arch/powerpc/kernel/pci-common.c static void pcibios_fixup_bridge(struct pci_bus *bus) bus 916 arch/powerpc/kernel/pci-common.c struct pci_dev *dev = bus->self; bus 918 arch/powerpc/kernel/pci-common.c pci_bus_for_each_resource(bus, res, i) { bus 921 arch/powerpc/kernel/pci-common.c if (i >= 3 && bus->self->transparent) bus 940 arch/powerpc/kernel/pci-common.c if (pcibios_uninitialized_bridge_resource(bus, res)) { bus 947 arch/powerpc/kernel/pci-common.c void pcibios_setup_bus_self(struct pci_bus *bus) bus 952 arch/powerpc/kernel/pci-common.c if (bus->self != NULL) bus 953 arch/powerpc/kernel/pci-common.c pcibios_fixup_bridge(bus); bus 959 arch/powerpc/kernel/pci-common.c ppc_md.pcibios_fixup_bus(bus); bus 962 arch/powerpc/kernel/pci-common.c phb = pci_bus_to_host(bus); bus 964 arch/powerpc/kernel/pci-common.c phb->controller_ops.dma_bus_setup(bus); bus 973 arch/powerpc/kernel/pci-common.c set_dev_node(&dev->dev, pcibus_to_node(dev->bus)); bus 980 arch/powerpc/kernel/pci-common.c phb = pci_bus_to_host(dev->bus); bus 996 arch/powerpc/kernel/pci-common.c if (dev->bus->is_added) bus 1007 arch/powerpc/kernel/pci-common.c void pcibios_setup_bus_devices(struct pci_bus *bus) bus 1012 arch/powerpc/kernel/pci-common.c bus->number, bus->self ? pci_name(bus->self) : "PHB"); bus 1014 arch/powerpc/kernel/pci-common.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 1030 arch/powerpc/kernel/pci-common.c void pcibios_fixup_bus(struct pci_bus *bus) bus 1036 arch/powerpc/kernel/pci-common.c pci_read_bridge_bases(bus); bus 1039 arch/powerpc/kernel/pci-common.c pcibios_setup_bus_self(bus); bus 1042 arch/powerpc/kernel/pci-common.c pcibios_setup_bus_devices(bus); bus 1046 arch/powerpc/kernel/pci-common.c void pci_fixup_cardbus(struct pci_bus *bus) bus 1049 arch/powerpc/kernel/pci-common.c pcibios_setup_bus_devices(bus); bus 1056 arch/powerpc/kernel/pci-common.c !(dev->bus->bridge_ctl & PCI_BRIDGE_CTL_ISA)) bus 1159 arch/powerpc/kernel/pci-common.c static void pcibios_allocate_bus_resources(struct pci_bus *bus) bus 1166 arch/powerpc/kernel/pci-common.c pci_domain_nr(bus), bus->number); bus 1168 arch/powerpc/kernel/pci-common.c pci_bus_for_each_resource(bus, res, i) { bus 1176 arch/powerpc/kernel/pci-common.c if (bus->parent == NULL) bus 1180 arch/powerpc/kernel/pci-common.c pr = pci_find_parent_resource(bus->self, res); bus 1191 arch/powerpc/kernel/pci-common.c bus->self ? pci_name(bus->self) : "PHB", bus->number, bus 1195 arch/powerpc/kernel/pci-common.c struct pci_dev *dev = bus->self; bus 1213 arch/powerpc/kernel/pci-common.c i, bus->number); bus 1226 arch/powerpc/kernel/pci-common.c list_for_each_entry(b, &bus->children, node) bus 1298 arch/powerpc/kernel/pci-common.c static void __init pcibios_reserve_legacy_regions(struct pci_bus *bus) bus 1300 arch/powerpc/kernel/pci-common.c struct pci_controller *hose = pci_bus_to_host(bus); bus 1305 arch/powerpc/kernel/pci-common.c pr_debug("Reserving legacy ranges for domain %04x\n", pci_domain_nr(bus)); bus 1321 arch/powerpc/kernel/pci-common.c pci_domain_nr(bus), bus->number, res); bus 1349 arch/powerpc/kernel/pci-common.c pci_domain_nr(bus), bus->number, res); bus 1389 arch/powerpc/kernel/pci-common.c void pcibios_claim_one_bus(struct pci_bus *bus) bus 1394 arch/powerpc/kernel/pci-common.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 1413 arch/powerpc/kernel/pci-common.c list_for_each_entry(child_bus, &bus->children, node) bus 1425 arch/powerpc/kernel/pci-common.c void pcibios_finish_adding_to_bus(struct pci_bus *bus) bus 1428 arch/powerpc/kernel/pci-common.c pci_domain_nr(bus), bus->number); bus 1431 arch/powerpc/kernel/pci-common.c pcibios_allocate_bus_resources(bus); bus 1432 arch/powerpc/kernel/pci-common.c pcibios_claim_one_bus(bus); bus 1434 arch/powerpc/kernel/pci-common.c if (bus->self) bus 1435 arch/powerpc/kernel/pci-common.c pci_assign_unassigned_bridge_resources(bus->self); bus 1437 arch/powerpc/kernel/pci-common.c pci_assign_unassigned_bus_resources(bus); bus 1441 arch/powerpc/kernel/pci-common.c eeh_add_device_tree_late(bus); bus 1444 arch/powerpc/kernel/pci-common.c pci_bus_add_devices(bus); bus 1447 arch/powerpc/kernel/pci-common.c eeh_add_sysfs_files(bus); bus 1453 arch/powerpc/kernel/pci-common.c struct pci_controller *phb = pci_bus_to_host(dev->bus); bus 1464 arch/powerpc/kernel/pci-common.c struct pci_controller *phb = pci_bus_to_host(dev->bus); bus 1523 arch/powerpc/kernel/pci-common.c null_read_config(struct pci_bus *bus, unsigned int devfn, int offset, bus 1530 arch/powerpc/kernel/pci-common.c null_write_config(struct pci_bus *bus, unsigned int devfn, int offset, bus 1549 arch/powerpc/kernel/pci-common.c static struct pci_bus bus; bus 1554 arch/powerpc/kernel/pci-common.c bus.number = busnr; bus 1555 arch/powerpc/kernel/pci-common.c bus.sysdata = hose; bus 1556 arch/powerpc/kernel/pci-common.c bus.ops = hose? hose->ops: &null_pci_ops; bus 1557 arch/powerpc/kernel/pci-common.c return &bus; bus 1561 arch/powerpc/kernel/pci-common.c int early_##rw##_config_##size(struct pci_controller *hose, int bus, \ bus 1564 arch/powerpc/kernel/pci-common.c return pci_bus_##rw##_config_##size(fake_pci_bus(hose, bus), \ bus 1575 arch/powerpc/kernel/pci-common.c int early_find_capability(struct pci_controller *hose, int bus, int devfn, bus 1578 arch/powerpc/kernel/pci-common.c return pci_bus_find_capability(fake_pci_bus(hose, bus), devfn, cap); bus 1581 arch/powerpc/kernel/pci-common.c struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus) bus 1583 arch/powerpc/kernel/pci-common.c struct pci_controller *hose = bus->sysdata; bus 1595 arch/powerpc/kernel/pci-common.c struct pci_bus *bus; bus 1613 arch/powerpc/kernel/pci-common.c bus = pci_create_root_bus(hose->parent, hose->first_busno, bus 1615 arch/powerpc/kernel/pci-common.c if (bus == NULL) { bus 1621 arch/powerpc/kernel/pci-common.c hose->bus = bus; bus 1626 arch/powerpc/kernel/pci-common.c mode = hose->controller_ops.probe_mode(bus); bus 1629 arch/powerpc/kernel/pci-common.c of_scan_bus(node, bus); bus 1632 arch/powerpc/kernel/pci-common.c pci_bus_update_busn_res_end(bus, 255); bus 1633 arch/powerpc/kernel/pci-common.c hose->last_busno = pci_scan_child_bus(bus); bus 1634 arch/powerpc/kernel/pci-common.c pci_bus_update_busn_res_end(bus, hose->last_busno); bus 1644 arch/powerpc/kernel/pci-common.c if (bus && !pci_has_flag(PCI_PROBE_ONLY)) { bus 1646 arch/powerpc/kernel/pci-common.c list_for_each_entry(child, &bus->children, node) bus 1662 arch/powerpc/kernel/pci-common.c (dev->bus->parent == NULL)) { bus 20 arch/powerpc/kernel/pci-hotplug.c static struct pci_bus *find_bus_among_children(struct pci_bus *bus, bus 26 arch/powerpc/kernel/pci-hotplug.c if (pci_bus_to_OF_node(bus) == dn) bus 27 arch/powerpc/kernel/pci-hotplug.c return bus; bus 29 arch/powerpc/kernel/pci-hotplug.c list_for_each_entry(tmp, &bus->children, node) { bus 42 arch/powerpc/kernel/pci-hotplug.c if (!pdn || !pdn->phb || !pdn->phb->bus) bus 45 arch/powerpc/kernel/pci-hotplug.c return find_bus_among_children(pdn->phb->bus, dn); bus 57 arch/powerpc/kernel/pci-hotplug.c struct pci_controller *phb = pci_bus_to_host(dev->bus); bus 79 arch/powerpc/kernel/pci-hotplug.c void pci_hp_remove_devices(struct pci_bus *bus) bus 85 arch/powerpc/kernel/pci-hotplug.c list_for_each_entry(child_bus, &bus->children, node) bus 89 arch/powerpc/kernel/pci-hotplug.c pci_domain_nr(bus), bus->number); bus 90 arch/powerpc/kernel/pci-hotplug.c list_for_each_entry_safe_reverse(dev, tmp, &bus->devices, bus_list) { bus 108 arch/powerpc/kernel/pci-hotplug.c void pci_hp_add_devices(struct pci_bus *bus) bus 113 arch/powerpc/kernel/pci-hotplug.c struct device_node *dn = pci_bus_to_OF_node(bus); bus 117 arch/powerpc/kernel/pci-hotplug.c phb = pci_bus_to_host(bus); bus 121 arch/powerpc/kernel/pci-hotplug.c mode = phb->controller_ops.probe_mode(bus); bus 125 arch/powerpc/kernel/pci-hotplug.c of_rescan_bus(dn, bus); bus 136 arch/powerpc/kernel/pci-hotplug.c pci_scan_slot(bus, PCI_DEVFN(slotno, 0)); bus 137 arch/powerpc/kernel/pci-hotplug.c pcibios_setup_bus_devices(bus); bus 138 arch/powerpc/kernel/pci-hotplug.c max = bus->busn_res.start; bus 144 arch/powerpc/kernel/pci-hotplug.c for_each_pci_bridge(dev, bus) bus 145 arch/powerpc/kernel/pci-hotplug.c max = pci_scan_bridge(bus, dev, max, 0); bus 148 arch/powerpc/kernel/pci-hotplug.c for_each_pci_bridge(dev, bus) bus 149 arch/powerpc/kernel/pci-hotplug.c max = pci_scan_bridge(bus, dev, max, 1); bus 151 arch/powerpc/kernel/pci-hotplug.c pcibios_finish_adding_to_bus(bus); bus 161 arch/powerpc/kernel/pci_32.c int pci_device_from_OF_node(struct device_node *node, u8 *bus, u8 *devfn) bus 175 arch/powerpc/kernel/pci_32.c *bus = (be32_to_cpup(®[0]) >> 16) & 0xff; bus 187 arch/powerpc/kernel/pci_32.c if (pci_to_OF_bus_map[dev->bus->number] == *bus && bus 189 arch/powerpc/kernel/pci_32.c *bus = dev->bus->number; bus 250 arch/powerpc/kernel/pci_32.c pci_bus_add_devices(hose->bus); bus 280 arch/powerpc/kernel/pci_32.c pci_bus_to_hose(int bus) bus 285 arch/powerpc/kernel/pci_32.c if (bus >= hose->first_busno && bus <= hose->last_busno) bus 297 arch/powerpc/kernel/pci_32.c unsigned long, bus, unsigned long, devfn) bus 302 arch/powerpc/kernel/pci_32.c hose = pci_bus_to_hose(bus); bus 65 arch/powerpc/kernel/pci_64.c pci_bus_add_devices(hose->bus); bus 78 arch/powerpc/kernel/pci_64.c int pcibios_unmap_io_space(struct pci_bus *bus) bus 82 arch/powerpc/kernel/pci_64.c WARN_ON(bus == NULL); bus 94 arch/powerpc/kernel/pci_64.c if (bus->self) { bus 96 arch/powerpc/kernel/pci_64.c struct resource *res = bus->resource[0]; bus 100 arch/powerpc/kernel/pci_64.c pci_name(bus->self)); bus 110 arch/powerpc/kernel/pci_64.c hose = pci_bus_to_host(bus); bus 177 arch/powerpc/kernel/pci_64.c int pcibios_map_io_space(struct pci_bus *bus) bus 179 arch/powerpc/kernel/pci_64.c WARN_ON(bus == NULL); bus 184 arch/powerpc/kernel/pci_64.c if (bus->self) { bus 186 arch/powerpc/kernel/pci_64.c pci_name(bus->self)); bus 188 arch/powerpc/kernel/pci_64.c bus->resource[0]->start + _IO_BASE, bus 189 arch/powerpc/kernel/pci_64.c bus->resource[0]->end + _IO_BASE); bus 193 arch/powerpc/kernel/pci_64.c return pcibios_map_phb_io_space(pci_bus_to_host(bus)); bus 212 arch/powerpc/kernel/pci_64.c struct pci_bus *tmp_bus, *bus = NULL; bus 236 arch/powerpc/kernel/pci_64.c bus = tmp_bus; bus 240 arch/powerpc/kernel/pci_64.c if (bus == NULL || bus->dev.of_node == NULL) bus 243 arch/powerpc/kernel/pci_64.c hose_node = bus->dev.of_node; bus 263 arch/powerpc/kernel/pci_64.c int pcibus_to_node(struct pci_bus *bus) bus 265 arch/powerpc/kernel/pci_64.c struct pci_controller *phb = pci_bus_to_host(bus); bus 30 arch/powerpc/kernel/pci_dn.c static struct pci_dn *pci_bus_to_pdn(struct pci_bus *bus) bus 40 arch/powerpc/kernel/pci_dn.c pbus = bus; bus 58 arch/powerpc/kernel/pci_dn.c struct pci_dn *pci_get_pdn_by_devfn(struct pci_bus *bus, bus 66 arch/powerpc/kernel/pci_dn.c list_for_each_entry(pdev, &bus->devices, bus_list) { bus 82 arch/powerpc/kernel/pci_dn.c parent = pci_bus_to_pdn(bus); bus 87 arch/powerpc/kernel/pci_dn.c if (pdn->busno == bus->number && bus 114 arch/powerpc/kernel/pci_dn.c parent = pci_bus_to_pdn(pdev->bus); bus 119 arch/powerpc/kernel/pci_dn.c if (pdn->busno == pdev->bus->number && bus 172 arch/powerpc/kernel/pci_dn.c parent = pci_bus_to_pdn(pdev->bus); bus 228 arch/powerpc/kernel/pci_dn.c parent = pci_bus_to_pdn(pdev->bus); bus 165 arch/powerpc/kernel/pci_of_scan.c pcibios_bus_to_resource(dev->bus, res, ®ion); bus 176 arch/powerpc/kernel/pci_of_scan.c struct pci_bus *bus, int devfn) bus 180 arch/powerpc/kernel/pci_of_scan.c dev = pci_alloc_dev(bus); bus 188 arch/powerpc/kernel/pci_of_scan.c dev->dev.parent = bus->bridge; bus 189 arch/powerpc/kernel/pci_of_scan.c dev->dev.bus = &pci_bus_type; bus 203 arch/powerpc/kernel/pci_of_scan.c dev_set_name(&dev->dev, "%04x:%02x:%02x.%d", pci_domain_nr(bus), bus 204 arch/powerpc/kernel/pci_of_scan.c dev->bus->number, PCI_SLOT(devfn), PCI_FUNC(devfn)); bus 236 arch/powerpc/kernel/pci_of_scan.c pci_device_add(dev, bus); bus 253 arch/powerpc/kernel/pci_of_scan.c struct pci_bus *bus; bus 278 arch/powerpc/kernel/pci_of_scan.c bus = pci_find_bus(pci_domain_nr(dev->bus), bus 280 arch/powerpc/kernel/pci_of_scan.c if (!bus) { bus 281 arch/powerpc/kernel/pci_of_scan.c bus = pci_add_new_bus(dev->bus, dev, bus 283 arch/powerpc/kernel/pci_of_scan.c if (!bus) { bus 290 arch/powerpc/kernel/pci_of_scan.c bus->primary = dev->bus->number; bus 291 arch/powerpc/kernel/pci_of_scan.c pci_bus_insert_busn_res(bus, of_read_number(busrange, 1), bus 293 arch/powerpc/kernel/pci_of_scan.c bus->bridge_ctl = 0; bus 300 arch/powerpc/kernel/pci_of_scan.c bus->resource[i] = res; bus 310 arch/powerpc/kernel/pci_of_scan.c res = bus->resource[0]; bus 322 arch/powerpc/kernel/pci_of_scan.c res = bus->resource[i]; bus 328 arch/powerpc/kernel/pci_of_scan.c pcibios_bus_to_resource(dev->bus, res, ®ion); bus 330 arch/powerpc/kernel/pci_of_scan.c sprintf(bus->name, "PCI Bus %04x:%02x", pci_domain_nr(bus), bus 331 arch/powerpc/kernel/pci_of_scan.c bus->number); bus 332 arch/powerpc/kernel/pci_of_scan.c pr_debug(" bus name: %s\n", bus->name); bus 334 arch/powerpc/kernel/pci_of_scan.c phb = pci_bus_to_host(bus); bus 338 arch/powerpc/kernel/pci_of_scan.c mode = phb->controller_ops.probe_mode(bus); bus 342 arch/powerpc/kernel/pci_of_scan.c of_scan_bus(node, bus); bus 344 arch/powerpc/kernel/pci_of_scan.c pci_scan_child_bus(bus); bus 348 arch/powerpc/kernel/pci_of_scan.c static struct pci_dev *of_scan_pci_dev(struct pci_bus *bus, bus 368 arch/powerpc/kernel/pci_of_scan.c dev = pci_get_slot(bus, devfn); bus 381 arch/powerpc/kernel/pci_of_scan.c dev = of_create_pci_dev(dn, bus, devfn); bus 395 arch/powerpc/kernel/pci_of_scan.c static void __of_scan_bus(struct device_node *node, struct pci_bus *bus, bus 402 arch/powerpc/kernel/pci_of_scan.c node, bus->number); bus 406 arch/powerpc/kernel/pci_of_scan.c dev = of_scan_pci_dev(bus, child); bus 416 arch/powerpc/kernel/pci_of_scan.c pcibios_setup_bus_self(bus); bus 417 arch/powerpc/kernel/pci_of_scan.c pcibios_setup_bus_devices(bus); bus 420 arch/powerpc/kernel/pci_of_scan.c for_each_pci_bridge(dev, bus) bus 429 arch/powerpc/kernel/pci_of_scan.c void of_scan_bus(struct device_node *node, struct pci_bus *bus) bus 431 arch/powerpc/kernel/pci_of_scan.c __of_scan_bus(node, bus, 0); bus 443 arch/powerpc/kernel/pci_of_scan.c void of_rescan_bus(struct device_node *node, struct pci_bus *bus) bus 445 arch/powerpc/kernel/pci_of_scan.c __of_scan_bus(node, bus, 1); bus 77 arch/powerpc/kernel/rtas_pci.c static int rtas_pci_read_config(struct pci_bus *bus, bus 86 arch/powerpc/kernel/rtas_pci.c pdn = pci_get_pdn_by_devfn(bus, devfn); bus 127 arch/powerpc/kernel/rtas_pci.c static int rtas_pci_write_config(struct pci_bus *bus, bus 133 arch/powerpc/kernel/rtas_pci.c pdn = pci_get_pdn_by_devfn(bus, devfn); bus 61 arch/powerpc/platforms/4xx/pci.c if (dev->devfn != 0 || dev->bus->self != NULL) bus 64 arch/powerpc/platforms/4xx/pci.c hose = pci_bus_to_host(dev->bus); bus 1551 arch/powerpc/platforms/4xx/pci.c struct pci_bus *bus, bus 1557 arch/powerpc/platforms/4xx/pci.c if (port->endpoint && bus->number != port->hose->first_busno) bus 1561 arch/powerpc/platforms/4xx/pci.c if (bus->number > port->hose->last_busno) { bus 1564 arch/powerpc/platforms/4xx/pci.c " out of range !\n", bus->number); bus 1571 arch/powerpc/platforms/4xx/pci.c if (bus->number == port->hose->first_busno && devfn != 0) bus 1575 arch/powerpc/platforms/4xx/pci.c if (bus->number == (port->hose->first_busno + 1) && bus 1580 arch/powerpc/platforms/4xx/pci.c if ((bus->number != port->hose->first_busno) && !port->link) bus 1587 arch/powerpc/platforms/4xx/pci.c struct pci_bus *bus, bus 1595 arch/powerpc/platforms/4xx/pci.c if (bus->number == port->hose->first_busno) bus 1598 arch/powerpc/platforms/4xx/pci.c relbus = bus->number - (port->hose->first_busno + 1); bus 1603 arch/powerpc/platforms/4xx/pci.c static int ppc4xx_pciex_read_config(struct pci_bus *bus, unsigned int devfn, bus 1606 arch/powerpc/platforms/4xx/pci.c struct pci_controller *hose = pci_bus_to_host(bus); bus 1614 arch/powerpc/platforms/4xx/pci.c if (ppc4xx_pciex_validate_bdf(port, bus, devfn) != 0) bus 1617 arch/powerpc/platforms/4xx/pci.c addr = ppc4xx_pciex_get_config_base(port, bus, devfn); bus 1644 arch/powerpc/platforms/4xx/pci.c bus->number, hose->first_busno, hose->last_busno, bus 1660 arch/powerpc/platforms/4xx/pci.c static int ppc4xx_pciex_write_config(struct pci_bus *bus, unsigned int devfn, bus 1663 arch/powerpc/platforms/4xx/pci.c struct pci_controller *hose = pci_bus_to_host(bus); bus 1669 arch/powerpc/platforms/4xx/pci.c if (ppc4xx_pciex_validate_bdf(port, bus, devfn) != 0) bus 1672 arch/powerpc/platforms/4xx/pci.c addr = ppc4xx_pciex_get_config_base(port, bus, devfn); bus 1684 arch/powerpc/platforms/4xx/pci.c bus->number, hose->first_busno, hose->last_busno, bus 35 arch/powerpc/platforms/52xx/efika.c static int rtas_read_config(struct pci_bus *bus, unsigned int devfn, int offset, bus 38 arch/powerpc/platforms/52xx/efika.c struct pci_controller *hose = pci_bus_to_host(bus); bus 40 arch/powerpc/platforms/52xx/efika.c | (((bus->number - hose->first_busno) & 0xff) << 16) bus 50 arch/powerpc/platforms/52xx/efika.c static int rtas_write_config(struct pci_bus *bus, unsigned int devfn, bus 53 arch/powerpc/platforms/52xx/efika.c struct pci_controller *hose = pci_bus_to_host(bus); bus 55 arch/powerpc/platforms/52xx/efika.c | (((bus->number - hose->first_busno) & 0xff) << 16) bus 107 arch/powerpc/platforms/52xx/mpc52xx_pci.c mpc52xx_pci_read_config(struct pci_bus *bus, unsigned int devfn, bus 110 arch/powerpc/platforms/52xx/mpc52xx_pci.c struct pci_controller *hose = pci_bus_to_host(bus); bus 114 arch/powerpc/platforms/52xx/mpc52xx_pci.c if (ppc_md.pci_exclude_device(hose, bus->number, devfn)) bus 119 arch/powerpc/platforms/52xx/mpc52xx_pci.c (bus->number << 16) | bus 125 arch/powerpc/platforms/52xx/mpc52xx_pci.c if (bus->number) { bus 164 arch/powerpc/platforms/52xx/mpc52xx_pci.c mpc52xx_pci_write_config(struct pci_bus *bus, unsigned int devfn, bus 167 arch/powerpc/platforms/52xx/mpc52xx_pci.c struct pci_controller *hose = pci_bus_to_host(bus); bus 171 arch/powerpc/platforms/52xx/mpc52xx_pci.c if (ppc_md.pci_exclude_device(hose, bus->number, devfn)) bus 176 arch/powerpc/platforms/52xx/mpc52xx_pci.c (bus->number << 16) | bus 182 arch/powerpc/platforms/52xx/mpc52xx_pci.c if (bus->number) { bus 112 arch/powerpc/platforms/82xx/ep8248e.c struct mii_bus *bus; bus 126 arch/powerpc/platforms/82xx/ep8248e.c bus = alloc_mdio_bitbang(&ep8248e_mdio_ctrl); bus 127 arch/powerpc/platforms/82xx/ep8248e.c if (!bus) bus 130 arch/powerpc/platforms/82xx/ep8248e.c bus->name = "ep8248e-mdio-bitbang"; bus 131 arch/powerpc/platforms/82xx/ep8248e.c bus->parent = &ofdev->dev; bus 132 arch/powerpc/platforms/82xx/ep8248e.c snprintf(bus->id, MII_BUS_ID_SIZE, "%x", res.start); bus 134 arch/powerpc/platforms/82xx/ep8248e.c ret = of_mdiobus_register(bus, ofdev->dev.of_node); bus 140 arch/powerpc/platforms/82xx/ep8248e.c free_mdio_bitbang(bus); bus 35 arch/powerpc/platforms/82xx/pq2.c u_char bus, u8 devfn) bus 37 arch/powerpc/platforms/82xx/pq2.c if (bus == 0 && PCI_SLOT(devfn) == 0) bus 71 arch/powerpc/platforms/85xx/mpc85xx_cds.c u_char bus, u_char devfn) bus 74 arch/powerpc/platforms/85xx/mpc85xx_cds.c if ((bus == 1) && (PCI_SLOT(devfn) == ARCADIA_2ND_BRIDGE_IDSEL)) bus 76 arch/powerpc/platforms/85xx/mpc85xx_cds.c if ((bus == 0) && (PCI_SLOT(devfn) == ARCADIA_2ND_BRIDGE_IDSEL)) bus 184 arch/powerpc/platforms/85xx/mpc85xx_cds.c void mpc85xx_cds_fixup_bus(struct pci_bus *bus) bus 186 arch/powerpc/platforms/85xx/mpc85xx_cds.c struct pci_dev *dev = bus->self; bus 187 arch/powerpc/platforms/85xx/mpc85xx_cds.c struct resource *res = bus->resource[0]; bus 201 arch/powerpc/platforms/85xx/mpc85xx_cds.c fsl_pcibios_fixup_bus(bus); bus 111 arch/powerpc/platforms/85xx/mpc85xx_ds.c u_char bus, u_char devfn); bus 116 arch/powerpc/platforms/85xx/mpc85xx_ds.c u_char bus, u_char devfn) bus 119 arch/powerpc/platforms/85xx/mpc85xx_ds.c return uli_exclude_device(hose, bus, devfn); bus 44 arch/powerpc/platforms/86xx/mpc86xx_hpcn.c u_char bus, u_char devfn); bus 47 arch/powerpc/platforms/86xx/mpc86xx_hpcn.c u_char bus, u_char devfn) bus 50 arch/powerpc/platforms/86xx/mpc86xx_hpcn.c return uli_exclude_device(hose, bus, devfn); bus 91 arch/powerpc/platforms/cell/setup.c if (dev->bus->self != NULL || dev->devfn != 0) bus 94 arch/powerpc/platforms/cell/setup.c hose = pci_bus_to_host(dev->bus); bus 25 arch/powerpc/platforms/cell/spider-pci.c static void spiderpci_io_flush(struct iowa_bus *bus) bus 30 arch/powerpc/platforms/cell/spider-pci.c priv = bus->private; bus 112 arch/powerpc/platforms/cell/spider-pci.c int __init spiderpci_iowa_init(struct iowa_bus *bus, void *data) bus 116 arch/powerpc/platforms/cell/spider-pci.c struct device_node *np = bus->phb->dn; bus 141 arch/powerpc/platforms/cell/spider-pci.c bus->private = priv; bus 143 arch/powerpc/platforms/cell/spider-pci.c if (spiderpci_pci_setup_chip(bus->phb, regs)) bus 150 arch/powerpc/platforms/cell/spider-pci.c bus->private = NULL; bus 548 arch/powerpc/platforms/cell/spu_base.c spu->dev.bus = &spu_subsys; bus 34 arch/powerpc/platforms/chrp/pci.c static int gg2_read_config(struct pci_bus *bus, unsigned int devfn, int off, bus 38 arch/powerpc/platforms/chrp/pci.c struct pci_controller *hose = pci_bus_to_host(bus); bus 40 arch/powerpc/platforms/chrp/pci.c if (bus->number > 7) bus 46 arch/powerpc/platforms/chrp/pci.c cfg_data = hose->cfg_data + ((bus->number<<16) | (devfn<<8) | off); bus 61 arch/powerpc/platforms/chrp/pci.c static int gg2_write_config(struct pci_bus *bus, unsigned int devfn, int off, bus 65 arch/powerpc/platforms/chrp/pci.c struct pci_controller *hose = pci_bus_to_host(bus); bus 67 arch/powerpc/platforms/chrp/pci.c if (bus->number > 7) bus 73 arch/powerpc/platforms/chrp/pci.c cfg_data = hose->cfg_data + ((bus->number<<16) | (devfn<<8) | off); bus 97 arch/powerpc/platforms/chrp/pci.c static int rtas_read_config(struct pci_bus *bus, unsigned int devfn, int offset, bus 100 arch/powerpc/platforms/chrp/pci.c struct pci_controller *hose = pci_bus_to_host(bus); bus 102 arch/powerpc/platforms/chrp/pci.c | (((bus->number - hose->first_busno) & 0xff) << 16) bus 112 arch/powerpc/platforms/chrp/pci.c static int rtas_write_config(struct pci_bus *bus, unsigned int devfn, int offset, bus 115 arch/powerpc/platforms/chrp/pci.c struct pci_controller *hose = pci_bus_to_host(bus); bus 117 arch/powerpc/platforms/chrp/pci.c | (((bus->number - hose->first_busno) & 0xff) << 16) bus 44 arch/powerpc/platforms/embedded6xx/holly.c static int holly_exclude_device(struct pci_controller *hose, u_char bus, bus 47 arch/powerpc/platforms/embedded6xx/holly.c if (bus == 0 && PCI_SLOT(devfn) == 0) bus 53 arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c u_char bus, u_char devfn) bus 55 arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c if (bus == 0 && PCI_SLOT(devfn) == 0) bus 219 arch/powerpc/platforms/fsl_uli1575.c struct pci_bus *bus = dev->bus; bus 229 arch/powerpc/platforms/fsl_uli1575.c pci_bus_for_each_resource(bus, res, i) { bus 318 arch/powerpc/platforms/fsl_uli1575.c struct pci_controller *hose = pci_bus_to_host(dev->bus); bus 344 arch/powerpc/platforms/fsl_uli1575.c u_char bus, u_char devfn) bus 346 arch/powerpc/platforms/fsl_uli1575.c if (bus == (hose->first_busno + 2)) { bus 88 arch/powerpc/platforms/maple/pci.c static unsigned long u3_agp_cfa1(u8 bus, u8 devfn, u8 off) bus 90 arch/powerpc/platforms/maple/pci.c return ((unsigned long)bus << 16) | bus 97 arch/powerpc/platforms/maple/pci.c u8 bus, u8 dev_fn, u8 offset) bus 101 arch/powerpc/platforms/maple/pci.c if (bus == hose->first_busno) { bus 106 arch/powerpc/platforms/maple/pci.c caddr = u3_agp_cfa1(bus, dev_fn, offset); bus 117 arch/powerpc/platforms/maple/pci.c static int u3_agp_read_config(struct pci_bus *bus, unsigned int devfn, bus 123 arch/powerpc/platforms/maple/pci.c hose = pci_bus_to_host(bus); bus 127 arch/powerpc/platforms/maple/pci.c addr = u3_agp_cfg_access(hose, bus->number, devfn, offset); bus 148 arch/powerpc/platforms/maple/pci.c static int u3_agp_write_config(struct pci_bus *bus, unsigned int devfn, bus 154 arch/powerpc/platforms/maple/pci.c hose = pci_bus_to_host(bus); bus 158 arch/powerpc/platforms/maple/pci.c addr = u3_agp_cfg_access(hose, bus->number, devfn, offset); bus 190 arch/powerpc/platforms/maple/pci.c static unsigned long u3_ht_cfa1(u8 bus, u8 devfn, u8 off) bus 192 arch/powerpc/platforms/maple/pci.c return u3_ht_cfa0(devfn, off) + (bus << 16) + 0x01000000UL; bus 196 arch/powerpc/platforms/maple/pci.c u8 bus, u8 devfn, u8 offset) bus 198 arch/powerpc/platforms/maple/pci.c if (bus == hose->first_busno) { bus 203 arch/powerpc/platforms/maple/pci.c return hose->cfg_data + u3_ht_cfa1(bus, devfn, offset); bus 254 arch/powerpc/platforms/maple/pci.c static int u3_ht_read_config(struct pci_bus *bus, unsigned int devfn, bus 260 arch/powerpc/platforms/maple/pci.c hose = pci_bus_to_host(bus); bus 264 arch/powerpc/platforms/maple/pci.c if (bus->number == hose->first_busno && devfn == PCI_DEVFN(0, 0)) bus 270 arch/powerpc/platforms/maple/pci.c addr = u3_ht_cfg_access(hose, bus->number, devfn, offset); bus 292 arch/powerpc/platforms/maple/pci.c static int u3_ht_write_config(struct pci_bus *bus, unsigned int devfn, bus 298 arch/powerpc/platforms/maple/pci.c hose = pci_bus_to_host(bus); bus 302 arch/powerpc/platforms/maple/pci.c if (bus->number == hose->first_busno && devfn == PCI_DEVFN(0, 0)) bus 308 arch/powerpc/platforms/maple/pci.c addr = u3_ht_cfg_access(hose, bus->number, devfn, offset); bus 343 arch/powerpc/platforms/maple/pci.c static unsigned int u4_pcie_cfa1(unsigned int bus, unsigned int devfn, bus 346 arch/powerpc/platforms/maple/pci.c return (bus << 16) | bus 353 arch/powerpc/platforms/maple/pci.c u8 bus, u8 dev_fn, int offset) bus 357 arch/powerpc/platforms/maple/pci.c if (bus == hose->first_busno) bus 360 arch/powerpc/platforms/maple/pci.c caddr = u4_pcie_cfa1(bus, dev_fn, offset); bus 371 arch/powerpc/platforms/maple/pci.c static int u4_pcie_read_config(struct pci_bus *bus, unsigned int devfn, bus 377 arch/powerpc/platforms/maple/pci.c hose = pci_bus_to_host(bus); bus 382 arch/powerpc/platforms/maple/pci.c addr = u4_pcie_cfg_access(hose, bus->number, devfn, offset); bus 402 arch/powerpc/platforms/maple/pci.c static int u4_pcie_write_config(struct pci_bus *bus, unsigned int devfn, bus 408 arch/powerpc/platforms/maple/pci.c hose = pci_bus_to_host(bus); bus 413 arch/powerpc/platforms/maple/pci.c addr = u4_pcie_cfg_access(hose, bus->number, devfn, offset); bus 548 arch/powerpc/platforms/maple/pci.c if (u4_pcie != NULL && dev->bus->number == 0 && bus 549 arch/powerpc/platforms/maple/pci.c pci_bus_to_host(dev->bus) == u4_pcie) { bus 570 arch/powerpc/platforms/maple/pci.c struct pci_controller *hose = pci_bus_to_host(bridge->bus); bus 34 arch/powerpc/platforms/pasemi/gpio_mdio.c #define MDC_PIN(bus) (((struct gpio_priv *)bus->priv)->mdc_pin) bus 35 arch/powerpc/platforms/pasemi/gpio_mdio.c #define MDIO_PIN(bus) (((struct gpio_priv *)bus->priv)->mdio_pin) bus 37 arch/powerpc/platforms/pasemi/gpio_mdio.c static inline void mdio_lo(struct mii_bus *bus) bus 39 arch/powerpc/platforms/pasemi/gpio_mdio.c out_le32(gpio_regs+0x10, 1 << MDIO_PIN(bus)); bus 42 arch/powerpc/platforms/pasemi/gpio_mdio.c static inline void mdio_hi(struct mii_bus *bus) bus 44 arch/powerpc/platforms/pasemi/gpio_mdio.c out_le32(gpio_regs, 1 << MDIO_PIN(bus)); bus 47 arch/powerpc/platforms/pasemi/gpio_mdio.c static inline void mdc_lo(struct mii_bus *bus) bus 49 arch/powerpc/platforms/pasemi/gpio_mdio.c out_le32(gpio_regs+0x10, 1 << MDC_PIN(bus)); bus 52 arch/powerpc/platforms/pasemi/gpio_mdio.c static inline void mdc_hi(struct mii_bus *bus) bus 54 arch/powerpc/platforms/pasemi/gpio_mdio.c out_le32(gpio_regs, 1 << MDC_PIN(bus)); bus 57 arch/powerpc/platforms/pasemi/gpio_mdio.c static inline void mdio_active(struct mii_bus *bus) bus 59 arch/powerpc/platforms/pasemi/gpio_mdio.c out_le32(gpio_regs+0x20, (1 << MDC_PIN(bus)) | (1 << MDIO_PIN(bus))); bus 62 arch/powerpc/platforms/pasemi/gpio_mdio.c static inline void mdio_tristate(struct mii_bus *bus) bus 64 arch/powerpc/platforms/pasemi/gpio_mdio.c out_le32(gpio_regs+0x30, (1 << MDIO_PIN(bus))); bus 67 arch/powerpc/platforms/pasemi/gpio_mdio.c static inline int mdio_read(struct mii_bus *bus) bus 69 arch/powerpc/platforms/pasemi/gpio_mdio.c return !!(in_le32(gpio_regs+0x40) & (1 << MDIO_PIN(bus))); bus 72 arch/powerpc/platforms/pasemi/gpio_mdio.c static void clock_out(struct mii_bus *bus, int bit) bus 75 arch/powerpc/platforms/pasemi/gpio_mdio.c mdio_hi(bus); bus 77 arch/powerpc/platforms/pasemi/gpio_mdio.c mdio_lo(bus); bus 79 arch/powerpc/platforms/pasemi/gpio_mdio.c mdc_hi(bus); bus 81 arch/powerpc/platforms/pasemi/gpio_mdio.c mdc_lo(bus); bus 85 arch/powerpc/platforms/pasemi/gpio_mdio.c static void bitbang_pre(struct mii_bus *bus, int read, u8 addr, u8 reg) bus 90 arch/powerpc/platforms/pasemi/gpio_mdio.c mdio_active(bus); bus 92 arch/powerpc/platforms/pasemi/gpio_mdio.c clock_out(bus, 1); bus 96 arch/powerpc/platforms/pasemi/gpio_mdio.c clock_out(bus, 0); bus 97 arch/powerpc/platforms/pasemi/gpio_mdio.c clock_out(bus, 1); bus 99 arch/powerpc/platforms/pasemi/gpio_mdio.c clock_out(bus, read); bus 100 arch/powerpc/platforms/pasemi/gpio_mdio.c clock_out(bus, !read); bus 104 arch/powerpc/platforms/pasemi/gpio_mdio.c clock_out(bus, (addr & 0x10) != 0); bus 110 arch/powerpc/platforms/pasemi/gpio_mdio.c clock_out(bus, (reg & 0x10) != 0); bus 115 arch/powerpc/platforms/pasemi/gpio_mdio.c static int gpio_mdio_read(struct mii_bus *bus, int phy_id, int location) bus 122 arch/powerpc/platforms/pasemi/gpio_mdio.c bitbang_pre(bus, 1, addr, reg); bus 125 arch/powerpc/platforms/pasemi/gpio_mdio.c mdio_tristate(bus); bus 127 arch/powerpc/platforms/pasemi/gpio_mdio.c mdc_hi(bus); bus 129 arch/powerpc/platforms/pasemi/gpio_mdio.c mdc_lo(bus); bus 134 arch/powerpc/platforms/pasemi/gpio_mdio.c mdc_lo(bus); bus 136 arch/powerpc/platforms/pasemi/gpio_mdio.c mdc_hi(bus); bus 138 arch/powerpc/platforms/pasemi/gpio_mdio.c mdc_lo(bus); bus 141 arch/powerpc/platforms/pasemi/gpio_mdio.c rdreg |= mdio_read(bus); bus 144 arch/powerpc/platforms/pasemi/gpio_mdio.c mdc_hi(bus); bus 146 arch/powerpc/platforms/pasemi/gpio_mdio.c mdc_lo(bus); bus 154 arch/powerpc/platforms/pasemi/gpio_mdio.c static int gpio_mdio_write(struct mii_bus *bus, int phy_id, int location, u16 val) bus 162 arch/powerpc/platforms/pasemi/gpio_mdio.c bitbang_pre(bus, 0, addr, reg); bus 165 arch/powerpc/platforms/pasemi/gpio_mdio.c mdc_lo(bus); bus 166 arch/powerpc/platforms/pasemi/gpio_mdio.c mdio_hi(bus); bus 168 arch/powerpc/platforms/pasemi/gpio_mdio.c mdc_hi(bus); bus 170 arch/powerpc/platforms/pasemi/gpio_mdio.c mdc_lo(bus); bus 171 arch/powerpc/platforms/pasemi/gpio_mdio.c mdio_lo(bus); bus 173 arch/powerpc/platforms/pasemi/gpio_mdio.c mdc_hi(bus); bus 178 arch/powerpc/platforms/pasemi/gpio_mdio.c mdc_lo(bus); bus 180 arch/powerpc/platforms/pasemi/gpio_mdio.c mdio_hi(bus); bus 182 arch/powerpc/platforms/pasemi/gpio_mdio.c mdio_lo(bus); bus 184 arch/powerpc/platforms/pasemi/gpio_mdio.c mdc_hi(bus); bus 192 arch/powerpc/platforms/pasemi/gpio_mdio.c mdio_tristate(bus); bus 193 arch/powerpc/platforms/pasemi/gpio_mdio.c mdc_lo(bus); bus 195 arch/powerpc/platforms/pasemi/gpio_mdio.c mdc_hi(bus); bus 200 arch/powerpc/platforms/pasemi/gpio_mdio.c static int gpio_mdio_reset(struct mii_bus *bus) bus 265 arch/powerpc/platforms/pasemi/gpio_mdio.c struct mii_bus *bus = dev_get_drvdata(&dev->dev); bus 267 arch/powerpc/platforms/pasemi/gpio_mdio.c mdiobus_unregister(bus); bus 271 arch/powerpc/platforms/pasemi/gpio_mdio.c kfree(bus->priv); bus 272 arch/powerpc/platforms/pasemi/gpio_mdio.c bus->priv = NULL; bus 273 arch/powerpc/platforms/pasemi/gpio_mdio.c mdiobus_free(bus); bus 155 arch/powerpc/platforms/pasemi/iommu.c static void pci_dma_bus_setup_pasemi(struct pci_bus *bus) bus 157 arch/powerpc/platforms/pasemi/iommu.c pr_debug("pci_dma_bus_setup, bus %p, bus->self %p\n", bus, bus->self); bus 25 arch/powerpc/platforms/pasemi/pci.c #define PA_PXP_CFA(bus, devfn, off) (((bus) << 20) | ((devfn) << 12) | (off)) bus 27 arch/powerpc/platforms/pasemi/pci.c static inline int pa_pxp_offset_valid(u8 bus, u8 devfn, int offset) bus 33 arch/powerpc/platforms/pasemi/pci.c if (bus == 0 && devfn == 0) bus 40 arch/powerpc/platforms/pasemi/pci.c u8 bus, u8 devfn, int offset) bus 42 arch/powerpc/platforms/pasemi/pci.c return hose->cfg_data + PA_PXP_CFA(bus, devfn, offset); bus 57 arch/powerpc/platforms/pasemi/pci.c static int workaround_5945(struct pci_bus *bus, unsigned int devfn, bus 65 arch/powerpc/platforms/pasemi/pci.c if (!is_root_port(bus->number, devfn) || !is_5945_reg(offset)) bus 68 arch/powerpc/platforms/pasemi/pci.c hose = pci_bus_to_host(bus); bus 70 arch/powerpc/platforms/pasemi/pci.c addr = pa_pxp_cfg_addr(hose, bus->number, devfn, offset & ~0x3); bus 77 arch/powerpc/platforms/pasemi/pci.c dummy = pa_pxp_cfg_addr(hose, bus->number, devfn, 0x10); bus 105 arch/powerpc/platforms/pasemi/pci.c static void sb600_set_flag(int bus) bus 133 arch/powerpc/platforms/pasemi/pci.c if (bus == SB600_BUS) { bus 150 arch/powerpc/platforms/pasemi/pci.c static void sb600_set_flag(int bus) bus 155 arch/powerpc/platforms/pasemi/pci.c static int pa_pxp_read_config(struct pci_bus *bus, unsigned int devfn, bus 161 arch/powerpc/platforms/pasemi/pci.c hose = pci_bus_to_host(bus); bus 165 arch/powerpc/platforms/pasemi/pci.c if (!pa_pxp_offset_valid(bus->number, devfn, offset)) bus 168 arch/powerpc/platforms/pasemi/pci.c if (workaround_5945(bus, devfn, offset, len, val)) bus 171 arch/powerpc/platforms/pasemi/pci.c addr = pa_pxp_cfg_addr(hose, bus->number, devfn, offset); bus 173 arch/powerpc/platforms/pasemi/pci.c sb600_set_flag(bus->number); bus 194 arch/powerpc/platforms/pasemi/pci.c static int pa_pxp_write_config(struct pci_bus *bus, unsigned int devfn, bus 200 arch/powerpc/platforms/pasemi/pci.c hose = pci_bus_to_host(bus); bus 204 arch/powerpc/platforms/pasemi/pci.c if (!pa_pxp_offset_valid(bus->number, devfn, offset)) bus 207 arch/powerpc/platforms/pasemi/pci.c addr = pa_pxp_cfg_addr(hose, bus->number, devfn, offset); bus 209 arch/powerpc/platforms/pasemi/pci.c sb600_set_flag(bus->number); bus 294 arch/powerpc/platforms/pasemi/pci.c hose = pci_bus_to_host(dev->bus); bus 296 arch/powerpc/platforms/pasemi/pci.c return (void __iomem *)pa_pxp_cfg_addr(hose, dev->bus->number, dev->devfn, offset); bus 3001 arch/powerpc/platforms/powermac/feature.c if (pmac_agp_bridge->bus != dev->bus) bus 3011 arch/powerpc/platforms/powermac/feature.c if (pmac_agp_bridge->bus != dev->bus) bus 92 arch/powerpc/platforms/powermac/low_i2c.c int (*open)(struct pmac_i2c_bus *bus); bus 93 arch/powerpc/platforms/powermac/low_i2c.c void (*close)(struct pmac_i2c_bus *bus); bus 94 arch/powerpc/platforms/powermac/low_i2c.c int (*xfer)(struct pmac_i2c_bus *bus, u8 addrdir, int subsize, bus 383 arch/powerpc/platforms/powermac/low_i2c.c static int kw_i2c_open(struct pmac_i2c_bus *bus) bus 385 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_host_kw *host = bus->hostdata; bus 390 arch/powerpc/platforms/powermac/low_i2c.c static void kw_i2c_close(struct pmac_i2c_bus *bus) bus 392 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_host_kw *host = bus->hostdata; bus 396 arch/powerpc/platforms/powermac/low_i2c.c static int kw_i2c_xfer(struct pmac_i2c_bus *bus, u8 addrdir, int subsize, bus 399 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_host_kw *host = bus->hostdata; bus 401 arch/powerpc/platforms/powermac/low_i2c.c int use_irq = host->irq && !bus->polled; bus 404 arch/powerpc/platforms/powermac/low_i2c.c switch(bus->mode) { bus 426 arch/powerpc/platforms/powermac/low_i2c.c kw_write_reg(reg_mode, mode_reg | (bus->channel << 4)); bus 445 arch/powerpc/platforms/powermac/low_i2c.c host->polled = bus->polled; bus 569 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_bus *bus; bus 571 arch/powerpc/platforms/powermac/low_i2c.c bus = kzalloc(sizeof(struct pmac_i2c_bus), GFP_KERNEL); bus 572 arch/powerpc/platforms/powermac/low_i2c.c if (bus == NULL) bus 575 arch/powerpc/platforms/powermac/low_i2c.c bus->controller = of_node_get(controller); bus 576 arch/powerpc/platforms/powermac/low_i2c.c bus->busnode = of_node_get(busnode); bus 577 arch/powerpc/platforms/powermac/low_i2c.c bus->type = pmac_i2c_bus_keywest; bus 578 arch/powerpc/platforms/powermac/low_i2c.c bus->hostdata = host; bus 579 arch/powerpc/platforms/powermac/low_i2c.c bus->channel = channel; bus 580 arch/powerpc/platforms/powermac/low_i2c.c bus->mode = pmac_i2c_mode_std; bus 581 arch/powerpc/platforms/powermac/low_i2c.c bus->open = kw_i2c_open; bus 582 arch/powerpc/platforms/powermac/low_i2c.c bus->close = kw_i2c_close; bus 583 arch/powerpc/platforms/powermac/low_i2c.c bus->xfer = kw_i2c_xfer; bus 584 arch/powerpc/platforms/powermac/low_i2c.c mutex_init(&bus->mutex); bus 585 arch/powerpc/platforms/powermac/low_i2c.c lockdep_set_class(&bus->mutex, &bus->lock_key); bus 587 arch/powerpc/platforms/powermac/low_i2c.c bus->flags = pmac_i2c_multibus; bus 588 arch/powerpc/platforms/powermac/low_i2c.c list_add(&bus->link, &pmac_i2c_busses); bus 657 arch/powerpc/platforms/powermac/low_i2c.c u8 bus; bus 672 arch/powerpc/platforms/powermac/low_i2c.c static int pmu_i2c_xfer(struct pmac_i2c_bus *bus, u8 addrdir, int subsize, bus 675 arch/powerpc/platforms/powermac/low_i2c.c struct adb_request *req = bus->hostdata; bus 690 arch/powerpc/platforms/powermac/low_i2c.c hdr->bus = bus->channel; bus 693 arch/powerpc/platforms/powermac/low_i2c.c switch(bus->mode) { bus 707 arch/powerpc/platforms/powermac/low_i2c.c if (bus->mode == pmac_i2c_mode_stdsub) bus 745 arch/powerpc/platforms/powermac/low_i2c.c hdr->bus = PMU_I2C_BUS_STATUS; bus 778 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_bus *bus; bus 802 arch/powerpc/platforms/powermac/low_i2c.c bus = kzalloc(sz, GFP_KERNEL); bus 803 arch/powerpc/platforms/powermac/low_i2c.c if (bus == NULL) bus 806 arch/powerpc/platforms/powermac/low_i2c.c bus->controller = busnode; bus 807 arch/powerpc/platforms/powermac/low_i2c.c bus->busnode = busnode; bus 808 arch/powerpc/platforms/powermac/low_i2c.c bus->type = pmac_i2c_bus_pmu; bus 809 arch/powerpc/platforms/powermac/low_i2c.c bus->channel = channel; bus 810 arch/powerpc/platforms/powermac/low_i2c.c bus->mode = pmac_i2c_mode_std; bus 811 arch/powerpc/platforms/powermac/low_i2c.c bus->hostdata = bus + 1; bus 812 arch/powerpc/platforms/powermac/low_i2c.c bus->xfer = pmu_i2c_xfer; bus 813 arch/powerpc/platforms/powermac/low_i2c.c mutex_init(&bus->mutex); bus 814 arch/powerpc/platforms/powermac/low_i2c.c lockdep_set_class(&bus->mutex, &bus->lock_key); bus 815 arch/powerpc/platforms/powermac/low_i2c.c bus->flags = pmac_i2c_multibus; bus 816 arch/powerpc/platforms/powermac/low_i2c.c list_add(&bus->link, &pmac_i2c_busses); bus 838 arch/powerpc/platforms/powermac/low_i2c.c static int smu_i2c_xfer(struct pmac_i2c_bus *bus, u8 addrdir, int subsize, bus 841 arch/powerpc/platforms/powermac/low_i2c.c struct smu_i2c_cmd *cmd = bus->hostdata; bus 851 arch/powerpc/platforms/powermac/low_i2c.c cmd->info.bus = bus->channel; bus 855 arch/powerpc/platforms/powermac/low_i2c.c switch(bus->mode) { bus 869 arch/powerpc/platforms/powermac/low_i2c.c if (bus->mode == pmac_i2c_mode_stdsub) bus 897 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_bus *bus; bus 925 arch/powerpc/platforms/powermac/low_i2c.c bus = kzalloc(sz, GFP_KERNEL); bus 926 arch/powerpc/platforms/powermac/low_i2c.c if (bus == NULL) bus 929 arch/powerpc/platforms/powermac/low_i2c.c bus->controller = controller; bus 930 arch/powerpc/platforms/powermac/low_i2c.c bus->busnode = of_node_get(busnode); bus 931 arch/powerpc/platforms/powermac/low_i2c.c bus->type = pmac_i2c_bus_smu; bus 932 arch/powerpc/platforms/powermac/low_i2c.c bus->channel = *reg; bus 933 arch/powerpc/platforms/powermac/low_i2c.c bus->mode = pmac_i2c_mode_std; bus 934 arch/powerpc/platforms/powermac/low_i2c.c bus->hostdata = bus + 1; bus 935 arch/powerpc/platforms/powermac/low_i2c.c bus->xfer = smu_i2c_xfer; bus 936 arch/powerpc/platforms/powermac/low_i2c.c mutex_init(&bus->mutex); bus 937 arch/powerpc/platforms/powermac/low_i2c.c lockdep_set_class(&bus->mutex, &bus->lock_key); bus 938 arch/powerpc/platforms/powermac/low_i2c.c bus->flags = 0; bus 939 arch/powerpc/platforms/powermac/low_i2c.c list_add(&bus->link, &pmac_i2c_busses); bus 942 arch/powerpc/platforms/powermac/low_i2c.c bus->channel, busnode); bus 959 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_bus *bus; bus 962 arch/powerpc/platforms/powermac/low_i2c.c list_for_each_entry(bus, &pmac_i2c_busses, link) { bus 963 arch/powerpc/platforms/powermac/low_i2c.c if (p == bus->busnode) { bus 964 arch/powerpc/platforms/powermac/low_i2c.c if (prev && bus->flags & pmac_i2c_multibus) { bus 970 arch/powerpc/platforms/powermac/low_i2c.c if (((*reg) >> 8) != bus->channel) bus 975 arch/powerpc/platforms/powermac/low_i2c.c return bus; bus 997 arch/powerpc/platforms/powermac/low_i2c.c struct device_node *pmac_i2c_get_controller(struct pmac_i2c_bus *bus) bus 999 arch/powerpc/platforms/powermac/low_i2c.c return bus->controller; bus 1003 arch/powerpc/platforms/powermac/low_i2c.c struct device_node *pmac_i2c_get_bus_node(struct pmac_i2c_bus *bus) bus 1005 arch/powerpc/platforms/powermac/low_i2c.c return bus->busnode; bus 1009 arch/powerpc/platforms/powermac/low_i2c.c int pmac_i2c_get_type(struct pmac_i2c_bus *bus) bus 1011 arch/powerpc/platforms/powermac/low_i2c.c return bus->type; bus 1015 arch/powerpc/platforms/powermac/low_i2c.c int pmac_i2c_get_flags(struct pmac_i2c_bus *bus) bus 1017 arch/powerpc/platforms/powermac/low_i2c.c return bus->flags; bus 1021 arch/powerpc/platforms/powermac/low_i2c.c int pmac_i2c_get_channel(struct pmac_i2c_bus *bus) bus 1023 arch/powerpc/platforms/powermac/low_i2c.c return bus->channel; bus 1028 arch/powerpc/platforms/powermac/low_i2c.c struct i2c_adapter *pmac_i2c_get_adapter(struct pmac_i2c_bus *bus) bus 1030 arch/powerpc/platforms/powermac/low_i2c.c return &bus->adapter; bus 1036 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_bus *bus; bus 1038 arch/powerpc/platforms/powermac/low_i2c.c list_for_each_entry(bus, &pmac_i2c_busses, link) bus 1039 arch/powerpc/platforms/powermac/low_i2c.c if (&bus->adapter == adapter) bus 1040 arch/powerpc/platforms/powermac/low_i2c.c return bus; bus 1047 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_bus *bus = pmac_i2c_find_bus(dev); bus 1049 arch/powerpc/platforms/powermac/low_i2c.c if (bus == NULL) bus 1051 arch/powerpc/platforms/powermac/low_i2c.c return (&bus->adapter == adapter); bus 1057 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_bus *bus, *found = NULL; bus 1059 arch/powerpc/platforms/powermac/low_i2c.c list_for_each_entry(bus, &pmac_i2c_busses, link) { bus 1060 arch/powerpc/platforms/powermac/low_i2c.c if (np == bus->controller) { bus 1061 arch/powerpc/platforms/powermac/low_i2c.c found = bus; bus 1067 arch/powerpc/platforms/powermac/low_i2c.c return pmac_i2c_open(bus, 0); bus 1073 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_bus *bus, *found = NULL; bus 1075 arch/powerpc/platforms/powermac/low_i2c.c list_for_each_entry(bus, &pmac_i2c_busses, link) { bus 1076 arch/powerpc/platforms/powermac/low_i2c.c if (np == bus->controller) { bus 1077 arch/powerpc/platforms/powermac/low_i2c.c found = bus; bus 1083 arch/powerpc/platforms/powermac/low_i2c.c pmac_i2c_close(bus); bus 1089 arch/powerpc/platforms/powermac/low_i2c.c int pmac_i2c_open(struct pmac_i2c_bus *bus, int polled) bus 1093 arch/powerpc/platforms/powermac/low_i2c.c mutex_lock(&bus->mutex); bus 1094 arch/powerpc/platforms/powermac/low_i2c.c bus->polled = polled || pmac_i2c_force_poll; bus 1095 arch/powerpc/platforms/powermac/low_i2c.c bus->opened = 1; bus 1096 arch/powerpc/platforms/powermac/low_i2c.c bus->mode = pmac_i2c_mode_std; bus 1097 arch/powerpc/platforms/powermac/low_i2c.c if (bus->open && (rc = bus->open(bus)) != 0) { bus 1098 arch/powerpc/platforms/powermac/low_i2c.c bus->opened = 0; bus 1099 arch/powerpc/platforms/powermac/low_i2c.c mutex_unlock(&bus->mutex); bus 1106 arch/powerpc/platforms/powermac/low_i2c.c void pmac_i2c_close(struct pmac_i2c_bus *bus) bus 1108 arch/powerpc/platforms/powermac/low_i2c.c WARN_ON(!bus->opened); bus 1109 arch/powerpc/platforms/powermac/low_i2c.c if (bus->close) bus 1110 arch/powerpc/platforms/powermac/low_i2c.c bus->close(bus); bus 1111 arch/powerpc/platforms/powermac/low_i2c.c bus->opened = 0; bus 1112 arch/powerpc/platforms/powermac/low_i2c.c mutex_unlock(&bus->mutex); bus 1116 arch/powerpc/platforms/powermac/low_i2c.c int pmac_i2c_setmode(struct pmac_i2c_bus *bus, int mode) bus 1118 arch/powerpc/platforms/powermac/low_i2c.c WARN_ON(!bus->opened); bus 1125 arch/powerpc/platforms/powermac/low_i2c.c " bus %pOF !\n", mode, bus->busnode); bus 1128 arch/powerpc/platforms/powermac/low_i2c.c bus->mode = mode; bus 1134 arch/powerpc/platforms/powermac/low_i2c.c int pmac_i2c_xfer(struct pmac_i2c_bus *bus, u8 addrdir, int subsize, bus 1139 arch/powerpc/platforms/powermac/low_i2c.c WARN_ON(!bus->opened); bus 1142 arch/powerpc/platforms/powermac/low_i2c.c " %d bytes, bus %pOF\n", bus->channel, addrdir, bus->mode, subsize, bus 1143 arch/powerpc/platforms/powermac/low_i2c.c subaddr, len, bus->busnode); bus 1145 arch/powerpc/platforms/powermac/low_i2c.c rc = bus->xfer(bus, addrdir, subsize, subaddr, data, len); bus 1164 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_bus *bus; bus 1195 arch/powerpc/platforms/powermac/low_i2c.c list_for_each_entry(bus, &pmac_i2c_busses, link) { bus 1197 arch/powerpc/platforms/powermac/low_i2c.c (np = of_get_next_child(bus->busnode, np)) != NULL;) { bus 1200 arch/powerpc/platforms/powermac/low_i2c.c if (bus->flags & pmac_i2c_multibus) bus 1201 arch/powerpc/platforms/powermac/low_i2c.c if (bus != pmac_i2c_find_bus(np)) bus 1222 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_bus *bus; bus 1233 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_bus *bus; bus 1235 arch/powerpc/platforms/powermac/low_i2c.c bus = pmac_i2c_find_bus(func->node); bus 1236 arch/powerpc/platforms/powermac/low_i2c.c if (bus == NULL) { bus 1241 arch/powerpc/platforms/powermac/low_i2c.c if (pmac_i2c_open(bus, 0)) { bus 1254 arch/powerpc/platforms/powermac/low_i2c.c pmac_i2c_close(bus); bus 1257 arch/powerpc/platforms/powermac/low_i2c.c inst->bus = bus; bus 1269 arch/powerpc/platforms/powermac/low_i2c.c pmac_i2c_close(inst->bus); bus 1278 arch/powerpc/platforms/powermac/low_i2c.c return pmac_i2c_xfer(inst->bus, inst->addr | pmac_i2c_read, 0, 0, bus 1286 arch/powerpc/platforms/powermac/low_i2c.c return pmac_i2c_xfer(inst->bus, inst->addr | pmac_i2c_write, 0, 0, bus 1323 arch/powerpc/platforms/powermac/low_i2c.c return pmac_i2c_xfer(inst->bus, inst->addr | pmac_i2c_write, 0, 0, bus 1332 arch/powerpc/platforms/powermac/low_i2c.c return pmac_i2c_xfer(inst->bus, inst->addr | pmac_i2c_read, 1, subaddr, bus 1341 arch/powerpc/platforms/powermac/low_i2c.c return pmac_i2c_xfer(inst->bus, inst->addr | pmac_i2c_write, 1, bus 1349 arch/powerpc/platforms/powermac/low_i2c.c return pmac_i2c_setmode(inst->bus, mode); bus 1364 arch/powerpc/platforms/powermac/low_i2c.c return pmac_i2c_xfer(inst->bus, inst->addr | pmac_i2c_write, 1, bus 1487 arch/powerpc/platforms/powermac/low_i2c.c struct pmac_i2c_bus *bus; bus 1497 arch/powerpc/platforms/powermac/low_i2c.c list_for_each_entry(bus, &pmac_i2c_busses, link) { bus 1498 arch/powerpc/platforms/powermac/low_i2c.c bus->platform_dev = bus 1500 arch/powerpc/platforms/powermac/low_i2c.c if (bus->platform_dev == NULL) bus 1502 arch/powerpc/platforms/powermac/low_i2c.c bus->platform_dev->dev.platform_data = bus; bus 1503 arch/powerpc/platforms/powermac/low_i2c.c bus->platform_dev->dev.of_node = bus->busnode; bus 1504 arch/powerpc/platforms/powermac/low_i2c.c platform_device_add(bus->platform_dev); bus 128 arch/powerpc/platforms/powermac/pci.c #define MACRISC_CFA1(bus, devfn, off) \ bus 129 arch/powerpc/platforms/powermac/pci.c ((((unsigned int)(bus)) << 16) \ bus 134 arch/powerpc/platforms/powermac/pci.c static void __iomem *macrisc_cfg_map_bus(struct pci_bus *bus, bus 141 arch/powerpc/platforms/powermac/pci.c hose = pci_bus_to_host(bus); bus 145 arch/powerpc/platforms/powermac/pci.c if (bus->number == hose->first_busno) { bus 150 arch/powerpc/platforms/powermac/pci.c caddr = MACRISC_CFA1(bus->number, dev_fn, offset); bus 172 arch/powerpc/platforms/powermac/pci.c static void __iomem *chaos_map_bus(struct pci_bus *bus, unsigned int devfn, bus 180 arch/powerpc/platforms/powermac/pci.c np = of_pci_find_child_device(bus->dev.of_node, devfn); bus 193 arch/powerpc/platforms/powermac/pci.c return macrisc_cfg_map_bus(bus, devfn, offset); bus 229 arch/powerpc/platforms/powermac/pci.c struct pci_bus *bus, unsigned int devfn) bus 239 arch/powerpc/platforms/powermac/pci.c if (bus->self) bus 240 arch/powerpc/platforms/powermac/pci.c busdn = pci_device_to_OF_node(bus->self); bus 264 arch/powerpc/platforms/powermac/pci.c #define U3_HT_CFA1(bus, devfn, off) \ bus 266 arch/powerpc/platforms/powermac/pci.c + (((unsigned int)bus) << 16) \ bus 269 arch/powerpc/platforms/powermac/pci.c static void __iomem *u3_ht_cfg_access(struct pci_controller *hose, u8 bus, bus 273 arch/powerpc/platforms/powermac/pci.c if (bus == hose->first_busno) { bus 279 arch/powerpc/platforms/powermac/pci.c return hose->cfg_data + U3_HT_CFA1(bus, devfn, offset); bus 282 arch/powerpc/platforms/powermac/pci.c static int u3_ht_read_config(struct pci_bus *bus, unsigned int devfn, bus 289 arch/powerpc/platforms/powermac/pci.c hose = pci_bus_to_host(bus); bus 294 arch/powerpc/platforms/powermac/pci.c addr = u3_ht_cfg_access(hose, bus->number, devfn, offset, &swap); bus 298 arch/powerpc/platforms/powermac/pci.c switch (u3_ht_skip_device(hose, bus, devfn)) { bus 333 arch/powerpc/platforms/powermac/pci.c static int u3_ht_write_config(struct pci_bus *bus, unsigned int devfn, bus 340 arch/powerpc/platforms/powermac/pci.c hose = pci_bus_to_host(bus); bus 345 arch/powerpc/platforms/powermac/pci.c addr = u3_ht_cfg_access(hose, bus->number, devfn, offset, &swap); bus 349 arch/powerpc/platforms/powermac/pci.c switch (u3_ht_skip_device(hose, bus, devfn)) { bus 388 arch/powerpc/platforms/powermac/pci.c #define U4_PCIE_CFA1(bus, devfn, off) \ bus 389 arch/powerpc/platforms/powermac/pci.c ((((unsigned int)(bus)) << 16) \ bus 395 arch/powerpc/platforms/powermac/pci.c static void __iomem *u4_pcie_cfg_map_bus(struct pci_bus *bus, bus 405 arch/powerpc/platforms/powermac/pci.c hose = pci_bus_to_host(bus); bus 409 arch/powerpc/platforms/powermac/pci.c if (bus->number == hose->first_busno) { bus 412 arch/powerpc/platforms/powermac/pci.c caddr = U4_PCIE_CFA1(bus->number, dev_fn, offset); bus 440 arch/powerpc/platforms/powermac/pci.c dev->dev.of_node = pcibios_get_phb_of_node(dev->bus); bus 494 arch/powerpc/platforms/powermac/pci.c u8 bus, devfn; bus 502 arch/powerpc/platforms/powermac/pci.c if (pci_device_from_OF_node(p2pbridge, &bus, &devfn) < 0) { bus 514 arch/powerpc/platforms/powermac/pci.c if (early_read_config_word(hose, bus, devfn, bus 521 arch/powerpc/platforms/powermac/pci.c early_write_config_word(hose, bus, devfn, PCI_BRIDGE_CONTROL, val); bus 529 arch/powerpc/platforms/powermac/pci.c unsigned char bus, devfn; bus 538 arch/powerpc/platforms/powermac/pci.c if (pci_device_from_OF_node(np, &bus, &devfn) == 0) { bus 546 arch/powerpc/platforms/powermac/pci.c early_read_config_word(hose, bus, devfn, PCI_COMMAND, &cmd); bus 549 arch/powerpc/platforms/powermac/pci.c early_write_config_word(hose, bus, devfn, PCI_COMMAND, cmd); bus 569 arch/powerpc/platforms/powermac/pci.c u8 bus, devfn; bus 585 arch/powerpc/platforms/powermac/pci.c bus = (prop[0] >> 16) & 0xff; bus 591 arch/powerpc/platforms/powermac/pci.c early_read_config_dword(hose, bus, devfn, 0xe4, &data); bus 596 arch/powerpc/platforms/powermac/pci.c early_write_config_dword(hose, bus, devfn, 0xe4, data); bus 878 arch/powerpc/platforms/powermac/pci.c struct pci_controller *hose = pci_bus_to_host(bridge->bus); bus 1191 arch/powerpc/platforms/powermac/pci.c struct pci_controller *host = pci_bus_to_host(dev->bus); bus 1233 arch/powerpc/platforms/powermac/pci.c static int pmac_pci_probe_mode(struct pci_bus *bus) bus 1235 arch/powerpc/platforms/powermac/pci.c struct device_node *node = pci_bus_to_OF_node(bus); bus 1241 arch/powerpc/platforms/powermac/pci.c if (bus->self == NULL && (of_device_is_compatible(node, "u3-agp") || bus 453 arch/powerpc/platforms/powernv/eeh-powernv.c edev->pe->bus = pci_find_bus(hose->global_number, bus 455 arch/powerpc/platforms/powernv/eeh-powernv.c if (edev->pe->bus) bus 848 arch/powerpc/platforms/powernv/eeh-powernv.c struct pci_dn *pdn = pci_get_pdn_by_devfn(dev->bus, dev->devfn); bus 854 arch/powerpc/platforms/powernv/eeh-powernv.c __func__, pci_domain_nr(dev->bus), bus 855 arch/powerpc/platforms/powernv/eeh-powernv.c dev->bus->number, option); bus 899 arch/powerpc/platforms/powernv/eeh-powernv.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); bus 903 arch/powerpc/platforms/powernv/eeh-powernv.c (pdev->bus->number << 8) | pdev->devfn); bus 912 arch/powerpc/platforms/powernv/eeh-powernv.c __func__, pci_domain_nr(pdev->bus), bus 913 arch/powerpc/platforms/powernv/eeh-powernv.c pdev->bus->number, option); bus 943 arch/powerpc/platforms/powernv/eeh-powernv.c if (pci_is_root_bus(dev->bus)) { bus 944 arch/powerpc/platforms/powernv/eeh-powernv.c hose = pci_bus_to_host(dev->bus); bus 1082 arch/powerpc/platforms/powernv/eeh-powernv.c struct pci_bus *bus; bus 1126 arch/powerpc/platforms/powernv/eeh-powernv.c bus = eeh_pe_bus_get(pe); bus 1127 arch/powerpc/platforms/powernv/eeh-powernv.c if (!bus) { bus 1133 arch/powerpc/platforms/powernv/eeh-powernv.c if (pci_is_root_bus(bus)) bus 1156 arch/powerpc/platforms/powernv/eeh-powernv.c rc = pci_bus_error_reset(bus->self); bus 1162 arch/powerpc/platforms/powernv/eeh-powernv.c if (pci_is_root_bus(bus->parent)) bus 1164 arch/powerpc/platforms/powernv/eeh-powernv.c return pnv_eeh_bridge_reset(bus->self, option); bus 27 arch/powerpc/platforms/powernv/npu-dma.c pdev = pci_get_domain_bus_and_slot(pci_domain_nr(pdn->phb->bus), bus 114 arch/powerpc/platforms/powernv/npu-dma.c hose = pci_bus_to_host(pdev->bus); bus 446 arch/powerpc/platforms/powernv/npu-dma.c hose = pci_bus_to_host(npdev->bus); bus 513 arch/powerpc/platforms/powernv/npu-dma.c list_for_each_entry(npdev, &pe->phb->hose->bus->devices, bus_list) { bus 562 arch/powerpc/platforms/powernv/npu-dma.c hose = pci_bus_to_host(npdev->bus); bus 609 arch/powerpc/platforms/powernv/npu-dma.c hose = pci_bus_to_host(npdev->bus); bus 29 arch/powerpc/platforms/powernv/ocxl.c int bus; bus 144 arch/powerpc/platforms/powernv/ocxl.c if (link->domain == pci_domain_nr(dev->bus) && bus 145 arch/powerpc/platforms/powernv/ocxl.c link->bus == dev->bus->number && bus 155 arch/powerpc/platforms/powernv/ocxl.c link->domain = pci_domain_nr(dev->bus); bus 156 arch/powerpc/platforms/powernv/ocxl.c link->bus = dev->bus->number; bus 164 arch/powerpc/platforms/powernv/ocxl.c struct pci_controller *hose = pci_bus_to_host(dev->bus); bus 244 arch/powerpc/platforms/powernv/ocxl.c link->domain, link->bus, link->dev, i, bus 355 arch/powerpc/platforms/powernv/ocxl.c struct pci_controller *hose = pci_bus_to_host(dev->bus); bus 442 arch/powerpc/platforms/powernv/ocxl.c struct pci_controller *hose = pci_bus_to_host(dev->bus); bus 452 arch/powerpc/platforms/powernv/ocxl.c bdfn = (dev->bus->number << 8) | dev->devfn; bus 14 arch/powerpc/platforms/powernv/pci-cxl.c struct pci_controller *hose = pci_bus_to_host(dev->bus); bus 40 arch/powerpc/platforms/powernv/pci-cxl.c struct pci_controller *hose = pci_bus_to_host(dev->bus); bus 55 arch/powerpc/platforms/powernv/pci-cxl.c struct pci_controller *hose = pci_bus_to_host(dev->bus); bus 65 arch/powerpc/platforms/powernv/pci-cxl.c struct pci_controller *hose = pci_bus_to_host(dev->bus); bus 85 arch/powerpc/platforms/powernv/pci-cxl.c struct pci_controller *hose = pci_bus_to_host(dev->bus); bus 121 arch/powerpc/platforms/powernv/pci-cxl.c struct pci_controller *hose = pci_bus_to_host(dev->bus); bus 131 arch/powerpc/platforms/powernv/pci-cxl.c struct pci_controller *hose = pci_bus_to_host(dev->bus); bus 75 arch/powerpc/platforms/powernv/pci-ioda.c pci_domain_nr(pe->parent_dev->bus), bus 254 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); bus 336 arch/powerpc/platforms/powernv/pci-ioda.c static void pnv_ioda_reserve_m64_pe(struct pci_bus *bus, bus 342 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry(pdev, &bus->devices, bus_list) { bus 351 arch/powerpc/platforms/powernv/pci-ioda.c static struct pnv_ioda_pe *pnv_ioda_pick_m64_pe(struct pci_bus *bus, bool all) bus 353 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(bus); bus 360 arch/powerpc/platforms/powernv/pci-ioda.c if (pci_is_root_bus(bus)) bus 373 arch/powerpc/platforms/powernv/pci-ioda.c pnv_ioda_reserve_m64_pe(bus, pe_alloc, all); bus 665 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(dev->bus); bus 758 arch/powerpc/platforms/powernv/pci-ioda.c pdev = pe->pdev->bus->self; bus 774 arch/powerpc/platforms/powernv/pci-ioda.c pdev = pdev->bus->self; bus 819 arch/powerpc/platforms/powernv/pci-ioda.c parent = pe->pdev->bus->self; bus 838 arch/powerpc/platforms/powernv/pci-ioda.c parent = parent->bus->self; bus 901 arch/powerpc/platforms/powernv/pci-ioda.c parent = pe->pdev->bus->self; bus 1045 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(dev->bus); bus 1078 arch/powerpc/platforms/powernv/pci-ioda.c pe->rid = dev->bus->number << 8 | pdn->devfn; bus 1097 arch/powerpc/platforms/powernv/pci-ioda.c static void pnv_ioda_setup_same_PE(struct pci_bus *bus, struct pnv_ioda_pe *pe) bus 1101 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 1131 arch/powerpc/platforms/powernv/pci-ioda.c static struct pnv_ioda_pe *pnv_ioda_setup_bus_PE(struct pci_bus *bus, bool all) bus 1133 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(bus); bus 1142 arch/powerpc/platforms/powernv/pci-ioda.c pe_num = phb->ioda.pe_rmap[bus->number << 8]; bus 1145 arch/powerpc/platforms/powernv/pci-ioda.c pnv_ioda_setup_same_PE(bus, pe); bus 1150 arch/powerpc/platforms/powernv/pci-ioda.c if (pci_is_root_bus(bus) && bus 1156 arch/powerpc/platforms/powernv/pci-ioda.c pe = pnv_ioda_pick_m64_pe(bus, all); bus 1164 arch/powerpc/platforms/powernv/pci-ioda.c __func__, pci_domain_nr(bus), bus->number); bus 1169 arch/powerpc/platforms/powernv/pci-ioda.c pe->pbus = bus; bus 1172 arch/powerpc/platforms/powernv/pci-ioda.c pe->rid = bus->busn_res.start << 8; bus 1176 arch/powerpc/platforms/powernv/pci-ioda.c &bus->busn_res.start, &bus->busn_res.end, bus 1180 arch/powerpc/platforms/powernv/pci-ioda.c &bus->busn_res.start, pe->pe_number); bus 1190 arch/powerpc/platforms/powernv/pci-ioda.c pnv_ioda_setup_same_PE(bus, pe); bus 1205 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(npu_pdev->bus); bus 1233 arch/powerpc/platforms/powernv/pci-ioda.c rid = npu_pdev->bus->number << 8 | npu_pdn->devfn; bus 1259 arch/powerpc/platforms/powernv/pci-ioda.c static void pnv_ioda_setup_npu_PEs(struct pci_bus *bus) bus 1263 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry(pdev, &bus->devices, bus_list) bus 1271 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_bus *bus; bus 1280 arch/powerpc/platforms/powernv/pci-ioda.c pnv_ioda_setup_npu_PEs(hose->bus); bus 1285 arch/powerpc/platforms/powernv/pci-ioda.c bus = hose->bus; bus 1286 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry(pdev, &bus->devices, bus_list) bus 1303 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_bus *bus; bus 1310 arch/powerpc/platforms/powernv/pci-ioda.c bus = pdev->bus; bus 1311 arch/powerpc/platforms/powernv/pci-ioda.c hose = pci_bus_to_host(bus); bus 1336 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_bus *bus; bus 1349 arch/powerpc/platforms/powernv/pci-ioda.c bus = pdev->bus; bus 1350 arch/powerpc/platforms/powernv/pci-ioda.c hose = pci_bus_to_host(bus); bus 1462 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_bus *bus; bus 1468 arch/powerpc/platforms/powernv/pci-ioda.c bus = pdev->bus; bus 1469 arch/powerpc/platforms/powernv/pci-ioda.c hose = pci_bus_to_host(bus); bus 1495 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_bus *bus; bus 1502 arch/powerpc/platforms/powernv/pci-ioda.c bus = pdev->bus; bus 1503 arch/powerpc/platforms/powernv/pci-ioda.c hose = pci_bus_to_host(bus); bus 1538 arch/powerpc/platforms/powernv/pci-ioda.c struct iommu_table_group *table_group, struct pci_bus *bus); bus 1543 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_bus *bus; bus 1551 arch/powerpc/platforms/powernv/pci-ioda.c bus = pdev->bus; bus 1552 arch/powerpc/platforms/powernv/pci-ioda.c hose = pci_bus_to_host(bus); bus 1580 arch/powerpc/platforms/powernv/pci-ioda.c hose->global_number, pdev->bus->number, bus 1615 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_bus *bus; bus 1623 arch/powerpc/platforms/powernv/pci-ioda.c bus = pdev->bus; bus 1624 arch/powerpc/platforms/powernv/pci-ioda.c hose = pci_bus_to_host(bus); bus 1843 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); bus 1881 arch/powerpc/platforms/powernv/pci-ioda.c static void pnv_ioda_setup_bus_dma(struct pnv_ioda_pe *pe, struct pci_bus *bus) bus 1885 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 2189 arch/powerpc/platforms/powernv/pci-ioda.c pci_walk_bus(phb->hose->bus, pnv_pci_ioda_dev_dma_weight, bus 2583 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_bus *bus) bus 2587 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 2597 arch/powerpc/platforms/powernv/pci-ioda.c struct iommu_table_group *table_group, struct pci_bus *bus) bus 2603 arch/powerpc/platforms/powernv/pci-ioda.c if ((pe->flags & (PNV_IODA_PE_BUS | PNV_IODA_PE_BUS_ALL)) || bus) bus 2605 arch/powerpc/platforms/powernv/pci-ioda.c bus); bus 2894 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); bus 3153 arch/powerpc/platforms/powernv/pci-ioda.c static void pnv_pci_enable_bridge(struct pci_bus *bus) bus 3155 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_dev *dev = bus->self; bus 3159 arch/powerpc/platforms/powernv/pci-ioda.c if (list_empty(&bus->devices)) bus 3176 arch/powerpc/platforms/powernv/pci-ioda.c list_for_each_entry(child, &bus->children, node) bus 3185 arch/powerpc/platforms/powernv/pci-ioda.c pnv_pci_enable_bridge(hose->bus); bus 3213 arch/powerpc/platforms/powernv/pci-ioda.c static resource_size_t pnv_pci_window_alignment(struct pci_bus *bus, bus 3217 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(bus); bus 3221 arch/powerpc/platforms/powernv/pci-ioda.c bridge = bus->self; bus 3229 arch/powerpc/platforms/powernv/pci-ioda.c bridge = bridge->bus->self; bus 3253 arch/powerpc/platforms/powernv/pci-ioda.c static void pnv_pci_fixup_bridge_resources(struct pci_bus *bus, bus 3256 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(bus); bus 3258 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_dev *bridge = bus->self; bus 3264 arch/powerpc/platforms/powernv/pci-ioda.c if (!pci_is_root_bus(bridge->bus) && bus 3265 arch/powerpc/platforms/powernv/pci-ioda.c !pci_is_root_bus(bridge->bus->self->bus)) bus 3303 arch/powerpc/platforms/powernv/pci-ioda.c static void pnv_pci_setup_bridge(struct pci_bus *bus, unsigned long type) bus 3305 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(bus); bus 3307 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_dev *bridge = bus->self; bus 3312 arch/powerpc/platforms/powernv/pci-ioda.c pnv_pci_fixup_bridge_resources(bus, type); bus 3316 arch/powerpc/platforms/powernv/pci-ioda.c pe = pnv_ioda_setup_bus_PE(phb->hose->bus, false); bus 3324 arch/powerpc/platforms/powernv/pci-ioda.c if (list_empty(&bus->devices)) bus 3328 arch/powerpc/platforms/powernv/pci-ioda.c pnv_ioda_reserve_m64_pe(bus, NULL, all); bus 3335 arch/powerpc/platforms/powernv/pci-ioda.c pe = pnv_ioda_setup_bus_PE(bus, all); bus 3362 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); bus 3399 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(dev->bus); bus 3585 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); bus 3948 arch/powerpc/platforms/powernv/pci-ioda.c struct pci_controller *hose = pci_bus_to_host(dev->bus); bus 161 arch/powerpc/platforms/powernv/pci.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); bus 210 arch/powerpc/platforms/powernv/pci.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); bus 742 arch/powerpc/platforms/powernv/pci.c static int pnv_pci_read_config(struct pci_bus *bus, bus 751 arch/powerpc/platforms/powernv/pci.c pdn = pci_get_pdn_by_devfn(bus, devfn); bus 771 arch/powerpc/platforms/powernv/pci.c static int pnv_pci_write_config(struct pci_bus *bus, bus 779 arch/powerpc/platforms/powernv/pci.c pdn = pci_get_pdn_by_devfn(bus, devfn); bus 815 arch/powerpc/platforms/powernv/pci.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); bus 822 arch/powerpc/platforms/powernv/pci.c void pnv_pci_dma_bus_setup(struct pci_bus *bus) bus 824 arch/powerpc/platforms/powernv/pci.c struct pci_controller *hose = bus->sysdata; bus 835 arch/powerpc/platforms/powernv/pci.c if (bus->number == ((pe->rid >> 8) & 0xFF)) { bus 836 arch/powerpc/platforms/powernv/pci.c pe->pbus = bus; bus 844 arch/powerpc/platforms/powernv/pci.c struct pci_controller *hose = pci_bus_to_host(dev->bus); bus 863 arch/powerpc/platforms/powernv/pci.c hose = pci_bus_to_host(dev->bus); bus 993 arch/powerpc/platforms/powernv/pci.c hose = pci_bus_to_host(pdev->bus); bus 193 arch/powerpc/platforms/powernv/pci.h extern void pnv_pci_dma_bus_setup(struct pci_bus *bus); bus 741 arch/powerpc/platforms/ps3/system-bus.c dev->core.bus = &ps3_system_bus_type; bus 784 arch/powerpc/platforms/ps3/system-bus.c drv->core.bus = &ps3_system_bus_type; bus 432 arch/powerpc/platforms/pseries/cmm.c dev->bus = &cmm_subsys; bus 713 arch/powerpc/platforms/pseries/eeh_pseries.c int cur_vfs = 0, rc = 0, vf_index, bus, devfn; bus 734 arch/powerpc/platforms/pseries/eeh_pseries.c bus = pci_iov_virtfn_bus(edev->pdev, bus 738 arch/powerpc/platforms/pseries/eeh_pseries.c if (pdn->busno != bus || bus 170 arch/powerpc/platforms/pseries/ibmebus.c dev->dev.bus = &ibmebus_bus_type; bus 216 arch/powerpc/platforms/pseries/ibmebus.c drv->driver.bus = &ibmebus_bus_type; bus 264 arch/powerpc/platforms/pseries/ibmebus.c static ssize_t probe_store(struct bus_type *bus, const char *buf, size_t count) bus 302 arch/powerpc/platforms/pseries/ibmebus.c static ssize_t remove_store(struct bus_type *bus, const char *buf, size_t count) bus 503 arch/powerpc/platforms/pseries/iommu.c tbl->it_busno = phb->bus->number; bus 540 arch/powerpc/platforms/pseries/iommu.c tbl->it_busno = phb->bus->number; bus 558 arch/powerpc/platforms/pseries/iommu.c static void pci_dma_bus_setup_pSeries(struct pci_bus *bus) bus 567 arch/powerpc/platforms/pseries/iommu.c dn = pci_bus_to_OF_node(bus); bus 571 arch/powerpc/platforms/pseries/iommu.c if (bus->self) { bus 674 arch/powerpc/platforms/pseries/iommu.c static void pci_dma_bus_setup_pSeriesLP(struct pci_bus *bus) bus 681 arch/powerpc/platforms/pseries/iommu.c dn = pci_bus_to_OF_node(bus); bus 711 arch/powerpc/platforms/pseries/iommu.c pci_domain_nr(bus), 0); bus 730 arch/powerpc/platforms/pseries/iommu.c if (!dev->bus->self) { bus 1190 arch/powerpc/platforms/pseries/iommu.c pci_domain_nr(pci->phb->bus), 0); bus 423 arch/powerpc/platforms/pseries/msi.c if (pdev->bus->max_bus_speed != PCIE_SPEED_5_0GT) bus 37 arch/powerpc/platforms/pseries/papr_scm.c struct nvdimm_bus *bus; bus 342 arch/powerpc/platforms/pseries/papr_scm.c p->bus = nvdimm_bus_register(NULL, &p->bus_desc); bus 343 arch/powerpc/platforms/pseries/papr_scm.c if (!p->bus) { bus 352 arch/powerpc/platforms/pseries/papr_scm.c p->nvdimm = nvdimm_create(p->bus, p, papr_scm_dimm_groups, bus 359 arch/powerpc/platforms/pseries/papr_scm.c if (nvdimm_bus_check_dimm_count(p->bus, 1)) bus 384 arch/powerpc/platforms/pseries/papr_scm.c p->region = nvdimm_volatile_region_create(p->bus, &ndr_desc); bus 386 arch/powerpc/platforms/pseries/papr_scm.c p->region = nvdimm_pmem_region_create(p->bus, &ndr_desc); bus 398 arch/powerpc/platforms/pseries/papr_scm.c err: nvdimm_bus_unregister(p->bus); bus 500 arch/powerpc/platforms/pseries/papr_scm.c nvdimm_bus_unregister(p->bus); bus 98 arch/powerpc/platforms/pseries/pci.c pci_domain_nr(pdev->bus), bus 99 arch/powerpc/platforms/pseries/pci.c pdev->bus->number, bus 282 arch/powerpc/platforms/pseries/pci.c && dev->bus->number == 0 && dev->devfn == 0x81) bus 296 arch/powerpc/platforms/pseries/pci.c struct pci_bus *bus; bus 300 arch/powerpc/platforms/pseries/pci.c bus = bridge->bus; bus 304 arch/powerpc/platforms/pseries/pci.c (void *) pci_bus_to_host(bus)); bus 306 arch/powerpc/platforms/pseries/pci.c dn = pcibios_get_phb_of_node(bus); bus 327 arch/powerpc/platforms/pseries/pci.c bus->max_bus_speed = PCIE_SPEED_2_5GT; bus 330 arch/powerpc/platforms/pseries/pci.c bus->max_bus_speed = PCIE_SPEED_5_0GT; bus 333 arch/powerpc/platforms/pseries/pci.c bus->max_bus_speed = PCIE_SPEED_8_0GT; bus 336 arch/powerpc/platforms/pseries/pci.c bus->max_bus_speed = PCI_SPEED_UNKNOWN; bus 342 arch/powerpc/platforms/pseries/pci.c bus->cur_bus_speed = PCIE_SPEED_2_5GT; bus 345 arch/powerpc/platforms/pseries/pci.c bus->cur_bus_speed = PCIE_SPEED_5_0GT; bus 348 arch/powerpc/platforms/pseries/pci.c bus->cur_bus_speed = PCIE_SPEED_8_0GT; bus 351 arch/powerpc/platforms/pseries/pci.c bus->cur_bus_speed = PCI_SPEED_UNKNOWN; bus 59 arch/powerpc/platforms/pseries/pci_dlpar.c pcibios_finish_adding_to_bus(phb->bus); bus 68 arch/powerpc/platforms/pseries/pci_dlpar.c struct pci_bus *b = phb->bus; bus 93 arch/powerpc/platforms/pseries/pci_dlpar.c phb->bus = NULL; bus 998 arch/powerpc/platforms/pseries/setup.c static int pSeries_pci_probe_mode(struct pci_bus *bus) bus 232 arch/powerpc/platforms/pseries/suspend.c dev->bus = &suspend_subsys; bus 39 arch/powerpc/platforms/pseries/vio.c .dev.bus = &vio_bus_type, bus 1291 arch/powerpc/platforms/pseries/vio.c viodrv->driver.bus = &vio_bus_type; bus 1418 arch/powerpc/platforms/pseries/vio.c viodev->dev.bus = &vio_bus_type; bus 355 arch/powerpc/sysdev/dart_iommu.c static void pci_dma_bus_setup_dart(struct pci_bus *bus) bus 146 arch/powerpc/sysdev/fsl_msi.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); bus 180 arch/powerpc/sysdev/fsl_msi.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); bus 90 arch/powerpc/sysdev/fsl_pci.c static int fsl_indirect_read_config(struct pci_bus *bus, unsigned int devfn, bus 93 arch/powerpc/sysdev/fsl_pci.c struct pci_controller *hose = pci_bus_to_host(bus); bus 100 arch/powerpc/sysdev/fsl_pci.c return indirect_read_config(bus, devfn, offset, len, val); bus 116 arch/powerpc/sysdev/fsl_pci.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); bus 479 arch/powerpc/sysdev/fsl_pci.c void fsl_pcibios_fixup_bus(struct pci_bus *bus) bus 481 arch/powerpc/sysdev/fsl_pci.c struct pci_controller *hose = pci_bus_to_host(bus); bus 496 arch/powerpc/sysdev/fsl_pci.c if (bus->parent == hose->bus && (is_pcie || no_link)) { bus 498 arch/powerpc/sysdev/fsl_pci.c struct resource *res = bus->resource[i]; bus 678 arch/powerpc/sysdev/fsl_pci.c static int mpc83xx_pcie_exclude_device(struct pci_bus *bus, unsigned int devfn) bus 680 arch/powerpc/sysdev/fsl_pci.c struct pci_controller *hose = pci_bus_to_host(bus); bus 689 arch/powerpc/sysdev/fsl_pci.c if (bus->number == hose->first_busno || bus 690 arch/powerpc/sysdev/fsl_pci.c bus->primary == hose->first_busno) { bus 696 arch/powerpc/sysdev/fsl_pci.c if (ppc_md.pci_exclude_device(hose, bus->number, devfn)) bus 703 arch/powerpc/sysdev/fsl_pci.c static void __iomem *mpc83xx_pcie_remap_cfg(struct pci_bus *bus, bus 706 arch/powerpc/sysdev/fsl_pci.c struct pci_controller *hose = pci_bus_to_host(bus); bus 708 arch/powerpc/sysdev/fsl_pci.c u32 dev_base = bus->number << 24 | devfn << 16; bus 711 arch/powerpc/sysdev/fsl_pci.c ret = mpc83xx_pcie_exclude_device(bus, devfn); bus 718 arch/powerpc/sysdev/fsl_pci.c if (bus->number == hose->first_busno) bus 731 arch/powerpc/sysdev/fsl_pci.c static int mpc83xx_pcie_write_config(struct pci_bus *bus, unsigned int devfn, bus 734 arch/powerpc/sysdev/fsl_pci.c struct pci_controller *hose = pci_bus_to_host(bus); bus 737 arch/powerpc/sysdev/fsl_pci.c if (offset == PCI_PRIMARY_BUS && bus->number == hose->first_busno) bus 740 arch/powerpc/sysdev/fsl_pci.c return pci_generic_config_write(bus, devfn, offset, len, val); bus 915 arch/powerpc/sysdev/fsl_pci.c pci_bus_read_config_dword(hose->bus, bus 1168 arch/powerpc/sysdev/fsl_pci.c dev = list_first_entry(&hose->bus->devices, typeof(*dev), bus_list); bus 115 arch/powerpc/sysdev/fsl_pci.h extern void fsl_pcibios_fixup_bus(struct pci_bus *bus); bus 76 arch/powerpc/sysdev/indirect_pci.c int indirect_read_config(struct pci_bus *bus, unsigned int devfn, bus 79 arch/powerpc/sysdev/indirect_pci.c struct pci_controller *hose = pci_bus_to_host(bus); bus 81 arch/powerpc/sysdev/indirect_pci.c return __indirect_read_config(hose, bus->number, devfn, offset, len, bus 85 arch/powerpc/sysdev/indirect_pci.c int indirect_write_config(struct pci_bus *bus, unsigned int devfn, bus 88 arch/powerpc/sysdev/indirect_pci.c struct pci_controller *hose = pci_bus_to_host(bus); bus 94 arch/powerpc/sysdev/indirect_pci.c if (bus->number != hose->first_busno) bus 101 arch/powerpc/sysdev/indirect_pci.c if (ppc_md.pci_exclude_device(hose, bus->number, devfn)) bus 105 arch/powerpc/sysdev/indirect_pci.c if (bus->number != hose->first_busno) bus 108 arch/powerpc/sysdev/indirect_pci.c bus_no = (bus->number == hose->first_busno) ? bus 109 arch/powerpc/sysdev/indirect_pci.c hose->self_busno : bus->number; bus 126 arch/powerpc/sysdev/indirect_pci.c (bus->number == hose->first_busno)) bus 63 arch/powerpc/sysdev/mpic_u3msi.c struct pci_bus *bus; bus 66 arch/powerpc/sysdev/mpic_u3msi.c for (bus = pdev->bus; bus && bus->self; bus = bus->parent) { bus 67 arch/powerpc/sysdev/mpic_u3msi.c pos = pci_find_ht_capability(bus->self, HT_CAPTYPE_MSI_MAPPING); bus 69 arch/powerpc/sysdev/mpic_u3msi.c return read_ht_magic_addr(bus->self, pos); bus 77 arch/powerpc/sysdev/mpic_u3msi.c struct pci_controller *hose = pci_bus_to_host(pdev->bus); bus 35 arch/powerpc/sysdev/tsi108_pci.c #define tsi_mk_config_addr(bus, devfunc, offset) \ bus 36 arch/powerpc/sysdev/tsi108_pci.c ((((bus)<<16) | ((devfunc)<<8) | (offset & 0xfc)) + tsi108_pci_cfg_base) bus 48 arch/powerpc/sysdev/tsi108_pci.c tsi108_direct_write_config(struct pci_bus *bus, unsigned int devfunc, bus 52 arch/powerpc/sysdev/tsi108_pci.c struct pci_controller *hose = pci_bus_to_host(bus); bus 55 arch/powerpc/sysdev/tsi108_pci.c if (ppc_md.pci_exclude_device(hose, bus->number, devfunc)) bus 58 arch/powerpc/sysdev/tsi108_pci.c cfg_addr = (unsigned char *)(tsi_mk_config_addr(bus->number, bus 64 arch/powerpc/sysdev/tsi108_pci.c printk("%d:0x%x:0x%x ", bus->number, devfunc, offset); bus 132 arch/powerpc/sysdev/tsi108_pci.c tsi108_direct_read_config(struct pci_bus *bus, unsigned int devfn, int offset, bus 136 arch/powerpc/sysdev/tsi108_pci.c struct pci_controller *hose = pci_bus_to_host(bus); bus 140 arch/powerpc/sysdev/tsi108_pci.c if (ppc_md.pci_exclude_device(hose, bus->number, devfn)) bus 143 arch/powerpc/sysdev/tsi108_pci.c cfg_addr = (unsigned char *)(tsi_mk_config_addr(bus->number, bus 165 arch/powerpc/sysdev/tsi108_pci.c printk("%d:0x%x:0x%x ", bus->number, devfn, offset); bus 43 arch/powerpc/sysdev/xilinx_pci.c if (dev->devfn || dev->bus->self) bus 46 arch/powerpc/sysdev/xilinx_pci.c hose = pci_bus_to_host(dev->bus); bus 74 arch/powerpc/sysdev/xilinx_pci.c xilinx_pci_exclude_device(struct pci_controller *hose, u_char bus, u8 devfn) bus 76 arch/powerpc/sysdev/xilinx_pci.c return (bus != 0); bus 30 arch/riscv/include/asm/pci.h static inline int pci_proc_domain(struct pci_bus *bus) bus 100 arch/s390/include/asm/pci.h struct pci_bus *bus; bus 256 arch/s390/include/asm/pci.h static inline int __pcibus_to_node(const struct pci_bus *bus) bus 262 arch/s390/include/asm/pci.h cpumask_of_pcibus(const struct pci_bus *bus) bus 84 arch/s390/include/asm/topology.h #define pcibus_to_node(bus) __pcibus_to_node(bus) bus 92 arch/s390/pci/pci.c static struct zpci_dev *get_zdev_by_bus(struct pci_bus *bus) bus 94 arch/s390/pci/pci.c return (bus && bus->sysdata) ? (struct zpci_dev *) bus->sysdata : NULL; bus 97 arch/s390/pci/pci.c int pci_domain_nr(struct pci_bus *bus) bus 99 arch/s390/pci/pci.c return ((struct zpci_dev *) bus->sysdata)->domain; bus 103 arch/s390/pci/pci.c int pci_proc_domain(struct pci_bus *bus) bus 105 arch/s390/pci/pci.c return pci_domain_nr(bus); bus 371 arch/s390/pci/pci.c static int pci_read(struct pci_bus *bus, unsigned int devfn, int where, bus 374 arch/s390/pci/pci.c struct zpci_dev *zdev = get_zdev_by_bus(bus); bus 385 arch/s390/pci/pci.c static int pci_write(struct pci_bus *bus, unsigned int devfn, int where, bus 388 arch/s390/pci/pci.c struct zpci_dev *zdev = get_zdev_by_bus(bus); bus 690 arch/s390/pci/pci.c void pcibios_remove_bus(struct pci_bus *bus) bus 692 arch/s390/pci/pci.c struct zpci_dev *zdev = get_zdev_by_bus(bus); bus 716 arch/s390/pci/pci.c zdev->bus = pci_scan_root_bus(NULL, ZPCI_BUS_NR, &pci_root_ops, bus 718 arch/s390/pci/pci.c if (!zdev->bus) { bus 722 arch/s390/pci/pci.c zdev->bus->max_bus_speed = zdev->max_bus_speed; bus 723 arch/s390/pci/pci.c pci_bus_add_devices(zdev->bus); bus 804 arch/s390/pci/pci.c if (!zdev->bus) bus 807 arch/s390/pci/pci.c pci_stop_root_bus(zdev->bus); bus 808 arch/s390/pci/pci.c pci_remove_root_bus(zdev->bus); bus 56 arch/s390/pci/pci_event.c pdev = pci_get_slot(zdev->bus, ZPCI_DEVFN); bus 82 arch/s390/pci/pci_event.c pdev = pci_get_slot(zdev->bus, ZPCI_DEVFN); bus 105 arch/s390/pci/pci_event.c pci_rescan_bus(zdev->bus); bus 91 arch/s390/pci/pci_sysfs.c pci_rescan_bus(zdev->bus); bus 128 arch/sh/drivers/dma/dma-sysfs.c dev->bus = &dma_subsys; bus 15 arch/sh/drivers/pci/common.c static struct pci_bus bus; bus 17 arch/sh/drivers/pci/common.c dev.bus = &bus; bus 20 arch/sh/drivers/pci/common.c bus.number = busnr; bus 21 arch/sh/drivers/pci/common.c bus.sysdata = hose; bus 22 arch/sh/drivers/pci/common.c bus.ops = hose->pci_ops; bus 26 arch/sh/drivers/pci/common.c bus.parent = &bus; bus 28 arch/sh/drivers/pci/common.c bus.parent = NULL; bus 35 arch/sh/drivers/pci/common.c int top_bus, int bus, int devfn, int offset, type value) \ bus 38 arch/sh/drivers/pci/common.c fake_pci_dev(hose, top_bus, bus, devfn), \ bus 38 arch/sh/drivers/pci/fixups-cayman.c while (dev->bus->number > 0) { bus 42 arch/sh/drivers/pci/fixups-cayman.c dev = dev->bus->self; bus 62 arch/sh/drivers/pci/fixups-dreamcast.c pcibios_resource_to_bus(dev->bus, ®ion, &res); bus 12 arch/sh/drivers/pci/fixups-sh03.c if (dev->bus->number == 0) { bus 36 arch/sh/drivers/pci/ops-dreamcast.c static int gapspci_config_access(unsigned char bus, unsigned int devfn) bus 38 arch/sh/drivers/pci/ops-dreamcast.c return (bus == 0) && (devfn == 0); bus 46 arch/sh/drivers/pci/ops-dreamcast.c static int gapspci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val) bus 50 arch/sh/drivers/pci/ops-dreamcast.c if (!gapspci_config_access(bus->number, devfn)) bus 62 arch/sh/drivers/pci/ops-dreamcast.c static int gapspci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) bus 64 arch/sh/drivers/pci/ops-dreamcast.c if (!gapspci_config_access(bus->number, devfn)) bus 16 arch/sh/drivers/pci/ops-sh4.c #define CONFIG_CMD(bus, devfn, where) \ bus 17 arch/sh/drivers/pci/ops-sh4.c (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3)) bus 22 arch/sh/drivers/pci/ops-sh4.c static int sh4_pci_read(struct pci_bus *bus, unsigned int devfn, bus 25 arch/sh/drivers/pci/ops-sh4.c struct pci_channel *chan = bus->sysdata; bus 34 arch/sh/drivers/pci/ops-sh4.c pci_write_reg(chan, CONFIG_CMD(bus, devfn, where), SH4_PCIPAR); bus 60 arch/sh/drivers/pci/ops-sh4.c static int sh4_pci_write(struct pci_bus *bus, unsigned int devfn, bus 63 arch/sh/drivers/pci/ops-sh4.c struct pci_channel *chan = bus->sysdata; bus 69 arch/sh/drivers/pci/ops-sh4.c pci_write_reg(chan, CONFIG_CMD(bus, devfn, where), SH4_PCIPAR); bus 22 arch/sh/drivers/pci/ops-sh5.c static int sh5pci_read(struct pci_bus *bus, unsigned int devfn, int where, bus 25 arch/sh/drivers/pci/ops-sh5.c SH5PCI_WRITE(PAR, CONFIG_CMD(bus, devfn, where)); bus 42 arch/sh/drivers/pci/ops-sh5.c static int sh5pci_write(struct pci_bus *bus, unsigned int devfn, int where, bus 45 arch/sh/drivers/pci/ops-sh5.c SH5PCI_WRITE(PAR, CONFIG_CMD(bus, devfn, where)); bus 20 arch/sh/drivers/pci/ops-sh7786.c struct pci_bus *bus, unsigned int devfn, int where, u32 *data) bus 22 arch/sh/drivers/pci/ops-sh7786.c struct pci_channel *chan = bus->sysdata; bus 27 arch/sh/drivers/pci/ops-sh7786.c type = !!bus->parent; bus 30 arch/sh/drivers/pci/ops-sh7786.c if (bus->number > 255 || dev > 31 || func > 7) bus 48 arch/sh/drivers/pci/ops-sh7786.c if (pci_is_root_bus(bus)) { bus 64 arch/sh/drivers/pci/ops-sh7786.c pci_write_reg(chan, (bus->number << 24) | (dev << 19) | bus 89 arch/sh/drivers/pci/ops-sh7786.c static int sh7786_pcie_read(struct pci_bus *bus, unsigned int devfn, bus 102 arch/sh/drivers/pci/ops-sh7786.c ret = sh7786_pcie_config_access(PCI_ACCESS_READ, bus, bus 116 arch/sh/drivers/pci/ops-sh7786.c dev_dbg(&bus->dev, "pcie-config-read: bus=%3d devfn=0x%04x " bus 117 arch/sh/drivers/pci/ops-sh7786.c "where=0x%04x size=%d val=0x%08lx\n", bus->number, bus 125 arch/sh/drivers/pci/ops-sh7786.c static int sh7786_pcie_write(struct pci_bus *bus, unsigned int devfn, bus 138 arch/sh/drivers/pci/ops-sh7786.c ret = sh7786_pcie_config_access(PCI_ACCESS_READ, bus, bus 143 arch/sh/drivers/pci/ops-sh7786.c dev_dbg(&bus->dev, "pcie-config-write: bus=%3d devfn=0x%04x " bus 144 arch/sh/drivers/pci/ops-sh7786.c "where=0x%04x size=%d val=%08lx\n", bus->number, bus 158 arch/sh/drivers/pci/ops-sh7786.c ret = sh7786_pcie_config_access(PCI_ACCESS_WRITE, bus, bus 97 arch/sh/drivers/pci/pci-sh5.h #define SET_CONFIG_BITS(bus,devfn,where) ((((bus) << 16) | ((devfn) << 8) | ((where) & ~3)) | 0x80000000) bus 100 arch/sh/drivers/pci/pci-sh5.h #define CONFIG_CMD(bus, devfn, where) SET_CONFIG_BITS(bus->number,devfn,where) bus 72 arch/sh/drivers/pci/pci.c hose->bus = bridge->bus; bus 77 arch/sh/drivers/pci/pci.c next_busno = hose->bus->busn_res.end + 1; bus 85 arch/sh/drivers/pci/pci.c pci_bus_size_bridges(hose->bus); bus 86 arch/sh/drivers/pci/pci.c pci_bus_assign_resources(hose->bus); bus 87 arch/sh/drivers/pci/pci.c pci_bus_add_devices(hose->bus); bus 226 arch/sh/drivers/pci/pci.c pcibios_bus_report_status(struct pci_bus *bus, unsigned int status_mask, bus 231 arch/sh/drivers/pci/pci.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 238 arch/sh/drivers/pci/pci.c if (dev->bus->number == 0 && dev->devfn == 0) bus 255 arch/sh/drivers/pci/pci.c list_for_each_entry(dev, &bus->devices, bus_list) bus 265 arch/sh/drivers/pci/pci.c if (unlikely(!hose->bus)) bus 269 arch/sh/drivers/pci/pci.c pcibios_bus_report_status(hose->bus, status_mask, warn); bus 139 arch/sh/drivers/pci/pcie-sh7786.c if (pci_is_root_bus(dev->bus) && dev->devfn == 0) { bus 163 arch/sh/drivers/superhyway/ops-sh4-202.c int __init superhyway_scan_bus(struct superhyway_bus *bus) bus 165 arch/sh/drivers/superhyway/ops-sh4-202.c return superhyway_add_devices(bus, sh4202_devices, bus 182 arch/sh/include/asm/io.h #define __BUILD_IOPORT_PFX(bus, bwlq, type) \ bus 183 arch/sh/include/asm/io.h __BUILD_IOPORT_SINGLE(bus, bwlq, type, ,) \ bus 184 arch/sh/include/asm/io.h __BUILD_IOPORT_SINGLE(bus, bwlq, type, _p, SLOW_DOWN_IO) bus 19 arch/sh/include/asm/pci.h struct pci_bus *bus; bus 48 arch/sh/include/asm/pci.h int bus, int devfn, int offset, u8 *value); bus 50 arch/sh/include/asm/pci.h int bus, int devfn, int offset, u16 *value); bus 52 arch/sh/include/asm/pci.h int bus, int devfn, int offset, u32 *value); bus 54 arch/sh/include/asm/pci.h int bus, int devfn, int offset, u8 value); bus 56 arch/sh/include/asm/pci.h int bus, int devfn, int offset, u16 value); bus 58 arch/sh/include/asm/pci.h int bus, int devfn, int offset, u32 value); bus 85 arch/sh/include/asm/pci.h #define pci_domain_nr(bus) ((struct pci_channel *)(bus)->sysdata)->index bus 87 arch/sh/include/asm/pci.h static inline int pci_proc_domain(struct pci_bus *bus) bus 89 arch/sh/include/asm/pci.h struct pci_channel *hose = bus->sysdata; bus 11 arch/sh/include/asm/topology.h #define pcibus_to_node(bus) ((void)(bus), -1) bus 12 arch/sh/include/asm/topology.h #define cpumask_of_pcibus(bus) (pcibus_to_node(bus) == -1 ? \ bus 14 arch/sh/include/asm/topology.h cpumask_of_node(pcibus_to_node(bus))) bus 21 arch/sparc/include/asm/device.h void of_propagate_archdata(struct platform_device *bus); bus 11 arch/sparc/include/asm/dma-mapping.h static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) bus 18 arch/sparc/include/asm/dma-mapping.h if (bus == &pci_bus_type) bus 171 arch/sparc/include/asm/leon_amba.h struct amba_confarea_type *bus; bus 177 arch/sparc/include/asm/leon_amba.h struct amba_confarea_type *bus; bus 30 arch/sparc/include/asm/pci.h int pci_domain_nr(struct pci_bus *bus); bus 31 arch/sparc/include/asm/pci.h static inline int pci_proc_domain(struct pci_bus *bus) bus 347 arch/sparc/include/asm/pgtable_32.h void srmmu_mapiorange(unsigned int bus, unsigned long xpa, bus 28 arch/sparc/include/asm/topology_64.h #define cpumask_of_pcibus(bus) \ bus 29 arch/sparc/include/asm/topology_64.h (pcibus_to_node(bus) == -1 ? \ bus 31 arch/sparc/include/asm/topology_64.h cpumask_of_node(pcibus_to_node(bus))) bus 66 arch/sparc/kernel/ioport.c static void __iomem *_sparc_ioremap(struct resource *res, u32 bus, u32 pa, int sz); bus 216 arch/sparc/kernel/ioport.c _sparc_ioremap(struct resource *res, u32 bus, u32 pa, int sz) bus 230 arch/sparc/kernel/ioport.c srmmu_mapiorange(bus, pa, res->start, resource_size(res)); bus 56 arch/sparc/kernel/leon_pci.c root_bus = bridge->bus; bus 102 arch/sparc/kernel/leon_pci_grpci1.c static int grpci1_cfg_w32(struct grpci1_priv *priv, unsigned int bus, bus 107 arch/sparc/kernel/leon_pci_grpci1.c struct grpci1_priv *priv = dev->bus->sysdata; bus 117 arch/sparc/kernel/leon_pci_grpci1.c static int grpci1_cfg_r32(struct grpci1_priv *priv, unsigned int bus, bus 125 arch/sparc/kernel/leon_pci_grpci1.c if (bus == 0) { bus 127 arch/sparc/kernel/leon_pci_grpci1.c } else if (bus == TGT) { bus 128 arch/sparc/kernel/leon_pci_grpci1.c bus = 0; bus 134 arch/sparc/kernel/leon_pci_grpci1.c REGSTORE(priv->regs->cfg_stat, (cfg & ~(0xf << 23)) | (bus << 23)); bus 154 arch/sparc/kernel/leon_pci_grpci1.c static int grpci1_cfg_r16(struct grpci1_priv *priv, unsigned int bus, bus 162 arch/sparc/kernel/leon_pci_grpci1.c ret = grpci1_cfg_r32(priv, bus, devfn, where & ~0x3, &v); bus 167 arch/sparc/kernel/leon_pci_grpci1.c static int grpci1_cfg_r8(struct grpci1_priv *priv, unsigned int bus, bus 173 arch/sparc/kernel/leon_pci_grpci1.c ret = grpci1_cfg_r32(priv, bus, devfn, where & ~0x3, &v); bus 179 arch/sparc/kernel/leon_pci_grpci1.c static int grpci1_cfg_w32(struct grpci1_priv *priv, unsigned int bus, bus 188 arch/sparc/kernel/leon_pci_grpci1.c if (bus == 0) { bus 190 arch/sparc/kernel/leon_pci_grpci1.c } else if (bus == TGT) { bus 191 arch/sparc/kernel/leon_pci_grpci1.c bus = 0; bus 197 arch/sparc/kernel/leon_pci_grpci1.c REGSTORE(priv->regs->cfg_stat, (cfg & ~(0xf << 23)) | (bus << 23)); bus 206 arch/sparc/kernel/leon_pci_grpci1.c static int grpci1_cfg_w16(struct grpci1_priv *priv, unsigned int bus, bus 214 arch/sparc/kernel/leon_pci_grpci1.c ret = grpci1_cfg_r32(priv, bus, devfn, where&~3, &v); bus 219 arch/sparc/kernel/leon_pci_grpci1.c return grpci1_cfg_w32(priv, bus, devfn, where & ~0x3, v); bus 222 arch/sparc/kernel/leon_pci_grpci1.c static int grpci1_cfg_w8(struct grpci1_priv *priv, unsigned int bus, bus 228 arch/sparc/kernel/leon_pci_grpci1.c ret = grpci1_cfg_r32(priv, bus, devfn, where & ~0x3, &v); bus 233 arch/sparc/kernel/leon_pci_grpci1.c return grpci1_cfg_w32(priv, bus, devfn, where & ~0x3, v); bus 239 arch/sparc/kernel/leon_pci_grpci1.c static int grpci1_read_config(struct pci_bus *bus, unsigned int devfn, bus 243 arch/sparc/kernel/leon_pci_grpci1.c unsigned int busno = bus->number; bus 278 arch/sparc/kernel/leon_pci_grpci1.c static int grpci1_write_config(struct pci_bus *bus, unsigned int devfn, bus 282 arch/sparc/kernel/leon_pci_grpci1.c unsigned int busno = bus->number; bus 224 arch/sparc/kernel/leon_pci_grpci2.c struct grpci2_priv *priv = dev->bus->sysdata; bus 234 arch/sparc/kernel/leon_pci_grpci2.c static int grpci2_cfg_r32(struct grpci2_priv *priv, unsigned int bus, bus 244 arch/sparc/kernel/leon_pci_grpci2.c if (bus == 0) { bus 246 arch/sparc/kernel/leon_pci_grpci2.c } else if (bus == TGT) { bus 247 arch/sparc/kernel/leon_pci_grpci2.c bus = 0; bus 254 arch/sparc/kernel/leon_pci_grpci2.c (bus << 16)); bus 280 arch/sparc/kernel/leon_pci_grpci2.c static int grpci2_cfg_r16(struct grpci2_priv *priv, unsigned int bus, bus 288 arch/sparc/kernel/leon_pci_grpci2.c ret = grpci2_cfg_r32(priv, bus, devfn, where & ~0x3, &v); bus 293 arch/sparc/kernel/leon_pci_grpci2.c static int grpci2_cfg_r8(struct grpci2_priv *priv, unsigned int bus, bus 299 arch/sparc/kernel/leon_pci_grpci2.c ret = grpci2_cfg_r32(priv, bus, devfn, where & ~0x3, &v); bus 305 arch/sparc/kernel/leon_pci_grpci2.c static int grpci2_cfg_w32(struct grpci2_priv *priv, unsigned int bus, bus 314 arch/sparc/kernel/leon_pci_grpci2.c if (bus == 0) { bus 316 arch/sparc/kernel/leon_pci_grpci2.c } else if (bus == TGT) { bus 317 arch/sparc/kernel/leon_pci_grpci2.c bus = 0; bus 324 arch/sparc/kernel/leon_pci_grpci2.c (bus << 16)); bus 343 arch/sparc/kernel/leon_pci_grpci2.c static int grpci2_cfg_w16(struct grpci2_priv *priv, unsigned int bus, bus 351 arch/sparc/kernel/leon_pci_grpci2.c ret = grpci2_cfg_r32(priv, bus, devfn, where&~3, &v); bus 356 arch/sparc/kernel/leon_pci_grpci2.c return grpci2_cfg_w32(priv, bus, devfn, where & ~0x3, v); bus 359 arch/sparc/kernel/leon_pci_grpci2.c static int grpci2_cfg_w8(struct grpci2_priv *priv, unsigned int bus, bus 365 arch/sparc/kernel/leon_pci_grpci2.c ret = grpci2_cfg_r32(priv, bus, devfn, where & ~0x3, &v); bus 370 arch/sparc/kernel/leon_pci_grpci2.c return grpci2_cfg_w32(priv, bus, devfn, where & ~0x3, v); bus 376 arch/sparc/kernel/leon_pci_grpci2.c static int grpci2_read_config(struct pci_bus *bus, unsigned int devfn, bus 380 arch/sparc/kernel/leon_pci_grpci2.c unsigned int busno = bus->number; bus 415 arch/sparc/kernel/leon_pci_grpci2.c static int grpci2_write_config(struct pci_bus *bus, unsigned int devfn, bus 419 arch/sparc/kernel/leon_pci_grpci2.c unsigned int busno = bus->number; bus 189 arch/sparc/kernel/of_device_32.c struct of_bus *bus, bus 216 arch/sparc/kernel/of_device_32.c if (!bus->map(addr, ranges, na, ns, pna)) bus 250 arch/sparc/kernel/of_device_32.c struct of_bus *bus; bus 259 arch/sparc/kernel/of_device_32.c bus = of_match_bus(p_op->dev.of_node); bus 260 arch/sparc/kernel/of_device_32.c bus->count_cells(op->dev.of_node, &na, &ns); bus 262 arch/sparc/kernel/of_device_32.c preg = of_get_property(op->dev.of_node, bus->addr_prop_name, &num_reg); bus 290 arch/sparc/kernel/of_device_32.c flags = bus->get_flags(reg, 0); bus 299 arch/sparc/kernel/of_device_32.c dbus = bus; bus 379 arch/sparc/kernel/of_device_32.c op->dev.bus = &platform_bus_type; bus 243 arch/sparc/kernel/of_device_64.c struct of_bus *bus, bus 269 arch/sparc/kernel/of_device_64.c if (!bus->map(addr, ranges, na, ns, pna)) bus 276 arch/sparc/kernel/of_device_64.c if (!strcmp(bus->name, "pci") && bus 320 arch/sparc/kernel/of_device_64.c struct of_bus *bus; bus 329 arch/sparc/kernel/of_device_64.c bus = of_match_bus(p_op->dev.of_node); bus 330 arch/sparc/kernel/of_device_64.c bus->count_cells(op->dev.of_node, &na, &ns); bus 332 arch/sparc/kernel/of_device_64.c preg = of_get_property(op->dev.of_node, bus->addr_prop_name, &num_reg); bus 367 arch/sparc/kernel/of_device_64.c flags = bus->get_flags(addr, 0); bus 376 arch/sparc/kernel/of_device_64.c dbus = bus; bus 427 arch/sparc/kernel/of_device_64.c struct of_bus *bus; bus 432 arch/sparc/kernel/of_device_64.c bus = of_match_bus(pp); bus 433 arch/sparc/kernel/of_device_64.c bus->count_cells(dp, &na, NULL); bus 485 arch/sparc/kernel/of_device_64.c unsigned int bus, devfn, slot, ret; bus 494 arch/sparc/kernel/of_device_64.c bus = (regs->phys_hi >> 16) & 0xff; bus 510 arch/sparc/kernel/of_device_64.c if (bus & 0x80) { bus 512 arch/sparc/kernel/of_device_64.c bus = 0x00; bus 516 arch/sparc/kernel/of_device_64.c bus = 0x10; bus 521 arch/sparc/kernel/of_device_64.c ret = (bus | slot | irq); bus 673 arch/sparc/kernel/of_device_64.c op->dev.bus = &platform_bus_type; bus 57 arch/sparc/kernel/of_device_common.c void of_propagate_archdata(struct platform_device *bus) bus 59 arch/sparc/kernel/of_device_common.c struct dev_archdata *bus_sd = &bus->dev.archdata; bus 60 arch/sparc/kernel/of_device_common.c struct device_node *bus_dp = bus->dev.of_node; bus 265 arch/sparc/kernel/pci.c struct pci_bus *bus, int devfn) bus 272 arch/sparc/kernel/pci.c dev = pci_alloc_dev(bus); bus 289 arch/sparc/kernel/pci.c pci_info(bus," create device, devfn: %x, type: %s\n", bus 293 arch/sparc/kernel/pci.c dev->dev.parent = bus->bridge; bus 294 arch/sparc/kernel/pci.c dev->dev.bus = &pci_bus_type; bus 320 arch/sparc/kernel/pci.c dev_set_name(&dev->dev, "%04x:%02x:%02x.%d", pci_domain_nr(bus), bus 321 arch/sparc/kernel/pci.c dev->bus->number, PCI_SLOT(devfn), PCI_FUNC(devfn)); bus 357 arch/sparc/kernel/pci.c pci_device_add(dev, bus); bus 385 arch/sparc/kernel/pci.c struct pci_bus *bus, bus 395 arch/sparc/kernel/pci.c res = bus->resource[0]; bus 399 arch/sparc/kernel/pci.c pcibios_bus_to_resource(dev->bus, res, ®ion); bus 403 arch/sparc/kernel/pci.c res = bus->resource[1]; bus 407 arch/sparc/kernel/pci.c pcibios_bus_to_resource(dev->bus, res, ®ion); bus 412 arch/sparc/kernel/pci.c struct pci_bus *bus); bus 420 arch/sparc/kernel/pci.c struct pci_bus *bus; bus 451 arch/sparc/kernel/pci.c bus = pci_add_new_bus(dev->bus, dev, busrange[0]); bus 452 arch/sparc/kernel/pci.c if (!bus) { bus 458 arch/sparc/kernel/pci.c bus->primary = dev->bus->number; bus 459 arch/sparc/kernel/pci.c pci_bus_insert_busn_res(bus, busrange[0], busrange[1]); bus 460 arch/sparc/kernel/pci.c bus->bridge_ctl = 0; bus 471 arch/sparc/kernel/pci.c bus->resource[i] = res; bus 475 arch/sparc/kernel/pci.c apb_fake_ranges(dev, bus, pbm); bus 478 arch/sparc/kernel/pci.c pci_read_bridge_bases(bus); bus 507 arch/sparc/kernel/pci.c res = bus->resource[0]; bus 519 arch/sparc/kernel/pci.c res = bus->resource[i]; bus 531 arch/sparc/kernel/pci.c pcibios_bus_to_resource(dev->bus, res, ®ion); bus 534 arch/sparc/kernel/pci.c sprintf(bus->name, "PCI Bus %04x:%02x", pci_domain_nr(bus), bus 535 arch/sparc/kernel/pci.c bus->number); bus 537 arch/sparc/kernel/pci.c pci_info(dev, " bus name: %s\n", bus->name); bus 539 arch/sparc/kernel/pci.c pci_of_scan_bus(pbm, node, bus); bus 544 arch/sparc/kernel/pci.c struct pci_bus *bus) bus 552 arch/sparc/kernel/pci.c pci_info(bus, "scan_bus[%pOF] bus no %d\n", bus 553 arch/sparc/kernel/pci.c node, bus->number); bus 559 arch/sparc/kernel/pci.c pci_info(bus, " * %pOF\n", child); bus 576 arch/sparc/kernel/pci.c dev = of_create_pci_dev(pbm, child, bus, devfn); bus 601 arch/sparc/kernel/pci.c static void pci_bus_register_of_sysfs(struct pci_bus *bus) bus 607 arch/sparc/kernel/pci.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 618 arch/sparc/kernel/pci.c list_for_each_entry(child_bus, &bus->children, node) bus 639 arch/sparc/kernel/pci.c pcibios_bus_to_resource(dev->bus, p, ®ion); bus 661 arch/sparc/kernel/pci.c static void pci_claim_bus_resources(struct pci_bus *bus) bus 666 arch/sparc/kernel/pci.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 685 arch/sparc/kernel/pci.c list_for_each_entry(child_bus, &bus->children, node) bus 694 arch/sparc/kernel/pci.c struct pci_bus *bus; bus 709 arch/sparc/kernel/pci.c bus = pci_create_root_bus(parent, pbm->pci_first_busno, pbm->pci_ops, bus 711 arch/sparc/kernel/pci.c if (!bus) { bus 717 arch/sparc/kernel/pci.c pci_of_scan_bus(pbm, node, bus); bus 718 arch/sparc/kernel/pci.c pci_bus_register_of_sysfs(bus); bus 720 arch/sparc/kernel/pci.c pci_claim_bus_resources(bus); bus 722 arch/sparc/kernel/pci.c pci_bus_add_devices(bus); bus 723 arch/sparc/kernel/pci.c return bus; bus 1003 arch/sparc/kernel/pci.c pcibios_resource_to_bus(pdev->bus, ®ion, (struct resource *) rp); bus 1048 arch/sparc/kernel/pci.c struct pci_bus *bus; bus 1070 arch/sparc/kernel/pci.c list_for_each_entry(bus, &pbus->children, node) bus 1071 arch/sparc/kernel/pci.c pcie_bus_slot_names(bus); bus 1074 arch/sparc/kernel/pci.c static void pci_bus_slot_names(struct device_node *node, struct pci_bus *bus) bus 1092 arch/sparc/kernel/pci.c pci_info(bus, "Making slots for [%pOF] mask[0x%02x]\n", bus 1106 arch/sparc/kernel/pci.c pci_info(bus, "Making slot [%s]\n", sp); bus 1108 arch/sparc/kernel/pci.c pci_slot = pci_create_slot(bus, i, sp, NULL); bus 1110 arch/sparc/kernel/pci.c pci_err(bus, "pci_create_slot returned %ld\n", bus 20 arch/sparc/kernel/pci_common.c unsigned long bus, bus 24 arch/sparc/kernel/pci_common.c if (bus < pbm->pci_first_busno || bus 25 arch/sparc/kernel/pci_common.c bus > pbm->pci_last_busno) bus 31 arch/sparc/kernel/pci_common.c unsigned long bus, bus 37 arch/sparc/kernel/pci_common.c if (config_out_of_range(pbm, bus, devfn, reg)) bus 42 arch/sparc/kernel/pci_common.c bus <<= rbits + 8; bus 44 arch/sparc/kernel/pci_common.c return (void *) (pbm->config_space | bus | devfn | reg); bus 53 arch/sparc/kernel/pci_common.c unsigned char bus, unsigned int devfn, bus 60 arch/sparc/kernel/pci_common.c addr = sun4u_config_mkaddr(pbm, bus, devfn, where); bus 95 arch/sparc/kernel/pci_common.c sun4u_read_pci_cfg_host(pbm, bus, devfn, bus 100 arch/sparc/kernel/pci_common.c sun4u_read_pci_cfg_host(pbm, bus, devfn, bus 112 arch/sparc/kernel/pci_common.c unsigned char bus = bus_dev->number; bus 130 arch/sparc/kernel/pci_common.c return sun4u_read_pci_cfg_host(pbm, bus, devfn, where, bus 133 arch/sparc/kernel/pci_common.c addr = sun4u_config_mkaddr(pbm, bus, devfn, where); bus 166 arch/sparc/kernel/pci_common.c unsigned char bus, unsigned int devfn, bus 171 arch/sparc/kernel/pci_common.c addr = sun4u_config_mkaddr(pbm, bus, devfn, where); bus 203 arch/sparc/kernel/pci_common.c sun4u_write_pci_cfg_host(pbm, bus, devfn, bus 205 arch/sparc/kernel/pci_common.c sun4u_write_pci_cfg_host(pbm, bus, devfn, bus 216 arch/sparc/kernel/pci_common.c unsigned char bus = bus_dev->number; bus 220 arch/sparc/kernel/pci_common.c return sun4u_write_pci_cfg_host(pbm, bus, devfn, where, bus 223 arch/sparc/kernel/pci_common.c addr = sun4u_config_mkaddr(pbm, bus, devfn, where); bus 262 arch/sparc/kernel/pci_common.c unsigned int bus = bus_dev->number; bus 267 arch/sparc/kernel/pci_common.c if (config_out_of_range(pbm, bus, devfn, where)) { bus 271 arch/sparc/kernel/pci_common.c HV_PCI_DEVICE_BUILD(bus, device, func), bus 295 arch/sparc/kernel/pci_common.c unsigned int bus = bus_dev->number; bus 299 arch/sparc/kernel/pci_common.c if (config_out_of_range(pbm, bus, devfn, where)) { bus 307 arch/sparc/kernel/pci_common.c HV_PCI_DEVICE_BUILD(bus, device, func), bus 481 arch/sparc/kernel/pci_common.c struct pci_bus *bus; bus 497 arch/sparc/kernel/pci_common.c list_for_each_entry(bus, &pbus->children, node) bus 498 arch/sparc/kernel/pci_common.c pci_scan_for_target_abort(pbm, bus); bus 505 arch/sparc/kernel/pci_common.c struct pci_bus *bus; bus 520 arch/sparc/kernel/pci_common.c list_for_each_entry(bus, &pbus->children, node) bus 521 arch/sparc/kernel/pci_common.c pci_scan_for_master_abort(pbm, bus); bus 528 arch/sparc/kernel/pci_common.c struct pci_bus *bus; bus 544 arch/sparc/kernel/pci_common.c list_for_each_entry(bus, &pbus->children, node) bus 545 arch/sparc/kernel/pci_common.c pci_scan_for_parity_error(pbm, bus); bus 81 arch/sparc/kernel/pci_schizo.c unsigned char bus, bus 87 arch/sparc/kernel/pci_schizo.c bus -= pbm->pci_first_busno; bus 90 arch/sparc/kernel/pci_schizo.c SCHIZO_CONFIG_ENCODE(bus, devfn, where)); bus 263 arch/sparc/kernel/pci_sun4v.c unsigned int bus; bus 273 arch/sparc/kernel/pci_sun4v.c bus = bus_dev->number; bus 277 arch/sparc/kernel/pci_sun4v.c HV_PCI_DEVICE_BUILD(bus, bus 174 arch/sparc/kernel/pcic.c #define CONFIG_CMD(bus, device_fn, where) (0x80000000 | (((unsigned int)bus) << 16) | (((unsigned int)device_fn) << 8) | (where & ~3)) bus 213 arch/sparc/kernel/pcic.c static int pcic_read_config(struct pci_bus *bus, unsigned int devfn, bus 218 arch/sparc/kernel/pcic.c if (bus->number != 0) return -EINVAL; bus 221 arch/sparc/kernel/pcic.c pcic_read_config_dword(bus->number, devfn, where&~3, &v); bus 226 arch/sparc/kernel/pcic.c pcic_read_config_dword(bus->number, devfn, where&~3, &v); bus 231 arch/sparc/kernel/pcic.c pcic_read_config_dword(bus->number, devfn, where&~3, val); bus 252 arch/sparc/kernel/pcic.c static int pcic_write_config(struct pci_bus *bus, unsigned int devfn, bus 257 arch/sparc/kernel/pcic.c if (bus->number != 0) return -EINVAL; bus 260 arch/sparc/kernel/pcic.c pcic_read_config_dword(bus->number, devfn, where&~3, &v); bus 263 arch/sparc/kernel/pcic.c return pcic_write_config_dword(bus->number, devfn, where&~3, v); bus 266 arch/sparc/kernel/pcic.c pcic_read_config_dword(bus->number, devfn, where&~3, &v); bus 269 arch/sparc/kernel/pcic.c return pcic_write_config_dword(bus->number, devfn, where&~3, v); bus 272 arch/sparc/kernel/pcic.c return pcic_write_config_dword(bus->number, devfn, where, val); bus 549 arch/sparc/kernel/pcic.c if (p->busno == dev->bus->number && p->devfn == dev->devfn) bus 602 arch/sparc/kernel/pcic.c void pcibios_fixup_bus(struct pci_bus *bus) bus 611 arch/sparc/kernel/pcic.c pci_info(bus, "pcibios_fixup_bus: no PCIC\n"); bus 619 arch/sparc/kernel/pcic.c if (bus->number != 0) { bus 620 arch/sparc/kernel/pcic.c pci_info(bus, "pcibios_fixup_bus: nonzero bus 0x%x\n", bus 621 arch/sparc/kernel/pcic.c bus->number); bus 625 arch/sparc/kernel/pcic.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 21 arch/sparc/kernel/prom_irqtrans.c unsigned int bus = (ino & 0x10) >> 4; bus 24 arch/sparc/kernel/prom_irqtrans.c if (bus == 0) bus 121 arch/sparc/kernel/prom_irqtrans.c unsigned int bus, devfn; bus 126 arch/sparc/kernel/prom_irqtrans.c bus = (phys_hi >> 16) & 0xff; bus 129 arch/sparc/kernel/prom_irqtrans.c config_space |= SABRE_CONFIG_ENCODE(bus, devfn, 0x00); bus 164 arch/sparc/kernel/prom_irqtrans.c unsigned int bus = (ino & 0x10) >> 4; bus 167 arch/sparc/kernel/prom_irqtrans.c if (bus == 0) bus 21 arch/sparc/kernel/psycho_common.h unsigned char bus, bus 27 arch/sparc/kernel/psycho_common.h PSYCHO_CONFIG_ENCODE(bus, devfn, where)); bus 328 arch/sparc/kernel/sun4d_irq.c struct device_node *board_parent, *bus = dp->parent; bus 337 arch/sparc/kernel/sun4d_irq.c while (bus) { bus 338 arch/sparc/kernel/sun4d_irq.c if (of_node_name_eq(bus, "sbi")) { bus 343 arch/sparc/kernel/sun4d_irq.c if (of_node_name_eq(bus, "bootbus")) { bus 348 arch/sparc/kernel/sun4d_irq.c bus = bus->parent; bus 350 arch/sparc/kernel/sun4d_irq.c if (!bus) bus 363 arch/sparc/kernel/sun4d_irq.c if (!of_node_name_eq(bus->parent, bus_connection)) { bus 365 arch/sparc/kernel/sun4d_irq.c bus, bus_connection); bus 368 arch/sparc/kernel/sun4d_irq.c board_parent = bus->parent; bus 166 arch/sparc/kernel/vio.c viodrv->driver.bus = &vio_bus_type; bus 363 arch/sparc/kernel/vio.c vdev->dev.bus = &vio_bus_type; bus 539 arch/sparc/mm/srmmu.c void srmmu_mapiorange(unsigned int bus, unsigned long xpa, bus 544 arch/sparc/mm/srmmu.c srmmu_mapioaddr(xpa, xva, bus); bus 43 arch/unicore32/include/mach/memory.h (strncmp(dev->bus->name, "pci", 3) == 0)) bus 21 arch/unicore32/kernel/pci.c #define CONFIG_CMD(bus, devfn, where) \ bus 22 arch/unicore32/kernel/pci.c (0x80000000 | (bus->number << 16) | (devfn << 8) | (where & ~3)) bus 25 arch/unicore32/kernel/pci.c puv3_read_config(struct pci_bus *bus, unsigned int devfn, int where, bus 28 arch/unicore32/kernel/pci.c writel(CONFIG_CMD(bus, devfn, where), PCICFG_ADDR); bus 44 arch/unicore32/kernel/pci.c puv3_write_config(struct pci_bus *bus, unsigned int devfn, int where, bus 47 arch/unicore32/kernel/pci.c writel(CONFIG_CMD(bus, devfn, where), PCICFG_ADDR); bus 102 arch/unicore32/kernel/pci.c if (dev->bus->number == 0) { bus 166 arch/unicore32/kernel/pci.c void pcibios_fixup_bus(struct pci_bus *bus) bus 173 arch/unicore32/kernel/pci.c bus->resource[0] = &ioport_resource; bus 174 arch/unicore32/kernel/pci.c bus->resource[1] = &iomem_resource; bus 180 arch/unicore32/kernel/pci.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 222 arch/unicore32/kernel/pci.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 236 arch/unicore32/kernel/pci.c if (bus->self && bus->self->hdr_type == PCI_HEADER_TYPE_BRIDGE) { bus 238 arch/unicore32/kernel/pci.c bus->bridge_ctl |= PCI_BRIDGE_CTL_FAST_BACK; bus 240 arch/unicore32/kernel/pci.c bus->bridge_ctl |= PCI_BRIDGE_CTL_PARITY; bus 247 arch/unicore32/kernel/pci.c bus->number, (features & PCI_COMMAND_FAST_BACK) ? "en" : "dis"); bus 286 arch/unicore32/kernel/pci.c puv3_bus = bridge->bus; bus 107 arch/x86/boot/compressed/eboot.c &rom->segment, &rom->bus, &rom->device, bus 1693 arch/x86/events/core.c EVENT_ATTR(bus-cycles, BUS_CYCLES ); bus 32 arch/x86/events/intel/uncore.c int uncore_pcibus_to_physid(struct pci_bus *bus) bus 39 arch/x86/events/intel/uncore.c if (map->segment == pci_domain_nr(bus)) { bus 40 arch/x86/events/intel/uncore.c phys_id = map->pbus_to_physid[bus->number]; bus 990 arch/x86/events/intel/uncore.c phys_id = uncore_pcibus_to_physid(pdev->bus); bus 1082 arch/x86/events/intel/uncore.c phys_id = uncore_pcibus_to_physid(pdev->bus); bus 166 arch/x86/events/intel/uncore.h int uncore_pcibus_to_physid(struct pci_bus *bus); bus 533 arch/x86/events/intel/uncore_snb.c int bus, segment; bus 539 arch/x86/events/intel/uncore_snb.c bus = dev->bus->number; bus 540 arch/x86/events/intel/uncore_snb.c segment = pci_domain_nr(dev->bus); bus 549 arch/x86/events/intel/uncore_snb.c map->pbus_to_physid[bus] = 0; bus 1296 arch/x86/events/intel/uncore_snbep.c int i, bus, nodeid, segment; bus 1306 arch/x86/events/intel/uncore_snbep.c bus = ubox_dev->bus->number; bus 1317 arch/x86/events/intel/uncore_snbep.c segment = pci_domain_nr(ubox_dev->bus); bus 1332 arch/x86/events/intel/uncore_snbep.c map->pbus_to_physid[bus] = i; bus 1348 arch/x86/events/intel/uncore_snbep.c for (bus = 255; bus >= 0; bus--) { bus 1349 arch/x86/events/intel/uncore_snbep.c if (map->pbus_to_physid[bus] >= 0) bus 1350 arch/x86/events/intel/uncore_snbep.c i = map->pbus_to_physid[bus]; bus 1352 arch/x86/events/intel/uncore_snbep.c map->pbus_to_physid[bus] = i; bus 1355 arch/x86/events/intel/uncore_snbep.c for (bus = 0; bus <= 255; bus++) { bus 1356 arch/x86/events/intel/uncore_snbep.c if (map->pbus_to_physid[bus] >= 0) bus 1357 arch/x86/events/intel/uncore_snbep.c i = map->pbus_to_physid[bus]; bus 1359 arch/x86/events/intel/uncore_snbep.c map->pbus_to_physid[bus] = i; bus 4371 arch/x86/events/intel/uncore_snbep.c phys_id = uncore_pcibus_to_physid(mc_dev->bus); bus 10 arch/x86/include/asm/amd_nb.h u8 bus; bus 95 arch/x86/include/asm/amd_nb.h if (pci_domain_nr(misc->bus) == pci_domain_nr(pdev->bus) && bus 21 arch/x86/include/asm/dma-mapping.h static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) bus 197 arch/x86/include/asm/io_apic.h extern int IO_APIC_get_PCI_irq_vector(int bus, int devfn, int pin); bus 10 arch/x86/include/asm/pci-direct.h extern u32 read_pci_config(u8 bus, u8 slot, u8 func, u8 offset); bus 11 arch/x86/include/asm/pci-direct.h extern u8 read_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset); bus 12 arch/x86/include/asm/pci-direct.h extern u16 read_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset); bus 13 arch/x86/include/asm/pci-direct.h extern void write_pci_config(u8 bus, u8 slot, u8 func, u8 offset, u32 val); bus 14 arch/x86/include/asm/pci-direct.h extern void write_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset, u8 val); bus 15 arch/x86/include/asm/pci-direct.h extern void write_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset, u16 val); bus 41 arch/x86/include/asm/pci.h static inline int pci_domain_nr(struct pci_bus *bus) bus 43 arch/x86/include/asm/pci.h struct pci_sysdata *sd = bus->sysdata; bus 48 arch/x86/include/asm/pci.h static inline int pci_proc_domain(struct pci_bus *bus) bus 50 arch/x86/include/asm/pci.h return pci_domain_nr(bus); bus 55 arch/x86/include/asm/pci.h static inline void *_pci_root_bus_fwnode(struct pci_bus *bus) bus 57 arch/x86/include/asm/pci.h struct pci_sysdata *sd = bus->sysdata; bus 65 arch/x86/include/asm/pci.h static inline bool is_vmd(struct pci_bus *bus) bus 68 arch/x86/include/asm/pci.h struct pci_sysdata *sd = bus->sysdata; bus 93 arch/x86/include/asm/pci.h void pcibios_scan_root(int bus); bus 132 arch/x86/include/asm/pci.h static inline int __pcibus_to_node(const struct pci_bus *bus) bus 134 arch/x86/include/asm/pci.h const struct pci_sysdata *sd = bus->sysdata; bus 140 arch/x86/include/asm/pci.h cpumask_of_pcibus(const struct pci_bus *bus) bus 144 arch/x86/include/asm/pci.h node = __pcibus_to_node(bus); bus 156 arch/x86/include/asm/pci.h unsigned long bus; bus 8 arch/x86/include/asm/pci_64.h static inline void *pci_iommu(struct pci_bus *bus) bus 10 arch/x86/include/asm/pci_64.h struct pci_sysdata *sd = bus->sysdata; bus 14 arch/x86/include/asm/pci_64.h static inline void set_pci_iommu(struct pci_bus *bus, void *val) bus 16 arch/x86/include/asm/pci_64.h struct pci_sysdata *sd = bus->sysdata; bus 21 arch/x86/include/asm/pci_64.h extern int (*pci_config_read)(int seg, int bus, int dev, int fn, bus 23 arch/x86/include/asm/pci_64.h extern int (*pci_config_write)(int seg, int bus, int dev, int fn, bus 68 arch/x86/include/asm/pci_x86.h u8 bus, devfn; /* Bus, device and function */ bus 103 arch/x86/include/asm/pci_x86.h int (*read)(unsigned int domain, unsigned int bus, unsigned int devfn, bus 105 arch/x86/include/asm/pci_x86.h int (*write)(unsigned int domain, unsigned int bus, unsigned int devfn, bus 160 arch/x86/include/asm/pci_x86.h extern struct pci_mmcfg_region *pci_mmconfig_lookup(int segment, int bus); bus 166 arch/x86/include/asm/pci_x86.h #define PCI_MMCFG_BUS_OFFSET(bus) ((bus) << 20) bus 78 arch/x86/include/asm/topology.h #define pcibus_to_node(bus) __pcibus_to_node(bus) bus 161 arch/x86/include/asm/topology.h int x86_pci_root_bus_node(int bus); bus 162 arch/x86/include/asm/topology.h void x86_pci_root_bus_resources(int bus, struct list_head *resources); bus 139 arch/x86/include/asm/uv/bios.h extern int uv_bios_set_legacy_vga_target(bool decode, int domain, int bus); bus 387 arch/x86/kernel/acpi/boot.c number = pdev->bus->number; bus 233 arch/x86/kernel/amd_gart_64.c unsigned long bus; bus 239 arch/x86/kernel/amd_gart_64.c bus = dma_map_area(dev, paddr, size, dir, 0); bus 242 arch/x86/kernel/amd_gart_64.c return bus; bus 130 arch/x86/kernel/aperture_64.c static u32 __init find_cap(int bus, int slot, int func, int cap) bus 135 arch/x86/kernel/aperture_64.c if (!(read_pci_config_16(bus, slot, func, PCI_STATUS) & bus 139 arch/x86/kernel/aperture_64.c pos = read_pci_config_byte(bus, slot, func, PCI_CAPABILITY_LIST); bus 144 arch/x86/kernel/aperture_64.c id = read_pci_config_byte(bus, slot, func, pos+PCI_CAP_LIST_ID); bus 149 arch/x86/kernel/aperture_64.c pos = read_pci_config_byte(bus, slot, func, bus 156 arch/x86/kernel/aperture_64.c static u32 __init read_agp(int bus, int slot, int func, int cap, u32 *order) bus 165 arch/x86/kernel/aperture_64.c pr_info("pci 0000:%02x:%02x:%02x: AGP bridge\n", bus, slot, func); bus 166 arch/x86/kernel/aperture_64.c apsizereg = read_pci_config_16(bus, slot, func, cap + 0x14); bus 169 arch/x86/kernel/aperture_64.c bus, slot, func); bus 185 arch/x86/kernel/aperture_64.c aper_low = read_pci_config(bus, slot, func, 0x10); bus 186 arch/x86/kernel/aperture_64.c aper_hi = read_pci_config(bus, slot, func, 0x14); bus 194 arch/x86/kernel/aperture_64.c bus, slot, func, aper, aper + (32ULL << (old_order + 20)) - 1, bus 198 arch/x86/kernel/aperture_64.c bus, slot, func, 32 << *order, apsizereg); bus 203 arch/x86/kernel/aperture_64.c bus, slot, func, aper, aper + (32ULL << (*order + 20)) - 1, bus 226 arch/x86/kernel/aperture_64.c int bus, slot, func; bus 229 arch/x86/kernel/aperture_64.c for (bus = 0; bus < 256; bus++) { bus 234 arch/x86/kernel/aperture_64.c class = read_pci_config(bus, slot, func, bus 243 arch/x86/kernel/aperture_64.c cap = find_cap(bus, slot, func, bus 248 arch/x86/kernel/aperture_64.c return read_agp(bus, slot, func, cap, bus 253 arch/x86/kernel/aperture_64.c type = read_pci_config_byte(bus, slot, func, bus 308 arch/x86/kernel/aperture_64.c int bus; bus 311 arch/x86/kernel/aperture_64.c bus = amd_nb_bus_dev_ranges[i].bus; bus 316 arch/x86/kernel/aperture_64.c if (!early_is_amd_nb(read_pci_config(bus, slot, 3, 0x00))) bus 319 arch/x86/kernel/aperture_64.c ctl = read_pci_config(bus, slot, 3, AMD64_GARTAPERTURECTL); bus 323 arch/x86/kernel/aperture_64.c aper_base = read_pci_config(bus, slot, 3, AMD64_GARTAPERTUREBASE) & 0x7fff; bus 364 arch/x86/kernel/aperture_64.c int bus; bus 367 arch/x86/kernel/aperture_64.c bus = amd_nb_bus_dev_ranges[i].bus; bus 372 arch/x86/kernel/aperture_64.c if (!early_is_amd_nb(read_pci_config(bus, slot, 3, 0x00))) bus 375 arch/x86/kernel/aperture_64.c ctl = read_pci_config(bus, slot, 3, AMD64_GARTAPERTURECTL); bus 377 arch/x86/kernel/aperture_64.c write_pci_config(bus, slot, 3, AMD64_GARTAPERTURECTL, ctl); bus 408 arch/x86/kernel/aperture_64.c int bus; bus 412 arch/x86/kernel/aperture_64.c bus = amd_nb_bus_dev_ranges[i].bus; bus 417 arch/x86/kernel/aperture_64.c if (!early_is_amd_nb(read_pci_config(bus, slot, 3, 0x00))) bus 424 arch/x86/kernel/aperture_64.c ctl = read_pci_config(bus, slot, 3, bus 434 arch/x86/kernel/aperture_64.c write_pci_config(bus, slot, 3, AMD64_GARTAPERTURECTL, ctl); bus 438 arch/x86/kernel/aperture_64.c aper_base = read_pci_config(bus, slot, 3, AMD64_GARTAPERTUREBASE) & 0x7fff; bus 533 arch/x86/kernel/aperture_64.c int bus, dev_base, dev_limit; bus 541 arch/x86/kernel/aperture_64.c bus = amd_nb_bus_dev_ranges[i].bus; bus 545 arch/x86/kernel/aperture_64.c if (!early_is_amd_nb(read_pci_config(bus, slot, 3, 0x00))) bus 548 arch/x86/kernel/aperture_64.c write_pci_config(bus, slot, 3, AMD64_GARTAPERTURECTL, ctl); bus 549 arch/x86/kernel/aperture_64.c write_pci_config(bus, slot, 3, AMD64_GARTAPERTUREBASE, aper_alloc >> 25); bus 800 arch/x86/kernel/apic/io_apic.c int bus = mp_irqs[idx].srcbus; bus 808 arch/x86/kernel/apic/io_apic.c if (test_bit(bus, mp_bus_not_pci)) bus 824 arch/x86/kernel/apic/io_apic.c static int eisa_irq_trigger(int idx, int bus, int trigger) bus 826 arch/x86/kernel/apic/io_apic.c switch (mp_bus_id_to_type[bus]) { bus 833 arch/x86/kernel/apic/io_apic.c pr_warn("IOAPIC: Invalid srcbus: %d defaulting to level\n", bus); bus 837 arch/x86/kernel/apic/io_apic.c static inline int eisa_irq_trigger(int idx, int bus, int trigger) bus 845 arch/x86/kernel/apic/io_apic.c int bus = mp_irqs[idx].srcbus; bus 854 arch/x86/kernel/apic/io_apic.c if (test_bit(bus, mp_bus_not_pci)) bus 859 arch/x86/kernel/apic/io_apic.c return eisa_irq_trigger(idx, bus, trigger); bus 1148 arch/x86/kernel/apic/io_apic.c int IO_APIC_get_PCI_irq_vector(int bus, int slot, int pin) bus 1154 arch/x86/kernel/apic/io_apic.c bus, slot, pin); bus 1155 arch/x86/kernel/apic/io_apic.c if (test_bit(bus, mp_bus_not_pci)) { bus 1157 arch/x86/kernel/apic/io_apic.c "PCI BIOS passed nonexistent PCI bus %d!\n", bus); bus 1165 arch/x86/kernel/apic/io_apic.c if (bus != lbus || mp_irqs[i].irqtype != mp_INT || bus 1065 arch/x86/kernel/apic/x2apic_uv_x.c int domain, bus, rc; bus 1073 arch/x86/kernel/apic/x2apic_uv_x.c domain = pci_domain_nr(pdev->bus); bus 1074 arch/x86/kernel/apic/x2apic_uv_x.c bus = pdev->bus->number; bus 1076 arch/x86/kernel/apic/x2apic_uv_x.c rc = uv_bios_set_legacy_vga_target(decode, domain, bus); bus 2285 arch/x86/kernel/cpu/mce/core.c dev->bus = &mce_subsys; bus 68 arch/x86/kernel/devicetree.c struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus) bus 80 arch/x86/kernel/devicetree.c if (bus->number == bus_min) bus 619 arch/x86/kernel/early-quirks.c static void __init apple_airport_reset(int bus, int slot, int func) bus 630 arch/x86/kernel/early-quirks.c pmcsr = read_pci_config_16(bus, slot, func, BCM4331_PM_CAP + PCI_PM_CTRL); bus 634 arch/x86/kernel/early-quirks.c write_pci_config_16(bus, slot, func, BCM4331_PM_CAP + PCI_PM_CTRL, pmcsr); bus 637 arch/x86/kernel/early-quirks.c pmcsr = read_pci_config_16(bus, slot, func, BCM4331_PM_CAP + PCI_PM_CTRL); bus 640 arch/x86/kernel/early-quirks.c bus, slot, func); bus 645 arch/x86/kernel/early-quirks.c addr = read_pci_config(bus, slot, func, PCI_BASE_ADDRESS_0); bus 646 arch/x86/kernel/early-quirks.c addr |= (u64)read_pci_config(bus, slot, func, PCI_BASE_ADDRESS_1) << 32; bus 652 arch/x86/kernel/early-quirks.c bus, slot, func); bus 724 arch/x86/kernel/early-quirks.c static void __init early_pci_scan_bus(int bus); bus 784 arch/x86/kernel/early-quirks.c static void __init early_pci_scan_bus(int bus) bus 792 arch/x86/kernel/early-quirks.c if (check_dev_quirk(bus, slot, func)) bus 224 arch/x86/kernel/early_printk.c u8 bus, slot, func; bus 245 arch/x86/kernel/early_printk.c bus = (u8)simple_strtoul(s, &e, 16); bus 265 arch/x86/kernel/early_printk.c cmdreg = read_pci_config(bus, slot, func, PCI_COMMAND); bus 266 arch/x86/kernel/early_printk.c classcode = read_pci_config(bus, slot, func, PCI_CLASS_REVISION); bus 267 arch/x86/kernel/early_printk.c bar0 = read_pci_config(bus, slot, func, PCI_BASE_ADDRESS_0); bus 287 arch/x86/kernel/early_printk.c write_pci_config(bus, slot, func, PCI_COMMAND, bus 296 arch/x86/kernel/early_printk.c write_pci_config(bus, slot, func, PCI_COMMAND, bus 22 arch/x86/kernel/mmconf-fam10h_64.c u32 bus; bus 56 arch/x86/kernel/mmconf-fam10h_64.c unsigned bus; bus 81 arch/x86/kernel/mmconf-fam10h_64.c bus = pci_probes[i].bus; bus 83 arch/x86/kernel/mmconf-fam10h_64.c id = read_pci_config(bus, slot, 0, PCI_VENDOR_ID); bus 123 arch/x86/kernel/mmconf-fam10h_64.c reg = read_pci_config(bus, slot, 1, 0x80 + (i << 3)); bus 128 arch/x86/kernel/mmconf-fam10h_64.c reg = read_pci_config(bus, slot, 1, 0x84 + (i << 3)); bus 350 arch/x86/kernel/mpparse.c struct mpc_bus bus; bus 352 arch/x86/kernel/mpparse.c bus.type = MP_BUS; bus 353 arch/x86/kernel/mpparse.c bus.busid = 0; bus 361 arch/x86/kernel/mpparse.c memcpy(bus.bustype, "ISA ", 6); bus 366 arch/x86/kernel/mpparse.c memcpy(bus.bustype, "EISA ", 6); bus 369 arch/x86/kernel/mpparse.c MP_bus_info(&bus); bus 371 arch/x86/kernel/mpparse.c bus.busid = 1; bus 372 arch/x86/kernel/mpparse.c memcpy(bus.bustype, "PCI ", 6); bus 373 arch/x86/kernel/mpparse.c MP_bus_info(&bus); bus 484 arch/x86/kernel/mpparse.c struct mpc_bus bus; bus 488 arch/x86/kernel/mpparse.c bus.type = MP_BUS; bus 489 arch/x86/kernel/mpparse.c bus.busid = 0; bus 490 arch/x86/kernel/mpparse.c memcpy(bus.bustype, "ISA ", 6); bus 491 arch/x86/kernel/mpparse.c MP_bus_info(&bus); bus 311 arch/x86/kernel/pci-calgary_64.c pbus = pdev->bus; bus 571 arch/x86/kernel/pci-calgary_64.c unsigned char bus = tbl->it_busno; bus 575 arch/x86/kernel/pci-calgary_64.c "sequence - count %d\n", bus, count); bus 578 arch/x86/kernel/pci-calgary_64.c target = calgary_reg(bbar, phb_offset(bus) | PHB_PAGE_MIG_CTRL); bus 587 arch/x86/kernel/pci-calgary_64.c target = calgary_reg(bbar, split_queue_offset(bus)); bus 596 arch/x86/kernel/pci-calgary_64.c target = calgary_reg(bbar, phb_offset(bus) | PHB_PAGE_MIG_DEBUG); bus 611 arch/x86/kernel/pci-calgary_64.c target = calgary_reg(bbar, phb_offset(bus) | PHB_PAGE_MIG_CTRL); bus 615 arch/x86/kernel/pci-calgary_64.c target = calgary_reg(bbar, phb_offset(bus) | PHB_PAGE_MIG_DEBUG); bus 621 arch/x86/kernel/pci-calgary_64.c target = calgary_reg(bbar, tar_offset(bus)); bus 626 arch/x86/kernel/pci-calgary_64.c target = calgary_reg(bbar, phb_offset(bus) | PHB_PAGE_MIG_CTRL); bus 632 arch/x86/kernel/pci-calgary_64.c target = calgary_reg(bbar, phb_offset(bus) | PHB_PAGE_MIG_CTRL); bus 649 arch/x86/kernel/pci-calgary_64.c iommu_range_reserve(pci_iommu(dev->bus), start, numpages); bus 657 arch/x86/kernel/pci-calgary_64.c struct iommu_table *tbl = pci_iommu(dev->bus); bus 658 arch/x86/kernel/pci-calgary_64.c unsigned char busnum = dev->bus->number; bus 681 arch/x86/kernel/pci-calgary_64.c struct iommu_table *tbl = pci_iommu(dev->bus); bus 682 arch/x86/kernel/pci-calgary_64.c unsigned char busnum = dev->bus->number; bus 717 arch/x86/kernel/pci-calgary_64.c struct iommu_table *tbl = pci_iommu(dev->bus); bus 748 arch/x86/kernel/pci-calgary_64.c tbl = pci_iommu(dev->bus); bus 749 arch/x86/kernel/pci-calgary_64.c tbl->it_base = (unsigned long)bus_info[dev->bus->number].tce_space; bus 766 arch/x86/kernel/pci-calgary_64.c target = calgary_reg(bbar, tar_offset(dev->bus->number)); bus 789 arch/x86/kernel/pci-calgary_64.c struct iommu_table *tbl = pci_iommu(dev->bus); bus 793 arch/x86/kernel/pci-calgary_64.c target = calgary_reg(tbl->bbar, tar_offset(dev->bus->number)); bus 805 arch/x86/kernel/pci-calgary_64.c set_pci_iommu(dev->bus, NULL); bus 808 arch/x86/kernel/pci-calgary_64.c bus_info[dev->bus->number].tce_space = NULL; bus 938 arch/x86/kernel/pci-calgary_64.c unsigned char busnum = dev->bus->number; bus 954 arch/x86/kernel/pci-calgary_64.c unsigned char busnum = dev->bus->number; bus 973 arch/x86/kernel/pci-calgary_64.c busnum = dev->bus->number; bus 974 arch/x86/kernel/pci-calgary_64.c tbl = pci_iommu(dev->bus); bus 1003 arch/x86/kernel/pci-calgary_64.c busnum = dev->bus->number; bus 1004 arch/x86/kernel/pci-calgary_64.c tbl = pci_iommu(dev->bus); bus 1022 arch/x86/kernel/pci-calgary_64.c set_pci_iommu(dev->bus, NULL); bus 1025 arch/x86/kernel/pci-calgary_64.c if (dev->bus->parent) bus 1026 arch/x86/kernel/pci-calgary_64.c dev->bus->parent->self = dev; bus 1028 arch/x86/kernel/pci-calgary_64.c dev->bus->self = dev; bus 1037 arch/x86/kernel/pci-calgary_64.c bbar = busno_to_bbar(dev->bus->number); bus 1044 arch/x86/kernel/pci-calgary_64.c if (dev->bus->parent) { bus 1045 arch/x86/kernel/pci-calgary_64.c if (dev->bus->parent->self) bus 1048 arch/x86/kernel/pci-calgary_64.c dev->bus->parent->self = dev; bus 1050 arch/x86/kernel/pci-calgary_64.c dev->bus->self = dev; bus 1052 arch/x86/kernel/pci-calgary_64.c tbl = pci_iommu(dev->bus); bus 1066 arch/x86/kernel/pci-calgary_64.c int rioidx, phb, bus; bus 1095 arch/x86/kernel/pci-calgary_64.c for (bus = start_bus; bus <= end_bus; bus++) { bus 1096 arch/x86/kernel/pci-calgary_64.c bus_info[bus].bbar = bbar; bus 1097 arch/x86/kernel/pci-calgary_64.c bus_info[bus].phbid = phb; bus 1110 arch/x86/kernel/pci-calgary_64.c for (bus = 0; bus < ARRAY_SIZE(bus_info); bus++) bus 1111 arch/x86/kernel/pci-calgary_64.c if (bus_info[bus].bbar) bus 1112 arch/x86/kernel/pci-calgary_64.c iounmap(bus_info[bus].bbar); bus 1138 arch/x86/kernel/pci-calgary_64.c info = &bus_info[dev->bus->number]; bus 1172 arch/x86/kernel/pci-calgary_64.c info = &bus_info[dev->bus->number]; bus 1260 arch/x86/kernel/pci-calgary_64.c static int __init calgary_bus_has_devices(int bus, unsigned short pci_dev) bus 1274 arch/x86/kernel/pci-calgary_64.c val = read_pci_config(bus, dev, 0, 0); bus 1305 arch/x86/kernel/pci-calgary_64.c int bus; bus 1309 arch/x86/kernel/pci-calgary_64.c for (bus = 0; bus < MAX_PHB_BUS_NUM; bus++) { bus 1310 arch/x86/kernel/pci-calgary_64.c struct calgary_bus_info *info = &bus_info[bus]; bus 1314 arch/x86/kernel/pci-calgary_64.c val = read_pci_config(bus, 0, 0, 0); bus 1322 arch/x86/kernel/pci-calgary_64.c if (calgary_bus_has_devices(bus, pci_device) || bus 1324 arch/x86/kernel/pci-calgary_64.c target = calgary_reg(bus_info[bus].bbar, bus 1325 arch/x86/kernel/pci-calgary_64.c tar_offset(bus)); bus 1355 arch/x86/kernel/pci-calgary_64.c int bus; bus 1410 arch/x86/kernel/pci-calgary_64.c for (bus = 0; bus < MAX_PHB_BUS_NUM; bus++) { bus 1411 arch/x86/kernel/pci-calgary_64.c struct calgary_bus_info *info = &bus_info[bus]; bus 1415 arch/x86/kernel/pci-calgary_64.c val = read_pci_config(bus, 0, 0, 0); bus 1424 arch/x86/kernel/pci-calgary_64.c if (calgary_bus_has_devices(bus, pci_device) || bus 1455 arch/x86/kernel/pci-calgary_64.c for (--bus; bus >= 0; --bus) { bus 1456 arch/x86/kernel/pci-calgary_64.c struct calgary_bus_info *info = &bus_info[bus]; bus 1528 arch/x86/kernel/pci-calgary_64.c tbl = pci_iommu(dev->bus); bus 1566 arch/x86/kernel/pci-calgary_64.c info = &bus_info[dev->bus->number]; bus 35 arch/x86/kernel/quirks.c pci_bus_read_config_word(dev->bus, PCI_DEVFN(8, 0), 0x4c, &word); bus 544 arch/x86/kernel/quirks.c nb_ht = pci_get_slot(dev->bus, devfn); bus 549 arch/x86/kernel/quirks.c node = pcibus_to_node(dev->bus) | (val & 7); bus 91 arch/x86/kernel/tce_64.c tbl->it_busno = dev->bus->number; bus 127 arch/x86/kernel/tce_64.c if (pci_iommu(dev->bus)) { bus 129 arch/x86/kernel/tce_64.c dev, pci_iommu(dev->bus)); bus 146 arch/x86/kernel/tce_64.c set_pci_iommu(dev->bus, tbl); bus 331 arch/x86/pci/acpi.c struct pci_bus *bus; bus 343 arch/x86/pci/acpi.c bus = pci_find_bus(domain, busnum); bus 344 arch/x86/pci/acpi.c if (bus) { bus 355 arch/x86/pci/acpi.c memcpy(bus->sysdata, &sd, sizeof(sd)); bus 368 arch/x86/pci/acpi.c bus = acpi_pci_root_create(root, &acpi_pci_root_ops, bus 376 arch/x86/pci/acpi.c if (bus) { bus 378 arch/x86/pci/acpi.c list_for_each_entry(child, &bus->children, node) bus 382 arch/x86/pci/acpi.c return bus; bus 394 arch/x86/pci/acpi.c struct pci_sysdata *sd = bridge->bus->sysdata; bus 23 arch/x86/pci/amd_bus.c u32 bus; bus 63 arch/x86/pci/amd_bus.c unsigned bus; bus 90 arch/x86/pci/amd_bus.c bus = hb_probes[i].bus; bus 92 arch/x86/pci/amd_bus.c id = read_pci_config(bus, slot, 0, PCI_VENDOR_ID); bus 117 arch/x86/pci/amd_bus.c reg = read_pci_config(bus, slot, 1, bus 144 arch/x86/pci/amd_bus.c reg = read_pci_config(bus, slot, 0, AMD_NB_F0_NODE_ID); bus 146 arch/x86/pci/amd_bus.c reg = read_pci_config(bus, slot, 0, AMD_NB_F0_UNIT_ID); bus 153 arch/x86/pci/amd_bus.c reg = read_pci_config(bus, slot, 1, 0xc0 + (i << 3)); bus 158 arch/x86/pci/amd_bus.c reg = read_pci_config(bus, slot, 1, 0xc4 + (i << 3)); bus 219 arch/x86/pci/amd_bus.c reg = read_pci_config(bus, slot, 1, 0x80 + (i << 3)); bus 225 arch/x86/pci/amd_bus.c reg = read_pci_config(bus, slot, 1, 0x84 + (i << 3)); bus 350 arch/x86/pci/amd_bus.c u8 bus = amd_nb_bus_dev_ranges[i].bus; bus 355 arch/x86/pci/amd_bus.c u32 val = read_pci_config(bus, slot, 3, 0); bus 360 arch/x86/pci/amd_bus.c val = read_pci_config(bus, slot, 3, 0x8c); bus 363 arch/x86/pci/amd_bus.c write_pci_config(bus, slot, 3, 0x8c, val); bus 18 arch/x86/pci/broadcom_bus.c static void __init cnb20le_res(u8 bus, u8 slot, u8 func) bus 27 arch/x86/pci/broadcom_bus.c fbus = read_pci_config_byte(bus, slot, func, 0x44); bus 28 arch/x86/pci/broadcom_bus.c lbus = read_pci_config_byte(bus, slot, func, 0x45); bus 46 arch/x86/pci/broadcom_bus.c word1 = read_pci_config_16(bus, slot, func, 0xc0); bus 47 arch/x86/pci/broadcom_bus.c word2 = read_pci_config_16(bus, slot, func, 0xc2); bus 56 arch/x86/pci/broadcom_bus.c word1 = read_pci_config_16(bus, slot, func, 0xc4); bus 57 arch/x86/pci/broadcom_bus.c word2 = read_pci_config_16(bus, slot, func, 0xc6); bus 66 arch/x86/pci/broadcom_bus.c word1 = read_pci_config_16(bus, slot, func, 0xd0); bus 67 arch/x86/pci/broadcom_bus.c word2 = read_pci_config_16(bus, slot, func, 0xd2); bus 87 arch/x86/pci/broadcom_bus.c u8 bus = 0, slot = 0; bus 100 arch/x86/pci/broadcom_bus.c id = read_pci_config(bus, slot, 0, PCI_VENDOR_ID); bus 106 arch/x86/pci/broadcom_bus.c cnb20le_res(bus, slot, 0); bus 107 arch/x86/pci/broadcom_bus.c cnb20le_res(bus, slot, 1); bus 10 arch/x86/pci/bus_numa.c static struct pci_root_info *x86_find_pci_root_info(int bus) bus 15 arch/x86/pci/bus_numa.c if (info->busn.start == bus) bus 21 arch/x86/pci/bus_numa.c int x86_pci_root_bus_node(int bus) bus 23 arch/x86/pci/bus_numa.c struct pci_root_info *info = x86_find_pci_root_info(bus); bus 31 arch/x86/pci/bus_numa.c void x86_pci_root_bus_resources(int bus, struct list_head *resources) bus 33 arch/x86/pci/bus_numa.c struct pci_root_info *info = x86_find_pci_root_info(bus); bus 42 arch/x86/pci/bus_numa.c bus); bus 65 arch/x86/pci/bus_numa.c printk(KERN_DEBUG "PCI: root bus %02x: using default resources\n", bus); bus 263 arch/x86/pci/ce4100.c static int ce4100_conf_read(unsigned int seg, unsigned int bus, bus 268 arch/x86/pci/ce4100.c if (bus == 1 && !ce4100_bus1_read(devfn, reg, len, value)) bus 271 arch/x86/pci/ce4100.c if (bus == 0 && (PCI_DEVFN(1, 0) == devfn) && bus 275 arch/x86/pci/ce4100.c return pci_direct_conf1.read(seg, bus, devfn, reg, len, value); bus 297 arch/x86/pci/ce4100.c static int ce4100_conf_write(unsigned int seg, unsigned int bus, bus 302 arch/x86/pci/ce4100.c if (bus == 1 && !ce4100_bus1_write(devfn, reg, len, value)) bus 306 arch/x86/pci/ce4100.c if (bus == 0 && PCI_DEVFN(1, 0) == devfn && bus 310 arch/x86/pci/ce4100.c return pci_direct_conf1.write(seg, bus, devfn, reg, len, value); bus 39 arch/x86/pci/common.c int raw_pci_read(unsigned int domain, unsigned int bus, unsigned int devfn, bus 43 arch/x86/pci/common.c return raw_pci_ops->read(domain, bus, devfn, reg, len, val); bus 45 arch/x86/pci/common.c return raw_pci_ext_ops->read(domain, bus, devfn, reg, len, val); bus 49 arch/x86/pci/common.c int raw_pci_write(unsigned int domain, unsigned int bus, unsigned int devfn, bus 53 arch/x86/pci/common.c return raw_pci_ops->write(domain, bus, devfn, reg, len, val); bus 55 arch/x86/pci/common.c return raw_pci_ext_ops->write(domain, bus, devfn, reg, len, val); bus 59 arch/x86/pci/common.c static int pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value) bus 61 arch/x86/pci/common.c return raw_pci_read(pci_domain_nr(bus), bus->number, bus 65 arch/x86/pci/common.c static int pci_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) bus 67 arch/x86/pci/common.c return raw_pci_write(pci_domain_nr(bus), bus->number, bus 172 arch/x86/pci/common.c void pcibios_add_bus(struct pci_bus *bus) bus 174 arch/x86/pci/common.c acpi_pci_add_bus(bus); bus 177 arch/x86/pci/common.c void pcibios_remove_bus(struct pci_bus *bus) bus 179 arch/x86/pci/common.c acpi_pci_remove_bus(bus); bus 459 arch/x86/pci/common.c struct pci_bus *bus; bus 471 arch/x86/pci/common.c bus = pci_scan_root_bus(NULL, busnum, &pci_root_ops, sd, &resources); bus 472 arch/x86/pci/common.c if (!bus) { bus 477 arch/x86/pci/common.c pci_bus_add_devices(bus); bus 654 arch/x86/pci/common.c if (pci_domain_nr(pdev->bus) == domain->domain_nr) { bus 667 arch/x86/pci/common.c if (is_vmd(pdev->bus)) bus 686 arch/x86/pci/common.c if ((pci_domain_nr(dev->bus) == rom->segment) && bus 687 arch/x86/pci/common.c (dev->bus->number == rom->bus) && bus 17 arch/x86/pci/direct.c #define PCI_CONF1_ADDRESS(bus, devfn, reg) \ bus 18 arch/x86/pci/direct.c (0x80000000 | ((reg & 0xF00) << 16) | (bus << 16) \ bus 21 arch/x86/pci/direct.c static int pci_conf1_read(unsigned int seg, unsigned int bus, bus 26 arch/x86/pci/direct.c if (seg || (bus > 255) || (devfn > 255) || (reg > 4095)) { bus 33 arch/x86/pci/direct.c outl(PCI_CONF1_ADDRESS(bus, devfn, reg), 0xCF8); bus 52 arch/x86/pci/direct.c static int pci_conf1_write(unsigned int seg, unsigned int bus, bus 57 arch/x86/pci/direct.c if (seg || (bus > 255) || (devfn > 255) || (reg > 4095)) bus 62 arch/x86/pci/direct.c outl(PCI_CONF1_ADDRESS(bus, devfn, reg), 0xCF8); bus 95 arch/x86/pci/direct.c static int pci_conf2_read(unsigned int seg, unsigned int bus, bus 102 arch/x86/pci/direct.c if ((bus > 255) || (devfn > 255) || (reg > 255)) { bus 116 arch/x86/pci/direct.c outb((u8)bus, 0xCFA); bus 137 arch/x86/pci/direct.c static int pci_conf2_write(unsigned int seg, unsigned int bus, bus 144 arch/x86/pci/direct.c if ((bus > 255) || (devfn > 255) || (reg > 255)) bus 156 arch/x86/pci/direct.c outb((u8)bus, 0xCFA); bus 11 arch/x86/pci/early.c u32 read_pci_config(u8 bus, u8 slot, u8 func, u8 offset) bus 14 arch/x86/pci/early.c outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); bus 19 arch/x86/pci/early.c u8 read_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset) bus 22 arch/x86/pci/early.c outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); bus 27 arch/x86/pci/early.c u16 read_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset) bus 30 arch/x86/pci/early.c outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); bus 35 arch/x86/pci/early.c void write_pci_config(u8 bus, u8 slot, u8 func, u8 offset, bus 38 arch/x86/pci/early.c outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); bus 42 arch/x86/pci/early.c void write_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset, u8 val) bus 44 arch/x86/pci/early.c outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); bus 48 arch/x86/pci/early.c void write_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset, u16 val) bus 50 arch/x86/pci/early.c outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); bus 205 arch/x86/pci/fixup.c static int quirk_pcie_aspm_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value) bus 207 arch/x86/pci/fixup.c return raw_pci_read(pci_domain_nr(bus), bus->number, bus 215 arch/x86/pci/fixup.c static int quirk_pcie_aspm_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) bus 219 arch/x86/pci/fixup.c offset = quirk_aspm_offset[GET_INDEX(bus->self->device, devfn)]; bus 224 arch/x86/pci/fixup.c return raw_pci_write(pci_domain_nr(bus), bus->number, bus 314 arch/x86/pci/fixup.c struct pci_bus *bus; bus 319 arch/x86/pci/fixup.c bus = pdev->bus; bus 320 arch/x86/pci/fixup.c while (bus) { bus 321 arch/x86/pci/fixup.c bridge = bus->self; bus 336 arch/x86/pci/fixup.c bus = bus->parent; bus 626 arch/x86/pci/fixup.c pdev->bus->number != 0 || pdev->devfn != PCI_DEVFN(0x1c, 0)) bus 647 arch/x86/pci/fixup.c if (is_vmd(pdev->bus) && pci_is_root_bus(pdev->bus)) bus 648 arch/x86/pci/fixup.c pdev->bus->bus_flags |= PCI_BUS_FLAGS_NO_AERSID; bus 757 arch/x86/pci/fixup.c pci_bus_add_resource(dev->bus, res, 0); bus 136 arch/x86/pci/i386.c !(dev->bus->bridge_ctl & PCI_BRIDGE_CTL_ISA)) bus 233 arch/x86/pci/i386.c static void pcibios_allocate_bus_resources(struct pci_bus *bus) bus 238 arch/x86/pci/i386.c if (bus->self) bus 239 arch/x86/pci/i386.c pcibios_allocate_bridge_resources(bus->self); bus 240 arch/x86/pci/i386.c list_for_each_entry(child, &bus->children, node) bus 307 arch/x86/pci/i386.c static void pcibios_allocate_resources(struct pci_bus *bus, int pass) bus 312 arch/x86/pci/i386.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 341 arch/x86/pci/i386.c static void pcibios_allocate_rom_resources(struct pci_bus *bus) bus 346 arch/x86/pci/i386.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 357 arch/x86/pci/i386.c struct pci_bus *bus; bus 360 arch/x86/pci/i386.c list_for_each_entry(bus, &pci_root_buses, node) bus 361 arch/x86/pci/i386.c pcibios_allocate_rom_resources(bus); bus 375 arch/x86/pci/i386.c void pcibios_resource_survey_bus(struct pci_bus *bus) bus 377 arch/x86/pci/i386.c dev_printk(KERN_DEBUG, &bus->dev, "Allocating resources\n"); bus 379 arch/x86/pci/i386.c pcibios_allocate_bus_resources(bus); bus 381 arch/x86/pci/i386.c pcibios_allocate_resources(bus, 0); bus 382 arch/x86/pci/i386.c pcibios_allocate_resources(bus, 1); bus 385 arch/x86/pci/i386.c pcibios_allocate_rom_resources(bus); bus 390 arch/x86/pci/i386.c struct pci_bus *bus; bus 394 arch/x86/pci/i386.c list_for_each_entry(bus, &pci_root_buses, node) bus 395 arch/x86/pci/i386.c pcibios_allocate_bus_resources(bus); bus 397 arch/x86/pci/i386.c list_for_each_entry(bus, &pci_root_buses, node) bus 398 arch/x86/pci/i386.c pcibios_allocate_resources(bus, 0); bus 399 arch/x86/pci/i386.c list_for_each_entry(bus, &pci_root_buses, node) bus 400 arch/x86/pci/i386.c pcibios_allocate_resources(bus, 1); bus 62 arch/x86/pci/intel_mid_pci.c static int fixed_bar_cap(struct pci_bus *bus, unsigned int devfn) bus 73 arch/x86/pci/intel_mid_pci.c if (raw_pci_ext_ops->read(pci_domain_nr(bus), bus->number, bus 82 arch/x86/pci/intel_mid_pci.c raw_pci_ext_ops->read(pci_domain_nr(bus), bus->number, bus 94 arch/x86/pci/intel_mid_pci.c static int pci_device_update_fixed(struct pci_bus *bus, unsigned int devfn, bus 101 arch/x86/pci/intel_mid_pci.c domain = pci_domain_nr(bus); bus 102 arch/x86/pci/intel_mid_pci.c busnum = bus->number; bus 148 arch/x86/pci/intel_mid_pci.c static bool type1_access_ok(unsigned int bus, unsigned int devfn, int reg) bus 160 arch/x86/pci/intel_mid_pci.c if (bus == 0 && (devfn == PCI_DEVFN(2, 0) bus 167 arch/x86/pci/intel_mid_pci.c static int pci_read(struct pci_bus *bus, unsigned int devfn, int where, bus 170 arch/x86/pci/intel_mid_pci.c if (type1_access_ok(bus->number, devfn, where)) bus 171 arch/x86/pci/intel_mid_pci.c return pci_direct_conf1.read(pci_domain_nr(bus), bus->number, bus 173 arch/x86/pci/intel_mid_pci.c return raw_pci_ext_ops->read(pci_domain_nr(bus), bus->number, bus 177 arch/x86/pci/intel_mid_pci.c static int pci_write(struct pci_bus *bus, unsigned int devfn, int where, bus 195 arch/x86/pci/intel_mid_pci.c offset = fixed_bar_cap(bus, devfn); bus 198 arch/x86/pci/intel_mid_pci.c return pci_device_update_fixed(bus, devfn, where, size, value, bus 207 arch/x86/pci/intel_mid_pci.c if (type1_access_ok(bus->number, devfn, where)) bus 208 arch/x86/pci/intel_mid_pci.c return pci_direct_conf1.write(pci_domain_nr(bus), bus->number, bus 210 arch/x86/pci/intel_mid_pci.c return raw_pci_ext_ops->write(pci_domain_nr(bus), bus->number, devfn, bus 323 arch/x86/pci/intel_mid_pci.c if (type1_access_ok(dev->bus->number, dev->devfn, PCI_DEVICE_ID)) bus 380 arch/x86/pci/intel_mid_pci.c offset = fixed_bar_cap(dev->bus, dev->devfn); bus 132 arch/x86/pci/irq.c DBG(KERN_DEBUG "%02x:%02x slot=%02x", e->bus, e->devfn/8, e->slot); bus 138 arch/x86/pci/irq.c busmap[e->bus] = 1; bus 875 arch/x86/pci/irq.c if (info->bus == dev->bus->number && bus 1216 arch/x86/pci/irq.c irq = IO_APIC_get_PCI_irq_vector(dev->bus->number, bus 1225 arch/x86/pci/irq.c while (irq < 0 && dev->bus->parent) { /* go back to the bridge */ bus 1226 arch/x86/pci/irq.c struct pci_dev *bridge = dev->bus->self; bus 1229 arch/x86/pci/irq.c irq = IO_APIC_get_PCI_irq_vector(bridge->bus->number, bus 118 arch/x86/pci/mmconfig-shared.c struct pci_mmcfg_region *pci_mmconfig_lookup(int segment, int bus) bus 124 arch/x86/pci/mmconfig-shared.c cfg->start_bus <= bus && bus <= cfg->end_bus) bus 242 arch/x86/pci/mmconfig-shared.c int bus; bus 267 arch/x86/pci/mmconfig-shared.c for (bus = 0; bus < 256; bus++) { bus 273 arch/x86/pci/mmconfig-shared.c raw_pci_ops->read(0, bus, PCI_DEVFN(0, 0), 0, 4, &l); bus 280 arch/x86/pci/mmconfig-shared.c raw_pci_ops->read(0, bus, PCI_DEVFN(0, 0), extcfg_regnum, bus 304 arch/x86/pci/mmconfig-shared.c u32 bus; bus 346 arch/x86/pci/mmconfig-shared.c u32 bus, devfn; bus 357 arch/x86/pci/mmconfig-shared.c bus = pci_mmcfg_probes[i].bus; bus 359 arch/x86/pci/mmconfig-shared.c raw_pci_ops->read(0, bus, devfn, 0, 4, &l); bus 27 arch/x86/pci/mmconfig_32.c static u32 get_base_addr(unsigned int seg, int bus, unsigned devfn) bus 29 arch/x86/pci/mmconfig_32.c struct pci_mmcfg_region *cfg = pci_mmconfig_lookup(seg, bus); bus 39 arch/x86/pci/mmconfig_32.c static void pci_exp_set_dev_base(unsigned int base, int bus, int devfn) bus 41 arch/x86/pci/mmconfig_32.c u32 dev_base = base | PCI_MMCFG_BUS_OFFSET(bus) | (devfn << 12); bus 51 arch/x86/pci/mmconfig_32.c static int pci_mmcfg_read(unsigned int seg, unsigned int bus, bus 57 arch/x86/pci/mmconfig_32.c if ((bus > 255) || (devfn > 255) || (reg > 4095)) { bus 63 arch/x86/pci/mmconfig_32.c base = get_base_addr(seg, bus, devfn); bus 71 arch/x86/pci/mmconfig_32.c pci_exp_set_dev_base(base, bus, devfn); bus 90 arch/x86/pci/mmconfig_32.c static int pci_mmcfg_write(unsigned int seg, unsigned int bus, bus 96 arch/x86/pci/mmconfig_32.c if ((bus > 255) || (devfn > 255) || (reg > 4095)) bus 100 arch/x86/pci/mmconfig_32.c base = get_base_addr(seg, bus, devfn); bus 108 arch/x86/pci/mmconfig_32.c pci_exp_set_dev_base(base, bus, devfn); bus 19 arch/x86/pci/mmconfig_64.c static char __iomem *pci_dev_base(unsigned int seg, unsigned int bus, unsigned int devfn) bus 21 arch/x86/pci/mmconfig_64.c struct pci_mmcfg_region *cfg = pci_mmconfig_lookup(seg, bus); bus 24 arch/x86/pci/mmconfig_64.c return cfg->virt + (PCI_MMCFG_BUS_OFFSET(bus) | (devfn << 12)); bus 28 arch/x86/pci/mmconfig_64.c static int pci_mmcfg_read(unsigned int seg, unsigned int bus, bus 34 arch/x86/pci/mmconfig_64.c if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) { bus 40 arch/x86/pci/mmconfig_64.c addr = pci_dev_base(seg, bus, devfn); bus 62 arch/x86/pci/mmconfig_64.c static int pci_mmcfg_write(unsigned int seg, unsigned int bus, bus 68 arch/x86/pci/mmconfig_64.c if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) bus 72 arch/x86/pci/mmconfig_64.c addr = pci_dev_base(seg, bus, devfn); bus 21 arch/x86/pci/numachip.c static inline char __iomem *pci_dev_base(unsigned int seg, unsigned int bus, unsigned int devfn) bus 23 arch/x86/pci/numachip.c struct pci_mmcfg_region *cfg = pci_mmconfig_lookup(seg, bus); bus 26 arch/x86/pci/numachip.c return cfg->virt + (PCI_MMCFG_BUS_OFFSET(bus) | (devfn << 12)); bus 30 arch/x86/pci/numachip.c static int pci_mmcfg_read_numachip(unsigned int seg, unsigned int bus, bus 36 arch/x86/pci/numachip.c if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) { bus 42 arch/x86/pci/numachip.c if (unlikely(bus == 0 && devfn >= limit)) { bus 48 arch/x86/pci/numachip.c addr = pci_dev_base(seg, bus, devfn); bus 70 arch/x86/pci/numachip.c static int pci_mmcfg_write_numachip(unsigned int seg, unsigned int bus, bus 76 arch/x86/pci/numachip.c if (unlikely((bus > 255) || (devfn > 255) || (reg > 4095))) bus 80 arch/x86/pci/numachip.c if (unlikely(bus == 0 && devfn >= limit)) bus 84 arch/x86/pci/numachip.c addr = pci_dev_base(seg, bus, devfn); bus 173 arch/x86/pci/olpc.c static int is_simulated(unsigned int bus, unsigned int devfn) bus 175 arch/x86/pci/olpc.c return (!bus && ((PCI_SLOT(devfn) == NB_SLOT) || bus 200 arch/x86/pci/olpc.c static int pci_olpc_read(unsigned int seg, unsigned int bus, bus 208 arch/x86/pci/olpc.c if (!is_simulated(bus, devfn)) bus 209 arch/x86/pci/olpc.c return pci_direct_conf1.read(seg, bus, devfn, reg, len, value); bus 262 arch/x86/pci/olpc.c static int pci_olpc_write(unsigned int seg, unsigned int bus, bus 268 arch/x86/pci/olpc.c if (!is_simulated(bus, devfn)) bus 269 arch/x86/pci/olpc.c return pci_direct_conf1.write(seg, bus, devfn, reg, len, value); bus 183 arch/x86/pci/pcbios.c static int pci_bios_read(unsigned int seg, unsigned int bus, bus 188 arch/x86/pci/pcbios.c unsigned long bx = (bus << 8) | devfn; bus 192 arch/x86/pci/pcbios.c if (!value || (bus > 255) || (devfn > 255) || (reg > 255)) bus 233 arch/x86/pci/pcbios.c static int pci_bios_write(unsigned int seg, unsigned int bus, bus 238 arch/x86/pci/pcbios.c unsigned long bx = (bus << 8) | devfn; bus 242 arch/x86/pci/pcbios.c if ((bus > 255) || (devfn > 255) || (reg > 255)) bus 415 arch/x86/pci/pcbios.c "b" ((dev->bus->number << 8) | dev->devfn), bus 77 arch/x86/pci/sta2x11-fixup.c ep = pdev->bus->number - instance->bus0; bus 92 arch/x86/pci/sta2x11-fixup.c return pdev->bus->number - instance->bus0; bus 287 arch/x86/pci/xen.c map_irq.bus = dev->bus->number | bus 288 arch/x86/pci/xen.c (pci_domain_nr(dev->bus) << 16); bus 325 arch/x86/pci/xen.c if (ret == -EINVAL && !pci_domain_nr(dev->bus)) { bus 329 arch/x86/pci/xen.c map_irq.bus = dev->bus->number; bus 360 arch/x86/pci/xen.c restore_ext.seg = pci_domain_nr(dev->bus); bus 361 arch/x86/pci/xen.c restore_ext.bus = dev->bus->number; bus 372 arch/x86/pci/xen.c restore.bus = dev->bus->number; bus 251 arch/x86/platform/intel-mid/sfi.c static void __init intel_scu_i2c_device_register(int bus, bus 269 arch/x86/platform/intel-mid/sfi.c i2c_bus[i2c_next_dev] = bus; bus 180 arch/x86/platform/uv/bios_uv.c int uv_bios_set_legacy_vga_target(bool decode, int domain, int bus) bus 183 arch/x86/platform/uv/bios_uv.c (u64)decode, (u64)domain, (u64)bus, 0, 0); bus 36 arch/xtensa/include/asm/pci-bridge.h struct pci_bus *bus; bus 61 arch/xtensa/kernel/pci.c void pcibios_fixup_bus(struct pci_bus *bus) bus 63 arch/xtensa/kernel/pci.c if (bus->parent) { bus 65 arch/xtensa/kernel/pci.c pci_read_bridge_bases(bus); bus 230 arch/xtensa/lib/pci-auto.c pciauto_dev.bus = &pciauto_bus; bus 1633 drivers/acpi/acpi_video.c struct acpi_video_bus *bus; bus 1641 drivers/acpi/acpi_video.c bus = video_device->video; bus 1642 drivers/acpi/acpi_video.c input = bus->input; bus 282 drivers/acpi/acpica/evrgnini.c pci_id->bus = ACPI_LOWORD(pci_value); bus 364 drivers/acpi/acpica/exregion.c function, bit_width, pci_id->segment, pci_id->bus, bus 217 drivers/acpi/acpica/hwpci.c pci_id->segment, pci_id->bus, pci_id->device, bus 220 drivers/acpi/acpica/hwpci.c bus_number = pci_id->bus; bus 243 drivers/acpi/acpica/hwpci.c pci_id->segment, pci_id->bus, pci_id->device, bus 336 drivers/acpi/acpica/hwpci.c pci_id->bus = *bus_number; bus 371 drivers/acpi/acpica/hwpci.c pci_id->bus = (u16)pci_value; bus 485 drivers/acpi/apei/ghes.c pcie_err->device_id.bus, bus 284 drivers/acpi/arm64/iort.c struct pci_bus *bus; bus 286 drivers/acpi/arm64/iort.c bus = to_pci_bus(dev); bus 294 drivers/acpi/arm64/iort.c status = pci_rc->pci_segment_number == pci_domain_nr(bus) ? bus 511 drivers/acpi/arm64/iort.c pbus = to_pci_dev(dev)->bus; bus 779 drivers/acpi/arm64/iort.c if (dev->bus && !device_iommu_mapped(dev)) bus 951 drivers/acpi/arm64/iort.c struct pci_bus *bus = to_pci_dev(dev)->bus; bus 955 drivers/acpi/arm64/iort.c iort_match_node_callback, &bus->dev); bus 1036 drivers/acpi/arm64/iort.c struct pci_bus *pbus = to_pci_dev(dev)->bus; bus 855 drivers/acpi/bus.c driver->drv.bus = &acpi_bus_type; bus 63 drivers/acpi/container.c dev->bus = &container_subsys; bus 803 drivers/acpi/osl.c result = raw_pci_read(pci_id->segment, pci_id->bus, bus 831 drivers/acpi/osl.c result = raw_pci_write(pci_id->segment, pci_id->bus, bus 86 drivers/acpi/pci_irq.c unsigned int bus; bus 124 drivers/acpi/pci_irq.c entry->id.bus == quirk->bus && bus 132 drivers/acpi/pci_irq.c entry->id.segment, entry->id.bus, bus 144 drivers/acpi/pci_irq.c int segment = pci_domain_nr(dev->bus); bus 145 drivers/acpi/pci_irq.c int bus = dev->bus->number; bus 146 drivers/acpi/pci_irq.c int device = pci_ari_enabled(dev->bus) ? 0 : PCI_SLOT(dev->devfn); bus 163 drivers/acpi/pci_irq.c entry->id.bus = bus; bus 197 drivers/acpi/pci_irq.c entry->id.segment, entry->id.bus, bus 214 drivers/acpi/pci_irq.c if (dev->bus->bridge) bus 215 drivers/acpi/pci_irq.c handle = ACPI_HANDLE(dev->bus->bridge); bus 247 drivers/acpi/pci_irq.c static int bridge_has_boot_interrupt_variant(struct pci_bus *bus) bus 251 drivers/acpi/pci_irq.c for (bus_it = bus ; bus_it ; bus_it = bus_it->parent) { bus 273 drivers/acpi/pci_irq.c switch (bridge_has_boot_interrupt_variant(dev->bus)) { bus 319 drivers/acpi/pci_irq.c bridge = dev->bus->self; bus 345 drivers/acpi/pci_irq.c bridge = dev->bus->self; bus 300 drivers/acpi/pci_root.c pbus = root->bus; bus 524 drivers/acpi/pci_root.c unsigned long long segment, bus; bus 560 drivers/acpi/pci_root.c NULL, &bus); bus 562 drivers/acpi/pci_root.c root->secondary.start = bus; bus 603 drivers/acpi/pci_root.c root->bus = pci_acpi_scan_root(root); bus 604 drivers/acpi/pci_root.c if (!root->bus) { bus 617 drivers/acpi/pci_root.c device_set_wakeup_capable(root->bus->bridge, device->wakeup.flags.valid); bus 620 drivers/acpi/pci_root.c pcibios_resource_survey_bus(root->bus); bus 621 drivers/acpi/pci_root.c pci_assign_unassigned_root_bus_resources(root->bus); bus 636 drivers/acpi/pci_root.c pci_bus_add_devices(root->bus); bus 654 drivers/acpi/pci_root.c pci_stop_root_bus(root->bus); bus 657 drivers/acpi/pci_root.c device_set_wakeup_capable(root->bus->bridge, false); bus 660 drivers/acpi/pci_root.c pci_remove_root_bus(root->bus); bus 881 drivers/acpi/pci_root.c struct pci_bus *bus; bus 903 drivers/acpi/pci_root.c bus = pci_create_root_bus(NULL, busnum, ops->pci_ops, bus 905 drivers/acpi/pci_root.c if (!bus) bus 908 drivers/acpi/pci_root.c host_bridge = to_pci_host_bridge(bus->bridge); bus 925 drivers/acpi/pci_root.c obj = acpi_evaluate_dsm(ACPI_HANDLE(bus->bridge), &pci_acpi_dsm_guid, 1, bus 931 drivers/acpi/pci_root.c pci_scan_child_bus(bus); bus 935 drivers/acpi/pci_root.c dev_printk(KERN_DEBUG, &bus->dev, "on NUMA node %d\n", node); bus 936 drivers/acpi/pci_root.c return bus; bus 106 drivers/acpi/pci_slot.c if (pci_slot->bus == pci_bus && pci_slot->number == device) bus 133 drivers/acpi/pci_slot.c void acpi_pci_slot_enumerate(struct pci_bus *bus) bus 135 drivers/acpi/pci_slot.c acpi_handle handle = ACPI_HANDLE(bus->bridge); bus 140 drivers/acpi/pci_slot.c register_slot, NULL, bus, NULL); bus 145 drivers/acpi/pci_slot.c void acpi_pci_slot_remove(struct pci_bus *bus) bus 151 drivers/acpi/pci_slot.c if (slot->pci_slot->bus == bus) { bus 154 drivers/acpi/pci_slot.c put_device(&bus->dev); bus 66 drivers/acpi/proc.c ldev->bus ? ldev->bus->name : bus 50 drivers/acpi/processor_driver.c .bus = &cpu_subsys, bus 693 drivers/acpi/scan.c device->dev.bus = &acpi_bus_type; bus 96 drivers/acpi/tables.c p->bus, p->source_irq, p->global_irq, bus 335 drivers/amba/bus.c drv->drv.bus = &amba_bustype; bus 646 drivers/amba/bus.c dev->dev.bus = &amba_bustype; bus 966 drivers/ata/ahci.c if (pdev->bus->number == 0 && pdev->devfn == PCI_DEVFN(0x1f, 2) && bus 1099 drivers/ata/ahci.c if (pdev->bus->number != 0 || pdev->devfn != PCI_DEVFN(0x12, 0) || bus 1233 drivers/ata/ahci.c if (!dmi || pdev->bus->number || pdev->devfn != PCI_DEVFN(0x1f, 2)) bus 1297 drivers/ata/ahci.c #define ENCODE_BUSDEVFN(bus, slot, func) \ bus 1298 drivers/ata/ahci.c (void *)(unsigned long)(((bus) << 8) | PCI_DEVFN((slot), (func))) bus 1342 drivers/ata/ahci.c return pdev->bus->number == (val >> 8) && pdev->devfn == (val & 0xff); bus 469 drivers/ata/pata_ali.c north = pci_get_domain_bus_and_slot(pci_domain_nr(pdev->bus), 0, bus 433 drivers/ata/pata_cmd64x.c struct pci_dev *bridge = pdev->bus->self; bus 710 drivers/ata/pata_hpt37x.c pdev_0 = pci_get_slot(pdev->bus, pdev->devfn - 1); bus 354 drivers/ata/pata_pdc202xx_old.c struct pci_dev *bridge = dev->bus->self; bus 846 drivers/ata/pata_sis.c lpc_bridge = pci_get_slot(pdev->bus, 0x10); /* Bus 0 Dev 2 Fn 0 */ bus 272 drivers/ata/pata_sl82c105.c bridge = pci_get_slot(pdev->bus, bus 272 drivers/atm/fore200e.c if ((ok = (fore200e->bus->read(addr) == val))) bus 280 drivers/atm/fore200e.c fore200e->bus->read(addr), val); bus 340 drivers/atm/fore200e.c fore200e->bus->write(BSTAT_COLD_START, &fore200e->cp_monitor->bstat); bus 342 drivers/atm/fore200e.c fore200e->bus->reset(fore200e); bus 416 drivers/atm/fore200e.c fore200e->bus->unmap(fore200e); bus 574 drivers/atm/fore200e.c fore200e->bus->write(prom_dma, &entry->cp_entry->cmd.prom_block.prom_haddr); bus 578 drivers/atm/fore200e.c fore200e->bus->write(*(u32*)&opcode, (u32 __iomem *)&entry->cp_entry->cmd.prom_block.opcode); bus 610 drivers/atm/fore200e.c pci_dev->bus->number, PCI_SLOT(pci_dev->devfn), PCI_FUNC(pci_dev->devfn)); bus 646 drivers/atm/fore200e.c u32 hcr = fore200e->bus->read(fore200e->regs.sba.hcr) & SBA200E_HCR_STICKY; bus 647 drivers/atm/fore200e.c fore200e->bus->write(hcr | SBA200E_HCR_INTR_ENA, fore200e->regs.sba.hcr); bus 652 drivers/atm/fore200e.c return fore200e->bus->read(fore200e->regs.sba.hcr) & SBA200E_HCR_INTR_REQ; bus 657 drivers/atm/fore200e.c u32 hcr = fore200e->bus->read(fore200e->regs.sba.hcr) & SBA200E_HCR_STICKY; bus 658 drivers/atm/fore200e.c fore200e->bus->write(hcr | SBA200E_HCR_INTR_CLR, fore200e->regs.sba.hcr); bus 663 drivers/atm/fore200e.c fore200e->bus->write(SBA200E_HCR_RESET, fore200e->regs.sba.hcr); bus 665 drivers/atm/fore200e.c fore200e->bus->write(0, fore200e->regs.sba.hcr); bus 686 drivers/atm/fore200e.c fore200e->bus->write(0x02, fore200e->regs.sba.isr); /* XXX hardwired interrupt level */ bus 954 drivers/atm/fore200e.c fore200e->bus->write(entry->rbd_block_dma, &entry->cp_entry->rbd_block_haddr); bus 1132 drivers/atm/fore200e.c fore200e->bus->write(entry->rpd_dma, &entry->cp_entry->rpd_haddr); bus 1162 drivers/atm/fore200e.c if (fore200e->bus->irq_check(fore200e) == 0) { bus 1176 drivers/atm/fore200e.c fore200e->bus->irq_ack(fore200e); bus 1261 drivers/atm/fore200e.c fore200e->bus->write(mtu, &entry->cp_entry->cmd.activate_block.mtu); bus 1262 drivers/atm/fore200e.c fore200e->bus->write(*(u32*)&vpvc, (u32 __iomem *)&entry->cp_entry->cmd.activate_block.vpvc); bus 1263 drivers/atm/fore200e.c fore200e->bus->write(*(u32*)&activ_opcode, (u32 __iomem *)&entry->cp_entry->cmd.activate_block.opcode); bus 1266 drivers/atm/fore200e.c fore200e->bus->write(*(u32*)&vpvc, (u32 __iomem *)&entry->cp_entry->cmd.deactivate_block.vpvc); bus 1267 drivers/atm/fore200e.c fore200e->bus->write(*(u32*)&deactiv_opcode, (u32 __iomem *)&entry->cp_entry->cmd.deactivate_block.opcode); bus 1660 drivers/atm/fore200e.c fore200e->bus->write(*(u32*)&tpd_haddr, (u32 __iomem *)&entry->cp_entry->tpd_haddr); bus 1693 drivers/atm/fore200e.c fore200e->bus->write(stats_dma_addr, &entry->cp_entry->cmd.stats_block.stats_haddr); bus 1697 drivers/atm/fore200e.c fore200e->bus->write(*(u32*)&opcode, (u32 __iomem *)&entry->cp_entry->cmd.stats_block.opcode); bus 1748 drivers/atm/fore200e.c oc3_regs_dma_addr = fore200e->bus->dma_map(fore200e, regs, sizeof(struct oc3_regs), DMA_FROM_DEVICE); bus 1757 drivers/atm/fore200e.c fore200e->bus->write(oc3_regs_dma_addr, &entry->cp_entry->cmd.oc3_block.regs_haddr); bus 1761 drivers/atm/fore200e.c fore200e->bus->write(*(u32*)&opcode, (u32*)&entry->cp_entry->cmd.oc3_block.opcode); bus 1767 drivers/atm/fore200e.c fore200e->bus->dma_unmap(fore200e, oc3_regs_dma_addr, sizeof(struct oc3_regs), DMA_FROM_DEVICE); bus 1796 drivers/atm/fore200e.c fore200e->bus->write(0, &entry->cp_entry->cmd.oc3_block.regs_haddr); bus 1800 drivers/atm/fore200e.c fore200e->bus->write(*(u32*)&opcode, (u32 __iomem *)&entry->cp_entry->cmd.oc3_block.opcode); bus 1988 drivers/atm/fore200e.c ok = fore200e->bus->prom_read(fore200e, prom); bus 2046 drivers/atm/fore200e.c &buffer[ i ].data, size, fore200e->bus->buffer_alignment, bus 2093 drivers/atm/fore200e.c fore200e->bus->status_alignment) < 0) { bus 2102 drivers/atm/fore200e.c fore200e->bus->descr_alignment) < 0) { bus 2110 drivers/atm/fore200e.c fore200e->bus->read(&fore200e->cp_queues->cp_bsq[ scheme ][ magn ]); bus 2125 drivers/atm/fore200e.c fore200e->bus->write(FORE200E_DMA_INDEX(bsq->status.dma_addr, enum status, i), bus 2149 drivers/atm/fore200e.c fore200e->bus->status_alignment) < 0) { bus 2158 drivers/atm/fore200e.c fore200e->bus->descr_alignment) < 0) { bus 2165 drivers/atm/fore200e.c cp_entry = fore200e->virt_base + fore200e->bus->read(&fore200e->cp_queues->cp_rxq); bus 2180 drivers/atm/fore200e.c fore200e->bus->write(FORE200E_DMA_INDEX(rxq->status.dma_addr, enum status, i), bus 2183 drivers/atm/fore200e.c fore200e->bus->write(FORE200E_DMA_INDEX(rxq->rpd.dma_addr, struct rpd, i), bus 2208 drivers/atm/fore200e.c fore200e->bus->status_alignment) < 0) { bus 2217 drivers/atm/fore200e.c fore200e->bus->descr_alignment) < 0) { bus 2224 drivers/atm/fore200e.c cp_entry = fore200e->virt_base + fore200e->bus->read(&fore200e->cp_queues->cp_txq); bus 2239 drivers/atm/fore200e.c fore200e->bus->write(FORE200E_DMA_INDEX(txq->status.dma_addr, enum status, i), bus 2270 drivers/atm/fore200e.c fore200e->bus->status_alignment) < 0) { bus 2275 drivers/atm/fore200e.c cp_entry = fore200e->virt_base + fore200e->bus->read(&fore200e->cp_queues->cp_cmdq); bus 2286 drivers/atm/fore200e.c fore200e->bus->write(FORE200E_DMA_INDEX(cmdq->status.dma_addr, enum status, i), bus 2305 drivers/atm/fore200e.c fore200e->bus->write(queue_length, &bs_spec->queue_length); bus 2306 drivers/atm/fore200e.c fore200e->bus->write(fore200e_rx_buf_size[ scheme ][ magn ], &bs_spec->buffer_size); bus 2307 drivers/atm/fore200e.c fore200e->bus->write(pool_size, &bs_spec->pool_size); bus 2308 drivers/atm/fore200e.c fore200e->bus->write(supply_blksize, &bs_spec->supply_blksize); bus 2325 drivers/atm/fore200e.c fore200e->bus->write(1, &cpq->imask); bus 2327 drivers/atm/fore200e.c if (fore200e->bus->irq_enable) bus 2328 drivers/atm/fore200e.c fore200e->bus->irq_enable(fore200e); bus 2330 drivers/atm/fore200e.c fore200e->bus->write(NBR_CONNECT, &cpq->init.num_connect); bus 2332 drivers/atm/fore200e.c fore200e->bus->write(QUEUE_SIZE_CMD, &cpq->init.cmd_queue_len); bus 2333 drivers/atm/fore200e.c fore200e->bus->write(QUEUE_SIZE_RX, &cpq->init.rx_queue_len); bus 2334 drivers/atm/fore200e.c fore200e->bus->write(QUEUE_SIZE_TX, &cpq->init.tx_queue_len); bus 2336 drivers/atm/fore200e.c fore200e->bus->write(RSD_EXTENSION, &cpq->init.rsd_extension); bus 2337 drivers/atm/fore200e.c fore200e->bus->write(TSD_EXTENSION, &cpq->init.tsd_extension); bus 2347 drivers/atm/fore200e.c fore200e->bus->write(STATUS_PENDING, &cpq->init.status); bus 2348 drivers/atm/fore200e.c fore200e->bus->write(OPCODE_INITIALIZE, &cpq->init.opcode); bus 2370 drivers/atm/fore200e.c fore200e->bus->write(((u32) c) | FORE200E_CP_MONITOR_UART_AVAIL, &monitor->soft_uart.send); bus 2382 drivers/atm/fore200e.c c = (int) fore200e->bus->read(&monitor->soft_uart.recv); bus 2386 drivers/atm/fore200e.c fore200e->bus->write(FORE200E_CP_MONITOR_UART_FREE, &monitor->soft_uart.recv); bus 2427 drivers/atm/fore200e.c sprintf(buf, "%s%s", fore200e->bus->proc_name, FW_EXT); bus 2429 drivers/atm/fore200e.c printk(FORE200E "problem loading firmware image %s\n", fore200e->bus->model_name); bus 2442 drivers/atm/fore200e.c printk(FORE200E "corrupted %s firmware image\n", fore200e->bus->model_name); bus 2447 drivers/atm/fore200e.c fore200e->bus->write(le32_to_cpu(*fw_data), load_addr); bus 2481 drivers/atm/fore200e.c atm_dev = atm_dev_register(fore200e->bus->proc_name, parent, &fore200e_ops, bus 2506 drivers/atm/fore200e.c if (fore200e->bus->configure(fore200e) < 0) bus 2509 drivers/atm/fore200e.c if (fore200e->bus->map(fore200e) < 0) bus 2566 drivers/atm/fore200e.c fore200e->bus = &fore200e_sbus_ops; bus 2638 drivers/atm/fore200e.c fore200e->bus = &fore200e_pci_ops; bus 2752 drivers/atm/fore200e.c if (fore200e->bus->proc_read) bus 2753 drivers/atm/fore200e.c len += fore200e->bus->proc_read(fore200e, page + len); bus 2782 drivers/atm/fore200e.c u32 hb = fore200e->bus->read(&fore200e->cp_queues->heartbeat); bus 2813 drivers/atm/fore200e.c u32 fw_release = fore200e->bus->read(&fore200e->cp_queues->fw_release); bus 2814 drivers/atm/fore200e.c u32 mon960_release = fore200e->bus->read(&fore200e->cp_queues->mon960_release); bus 2815 drivers/atm/fore200e.c u32 oc3_revision = fore200e->bus->read(&fore200e->cp_queues->oc3_revision); bus 2816 drivers/atm/fore200e.c u32 media_index = FORE200E_MEDIA_INDEX(fore200e->bus->read(&fore200e->cp_queues->media_type)); bus 2853 drivers/atm/fore200e.c fore200e->bus->read(&cp_monitor->mon_version), bus 2854 drivers/atm/fore200e.c fore200e->bus->read(&cp_monitor->bstat)); bus 834 drivers/atm/fore200e.h const struct fore200e_bus* bus; /* bus-dependent code and data */ bus 3192 drivers/atm/iphase.c pdev->bus->number, PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn));) bus 1029 drivers/atm/iphase.h unsigned char bus; bus 40 drivers/base/base.h struct bus_type *bus; bus 129 drivers/base/base.h return drv->bus->match ? drv->bus->match(dev, drv) : 1; bus 41 drivers/base/bus.c static struct bus_type *bus_get(struct bus_type *bus) bus 43 drivers/base/bus.c if (bus) { bus 44 drivers/base/bus.c kset_get(&bus->p->subsys); bus 45 drivers/base/bus.c return bus; bus 50 drivers/base/bus.c static void bus_put(struct bus_type *bus) bus 52 drivers/base/bus.c if (bus) bus 53 drivers/base/bus.c kset_put(&bus->p->subsys); bus 109 drivers/base/bus.c ret = bus_attr->show(subsys_priv->bus, buf); bus 121 drivers/base/bus.c ret = bus_attr->store(subsys_priv->bus, buf, count); bus 130 drivers/base/bus.c int bus_create_file(struct bus_type *bus, struct bus_attribute *attr) bus 133 drivers/base/bus.c if (bus_get(bus)) { bus 134 drivers/base/bus.c error = sysfs_create_file(&bus->p->subsys.kobj, &attr->attr); bus 135 drivers/base/bus.c bus_put(bus); bus 142 drivers/base/bus.c void bus_remove_file(struct bus_type *bus, struct bus_attribute *attr) bus 144 drivers/base/bus.c if (bus_get(bus)) { bus 145 drivers/base/bus.c sysfs_remove_file(&bus->p->subsys.kobj, &attr->attr); bus 146 drivers/base/bus.c bus_put(bus); bus 154 drivers/base/bus.c struct bus_type *bus = priv->bus; bus 157 drivers/base/bus.c bus->p = NULL; bus 184 drivers/base/bus.c struct bus_type *bus = bus_get(drv->bus); bus 188 drivers/base/bus.c dev = bus_find_device_by_name(bus, NULL, buf); bus 194 drivers/base/bus.c bus_put(bus); bus 207 drivers/base/bus.c struct bus_type *bus = bus_get(drv->bus); bus 211 drivers/base/bus.c dev = bus_find_device_by_name(bus, NULL, buf); bus 224 drivers/base/bus.c bus_put(bus); bus 229 drivers/base/bus.c static ssize_t drivers_autoprobe_show(struct bus_type *bus, char *buf) bus 231 drivers/base/bus.c return sprintf(buf, "%d\n", bus->p->drivers_autoprobe); bus 234 drivers/base/bus.c static ssize_t drivers_autoprobe_store(struct bus_type *bus, bus 238 drivers/base/bus.c bus->p->drivers_autoprobe = 0; bus 240 drivers/base/bus.c bus->p->drivers_autoprobe = 1; bus 244 drivers/base/bus.c static ssize_t drivers_probe_store(struct bus_type *bus, bus 250 drivers/base/bus.c dev = bus_find_device_by_name(bus, NULL, buf); bus 291 drivers/base/bus.c int bus_for_each_dev(struct bus_type *bus, struct device *start, bus 298 drivers/base/bus.c if (!bus || !bus->p) bus 301 drivers/base/bus.c klist_iter_init_node(&bus->p->klist_devices, &i, bus 325 drivers/base/bus.c struct device *bus_find_device(struct bus_type *bus, bus 332 drivers/base/bus.c if (!bus || !bus->p) bus 335 drivers/base/bus.c klist_iter_init_node(&bus->p->klist_devices, &i, bus 417 drivers/base/bus.c int bus_for_each_drv(struct bus_type *bus, struct device_driver *start, bus 424 drivers/base/bus.c if (!bus) bus 427 drivers/base/bus.c klist_iter_init_node(&bus->p->klist_drivers, &i, bus 446 drivers/base/bus.c struct bus_type *bus = bus_get(dev->bus); bus 449 drivers/base/bus.c if (bus) { bus 450 drivers/base/bus.c pr_debug("bus: '%s': add device %s\n", bus->name, dev_name(dev)); bus 451 drivers/base/bus.c error = device_add_groups(dev, bus->dev_groups); bus 454 drivers/base/bus.c error = sysfs_create_link(&bus->p->devices_kset->kobj, bus 459 drivers/base/bus.c &dev->bus->p->subsys.kobj, "subsystem"); bus 462 drivers/base/bus.c klist_add_tail(&dev->p->knode_bus, &bus->p->klist_devices); bus 467 drivers/base/bus.c sysfs_remove_link(&bus->p->devices_kset->kobj, dev_name(dev)); bus 469 drivers/base/bus.c device_remove_groups(dev, bus->dev_groups); bus 471 drivers/base/bus.c bus_put(dev->bus); bus 483 drivers/base/bus.c struct bus_type *bus = dev->bus; bus 486 drivers/base/bus.c if (!bus) bus 489 drivers/base/bus.c if (bus->p->drivers_autoprobe) bus 492 drivers/base/bus.c mutex_lock(&bus->p->mutex); bus 493 drivers/base/bus.c list_for_each_entry(sif, &bus->p->interfaces, node) bus 496 drivers/base/bus.c mutex_unlock(&bus->p->mutex); bus 511 drivers/base/bus.c struct bus_type *bus = dev->bus; bus 514 drivers/base/bus.c if (!bus) bus 517 drivers/base/bus.c mutex_lock(&bus->p->mutex); bus 518 drivers/base/bus.c list_for_each_entry(sif, &bus->p->interfaces, node) bus 521 drivers/base/bus.c mutex_unlock(&bus->p->mutex); bus 524 drivers/base/bus.c sysfs_remove_link(&dev->bus->p->devices_kset->kobj, bus 526 drivers/base/bus.c device_remove_groups(dev, dev->bus->dev_groups); bus 531 drivers/base/bus.c dev->bus->name, dev_name(dev)); bus 533 drivers/base/bus.c bus_put(dev->bus); bus 558 drivers/base/bus.c static int add_probe_files(struct bus_type *bus) bus 562 drivers/base/bus.c retval = bus_create_file(bus, &bus_attr_drivers_probe); bus 566 drivers/base/bus.c retval = bus_create_file(bus, &bus_attr_drivers_autoprobe); bus 568 drivers/base/bus.c bus_remove_file(bus, &bus_attr_drivers_probe); bus 573 drivers/base/bus.c static void remove_probe_files(struct bus_type *bus) bus 575 drivers/base/bus.c bus_remove_file(bus, &bus_attr_drivers_autoprobe); bus 576 drivers/base/bus.c bus_remove_file(bus, &bus_attr_drivers_probe); bus 595 drivers/base/bus.c struct bus_type *bus; bus 599 drivers/base/bus.c bus = bus_get(drv->bus); bus 600 drivers/base/bus.c if (!bus) bus 603 drivers/base/bus.c pr_debug("bus: '%s': add driver %s\n", bus->name, drv->name); bus 613 drivers/base/bus.c priv->kobj.kset = bus->p->drivers_kset; bus 619 drivers/base/bus.c klist_add_tail(&priv->knode_bus, &bus->p->klist_drivers); bus 620 drivers/base/bus.c if (drv->bus->p->drivers_autoprobe) { bus 632 drivers/base/bus.c error = driver_add_groups(drv, bus->drv_groups); bus 655 drivers/base/bus.c bus_put(bus); bus 669 drivers/base/bus.c if (!drv->bus) bus 674 drivers/base/bus.c driver_remove_groups(drv, drv->bus->drv_groups); bus 677 drivers/base/bus.c pr_debug("bus: '%s': remove driver %s\n", drv->bus->name, drv->name); bus 681 drivers/base/bus.c bus_put(drv->bus); bus 691 drivers/base/bus.c if (dev->parent && dev->bus->need_parent_lock) bus 694 drivers/base/bus.c if (dev->parent && dev->bus->need_parent_lock) bus 708 drivers/base/bus.c int bus_rescan_devices(struct bus_type *bus) bus 710 drivers/base/bus.c return bus_for_each_dev(bus, NULL, NULL, bus_rescan_devices_helper); bus 748 drivers/base/bus.c static int bus_add_groups(struct bus_type *bus, bus 751 drivers/base/bus.c return sysfs_create_groups(&bus->p->subsys.kobj, groups); bus 754 drivers/base/bus.c static void bus_remove_groups(struct bus_type *bus, bus 757 drivers/base/bus.c sysfs_remove_groups(&bus->p->subsys.kobj, groups); bus 776 drivers/base/bus.c static ssize_t bus_uevent_store(struct bus_type *bus, bus 781 drivers/base/bus.c rc = kobject_synth_uevent(&bus->p->subsys.kobj, buf, count); bus 801 drivers/base/bus.c int bus_register(struct bus_type *bus) bus 805 drivers/base/bus.c struct lock_class_key *key = &bus->lock_key; bus 811 drivers/base/bus.c priv->bus = bus; bus 812 drivers/base/bus.c bus->p = priv; bus 816 drivers/base/bus.c retval = kobject_set_name(&priv->subsys.kobj, "%s", bus->name); bus 828 drivers/base/bus.c retval = bus_create_file(bus, &bus_attr_uevent); bus 851 drivers/base/bus.c retval = add_probe_files(bus); bus 855 drivers/base/bus.c retval = bus_add_groups(bus, bus->bus_groups); bus 859 drivers/base/bus.c pr_debug("bus: '%s': registered\n", bus->name); bus 863 drivers/base/bus.c remove_probe_files(bus); bus 865 drivers/base/bus.c kset_unregister(bus->p->drivers_kset); bus 867 drivers/base/bus.c kset_unregister(bus->p->devices_kset); bus 869 drivers/base/bus.c bus_remove_file(bus, &bus_attr_uevent); bus 871 drivers/base/bus.c kset_unregister(&bus->p->subsys); bus 873 drivers/base/bus.c kfree(bus->p); bus 874 drivers/base/bus.c bus->p = NULL; bus 886 drivers/base/bus.c void bus_unregister(struct bus_type *bus) bus 888 drivers/base/bus.c pr_debug("bus: '%s': unregistering\n", bus->name); bus 889 drivers/base/bus.c if (bus->dev_root) bus 890 drivers/base/bus.c device_unregister(bus->dev_root); bus 891 drivers/base/bus.c bus_remove_groups(bus, bus->bus_groups); bus 892 drivers/base/bus.c remove_probe_files(bus); bus 893 drivers/base/bus.c kset_unregister(bus->p->drivers_kset); bus 894 drivers/base/bus.c kset_unregister(bus->p->devices_kset); bus 895 drivers/base/bus.c bus_remove_file(bus, &bus_attr_uevent); bus 896 drivers/base/bus.c kset_unregister(&bus->p->subsys); bus 900 drivers/base/bus.c int bus_register_notifier(struct bus_type *bus, struct notifier_block *nb) bus 902 drivers/base/bus.c return blocking_notifier_chain_register(&bus->p->bus_notifier, nb); bus 906 drivers/base/bus.c int bus_unregister_notifier(struct bus_type *bus, struct notifier_block *nb) bus 908 drivers/base/bus.c return blocking_notifier_chain_unregister(&bus->p->bus_notifier, nb); bus 912 drivers/base/bus.c struct kset *bus_get_kset(struct bus_type *bus) bus 914 drivers/base/bus.c return &bus->p->subsys; bus 918 drivers/base/bus.c struct klist *bus_get_device_klist(struct bus_type *bus) bus 920 drivers/base/bus.c return &bus->p->klist_devices; bus 951 drivers/base/bus.c void bus_sort_breadthfirst(struct bus_type *bus, bus 961 drivers/base/bus.c device_klist = bus_get_device_klist(bus); bus 953 drivers/base/core.c (dev->bus ? dev->bus->name : bus 1141 drivers/base/core.c if (dev->bus) bus 1153 drivers/base/core.c if (dev->bus) bus 1154 drivers/base/core.c return dev->bus->name; bus 1199 drivers/base/core.c if (dev->bus && dev->bus->uevent) { bus 1200 drivers/base/core.c retval = dev->bus->uevent(dev, env); bus 1834 drivers/base/core.c if (!parent && dev->bus && dev->bus->dev_root) bus 1835 drivers/base/core.c return &dev->bus->dev_root->kobj; bus 2128 drivers/base/core.c if (!dev_name(dev) && dev->bus && dev->bus->dev_name) bus 2129 drivers/base/core.c dev_set_name(dev, "%s%u", dev->bus->dev_name, dev->id); bus 2197 drivers/base/core.c if (dev->bus) bus 2198 drivers/base/core.c blocking_notifier_call_chain(&dev->bus->p->bus_notifier, bus 2349 drivers/base/core.c if (dev->bus) bus 2350 drivers/base/core.c blocking_notifier_call_chain(&dev->bus->p->bus_notifier, bus 2383 drivers/base/core.c if (dev->bus) bus 2384 drivers/base/core.c blocking_notifier_call_chain(&dev->bus->p->bus_notifier, bus 2671 drivers/base/core.c ret = dev->bus->offline(dev); bus 2700 drivers/base/core.c ret = dev->bus->online(dev); bus 3223 drivers/base/core.c if (dev->bus && dev->bus->shutdown) { bus 3226 drivers/base/core.c dev->bus->shutdown(dev); bus 3258 drivers/base/core.c else if (dev->bus) bus 3259 drivers/base/core.c subsys = dev->bus->name; bus 373 drivers/base/cpu.c cpu->dev.bus = &cpu_subsys; bus 379 drivers/base/cpu.c cpu->dev.bus->uevent = cpu_uevent; bus 390 drivers/base/dd.c if (dev->bus) bus 391 drivers/base/dd.c blocking_notifier_call_chain(&dev->bus->p->bus_notifier, bus 412 drivers/base/dd.c if (dev->bus) bus 413 drivers/base/dd.c blocking_notifier_call_chain(&dev->bus->p->bus_notifier, bus 473 drivers/base/dd.c else if (dev->bus) bus 474 drivers/base/dd.c blocking_notifier_call_chain(&dev->bus->p->bus_notifier, bus 518 drivers/base/dd.c drv->bus->name, __func__, drv->name, dev_name(dev)); bus 532 drivers/base/dd.c if (dev->bus->dma_configure) { bus 533 drivers/base/dd.c ret = dev->bus->dma_configure(dev); bus 550 drivers/base/dd.c if (dev->bus->probe) { bus 551 drivers/base/dd.c ret = dev->bus->probe(dev); bus 570 drivers/base/dd.c if (dev->bus->remove) bus 571 drivers/base/dd.c dev->bus->remove(dev); bus 594 drivers/base/dd.c drv->bus->name, __func__, dev_name(dev), drv->name); bus 598 drivers/base/dd.c if (dev->bus->remove) bus 599 drivers/base/dd.c dev->bus->remove(dev); bus 603 drivers/base/dd.c if (dev->bus) bus 604 drivers/base/dd.c blocking_notifier_call_chain(&dev->bus->p->bus_notifier, bus 714 drivers/base/dd.c drv->bus->name, __func__, dev_name(dev), drv->name); bus 857 drivers/base/dd.c bus_for_each_drv(dev->bus, NULL, &data, __device_attach_driver); bus 897 drivers/base/dd.c ret = bus_for_each_drv(dev->bus, NULL, &data, bus 958 drivers/base/dd.c if (parent && dev->bus->need_parent_lock) bus 975 drivers/base/dd.c if (parent && dev->bus->need_parent_lock) bus 1091 drivers/base/dd.c return bus_for_each_dev(drv->bus, NULL, drv, __driver_attach); bus 1125 drivers/base/dd.c if (dev->bus) bus 1126 drivers/base/dd.c blocking_notifier_call_chain(&dev->bus->p->bus_notifier, bus 1134 drivers/base/dd.c if (dev->bus && dev->bus->remove) bus 1135 drivers/base/dd.c dev->bus->remove(dev); bus 1152 drivers/base/dd.c if (dev->bus) bus 1153 drivers/base/dd.c blocking_notifier_call_chain(&dev->bus->p->bus_notifier, bus 157 drivers/base/devcon.c struct bus_type *bus; bus 160 drivers/base/devcon.c for (bus = generic_match_buses[0]; bus; bus++) { bus 161 drivers/base/devcon.c dev = bus_find_device_by_fwnode(bus, con->fwnode); bus 173 drivers/base/devcon.c struct bus_type *bus; bus 179 drivers/base/devcon.c for (bus = generic_match_buses[0]; bus; bus++) { bus 180 drivers/base/devcon.c dev = bus_find_device_by_name(bus, NULL, con->endpoint[ep]); bus 151 drivers/base/driver.c if (!drv->bus->p) { bus 153 drivers/base/driver.c drv->name, drv->bus->name); bus 157 drivers/base/driver.c if ((drv->bus->probe && drv->probe) || bus 158 drivers/base/driver.c (drv->bus->remove && drv->remove) || bus 159 drivers/base/driver.c (drv->bus->shutdown && drv->shutdown)) bus 163 drivers/base/driver.c other = driver_find(drv->name, drv->bus); bus 213 drivers/base/driver.c struct device_driver *driver_find(const char *name, struct bus_type *bus) bus 215 drivers/base/driver.c struct kobject *k = kset_find_obj(bus->p->drivers_kset, name); bus 120 drivers/base/isa.c isa_driver->driver.bus = &isa_bus_type; bus 137 drivers/base/isa.c isa_dev->dev.bus = &isa_bus_type; bus 615 drivers/base/memory.c memory->dev.bus = &memory_subsys; bus 679 drivers/base/memory.c if (WARN_ON_ONCE(memory->dev.bus != &memory_subsys)) bus 16 drivers/base/module.c driver_name = kasprintf(GFP_KERNEL, "%s:%s", drv->bus->name, drv->name); bus 622 drivers/base/node.c node->dev.bus = &node_subsys; bus 486 drivers/base/platform.c pdev->dev.bus = &platform_bus_type; bus 736 drivers/base/platform.c drv->driver.bus = &platform_bus_type; bus 812 drivers/base/platform.c spin_lock(&drv->driver.bus->p->klist_drivers.k_lock); bus 817 drivers/base/platform.c spin_unlock(&drv->driver.bus->p->klist_drivers.k_lock); bus 638 drivers/base/power/clock_ops.c void pm_clk_add_notifier(struct bus_type *bus, bus 641 drivers/base/power/clock_ops.c if (!bus || !clknb) bus 645 drivers/base/power/clock_ops.c bus_register_notifier(bus, &clknb->nb); bus 704 drivers/base/power/domain.c else if (dev->bus && dev->bus->pm) bus 705 drivers/base/power/domain.c cb = dev->bus->pm->runtime_suspend; bus 727 drivers/base/power/domain.c else if (dev->bus && dev->bus->pm) bus 728 drivers/base/power/domain.c cb = dev->bus->pm->runtime_resume; bus 2389 drivers/base/power/domain.c if (dev->bus == &genpd_bus_type) bus 2521 drivers/base/power/domain.c virt_dev->bus = &genpd_bus_type; bus 132 drivers/base/power/main.c dev->bus ? dev->bus->name : "No Bus", dev_name(dev)); bus 153 drivers/base/power/main.c dev->bus ? dev->bus->name : "No Bus", dev_name(dev)); bus 172 drivers/base/power/main.c deva->bus ? deva->bus->name : "No Bus", dev_name(deva), bus 173 drivers/base/power/main.c devb->bus ? devb->bus->name : "No Bus", dev_name(devb)); bus 186 drivers/base/power/main.c deva->bus ? deva->bus->name : "No Bus", dev_name(deva), bus 187 drivers/base/power/main.c devb->bus ? devb->bus->name : "No Bus", dev_name(devb)); bus 199 drivers/base/power/main.c dev->bus ? dev->bus->name : "No Bus", dev_name(dev)); bus 606 drivers/base/power/main.c } else if (dev->bus && dev->bus->pm) { bus 608 drivers/base/power/main.c callback = pm_noirq_op(dev->bus->pm, state); bus 825 drivers/base/power/main.c } else if (dev->bus && dev->bus->pm) { bus 827 drivers/base/power/main.c callback = pm_late_early_op(dev->bus->pm, state); bus 1010 drivers/base/power/main.c if (dev->bus) { bus 1011 drivers/base/power/main.c if (dev->bus->pm) { bus 1013 drivers/base/power/main.c callback = pm_op(dev->bus->pm, state); bus 1014 drivers/base/power/main.c } else if (dev->bus->resume) { bus 1016 drivers/base/power/main.c callback = dev->bus->resume; bus 1131 drivers/base/power/main.c } else if (dev->bus && dev->bus->pm) { bus 1133 drivers/base/power/main.c callback = dev->bus->pm->complete; bus 1260 drivers/base/power/main.c } else if (dev->bus && dev->bus->pm) { bus 1262 drivers/base/power/main.c callback = pm_noirq_op(dev->bus->pm, state); bus 1489 drivers/base/power/main.c } else if (dev->bus && dev->bus->pm) { bus 1491 drivers/base/power/main.c callback = pm_late_early_op(dev->bus->pm, state); bus 1789 drivers/base/power/main.c if (dev->bus) { bus 1790 drivers/base/power/main.c if (dev->bus->pm) { bus 1792 drivers/base/power/main.c callback = pm_op(dev->bus->pm, state); bus 1793 drivers/base/power/main.c } else if (dev->bus->suspend) { bus 1795 drivers/base/power/main.c error = legacy_suspend(dev, state, dev->bus->suspend, bus 1946 drivers/base/power/main.c else if (dev->bus && dev->bus->pm) bus 1947 drivers/base/power/main.c callback = dev->bus->pm->prepare; bus 2122 drivers/base/power/main.c (!dev->bus || (pm_ops_is_empty(dev->bus->pm) && bus 2123 drivers/base/power/main.c !dev->bus->suspend && !dev->bus->resume)) && bus 32 drivers/base/power/runtime.c else if (dev->bus && dev->bus->pm) bus 33 drivers/base/power/runtime.c ops = dev->bus->pm; bus 65 drivers/base/regmap/internal.h const struct regmap_bus *bus; bus 267 drivers/base/regmap/internal.h const struct regmap_bus *bus, bus 49 drivers/base/regmap/regmap-ac97.c *val = ac97->bus->ops->read(ac97, reg); bus 59 drivers/base/regmap/regmap-ac97.c ac97->bus->ops->write(ac97, reg, val); bus 282 drivers/base/regmap/regmap-i2c.c const struct regmap_bus *bus = regmap_get_i2c_bus(i2c, config); bus 284 drivers/base/regmap/regmap-i2c.c if (IS_ERR(bus)) bus 285 drivers/base/regmap/regmap-i2c.c return ERR_CAST(bus); bus 287 drivers/base/regmap/regmap-i2c.c return __regmap_init(&i2c->dev, bus, &i2c->dev, config, bus 297 drivers/base/regmap/regmap-i2c.c const struct regmap_bus *bus = regmap_get_i2c_bus(i2c, config); bus 299 drivers/base/regmap/regmap-i2c.c if (IS_ERR(bus)) bus 300 drivers/base/regmap/regmap-i2c.c return ERR_CAST(bus); bus 302 drivers/base/regmap/regmap-i2c.c return __devm_regmap_init(&i2c->dev, bus, &i2c->dev, config, bus 103 drivers/base/regmap/regmap-sccb.c const struct regmap_bus *bus = regmap_get_sccb_bus(i2c, config); bus 105 drivers/base/regmap/regmap-sccb.c if (IS_ERR(bus)) bus 106 drivers/base/regmap/regmap-sccb.c return ERR_CAST(bus); bus 108 drivers/base/regmap/regmap-sccb.c return __regmap_init(&i2c->dev, bus, &i2c->dev, config, bus 118 drivers/base/regmap/regmap-sccb.c const struct regmap_bus *bus = regmap_get_sccb_bus(i2c, config); bus 120 drivers/base/regmap/regmap-sccb.c if (IS_ERR(bus)) bus 121 drivers/base/regmap/regmap-sccb.c return ERR_CAST(bus); bus 123 drivers/base/regmap/regmap-sccb.c return __devm_regmap_init(&i2c->dev, bus, &i2c->dev, config, bus 46 drivers/base/regmap/regmap-slimbus.c const struct regmap_bus *bus = regmap_get_slimbus(slimbus, config); bus 48 drivers/base/regmap/regmap-slimbus.c if (IS_ERR(bus)) bus 49 drivers/base/regmap/regmap-slimbus.c return ERR_CAST(bus); bus 51 drivers/base/regmap/regmap-slimbus.c return __regmap_init(&slimbus->dev, bus, &slimbus->dev, config, bus 61 drivers/base/regmap/regmap-slimbus.c const struct regmap_bus *bus = regmap_get_slimbus(slimbus, config); bus 63 drivers/base/regmap/regmap-slimbus.c if (IS_ERR(bus)) bus 64 drivers/base/regmap/regmap-slimbus.c return ERR_CAST(bus); bus 66 drivers/base/regmap/regmap-slimbus.c return __devm_regmap_init(&slimbus->dev, bus, &slimbus, config, bus 211 drivers/base/regmap/regmap-w1.c const struct regmap_bus *bus = regmap_get_w1_bus(w1_dev, config); bus 213 drivers/base/regmap/regmap-w1.c if (IS_ERR(bus)) bus 214 drivers/base/regmap/regmap-w1.c return ERR_CAST(bus); bus 216 drivers/base/regmap/regmap-w1.c return __regmap_init(w1_dev, bus, w1_dev, config, bus 229 drivers/base/regmap/regmap-w1.c const struct regmap_bus *bus = regmap_get_w1_bus(w1_dev, config); bus 231 drivers/base/regmap/regmap-w1.c if (IS_ERR(bus)) bus 232 drivers/base/regmap/regmap-w1.c return ERR_CAST(bus); bus 234 drivers/base/regmap/regmap-w1.c return __devm_regmap_init(w1_dev, bus, w1_dev, config, bus 614 drivers/base/regmap/regmap.c static enum regmap_endian regmap_get_reg_endian(const struct regmap_bus *bus, bus 627 drivers/base/regmap/regmap.c if (bus && bus->reg_format_endian_default) bus 628 drivers/base/regmap/regmap.c endian = bus->reg_format_endian_default; bus 639 drivers/base/regmap/regmap.c const struct regmap_bus *bus, bus 670 drivers/base/regmap/regmap.c if (bus && bus->val_format_endian_default) bus 671 drivers/base/regmap/regmap.c endian = bus->val_format_endian_default; bus 683 drivers/base/regmap/regmap.c const struct regmap_bus *bus, bus 742 drivers/base/regmap/regmap.c if ((bus && bus->fast_io) || bus 763 drivers/base/regmap/regmap.c if ((bus && bus->fast_io) || config->fast_io) bus 782 drivers/base/regmap/regmap.c map->use_single_read = config->use_single_read || !bus || !bus->read; bus 783 drivers/base/regmap/regmap.c map->use_single_write = config->use_single_write || !bus || !bus->write; bus 784 drivers/base/regmap/regmap.c map->can_multi_write = config->can_multi_write && bus && bus->write; bus 785 drivers/base/regmap/regmap.c if (bus) { bus 786 drivers/base/regmap/regmap.c map->max_raw_read = bus->max_raw_read; bus 787 drivers/base/regmap/regmap.c map->max_raw_write = bus->max_raw_write; bus 790 drivers/base/regmap/regmap.c map->bus = bus; bus 817 drivers/base/regmap/regmap.c } else if (bus) { bus 818 drivers/base/regmap/regmap.c map->read_flag_mask = bus->read_flag_mask; bus 821 drivers/base/regmap/regmap.c if (!bus) { bus 827 drivers/base/regmap/regmap.c } else if (!bus->read || !bus->write) { bus 835 drivers/base/regmap/regmap.c map->reg_update_bits = bus->reg_update_bits; bus 838 drivers/base/regmap/regmap.c reg_endian = regmap_get_reg_endian(bus, config); bus 839 drivers/base/regmap/regmap.c val_endian = regmap_get_val_endian(dev, bus, config); bus 1180 drivers/base/regmap/regmap.c const struct regmap_bus *bus, bus 1192 drivers/base/regmap/regmap.c regmap = __regmap_init(dev, bus, bus_context, config, bus 1345 drivers/base/regmap/regmap.c if (map->bus && map->bus->free_context) bus 1346 drivers/base/regmap/regmap.c map->bus->free_context(map->bus_context); bus 1489 drivers/base/regmap/regmap.c WARN_ON(!map->bus); bus 1570 drivers/base/regmap/regmap.c if (map->async && map->bus->async_write) { bus 1584 drivers/base/regmap/regmap.c async = map->bus->async_alloc(); bus 1607 drivers/base/regmap/regmap.c ret = map->bus->async_write(map->bus_context, bus 1613 drivers/base/regmap/regmap.c ret = map->bus->async_write(map->bus_context, bus 1638 drivers/base/regmap/regmap.c ret = map->bus->write(map->bus_context, map->work_buf, bus 1642 drivers/base/regmap/regmap.c else if (map->bus->gather_write) bus 1643 drivers/base/regmap/regmap.c ret = map->bus->gather_write(map->bus_context, map->work_buf, bus 1660 drivers/base/regmap/regmap.c ret = map->bus->write(map->bus_context, buf, len); bus 1683 drivers/base/regmap/regmap.c return map->bus && map->bus->write && map->format.format_val && bus 1717 drivers/base/regmap/regmap.c WARN_ON(!map->bus || !map->format.format_write); bus 1730 drivers/base/regmap/regmap.c ret = map->bus->write(map->bus_context, map->work_buf, bus 1743 drivers/base/regmap/regmap.c return map->bus->reg_write(map->bus_context, reg, val); bus 1751 drivers/base/regmap/regmap.c WARN_ON(!map->bus || !map->format.format_val); bus 1764 drivers/base/regmap/regmap.c return (map->bus) ? map : map->bus_context; bus 1953 drivers/base/regmap/regmap.c if (!map->bus) bus 1955 drivers/base/regmap/regmap.c if (!map->bus->write) bus 2076 drivers/base/regmap/regmap.c if (!map->bus || !map->format.parse_inplace) { bus 2171 drivers/base/regmap/regmap.c ret = map->bus->write(map->bus_context, buf, len); bus 2317 drivers/base/regmap/regmap.c WARN_ON(!map->bus); bus 2469 drivers/base/regmap/regmap.c WARN_ON(!map->bus); bus 2471 drivers/base/regmap/regmap.c if (!map->bus || !map->bus->read) bus 2487 drivers/base/regmap/regmap.c ret = map->bus->read(map->bus_context, map->work_buf, bus 2501 drivers/base/regmap/regmap.c return map->bus->reg_read(map->bus_context, reg, val); bus 2600 drivers/base/regmap/regmap.c if (!map->bus) bus 2616 drivers/base/regmap/regmap.c if (!map->bus->read) { bus 2694 drivers/base/regmap/regmap.c if (!map->bus) bus 2696 drivers/base/regmap/regmap.c if (!map->bus->read) bus 2811 drivers/base/regmap/regmap.c if (map->bus && map->format.parse_inplace && (vol || map->cache_type == REGCACHE_NONE)) { bus 2986 drivers/base/regmap/regmap.c if (!map->bus || !map->bus->async_write) bus 146 drivers/base/soc.c soc_dev->dev.bus = &soc_bus_type; bus 12 drivers/bcma/bcma_private.h #define bcma_err(bus, fmt, ...) \ bus 13 drivers/bcma/bcma_private.h dev_err((bus)->dev, "bus%d: " fmt, (bus)->num, ##__VA_ARGS__) bus 14 drivers/bcma/bcma_private.h #define bcma_warn(bus, fmt, ...) \ bus 15 drivers/bcma/bcma_private.h dev_warn((bus)->dev, "bus%d: " fmt, (bus)->num, ##__VA_ARGS__) bus 16 drivers/bcma/bcma_private.h #define bcma_info(bus, fmt, ...) \ bus 17 drivers/bcma/bcma_private.h dev_info((bus)->dev, "bus%d: " fmt, (bus)->num, ##__VA_ARGS__) bus 18 drivers/bcma/bcma_private.h #define bcma_debug(bus, fmt, ...) \ bus 19 drivers/bcma/bcma_private.h dev_dbg((bus)->dev, "bus%d: " fmt, (bus)->num, ##__VA_ARGS__) bus 26 drivers/bcma/bcma_private.h void bcma_prepare_core(struct bcma_bus *bus, struct bcma_device *core); bus 27 drivers/bcma/bcma_private.h void bcma_init_bus(struct bcma_bus *bus); bus 28 drivers/bcma/bcma_private.h void bcma_unregister_cores(struct bcma_bus *bus); bus 29 drivers/bcma/bcma_private.h int bcma_bus_register(struct bcma_bus *bus); bus 30 drivers/bcma/bcma_private.h void bcma_bus_unregister(struct bcma_bus *bus); bus 31 drivers/bcma/bcma_private.h int __init bcma_bus_early_register(struct bcma_bus *bus); bus 33 drivers/bcma/bcma_private.h int bcma_bus_suspend(struct bcma_bus *bus); bus 34 drivers/bcma/bcma_private.h int bcma_bus_resume(struct bcma_bus *bus); bus 38 drivers/bcma/bcma_private.h void bcma_detect_chip(struct bcma_bus *bus); bus 39 drivers/bcma/bcma_private.h int bcma_bus_scan(struct bcma_bus *bus); bus 42 drivers/bcma/bcma_private.h int bcma_sprom_get(struct bcma_bus *bus); bus 72 drivers/bcma/bcma_private.h bcma_err(cc->core->bus, "Parallel flash not supported\n"); bus 84 drivers/bcma/bcma_private.h bcma_err(cc->core->bus, "Serial flash not supported\n"); bus 96 drivers/bcma/bcma_private.h bcma_err(cc->core->bus, "NAND flash not supported\n"); bus 131 drivers/bcma/bcma_private.h WARN_ON(pc->core->bus->hosttype == BCMA_HOSTTYPE_PCI); bus 136 drivers/bcma/bcma_private.h WARN_ON(pc->core->bus->hosttype == BCMA_HOSTTYPE_PCI); bus 148 drivers/bcma/bcma_private.h WARN_ON(pcie2->core->bus->hosttype == BCMA_HOSTTYPE_PCI); bus 26 drivers/bcma/core.c bcma_warn(core->bus, "Timeout waiting for register 0x%04X!\n", reg); bus 100 drivers/bcma/core.c bcma_err(core->bus, "HT force timeout\n"); bus 127 drivers/bcma/core.c bcma_err(core->bus, "PLL enable timeout\n"); bus 142 drivers/bcma/core.c switch (core->bus->hosttype) { bus 151 drivers/bcma/core.c bcma_err(core->bus, "DMA translation unknown for host %d\n", bus 152 drivers/bcma/core.c core->bus->hosttype); bus 39 drivers/bcma/driver_chipcommon.c struct bcma_bus *bus = cc->core->bus; bus 42 drivers/bcma/driver_chipcommon.c if (bus->chipinfo.id == BCMA_CHIP_ID_BCM53573) { bus 43 drivers/bcma/driver_chipcommon.c WARN(bus->chipinfo.rev <= 1, "No watchdog available\n"); bus 58 drivers/bcma/driver_chipcommon.c struct bcma_bus *bus = cc->core->bus; bus 62 drivers/bcma/driver_chipcommon.c if (bus->chipinfo.id == BCMA_CHIP_ID_BCM4706) bus 97 drivers/bcma/driver_chipcommon.c struct bcma_bus *bus = cc->core->bus; bus 100 drivers/bcma/driver_chipcommon.c if (bus->chipinfo.id == BCMA_CHIP_ID_BCM4706) bus 115 drivers/bcma/driver_chipcommon.c struct bcma_bus *bus = cc->core->bus; bus 119 drivers/bcma/driver_chipcommon.c if (bus->chipinfo.id == BCMA_CHIP_ID_BCM53573 && bus 120 drivers/bcma/driver_chipcommon.c bus->chipinfo.rev <= 1) { bus 132 drivers/bcma/driver_chipcommon.c bus->num, &wdt, bus 144 drivers/bcma/driver_chipcommon.c struct bcma_bus *bus = cc->core->bus; bus 149 drivers/bcma/driver_chipcommon.c bcma_debug(bus, "Found serial flash\n"); bus 153 drivers/bcma/driver_chipcommon.c bcma_debug(bus, "Found parallel flash\n"); bus 157 drivers/bcma/driver_chipcommon.c bcma_err(bus, "Flash type not supported\n"); bus 161 drivers/bcma/driver_chipcommon.c bus->chipinfo.id == BCMA_CHIP_ID_BCM4706) { bus 163 drivers/bcma/driver_chipcommon.c bcma_debug(bus, "Found NAND flash\n"); bus 171 drivers/bcma/driver_chipcommon.c struct bcma_bus *bus = cc->core->bus; bus 187 drivers/bcma/driver_chipcommon.c if (bus->hosttype == BCMA_HOSTTYPE_SOC) bus 206 drivers/bcma/driver_chipcommon.c if (cc->core->bus->chipinfo.id == BCMA_CHIP_ID_BCM43142) { bus 218 drivers/bcma/driver_chipcommon.c bcma_err(cc->core->bus, "Power control not implemented!\n"); bus 221 drivers/bcma/driver_chipcommon.c if (cc->core->bus->sprom.leddc_on_time && bus 222 drivers/bcma/driver_chipcommon.c cc->core->bus->sprom.leddc_off_time) { bus 223 drivers/bcma/driver_chipcommon.c leddc_on = cc->core->bus->sprom.leddc_on_time; bus 224 drivers/bcma/driver_chipcommon.c leddc_off = cc->core->bus->sprom.leddc_off_time; bus 248 drivers/bcma/driver_chipcommon.c struct bcma_bus *bus = cc->core->bus; bus 250 drivers/bcma/driver_chipcommon.c if (bus->chipinfo.id != BCMA_CHIP_ID_BCM4707 && bus 251 drivers/bcma/driver_chipcommon.c bus->chipinfo.id != BCMA_CHIP_ID_BCM47094 && bus 252 drivers/bcma/driver_chipcommon.c bus->chipinfo.id != BCMA_CHIP_ID_BCM53018) bus 404 drivers/bcma/driver_chipcommon.c bcma_err(cc->core->bus, "serial not supported on this device ccrev: 0x%x\n", bus 14 drivers/bcma/driver_chipcommon_b.c static bool bcma_wait_reg(struct bcma_bus *bus, void __iomem *addr, u32 mask, bus 28 drivers/bcma/driver_chipcommon_b.c bcma_err(bus, "Timeout waiting for register %p\n", addr); bus 35 drivers/bcma/driver_chipcommon_b.c struct bcma_bus *bus = ccb->core->bus; bus 39 drivers/bcma/driver_chipcommon_b.c bcma_wait_reg(bus, mii + BCMA_CCB_MII_MNG_CTL, 0x0100, 0x0000, 100); bus 41 drivers/bcma/driver_chipcommon_b.c bcma_wait_reg(bus, mii + BCMA_CCB_MII_MNG_CTL, 0x0100, 0x0000, 100); bus 21 drivers/bcma/driver_chipcommon_nflash.c struct bcma_bus *bus = cc->core->bus; bus 23 drivers/bcma/driver_chipcommon_nflash.c if (bus->chipinfo.id != BCMA_CHIP_ID_BCM4706 && bus 25 drivers/bcma/driver_chipcommon_nflash.c bcma_err(bus, "NAND flash on unsupported board!\n"); bus 30 drivers/bcma/driver_chipcommon_nflash.c bcma_err(bus, "NAND flash not present according to ChipCommon\n"); bus 82 drivers/bcma/driver_chipcommon_pmu.c struct bcma_bus *bus = cc->core->bus; bus 86 drivers/bcma/driver_chipcommon_pmu.c switch (bus->chipinfo.id) { bus 110 drivers/bcma/driver_chipcommon_pmu.c bcma_err(bus, "Unknown TGT frequency for xtalfreq %d\n", bus 120 drivers/bcma/driver_chipcommon_pmu.c bcma_debug(bus, "Target TGT frequency already set\n"); bus 125 drivers/bcma/driver_chipcommon_pmu.c switch (bus->chipinfo.id) { bus 150 drivers/bcma/driver_chipcommon_pmu.c struct bcma_bus *bus = cc->core->bus; bus 153 drivers/bcma/driver_chipcommon_pmu.c switch (bus->chipinfo.id) { bus 164 drivers/bcma/driver_chipcommon_pmu.c struct bcma_bus *bus = cc->core->bus; bus 167 drivers/bcma/driver_chipcommon_pmu.c switch (bus->chipinfo.id) { bus 192 drivers/bcma/driver_chipcommon_pmu.c bcma_debug(bus, "PMU resource config unknown or not needed for device 0x%04X\n", bus 193 drivers/bcma/driver_chipcommon_pmu.c bus->chipinfo.id); bus 212 drivers/bcma/driver_chipcommon_pmu.c struct bcma_bus *bus = cc->core->bus; bus 218 drivers/bcma/driver_chipcommon_pmu.c if (bus->chipinfo.pkg == 9 || bus->chipinfo.pkg == 11) bus 220 drivers/bcma/driver_chipcommon_pmu.c else if (bus->chipinfo.rev > 0) bus 232 drivers/bcma/driver_chipcommon_pmu.c struct bcma_bus *bus = cc->core->bus; bus 234 drivers/bcma/driver_chipcommon_pmu.c switch (bus->chipinfo.id) { bus 251 drivers/bcma/driver_chipcommon_pmu.c if (bus->chipinfo.rev == 0) { bus 265 drivers/bcma/driver_chipcommon_pmu.c bcma_debug(bus, "Workarounds unknown or not needed for device 0x%04X\n", bus 266 drivers/bcma/driver_chipcommon_pmu.c bus->chipinfo.id); bus 272 drivers/bcma/driver_chipcommon_pmu.c struct bcma_bus *bus = cc->core->bus; bus 277 drivers/bcma/driver_chipcommon_pmu.c cc->pmu.core = bcma_find_core(bus, BCMA_CORE_PMU); bus 279 drivers/bcma/driver_chipcommon_pmu.c bcma_warn(bus, "Couldn't find expected PMU core"); bus 287 drivers/bcma/driver_chipcommon_pmu.c bcma_debug(bus, "Found rev %u PMU (capabilities 0x%08X)\n", cc->pmu.rev, bus 307 drivers/bcma/driver_chipcommon_pmu.c struct bcma_bus *bus = cc->core->bus; bus 309 drivers/bcma/driver_chipcommon_pmu.c switch (bus->chipinfo.id) { bus 340 drivers/bcma/driver_chipcommon_pmu.c bcma_warn(bus, "No ALP clock specified for %04X device, pmu rev. %d, using default %d Hz\n", bus 341 drivers/bcma/driver_chipcommon_pmu.c bus->chipinfo.id, cc->pmu.rev, BCMA_CC_PMU_ALP_CLOCK); bus 352 drivers/bcma/driver_chipcommon_pmu.c struct bcma_bus *bus = cc->core->bus; bus 358 drivers/bcma/driver_chipcommon_pmu.c if (bus->chipinfo.id == BCMA_CHIP_ID_BCM5357 || bus 359 drivers/bcma/driver_chipcommon_pmu.c bus->chipinfo.id == BCMA_CHIP_ID_BCM4749) { bus 418 drivers/bcma/driver_chipcommon_pmu.c struct bcma_bus *bus = cc->core->bus; bus 420 drivers/bcma/driver_chipcommon_pmu.c switch (bus->chipinfo.id) { bus 440 drivers/bcma/driver_chipcommon_pmu.c bcma_warn(bus, "No bus clock specified for %04X device, pmu rev. %d, using default %d Hz\n", bus 441 drivers/bcma/driver_chipcommon_pmu.c bus->chipinfo.id, cc->pmu.rev, BCMA_CC_PMU_HT_CLOCK); bus 450 drivers/bcma/driver_chipcommon_pmu.c struct bcma_bus *bus = cc->core->bus; bus 452 drivers/bcma/driver_chipcommon_pmu.c if (bus->chipinfo.id == BCMA_CHIP_ID_BCM53572) bus 458 drivers/bcma/driver_chipcommon_pmu.c switch (bus->chipinfo.id) { bus 495 drivers/bcma/driver_chipcommon_pmu.c struct bcma_bus *bus = cc->core->bus; bus 497 drivers/bcma/driver_chipcommon_pmu.c switch (bus->chipinfo.id) { bus 505 drivers/bcma/driver_chipcommon_pmu.c phypll_offset = (bus->chipinfo.id == BCMA_CHIP_ID_BCM5357 || bus 506 drivers/bcma/driver_chipcommon_pmu.c bus->chipinfo.id == BCMA_CHIP_ID_BCM4749 || bus 507 drivers/bcma/driver_chipcommon_pmu.c bus->chipinfo.id == BCMA_CHIP_ID_BCM53572) ? 6 : 0; bus 654 drivers/bcma/driver_chipcommon_pmu.c bcma_err(bus, "Unknown spuravoidance settings for chip 0x%04X, not changing PLL\n", bus 655 drivers/bcma/driver_chipcommon_pmu.c bus->chipinfo.id); bus 85 drivers/bcma/driver_chipcommon_sflash.c bcma_err(cc->core->bus, "SFLASH control command failed (timeout)!\n"); bus 91 drivers/bcma/driver_chipcommon_sflash.c struct bcma_bus *bus = cc->core->bus; bus 125 drivers/bcma/driver_chipcommon_sflash.c bcma_err(bus, "Unsupported ST serial flash (id: 0x%X, id2: 0x%X)\n", id, id2); bus 139 drivers/bcma/driver_chipcommon_sflash.c bcma_err(bus, "Unsupported Atmel serial flash (id: 0x%X)\n", id); bus 145 drivers/bcma/driver_chipcommon_sflash.c bcma_err(bus, "Unsupported flash type\n"); bus 154 drivers/bcma/driver_chipcommon_sflash.c bcma_info(bus, "Found %s serial flash (size: %dKiB, blocksize: 0x%X, blocks: %d)\n", bus 127 drivers/bcma/driver_gpio.c if (cc->core->bus->hosttype != BCMA_HOSTTYPE_SOC) bus 154 drivers/bcma/driver_gpio.c if (cc->core->bus->hosttype != BCMA_HOSTTYPE_SOC) bus 173 drivers/bcma/driver_gpio.c struct bcma_bus *bus = cc->core->bus; bus 186 drivers/bcma/driver_gpio.c chip->parent = bus->dev; bus 190 drivers/bcma/driver_gpio.c switch (bus->chipinfo.id) { bus 210 drivers/bcma/driver_gpio.c cc->core->bus->hosttype == BCMA_HOSTTYPE_SOC) bus 211 drivers/bcma/driver_gpio.c chip->base = bus->num * BCMA_GPIO_MAX_PINS; bus 36 drivers/bcma/driver_mips.c return dev->bus->chipinfo.id == BCMA_CHIP_ID_BCM47162 && bus 37 drivers/bcma/driver_mips.c dev->bus->chipinfo.rev == 0 && dev->id.id == BCMA_CORE_MIPS_74K; bus 43 drivers/bcma/driver_mips.c return (dev->bus->chipinfo.id == BCMA_CHIP_ID_BCM5357 || bus 44 drivers/bcma/driver_mips.c dev->bus->chipinfo.id == BCMA_CHIP_ID_BCM4749) && bus 45 drivers/bcma/driver_mips.c dev->bus->chipinfo.pkg == 11 && bus 85 drivers/bcma/driver_mips.c struct bcma_device *mdev = dev->bus->drv_mips.core; bus 104 drivers/bcma/driver_mips.c struct bcma_bus *bus = dev->bus; bus 105 drivers/bcma/driver_mips.c struct bcma_device *mdev = bus->drv_mips.core; bus 135 drivers/bcma/driver_mips.c list_for_each_entry(core, &bus->cores, list) { bus 147 drivers/bcma/driver_mips.c bcma_debug(bus, "set_irq: core 0x%04x, irq %d => %d\n", bus 151 drivers/bcma/driver_mips.c static void bcma_core_mips_set_irq_name(struct bcma_bus *bus, unsigned int irq, bus 156 drivers/bcma/driver_mips.c core = bcma_find_core_unit(bus, coreid, unit); bus 158 drivers/bcma/driver_mips.c bcma_warn(bus, bus 178 drivers/bcma/driver_mips.c bcma_debug(dev->bus, "core 0x%04x, irq:%s\n", dev->id.id, interrupts); bus 181 drivers/bcma/driver_mips.c static void bcma_core_mips_dump_irq(struct bcma_bus *bus) bus 185 drivers/bcma/driver_mips.c list_for_each_entry(core, &bus->cores, list) { bus 192 drivers/bcma/driver_mips.c struct bcma_bus *bus = mcore->core->bus; bus 194 drivers/bcma/driver_mips.c if (bus->drv_cc.capabilities & BCMA_CC_CAP_PMU) bus 195 drivers/bcma/driver_mips.c return bcma_pmu_get_cpu_clock(&bus->drv_cc); bus 197 drivers/bcma/driver_mips.c bcma_err(bus, "No PMU available, need this to get the cpu clock\n"); bus 202 drivers/bcma/driver_mips.c static enum bcma_boot_dev bcma_boot_dev(struct bcma_bus *bus) bus 204 drivers/bcma/driver_mips.c struct bcma_drv_cc *cc = &bus->drv_cc; bus 210 drivers/bcma/driver_mips.c core = bcma_find_core(bus, BCMA_CORE_NS_ROM); bus 243 drivers/bcma/driver_mips.c struct bcma_bus *bus = mcore->core->bus; bus 247 drivers/bcma/driver_mips.c boot_dev = bcma_boot_dev(bus); bus 269 drivers/bcma/driver_mips.c struct bcma_bus *bus = mcore->core->bus; bus 274 drivers/bcma/driver_mips.c bcma_chipco_serial_init(&bus->drv_cc); bus 280 drivers/bcma/driver_mips.c static void bcma_fix_i2s_irqflag(struct bcma_bus *bus) bus 287 drivers/bcma/driver_mips.c if (bus->chipinfo.id != BCMA_CHIP_ID_BCM4716 && bus 288 drivers/bcma/driver_mips.c bus->chipinfo.id != BCMA_CHIP_ID_BCM4748) bus 291 drivers/bcma/driver_mips.c cpu = bcma_find_core(bus, BCMA_CORE_MIPS_74K); bus 292 drivers/bcma/driver_mips.c pcie = bcma_find_core(bus, BCMA_CORE_PCIE); bus 293 drivers/bcma/driver_mips.c i2s = bcma_find_core(bus, BCMA_CORE_I2S); bus 301 drivers/bcma/driver_mips.c bcma_debug(bus, bus 308 drivers/bcma/driver_mips.c struct bcma_bus *bus; bus 310 drivers/bcma/driver_mips.c bus = mcore->core->bus; bus 315 drivers/bcma/driver_mips.c bcma_debug(bus, "Initializing MIPS core...\n"); bus 319 drivers/bcma/driver_mips.c bcma_fix_i2s_irqflag(bus); bus 321 drivers/bcma/driver_mips.c switch (bus->chipinfo.id) { bus 324 drivers/bcma/driver_mips.c bcma_core_mips_set_irq_name(bus, 1, BCMA_CORE_80211, 0); bus 325 drivers/bcma/driver_mips.c bcma_core_mips_set_irq_name(bus, 2, BCMA_CORE_MAC_GBIT, 0); bus 326 drivers/bcma/driver_mips.c bcma_core_mips_set_irq_name(bus, 3, BCMA_CORE_USB20_HOST, 0); bus 327 drivers/bcma/driver_mips.c bcma_core_mips_set_irq_name(bus, 4, BCMA_CORE_PCIE, 0); bus 328 drivers/bcma/driver_mips.c bcma_core_mips_set_irq_name(bus, 0, BCMA_CORE_CHIPCOMMON, 0); bus 329 drivers/bcma/driver_mips.c bcma_core_mips_set_irq_name(bus, 0, BCMA_CORE_I2S, 0); bus 334 drivers/bcma/driver_mips.c bcma_core_mips_set_irq_name(bus, 1, BCMA_CORE_80211, 0); bus 335 drivers/bcma/driver_mips.c bcma_core_mips_set_irq_name(bus, 2, BCMA_CORE_MAC_GBIT, 0); bus 336 drivers/bcma/driver_mips.c bcma_core_mips_set_irq_name(bus, 0, BCMA_CORE_CHIPCOMMON, 0); bus 340 drivers/bcma/driver_mips.c bcma_core_mips_set_irq_name(bus, 1, BCMA_CORE_80211, 0); bus 341 drivers/bcma/driver_mips.c bcma_core_mips_set_irq_name(bus, 2, BCMA_CORE_MAC_GBIT, 0); bus 342 drivers/bcma/driver_mips.c bcma_core_mips_set_irq_name(bus, 3, BCMA_CORE_USB20_HOST, 0); bus 343 drivers/bcma/driver_mips.c bcma_core_mips_set_irq_name(bus, 0, BCMA_CORE_CHIPCOMMON, 0); bus 344 drivers/bcma/driver_mips.c bcma_core_mips_set_irq_name(bus, 0, BCMA_CORE_I2S, 0); bus 347 drivers/bcma/driver_mips.c bcma_core_mips_set_irq_name(bus, 1, BCMA_CORE_PCIE, 0); bus 348 drivers/bcma/driver_mips.c bcma_core_mips_set_irq_name(bus, 2, BCMA_CORE_4706_MAC_GBIT, bus 350 drivers/bcma/driver_mips.c bcma_core_mips_set_irq_name(bus, 3, BCMA_CORE_PCIE, 1); bus 351 drivers/bcma/driver_mips.c bcma_core_mips_set_irq_name(bus, 4, BCMA_CORE_USB20_HOST, 0); bus 352 drivers/bcma/driver_mips.c bcma_core_mips_set_irq_name(bus, 0, BCMA_CORE_4706_CHIPCOMMON, bus 356 drivers/bcma/driver_mips.c list_for_each_entry(core, &bus->cores, list) { bus 359 drivers/bcma/driver_mips.c bcma_err(bus, bus 361 drivers/bcma/driver_mips.c bus->chipinfo.id); bus 363 drivers/bcma/driver_mips.c bcma_debug(bus, "IRQ reconfiguration done\n"); bus 364 drivers/bcma/driver_mips.c bcma_core_mips_dump_irq(bus); bus 259 drivers/bcma/driver_pci.c void bcma_core_pci_power_save(struct bcma_bus *bus, bool up) bus 264 drivers/bcma/driver_pci.c if (bus->hosttype != BCMA_HOSTTYPE_PCI) bus 267 drivers/bcma/driver_pci.c pc = &bus->drv_pci[0]; bus 30 drivers/bcma/driver_pci_host.c struct bcma_bus *bus = pc->core->bus; bus 34 drivers/bcma/driver_pci_host.c chipid_top = (bus->chipinfo.id & 0xFF00); bus 155 drivers/bcma/driver_pci_host.c u16 chipid = pc->core->bus->chipinfo.id; bus 230 drivers/bcma/driver_pci_host.c static int bcma_core_pci_hostmode_read_config(struct pci_bus *bus, bus 239 drivers/bcma/driver_pci_host.c pc_host = container_of(bus->ops, struct bcma_drv_pci_host, pci_ops); bus 250 drivers/bcma/driver_pci_host.c static int bcma_core_pci_hostmode_write_config(struct pci_bus *bus, bus 259 drivers/bcma/driver_pci_host.c pc_host = container_of(bus->ops, struct bcma_drv_pci_host, pci_ops); bus 342 drivers/bcma/driver_pci_host.c struct bcma_bus *bus = pc->core->bus; bus 381 drivers/bcma/driver_pci_host.c bcma_err(bus, "PCI: Broken device in slot %d\n", bus 389 drivers/bcma/driver_pci_host.c struct bcma_bus *bus = pc->core->bus; bus 395 drivers/bcma/driver_pci_host.c bcma_info(bus, "PCIEcore in host mode found\n"); bus 397 drivers/bcma/driver_pci_host.c if (bus->sprom.boardflags_lo & BCMA_CORE_PCI_BFL_NOPCI) { bus 398 drivers/bcma/driver_pci_host.c bcma_info(bus, "This PCIE core is disabled and not working\n"); bus 404 drivers/bcma/driver_pci_host.c bcma_err(bus, "can not allocate memory"); bus 445 drivers/bcma/driver_pci_host.c if (bus->chipinfo.id == BCMA_CHIP_ID_BCM4716 || bus 446 drivers/bcma/driver_pci_host.c bus->chipinfo.id == BCMA_CHIP_ID_BCM4748) { bus 452 drivers/bcma/driver_pci_host.c } else if (bus->chipinfo.id == BCMA_CHIP_ID_BCM4706) { bus 497 drivers/bcma/driver_pci_host.c if (bus->chipinfo.id == BCMA_CHIP_ID_BCM4706 || bus 498 drivers/bcma/driver_pci_host.c bus->chipinfo.id == BCMA_CHIP_ID_BCM4716) { bus 532 drivers/bcma/driver_pci_host.c if (dev->bus->ops->read != bcma_core_pci_hostmode_read_config) { bus 559 drivers/bcma/driver_pci_host.c if (dev->bus->ops->read != bcma_core_pci_hostmode_read_config) { bus 587 drivers/bcma/driver_pci_host.c if (dev->bus->ops->read != bcma_core_pci_hostmode_read_config) { bus 591 drivers/bcma/driver_pci_host.c pc_host = container_of(dev->bus->ops, struct bcma_drv_pci_host, bus 614 drivers/bcma/driver_pci_host.c if (dev->bus->ops->read != bcma_core_pci_hostmode_read_config) { bus 619 drivers/bcma/driver_pci_host.c pc_host = container_of(dev->bus->ops, struct bcma_drv_pci_host, bus 146 drivers/bcma/driver_pcie2.c struct bcma_drv_cc *drv_cc = &pcie2->core->bus->drv_cc; bus 161 drivers/bcma/driver_pcie2.c struct bcma_bus *bus = pcie2->core->bus; bus 162 drivers/bcma/driver_pcie2.c struct bcma_chipinfo *ci = &bus->chipinfo; bus 169 drivers/bcma/driver_pcie2.c switch (bus->chipinfo.id) { bus 194 drivers/bcma/driver_pcie2.c struct bcma_bus *bus = pcie2->core->bus; bus 195 drivers/bcma/driver_pcie2.c struct pci_dev *dev = bus->host_pci; bus 200 drivers/bcma/driver_pcie2.c bcma_err(bus, "Error setting PCI_EXP_DEVCTL_READRQ: %d\n", err); bus 16 drivers/bcma/host_pci.c int win2 = core->bus->host_is_pcie2 ? bus 19 drivers/bcma/host_pci.c pci_write_config_dword(core->bus->host_pci, BCMA_PCI_BAR0_WIN, bus 21 drivers/bcma/host_pci.c pci_write_config_dword(core->bus->host_pci, win2, core->wrap); bus 22 drivers/bcma/host_pci.c core->bus->mapped_core = core; bus 23 drivers/bcma/host_pci.c bcma_debug(core->bus, "Switched to core: 0x%X\n", core->id.id); bus 37 drivers/bcma/host_pci.c if (core->bus->mapped_core != core) bus 45 drivers/bcma/host_pci.c return ioread8(core->bus->mmio + offset); bus 51 drivers/bcma/host_pci.c return ioread16(core->bus->mmio + offset); bus 57 drivers/bcma/host_pci.c return ioread32(core->bus->mmio + offset); bus 64 drivers/bcma/host_pci.c iowrite8(value, core->bus->mmio + offset); bus 71 drivers/bcma/host_pci.c iowrite16(value, core->bus->mmio + offset); bus 78 drivers/bcma/host_pci.c iowrite32(value, core->bus->mmio + offset); bus 85 drivers/bcma/host_pci.c void __iomem *addr = core->bus->mmio + offset; bus 86 drivers/bcma/host_pci.c if (core->bus->mapped_core != core) bus 109 drivers/bcma/host_pci.c void __iomem *addr = core->bus->mmio + offset; bus 110 drivers/bcma/host_pci.c if (core->bus->mapped_core != core) bus 132 drivers/bcma/host_pci.c if (core->bus->mapped_core != core) bus 134 drivers/bcma/host_pci.c return ioread32(core->bus->mmio + (1 * BCMA_CORE_SIZE) + offset); bus 140 drivers/bcma/host_pci.c if (core->bus->mapped_core != core) bus 142 drivers/bcma/host_pci.c iowrite32(value, core->bus->mmio + (1 * BCMA_CORE_SIZE) + offset); bus 163 drivers/bcma/host_pci.c struct bcma_bus *bus; bus 169 drivers/bcma/host_pci.c bus = kzalloc(sizeof(*bus), GFP_KERNEL); bus 170 drivers/bcma/host_pci.c if (!bus) bus 194 drivers/bcma/host_pci.c bcma_err(bus, "PCI card detected, they are not supported.\n"); bus 199 drivers/bcma/host_pci.c bus->dev = &dev->dev; bus 203 drivers/bcma/host_pci.c bus->mmio = pci_iomap(dev, 0, ~0UL); bus 204 drivers/bcma/host_pci.c if (!bus->mmio) bus 208 drivers/bcma/host_pci.c bus->host_pci = dev; bus 209 drivers/bcma/host_pci.c bus->hosttype = BCMA_HOSTTYPE_PCI; bus 210 drivers/bcma/host_pci.c bus->ops = &bcma_host_pci_ops; bus 212 drivers/bcma/host_pci.c bus->boardinfo.vendor = bus->host_pci->subsystem_vendor; bus 213 drivers/bcma/host_pci.c bus->boardinfo.type = bus->host_pci->subsystem_device; bus 216 drivers/bcma/host_pci.c bcma_init_bus(bus); bus 219 drivers/bcma/host_pci.c err = bcma_bus_scan(bus); bus 223 drivers/bcma/host_pci.c if (bcma_find_core(bus, BCMA_CORE_PCIE2)) bus 224 drivers/bcma/host_pci.c bus->host_is_pcie2 = true; bus 227 drivers/bcma/host_pci.c err = bcma_bus_register(bus); bus 231 drivers/bcma/host_pci.c pci_set_drvdata(dev, bus); bus 237 drivers/bcma/host_pci.c bcma_unregister_cores(bus); bus 239 drivers/bcma/host_pci.c pci_iounmap(dev, bus->mmio); bus 245 drivers/bcma/host_pci.c kfree(bus); bus 251 drivers/bcma/host_pci.c struct bcma_bus *bus = pci_get_drvdata(dev); bus 253 drivers/bcma/host_pci.c bcma_bus_unregister(bus); bus 254 drivers/bcma/host_pci.c pci_iounmap(dev, bus->mmio); bus 257 drivers/bcma/host_pci.c kfree(bus); bus 263 drivers/bcma/host_pci.c struct bcma_bus *bus = dev_get_drvdata(dev); bus 265 drivers/bcma/host_pci.c bus->mapped_core = NULL; bus 267 drivers/bcma/host_pci.c return bcma_bus_suspend(bus); bus 272 drivers/bcma/host_pci.c struct bcma_bus *bus = dev_get_drvdata(dev); bus 274 drivers/bcma/host_pci.c return bcma_bus_resume(bus); bus 335 drivers/bcma/host_pci.c void bcma_host_pci_up(struct bcma_bus *bus) bus 337 drivers/bcma/host_pci.c if (bus->hosttype != BCMA_HOSTTYPE_PCI) bus 340 drivers/bcma/host_pci.c if (bus->host_is_pcie2) bus 341 drivers/bcma/host_pci.c bcma_core_pcie2_up(&bus->drv_pcie2); bus 343 drivers/bcma/host_pci.c bcma_core_pci_up(&bus->drv_pci[0]); bus 348 drivers/bcma/host_pci.c void bcma_host_pci_down(struct bcma_bus *bus) bus 350 drivers/bcma/host_pci.c if (bus->hosttype != BCMA_HOSTTYPE_PCI) bus 353 drivers/bcma/host_pci.c if (!bus->host_is_pcie2) bus 354 drivers/bcma/host_pci.c bcma_core_pci_down(&bus->drv_pci[0]); bus 359 drivers/bcma/host_pci.c int bcma_host_pci_irq_ctl(struct bcma_bus *bus, struct bcma_device *core, bus 366 drivers/bcma/host_pci.c if (bus->hosttype != BCMA_HOSTTYPE_PCI) { bus 373 drivers/bcma/host_pci.c pdev = bus->host_pci; bus 170 drivers/bcma/host_soc.c struct bcma_bus *bus = &soc->bus; bus 175 drivers/bcma/host_soc.c bus->mmio = ioremap_nocache(BCMA_ADDR_BASE, BCMA_CORE_SIZE * 1); bus 176 drivers/bcma/host_soc.c if (!bus->mmio) bus 180 drivers/bcma/host_soc.c bus->hosttype = BCMA_HOSTTYPE_SOC; bus 181 drivers/bcma/host_soc.c bus->ops = &bcma_host_soc_ops; bus 184 drivers/bcma/host_soc.c bcma_init_bus(bus); bus 191 drivers/bcma/host_soc.c struct bcma_bus *bus = &soc->bus; bus 195 drivers/bcma/host_soc.c err = bcma_bus_early_register(bus); bus 197 drivers/bcma/host_soc.c iounmap(bus->mmio); bus 207 drivers/bcma/host_soc.c struct bcma_bus *bus; bus 211 drivers/bcma/host_soc.c bus = devm_kzalloc(dev, sizeof(*bus), GFP_KERNEL); bus 212 drivers/bcma/host_soc.c if (!bus) bus 215 drivers/bcma/host_soc.c bus->dev = dev; bus 218 drivers/bcma/host_soc.c bus->mmio = of_iomap(np, 0); bus 219 drivers/bcma/host_soc.c if (!bus->mmio) bus 223 drivers/bcma/host_soc.c bus->hosttype = BCMA_HOSTTYPE_SOC; bus 224 drivers/bcma/host_soc.c bus->ops = &bcma_host_soc_ops; bus 227 drivers/bcma/host_soc.c bcma_init_bus(bus); bus 230 drivers/bcma/host_soc.c err = bcma_bus_register(bus); bus 234 drivers/bcma/host_soc.c platform_set_drvdata(pdev, bus); bus 239 drivers/bcma/host_soc.c iounmap(bus->mmio); bus 245 drivers/bcma/host_soc.c struct bcma_bus *bus = platform_get_drvdata(pdev); bus 247 drivers/bcma/host_soc.c bcma_bus_unregister(bus); bus 248 drivers/bcma/host_soc.c iounmap(bus->mmio); bus 79 drivers/bcma/main.c static u16 bcma_cc_core_id(struct bcma_bus *bus) bus 81 drivers/bcma/main.c if (bus->chipinfo.id == BCMA_CHIP_ID_BCM4706) bus 86 drivers/bcma/main.c struct bcma_device *bcma_find_core_unit(struct bcma_bus *bus, u16 coreid, bus 91 drivers/bcma/main.c list_for_each_entry(core, &bus->cores, list) { bus 113 drivers/bcma/main.c bcma_warn(core->bus, "Timeout waiting for register 0x%04X!\n", reg); bus 191 drivers/bcma/main.c bcma_debug(core->bus, "bcma_of_get_irq() failed with rc=%d\n", bus 215 drivers/bcma/main.c struct bcma_bus *bus = core->bus; bus 218 drivers/bcma/main.c switch (bus->hosttype) { bus 220 drivers/bcma/main.c return bus->host_pci->irq; bus 222 drivers/bcma/main.c if (bus->drv_mips.core && num == 0) { bus 226 drivers/bcma/main.c if (bus->dev) bus 227 drivers/bcma/main.c return bcma_of_get_irq(bus->dev, core, num); bus 237 drivers/bcma/main.c void bcma_prepare_core(struct bcma_bus *bus, struct bcma_device *core) bus 240 drivers/bcma/main.c core->dev.bus = &bcma_bus_type; bus 241 drivers/bcma/main.c dev_set_name(&core->dev, "bcma%d:%d", bus->num, core->core_index); bus 242 drivers/bcma/main.c core->dev.parent = bus->dev; bus 243 drivers/bcma/main.c if (bus->dev) bus 244 drivers/bcma/main.c bcma_of_fill_device(bus->dev, core); bus 246 drivers/bcma/main.c switch (bus->hosttype) { bus 248 drivers/bcma/main.c core->dma_dev = bus->dev; bus 249 drivers/bcma/main.c core->irq = bus->host_pci->irq; bus 252 drivers/bcma/main.c if (IS_ENABLED(CONFIG_OF) && bus->dev) { bus 253 drivers/bcma/main.c core->dma_dev = bus->dev; bus 264 drivers/bcma/main.c void bcma_init_bus(struct bcma_bus *bus) bus 267 drivers/bcma/main.c bus->num = bcma_bus_next_num++; bus 270 drivers/bcma/main.c INIT_LIST_HEAD(&bus->cores); bus 271 drivers/bcma/main.c bus->nr_cores = 0; bus 273 drivers/bcma/main.c bcma_detect_chip(bus); bus 276 drivers/bcma/main.c static void bcma_register_core(struct bcma_bus *bus, struct bcma_device *core) bus 282 drivers/bcma/main.c bcma_err(bus, "Could not register dev for core 0x%03X\n", bus 290 drivers/bcma/main.c static int bcma_register_devices(struct bcma_bus *bus) bus 295 drivers/bcma/main.c list_for_each_entry(core, &bus->cores, list) { bus 318 drivers/bcma/main.c bcma_register_core(bus, core); bus 322 drivers/bcma/main.c if (bus->drv_cc.pflash.present) { bus 325 drivers/bcma/main.c bcma_err(bus, "Error registering parallel flash\n"); bus 330 drivers/bcma/main.c if (bus->drv_cc.sflash.present) { bus 333 drivers/bcma/main.c bcma_err(bus, "Error registering serial flash\n"); bus 338 drivers/bcma/main.c if (bus->drv_cc.nflash.present) { bus 341 drivers/bcma/main.c bcma_err(bus, "Error registering NAND flash\n"); bus 344 drivers/bcma/main.c err = bcma_gpio_init(&bus->drv_cc); bus 346 drivers/bcma/main.c bcma_debug(bus, "GPIO driver not activated\n"); bus 348 drivers/bcma/main.c bcma_err(bus, "Error registering GPIO driver: %i\n", err); bus 350 drivers/bcma/main.c if (bus->hosttype == BCMA_HOSTTYPE_SOC) { bus 351 drivers/bcma/main.c err = bcma_chipco_watchdog_register(&bus->drv_cc); bus 353 drivers/bcma/main.c bcma_err(bus, "Error registering watchdog driver\n"); bus 359 drivers/bcma/main.c void bcma_unregister_cores(struct bcma_bus *bus) bus 363 drivers/bcma/main.c list_for_each_entry_safe(core, tmp, &bus->cores, list) { bus 369 drivers/bcma/main.c if (bus->hosttype == BCMA_HOSTTYPE_SOC) bus 370 drivers/bcma/main.c platform_device_unregister(bus->drv_cc.watchdog); bus 373 drivers/bcma/main.c list_for_each_entry_safe(core, tmp, &bus->cores, list) { bus 379 drivers/bcma/main.c int bcma_bus_register(struct bcma_bus *bus) bus 385 drivers/bcma/main.c err = bcma_bus_scan(bus); bus 387 drivers/bcma/main.c bcma_err(bus, "Failed to scan: %d\n", err); bus 392 drivers/bcma/main.c core = bcma_find_core(bus, bcma_cc_core_id(bus)); bus 394 drivers/bcma/main.c bus->drv_cc.core = core; bus 395 drivers/bcma/main.c bcma_core_chipcommon_early_init(&bus->drv_cc); bus 399 drivers/bcma/main.c core = bcma_find_core(bus, BCMA_CORE_PCIE); bus 401 drivers/bcma/main.c bus->drv_pci[0].core = core; bus 402 drivers/bcma/main.c bcma_core_pci_early_init(&bus->drv_pci[0]); bus 405 drivers/bcma/main.c if (bus->dev) bus 406 drivers/bcma/main.c of_platform_default_populate(bus->dev->of_node, NULL, bus->dev); bus 409 drivers/bcma/main.c list_for_each_entry(core, &bus->cores, list) { bus 411 drivers/bcma/main.c bcma_register_core(bus, core); bus 415 drivers/bcma/main.c err = bcma_sprom_get(bus); bus 417 drivers/bcma/main.c bcma_err(bus, "No SPROM available\n"); bus 419 drivers/bcma/main.c bcma_err(bus, "Failed to get SPROM: %d\n", err); bus 422 drivers/bcma/main.c core = bcma_find_core(bus, bcma_cc_core_id(bus)); bus 424 drivers/bcma/main.c bus->drv_cc.core = core; bus 425 drivers/bcma/main.c bcma_core_chipcommon_init(&bus->drv_cc); bus 429 drivers/bcma/main.c core = bcma_find_core(bus, BCMA_CORE_NS_CHIPCOMMON_B); bus 431 drivers/bcma/main.c bus->drv_cc_b.core = core; bus 432 drivers/bcma/main.c bcma_core_chipcommon_b_init(&bus->drv_cc_b); bus 436 drivers/bcma/main.c core = bcma_find_core(bus, BCMA_CORE_MIPS_74K); bus 438 drivers/bcma/main.c bus->drv_mips.core = core; bus 439 drivers/bcma/main.c bcma_core_mips_init(&bus->drv_mips); bus 443 drivers/bcma/main.c core = bcma_find_core_unit(bus, BCMA_CORE_PCIE, 0); bus 445 drivers/bcma/main.c bus->drv_pci[0].core = core; bus 446 drivers/bcma/main.c bcma_core_pci_init(&bus->drv_pci[0]); bus 450 drivers/bcma/main.c core = bcma_find_core_unit(bus, BCMA_CORE_PCIE, 1); bus 452 drivers/bcma/main.c bus->drv_pci[1].core = core; bus 453 drivers/bcma/main.c bcma_core_pci_init(&bus->drv_pci[1]); bus 457 drivers/bcma/main.c core = bcma_find_core_unit(bus, BCMA_CORE_PCIE2, 0); bus 459 drivers/bcma/main.c bus->drv_pcie2.core = core; bus 460 drivers/bcma/main.c bcma_core_pcie2_init(&bus->drv_pcie2); bus 464 drivers/bcma/main.c core = bcma_find_core(bus, BCMA_CORE_4706_MAC_GBIT_COMMON); bus 466 drivers/bcma/main.c bus->drv_gmac_cmn.core = core; bus 467 drivers/bcma/main.c bcma_core_gmac_cmn_init(&bus->drv_gmac_cmn); bus 471 drivers/bcma/main.c bcma_register_devices(bus); bus 473 drivers/bcma/main.c bcma_info(bus, "Bus registered\n"); bus 478 drivers/bcma/main.c void bcma_bus_unregister(struct bcma_bus *bus) bus 482 drivers/bcma/main.c err = bcma_gpio_unregister(&bus->drv_cc); bus 484 drivers/bcma/main.c bcma_err(bus, "Some GPIOs are still in use.\n"); bus 486 drivers/bcma/main.c bcma_err(bus, "Can not unregister GPIO driver: %i\n", err); bus 488 drivers/bcma/main.c bcma_core_chipcommon_b_free(&bus->drv_cc_b); bus 490 drivers/bcma/main.c bcma_unregister_cores(bus); bus 498 drivers/bcma/main.c int __init bcma_bus_early_register(struct bcma_bus *bus) bus 504 drivers/bcma/main.c err = bcma_bus_scan(bus); bus 506 drivers/bcma/main.c bcma_err(bus, "Failed to scan bus: %d\n", err); bus 511 drivers/bcma/main.c core = bcma_find_core(bus, bcma_cc_core_id(bus)); bus 513 drivers/bcma/main.c bus->drv_cc.core = core; bus 514 drivers/bcma/main.c bcma_core_chipcommon_early_init(&bus->drv_cc); bus 518 drivers/bcma/main.c core = bcma_find_core(bus, BCMA_CORE_MIPS_74K); bus 520 drivers/bcma/main.c bus->drv_mips.core = core; bus 521 drivers/bcma/main.c bcma_core_mips_early_init(&bus->drv_mips); bus 524 drivers/bcma/main.c bcma_info(bus, "Early bus registered\n"); bus 530 drivers/bcma/main.c int bcma_bus_suspend(struct bcma_bus *bus) bus 534 drivers/bcma/main.c list_for_each_entry(core, &bus->cores, list) { bus 545 drivers/bcma/main.c int bcma_bus_resume(struct bcma_bus *bus) bus 550 drivers/bcma/main.c if (bus->drv_cc.core) { bus 551 drivers/bcma/main.c bus->drv_cc.setup_done = false; bus 552 drivers/bcma/main.c bcma_core_chipcommon_init(&bus->drv_cc); bus 555 drivers/bcma/main.c list_for_each_entry(core, &bus->cores, list) { bus 571 drivers/bcma/main.c drv->drv.bus = &bcma_bus_type; bus 144 drivers/bcma/scan.c static u32 bcma_scan_read32(struct bcma_bus *bus, u8 current_coreidx, bus 147 drivers/bcma/scan.c return readl(bus->mmio + offset); bus 150 drivers/bcma/scan.c static void bcma_scan_switch_core(struct bcma_bus *bus, u32 addr) bus 152 drivers/bcma/scan.c if (bus->hosttype == BCMA_HOSTTYPE_PCI) bus 153 drivers/bcma/scan.c pci_write_config_dword(bus->host_pci, BCMA_PCI_BAR0_WIN, bus 157 drivers/bcma/scan.c static u32 bcma_erom_get_ent(struct bcma_bus *bus, u32 __iomem **eromptr) bus 169 drivers/bcma/scan.c static s32 bcma_erom_get_ci(struct bcma_bus *bus, u32 __iomem **eromptr) bus 171 drivers/bcma/scan.c u32 ent = bcma_erom_get_ent(bus, eromptr); bus 179 drivers/bcma/scan.c static bool bcma_erom_is_end(struct bcma_bus *bus, u32 __iomem **eromptr) bus 181 drivers/bcma/scan.c u32 ent = bcma_erom_get_ent(bus, eromptr); bus 186 drivers/bcma/scan.c static bool bcma_erom_is_bridge(struct bcma_bus *bus, u32 __iomem **eromptr) bus 188 drivers/bcma/scan.c u32 ent = bcma_erom_get_ent(bus, eromptr); bus 195 drivers/bcma/scan.c static void bcma_erom_skip_component(struct bcma_bus *bus, u32 __iomem **eromptr) bus 199 drivers/bcma/scan.c ent = bcma_erom_get_ent(bus, eromptr); bus 209 drivers/bcma/scan.c static s32 bcma_erom_get_mst_port(struct bcma_bus *bus, u32 __iomem **eromptr) bus 211 drivers/bcma/scan.c u32 ent = bcma_erom_get_ent(bus, eromptr); bus 219 drivers/bcma/scan.c static u32 bcma_erom_get_addr_desc(struct bcma_bus *bus, u32 __iomem **eromptr, bus 225 drivers/bcma/scan.c u32 ent = bcma_erom_get_ent(bus, eromptr); bus 236 drivers/bcma/scan.c addrh = bcma_erom_get_ent(bus, eromptr); bus 241 drivers/bcma/scan.c size = bcma_erom_get_ent(bus, eromptr); bus 244 drivers/bcma/scan.c sizeh = bcma_erom_get_ent(bus, eromptr); bus 252 drivers/bcma/scan.c static struct bcma_device *bcma_find_core_by_index(struct bcma_bus *bus, bus 257 drivers/bcma/scan.c list_for_each_entry(core, &bus->cores, list) { bus 264 drivers/bcma/scan.c static struct bcma_device *bcma_find_core_reverse(struct bcma_bus *bus, u16 coreid) bus 268 drivers/bcma/scan.c list_for_each_entry_reverse(core, &bus->cores, list) { bus 277 drivers/bcma/scan.c static int bcma_get_next_core(struct bcma_bus *bus, u32 __iomem **eromptr, bus 287 drivers/bcma/scan.c cia = bcma_erom_get_ci(bus, eromptr); bus 290 drivers/bcma/scan.c if (bcma_erom_is_end(bus, eromptr)) bus 294 drivers/bcma/scan.c cib = bcma_erom_get_ci(bus, eromptr); bus 311 drivers/bcma/scan.c bcma_erom_skip_component(bus, eromptr); bus 326 drivers/bcma/scan.c bcma_erom_skip_component(bus, eromptr); bus 331 drivers/bcma/scan.c if (bcma_erom_is_bridge(bus, eromptr)) { bus 332 drivers/bcma/scan.c bcma_erom_skip_component(bus, eromptr); bus 336 drivers/bcma/scan.c if (bcma_find_core_by_index(bus, core_num)) { bus 337 drivers/bcma/scan.c bcma_erom_skip_component(bus, eromptr); bus 347 drivers/bcma/scan.c bcma_erom_skip_component(bus, eromptr); bus 353 drivers/bcma/scan.c s32 mst_port_d = bcma_erom_get_mst_port(bus, eromptr); bus 361 drivers/bcma/scan.c tmp = bcma_erom_get_addr_desc(bus, eromptr, SCAN_ADDR_TYPE_SLAVE, 0); bus 364 drivers/bcma/scan.c tmp = bcma_erom_get_addr_desc(bus, eromptr, bus 369 drivers/bcma/scan.c bcma_info(bus, "Bridge found\n"); bus 379 drivers/bcma/scan.c tmp = bcma_erom_get_addr_desc(bus, eromptr, bus 396 drivers/bcma/scan.c tmp = bcma_erom_get_addr_desc(bus, eromptr, bus 414 drivers/bcma/scan.c tmp = bcma_erom_get_addr_desc(bus, eromptr, bus 427 drivers/bcma/scan.c if (bus->hosttype == BCMA_HOSTTYPE_SOC) { bus 443 drivers/bcma/scan.c void bcma_detect_chip(struct bcma_bus *bus) bus 446 drivers/bcma/scan.c struct bcma_chipinfo *chipinfo = &(bus->chipinfo); bus 449 drivers/bcma/scan.c bcma_scan_switch_core(bus, BCMA_ADDR_BASE); bus 451 drivers/bcma/scan.c tmp = bcma_scan_read32(bus, 0, BCMA_CC_ID); bus 458 drivers/bcma/scan.c bcma_info(bus, "Found chip with id %s, rev 0x%02X and package 0x%02X\n", bus 462 drivers/bcma/scan.c int bcma_bus_scan(struct bcma_bus *bus) bus 470 drivers/bcma/scan.c if (bus->nr_cores) bus 473 drivers/bcma/scan.c erombase = bcma_scan_read32(bus, 0, BCMA_CC_EROM); bus 474 drivers/bcma/scan.c if (bus->hosttype == BCMA_HOSTTYPE_SOC) { bus 479 drivers/bcma/scan.c eromptr = bus->mmio; bus 484 drivers/bcma/scan.c bcma_scan_switch_core(bus, erombase); bus 494 drivers/bcma/scan.c core->bus = bus; bus 496 drivers/bcma/scan.c err = bcma_get_next_core(bus, &eromptr, NULL, core_num, core); bus 511 drivers/bcma/scan.c bus->nr_cores++; bus 512 drivers/bcma/scan.c other_core = bcma_find_core_reverse(bus, core->id.id); bus 514 drivers/bcma/scan.c bcma_prepare_core(bus, core); bus 516 drivers/bcma/scan.c bcma_info(bus, "Core %d found: %s (manuf 0x%03X, id 0x%03X, rev 0x%02X, class 0x%X)\n", bus 521 drivers/bcma/scan.c list_add_tail(&core->list, &bus->cores); bus 526 drivers/bcma/scan.c if (bus->hosttype == BCMA_HOSTTYPE_SOC) bus 39 drivers/bcma/sprom.c int bcma_arch_register_fallback_sprom(int (*sprom_callback)(struct bcma_bus *bus, bus 49 drivers/bcma/sprom.c static int bcma_fill_sprom_with_fallback(struct bcma_bus *bus, bus 59 drivers/bcma/sprom.c err = get_fallback_sprom(bus, out); bus 63 drivers/bcma/sprom.c bcma_debug(bus, "Using SPROM revision %d provided by platform.\n", bus 64 drivers/bcma/sprom.c bus->sprom.revision); bus 67 drivers/bcma/sprom.c bcma_warn(bus, "Using fallback SPROM failed (err %d)\n", err); bus 75 drivers/bcma/sprom.c static void bcma_sprom_read(struct bcma_bus *bus, u16 offset, u16 *sprom, bus 80 drivers/bcma/sprom.c sprom[i] = bcma_read16(bus->drv_cc.core, offset + (i * 2)); bus 157 drivers/bcma/sprom.c static int bcma_sprom_valid(struct bcma_bus *bus, const u16 *sprom, bus 173 drivers/bcma/sprom.c bus->sprom.revision = revision; bus 174 drivers/bcma/sprom.c bcma_debug(bus, "Found SPROM revision %d\n", revision); bus 186 drivers/bcma/sprom.c bus->sprom._field = ((sprom[SPOFF(_offset)] & (_mask)) >> (_shift)) bus 189 drivers/bcma/sprom.c bus->sprom._field = ((((u32)sprom[SPOFF((_offset)+2)] << 16 | \ bus 221 drivers/bcma/sprom.c static void bcma_sprom_extract_r8(struct bcma_bus *bus, const u16 *sprom) bus 230 drivers/bcma/sprom.c ARRAY_SIZE(bus->sprom.core_pwr_info)); bus 234 drivers/bcma/sprom.c *(((__be16 *)bus->sprom.il0mac) + i) = cpu_to_be16(v); bus 401 drivers/bcma/sprom.c bus->sprom.antenna_gain.a0 = sprom_extract_antgain(sprom, bus 405 drivers/bcma/sprom.c bus->sprom.antenna_gain.a1 = sprom_extract_antgain(sprom, bus 409 drivers/bcma/sprom.c bus->sprom.antenna_gain.a2 = sprom_extract_antgain(sprom, bus 413 drivers/bcma/sprom.c bus->sprom.antenna_gain.a3 = sprom_extract_antgain(sprom, bus 480 drivers/bcma/sprom.c static bool bcma_sprom_ext_available(struct bcma_bus *bus) bus 486 drivers/bcma/sprom.c if (bus->drv_cc.core->id.rev >= 31) { bus 487 drivers/bcma/sprom.c if (!(bus->drv_cc.capabilities & BCMA_CC_CAP_SPROM)) bus 490 drivers/bcma/sprom.c srom_control = bcma_read32(bus->drv_cc.core, bus 496 drivers/bcma/sprom.c chip_status = bcma_read32(bus->drv_cc.core, BCMA_CC_CHIPSTAT); bus 497 drivers/bcma/sprom.c switch (bus->chipinfo.id) { bus 516 drivers/bcma/sprom.c static bool bcma_sprom_onchip_available(struct bcma_bus *bus) bus 522 drivers/bcma/sprom.c chip_status = bcma_read32(bus->drv_cc.core, BCMA_CC_CHIPSTAT); bus 523 drivers/bcma/sprom.c switch (bus->chipinfo.id) { bus 550 drivers/bcma/sprom.c otpsize = bus->drv_cc.capabilities & BCMA_CC_CAP_OTPS; bus 563 drivers/bcma/sprom.c static int bcma_sprom_onchip_offset(struct bcma_bus *bus) bus 565 drivers/bcma/sprom.c struct bcma_device *cc = bus->drv_cc.core; bus 577 drivers/bcma/sprom.c int bcma_sprom_get(struct bcma_bus *bus) bus 588 drivers/bcma/sprom.c if (!bus->drv_cc.core) bus 591 drivers/bcma/sprom.c if (!bcma_sprom_ext_available(bus)) { bus 599 drivers/bcma/sprom.c sprom_onchip = bcma_sprom_onchip_available(bus); bus 602 drivers/bcma/sprom.c offset = bcma_sprom_onchip_offset(bus); bus 610 drivers/bcma/sprom.c err = bcma_fill_sprom_with_fallback(bus, &bus->sprom); bus 615 drivers/bcma/sprom.c if (bus->chipinfo.id == BCMA_CHIP_ID_BCM4331 || bus 616 drivers/bcma/sprom.c bus->chipinfo.id == BCMA_CHIP_ID_BCM43431) bus 617 drivers/bcma/sprom.c bcma_chipco_bcm4331_ext_pa_lines_ctl(&bus->drv_cc, false); bus 619 drivers/bcma/sprom.c bcma_debug(bus, "SPROM offset 0x%x\n", offset); bus 627 drivers/bcma/sprom.c bcma_sprom_read(bus, offset, sprom, words); bus 628 drivers/bcma/sprom.c err = bcma_sprom_valid(bus, sprom, words); bus 635 drivers/bcma/sprom.c if (bus->chipinfo.id == BCMA_CHIP_ID_BCM4331 || bus 636 drivers/bcma/sprom.c bus->chipinfo.id == BCMA_CHIP_ID_BCM43431) bus 637 drivers/bcma/sprom.c bcma_chipco_bcm4331_ext_pa_lines_ctl(&bus->drv_cc, true); bus 640 drivers/bcma/sprom.c bcma_warn(bus, "Invalid SPROM read from the PCIe card, trying to use fallback SPROM\n"); bus 641 drivers/bcma/sprom.c err = bcma_fill_sprom_with_fallback(bus, &bus->sprom); bus 643 drivers/bcma/sprom.c bcma_sprom_extract_r8(bus, sprom); bus 3966 drivers/block/mtip32xx/mtip32xx.c if (pdev->bus && pdev->bus->self) { bus 3967 drivers/block/mtip32xx/mtip32xx.c if (pdev->bus->self->vendor == PCI_VENDOR_ID_ATI && bus 3968 drivers/block/mtip32xx/mtip32xx.c ((pdev->bus->self->device & 0xff00) == 0x5a00)) { bus 3969 drivers/block/mtip32xx/mtip32xx.c mtip_disable_link_opts(dd, pdev->bus->self); bus 3972 drivers/block/mtip32xx/mtip32xx.c struct pci_dev *parent_dev = pdev->bus->self; bus 3973 drivers/block/mtip32xx/mtip32xx.c if (parent_dev->bus && bus 3974 drivers/block/mtip32xx/mtip32xx.c parent_dev->bus->parent && bus 3975 drivers/block/mtip32xx/mtip32xx.c parent_dev->bus->parent->self && bus 3976 drivers/block/mtip32xx/mtip32xx.c parent_dev->bus->parent->self->vendor == bus 3978 drivers/block/mtip32xx/mtip32xx.c (parent_dev->bus->parent->self->device & bus 3981 drivers/block/mtip32xx/mtip32xx.c parent_dev->bus->parent->self); bus 4008 drivers/block/mtip32xx/mtip32xx.c my_node = pcibus_to_node(pdev->bus); bus 4017 drivers/block/mtip32xx/mtip32xx.c my_node, pcibus_to_node(pdev->bus), dev_to_node(&pdev->dev), bus 498 drivers/block/rbd.c static ssize_t add_store(struct bus_type *bus, const char *buf, size_t count); bus 499 drivers/block/rbd.c static ssize_t remove_store(struct bus_type *bus, const char *buf, bus 501 drivers/block/rbd.c static ssize_t add_single_major_store(struct bus_type *bus, const char *buf, bus 503 drivers/block/rbd.c static ssize_t remove_single_major_store(struct bus_type *bus, const char *buf, bus 535 drivers/block/rbd.c static ssize_t supported_features_show(struct bus_type *bus, char *buf) bus 5575 drivers/block/rbd.c rbd_dev->dev.bus = &rbd_bus_type; bus 7051 drivers/block/rbd.c static ssize_t do_rbd_add(struct bus_type *bus, bus 7159 drivers/block/rbd.c static ssize_t add_store(struct bus_type *bus, const char *buf, size_t count) bus 7164 drivers/block/rbd.c return do_rbd_add(bus, buf, count); bus 7167 drivers/block/rbd.c static ssize_t add_single_major_store(struct bus_type *bus, const char *buf, bus 7170 drivers/block/rbd.c return do_rbd_add(bus, buf, count); bus 7200 drivers/block/rbd.c static ssize_t do_rbd_remove(struct bus_type *bus, bus 7271 drivers/block/rbd.c static ssize_t remove_store(struct bus_type *bus, const char *buf, size_t count) bus 7276 drivers/block/rbd.c return do_rbd_remove(bus, buf, count); bus 7279 drivers/block/rbd.c static ssize_t remove_single_major_store(struct bus_type *bus, const char *buf, bus 7282 drivers/block/rbd.c return do_rbd_remove(bus, buf, count); bus 663 drivers/bluetooth/bfusb.c hdev->bus = HCI_USB; bus 707 drivers/bluetooth/bluecard_cs.c hdev->bus = HCI_PCCARD; bus 387 drivers/bluetooth/bpa10x.c hdev->bus = HCI_USB; bus 561 drivers/bluetooth/bt3c_cs.c hdev->bus = HCI_PCCARD; bus 395 drivers/bluetooth/btbcm.c bcm_subver_table = (hdev->bus == HCI_USB) ? bcm_usb_subver_table : bus 405 drivers/bluetooth/btbcm.c if (hdev->bus == HCI_USB) { bus 683 drivers/bluetooth/btmrvl_main.c hdev->bus = HCI_SDIO; bus 955 drivers/bluetooth/btmtksdio.c hdev->bus = HCI_SDIO; bus 1001 drivers/bluetooth/btmtkuart.c hdev->bus = HCI_UART; bus 156 drivers/bluetooth/btqcomsmd.c hdev->bus = HCI_SMD; bus 133 drivers/bluetooth/btrsi.c hdev->bus = HCI_SDIO; bus 135 drivers/bluetooth/btrsi.c hdev->bus = HCI_USB; bus 568 drivers/bluetooth/btrtl.c hdev->bus); bus 308 drivers/bluetooth/btsdio.c hdev->bus = HCI_SDIO; bus 3680 drivers/bluetooth/btusb.c hdev->bus = HCI_USB; bus 282 drivers/bluetooth/btwilink.c hdev->bus = HCI_UART; bus 460 drivers/bluetooth/dtl1_cs.c hdev->bus = HCI_PCCARD; bus 638 drivers/bluetooth/hci_ldisc.c hdev->bus = HCI_UART; bus 299 drivers/bluetooth/hci_serdev.c hdev->bus = HCI_UART; bus 107 drivers/bluetooth/hci_vhci.c hdev->bus = HCI_VIRTUAL; bus 288 drivers/bus/fsl-mc/fsl-mc-bus.c mc_driver->driver.bus = &fsl_mc_bus_type; bus 593 drivers/bus/fsl-mc/fsl-mc-bus.c mc_dev->dev.bus = &fsl_mc_bus_type; bus 223 drivers/bus/mips_cdmm.c drv->drv.bus = &mips_cdmm_bustype; bus 289 drivers/bus/mips_cdmm.c struct mips_cdmm_bus *bus, **bus_p; bus 304 drivers/bus/mips_cdmm.c bus = *bus_p; bus 306 drivers/bus/mips_cdmm.c if (unlikely(!bus)) { bus 307 drivers/bus/mips_cdmm.c bus = kzalloc(sizeof(*bus), GFP_ATOMIC); bus 308 drivers/bus/mips_cdmm.c if (unlikely(!bus)) bus 309 drivers/bus/mips_cdmm.c bus = ERR_PTR(-ENOMEM); bus 311 drivers/bus/mips_cdmm.c *bus_p = bus; bus 314 drivers/bus/mips_cdmm.c return bus; bus 356 drivers/bus/mips_cdmm.c static int mips_cdmm_setup(struct mips_cdmm_bus *bus) bus 361 drivers/bus/mips_cdmm.c if (IS_ERR(bus)) bus 362 drivers/bus/mips_cdmm.c return PTR_ERR(bus); bus 366 drivers/bus/mips_cdmm.c if (bus->offline) { bus 368 drivers/bus/mips_cdmm.c if (bus->phys == mips_cdmm_cur_base()) bus 374 drivers/bus/mips_cdmm.c bus->offline = false; bus 375 drivers/bus/mips_cdmm.c } else if (bus->phys > 1) { bus 380 drivers/bus/mips_cdmm.c if (!bus->phys) bus 381 drivers/bus/mips_cdmm.c bus->phys = mips_cdmm_cur_base(); bus 383 drivers/bus/mips_cdmm.c if (!bus->phys) bus 384 drivers/bus/mips_cdmm.c bus->phys = mips_cdmm_phys_base(); bus 386 drivers/bus/mips_cdmm.c if (!bus->phys) bus 387 drivers/bus/mips_cdmm.c bus->phys = mips_cdmm_default_base; bus 389 drivers/bus/mips_cdmm.c if (!bus->phys) { bus 390 drivers/bus/mips_cdmm.c bus->phys = 1; bus 400 drivers/bus/mips_cdmm.c if (bus->phys == 1) { bus 405 drivers/bus/mips_cdmm.c mips_cdmm_default_base = bus->phys; bus 408 drivers/bus/mips_cdmm.c smp_processor_id(), &bus->phys); bus 413 drivers/bus/mips_cdmm.c cdmmbase |= (bus->phys >> MIPS_CDMMBASE_ADDR_START) bus 419 drivers/bus/mips_cdmm.c bus->regs = (void __iomem *)CKSEG1ADDR(bus->phys); bus 420 drivers/bus/mips_cdmm.c bus->drbs = 1 + ((cdmmbase & MIPS_CDMMBASE_SIZE) >> bus 422 drivers/bus/mips_cdmm.c bus->drbs_reserved = !!(cdmmbase & MIPS_CDMMBASE_CI); bus 448 drivers/bus/mips_cdmm.c struct mips_cdmm_bus *bus; bus 457 drivers/bus/mips_cdmm.c bus = mips_cdmm_get_bus(); bus 458 drivers/bus/mips_cdmm.c err = mips_cdmm_setup(bus); bus 463 drivers/bus/mips_cdmm.c drb = bus->drbs_reserved; bus 464 drivers/bus/mips_cdmm.c cdmm = bus->regs; bus 467 drivers/bus/mips_cdmm.c for (; drb < bus->drbs; drb += size + 1) { bus 497 drivers/bus/mips_cdmm.c static void mips_cdmm_bus_discover(struct mips_cdmm_bus *bus) bus 508 drivers/bus/mips_cdmm.c drb = bus->drbs_reserved; bus 509 drivers/bus/mips_cdmm.c cdmm = bus->regs; bus 512 drivers/bus/mips_cdmm.c bus->discovered = true; bus 513 drivers/bus/mips_cdmm.c pr_info("cdmm%u discovery (%u blocks)\n", cpu, bus->drbs); bus 514 drivers/bus/mips_cdmm.c for (; drb < bus->drbs; drb += size + 1) { bus 533 drivers/bus/mips_cdmm.c dev->res.start = bus->phys + drb * CDMM_DRB_SIZE; bus 534 drivers/bus/mips_cdmm.c dev->res.end = bus->phys + bus 540 drivers/bus/mips_cdmm.c dev->dev.bus = &mips_cdmm_bustype; bus 608 drivers/bus/mips_cdmm.c struct mips_cdmm_bus *bus; bus 619 drivers/bus/mips_cdmm.c bus = mips_cdmm_get_bus(); bus 620 drivers/bus/mips_cdmm.c if (!IS_ERR(bus)) bus 621 drivers/bus/mips_cdmm.c bus->offline = true; bus 640 drivers/bus/mips_cdmm.c struct mips_cdmm_bus *bus; bus 643 drivers/bus/mips_cdmm.c bus = mips_cdmm_get_bus(); bus 644 drivers/bus/mips_cdmm.c ret = mips_cdmm_setup(bus); bus 649 drivers/bus/mips_cdmm.c bus->offline = false; bus 651 drivers/bus/mips_cdmm.c if (!bus->discovered) bus 652 drivers/bus/mips_cdmm.c mips_cdmm_bus_discover(bus); bus 116 drivers/bus/moxtet.c mdrv->driver.bus = &moxtet_bus_type; bus 156 drivers/bus/moxtet.c dev->dev.bus = &moxtet_bus_type; bus 211 drivers/bus/sunxi-rsb.c rdev->dev.bus = &sunxi_rsb_bus; bus 246 drivers/bus/sunxi-rsb.c if (dev->bus == &sunxi_rsb_bus) bus 261 drivers/bus/sunxi-rsb.c rdrv->driver.bus = &sunxi_rsb_bus; bus 398 drivers/char/agp/amd64-agp.c dev1 = pci_get_slot (pdev->bus,PCI_DEVFN(0,0)); bus 461 drivers/char/agp/amd64-agp.c dev1 = pci_get_slot(pdev->bus, PCI_DEVFN(11, 0)); bus 1008 drivers/char/agp/intel-gtt.c ret = pci_bus_alloc_resource(intel_private.bridge_dev->bus, &intel_private.ifp_resource, PAGE_SIZE, bus 343 drivers/char/agp/nvidia-agp.c pci_get_domain_bus_and_slot(pci_domain_nr(pdev->bus), bus 344 drivers/char/agp/nvidia-agp.c (unsigned int)pdev->bus->number, bus 347 drivers/char/agp/nvidia-agp.c pci_get_domain_bus_and_slot(pci_domain_nr(pdev->bus), bus 348 drivers/char/agp/nvidia-agp.c (unsigned int)pdev->bus->number, bus 351 drivers/char/agp/nvidia-agp.c pci_get_domain_bus_and_slot(pci_domain_nr(pdev->bus), bus 352 drivers/char/agp/nvidia-agp.c (unsigned int)pdev->bus->number, bus 477 drivers/char/agp/sworks-agp.c bridge_dev = pci_get_domain_bus_and_slot(pci_domain_nr(pdev->bus), bus 478 drivers/char/agp/sworks-agp.c (unsigned int)pdev->bus->number, bus 315 drivers/char/agp/uninorth-agp.c if (device->bus != pdev->bus) bus 285 drivers/char/hw_random/optee-rng.c .bus = &tee_bus_type, bus 630 drivers/char/ipmi/ipmi_msghandler.c .bus = &platform_bus_type bus 3187 drivers/clk/samsung/clk-exynos5433.c .div_clks = bus##id##_div_clks, \ bus 3188 drivers/clk/samsung/clk-exynos5433.c .nr_div_clks = ARRAY_SIZE(bus##id##_div_clks), \ bus 3189 drivers/clk/samsung/clk-exynos5433.c .gate_clks = bus##id##_gate_clks, \ bus 3190 drivers/clk/samsung/clk-exynos5433.c .nr_gate_clks = ARRAY_SIZE(bus##id##_gate_clks), \ bus 3216 drivers/clk/samsung/clk-exynos5433.c samsung_cmu_register_one(np, &bus##id##_cmu_info); \ bus 1428 drivers/counter/counter.c device_state->dev.bus = &counter_bus_type; bus 121 drivers/crypto/ccp/sp-pci.c if (pdev_new->bus->number < pdev_cur->bus->number) bus 192 drivers/crypto/qat/qat_c3xxx/adf_drv.c pdev->bus->number, PCI_SLOT(pdev->devfn), bus 176 drivers/crypto/qat/qat_c3xxxvf/adf_drv.c pdev->bus->number, PCI_SLOT(pdev->devfn), bus 192 drivers/crypto/qat/qat_c62x/adf_drv.c pdev->bus->number, PCI_SLOT(pdev->devfn), bus 176 drivers/crypto/qat/qat_c62xvf/adf_drv.c pdev->bus->number, PCI_SLOT(pdev->devfn), bus 88 drivers/crypto/qat/qat_common/adf_aer.c struct pci_dev *parent = pdev->bus->self; bus 91 drivers/crypto/qat/qat_common/adf_cfg_common.h uint8_t bus; bus 413 drivers/crypto/qat/qat_common/adf_ctl_drv.c dev_info.bus = accel_to_pci_dev(accel_dev)->bus->number; bus 75 drivers/crypto/qat/qat_common/adf_dev_mgr.c return (accel_to_pci_dev(vf)->bus->number << 8) | adf_get_vf_id(vf); bus 243 drivers/crypto/qat/qat_common/adf_vf_isr.c "qat_%02x:%02d.%02d", pdev->bus->number, PCI_SLOT(pdev->devfn), bus 192 drivers/crypto/qat/qat_dh895xcc/adf_drv.c pdev->bus->number, PCI_SLOT(pdev->devfn), bus 176 drivers/crypto/qat/qat_dh895xccvf/adf_drv.c pdev->bus->number, PCI_SLOT(pdev->devfn), bus 195 drivers/crypto/qce/core.c qce->bus = devm_clk_get(qce->dev, "bus"); bus 196 drivers/crypto/qce/core.c if (IS_ERR(qce->bus)) bus 197 drivers/crypto/qce/core.c return PTR_ERR(qce->bus); bus 207 drivers/crypto/qce/core.c ret = clk_prepare_enable(qce->bus); bus 236 drivers/crypto/qce/core.c clk_disable_unprepare(qce->bus); bus 251 drivers/crypto/qce/core.c clk_disable_unprepare(qce->bus); bus 37 drivers/crypto/qce/core.h struct clk *core, *iface, *bus; bus 429 drivers/dax/bus.c dev->bus = &dax_bus_type; bus 469 drivers/dax/bus.c drv->bus = &dax_bus_type; bus 34 drivers/dca/dca-core.c struct pci_bus *bus = pdev->bus; bus 36 drivers/dca/dca-core.c while (bus->parent) bus 37 drivers/dca/dca-core.c bus = bus->parent; bus 39 drivers/dca/dca-core.c return bus; bus 45 drivers/devfreq/exynos-bus.c static int exynos_bus_##ops(struct exynos_bus *bus) \ bus 49 drivers/devfreq/exynos-bus.c for (i = 0; i < bus->edev_count; i++) { \ bus 50 drivers/devfreq/exynos-bus.c if (!bus->edev[i]) \ bus 52 drivers/devfreq/exynos-bus.c ret = devfreq_event_##ops(bus->edev[i]); \ bus 63 drivers/devfreq/exynos-bus.c static int exynos_bus_get_event(struct exynos_bus *bus, bus 70 drivers/devfreq/exynos-bus.c for (i = 0; i < bus->edev_count; i++) { bus 71 drivers/devfreq/exynos-bus.c if (!bus->edev[i]) bus 74 drivers/devfreq/exynos-bus.c ret = devfreq_event_get_event(bus->edev[i], &event_data); bus 95 drivers/devfreq/exynos-bus.c struct exynos_bus *bus = dev_get_drvdata(dev); bus 109 drivers/devfreq/exynos-bus.c mutex_lock(&bus->lock); bus 112 drivers/devfreq/exynos-bus.c bus->curr_freq = *freq; bus 114 drivers/devfreq/exynos-bus.c mutex_unlock(&bus->lock); bus 122 drivers/devfreq/exynos-bus.c struct exynos_bus *bus = dev_get_drvdata(dev); bus 126 drivers/devfreq/exynos-bus.c stat->current_frequency = bus->curr_freq; bus 128 drivers/devfreq/exynos-bus.c ret = exynos_bus_get_event(bus, &edata); bus 134 drivers/devfreq/exynos-bus.c stat->busy_time = (edata.load_count * 100) / bus->ratio; bus 141 drivers/devfreq/exynos-bus.c ret = exynos_bus_set_event(bus); bus 152 drivers/devfreq/exynos-bus.c struct exynos_bus *bus = dev_get_drvdata(dev); bus 155 drivers/devfreq/exynos-bus.c ret = exynos_bus_disable_edev(bus); bus 160 drivers/devfreq/exynos-bus.c clk_disable_unprepare(bus->clk); bus 161 drivers/devfreq/exynos-bus.c if (bus->opp_table) { bus 162 drivers/devfreq/exynos-bus.c dev_pm_opp_put_regulators(bus->opp_table); bus 163 drivers/devfreq/exynos-bus.c bus->opp_table = NULL; bus 169 drivers/devfreq/exynos-bus.c struct exynos_bus *bus = dev_get_drvdata(dev); bus 172 drivers/devfreq/exynos-bus.c clk_disable_unprepare(bus->clk); bus 176 drivers/devfreq/exynos-bus.c struct exynos_bus *bus) bus 178 drivers/devfreq/exynos-bus.c struct device *dev = bus->dev; bus 190 drivers/devfreq/exynos-bus.c bus->opp_table = opp_table; bus 202 drivers/devfreq/exynos-bus.c bus->edev_count = count; bus 204 drivers/devfreq/exynos-bus.c size = sizeof(*bus->edev) * count; bus 205 drivers/devfreq/exynos-bus.c bus->edev = devm_kzalloc(dev, size, GFP_KERNEL); bus 206 drivers/devfreq/exynos-bus.c if (!bus->edev) { bus 212 drivers/devfreq/exynos-bus.c bus->edev[i] = devfreq_event_get_edev_by_phandle(dev, i); bus 213 drivers/devfreq/exynos-bus.c if (IS_ERR(bus->edev[i])) { bus 229 drivers/devfreq/exynos-bus.c if (of_property_read_u32(np, "exynos,saturation-ratio", &bus->ratio)) bus 230 drivers/devfreq/exynos-bus.c bus->ratio = DEFAULT_SATURATION_RATIO; bus 235 drivers/devfreq/exynos-bus.c dev_pm_opp_put_regulators(bus->opp_table); bus 236 drivers/devfreq/exynos-bus.c bus->opp_table = NULL; bus 242 drivers/devfreq/exynos-bus.c struct exynos_bus *bus) bus 244 drivers/devfreq/exynos-bus.c struct device *dev = bus->dev; bus 250 drivers/devfreq/exynos-bus.c bus->clk = devm_clk_get(dev, "bus"); bus 251 drivers/devfreq/exynos-bus.c if (IS_ERR(bus->clk)) { bus 253 drivers/devfreq/exynos-bus.c return PTR_ERR(bus->clk); bus 256 drivers/devfreq/exynos-bus.c ret = clk_prepare_enable(bus->clk); bus 269 drivers/devfreq/exynos-bus.c rate = clk_get_rate(bus->clk); bus 277 drivers/devfreq/exynos-bus.c bus->curr_freq = dev_pm_opp_get_freq(opp); bus 285 drivers/devfreq/exynos-bus.c clk_disable_unprepare(bus->clk); bus 298 drivers/devfreq/exynos-bus.c struct exynos_bus *bus; bus 308 drivers/devfreq/exynos-bus.c bus = devm_kzalloc(&pdev->dev, sizeof(*bus), GFP_KERNEL); bus 309 drivers/devfreq/exynos-bus.c if (!bus) bus 311 drivers/devfreq/exynos-bus.c mutex_init(&bus->lock); bus 312 drivers/devfreq/exynos-bus.c bus->dev = &pdev->dev; bus 313 drivers/devfreq/exynos-bus.c platform_set_drvdata(pdev, bus); bus 324 drivers/devfreq/exynos-bus.c ret = exynos_bus_parent_parse_of(np, bus); bus 330 drivers/devfreq/exynos-bus.c ret = exynos_bus_parse_of(np, bus); bus 352 drivers/devfreq/exynos-bus.c bus->devfreq = devm_devfreq_add_device(dev, profile, bus 355 drivers/devfreq/exynos-bus.c if (IS_ERR(bus->devfreq)) { bus 357 drivers/devfreq/exynos-bus.c ret = PTR_ERR(bus->devfreq); bus 362 drivers/devfreq/exynos-bus.c ret = devm_devfreq_register_opp_notifier(dev, bus->devfreq); bus 372 drivers/devfreq/exynos-bus.c ret = exynos_bus_enable_edev(bus); bus 378 drivers/devfreq/exynos-bus.c ret = exynos_bus_set_event(bus); bus 405 drivers/devfreq/exynos-bus.c bus->devfreq = devm_devfreq_add_device(dev, profile, DEVFREQ_GOV_PASSIVE, bus 407 drivers/devfreq/exynos-bus.c if (IS_ERR(bus->devfreq)) { bus 410 drivers/devfreq/exynos-bus.c ret = PTR_ERR(bus->devfreq); bus 415 drivers/devfreq/exynos-bus.c max_state = bus->devfreq->profile->max_state; bus 416 drivers/devfreq/exynos-bus.c min_freq = (bus->devfreq->profile->freq_table[0] / 1000); bus 417 drivers/devfreq/exynos-bus.c max_freq = (bus->devfreq->profile->freq_table[max_state - 1] / 1000); bus 425 drivers/devfreq/exynos-bus.c clk_disable_unprepare(bus->clk); bus 428 drivers/devfreq/exynos-bus.c dev_pm_opp_put_regulators(bus->opp_table); bus 429 drivers/devfreq/exynos-bus.c bus->opp_table = NULL; bus 437 drivers/devfreq/exynos-bus.c struct exynos_bus *bus = dev_get_drvdata(&pdev->dev); bus 439 drivers/devfreq/exynos-bus.c devfreq_suspend_device(bus->devfreq); bus 445 drivers/devfreq/exynos-bus.c struct exynos_bus *bus = dev_get_drvdata(dev); bus 448 drivers/devfreq/exynos-bus.c ret = exynos_bus_enable_edev(bus); bus 459 drivers/devfreq/exynos-bus.c struct exynos_bus *bus = dev_get_drvdata(dev); bus 462 drivers/devfreq/exynos-bus.c ret = exynos_bus_disable_edev(bus); bus 80 drivers/dio/dio-driver.c drv->driver.bus = &dio_bus_type; bus 222 drivers/dio/dio.c dev->bus = &dio_bus; bus 224 drivers/dio/dio.c dev->dev.bus = &dio_bus_type; bus 135 drivers/dma/amba-pl08x.c #define IS_BUS_ALIGNED(bus) IS_ALIGNED((bus)->addr, (bus)->buswidth) bus 64 drivers/dma/ioat/dca.c return (pci->bus->number << 8) | pci->devfn; bus 911 drivers/dma/s3c24xx-dma.c switch (cdata->bus) { bus 1000 drivers/dma/s3c24xx-dma.c switch (cdata->bus) { bus 1215 drivers/edac/amd64_edac.c if (pci_domain_nr(dev->bus) == pci_domain_nr(related->bus) && bus 1216 drivers/edac/amd64_edac.c (dev->bus->number == related->bus->number) && bus 1182 drivers/edac/e752x_edac.c pvt->dev_d0f1 = pci_scan_single_device(pdev->bus, bus 745 drivers/edac/edac_mc.c mci->bus = edac_get_sysfs_subsys(); bus 1034 drivers/edac/edac_mc_sysfs.c mci_pdev->bus = edac_get_sysfs_subsys(); bus 38 drivers/edac/i10nm_base.c static struct pci_dev *pci_get_dev_wrapper(int dom, unsigned int bus, bus 43 drivers/edac/i10nm_base.c pdev = pci_get_domain_bus_and_slot(dom, bus, PCI_DEVFN(dev, fun)); bus 46 drivers/edac/i10nm_base.c bus, dev, fun); bus 52 drivers/edac/i10nm_base.c bus, dev, fun); bus 72 drivers/edac/i10nm_base.c d->util_all = pci_get_dev_wrapper(d->seg, d->bus[1], 29, 1); bus 76 drivers/edac/i10nm_base.c d->uracu = pci_get_dev_wrapper(d->seg, d->bus[0], 0, 1); bus 90 drivers/edac/i10nm_base.c mdev = pci_get_dev_wrapper(d->seg, d->bus[0], bus 1364 drivers/edac/i5000_edac.c pdev->bus->number, bus 969 drivers/edac/i5100_edac.c priv->debugfs = edac_debugfs_create_dir_at(mci->bus->name, i5100_debugfs); bus 1272 drivers/edac/i5400_edac.c pdev->bus->number, bus 1035 drivers/edac/i7300_edac.c pdev->bus->number, bus 872 drivers/edac/i7core_edac.c dev->bus->number, PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn), bus 887 drivers/edac/i7core_edac.c dev->bus->number, PCI_SLOT(dev->devfn), PCI_FUNC(dev->devfn), bus 1168 drivers/edac/i7core_edac.c pvt->addrmatch_dev->bus = mci->dev.bus; bus 1189 drivers/edac/i7core_edac.c pvt->chancounts_dev->bus = mci->dev.bus; bus 1245 drivers/edac/i7core_edac.c pdev->bus->number, bus 1284 drivers/edac/i7core_edac.c int last_bus = 0, bus; bus 1288 drivers/edac/i7core_edac.c bus = b->number; bus 1289 drivers/edac/i7core_edac.c edac_dbg(0, "Found bus %d\n", bus); bus 1290 drivers/edac/i7core_edac.c if (bus > last_bus) bus 1291 drivers/edac/i7core_edac.c last_bus = bus; bus 1314 drivers/edac/i7core_edac.c u8 bus = 0; bus 1359 drivers/edac/i7core_edac.c bus = pdev->bus->number; bus 1361 drivers/edac/i7core_edac.c socket = last_bus - bus; bus 1376 drivers/edac/i7core_edac.c bus, dev_descr->dev, dev_descr->func, bus 1391 drivers/edac/i7core_edac.c bus, PCI_SLOT(pdev->devfn), PCI_FUNC(pdev->devfn), bus 1392 drivers/edac/i7core_edac.c bus, dev_descr->dev, dev_descr->func); bus 1401 drivers/edac/i7core_edac.c bus, dev_descr->dev, dev_descr->func, bus 1407 drivers/edac/i7core_edac.c socket, bus, dev_descr->dev, bus 289 drivers/edac/i82875p_edac.c dev = pci_scan_single_device(pdev->bus, PCI_DEVFN(6, 0)); bus 294 drivers/edac/i82875p_edac.c pci_bus_assign_resources(dev->bus); bus 355 drivers/edac/sb_edac.c u8 bus, mc; bus 732 drivers/edac/sb_edac.c static struct sbridge_dev *get_sbridge_dev(int seg, u8 bus, enum domain dom, bus 751 drivers/edac/sb_edac.c if ((sbridge_dev->seg == seg) && (sbridge_dev->bus == bus) && bus 759 drivers/edac/sb_edac.c static struct sbridge_dev *alloc_sbridge_dev(int seg, u8 bus, enum domain dom, bus 777 drivers/edac/sb_edac.c sbridge_dev->bus = bus; bus 2313 drivers/edac/sb_edac.c pdev->bus->number, bus 2339 drivers/edac/sb_edac.c u8 bus = 0; bus 2369 drivers/edac/sb_edac.c seg = pci_domain_nr(pdev->bus); bus 2370 drivers/edac/sb_edac.c bus = pdev->bus->number; bus 2373 drivers/edac/sb_edac.c sbridge_dev = get_sbridge_dev(seg, bus, dev_descr->dom, bus 2387 drivers/edac/sb_edac.c sbridge_dev = alloc_sbridge_dev(seg, bus, dev_descr->dom, table); bus 2539 drivers/edac/sb_edac.c sbridge_dev->bus, bus 2622 drivers/edac/sb_edac.c sbridge_dev->bus, bus 2713 drivers/edac/sb_edac.c sbridge_dev->bus, bus 2794 drivers/edac/sb_edac.c sbridge_dev->bus, bus 36 drivers/edac/skx_base.c static struct skx_dev *get_skx_dev(struct pci_bus *bus, u8 idx) bus 41 drivers/edac/skx_base.c if (d->seg == pci_domain_nr(bus) && d->bus[idx] == bus->number) bus 95 drivers/edac/skx_base.c d = get_skx_dev(pdev->bus, m->busidx); bus 210 drivers/edac/skx_common.c d->bus[0] = GET_BITFIELD(reg, 0, 7); bus 211 drivers/edac/skx_common.c d->bus[1] = GET_BITFIELD(reg, 8, 15); bus 213 drivers/edac/skx_common.c d->seg = pci_domain_nr(pdev->bus); bus 214 drivers/edac/skx_common.c d->bus[2] = GET_BITFIELD(reg, 16, 23); bus 215 drivers/edac/skx_common.c d->bus[3] = GET_BITFIELD(reg, 24, 31); bus 221 drivers/edac/skx_common.c d->bus[0], d->bus[1], d->bus[2], d->bus[3]); bus 52 drivers/edac/skx_common.h u8 bus[4]; bus 147 drivers/eisa/eisa-bus.c edrv->driver.bus = &eisa_bus_type; bus 209 drivers/eisa/eisa-bus.c edev->dev.bus = &eisa_bus_type; bus 41 drivers/eisa/pci_eisa.c pci_bus_for_each_resource(pdev->bus, res, i) bus 710 drivers/firewire/core-device.c unit->device.bus = &fw_bus_type; bus 1036 drivers/firewire/core-device.c device->device.bus = &fw_bus_type; bus 1614 drivers/firewire/net.c .bus = &fw_bus_type, bus 1270 drivers/firewire/sbp2.c .bus = &fw_bus_type, bus 103 drivers/firmware/arm_scmi/bus.c driver->driver.bus = &scmi_bus_type; bus 147 drivers/firmware/arm_scmi/bus.c scmi_dev->dev.bus = &scmi_bus_type; bus 593 drivers/firmware/broadcom/bcm47xx_sprom.c static int bcm47xx_get_sprom_ssb(struct ssb_bus *bus, struct ssb_sprom *out) bus 597 drivers/firmware/broadcom/bcm47xx_sprom.c switch (bus->bustype) { bus 604 drivers/firmware/broadcom/bcm47xx_sprom.c bus->host_pci->bus->number + 1, bus 605 drivers/firmware/broadcom/bcm47xx_sprom.c PCI_SLOT(bus->host_pci->devfn)); bus 648 drivers/firmware/broadcom/bcm47xx_sprom.c static int bcm47xx_get_sprom_bcma(struct bcma_bus *bus, struct ssb_sprom *out) bus 650 drivers/firmware/broadcom/bcm47xx_sprom.c struct bcma_boardinfo *binfo = &bus->boardinfo; bus 656 drivers/firmware/broadcom/bcm47xx_sprom.c switch (bus->hosttype) { bus 662 drivers/firmware/broadcom/bcm47xx_sprom.c bus->host_pci->bus->number + 1, bus 663 drivers/firmware/broadcom/bcm47xx_sprom.c PCI_SLOT(bus->host_pci->devfn)); bus 666 drivers/firmware/broadcom/bcm47xx_sprom.c pci_domain_nr(bus->host_pci->bus) + 1, bus 667 drivers/firmware/broadcom/bcm47xx_sprom.c bus->host_pci->bus->number); bus 673 drivers/firmware/broadcom/bcm47xx_sprom.c core = bcma_find_core(bus, BCMA_CORE_80211); bus 323 drivers/firmware/dmi_scan.c static void __init dmi_save_dev_pciaddr(int instance, int segment, int bus, bus 330 drivers/firmware/dmi_scan.c segment == 0xFFFF && bus == 0xFF && devfn == 0xFF) bus 339 drivers/firmware/dmi_scan.c dev->bus = bus; bus 149 drivers/firmware/edd.c info->params.interface_path.pci.bus, bus 664 drivers/firmware/edd.c info->params.interface_path.pci.bus, bus 375 drivers/firmware/efi/cper.c pcie->device_id.segment, pcie->device_id.bus, bus 75 drivers/firmware/google/coreboot_table.c driver->drv.bus = &coreboot_bus_type; bus 105 drivers/firmware/google/coreboot_table.c device->dev.bus = &coreboot_bus_type; bus 67 drivers/firmware/pcdp.h u8 bus; bus 172 drivers/fsi/fsi-core.c dev->dev.bus = &fsi_bus_type; bus 332 drivers/fsi/fsi-master-hub.c .bus = &fsi_bus_type, bus 1043 drivers/fsi/fsi-sbefifo.c .bus = &fsi_bus_type, bus 642 drivers/fsi/fsi-scom.c .bus = &fsi_bus_type, bus 1284 drivers/gpio/gpiolib.c gdev->dev.bus = &gpio_bus_type; bus 5050 drivers/gpio/gpiolib.c parent->bus ? parent->bus->name : "no-bus", bus 685 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c atcs_input.client_id = adev->pdev->devfn | (adev->pdev->bus->number << 8); bus 385 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c vhdr->PCIBus == adev->pdev->bus->number && bus 767 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c root = adev->pdev->bus; bus 799 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c pci_assign_unassigned_bus_resources(adev->pdev->bus); bus 3977 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (pci_is_root_bus(adev->pdev->bus)) { bus 711 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c mem->bus.addr = NULL; bus 712 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c mem->bus.offset = 0; bus 713 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c mem->bus.size = mem->num_pages << PAGE_SHIFT; bus 714 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c mem->bus.base = 0; bus 715 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c mem->bus.is_iomem = false; bus 725 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c mem->bus.offset = mem->start << PAGE_SHIFT; bus 727 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c if ((mem->bus.offset + mem->bus.size) > adev->gmc.visible_vram_size) bus 735 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c mem->bus.addr = (u8 *)adev->mman.aper_base_kaddr + bus 736 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c mem->bus.offset; bus 738 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c mem->bus.base = adev->gmc.aper_base; bus 739 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c mem->bus.is_iomem = true; bus 758 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c return (bo->mem.bus.base >> PAGE_SHIFT) + mm->start + bus 1386 drivers/gpu/drm/amd/amdgpu/cik.c struct pci_dev *root = adev->pdev->bus->self; bus 1392 drivers/gpu/drm/amd/amdgpu/cik.c if (pci_is_root_bus(adev->pdev->bus)) bus 1554 drivers/gpu/drm/amd/amdgpu/cik.c if (pci_is_root_bus(adev->pdev->bus)) bus 1633 drivers/gpu/drm/amd/amdgpu/cik.c struct pci_dev *root = adev->pdev->bus->self; bus 346 drivers/gpu/drm/amd/amdgpu/nv.c if (pci_is_root_bus(adev->pdev->bus)) bus 1635 drivers/gpu/drm/amd/amdgpu/si.c struct pci_dev *root = adev->pdev->bus->self; bus 1641 drivers/gpu/drm/amd/amdgpu/si.c if (pci_is_root_bus(adev->pdev->bus)) bus 1953 drivers/gpu/drm/amd/amdgpu/si.c !pci_is_root_bus(adev->pdev->bus)) { bus 1954 drivers/gpu/drm/amd/amdgpu/si.c struct pci_dev *root = adev->pdev->bus->self; bus 627 drivers/gpu/drm/amd/amdgpu/soc15.c if (pci_is_root_bus(adev->pdev->bus)) bus 852 drivers/gpu/drm/amd/amdgpu/vi.c if (pci_is_root_bus(adev->pdev->bus)) bus 1081 drivers/gpu/drm/amd/amdkfd/kfd_topology.c buf[2] = pci_domain_nr(gpu->pdev->bus); bus 1083 drivers/gpu/drm/amd/amdkfd/kfd_topology.c buf[4] = gpu->pdev->bus->number; bus 135 drivers/gpu/drm/drm_mipi_dsi.c dsi->dev.bus = &mipi_dsi_bus_type; bus 1127 drivers/gpu/drm/drm_mipi_dsi.c drv->driver.bus = &mipi_dsi_bus_type; bus 122 drivers/gpu/drm/drm_pci.c return pci_domain_nr(dev->pdev->bus); bus 129 drivers/gpu/drm/drm_pci.c dev->pdev->bus->number, bus 142 drivers/gpu/drm/drm_pci.c (p->busnum & 0xff) != dev->pdev->bus->number || bus 110 drivers/gpu/drm/drm_vram_mm_helper.c mem->bus.addr = NULL; bus 111 drivers/gpu/drm/drm_vram_mm_helper.c mem->bus.size = mem->num_pages << PAGE_SHIFT; bus 115 drivers/gpu/drm/drm_vram_mm_helper.c mem->bus.offset = 0; bus 116 drivers/gpu/drm/drm_vram_mm_helper.c mem->bus.base = 0; bus 117 drivers/gpu/drm/drm_vram_mm_helper.c mem->bus.is_iomem = false; bus 120 drivers/gpu/drm/drm_vram_mm_helper.c mem->bus.offset = mem->start << PAGE_SHIFT; bus 121 drivers/gpu/drm/drm_vram_mm_helper.c mem->bus.base = vmm->vram_base; bus 122 drivers/gpu/drm/drm_vram_mm_helper.c mem->bus.is_iomem = true; bus 209 drivers/gpu/drm/gma500/cdv_device.c int domain = pci_domain_nr(dev->pdev->bus); bus 245 drivers/gpu/drm/gma500/cdv_device.c CDV_MSG_WRITE32(pci_domain_nr(dev->pdev->bus), 3, 0x30, 0x08027108); bus 14 drivers/gpu/drm/gma500/gma_device.c pci_get_domain_bus_and_slot(pci_domain_nr(dev->pdev->bus), bus 250 drivers/gpu/drm/gma500/intel_gmbus.c struct intel_gmbus *bus = container_of(adapter, bus 256 drivers/gpu/drm/gma500/intel_gmbus.c if (bus->force_bit) bus 258 drivers/gpu/drm/gma500/intel_gmbus.c bus->force_bit, msgs, num); bus 262 drivers/gpu/drm/gma500/intel_gmbus.c GMBUS_REG_WRITE(GMBUS0 + reg_offset, bus->reg0); bus 350 drivers/gpu/drm/gma500/intel_gmbus.c bus->reg0 & 0xff, bus->adapter.name); bus 354 drivers/gpu/drm/gma500/intel_gmbus.c bus->force_bit = intel_gpio_create(dev_priv, bus->reg0 & 0xff); bus 355 drivers/gpu/drm/gma500/intel_gmbus.c if (!bus->force_bit) bus 358 drivers/gpu/drm/gma500/intel_gmbus.c return intel_i2c_quirk_xfer(dev_priv, bus->force_bit, msgs, num); bus 363 drivers/gpu/drm/gma500/intel_gmbus.c struct intel_gmbus *bus = container_of(adapter, bus 367 drivers/gpu/drm/gma500/intel_gmbus.c if (bus->force_bit) bus 368 drivers/gpu/drm/gma500/intel_gmbus.c bus->force_bit->algo->functionality(bus->force_bit); bus 411 drivers/gpu/drm/gma500/intel_gmbus.c struct intel_gmbus *bus = &dev_priv->gmbus[i]; bus 413 drivers/gpu/drm/gma500/intel_gmbus.c bus->adapter.owner = THIS_MODULE; bus 414 drivers/gpu/drm/gma500/intel_gmbus.c bus->adapter.class = I2C_CLASS_DDC; bus 415 drivers/gpu/drm/gma500/intel_gmbus.c snprintf(bus->adapter.name, bus 416 drivers/gpu/drm/gma500/intel_gmbus.c sizeof(bus->adapter.name), bus 420 drivers/gpu/drm/gma500/intel_gmbus.c bus->adapter.dev.parent = &dev->pdev->dev; bus 421 drivers/gpu/drm/gma500/intel_gmbus.c bus->adapter.algo_data = dev_priv; bus 423 drivers/gpu/drm/gma500/intel_gmbus.c bus->adapter.algo = &gmbus_algorithm; bus 424 drivers/gpu/drm/gma500/intel_gmbus.c ret = i2c_add_adapter(&bus->adapter); bus 429 drivers/gpu/drm/gma500/intel_gmbus.c bus->reg0 = i | GMBUS_RATE_100KHZ; bus 432 drivers/gpu/drm/gma500/intel_gmbus.c bus->force_bit = intel_gpio_create(dev_priv, i); bus 441 drivers/gpu/drm/gma500/intel_gmbus.c struct intel_gmbus *bus = &dev_priv->gmbus[i]; bus 442 drivers/gpu/drm/gma500/intel_gmbus.c i2c_del_adapter(&bus->adapter); bus 451 drivers/gpu/drm/gma500/intel_gmbus.c struct intel_gmbus *bus = to_intel_gmbus(adapter); bus 459 drivers/gpu/drm/gma500/intel_gmbus.c bus->reg0 = (bus->reg0 & ~(0x3 << 8)) | (speed << 8); bus 464 drivers/gpu/drm/gma500/intel_gmbus.c struct intel_gmbus *bus = to_intel_gmbus(adapter); bus 467 drivers/gpu/drm/gma500/intel_gmbus.c if (bus->force_bit == NULL) { bus 469 drivers/gpu/drm/gma500/intel_gmbus.c bus->force_bit = intel_gpio_create(dev_priv, bus 470 drivers/gpu/drm/gma500/intel_gmbus.c bus->reg0 & 0xff); bus 473 drivers/gpu/drm/gma500/intel_gmbus.c if (bus->force_bit) { bus 474 drivers/gpu/drm/gma500/intel_gmbus.c i2c_del_adapter(bus->force_bit); bus 475 drivers/gpu/drm/gma500/intel_gmbus.c kfree(bus->force_bit); bus 476 drivers/gpu/drm/gma500/intel_gmbus.c bus->force_bit = NULL; bus 490 drivers/gpu/drm/gma500/intel_gmbus.c struct intel_gmbus *bus = &dev_priv->gmbus[i]; bus 491 drivers/gpu/drm/gma500/intel_gmbus.c if (bus->force_bit) { bus 492 drivers/gpu/drm/gma500/intel_gmbus.c i2c_del_adapter(bus->force_bit); bus 493 drivers/gpu/drm/gma500/intel_gmbus.c kfree(bus->force_bit); bus 495 drivers/gpu/drm/gma500/intel_gmbus.c i2c_del_adapter(&bus->adapter); bus 23 drivers/gpu/drm/gma500/mid_bios.c pci_get_domain_bus_and_slot(pci_domain_nr(dev->pdev->bus), bus 96 drivers/gpu/drm/gma500/mid_bios.c int domain = pci_domain_nr(dev_priv->dev->pdev->bus); bus 276 drivers/gpu/drm/gma500/mid_bios.c pci_get_domain_bus_and_slot(pci_domain_nr(dev->pdev->bus), bus 248 drivers/gpu/drm/gma500/psb_drv.c int domain = pci_domain_nr(dev->pdev->bus); bus 128 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c info->fix.smem_start = gbo->bo.mem.bus.offset + gbo->bo.mem.bus.base; bus 108 drivers/gpu/drm/i915/display/intel_cdclk.c pci_bus_read_config_word(pdev->bus, bus 190 drivers/gpu/drm/i915/display/intel_gmbus.c static u32 get_reserved(struct intel_gmbus *bus) bus 192 drivers/gpu/drm/i915/display/intel_gmbus.c struct drm_i915_private *i915 = bus->dev_priv; bus 198 drivers/gpu/drm/i915/display/intel_gmbus.c reserved = intel_uncore_read_notrace(uncore, bus->gpio_reg) & bus 207 drivers/gpu/drm/i915/display/intel_gmbus.c struct intel_gmbus *bus = data; bus 208 drivers/gpu/drm/i915/display/intel_gmbus.c struct intel_uncore *uncore = &bus->dev_priv->uncore; bus 209 drivers/gpu/drm/i915/display/intel_gmbus.c u32 reserved = get_reserved(bus); bus 212 drivers/gpu/drm/i915/display/intel_gmbus.c bus->gpio_reg, bus 214 drivers/gpu/drm/i915/display/intel_gmbus.c intel_uncore_write_notrace(uncore, bus->gpio_reg, reserved); bus 216 drivers/gpu/drm/i915/display/intel_gmbus.c return (intel_uncore_read_notrace(uncore, bus->gpio_reg) & bus 222 drivers/gpu/drm/i915/display/intel_gmbus.c struct intel_gmbus *bus = data; bus 223 drivers/gpu/drm/i915/display/intel_gmbus.c struct intel_uncore *uncore = &bus->dev_priv->uncore; bus 224 drivers/gpu/drm/i915/display/intel_gmbus.c u32 reserved = get_reserved(bus); bus 227 drivers/gpu/drm/i915/display/intel_gmbus.c bus->gpio_reg, bus 229 drivers/gpu/drm/i915/display/intel_gmbus.c intel_uncore_write_notrace(uncore, bus->gpio_reg, reserved); bus 231 drivers/gpu/drm/i915/display/intel_gmbus.c return (intel_uncore_read_notrace(uncore, bus->gpio_reg) & bus 237 drivers/gpu/drm/i915/display/intel_gmbus.c struct intel_gmbus *bus = data; bus 238 drivers/gpu/drm/i915/display/intel_gmbus.c struct intel_uncore *uncore = &bus->dev_priv->uncore; bus 239 drivers/gpu/drm/i915/display/intel_gmbus.c u32 reserved = get_reserved(bus); bus 249 drivers/gpu/drm/i915/display/intel_gmbus.c bus->gpio_reg, bus 251 drivers/gpu/drm/i915/display/intel_gmbus.c intel_uncore_posting_read(uncore, bus->gpio_reg); bus 256 drivers/gpu/drm/i915/display/intel_gmbus.c struct intel_gmbus *bus = data; bus 257 drivers/gpu/drm/i915/display/intel_gmbus.c struct intel_uncore *uncore = &bus->dev_priv->uncore; bus 258 drivers/gpu/drm/i915/display/intel_gmbus.c u32 reserved = get_reserved(bus); bus 267 drivers/gpu/drm/i915/display/intel_gmbus.c intel_uncore_write_notrace(uncore, bus->gpio_reg, reserved | data_bits); bus 268 drivers/gpu/drm/i915/display/intel_gmbus.c intel_uncore_posting_read(uncore, bus->gpio_reg); bus 274 drivers/gpu/drm/i915/display/intel_gmbus.c struct intel_gmbus *bus = container_of(adapter, bus 277 drivers/gpu/drm/i915/display/intel_gmbus.c struct drm_i915_private *dev_priv = bus->dev_priv; bus 284 drivers/gpu/drm/i915/display/intel_gmbus.c set_data(bus, 1); bus 285 drivers/gpu/drm/i915/display/intel_gmbus.c set_clock(bus, 1); bus 293 drivers/gpu/drm/i915/display/intel_gmbus.c struct intel_gmbus *bus = container_of(adapter, bus 296 drivers/gpu/drm/i915/display/intel_gmbus.c struct drm_i915_private *dev_priv = bus->dev_priv; bus 298 drivers/gpu/drm/i915/display/intel_gmbus.c set_data(bus, 1); bus 299 drivers/gpu/drm/i915/display/intel_gmbus.c set_clock(bus, 1); bus 306 drivers/gpu/drm/i915/display/intel_gmbus.c intel_gpio_setup(struct intel_gmbus *bus, unsigned int pin) bus 308 drivers/gpu/drm/i915/display/intel_gmbus.c struct drm_i915_private *dev_priv = bus->dev_priv; bus 311 drivers/gpu/drm/i915/display/intel_gmbus.c algo = &bus->bit_algo; bus 313 drivers/gpu/drm/i915/display/intel_gmbus.c bus->gpio_reg = GPIO(get_gmbus_pin(dev_priv, pin)->gpio); bus 314 drivers/gpu/drm/i915/display/intel_gmbus.c bus->adapter.algo_data = algo; bus 323 drivers/gpu/drm/i915/display/intel_gmbus.c algo->data = bus; bus 590 drivers/gpu/drm/i915/display/intel_gmbus.c struct intel_gmbus *bus = container_of(adapter, bus 593 drivers/gpu/drm/i915/display/intel_gmbus.c struct drm_i915_private *dev_priv = bus->dev_priv; bus 604 drivers/gpu/drm/i915/display/intel_gmbus.c I915_WRITE_FW(GMBUS0, gmbus0_source | bus->reg0); bus 610 drivers/gpu/drm/i915/display/intel_gmbus.c gmbus0_source | bus->reg0); bus 614 drivers/gpu/drm/i915/display/intel_gmbus.c gmbus0_source | bus->reg0, 0); bus 696 drivers/gpu/drm/i915/display/intel_gmbus.c bus->adapter.name, bus->reg0 & 0xff); bus 718 drivers/gpu/drm/i915/display/intel_gmbus.c struct intel_gmbus *bus = bus 720 drivers/gpu/drm/i915/display/intel_gmbus.c struct drm_i915_private *dev_priv = bus->dev_priv; bus 726 drivers/gpu/drm/i915/display/intel_gmbus.c if (bus->force_bit) { bus 729 drivers/gpu/drm/i915/display/intel_gmbus.c bus->force_bit &= ~GMBUS_FORCE_BIT_RETRY; bus 733 drivers/gpu/drm/i915/display/intel_gmbus.c bus->force_bit |= GMBUS_FORCE_BIT_RETRY; bus 743 drivers/gpu/drm/i915/display/intel_gmbus.c struct intel_gmbus *bus = bus 745 drivers/gpu/drm/i915/display/intel_gmbus.c struct drm_i915_private *dev_priv = bus->dev_priv; bus 798 drivers/gpu/drm/i915/display/intel_gmbus.c struct intel_gmbus *bus = to_intel_gmbus(adapter); bus 799 drivers/gpu/drm/i915/display/intel_gmbus.c struct drm_i915_private *dev_priv = bus->dev_priv; bus 807 drivers/gpu/drm/i915/display/intel_gmbus.c struct intel_gmbus *bus = to_intel_gmbus(adapter); bus 808 drivers/gpu/drm/i915/display/intel_gmbus.c struct drm_i915_private *dev_priv = bus->dev_priv; bus 816 drivers/gpu/drm/i915/display/intel_gmbus.c struct intel_gmbus *bus = to_intel_gmbus(adapter); bus 817 drivers/gpu/drm/i915/display/intel_gmbus.c struct drm_i915_private *dev_priv = bus->dev_priv; bus 835 drivers/gpu/drm/i915/display/intel_gmbus.c struct intel_gmbus *bus; bus 858 drivers/gpu/drm/i915/display/intel_gmbus.c bus = &dev_priv->gmbus[pin]; bus 860 drivers/gpu/drm/i915/display/intel_gmbus.c bus->adapter.owner = THIS_MODULE; bus 861 drivers/gpu/drm/i915/display/intel_gmbus.c bus->adapter.class = I2C_CLASS_DDC; bus 862 drivers/gpu/drm/i915/display/intel_gmbus.c snprintf(bus->adapter.name, bus 863 drivers/gpu/drm/i915/display/intel_gmbus.c sizeof(bus->adapter.name), bus 867 drivers/gpu/drm/i915/display/intel_gmbus.c bus->adapter.dev.parent = &pdev->dev; bus 868 drivers/gpu/drm/i915/display/intel_gmbus.c bus->dev_priv = dev_priv; bus 870 drivers/gpu/drm/i915/display/intel_gmbus.c bus->adapter.algo = &gmbus_algorithm; bus 871 drivers/gpu/drm/i915/display/intel_gmbus.c bus->adapter.lock_ops = &gmbus_lock_ops; bus 877 drivers/gpu/drm/i915/display/intel_gmbus.c bus->adapter.retries = 1; bus 880 drivers/gpu/drm/i915/display/intel_gmbus.c bus->reg0 = pin | GMBUS_RATE_100KHZ; bus 884 drivers/gpu/drm/i915/display/intel_gmbus.c bus->force_bit = 1; bus 886 drivers/gpu/drm/i915/display/intel_gmbus.c intel_gpio_setup(bus, pin); bus 888 drivers/gpu/drm/i915/display/intel_gmbus.c ret = i2c_add_adapter(&bus->adapter); bus 902 drivers/gpu/drm/i915/display/intel_gmbus.c bus = &dev_priv->gmbus[pin]; bus 903 drivers/gpu/drm/i915/display/intel_gmbus.c i2c_del_adapter(&bus->adapter); bus 919 drivers/gpu/drm/i915/display/intel_gmbus.c struct intel_gmbus *bus = to_intel_gmbus(adapter); bus 921 drivers/gpu/drm/i915/display/intel_gmbus.c bus->reg0 = (bus->reg0 & ~(0x3 << 8)) | speed; bus 926 drivers/gpu/drm/i915/display/intel_gmbus.c struct intel_gmbus *bus = to_intel_gmbus(adapter); bus 927 drivers/gpu/drm/i915/display/intel_gmbus.c struct drm_i915_private *dev_priv = bus->dev_priv; bus 931 drivers/gpu/drm/i915/display/intel_gmbus.c bus->force_bit += force_bit ? 1 : -1; bus 934 drivers/gpu/drm/i915/display/intel_gmbus.c bus->force_bit); bus 941 drivers/gpu/drm/i915/display/intel_gmbus.c struct intel_gmbus *bus = to_intel_gmbus(adapter); bus 943 drivers/gpu/drm/i915/display/intel_gmbus.c return bus->force_bit; bus 948 drivers/gpu/drm/i915/display/intel_gmbus.c struct intel_gmbus *bus; bus 955 drivers/gpu/drm/i915/display/intel_gmbus.c bus = &dev_priv->gmbus[pin]; bus 956 drivers/gpu/drm/i915/display/intel_gmbus.c i2c_del_adapter(&bus->adapter); bus 211 drivers/gpu/drm/i915/display/intel_overlay.c pci_bus_read_config_byte(pdev->bus, bus 217 drivers/gpu/drm/i915/display/intel_overlay.c pci_bus_write_config_byte(pdev->bus, bus 147 drivers/gpu/drm/i915/i915_drv.c int domain = pci_domain_nr(dev_priv->drm.pdev->bus); bus 182 drivers/gpu/drm/i915/i915_drv.c ret = pci_bus_alloc_resource(dev_priv->bridge_dev->bus, bus 403 drivers/gpu/drm/mga/mga_dma.c if ((dev->pdev->device == 0x0525) && dev->pdev->bus->self bus 404 drivers/gpu/drm/mga/mga_dma.c && (dev->pdev->bus->self->vendor == 0x3388) bus 405 drivers/gpu/drm/mga/mga_dma.c && (dev->pdev->bus->self->device == 0x0021) bus 214 drivers/gpu/drm/nouveau/dispnv04/arb.c int domain = pci_domain_nr(dev->pdev->bus); bus 628 drivers/gpu/drm/nouveau/dispnv04/dfp.c struct nvkm_i2c_bus *bus = nvkm_i2c_bus_find(i2c, NVKM_I2C_BUS_PRI); bus 643 drivers/gpu/drm/nouveau/dispnv04/dfp.c if (!nv_gf4_disp_arch(dev) || !bus || get_tmds_slave(encoder)) bus 646 drivers/gpu/drm/nouveau/dispnv04/dfp.c type = nvkm_i2c_bus_probe(bus, "TMDS transmitter", info, NULL, NULL); bus 651 drivers/gpu/drm/nouveau/dispnv04/dfp.c &bus->i2c, &info[type].dev); bus 268 drivers/gpu/drm/nouveau/dispnv04/disp.c struct nvkm_i2c_bus *bus = bus 270 drivers/gpu/drm/nouveau/dispnv04/disp.c nv_encoder->i2c = bus ? &bus->i2c : NULL; bus 220 drivers/gpu/drm/nouveau/dispnv04/hw.c domain = pci_domain_nr(dev->pdev->bus); bus 57 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c struct nvkm_i2c_bus *bus = nvkm_i2c_bus_find(i2c, i2c_index); bus 58 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c if (bus) { bus 59 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c return nvkm_i2c_bus_probe(bus, "TV encoder", bus 209 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c struct nvkm_i2c_bus *bus = nvkm_i2c_bus_find(i2c, entry->i2c_index); bus 239 drivers/gpu/drm/nouveau/dispnv04/tvnv04.c &bus->i2c, bus 454 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nvkm_i2c_bus *bus; bus 464 drivers/gpu/drm/nouveau/dispnv50/disp.c bus = nvkm_i2c_bus_find(i2c, dcbe->i2c_index); bus 465 drivers/gpu/drm/nouveau/dispnv50/disp.c if (bus) bus 466 drivers/gpu/drm/nouveau/dispnv50/disp.c nv_encoder->i2c = &bus->i2c; bus 1636 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nvkm_i2c_bus *bus = bus 1638 drivers/gpu/drm/nouveau/dispnv50/disp.c if (bus) bus 1639 drivers/gpu/drm/nouveau/dispnv50/disp.c nv_encoder->i2c = &bus->i2c; bus 1730 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nvkm_i2c_bus *bus = NULL; bus 1739 drivers/gpu/drm/nouveau/dispnv50/disp.c bus = nvkm_i2c_bus_find(i2c, NVKM_I2C_BUS_EXT(dcbe->extdev)); bus 1740 drivers/gpu/drm/nouveau/dispnv50/disp.c ddc = bus ? &bus->i2c : NULL; bus 134 drivers/gpu/drm/nouveau/include/nvkm/core/device.h struct nvkm_bus *bus; bus 207 drivers/gpu/drm/nouveau/include/nvkm/core/device.h int (*bus )(struct nvkm_device *, int idx, struct nvkm_bus **); bus 24 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/dcb.h uint8_t bus; bus 20 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/extdev.h u8 bus; bus 79 drivers/gpu/drm/nouveau/include/nvkm/subdev/i2c.h struct list_head bus; bus 203 drivers/gpu/drm/nouveau/nouveau_acpi.c if (pdev->bus->number == 0) bus 1405 drivers/gpu/drm/nouveau/nouveau_bios.c entry->bus = (conn >> 16) & 0xf; bus 1573 drivers/gpu/drm/nouveau/nouveau_bios.c entry->bus = (conn & 0x0e000000) >> 25; bus 1445 drivers/gpu/drm/nouveau/nouveau_bo.c reg->bus.addr = NULL; bus 1446 drivers/gpu/drm/nouveau/nouveau_bo.c reg->bus.offset = 0; bus 1447 drivers/gpu/drm/nouveau/nouveau_bo.c reg->bus.size = reg->num_pages << PAGE_SHIFT; bus 1448 drivers/gpu/drm/nouveau/nouveau_bo.c reg->bus.base = 0; bus 1449 drivers/gpu/drm/nouveau/nouveau_bo.c reg->bus.is_iomem = false; bus 1459 drivers/gpu/drm/nouveau/nouveau_bo.c reg->bus.offset = reg->start << PAGE_SHIFT; bus 1460 drivers/gpu/drm/nouveau/nouveau_bo.c reg->bus.base = drm->agp.base; bus 1461 drivers/gpu/drm/nouveau/nouveau_bo.c reg->bus.is_iomem = !drm->agp.cma; bus 1469 drivers/gpu/drm/nouveau/nouveau_bo.c reg->bus.offset = reg->start << PAGE_SHIFT; bus 1470 drivers/gpu/drm/nouveau/nouveau_bo.c reg->bus.base = device->func->resource_addr(device, 1); bus 1471 drivers/gpu/drm/nouveau/nouveau_bo.c reg->bus.is_iomem = true; bus 1506 drivers/gpu/drm/nouveau/nouveau_bo.c reg->bus.base = 0; bus 1507 drivers/gpu/drm/nouveau/nouveau_bo.c reg->bus.offset = handle; bus 102 drivers/gpu/drm/nouveau/nouveau_drm.c u64 name = (u64)pci_domain_nr(pdev->bus) << 32; bus 103 drivers/gpu/drm/nouveau/nouveau_drm.c name |= pdev->bus->number << 16; bus 379 drivers/gpu/drm/nouveau/nouveau_fbcon.c info->fix.smem_start = fb->nvbo->bo.mem.bus.base + bus 380 drivers/gpu/drm/nouveau/nouveau_fbcon.c fb->nvbo->bo.mem.bus.offset; bus 81 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv04_bus_new, bus 102 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv04_bus_new, bus 123 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv04_bus_new, bus 143 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv04_bus_new, bus 165 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv04_bus_new, bus 187 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv04_bus_new, bus 209 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv04_bus_new, bus 231 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv04_bus_new, bus 253 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv04_bus_new, bus 275 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv04_bus_new, bus 297 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv04_bus_new, bus 319 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv04_bus_new, bus 341 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv04_bus_new, bus 363 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv04_bus_new, bus 385 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv31_bus_new, bus 408 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv31_bus_new, bus 431 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv04_bus_new, bus 453 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv31_bus_new, bus 476 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv31_bus_new, bus 502 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv31_bus_new, bus 528 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv31_bus_new, bus 554 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv31_bus_new, bus 580 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv31_bus_new, bus 606 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv31_bus_new, bus 632 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv31_bus_new, bus 658 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv31_bus_new, bus 684 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv31_bus_new, bus 710 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv31_bus_new, bus 736 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv31_bus_new, bus 762 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv31_bus_new, bus 788 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv31_bus_new, bus 815 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv50_bus_new, bus 843 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv31_bus_new, bus 869 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv31_bus_new, bus 895 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv31_bus_new, bus 922 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv50_bus_new, bus 954 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv50_bus_new, bus 986 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = nv50_bus_new, bus 1018 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = g94_bus_new, bus 1050 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = g94_bus_new, bus 1082 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = g94_bus_new, bus 1114 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = g94_bus_new, bus 1146 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = g94_bus_new, bus 1180 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = g94_bus_new, bus 1213 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = g94_bus_new, bus 1246 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = g94_bus_new, bus 1278 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = g94_bus_new, bus 1310 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = g94_bus_new, bus 1343 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 1380 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 1416 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 1452 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 1489 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 1526 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 1563 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 1599 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 1634 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 1670 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 1709 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 1748 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 1786 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 1812 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 1850 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 1888 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 1926 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 1964 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 1998 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 2032 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 2067 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 2102 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 2136 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 2162 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 2198 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 2234 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 2270 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 2306 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 2342 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 2377 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 2402 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 2443 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 2478 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 2513 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 2548 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 2583 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .bus = gf100_bus_new, bus 2643 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c _(BUS , device->bus , &device->bus->subdev); bus 3149 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c _(NVKM_SUBDEV_BUS , bus); bus 1672 drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c (u64)pci_domain_nr(pci_dev->bus) << 32 | bus 1673 drivers/gpu/drm/nouveau/nvkm/engine/device/pci.c pci_dev->bus->number << 16 | bus 265 drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.c outp->info.bus, outp->info.heads); bus 131 drivers/gpu/drm/nouveau/nvkm/subdev/bios/dcb.c outp->bus = (conn & 0x000f0000) >> 16; bus 78 drivers/gpu/drm/nouveau/nvkm/subdev/bios/extdev.c entry->bus = (nvbios_rd08(bios, offset + 2) >> 4) & 1; bus 266 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct nvkm_i2c_bus *bus; bus 280 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c bus = nvkm_i2c_bus_find(i2c, index); bus 281 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c return bus ? &bus->i2c : NULL; bus 29 drivers/gpu/drm/nouveau/nvkm/subdev/bus/base.c struct nvkm_bus *bus = nvkm_bus(subdev); bus 30 drivers/gpu/drm/nouveau/nvkm/subdev/bus/base.c bus->func->intr(bus); bus 36 drivers/gpu/drm/nouveau/nvkm/subdev/bus/base.c struct nvkm_bus *bus = nvkm_bus(subdev); bus 37 drivers/gpu/drm/nouveau/nvkm/subdev/bus/base.c bus->func->init(bus); bus 58 drivers/gpu/drm/nouveau/nvkm/subdev/bus/base.c struct nvkm_bus *bus; bus 59 drivers/gpu/drm/nouveau/nvkm/subdev/bus/base.c if (!(bus = *pbus = kzalloc(sizeof(*bus), GFP_KERNEL))) bus 61 drivers/gpu/drm/nouveau/nvkm/subdev/bus/base.c nvkm_subdev_ctor(&nvkm_bus, device, index, &bus->subdev); bus 62 drivers/gpu/drm/nouveau/nvkm/subdev/bus/base.c bus->func = func; bus 30 drivers/gpu/drm/nouveau/nvkm/subdev/bus/g94.c g94_bus_hwsq_exec(struct nvkm_bus *bus, u32 *data, u32 size) bus 32 drivers/gpu/drm/nouveau/nvkm/subdev/bus/g94.c struct nvkm_device *device = bus->subdev.device; bus 28 drivers/gpu/drm/nouveau/nvkm/subdev/bus/gf100.c gf100_bus_intr(struct nvkm_bus *bus) bus 30 drivers/gpu/drm/nouveau/nvkm/subdev/bus/gf100.c struct nvkm_subdev *subdev = &bus->subdev; bus 58 drivers/gpu/drm/nouveau/nvkm/subdev/bus/gf100.c gf100_bus_init(struct nvkm_bus *bus) bus 60 drivers/gpu/drm/nouveau/nvkm/subdev/bus/gf100.c struct nvkm_device *device = bus->subdev.device; bus 67 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.c struct nvkm_bus *bus = subdev->device->bus; bus 69 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.c if (hwsq->c.size <= bus->func->hwsq_size) { bus 71 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.c ret = bus->func->hwsq_exec(bus, bus 30 drivers/gpu/drm/nouveau/nvkm/subdev/bus/nv04.c nv04_bus_intr(struct nvkm_bus *bus) bus 32 drivers/gpu/drm/nouveau/nvkm/subdev/bus/nv04.c struct nvkm_subdev *subdev = &bus->subdev; bus 57 drivers/gpu/drm/nouveau/nvkm/subdev/bus/nv04.c nv04_bus_init(struct nvkm_bus *bus) bus 59 drivers/gpu/drm/nouveau/nvkm/subdev/bus/nv04.c struct nvkm_device *device = bus->subdev.device; bus 31 drivers/gpu/drm/nouveau/nvkm/subdev/bus/nv31.c nv31_bus_intr(struct nvkm_bus *bus) bus 33 drivers/gpu/drm/nouveau/nvkm/subdev/bus/nv31.c struct nvkm_subdev *subdev = &bus->subdev; bus 71 drivers/gpu/drm/nouveau/nvkm/subdev/bus/nv31.c nv31_bus_init(struct nvkm_bus *bus) bus 73 drivers/gpu/drm/nouveau/nvkm/subdev/bus/nv31.c struct nvkm_device *device = bus->subdev.device; bus 31 drivers/gpu/drm/nouveau/nvkm/subdev/bus/nv50.c nv50_bus_hwsq_exec(struct nvkm_bus *bus, u32 *data, u32 size) bus 33 drivers/gpu/drm/nouveau/nvkm/subdev/bus/nv50.c struct nvkm_device *device = bus->subdev.device; bus 53 drivers/gpu/drm/nouveau/nvkm/subdev/bus/nv50.c nv50_bus_intr(struct nvkm_bus *bus) bus 55 drivers/gpu/drm/nouveau/nvkm/subdev/bus/nv50.c struct nvkm_subdev *subdev = &bus->subdev; bus 86 drivers/gpu/drm/nouveau/nvkm/subdev/bus/nv50.c nv50_bus_init(struct nvkm_bus *bus) bus 88 drivers/gpu/drm/nouveau/nvkm/subdev/bus/nv50.c struct nvkm_device *device = bus->subdev.device; bus 38 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv1a.c domain = pci_domain_nr(pdev->bus); bus 32 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c struct nvkm_i2c_bus *bus; bus 45 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c struct anx9805_bus *bus = anx9805_bus(base); bus 46 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c struct anx9805_pad *pad = bus->pad; bus 47 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c struct i2c_adapter *adap = &pad->bus->i2c; bus 56 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c nvkm_wri2cr(adap, bus->addr, 0x43, 0x05); bus 61 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c nvkm_wri2cr(adap, bus->addr, 0x40, msg->addr << 1); bus 62 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c nvkm_wri2cr(adap, bus->addr, 0x41, seg); bus 63 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c nvkm_wri2cr(adap, bus->addr, 0x42, off); bus 64 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c nvkm_wri2cr(adap, bus->addr, 0x44, msg->len); bus 65 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c nvkm_wri2cr(adap, bus->addr, 0x45, 0x00); bus 66 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c nvkm_wri2cr(adap, bus->addr, 0x43, 0x01); bus 69 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c while (nvkm_rdi2cr(adap, bus->addr, 0x46) & 0x10) { bus 74 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c msg->buf[i] = nvkm_rdi2cr(adap, bus->addr, 0x47); bus 93 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c nvkm_wri2cr(adap, bus->addr, 0x43, 0x00); bus 107 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c struct anx9805_bus *bus; bus 110 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c if (!(bus = kzalloc(sizeof(*bus), GFP_KERNEL))) bus 112 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c *pbus = &bus->base; bus 113 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c bus->pad = pad; bus 115 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c ret = nvkm_i2c_bus_ctor(&anx9805_bus_func, &pad->base, id, &bus->base); bus 120 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c case 0x39: bus->addr = 0x3d; break; bus 121 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c case 0x3b: bus->addr = 0x3f; break; bus 141 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c struct i2c_adapter *adap = &pad->bus->i2c; bus 197 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c struct i2c_adapter *adap = &pad->bus->i2c; bus 265 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c anx9805_pad_new(struct nvkm_i2c_bus *bus, int id, u8 addr, bus 274 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c nvkm_i2c_pad_ctor(&anx9805_pad_func, bus->pad->i2c, id, &pad->base); bus 275 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c pad->bus = bus; bus 52 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c struct nvkm_i2c_bus *bus; bus 68 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c list_for_each_entry(bus, &i2c->bus, head) { bus 69 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c if (bus->id == id) bus 70 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c return bus; bus 163 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c struct nvkm_i2c_bus *bus; bus 171 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c list_for_each_entry(bus, &i2c->bus, head) { bus 172 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c nvkm_i2c_bus_fini(bus); bus 191 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c struct nvkm_i2c_bus *bus; bus 200 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c list_for_each_entry(bus, &i2c->bus, head) bus 201 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c nvkm_i2c_bus_init(bus); bus 210 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c struct nvkm_i2c_bus *bus; bus 218 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c list_for_each_entry(bus, &i2c->bus, head) { bus 219 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c nvkm_i2c_bus_init(bus); bus 242 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c while (!list_empty(&i2c->bus)) { bus 243 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c struct nvkm_i2c_bus *bus = bus 244 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c list_first_entry(&i2c->bus, typeof(*bus), head); bus 245 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c nvkm_i2c_bus_del(&bus); bus 295 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c INIT_LIST_HEAD(&i2c->bus); bus 301 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c struct nvkm_i2c_bus *bus = NULL; bus 327 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c ccbE.sense, &bus); bus 335 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c ccbE.drive, &bus); bus 340 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c nvkm_i2c_bus_del(&bus); bus 358 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c if (ccbE.type != DCB_I2C_UNUSED && !bus && !aux) { bus 367 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c struct nvkm_i2c_bus *bus; bus 375 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c bus = nvkm_i2c_bus_find(i2c, dcbE.i2c_index); bus 376 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c if (!bus) { bus 398 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c ret = drv->pad_new(bus, id, drv->addr, &pad); bus 420 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c struct nvkm_i2c_bus *bus = NULL; bus 421 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c ret = pad->func->bus_new_4(pad, id, 0, &bus); bus 425 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c nvkm_i2c_bus_del(&bus); bus 32 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_drive_scl(struct nvkm_i2c_bus *bus, int state) bus 34 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c bus->func->drive_scl(bus, state); bus 38 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_drive_sda(struct nvkm_i2c_bus *bus, int state) bus 40 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c bus->func->drive_sda(bus, state); bus 44 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_sense_scl(struct nvkm_i2c_bus *bus) bus 46 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c return bus->func->sense_scl(bus); bus 50 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_sense_sda(struct nvkm_i2c_bus *bus) bus 52 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c return bus->func->sense_sda(bus); bus 56 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_delay(struct nvkm_i2c_bus *bus, u32 nsec) bus 62 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_raise_scl(struct nvkm_i2c_bus *bus) bus 66 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_drive_scl(bus, 1); bus 68 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_delay(bus, T_RISEFALL); bus 69 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c } while (!nvkm_i2c_sense_scl(bus) && --timeout); bus 75 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c i2c_start(struct nvkm_i2c_bus *bus) bus 79 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c if (!nvkm_i2c_sense_scl(bus) || bus 80 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c !nvkm_i2c_sense_sda(bus)) { bus 81 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_drive_scl(bus, 0); bus 82 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_drive_sda(bus, 1); bus 83 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c if (!nvkm_i2c_raise_scl(bus)) bus 87 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_drive_sda(bus, 0); bus 88 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_delay(bus, T_HOLD); bus 89 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_drive_scl(bus, 0); bus 90 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_delay(bus, T_HOLD); bus 95 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c i2c_stop(struct nvkm_i2c_bus *bus) bus 97 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_drive_scl(bus, 0); bus 98 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_drive_sda(bus, 0); bus 99 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_delay(bus, T_RISEFALL); bus 101 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_drive_scl(bus, 1); bus 102 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_delay(bus, T_HOLD); bus 103 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_drive_sda(bus, 1); bus 104 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_delay(bus, T_HOLD); bus 108 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c i2c_bitw(struct nvkm_i2c_bus *bus, int sda) bus 110 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_drive_sda(bus, sda); bus 111 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_delay(bus, T_RISEFALL); bus 113 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c if (!nvkm_i2c_raise_scl(bus)) bus 115 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_delay(bus, T_HOLD); bus 117 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_drive_scl(bus, 0); bus 118 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_delay(bus, T_HOLD); bus 123 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c i2c_bitr(struct nvkm_i2c_bus *bus) bus 127 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_drive_sda(bus, 1); bus 128 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_delay(bus, T_RISEFALL); bus 130 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c if (!nvkm_i2c_raise_scl(bus)) bus 132 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_delay(bus, T_HOLD); bus 134 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c sda = nvkm_i2c_sense_sda(bus); bus 136 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_drive_scl(bus, 0); bus 137 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_delay(bus, T_HOLD); bus 142 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_get_byte(struct nvkm_i2c_bus *bus, u8 *byte, bool last) bus 148 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c bit = i2c_bitr(bus); bus 154 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c return i2c_bitw(bus, last ? 1 : 0); bus 158 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_put_byte(struct nvkm_i2c_bus *bus, u8 byte) bus 162 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c ret = i2c_bitw(bus, !!(byte & (1 << i))); bus 167 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c ret = i2c_bitr(bus); bus 174 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c i2c_addr(struct nvkm_i2c_bus *bus, struct i2c_msg *msg) bus 179 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c return nvkm_i2c_put_byte(bus, addr); bus 183 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_bit_xfer(struct nvkm_i2c_bus *bus, struct i2c_msg *msgs, int num) bus 192 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c ret = i2c_start(bus); bus 194 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c ret = i2c_addr(bus, msg); bus 198 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c ret = nvkm_i2c_get_byte(bus, ptr++, !remaining); bus 201 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c ret = nvkm_i2c_put_byte(bus, *ptr++); bus 207 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c i2c_stop(bus); bus 212 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c nvkm_i2c_bit_xfer(struct nvkm_i2c_bus *bus, struct i2c_msg *msgs, int num) bus 35 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c struct nvkm_i2c_bus *bus = container_of(adap, typeof(*bus), i2c); bus 36 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c return nvkm_i2c_bus_acquire(bus); bus 42 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c struct nvkm_i2c_bus *bus = container_of(adap, typeof(*bus), i2c); bus 43 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c return nvkm_i2c_bus_release(bus); bus 49 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c struct nvkm_i2c_bus *bus = data; bus 50 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c bus->func->drive_scl(bus, state); bus 56 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c struct nvkm_i2c_bus *bus = data; bus 57 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c bus->func->drive_sda(bus, state); bus 63 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c struct nvkm_i2c_bus *bus = data; bus 64 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c return bus->func->sense_scl(bus); bus 70 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c struct nvkm_i2c_bus *bus = data; bus 71 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c return bus->func->sense_sda(bus); bus 80 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c struct nvkm_i2c_bus *bus = container_of(adap, typeof(*bus), i2c); bus 83 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c ret = nvkm_i2c_bus_acquire(bus); bus 87 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c ret = bus->func->xfer(bus, msgs, num); bus 88 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c nvkm_i2c_bus_release(bus); bus 108 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c nvkm_i2c_bus_init(struct nvkm_i2c_bus *bus) bus 110 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c BUS_TRACE(bus, "init"); bus 111 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c if (bus->func->init) bus 112 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c bus->func->init(bus); bus 114 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c mutex_lock(&bus->mutex); bus 115 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c bus->enabled = true; bus 116 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c mutex_unlock(&bus->mutex); bus 120 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c nvkm_i2c_bus_fini(struct nvkm_i2c_bus *bus) bus 122 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c BUS_TRACE(bus, "fini"); bus 123 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c mutex_lock(&bus->mutex); bus 124 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c bus->enabled = false; bus 125 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c mutex_unlock(&bus->mutex); bus 129 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c nvkm_i2c_bus_release(struct nvkm_i2c_bus *bus) bus 131 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c struct nvkm_i2c_pad *pad = bus->pad; bus 132 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c BUS_TRACE(bus, "release"); bus 134 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c mutex_unlock(&bus->mutex); bus 138 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c nvkm_i2c_bus_acquire(struct nvkm_i2c_bus *bus) bus 140 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c struct nvkm_i2c_pad *pad = bus->pad; bus 143 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c BUS_TRACE(bus, "acquire"); bus 144 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c mutex_lock(&bus->mutex); bus 146 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c if (bus->enabled) bus 152 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c mutex_unlock(&bus->mutex); bus 157 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c nvkm_i2c_bus_probe(struct nvkm_i2c_bus *bus, const char *what, bus 164 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c BUS_DBG(bus, "probing %ss", what); bus 168 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c if ((bus->i2c.algo == &i2c_bit_algo) && (info[i].udelay != 0)) { bus 169 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c struct i2c_algo_bit_data *algo = bus->i2c.algo_data; bus 170 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c BUS_DBG(bus, "%dms delay instead of %dms", bus 176 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c if (nvkm_probe_i2c(&bus->i2c, info[i].dev.addr) && bus 177 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c (!match || match(bus, &info[i].dev, data))) { bus 178 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c BUS_DBG(bus, "detected %s: %s", bus 184 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c struct i2c_algo_bit_data *algo = bus->i2c.algo_data; bus 189 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c BUS_DBG(bus, "no devices found."); bus 196 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c struct nvkm_i2c_bus *bus = *pbus; bus 197 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c if (bus && !WARN_ON(!bus->func)) { bus 198 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c BUS_TRACE(bus, "dtor"); bus 199 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c list_del(&bus->head); bus 200 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c i2c_del_adapter(&bus->i2c); bus 201 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c kfree(bus->i2c.algo_data); bus 210 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c struct nvkm_i2c_bus *bus) bus 221 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c bus->func = func; bus 222 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c bus->pad = pad; bus 223 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c bus->id = id; bus 224 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c mutex_init(&bus->mutex); bus 225 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c list_add_tail(&bus->head, &pad->i2c->bus); bus 226 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c BUS_TRACE(bus, "ctor"); bus 228 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c snprintf(bus->i2c.name, sizeof(bus->i2c.name), "nvkm-%s-bus-%04x", bus 230 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c bus->i2c.owner = THIS_MODULE; bus 231 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c bus->i2c.dev.parent = device->dev; bus 233 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c if ( bus->func->drive_scl && bus 239 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c bit->data = bus; bus 246 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c bus->i2c.algo_data = bit; bus 247 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c ret = i2c_bit_add_bus(&bus->i2c); bus 249 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c bus->i2c.algo = &nvkm_i2c_bus_algo; bus 250 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.c ret = i2c_add_adapter(&bus->i2c); bus 35 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busgf119.c struct gf119_i2c_bus *bus = gf119_i2c_bus(base); bus 36 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busgf119.c struct nvkm_device *device = bus->base.pad->i2c->subdev.device; bus 37 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busgf119.c nvkm_mask(device, bus->addr, 0x00000001, state ? 0x00000001 : 0); bus 43 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busgf119.c struct gf119_i2c_bus *bus = gf119_i2c_bus(base); bus 44 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busgf119.c struct nvkm_device *device = bus->base.pad->i2c->subdev.device; bus 45 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busgf119.c nvkm_mask(device, bus->addr, 0x00000002, state ? 0x00000002 : 0); bus 51 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busgf119.c struct gf119_i2c_bus *bus = gf119_i2c_bus(base); bus 52 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busgf119.c struct nvkm_device *device = bus->base.pad->i2c->subdev.device; bus 53 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busgf119.c return !!(nvkm_rd32(device, bus->addr) & 0x00000010); bus 59 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busgf119.c struct gf119_i2c_bus *bus = gf119_i2c_bus(base); bus 60 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busgf119.c struct nvkm_device *device = bus->base.pad->i2c->subdev.device; bus 61 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busgf119.c return !!(nvkm_rd32(device, bus->addr) & 0x00000020); bus 67 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busgf119.c struct gf119_i2c_bus *bus = gf119_i2c_bus(base); bus 68 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busgf119.c struct nvkm_device *device = bus->base.pad->i2c->subdev.device; bus 69 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busgf119.c nvkm_wr32(device, bus->addr, 0x00000007); bus 86 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busgf119.c struct gf119_i2c_bus *bus; bus 88 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busgf119.c if (!(bus = kzalloc(sizeof(*bus), GFP_KERNEL))) bus 90 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busgf119.c *pbus = &bus->base; bus 92 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busgf119.c nvkm_i2c_bus_ctor(&gf119_i2c_bus_func, pad, id, &bus->base); bus 93 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busgf119.c bus->addr = 0x00d014 + (drive * 0x20); bus 38 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c struct nv04_i2c_bus *bus = nv04_i2c_bus(base); bus 39 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c struct nvkm_device *device = bus->base.pad->i2c->subdev.device; bus 40 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c u8 val = nvkm_rdvgac(device, 0, bus->drive); bus 43 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c nvkm_wrvgac(device, 0, bus->drive, val | 0x01); bus 49 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c struct nv04_i2c_bus *bus = nv04_i2c_bus(base); bus 50 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c struct nvkm_device *device = bus->base.pad->i2c->subdev.device; bus 51 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c u8 val = nvkm_rdvgac(device, 0, bus->drive); bus 54 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c nvkm_wrvgac(device, 0, bus->drive, val | 0x01); bus 60 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c struct nv04_i2c_bus *bus = nv04_i2c_bus(base); bus 61 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c struct nvkm_device *device = bus->base.pad->i2c->subdev.device; bus 62 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c return !!(nvkm_rdvgac(device, 0, bus->sense) & 0x04); bus 68 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c struct nv04_i2c_bus *bus = nv04_i2c_bus(base); bus 69 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c struct nvkm_device *device = bus->base.pad->i2c->subdev.device; bus 70 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c return !!(nvkm_rdvgac(device, 0, bus->sense) & 0x08); bus 86 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c struct nv04_i2c_bus *bus; bus 88 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c if (!(bus = kzalloc(sizeof(*bus), GFP_KERNEL))) bus 90 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c *pbus = &bus->base; bus 92 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c nvkm_i2c_bus_ctor(&nv04_i2c_bus_func, pad, id, &bus->base); bus 93 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c bus->drive = drive; bus 94 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c bus->sense = sense; bus 35 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv4e.c struct nv4e_i2c_bus *bus = nv4e_i2c_bus(base); bus 36 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv4e.c struct nvkm_device *device = bus->base.pad->i2c->subdev.device; bus 37 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv4e.c nvkm_mask(device, bus->addr, 0x2f, state ? 0x21 : 0x01); bus 43 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv4e.c struct nv4e_i2c_bus *bus = nv4e_i2c_bus(base); bus 44 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv4e.c struct nvkm_device *device = bus->base.pad->i2c->subdev.device; bus 45 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv4e.c nvkm_mask(device, bus->addr, 0x1f, state ? 0x11 : 0x01); bus 51 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv4e.c struct nv4e_i2c_bus *bus = nv4e_i2c_bus(base); bus 52 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv4e.c struct nvkm_device *device = bus->base.pad->i2c->subdev.device; bus 53 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv4e.c return !!(nvkm_rd32(device, bus->addr) & 0x00040000); bus 59 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv4e.c struct nv4e_i2c_bus *bus = nv4e_i2c_bus(base); bus 60 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv4e.c struct nvkm_device *device = bus->base.pad->i2c->subdev.device; bus 61 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv4e.c return !!(nvkm_rd32(device, bus->addr) & 0x00080000); bus 77 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv4e.c struct nv4e_i2c_bus *bus; bus 79 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv4e.c if (!(bus = kzalloc(sizeof(*bus), GFP_KERNEL))) bus 81 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv4e.c *pbus = &bus->base; bus 83 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv4e.c nvkm_i2c_bus_ctor(&nv4e_i2c_bus_func, pad, id, &bus->base); bus 84 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv4e.c bus->addr = 0x600800 + drive; bus 38 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c struct nv50_i2c_bus *bus = nv50_i2c_bus(base); bus 39 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c struct nvkm_device *device = bus->base.pad->i2c->subdev.device; bus 40 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c if (state) bus->data |= 0x01; bus 41 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c else bus->data &= 0xfe; bus 42 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c nvkm_wr32(device, bus->addr, bus->data); bus 48 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c struct nv50_i2c_bus *bus = nv50_i2c_bus(base); bus 49 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c struct nvkm_device *device = bus->base.pad->i2c->subdev.device; bus 50 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c if (state) bus->data |= 0x02; bus 51 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c else bus->data &= 0xfd; bus 52 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c nvkm_wr32(device, bus->addr, bus->data); bus 58 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c struct nv50_i2c_bus *bus = nv50_i2c_bus(base); bus 59 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c struct nvkm_device *device = bus->base.pad->i2c->subdev.device; bus 60 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c return !!(nvkm_rd32(device, bus->addr) & 0x00000001); bus 66 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c struct nv50_i2c_bus *bus = nv50_i2c_bus(base); bus 67 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c struct nvkm_device *device = bus->base.pad->i2c->subdev.device; bus 68 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c return !!(nvkm_rd32(device, bus->addr) & 0x00000002); bus 74 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c struct nv50_i2c_bus *bus = nv50_i2c_bus(base); bus 75 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c struct nvkm_device *device = bus->base.pad->i2c->subdev.device; bus 76 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c nvkm_wr32(device, bus->addr, (bus->data = 0x00000007)); bus 98 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c struct nv50_i2c_bus *bus; bus 105 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c if (!(bus = kzalloc(sizeof(*bus), GFP_KERNEL))) bus 107 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c *pbus = &bus->base; bus 109 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c nvkm_i2c_bus_ctor(&nv50_i2c_bus_func, pad, id, &bus->base); bus 110 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c bus->addr = addr[drive]; bus 111 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv50.c bus->data = 0x00000007; bus 175 drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c if (extdev.bus) bus 32 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/base.c mxm_shadow_rom_fetch(struct nvkm_i2c_bus *bus, u8 addr, bus 40 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/base.c return i2c_transfer(&bus->i2c, msgs, 2) == 2; bus 49 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/base.c struct nvkm_i2c_bus *bus = NULL; bus 54 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/base.c bus = nvkm_i2c_bus_find(i2c, i2cidx); bus 55 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/base.c if (!bus) bus 59 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/base.c if (!mxm_shadow_rom_fetch(bus, addr, 0, 6, mxms)) { bus 61 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/base.c if (!mxm_shadow_rom_fetch(bus, addr, 0, 6, mxms)) bus 70 drivers/gpu/drm/nouveau/nvkm/subdev/mxm/base.c mxm_shadow_rom_fetch(bus, addr, 0, size, mxm->mxms)) bus 124 drivers/gpu/drm/nouveau/nvkm/subdev/pci/pcie.c pbus = pci->pdev->bus; bus 30 drivers/gpu/drm/nouveau/nvkm/subdev/therm/ic.c probe_monitoring_device(struct nvkm_i2c_bus *bus, bus 39 drivers/gpu/drm/nouveau/nvkm/subdev/therm/ic.c client = i2c_new_device(&bus->i2c, info); bus 88 drivers/gpu/drm/nouveau/nvkm/subdev/therm/ic.c struct nvkm_i2c_bus *bus; bus 91 drivers/gpu/drm/nouveau/nvkm/subdev/therm/ic.c bus = nvkm_i2c_bus_find(i2c, NVKM_I2C_BUS_PRI); bus 92 drivers/gpu/drm/nouveau/nvkm/subdev/therm/ic.c if (!bus) bus 101 drivers/gpu/drm/nouveau/nvkm/subdev/therm/ic.c nvkm_i2c_bus_probe(bus, "monitoring device", board, bus 113 drivers/gpu/drm/nouveau/nvkm/subdev/therm/ic.c nvkm_i2c_bus_probe(bus, "monitoring device", board, bus 125 drivers/gpu/drm/nouveau/nvkm/subdev/therm/ic.c nvkm_i2c_bus_probe(bus, "monitoring device", nv_board_infos, bus 167 drivers/gpu/drm/qxl/qxl_object.c return io_mapping_map_atomic_wc(map, bo->tbo.mem.bus.offset + page_offset); bus 168 drivers/gpu/drm/qxl/qxl_ttm.c mem->bus.addr = NULL; bus 169 drivers/gpu/drm/qxl/qxl_ttm.c mem->bus.offset = 0; bus 170 drivers/gpu/drm/qxl/qxl_ttm.c mem->bus.size = mem->num_pages << PAGE_SHIFT; bus 171 drivers/gpu/drm/qxl/qxl_ttm.c mem->bus.base = 0; bus 172 drivers/gpu/drm/qxl/qxl_ttm.c mem->bus.is_iomem = false; bus 180 drivers/gpu/drm/qxl/qxl_ttm.c mem->bus.is_iomem = true; bus 181 drivers/gpu/drm/qxl/qxl_ttm.c mem->bus.base = qdev->vram_base; bus 182 drivers/gpu/drm/qxl/qxl_ttm.c mem->bus.offset = mem->start << PAGE_SHIFT; bus 185 drivers/gpu/drm/qxl/qxl_ttm.c mem->bus.is_iomem = true; bus 186 drivers/gpu/drm/qxl/qxl_ttm.c mem->bus.base = qdev->surfaceram_base; bus 187 drivers/gpu/drm/qxl/qxl_ttm.c mem->bus.offset = mem->start << PAGE_SHIFT; bus 5684 drivers/gpu/drm/radeon/ci_dpm.c struct pci_dev *root = rdev->pdev->bus->self; bus 5692 drivers/gpu/drm/radeon/ci_dpm.c if (!pci_is_root_bus(rdev->pdev->bus)) bus 9505 drivers/gpu/drm/radeon/cik.c struct pci_dev *root = rdev->pdev->bus->self; bus 9512 drivers/gpu/drm/radeon/cik.c if (pci_is_root_bus(rdev->pdev->bus)) bus 9743 drivers/gpu/drm/radeon/cik.c !pci_is_root_bus(rdev->pdev->bus)) { bus 9744 drivers/gpu/drm/radeon/cik.c struct pci_dev *root = rdev->pdev->bus->self; bus 5342 drivers/gpu/drm/radeon/evergreen.c if ((rdev->pdev->bus->max_bus_speed != PCIE_SPEED_5_0GT) && bus 5343 drivers/gpu/drm/radeon/evergreen.c (rdev->pdev->bus->max_bus_speed != PCIE_SPEED_8_0GT)) bus 4513 drivers/gpu/drm/radeon/r600.c if ((rdev->pdev->bus->max_bus_speed != PCIE_SPEED_5_0GT) && bus 4514 drivers/gpu/drm/radeon/r600.c (rdev->pdev->bus->max_bus_speed != PCIE_SPEED_8_0GT)) bus 624 drivers/gpu/drm/radeon/radeon_acpi.c atcs_input.client_id = rdev->pdev->devfn | (rdev->pdev->bus->number << 8); bus 636 drivers/gpu/drm/radeon/radeon_bios.c vhdr->PCIBus == rdev->pdev->bus->number && bus 407 drivers/gpu/drm/radeon/radeon_ttm.c mem->bus.addr = NULL; bus 408 drivers/gpu/drm/radeon/radeon_ttm.c mem->bus.offset = 0; bus 409 drivers/gpu/drm/radeon/radeon_ttm.c mem->bus.size = mem->num_pages << PAGE_SHIFT; bus 410 drivers/gpu/drm/radeon/radeon_ttm.c mem->bus.base = 0; bus 411 drivers/gpu/drm/radeon/radeon_ttm.c mem->bus.is_iomem = false; bus 422 drivers/gpu/drm/radeon/radeon_ttm.c mem->bus.offset = mem->start << PAGE_SHIFT; bus 423 drivers/gpu/drm/radeon/radeon_ttm.c mem->bus.base = rdev->mc.agp_base; bus 424 drivers/gpu/drm/radeon/radeon_ttm.c mem->bus.is_iomem = !rdev->ddev->agp->cant_use_aperture; bus 429 drivers/gpu/drm/radeon/radeon_ttm.c mem->bus.offset = mem->start << PAGE_SHIFT; bus 431 drivers/gpu/drm/radeon/radeon_ttm.c if ((mem->bus.offset + mem->bus.size) > rdev->mc.visible_vram_size) bus 433 drivers/gpu/drm/radeon/radeon_ttm.c mem->bus.base = rdev->mc.aper_base; bus 434 drivers/gpu/drm/radeon/radeon_ttm.c mem->bus.is_iomem = true; bus 441 drivers/gpu/drm/radeon/radeon_ttm.c mem->bus.addr = bus 442 drivers/gpu/drm/radeon/radeon_ttm.c ioremap_wc(mem->bus.base + mem->bus.offset, bus 443 drivers/gpu/drm/radeon/radeon_ttm.c mem->bus.size); bus 445 drivers/gpu/drm/radeon/radeon_ttm.c mem->bus.addr = bus 446 drivers/gpu/drm/radeon/radeon_ttm.c ioremap_nocache(mem->bus.base + mem->bus.offset, bus 447 drivers/gpu/drm/radeon/radeon_ttm.c mem->bus.size); bus 448 drivers/gpu/drm/radeon/radeon_ttm.c if (!mem->bus.addr) bus 457 drivers/gpu/drm/radeon/radeon_ttm.c mem->bus.base = (mem->bus.base & 0x0ffffffffUL) + bus 2043 drivers/gpu/drm/radeon/rv770.c if ((rdev->pdev->bus->max_bus_speed != PCIE_SPEED_5_0GT) && bus 2044 drivers/gpu/drm/radeon/rv770.c (rdev->pdev->bus->max_bus_speed != PCIE_SPEED_8_0GT)) bus 7088 drivers/gpu/drm/radeon/si.c struct pci_dev *root = rdev->pdev->bus->self; bus 7095 drivers/gpu/drm/radeon/si.c if (pci_is_root_bus(rdev->pdev->bus)) bus 7377 drivers/gpu/drm/radeon/si.c !pci_is_root_bus(rdev->pdev->bus)) { bus 7378 drivers/gpu/drm/radeon/si.c struct pci_dev *root = rdev->pdev->bus->self; bus 6908 drivers/gpu/drm/radeon/si_dpm.c struct pci_dev *root = rdev->pdev->bus->self; bus 6919 drivers/gpu/drm/radeon/si_dpm.c if (!pci_is_root_bus(rdev->pdev->bus)) bus 155 drivers/gpu/drm/sun4i/sun8i_tcon_top.c tcon_top->bus = devm_clk_get(dev, "bus"); bus 156 drivers/gpu/drm/sun4i/sun8i_tcon_top.c if (IS_ERR(tcon_top->bus)) { bus 158 drivers/gpu/drm/sun4i/sun8i_tcon_top.c return PTR_ERR(tcon_top->bus); bus 173 drivers/gpu/drm/sun4i/sun8i_tcon_top.c ret = clk_prepare_enable(tcon_top->bus); bus 232 drivers/gpu/drm/sun4i/sun8i_tcon_top.c clk_disable_unprepare(tcon_top->bus); bus 251 drivers/gpu/drm/sun4i/sun8i_tcon_top.c clk_disable_unprepare(tcon_top->bus); bus 27 drivers/gpu/drm/sun4i/sun8i_tcon_top.h struct clk *bus; bus 733 drivers/gpu/drm/ttm/ttm_bo.c evict_mem.bus.io_reserved_vm = false; bus 734 drivers/gpu/drm/ttm/ttm_bo.c evict_mem.bus.io_reserved_count = 0; bus 1194 drivers/gpu/drm/ttm/ttm_bo.c mem.bus.io_reserved_vm = false; bus 1195 drivers/gpu/drm/ttm/ttm_bo.c mem.bus.io_reserved_count = 0; bus 1342 drivers/gpu/drm/ttm/ttm_bo.c bo->mem.bus.io_reserved_vm = false; bus 1343 drivers/gpu/drm/ttm/ttm_bo.c bo->mem.bus.io_reserved_count = 0; bus 145 drivers/gpu/drm/ttm/ttm_bo_util.c mem->bus.io_reserved_count++ == 0) { bus 167 drivers/gpu/drm/ttm/ttm_bo_util.c --mem->bus.io_reserved_count == 0 && bus 179 drivers/gpu/drm/ttm/ttm_bo_util.c if (!mem->bus.io_reserved_vm) { bus 186 drivers/gpu/drm/ttm/ttm_bo_util.c mem->bus.io_reserved_vm = true; bus 198 drivers/gpu/drm/ttm/ttm_bo_util.c if (mem->bus.io_reserved_vm) { bus 199 drivers/gpu/drm/ttm/ttm_bo_util.c mem->bus.io_reserved_vm = false; bus 216 drivers/gpu/drm/ttm/ttm_bo_util.c if (ret || !mem->bus.is_iomem) bus 219 drivers/gpu/drm/ttm/ttm_bo_util.c if (mem->bus.addr) { bus 220 drivers/gpu/drm/ttm/ttm_bo_util.c addr = mem->bus.addr; bus 223 drivers/gpu/drm/ttm/ttm_bo_util.c addr = ioremap_wc(mem->bus.base + mem->bus.offset, mem->bus.size); bus 225 drivers/gpu/drm/ttm/ttm_bo_util.c addr = ioremap_nocache(mem->bus.base + mem->bus.offset, mem->bus.size); bus 244 drivers/gpu/drm/ttm/ttm_bo_util.c if (virtual && mem->bus.addr == NULL) bus 562 drivers/gpu/drm/ttm/ttm_bo_util.c if (bo->mem.bus.addr) { bus 564 drivers/gpu/drm/ttm/ttm_bo_util.c map->virtual = (void *)(((u8 *)bo->mem.bus.addr) + offset); bus 568 drivers/gpu/drm/ttm/ttm_bo_util.c map->virtual = ioremap_wc(bo->mem.bus.base + bo->mem.bus.offset + offset, bus 571 drivers/gpu/drm/ttm/ttm_bo_util.c map->virtual = ioremap_nocache(bo->mem.bus.base + bo->mem.bus.offset + offset, bus 640 drivers/gpu/drm/ttm/ttm_bo_util.c if (!bo->mem.bus.is_iomem) { bus 105 drivers/gpu/drm/ttm/ttm_bo_vm.c return ((bo->mem.bus.base + bo->mem.bus.offset) >> PAGE_SHIFT) bus 231 drivers/gpu/drm/ttm/ttm_bo_vm.c if (bo->mem.bus.is_iomem) { bus 258 drivers/gpu/drm/ttm/ttm_bo_vm.c if (bo->mem.bus.is_iomem) { bus 113 drivers/gpu/drm/virtio/virtgpu_drv.c if (!strcmp(vdev->dev.parent->bus->name, "pci")) { bus 164 drivers/gpu/drm/virtio/virtgpu_ttm.c mem->bus.addr = NULL; bus 165 drivers/gpu/drm/virtio/virtgpu_ttm.c mem->bus.offset = 0; bus 166 drivers/gpu/drm/virtio/virtgpu_ttm.c mem->bus.size = mem->num_pages << PAGE_SHIFT; bus 167 drivers/gpu/drm/virtio/virtgpu_ttm.c mem->bus.base = 0; bus 168 drivers/gpu/drm/virtio/virtgpu_ttm.c mem->bus.is_iomem = false; bus 802 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c mem->bus.addr = NULL; bus 803 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c mem->bus.is_iomem = false; bus 804 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c mem->bus.offset = 0; bus 805 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c mem->bus.size = mem->num_pages << PAGE_SHIFT; bus 806 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c mem->bus.base = 0; bus 815 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c mem->bus.offset = mem->start << PAGE_SHIFT; bus 816 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c mem->bus.base = dev_priv->vram_start; bus 817 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c mem->bus.is_iomem = true; bus 442 drivers/gpu/host1x/bus.c device->dev.bus = &host1x_bus_type; bus 670 drivers/gpu/host1x/bus.c driver->driver.bus = &host1x_bus_type; bus 1019 drivers/gpu/vga/vga_switcheroo.c ret = dev->bus->pm->runtime_suspend(dev); bus 1028 drivers/gpu/vga/vga_switcheroo.c pci_bus_set_current_state(pdev->bus, PCI_D3cold); bus 1042 drivers/gpu/vga/vga_switcheroo.c pci_wakeup_bus(pdev->bus); bus 1043 drivers/gpu/vga/vga_switcheroo.c ret = dev->bus->pm->runtime_resume(dev); bus 1066 drivers/gpu/vga/vga_switcheroo.c if (dev->bus && dev->bus->pm) { bus 1067 drivers/gpu/vga/vga_switcheroo.c domain->ops = *dev->bus->pm; bus 298 drivers/gpu/vga/vgaarb.c if (vgadev->pdev->bus != conflict->pdev->bus) { bus 601 drivers/gpu/vga/vgaarb.c struct pci_bus *new_bus, *bus; bus 610 drivers/gpu/vga/vgaarb.c new_bus = vgadev->pdev->bus; bus 616 drivers/gpu/vga/vgaarb.c bus = same_bridge_vgadev->pdev->bus; bus 617 drivers/gpu/vga/vgaarb.c bridge = bus->self; bus 635 drivers/gpu/vga/vgaarb.c while (bus) { bus 636 drivers/gpu/vga/vgaarb.c bridge = bus->self; bus 638 drivers/gpu/vga/vgaarb.c if (bridge && bridge == vgadev->pdev->bus->self) bus 641 drivers/gpu/vga/vgaarb.c bus = bus->parent; bus 658 drivers/gpu/vga/vgaarb.c struct pci_bus *bus; bus 701 drivers/gpu/vga/vgaarb.c bus = pdev->bus; bus 702 drivers/gpu/vga/vgaarb.c while (bus) { bus 703 drivers/gpu/vga/vgaarb.c bridge = bus->self; bus 713 drivers/gpu/vga/vgaarb.c bus = bus->parent; bus 988 drivers/gpu/vga/vgaarb.c unsigned int *bus, unsigned int *devfn) bus 994 drivers/gpu/vga/vgaarb.c n = sscanf(buf, "PCI:%x:%x:%x.%x", domain, bus, &slot, &func); bus 1226 drivers/gpu/vga/vgaarb.c unsigned int domain, bus, devfn; bus 1237 drivers/gpu/vga/vgaarb.c &domain, &bus, &devfn)) { bus 1241 drivers/gpu/vga/vgaarb.c pdev = pci_get_domain_bus_and_slot(domain, bus, devfn); bus 1244 drivers/gpu/vga/vgaarb.c domain, bus, PCI_SLOT(devfn), bus 1251 drivers/gpu/vga/vgaarb.c domain, bus, PCI_SLOT(devfn), PCI_FUNC(devfn), bus 210 drivers/greybus/bundle.c bundle->dev.bus = &greybus_bus_type; bus 467 drivers/greybus/control.c control->dev.bus = &greybus_bus_type; bus 276 drivers/greybus/core.c driver->driver.bus = &greybus_bus_type; bus 46 drivers/greybus/hd.c ATTRIBUTE_GROUPS(bus); bus 180 drivers/greybus/hd.c hd->dev.bus = &greybus_bus_type; bus 809 drivers/greybus/interface.c intf->dev.bus = &greybus_bus_type; bus 106 drivers/greybus/module.c module->dev.bus = &greybus_bus_type; bus 1317 drivers/greybus/svc.c svc->dev.bus = &greybus_bus_type; bus 1843 drivers/hid/hid-core.c return (id->bus == HID_BUS_ANY || id->bus == hdev->bus) && bus 1852 drivers/hid/hid-core.c for (; id->bus; id++) bus 1916 drivers/hid/hid-core.c const char *type, *bus; bus 1926 drivers/hid/hid-core.c if (hdev->bus != BUS_USB) bus 1977 drivers/hid/hid-core.c switch (hdev->bus) { bus 1979 drivers/hid/hid-core.c bus = "USB"; bus 1982 drivers/hid/hid-core.c bus = "BLUETOOTH"; bus 1985 drivers/hid/hid-core.c bus = "I2C"; bus 1988 drivers/hid/hid-core.c bus = "<UNKNOWN>"; bus 1997 drivers/hid/hid-core.c buf, bus, hdev->version >> 8, hdev->version & 0xff, bus 2124 drivers/hid/hid-core.c __u32 bus, vendor, product; bus 2129 drivers/hid/hid-core.c &bus, &vendor, &product, &driver_data); bus 2137 drivers/hid/hid-core.c dynid->id.bus = bus; bus 2315 drivers/hid/hid-core.c hdev->bus, hdev->group, hdev->vendor, hdev->product); bus 2338 drivers/hid/hid-core.c hdev->bus, hdev->vendor, hdev->product)) bus 2351 drivers/hid/hid-core.c hdev->bus, hdev->group, hdev->vendor, hdev->product)) bus 2415 drivers/hid/hid-core.c dev_set_name(&hdev->dev, "%04X:%04X:%04X.%04X", hdev->bus, bus 2449 drivers/hid/hid-core.c hdev->dev.bus = &hid_bus_type; bus 2528 drivers/hid/hid-core.c hdrv->driver.bus = &hid_bus_type; bus 53 drivers/hid/hid-elan.c if (hdev->bus == BUS_USB) { bus 172 drivers/hid/hid-elan.c input->id.bustype = hdev->bus; bus 483 drivers/hid/hid-hyperv.c hid_dev->bus = BUS_VIRTUAL; bus 445 drivers/hid/hid-input.c dev->bus, dev->vendor, dev->product, dev->version, quirks); bus 1729 drivers/hid/hid-input.c input_dev->id.bustype = hid->bus; bus 683 drivers/hid/hid-logitech-dj.c dj_hiddev->bus = BUS_USB; bus 3341 drivers/hid/hid-logitech-hidpp.c input_dev->id.bustype = hdev->bus; bus 110 drivers/hid/hid-picolcd_cir.c rdev->input_id.bustype = data->hdev->bus; bus 433 drivers/hid/hid-picolcd_core.c idev->id.bustype = hdev->bus; bus 987 drivers/hid/hid-quirks.c hdev->bus == BUS_USB && bus 1086 drivers/hid/hid-quirks.c hdev->bus = q_new->hid_bl_item.bus = id->bus; bus 1126 drivers/hid/hid-quirks.c static void hid_remove_all_dquirks(__u16 bus) bus 1132 drivers/hid/hid-quirks.c if (bus == HID_BUS_ANY || bus == q->hid_bl_item.bus) { bus 1144 drivers/hid/hid-quirks.c int hid_quirks_init(char **quirks_param, __u16 bus, int count) bus 1151 drivers/hid/hid-quirks.c id.bus = bus; bus 1183 drivers/hid/hid-quirks.c void hid_quirks_exit(__u16 bus) bus 1185 drivers/hid/hid-quirks.c hid_remove_all_dquirks(bus); bus 1235 drivers/hid/hid-quirks.c if (hdev->bus == BUS_USB && bus 1242 drivers/hid/hid-quirks.c if (hdev->bus == BUS_USB && hdev->vendor == USB_VENDOR_ID_JABRA) { bus 1383 drivers/hid/hid-sony.c sc->touchpad->id.bustype = sc->hdev->bus; bus 1447 drivers/hid/hid-sony.c sc->sensor_dev->id.bustype = sc->hdev->bus; bus 411 drivers/hid/hid-steam.c input->id.bustype = hdev->bus; bus 685 drivers/hid/hid-steam.c client_hdev->bus = hdev->bus; bus 252 drivers/hid/hid-u2fzero.c if (dev->hdev->bus != BUS_USB) bus 293 drivers/hid/hid-udraw-ps3.c input_dev->id.bustype = hdev->bus; bus 644 drivers/hid/hid-wiimote-core.c wdata->input->id.bustype = wdata->hdev->bus; bus 494 drivers/hid/hid-wiimote-modules.c wdata->accel->id.bustype = wdata->hdev->bus; bus 746 drivers/hid/hid-wiimote-modules.c wdata->ir->id.bustype = wdata->hdev->bus; bus 941 drivers/hid/hid-wiimote-modules.c wdata->extension.input->id.bustype = wdata->hdev->bus; bus 1216 drivers/hid/hid-wiimote-modules.c wdata->extension.input->id.bustype = wdata->hdev->bus; bus 1494 drivers/hid/hid-wiimote-modules.c wdata->extension.input->id.bustype = wdata->hdev->bus; bus 1882 drivers/hid/hid-wiimote-modules.c wdata->extension.input->id.bustype = wdata->hdev->bus; bus 2102 drivers/hid/hid-wiimote-modules.c wdata->extension.input->id.bustype = wdata->hdev->bus; bus 2332 drivers/hid/hid-wiimote-modules.c wdata->extension.input->id.bustype = wdata->hdev->bus; bus 2567 drivers/hid/hid-wiimote-modules.c wdata->mp->id.bustype = wdata->hdev->bus; bus 405 drivers/hid/hidraw.c dinfo.bustype = dev->hid->bus; bus 1106 drivers/hid/i2c-hid/i2c-hid-core.c hid->bus = BUS_I2C; bus 234 drivers/hid/intel-ish-hid/ishtp-hid.c hid->bus = BUS_INTEL_ISHTP; bus 450 drivers/hid/intel-ish-hid/ishtp/bus.c device->dev.bus = &ishtp_cl_bus_type; bus 512 drivers/hid/intel-ish-hid/ishtp/bus.c driver->driver.bus = &ishtp_cl_bus_type; bus 392 drivers/hid/uhid.c __u16 bus; bus 441 drivers/hid/uhid.c event->u.create.bus = compat->bus; bus 506 drivers/hid/uhid.c hid->bus = ev->u.create2.bus; bus 548 drivers/hid/uhid.c ev->u.create2.bus = orig.bus; bus 327 drivers/hid/usbhid/hid-core.c hid_to_usb_dev(hid)->bus->bus_name, bus 1355 drivers/hid/usbhid/hid-core.c hid->bus = BUS_USB; bus 642 drivers/hid/usbhid/hiddev.c dinfo.busnum = dev->bus->busnum; bus 149 drivers/hid/usbhid/usbkbd.c kbd->usbdev->bus->bus_name, bus 84 drivers/hid/usbhid/usbmouse.c mouse->usbdev->bus->bus_name, bus 675 drivers/hid/wacom_sys.c if (hdev->bus == BUS_BLUETOOTH) bus 1132 drivers/hid/wacom_sys.c if (hdev->bus == BUS_BLUETOOTH) { bus 2028 drivers/hid/wacom_sys.c input_dev->id.bustype = hdev->bus; bus 2194 drivers/hid/wacom_sys.c if (wacom->hdev->bus == BUS_I2C) { bus 2439 drivers/hid/wacom_sys.c while (id->bus) { bus 2446 drivers/hid/wacom_sys.c if (!id->bus) { bus 2754 drivers/hid/wacom_sys.c if (hdev->bus == BUS_BLUETOOTH) { bus 2781 drivers/hid/wacom_sys.c if (hdev->bus == BUS_BLUETOOTH) bus 3524 drivers/hid/wacom_wac.c if (wacom->hdev->bus == BUS_BLUETOOTH) bus 95 drivers/hsi/hsi_core.c cl->device.bus = &hsi_bus_type; bus 291 drivers/hsi/hsi_core.c cl->device.bus = &hsi_bus_type; bus 416 drivers/hsi/hsi_core.c drv->driver.bus = &hsi_bus_type; bus 1483 drivers/hv/vmbus_drv.c hv_driver->driver.bus = &hv_bus; bus 1834 drivers/hv/vmbus_drv.c child_device_obj->device.bus = &hv_bus; bus 83 drivers/hwmon/fam15h_power.c pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5), bus 100 drivers/hwmon/fam15h_power.c pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5), bus 337 drivers/hwmon/fam15h_power.c pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 3), bus 367 drivers/hwmon/fam15h_power.c pci_bus_read_config_dword(pdev->bus, bus 375 drivers/hwmon/fam15h_power.c pci_bus_write_config_dword(pdev->bus, bus 401 drivers/hwmon/fam15h_power.c pci_bus_read_config_dword(f4->bus, PCI_DEVFN(PCI_SLOT(f4->devfn), 5), bus 84 drivers/hwmon/ibmaem.c .bus = &platform_bus_type, bus 101 drivers/hwmon/k10temp.c pci_bus_write_config_dword(pdev->bus, devfn, bus 103 drivers/hwmon/k10temp.c pci_bus_read_config_dword(pdev->bus, devfn, bus 268 drivers/hwmon/k10temp.c pci_bus_read_config_dword(pdev->bus, bus 1214 drivers/hwtracing/coresight/coresight.c csdev->dev.bus = &coresight_bustype; bus 342 drivers/hwtracing/intel_th/core.c thdrv->driver.bus = &intel_th_bus; bus 375 drivers/hwtracing/intel_th/core.c thdev->dev.bus = &intel_th_bus; bus 172 drivers/i2c/busses/i2c-aspeed.c static int aspeed_i2c_reset(struct aspeed_i2c_bus *bus); bus 174 drivers/i2c/busses/i2c-aspeed.c static int aspeed_i2c_recover_bus(struct aspeed_i2c_bus *bus) bus 180 drivers/i2c/busses/i2c-aspeed.c spin_lock_irqsave(&bus->lock, flags); bus 181 drivers/i2c/busses/i2c-aspeed.c command = readl(bus->base + ASPEED_I2C_CMD_REG); bus 187 drivers/i2c/busses/i2c-aspeed.c dev_dbg(bus->dev, "SCL hung (state %x), attempting recovery\n", bus 190 drivers/i2c/busses/i2c-aspeed.c reinit_completion(&bus->cmd_complete); bus 191 drivers/i2c/busses/i2c-aspeed.c writel(ASPEED_I2CD_M_STOP_CMD, bus->base + ASPEED_I2C_CMD_REG); bus 192 drivers/i2c/busses/i2c-aspeed.c spin_unlock_irqrestore(&bus->lock, flags); bus 195 drivers/i2c/busses/i2c-aspeed.c &bus->cmd_complete, bus->adap.timeout); bus 197 drivers/i2c/busses/i2c-aspeed.c spin_lock_irqsave(&bus->lock, flags); bus 200 drivers/i2c/busses/i2c-aspeed.c else if (bus->cmd_err) bus 203 drivers/i2c/busses/i2c-aspeed.c else if (!(readl(bus->base + ASPEED_I2C_CMD_REG) & bus 208 drivers/i2c/busses/i2c-aspeed.c dev_dbg(bus->dev, "SDA hung (state %x), attempting recovery\n", bus 211 drivers/i2c/busses/i2c-aspeed.c reinit_completion(&bus->cmd_complete); bus 214 drivers/i2c/busses/i2c-aspeed.c bus->base + ASPEED_I2C_CMD_REG); bus 215 drivers/i2c/busses/i2c-aspeed.c spin_unlock_irqrestore(&bus->lock, flags); bus 218 drivers/i2c/busses/i2c-aspeed.c &bus->cmd_complete, bus->adap.timeout); bus 220 drivers/i2c/busses/i2c-aspeed.c spin_lock_irqsave(&bus->lock, flags); bus 223 drivers/i2c/busses/i2c-aspeed.c else if (bus->cmd_err) bus 226 drivers/i2c/busses/i2c-aspeed.c else if (!(readl(bus->base + ASPEED_I2C_CMD_REG) & bus 232 drivers/i2c/busses/i2c-aspeed.c spin_unlock_irqrestore(&bus->lock, flags); bus 237 drivers/i2c/busses/i2c-aspeed.c spin_unlock_irqrestore(&bus->lock, flags); bus 239 drivers/i2c/busses/i2c-aspeed.c return aspeed_i2c_reset(bus); bus 243 drivers/i2c/busses/i2c-aspeed.c static u32 aspeed_i2c_slave_irq(struct aspeed_i2c_bus *bus, u32 irq_status) bus 246 drivers/i2c/busses/i2c-aspeed.c struct i2c_client *slave = bus->slave; bus 252 drivers/i2c/busses/i2c-aspeed.c command = readl(bus->base + ASPEED_I2C_CMD_REG); bus 257 drivers/i2c/busses/i2c-aspeed.c bus->slave_state = ASPEED_I2C_SLAVE_START; bus 261 drivers/i2c/busses/i2c-aspeed.c if (bus->slave_state == ASPEED_I2C_SLAVE_INACTIVE) bus 264 drivers/i2c/busses/i2c-aspeed.c dev_dbg(bus->dev, "slave irq status 0x%08x, cmd 0x%08x\n", bus 269 drivers/i2c/busses/i2c-aspeed.c value = readl(bus->base + ASPEED_I2C_BYTE_BUF_REG) >> 8; bus 271 drivers/i2c/busses/i2c-aspeed.c if (bus->slave_state == ASPEED_I2C_SLAVE_START) { bus 273 drivers/i2c/busses/i2c-aspeed.c bus->slave_state = bus 276 drivers/i2c/busses/i2c-aspeed.c bus->slave_state = bus 285 drivers/i2c/busses/i2c-aspeed.c bus->slave_state = ASPEED_I2C_SLAVE_STOP; bus 288 drivers/i2c/busses/i2c-aspeed.c bus->slave_state == ASPEED_I2C_SLAVE_READ_PROCESSED) { bus 290 drivers/i2c/busses/i2c-aspeed.c bus->slave_state = ASPEED_I2C_SLAVE_STOP; bus 293 drivers/i2c/busses/i2c-aspeed.c switch (bus->slave_state) { bus 296 drivers/i2c/busses/i2c-aspeed.c dev_err(bus->dev, "Unexpected ACK on read request.\n"); bus 297 drivers/i2c/busses/i2c-aspeed.c bus->slave_state = ASPEED_I2C_SLAVE_READ_PROCESSED; bus 299 drivers/i2c/busses/i2c-aspeed.c writel(value, bus->base + ASPEED_I2C_BYTE_BUF_REG); bus 300 drivers/i2c/busses/i2c-aspeed.c writel(ASPEED_I2CD_S_TX_CMD, bus->base + ASPEED_I2C_CMD_REG); bus 304 drivers/i2c/busses/i2c-aspeed.c dev_err(bus->dev, bus 310 drivers/i2c/busses/i2c-aspeed.c writel(value, bus->base + ASPEED_I2C_BYTE_BUF_REG); bus 311 drivers/i2c/busses/i2c-aspeed.c writel(ASPEED_I2CD_S_TX_CMD, bus->base + ASPEED_I2C_CMD_REG); bus 314 drivers/i2c/busses/i2c-aspeed.c bus->slave_state = ASPEED_I2C_SLAVE_WRITE_RECEIVED; bus 322 drivers/i2c/busses/i2c-aspeed.c bus->slave_state = ASPEED_I2C_SLAVE_INACTIVE; bus 328 drivers/i2c/busses/i2c-aspeed.c dev_err(bus->dev, "unknown slave_state: %d\n", bus 329 drivers/i2c/busses/i2c-aspeed.c bus->slave_state); bus 330 drivers/i2c/busses/i2c-aspeed.c bus->slave_state = ASPEED_I2C_SLAVE_INACTIVE; bus 339 drivers/i2c/busses/i2c-aspeed.c static void aspeed_i2c_do_start(struct aspeed_i2c_bus *bus) bus 342 drivers/i2c/busses/i2c-aspeed.c struct i2c_msg *msg = &bus->msgs[bus->msgs_index]; bus 351 drivers/i2c/busses/i2c-aspeed.c if (bus->slave_state != ASPEED_I2C_SLAVE_INACTIVE) { bus 352 drivers/i2c/busses/i2c-aspeed.c bus->master_state = ASPEED_I2C_MASTER_PENDING; bus 357 drivers/i2c/busses/i2c-aspeed.c bus->master_state = ASPEED_I2C_MASTER_START; bus 358 drivers/i2c/busses/i2c-aspeed.c bus->buf_index = 0; bus 367 drivers/i2c/busses/i2c-aspeed.c writel(slave_addr, bus->base + ASPEED_I2C_BYTE_BUF_REG); bus 368 drivers/i2c/busses/i2c-aspeed.c writel(command, bus->base + ASPEED_I2C_CMD_REG); bus 372 drivers/i2c/busses/i2c-aspeed.c static void aspeed_i2c_do_stop(struct aspeed_i2c_bus *bus) bus 374 drivers/i2c/busses/i2c-aspeed.c bus->master_state = ASPEED_I2C_MASTER_STOP; bus 375 drivers/i2c/busses/i2c-aspeed.c writel(ASPEED_I2CD_M_STOP_CMD, bus->base + ASPEED_I2C_CMD_REG); bus 379 drivers/i2c/busses/i2c-aspeed.c static void aspeed_i2c_next_msg_or_stop(struct aspeed_i2c_bus *bus) bus 381 drivers/i2c/busses/i2c-aspeed.c if (bus->msgs_index + 1 < bus->msgs_count) { bus 382 drivers/i2c/busses/i2c-aspeed.c bus->msgs_index++; bus 383 drivers/i2c/busses/i2c-aspeed.c aspeed_i2c_do_start(bus); bus 385 drivers/i2c/busses/i2c-aspeed.c aspeed_i2c_do_stop(bus); bus 402 drivers/i2c/busses/i2c-aspeed.c static u32 aspeed_i2c_master_irq(struct aspeed_i2c_bus *bus, u32 irq_status) bus 410 drivers/i2c/busses/i2c-aspeed.c bus->master_state = ASPEED_I2C_MASTER_INACTIVE; bus 422 drivers/i2c/busses/i2c-aspeed.c dev_dbg(bus->dev, "received error interrupt: 0x%08x\n", bus 425 drivers/i2c/busses/i2c-aspeed.c if (bus->master_state != ASPEED_I2C_MASTER_INACTIVE) { bus 426 drivers/i2c/busses/i2c-aspeed.c bus->cmd_err = ret; bus 427 drivers/i2c/busses/i2c-aspeed.c bus->master_state = ASPEED_I2C_MASTER_INACTIVE; bus 433 drivers/i2c/busses/i2c-aspeed.c if (bus->master_state == ASPEED_I2C_MASTER_INACTIVE || bus 434 drivers/i2c/busses/i2c-aspeed.c bus->master_state == ASPEED_I2C_MASTER_PENDING) bus 438 drivers/i2c/busses/i2c-aspeed.c if (!bus->msgs) { bus 439 drivers/i2c/busses/i2c-aspeed.c dev_err(bus->dev, "bus in unknown state. irq_status: 0x%x\n", bus 441 drivers/i2c/busses/i2c-aspeed.c bus->cmd_err = -EIO; bus 442 drivers/i2c/busses/i2c-aspeed.c if (bus->master_state != ASPEED_I2C_MASTER_STOP && bus 443 drivers/i2c/busses/i2c-aspeed.c bus->master_state != ASPEED_I2C_MASTER_INACTIVE) bus 444 drivers/i2c/busses/i2c-aspeed.c aspeed_i2c_do_stop(bus); bus 447 drivers/i2c/busses/i2c-aspeed.c msg = &bus->msgs[bus->msgs_index]; bus 454 drivers/i2c/busses/i2c-aspeed.c if (bus->master_state == ASPEED_I2C_MASTER_START) { bus 464 drivers/i2c/busses/i2c-aspeed.c writel(readl(bus->base + ASPEED_I2C_CMD_REG) & bus 466 drivers/i2c/busses/i2c-aspeed.c bus->base + ASPEED_I2C_CMD_REG); bus 467 drivers/i2c/busses/i2c-aspeed.c bus->master_state = ASPEED_I2C_MASTER_PENDING; bus 468 drivers/i2c/busses/i2c-aspeed.c dev_dbg(bus->dev, bus 475 drivers/i2c/busses/i2c-aspeed.c bus->cmd_err = -ENXIO; bus 476 drivers/i2c/busses/i2c-aspeed.c bus->master_state = ASPEED_I2C_MASTER_INACTIVE; bus 481 drivers/i2c/busses/i2c-aspeed.c bus->cmd_err = -ENXIO; bus 482 drivers/i2c/busses/i2c-aspeed.c aspeed_i2c_do_stop(bus); bus 487 drivers/i2c/busses/i2c-aspeed.c aspeed_i2c_do_stop(bus); bus 491 drivers/i2c/busses/i2c-aspeed.c bus->master_state = ASPEED_I2C_MASTER_RX_FIRST; bus 493 drivers/i2c/busses/i2c-aspeed.c bus->master_state = ASPEED_I2C_MASTER_TX_FIRST; bus 496 drivers/i2c/busses/i2c-aspeed.c switch (bus->master_state) { bus 499 drivers/i2c/busses/i2c-aspeed.c dev_dbg(bus->dev, "slave NACKed TX\n"); bus 503 drivers/i2c/busses/i2c-aspeed.c dev_err(bus->dev, "slave failed to ACK TX\n"); bus 509 drivers/i2c/busses/i2c-aspeed.c if (bus->buf_index < msg->len) { bus 510 drivers/i2c/busses/i2c-aspeed.c bus->master_state = ASPEED_I2C_MASTER_TX; bus 511 drivers/i2c/busses/i2c-aspeed.c writel(msg->buf[bus->buf_index++], bus 512 drivers/i2c/busses/i2c-aspeed.c bus->base + ASPEED_I2C_BYTE_BUF_REG); bus 514 drivers/i2c/busses/i2c-aspeed.c bus->base + ASPEED_I2C_CMD_REG); bus 516 drivers/i2c/busses/i2c-aspeed.c aspeed_i2c_next_msg_or_stop(bus); bus 526 drivers/i2c/busses/i2c-aspeed.c dev_err(bus->dev, "master failed to RX\n"); bus 531 drivers/i2c/busses/i2c-aspeed.c recv_byte = readl(bus->base + ASPEED_I2C_BYTE_BUF_REG) >> 8; bus 532 drivers/i2c/busses/i2c-aspeed.c msg->buf[bus->buf_index++] = recv_byte; bus 536 drivers/i2c/busses/i2c-aspeed.c bus->cmd_err = -EPROTO; bus 537 drivers/i2c/busses/i2c-aspeed.c aspeed_i2c_do_stop(bus); bus 545 drivers/i2c/busses/i2c-aspeed.c if (bus->buf_index < msg->len) { bus 546 drivers/i2c/busses/i2c-aspeed.c bus->master_state = ASPEED_I2C_MASTER_RX; bus 548 drivers/i2c/busses/i2c-aspeed.c if (bus->buf_index + 1 == msg->len) bus 550 drivers/i2c/busses/i2c-aspeed.c writel(command, bus->base + ASPEED_I2C_CMD_REG); bus 552 drivers/i2c/busses/i2c-aspeed.c aspeed_i2c_next_msg_or_stop(bus); bus 557 drivers/i2c/busses/i2c-aspeed.c dev_err(bus->dev, bus 560 drivers/i2c/busses/i2c-aspeed.c bus->cmd_err = -EIO; bus 566 drivers/i2c/busses/i2c-aspeed.c bus->master_state = ASPEED_I2C_MASTER_INACTIVE; bus 569 drivers/i2c/busses/i2c-aspeed.c dev_err(bus->dev, bus 572 drivers/i2c/busses/i2c-aspeed.c bus->cmd_err = -EIO; bus 577 drivers/i2c/busses/i2c-aspeed.c bus->master_state = ASPEED_I2C_MASTER_INACTIVE; bus 578 drivers/i2c/busses/i2c-aspeed.c bus->cmd_err = -EINVAL; bus 582 drivers/i2c/busses/i2c-aspeed.c bus->cmd_err = -EIO; bus 583 drivers/i2c/busses/i2c-aspeed.c aspeed_i2c_do_stop(bus); bus 586 drivers/i2c/busses/i2c-aspeed.c bus->msgs = NULL; bus 587 drivers/i2c/busses/i2c-aspeed.c if (bus->cmd_err) bus 588 drivers/i2c/busses/i2c-aspeed.c bus->master_xfer_result = bus->cmd_err; bus 590 drivers/i2c/busses/i2c-aspeed.c bus->master_xfer_result = bus->msgs_index + 1; bus 591 drivers/i2c/busses/i2c-aspeed.c complete(&bus->cmd_complete); bus 598 drivers/i2c/busses/i2c-aspeed.c struct aspeed_i2c_bus *bus = dev_id; bus 601 drivers/i2c/busses/i2c-aspeed.c spin_lock(&bus->lock); bus 602 drivers/i2c/busses/i2c-aspeed.c irq_received = readl(bus->base + ASPEED_I2C_INTR_STS_REG); bus 605 drivers/i2c/busses/i2c-aspeed.c bus->base + ASPEED_I2C_INTR_STS_REG); bus 606 drivers/i2c/busses/i2c-aspeed.c readl(bus->base + ASPEED_I2C_INTR_STS_REG); bus 617 drivers/i2c/busses/i2c-aspeed.c if (bus->master_state != ASPEED_I2C_MASTER_INACTIVE && bus 618 drivers/i2c/busses/i2c-aspeed.c bus->master_state != ASPEED_I2C_MASTER_PENDING) { bus 619 drivers/i2c/busses/i2c-aspeed.c irq_handled = aspeed_i2c_master_irq(bus, irq_remaining); bus 622 drivers/i2c/busses/i2c-aspeed.c irq_handled |= aspeed_i2c_slave_irq(bus, irq_remaining); bus 624 drivers/i2c/busses/i2c-aspeed.c irq_handled = aspeed_i2c_slave_irq(bus, irq_remaining); bus 627 drivers/i2c/busses/i2c-aspeed.c irq_handled |= aspeed_i2c_master_irq(bus, bus 635 drivers/i2c/busses/i2c-aspeed.c if (bus->master_state == ASPEED_I2C_MASTER_PENDING && bus 636 drivers/i2c/busses/i2c-aspeed.c bus->slave_state == ASPEED_I2C_SLAVE_INACTIVE) bus 637 drivers/i2c/busses/i2c-aspeed.c aspeed_i2c_do_start(bus); bus 639 drivers/i2c/busses/i2c-aspeed.c irq_handled = aspeed_i2c_master_irq(bus, irq_remaining); bus 644 drivers/i2c/busses/i2c-aspeed.c dev_err(bus->dev, bus 651 drivers/i2c/busses/i2c-aspeed.c bus->base + ASPEED_I2C_INTR_STS_REG); bus 652 drivers/i2c/busses/i2c-aspeed.c readl(bus->base + ASPEED_I2C_INTR_STS_REG); bus 654 drivers/i2c/busses/i2c-aspeed.c spin_unlock(&bus->lock); bus 661 drivers/i2c/busses/i2c-aspeed.c struct aspeed_i2c_bus *bus = i2c_get_adapdata(adap); bus 664 drivers/i2c/busses/i2c-aspeed.c spin_lock_irqsave(&bus->lock, flags); bus 665 drivers/i2c/busses/i2c-aspeed.c bus->cmd_err = 0; bus 668 drivers/i2c/busses/i2c-aspeed.c if (!bus->multi_master && bus 669 drivers/i2c/busses/i2c-aspeed.c (readl(bus->base + ASPEED_I2C_CMD_REG) & bus 673 drivers/i2c/busses/i2c-aspeed.c spin_unlock_irqrestore(&bus->lock, flags); bus 674 drivers/i2c/busses/i2c-aspeed.c ret = aspeed_i2c_recover_bus(bus); bus 677 drivers/i2c/busses/i2c-aspeed.c spin_lock_irqsave(&bus->lock, flags); bus 680 drivers/i2c/busses/i2c-aspeed.c bus->cmd_err = 0; bus 681 drivers/i2c/busses/i2c-aspeed.c bus->msgs = msgs; bus 682 drivers/i2c/busses/i2c-aspeed.c bus->msgs_index = 0; bus 683 drivers/i2c/busses/i2c-aspeed.c bus->msgs_count = num; bus 685 drivers/i2c/busses/i2c-aspeed.c reinit_completion(&bus->cmd_complete); bus 686 drivers/i2c/busses/i2c-aspeed.c aspeed_i2c_do_start(bus); bus 687 drivers/i2c/busses/i2c-aspeed.c spin_unlock_irqrestore(&bus->lock, flags); bus 689 drivers/i2c/busses/i2c-aspeed.c time_left = wait_for_completion_timeout(&bus->cmd_complete, bus 690 drivers/i2c/busses/i2c-aspeed.c bus->adap.timeout); bus 697 drivers/i2c/busses/i2c-aspeed.c if (bus->multi_master && bus 698 drivers/i2c/busses/i2c-aspeed.c (readl(bus->base + ASPEED_I2C_CMD_REG) & bus 700 drivers/i2c/busses/i2c-aspeed.c aspeed_i2c_recover_bus(bus); bus 706 drivers/i2c/busses/i2c-aspeed.c spin_lock_irqsave(&bus->lock, flags); bus 707 drivers/i2c/busses/i2c-aspeed.c if (bus->master_state == ASPEED_I2C_MASTER_PENDING) bus 708 drivers/i2c/busses/i2c-aspeed.c bus->master_state = ASPEED_I2C_MASTER_INACTIVE; bus 709 drivers/i2c/busses/i2c-aspeed.c spin_unlock_irqrestore(&bus->lock, flags); bus 714 drivers/i2c/busses/i2c-aspeed.c return bus->master_xfer_result; bus 724 drivers/i2c/busses/i2c-aspeed.c static void __aspeed_i2c_reg_slave(struct aspeed_i2c_bus *bus, u16 slave_addr) bus 729 drivers/i2c/busses/i2c-aspeed.c addr_reg_val = readl(bus->base + ASPEED_I2C_DEV_ADDR_REG); bus 732 drivers/i2c/busses/i2c-aspeed.c writel(addr_reg_val, bus->base + ASPEED_I2C_DEV_ADDR_REG); bus 735 drivers/i2c/busses/i2c-aspeed.c func_ctrl_reg_val = readl(bus->base + ASPEED_I2C_FUN_CTRL_REG); bus 737 drivers/i2c/busses/i2c-aspeed.c writel(func_ctrl_reg_val, bus->base + ASPEED_I2C_FUN_CTRL_REG); bus 742 drivers/i2c/busses/i2c-aspeed.c struct aspeed_i2c_bus *bus = i2c_get_adapdata(client->adapter); bus 745 drivers/i2c/busses/i2c-aspeed.c spin_lock_irqsave(&bus->lock, flags); bus 746 drivers/i2c/busses/i2c-aspeed.c if (bus->slave) { bus 747 drivers/i2c/busses/i2c-aspeed.c spin_unlock_irqrestore(&bus->lock, flags); bus 751 drivers/i2c/busses/i2c-aspeed.c __aspeed_i2c_reg_slave(bus, client->addr); bus 753 drivers/i2c/busses/i2c-aspeed.c bus->slave = client; bus 754 drivers/i2c/busses/i2c-aspeed.c bus->slave_state = ASPEED_I2C_SLAVE_INACTIVE; bus 755 drivers/i2c/busses/i2c-aspeed.c spin_unlock_irqrestore(&bus->lock, flags); bus 762 drivers/i2c/busses/i2c-aspeed.c struct aspeed_i2c_bus *bus = i2c_get_adapdata(client->adapter); bus 766 drivers/i2c/busses/i2c-aspeed.c spin_lock_irqsave(&bus->lock, flags); bus 767 drivers/i2c/busses/i2c-aspeed.c if (!bus->slave) { bus 768 drivers/i2c/busses/i2c-aspeed.c spin_unlock_irqrestore(&bus->lock, flags); bus 773 drivers/i2c/busses/i2c-aspeed.c func_ctrl_reg_val = readl(bus->base + ASPEED_I2C_FUN_CTRL_REG); bus 775 drivers/i2c/busses/i2c-aspeed.c writel(func_ctrl_reg_val, bus->base + ASPEED_I2C_FUN_CTRL_REG); bus 777 drivers/i2c/busses/i2c-aspeed.c bus->slave = NULL; bus 778 drivers/i2c/busses/i2c-aspeed.c spin_unlock_irqrestore(&bus->lock, flags); bus 879 drivers/i2c/busses/i2c-aspeed.c static int aspeed_i2c_init_clk(struct aspeed_i2c_bus *bus) bus 883 drivers/i2c/busses/i2c-aspeed.c divisor = DIV_ROUND_UP(bus->parent_clk_frequency, bus->bus_frequency); bus 884 drivers/i2c/busses/i2c-aspeed.c clk_reg_val = readl(bus->base + ASPEED_I2C_AC_TIMING_REG1); bus 888 drivers/i2c/busses/i2c-aspeed.c clk_reg_val |= bus->get_clk_reg_val(bus->dev, divisor); bus 889 drivers/i2c/busses/i2c-aspeed.c writel(clk_reg_val, bus->base + ASPEED_I2C_AC_TIMING_REG1); bus 890 drivers/i2c/busses/i2c-aspeed.c writel(ASPEED_NO_TIMEOUT_CTRL, bus->base + ASPEED_I2C_AC_TIMING_REG2); bus 896 drivers/i2c/busses/i2c-aspeed.c static int aspeed_i2c_init(struct aspeed_i2c_bus *bus, bus 903 drivers/i2c/busses/i2c-aspeed.c writel(0, bus->base + ASPEED_I2C_FUN_CTRL_REG); bus 905 drivers/i2c/busses/i2c-aspeed.c ret = aspeed_i2c_init_clk(bus); bus 910 drivers/i2c/busses/i2c-aspeed.c bus->multi_master = true; bus 915 drivers/i2c/busses/i2c-aspeed.c writel(readl(bus->base + ASPEED_I2C_FUN_CTRL_REG) | fun_ctrl_reg, bus 916 drivers/i2c/busses/i2c-aspeed.c bus->base + ASPEED_I2C_FUN_CTRL_REG); bus 920 drivers/i2c/busses/i2c-aspeed.c if (bus->slave) bus 921 drivers/i2c/busses/i2c-aspeed.c __aspeed_i2c_reg_slave(bus, bus->slave->addr); bus 925 drivers/i2c/busses/i2c-aspeed.c writel(ASPEED_I2CD_INTR_ALL, bus->base + ASPEED_I2C_INTR_CTRL_REG); bus 930 drivers/i2c/busses/i2c-aspeed.c static int aspeed_i2c_reset(struct aspeed_i2c_bus *bus) bus 932 drivers/i2c/busses/i2c-aspeed.c struct platform_device *pdev = to_platform_device(bus->dev); bus 936 drivers/i2c/busses/i2c-aspeed.c spin_lock_irqsave(&bus->lock, flags); bus 939 drivers/i2c/busses/i2c-aspeed.c writel(0, bus->base + ASPEED_I2C_INTR_CTRL_REG); bus 940 drivers/i2c/busses/i2c-aspeed.c writel(0xffffffff, bus->base + ASPEED_I2C_INTR_STS_REG); bus 942 drivers/i2c/busses/i2c-aspeed.c ret = aspeed_i2c_init(bus, pdev); bus 944 drivers/i2c/busses/i2c-aspeed.c spin_unlock_irqrestore(&bus->lock, flags); bus 965 drivers/i2c/busses/i2c-aspeed.c struct aspeed_i2c_bus *bus; bus 970 drivers/i2c/busses/i2c-aspeed.c bus = devm_kzalloc(&pdev->dev, sizeof(*bus), GFP_KERNEL); bus 971 drivers/i2c/busses/i2c-aspeed.c if (!bus) bus 975 drivers/i2c/busses/i2c-aspeed.c bus->base = devm_ioremap_resource(&pdev->dev, res); bus 976 drivers/i2c/busses/i2c-aspeed.c if (IS_ERR(bus->base)) bus 977 drivers/i2c/busses/i2c-aspeed.c return PTR_ERR(bus->base); bus 982 drivers/i2c/busses/i2c-aspeed.c bus->parent_clk_frequency = clk_get_rate(parent_clk); bus 986 drivers/i2c/busses/i2c-aspeed.c bus->rst = devm_reset_control_get_shared(&pdev->dev, NULL); bus 987 drivers/i2c/busses/i2c-aspeed.c if (IS_ERR(bus->rst)) { bus 990 drivers/i2c/busses/i2c-aspeed.c return PTR_ERR(bus->rst); bus 992 drivers/i2c/busses/i2c-aspeed.c reset_control_deassert(bus->rst); bus 995 drivers/i2c/busses/i2c-aspeed.c "bus-frequency", &bus->bus_frequency); bus 999 drivers/i2c/busses/i2c-aspeed.c bus->bus_frequency = 100000; bus 1004 drivers/i2c/busses/i2c-aspeed.c bus->get_clk_reg_val = aspeed_i2c_24xx_get_clk_reg_val; bus 1006 drivers/i2c/busses/i2c-aspeed.c bus->get_clk_reg_val = (u32 (*)(struct device *, u32)) bus 1010 drivers/i2c/busses/i2c-aspeed.c spin_lock_init(&bus->lock); bus 1011 drivers/i2c/busses/i2c-aspeed.c init_completion(&bus->cmd_complete); bus 1012 drivers/i2c/busses/i2c-aspeed.c bus->adap.owner = THIS_MODULE; bus 1013 drivers/i2c/busses/i2c-aspeed.c bus->adap.retries = 0; bus 1014 drivers/i2c/busses/i2c-aspeed.c bus->adap.algo = &aspeed_i2c_algo; bus 1015 drivers/i2c/busses/i2c-aspeed.c bus->adap.dev.parent = &pdev->dev; bus 1016 drivers/i2c/busses/i2c-aspeed.c bus->adap.dev.of_node = pdev->dev.of_node; bus 1017 drivers/i2c/busses/i2c-aspeed.c strlcpy(bus->adap.name, pdev->name, sizeof(bus->adap.name)); bus 1018 drivers/i2c/busses/i2c-aspeed.c i2c_set_adapdata(&bus->adap, bus); bus 1020 drivers/i2c/busses/i2c-aspeed.c bus->dev = &pdev->dev; bus 1023 drivers/i2c/busses/i2c-aspeed.c writel(0, bus->base + ASPEED_I2C_INTR_CTRL_REG); bus 1024 drivers/i2c/busses/i2c-aspeed.c writel(0xffffffff, bus->base + ASPEED_I2C_INTR_STS_REG); bus 1029 drivers/i2c/busses/i2c-aspeed.c ret = aspeed_i2c_init(bus, pdev); bus 1035 drivers/i2c/busses/i2c-aspeed.c 0, dev_name(&pdev->dev), bus); bus 1039 drivers/i2c/busses/i2c-aspeed.c ret = i2c_add_adapter(&bus->adap); bus 1043 drivers/i2c/busses/i2c-aspeed.c platform_set_drvdata(pdev, bus); bus 1045 drivers/i2c/busses/i2c-aspeed.c dev_info(bus->dev, "i2c bus %d registered, irq %d\n", bus 1046 drivers/i2c/busses/i2c-aspeed.c bus->adap.nr, irq); bus 1053 drivers/i2c/busses/i2c-aspeed.c struct aspeed_i2c_bus *bus = platform_get_drvdata(pdev); bus 1056 drivers/i2c/busses/i2c-aspeed.c spin_lock_irqsave(&bus->lock, flags); bus 1059 drivers/i2c/busses/i2c-aspeed.c writel(0, bus->base + ASPEED_I2C_FUN_CTRL_REG); bus 1060 drivers/i2c/busses/i2c-aspeed.c writel(0, bus->base + ASPEED_I2C_INTR_CTRL_REG); bus 1062 drivers/i2c/busses/i2c-aspeed.c spin_unlock_irqrestore(&bus->lock, flags); bus 1064 drivers/i2c/busses/i2c-aspeed.c reset_control_assert(bus->rst); bus 1066 drivers/i2c/busses/i2c-aspeed.c i2c_del_adapter(&bus->adap); bus 176 drivers/i2c/busses/i2c-cros-ec-tunnel.c struct ec_i2c_device *bus = adap->algo_data; bus 177 drivers/i2c/busses/i2c-cros-ec-tunnel.c struct device *dev = bus->dev; bus 178 drivers/i2c/busses/i2c-cros-ec-tunnel.c const u16 bus_num = bus->remote_bus; bus 214 drivers/i2c/busses/i2c-cros-ec-tunnel.c result = cros_ec_cmd_xfer_status(bus->ec, msg); bus 246 drivers/i2c/busses/i2c-cros-ec-tunnel.c struct ec_i2c_device *bus = NULL; bus 255 drivers/i2c/busses/i2c-cros-ec-tunnel.c bus = devm_kzalloc(dev, sizeof(*bus), GFP_KERNEL); bus 256 drivers/i2c/busses/i2c-cros-ec-tunnel.c if (bus == NULL) bus 264 drivers/i2c/busses/i2c-cros-ec-tunnel.c bus->remote_bus = remote_bus; bus 266 drivers/i2c/busses/i2c-cros-ec-tunnel.c bus->ec = ec; bus 267 drivers/i2c/busses/i2c-cros-ec-tunnel.c bus->dev = dev; bus 269 drivers/i2c/busses/i2c-cros-ec-tunnel.c bus->adap.owner = THIS_MODULE; bus 270 drivers/i2c/busses/i2c-cros-ec-tunnel.c strlcpy(bus->adap.name, "cros-ec-i2c-tunnel", sizeof(bus->adap.name)); bus 271 drivers/i2c/busses/i2c-cros-ec-tunnel.c bus->adap.algo = &ec_i2c_algorithm; bus 272 drivers/i2c/busses/i2c-cros-ec-tunnel.c bus->adap.algo_data = bus; bus 273 drivers/i2c/busses/i2c-cros-ec-tunnel.c bus->adap.dev.parent = &pdev->dev; bus 274 drivers/i2c/busses/i2c-cros-ec-tunnel.c bus->adap.dev.of_node = np; bus 275 drivers/i2c/busses/i2c-cros-ec-tunnel.c bus->adap.retries = I2C_MAX_RETRIES; bus 277 drivers/i2c/busses/i2c-cros-ec-tunnel.c err = i2c_add_adapter(&bus->adap); bus 280 drivers/i2c/busses/i2c-cros-ec-tunnel.c platform_set_drvdata(pdev, bus); bus 287 drivers/i2c/busses/i2c-cros-ec-tunnel.c struct ec_i2c_device *bus = platform_get_drvdata(dev); bus 289 drivers/i2c/busses/i2c-cros-ec-tunnel.c i2c_del_adapter(&bus->adap); bus 317 drivers/i2c/busses/i2c-diolan-u2c.c dev->usb_dev->bus->busnum, dev->usb_dev->devnum, frequency); bus 471 drivers/i2c/busses/i2c-diolan-u2c.c dev->usb_dev->bus->busnum, dev->usb_dev->devnum); bus 766 drivers/i2c/busses/i2c-fsi.c .bus = &fsi_bus_type, bus 1527 drivers/i2c/busses/i2c-i801.c pci_bus_read_config_byte(pci_dev->bus, devfn, 0xe1, &hidden); bus 1529 drivers/i2c/busses/i2c-i801.c pci_bus_write_config_byte(pci_dev->bus, devfn, 0xe1, 0x0); bus 1531 drivers/i2c/busses/i2c-i801.c pci_bus_read_config_dword(pci_dev->bus, devfn, SBREG_BAR, &base_addr); bus 1534 drivers/i2c/busses/i2c-i801.c pci_bus_read_config_dword(pci_dev->bus, devfn, SBREG_BAR + 0x4, &base_addr); bus 1539 drivers/i2c/busses/i2c-i801.c pci_bus_write_config_byte(pci_dev->bus, devfn, 0xe1, hidden); bus 936 drivers/i2c/busses/i2c-piix4.c pci_bus_read_config_byte(dev->bus, PCI_DEVFN(0x14, 3), bus 36 drivers/i2c/busses/i2c-powermac.c struct pmac_i2c_bus *bus = i2c_get_adapdata(adap); bus 98 drivers/i2c/busses/i2c-powermac.c rc = pmac_i2c_open(bus, 0); bus 104 drivers/i2c/busses/i2c-powermac.c rc = pmac_i2c_setmode(bus, mode); bus 111 drivers/i2c/busses/i2c-powermac.c rc = pmac_i2c_xfer(bus, addrdir, subsize, subaddr, buf, len); bus 130 drivers/i2c/busses/i2c-powermac.c pmac_i2c_close(bus); bus 143 drivers/i2c/busses/i2c-powermac.c struct pmac_i2c_bus *bus = i2c_get_adapdata(adap); bus 151 drivers/i2c/busses/i2c-powermac.c rc = pmac_i2c_open(bus, 0); bus 156 drivers/i2c/busses/i2c-powermac.c rc = pmac_i2c_setmode(bus, pmac_i2c_mode_std); bus 162 drivers/i2c/busses/i2c-powermac.c rc = pmac_i2c_xfer(bus, addrdir, 0, 0, msgs->buf, msgs->len); bus 174 drivers/i2c/busses/i2c-powermac.c pmac_i2c_close(bus); bus 207 drivers/i2c/busses/i2c-powermac.c struct pmac_i2c_bus *bus, bus 251 drivers/i2c/busses/i2c-powermac.c struct pmac_i2c_bus *bus, bus 254 drivers/i2c/busses/i2c-powermac.c struct device_node *busnode = pmac_i2c_get_bus_node(bus); bus 315 drivers/i2c/busses/i2c-powermac.c struct pmac_i2c_bus *bus) bus 334 drivers/i2c/busses/i2c-powermac.c addr = i2c_powermac_get_addr(adap, bus, node); bus 377 drivers/i2c/busses/i2c-powermac.c i2c_powermac_add_missing(adap, bus, found_onyx); bus 382 drivers/i2c/busses/i2c-powermac.c struct pmac_i2c_bus *bus = dev_get_platdata(&dev->dev); bus 387 drivers/i2c/busses/i2c-powermac.c if (bus == NULL) bus 389 drivers/i2c/busses/i2c-powermac.c adapter = pmac_i2c_get_adapter(bus); bus 396 drivers/i2c/busses/i2c-powermac.c switch(pmac_i2c_get_type(bus)) { bus 398 drivers/i2c/busses/i2c-powermac.c parent = of_get_parent(pmac_i2c_get_controller(bus)); bus 403 drivers/i2c/busses/i2c-powermac.c pmac_i2c_get_channel(bus)); bus 408 drivers/i2c/busses/i2c-powermac.c pmac_i2c_get_channel(bus)); bus 415 drivers/i2c/busses/i2c-powermac.c pmac_i2c_get_channel(bus)); bus 424 drivers/i2c/busses/i2c-powermac.c i2c_set_adapdata(adapter, bus); bus 441 drivers/i2c/busses/i2c-powermac.c i2c_powermac_register_devices(adapter, bus); bus 451 drivers/i2c/busses/i2c-powermac.c .bus = &platform_bus_type, bus 150 drivers/i2c/busses/i2c-robotfuzz-osif.c priv->usb_dev->bus->busnum, priv->usb_dev->devnum); bus 170 drivers/i2c/busses/i2c-robotfuzz-osif.c priv->usb_dev->bus->busnum, priv->usb_dev->devnum); bus 19 drivers/i2c/busses/i2c-sibyte.c int bus; /* which bus */ bus 33 drivers/i2c/busses/i2c-tegra-bpmp.c unsigned int bus; bus 206 drivers/i2c/busses/i2c-tegra-bpmp.c request->xfer.bus_id = i2c->bus; bus 307 drivers/i2c/busses/i2c-tegra-bpmp.c i2c->bus = value; bus 244 drivers/i2c/busses/i2c-tiny-usb.c dev->usb_dev->bus->busnum, dev->usb_dev->devnum); bus 253 drivers/i2c/busses/i2c-tiny-usb.c dev->usb_dev->bus->busnum, dev->usb_dev->devnum); bus 379 drivers/i2c/busses/i2c-viperboard.c vb->usb_dev->bus->busnum, vb->usb_dev->devnum); bus 777 drivers/i2c/i2c-core-base.c client->dev.bus = &i2c_bus_type; bus 1358 drivers/i2c/i2c-core-base.c adap->dev.bus = &i2c_bus_type; bus 1715 drivers/i2c/i2c-core-base.c driver->driver.bus = &i2c_bus_type; bus 87 drivers/i2c/i2c-core-of.c struct device_node *bus, *node; bus 96 drivers/i2c/i2c-core-of.c bus = of_get_child_by_name(adap->dev.of_node, "i2c-bus"); bus 97 drivers/i2c/i2c-core-of.c if (!bus) bus 98 drivers/i2c/i2c-core-of.c bus = of_node_get(adap->dev.of_node); bus 100 drivers/i2c/i2c-core-of.c for_each_available_child_of_node(bus, node) { bus 113 drivers/i2c/i2c-core-of.c of_node_put(bus); bus 45 drivers/i3c/device.c i3c_bus_normaluse_lock(dev->bus); bus 47 drivers/i3c/device.c i3c_bus_normaluse_unlock(dev->bus); bus 67 drivers/i3c/device.c i3c_bus_normaluse_lock(dev->bus); bus 70 drivers/i3c/device.c i3c_bus_normaluse_unlock(dev->bus); bus 87 drivers/i3c/device.c i3c_bus_normaluse_lock(dev->bus); bus 93 drivers/i3c/device.c i3c_bus_normaluse_unlock(dev->bus); bus 116 drivers/i3c/device.c i3c_bus_normaluse_lock(dev->bus); bus 122 drivers/i3c/device.c i3c_bus_normaluse_unlock(dev->bus); bus 147 drivers/i3c/device.c i3c_bus_normaluse_lock(dev->bus); bus 153 drivers/i3c/device.c i3c_bus_normaluse_unlock(dev->bus); bus 169 drivers/i3c/device.c i3c_bus_normaluse_lock(dev->bus); bus 175 drivers/i3c/device.c i3c_bus_normaluse_unlock(dev->bus); bus 269 drivers/i3c/device.c drv->driver.bus = &i3c_bus_type; bus 15 drivers/i3c/internals.h void i3c_bus_normaluse_lock(struct i3c_bus *bus); bus 16 drivers/i3c/internals.h void i3c_bus_normaluse_unlock(struct i3c_bus *bus); bus 41 drivers/i3c/master.c static void i3c_bus_maintenance_lock(struct i3c_bus *bus) bus 43 drivers/i3c/master.c down_write(&bus->lock); bus 55 drivers/i3c/master.c static void i3c_bus_maintenance_unlock(struct i3c_bus *bus) bus 57 drivers/i3c/master.c up_write(&bus->lock); bus 76 drivers/i3c/master.c void i3c_bus_normaluse_lock(struct i3c_bus *bus) bus 78 drivers/i3c/master.c down_read(&bus->lock); bus 89 drivers/i3c/master.c void i3c_bus_normaluse_unlock(struct i3c_bus *bus) bus 91 drivers/i3c/master.c up_read(&bus->lock); bus 97 drivers/i3c/master.c return container_of(i3cbus, struct i3c_master_controller, bus); bus 112 drivers/i3c/master.c return dev_to_i3cdev(dev)->bus; bus 116 drivers/i3c/master.c return &master->bus; bus 135 drivers/i3c/master.c struct i3c_bus *bus = dev_to_i3cbus(dev); bus 139 drivers/i3c/master.c i3c_bus_normaluse_lock(bus); bus 142 drivers/i3c/master.c i3c_bus_normaluse_unlock(bus); bus 152 drivers/i3c/master.c struct i3c_bus *bus = dev_to_i3cbus(dev); bus 156 drivers/i3c/master.c i3c_bus_normaluse_lock(bus); bus 159 drivers/i3c/master.c i3c_bus_normaluse_unlock(bus); bus 169 drivers/i3c/master.c struct i3c_bus *bus = dev_to_i3cbus(dev); bus 173 drivers/i3c/master.c i3c_bus_normaluse_lock(bus); bus 176 drivers/i3c/master.c i3c_bus_normaluse_unlock(bus); bus 186 drivers/i3c/master.c struct i3c_bus *bus = dev_to_i3cbus(dev); bus 190 drivers/i3c/master.c i3c_bus_normaluse_lock(bus); bus 193 drivers/i3c/master.c i3c_bus_normaluse_unlock(bus); bus 207 drivers/i3c/master.c struct i3c_bus *bus = dev_to_i3cbus(dev); bus 213 drivers/i3c/master.c i3c_bus_normaluse_lock(bus); bus 238 drivers/i3c/master.c i3c_bus_normaluse_unlock(bus); bus 326 drivers/i3c/master.c i3c_bus_get_addr_slot_status(struct i3c_bus *bus, u16 addr) bus 333 drivers/i3c/master.c status = bus->addrslots[bitpos / BITS_PER_LONG]; bus 339 drivers/i3c/master.c static void i3c_bus_set_addr_slot_status(struct i3c_bus *bus, u16 addr, bus 348 drivers/i3c/master.c ptr = bus->addrslots + (bitpos / BITS_PER_LONG); bus 354 drivers/i3c/master.c static bool i3c_bus_dev_addr_is_avail(struct i3c_bus *bus, u8 addr) bus 358 drivers/i3c/master.c status = i3c_bus_get_addr_slot_status(bus, addr); bus 363 drivers/i3c/master.c static int i3c_bus_get_free_addr(struct i3c_bus *bus, u8 start_addr) bus 369 drivers/i3c/master.c status = i3c_bus_get_addr_slot_status(bus, addr); bus 377 drivers/i3c/master.c static void i3c_bus_init_addrslots(struct i3c_bus *bus) bus 383 drivers/i3c/master.c i3c_bus_set_addr_slot_status(bus, i, I3C_ADDR_SLOT_RSVD); bus 389 drivers/i3c/master.c i3c_bus_set_addr_slot_status(bus, I3C_BROADCAST_ADDR, bus 392 drivers/i3c/master.c i3c_bus_set_addr_slot_status(bus, I3C_BROADCAST_ADDR ^ BIT(i), bus 515 drivers/i3c/master.c struct i3c_bus *bus = dev_to_i3cbus(dev); bus 520 drivers/i3c/master.c WARN_ON(!list_empty(&bus->devs.i2c) || !list_empty(&bus->devs.i3c)); bus 521 drivers/i3c/master.c i3c_bus_cleanup(bus); bus 647 drivers/i3c/master.c !rwsem_is_locked(&master->bus.lock))) bus 677 drivers/i3c/master.c i3c_bus_for_each_i2cdev(&master->bus, dev) { bus 698 drivers/i3c/master.c return i3c_bus_get_free_addr(&master->bus, start_addr); bus 745 drivers/i3c/master.c addrstat = i3c_bus_get_addr_slot_status(&master->bus, addr); bus 883 drivers/i3c/master.c struct i3c_bus *bus; bus 890 drivers/i3c/master.c bus = i3c_master_get_bus(master); bus 891 drivers/i3c/master.c i3c_bus_for_each_i3cdev(bus, i3cdev) { bus 906 drivers/i3c/master.c i3c_bus_for_each_i2cdev(bus, i2cdev) bus 922 drivers/i3c/master.c i3c_bus_for_each_i2cdev(bus, i2cdev) { bus 928 drivers/i3c/master.c i3c_bus_for_each_i3cdev(bus, i3cdev) { bus 1213 drivers/i3c/master.c slot_status = i3c_bus_get_addr_slot_status(&master->bus, bus 1257 drivers/i3c/master.c i3c_bus_set_addr_slot_status(&master->bus, bus 1262 drivers/i3c/master.c i3c_bus_set_addr_slot_status(&master->bus, dev->info.dyn_addr, bus 1266 drivers/i3c/master.c i3c_bus_set_addr_slot_status(&master->bus, dev->info.dyn_addr, bus 1279 drivers/i3c/master.c status = i3c_bus_get_addr_slot_status(&master->bus, bus 1284 drivers/i3c/master.c i3c_bus_set_addr_slot_status(&master->bus, bus 1297 drivers/i3c/master.c status = i3c_bus_get_addr_slot_status(&master->bus, bus 1302 drivers/i3c/master.c i3c_bus_set_addr_slot_status(&master->bus, dev->info.dyn_addr, bus 1310 drivers/i3c/master.c i3c_bus_set_addr_slot_status(&master->bus, bus 1342 drivers/i3c/master.c list_add_tail(&dev->common.node, &master->bus.devs.i3c); bus 1355 drivers/i3c/master.c status = i3c_bus_get_addr_slot_status(&master->bus, bus 1359 drivers/i3c/master.c i3c_bus_set_addr_slot_status(&master->bus, bus 1398 drivers/i3c/master.c list_add_tail(&dev->common.node, &master->bus.devs.i2c); bus 1451 drivers/i3c/master.c i3c_bus_for_each_i3cdev(&master->bus, desc) { bus 1459 drivers/i3c/master.c desc->dev->bus = &master->bus; bus 1463 drivers/i3c/master.c desc->dev->dev.bus = &i3c_bus_type; bus 1465 drivers/i3c/master.c dev_set_name(&desc->dev->dev, "%d-%llx", master->bus.id, bus 1497 drivers/i3c/master.c i3c_bus_maintenance_lock(&master->bus); bus 1499 drivers/i3c/master.c i3c_bus_maintenance_unlock(&master->bus); bus 1504 drivers/i3c/master.c i3c_bus_normaluse_lock(&master->bus); bus 1506 drivers/i3c/master.c i3c_bus_normaluse_unlock(&master->bus); bus 1542 drivers/i3c/master.c if (!i3c_bus_dev_addr_is_avail(&master->bus, info->dyn_addr)) bus 1557 drivers/i3c/master.c master->bus.cur_master = master->this; bus 1577 drivers/i3c/master.c list_for_each_entry_safe(i3cdev, i3ctmp, &master->bus.devs.i3c, bus 1582 drivers/i3c/master.c i3c_bus_set_addr_slot_status(&master->bus, bus 1589 drivers/i3c/master.c list_for_each_entry_safe(i2cdev, i2ctmp, &master->bus.devs.i2c, bus 1592 drivers/i3c/master.c i3c_bus_set_addr_slot_status(&master->bus, bus 1643 drivers/i3c/master.c status = i3c_bus_get_addr_slot_status(&master->bus, bus 1650 drivers/i3c/master.c i3c_bus_set_addr_slot_status(&master->bus, bus 1672 drivers/i3c/master.c status = i3c_bus_get_addr_slot_status(&master->bus, bus 1733 drivers/i3c/master.c i3c_bus_for_each_i3cdev(&master->bus, i3cdev) bus 1769 drivers/i3c/master.c i3c_bus_for_each_i3cdev(&master->bus, i3cdev) { bus 1889 drivers/i3c/master.c master->bus.id, newdev->info.pid); bus 1906 drivers/i3c/master.c master->bus.id, newdev->info.pid); bus 1912 drivers/i3c/master.c master->bus.id, newdev->info.pid); bus 1986 drivers/i3c/master.c addrstatus = i3c_bus_get_addr_slot_status(&master->bus, bus 1998 drivers/i3c/master.c addrstatus = i3c_bus_get_addr_slot_status(&master->bus, bus 2067 drivers/i3c/master.c master->bus.scl_rate.i2c = val; bus 2070 drivers/i3c/master.c master->bus.scl_rate.i3c = val; bus 2096 drivers/i3c/master.c i3c_bus_normaluse_lock(&master->bus); bus 2102 drivers/i3c/master.c i3c_bus_normaluse_unlock(&master->bus); bus 2140 drivers/i3c/master.c i3c_bus_for_each_i2cdev(&master->bus, i2cdev) bus 2152 drivers/i3c/master.c i3c_bus_for_each_i2cdev(&master->bus, i2cdev) bus 2160 drivers/i3c/master.c i3c_bus_for_each_i3cdev(&master->bus, i3cdev) { bus 2426 drivers/i3c/master.c master->dev.bus = &i3c_bus_type; bus 2499 drivers/i3c/master.c i3c_bus_normaluse_lock(&master->bus); bus 2501 drivers/i3c/master.c i3c_bus_normaluse_unlock(&master->bus); bus 595 drivers/i3c/master/dw-i3c-master.c struct i3c_bus *bus = i3c_master_get_bus(m); bus 600 drivers/i3c/master/dw-i3c-master.c switch (bus->mode) { bus 1058 drivers/i3c/master/i3c-master-cdns.c struct i3c_bus *bus = i3c_master_get_bus(m); bus 1063 drivers/i3c/master/i3c-master-cdns.c i3c_bus_for_each_i3cdev(bus, dev) { bus 1098 drivers/i3c/master/i3c-master-cdns.c pres_step = 1000000000UL / (bus->scl_rate.i3c * 4); bus 1188 drivers/i3c/master/i3c-master-cdns.c struct i3c_bus *bus = i3c_master_get_bus(m); bus 1193 drivers/i3c/master/i3c-master-cdns.c switch (bus->mode) { bus 1214 drivers/i3c/master/i3c-master-cdns.c pres = DIV_ROUND_UP(sysclk_rate, (bus->scl_rate.i3c * 4)) - 1; bus 1218 drivers/i3c/master/i3c-master-cdns.c bus->scl_rate.i3c = sysclk_rate / ((pres + 1) * 4); bus 1225 drivers/i3c/master/i3c-master-cdns.c max_i2cfreq = bus->scl_rate.i2c; bus 1231 drivers/i3c/master/i3c-master-cdns.c bus->scl_rate.i2c = sysclk_rate / ((pres + 1) * 5); bus 1237 drivers/i3c/master/i3c-master-cdns.c pres_step = 1000000000 / (bus->scl_rate.i3c * 4); bus 231 drivers/ide/alim15x3.c struct pci_dev *north = pci_get_slot(dev->bus, PCI_DEVFN(0,0)); bus 95 drivers/ide/cy82c693.c dev = pci_get_slot(dev->bus, dev->devfn+1); bus 187 drivers/ide/cy82c693.c dev2 = pci_get_slot(dev->bus, dev->devfn + 1); bus 965 drivers/ide/hpt366.c struct pci_dev *dev1 = pci_get_slot(dev->bus, bus 1458 drivers/ide/hpt366.c dev2 = pci_get_slot(dev->bus, dev->devfn + 1); bus 126 drivers/ide/ide-acpi.c unsigned int bus, devnum, func; bus 133 drivers/ide/ide-acpi.c bus = pdev->bus->number; bus 139 drivers/ide/ide-acpi.c DEBPRINT("ENTER: pci %02x:%02x.%01x\n", bus, devnum, func); bus 1597 drivers/ide/ide-cd.c .bus = &ide_bus_type, bus 144 drivers/ide/ide-gd.c drive->gendev.bus->suspend(&drive->gendev, PMSG_SUSPEND); bus 170 drivers/ide/ide-gd.c .bus = &ide_bus_type, bus 1045 drivers/ide/ide-probe.c dev->bus = &ide_bus_type; bus 1871 drivers/ide/ide-tape.c .bus = &ide_bus_type, bus 424 drivers/ide/pdc202xx_new.c dev2 = pci_get_slot(dev->bus, PCI_DEVFN(PCI_SLOT(dev->devfn) + 1, bus 480 drivers/ide/pdc202xx_new.c struct pci_dev *bridge = dev->bus->self; bus 312 drivers/ide/pdc202xx_old.c struct pci_dev *bridge = dev->bus->self; bus 1194 drivers/ide/pmac.c hw.dev = &mdev->bus->pdev->dev; bus 435 drivers/ide/sis5513.c lpc_bridge = pci_get_slot(dev->bus, 0x10); /* Bus 0, Dev 2, Fn 0 */ bus 243 drivers/ide/sl82c105.c bridge = pci_get_domain_bus_and_slot(pci_domain_nr(dev->bus), bus 244 drivers/ide/sl82c105.c dev->bus->number, bus 183 drivers/iio/dummy/iio_dummy_evgen.c .bus = &iio_bus_type, bus 1442 drivers/iio/industrialio-core.c dev->dev.bus = &iio_bus_type; bus 529 drivers/iio/industrialio-trigger.c trig->dev.bus = &iio_bus_type; bus 87 drivers/iio/trigger/iio-trig-sysfs.c .bus = &iio_bus_type, bus 200 drivers/infiniband/hw/hfi1/affinity.c node = pcibus_to_node(dev->bus); bus 634 drivers/infiniband/hw/hfi1/affinity.c int node = pcibus_to_node(dd->pcidev->bus); bus 25 drivers/infiniband/hw/hfi1/aspm.c struct pci_dev *parent = dd->pcidev->bus->self; bus 59 drivers/infiniband/hw/hfi1/aspm.c struct pci_dev *parent = dd->pcidev->bus->self; bus 79 drivers/infiniband/hw/hfi1/aspm.c struct pci_dev *parent = dd->pcidev->bus->self; bus 14835 drivers/infiniband/hw/hfi1/chip.c struct pci_dev *parent = pdev->bus->self; bus 161 drivers/infiniband/hw/hfi1/efivar.c pci_domain_nr(dd->pcidev->bus), bus 162 drivers/infiniband/hw/hfi1/efivar.c dd->pcidev->bus->number, bus 295 drivers/infiniband/hw/hfi1/pcie.c struct pci_dev *parent = dd->pcidev->bus->self; bus 323 drivers/infiniband/hw/hfi1/pcie.c (dd->pcidev->bus->max_bus_speed == PCIE_SPEED_2_5GT || bus 324 drivers/infiniband/hw/hfi1/pcie.c dd->pcidev->bus->max_bus_speed == PCIE_SPEED_5_0GT)) { bus 481 drivers/infiniband/hw/hfi1/pcie.c parent = dd->pcidev->bus->self; bus 490 drivers/infiniband/hw/hfi1/pcie.c if (!pci_is_root_bus(parent->bus)) { bus 851 drivers/infiniband/hw/hfi1/pcie.c if (!dev->bus->self) { bus 857 drivers/infiniband/hw/hfi1/pcie.c list_for_each_entry(pdev, &dev->bus->devices, bus_list) bus 870 drivers/infiniband/hw/hfi1/pcie.c return pci_bridge_secondary_bus_reset(dev->bus->self); bus 985 drivers/infiniband/hw/hfi1/pcie.c struct pci_dev *parent = dd->pcidev->bus->self; bus 68 drivers/infiniband/hw/hfi1/qsfp.c struct hfi1_i2c_bus *bus = (struct hfi1_i2c_bus *)data; bus 69 drivers/infiniband/hw/hfi1/qsfp.c struct hfi1_devdata *dd = bus->controlling_dd; bus 73 drivers/infiniband/hw/hfi1/qsfp.c target_oe = i2c_oe_csr(bus->num); bus 92 drivers/infiniband/hw/hfi1/qsfp.c struct hfi1_i2c_bus *bus = (struct hfi1_i2c_bus *)data; bus 93 drivers/infiniband/hw/hfi1/qsfp.c struct hfi1_devdata *dd = bus->controlling_dd; bus 97 drivers/infiniband/hw/hfi1/qsfp.c target_oe = i2c_oe_csr(bus->num); bus 116 drivers/infiniband/hw/hfi1/qsfp.c struct hfi1_i2c_bus *bus = (struct hfi1_i2c_bus *)data; bus 123 drivers/infiniband/hw/hfi1/qsfp.c target_in = i2c_in_csr(bus->num); bus 124 drivers/infiniband/hw/hfi1/qsfp.c reg = read_csr(bus->controlling_dd, target_in); bus 130 drivers/infiniband/hw/hfi1/qsfp.c struct hfi1_i2c_bus *bus = (struct hfi1_i2c_bus *)data; bus 137 drivers/infiniband/hw/hfi1/qsfp.c target_in = i2c_in_csr(bus->num); bus 138 drivers/infiniband/hw/hfi1/qsfp.c reg = read_csr(bus->controlling_dd, target_in); bus 149 drivers/infiniband/hw/hfi1/qsfp.c struct hfi1_i2c_bus *bus; bus 152 drivers/infiniband/hw/hfi1/qsfp.c bus = kzalloc(sizeof(*bus), GFP_KERNEL); bus 153 drivers/infiniband/hw/hfi1/qsfp.c if (!bus) bus 156 drivers/infiniband/hw/hfi1/qsfp.c bus->controlling_dd = dd; bus 157 drivers/infiniband/hw/hfi1/qsfp.c bus->num = num; /* our bus number */ bus 159 drivers/infiniband/hw/hfi1/qsfp.c bus->algo.setsda = hfi1_setsda; bus 160 drivers/infiniband/hw/hfi1/qsfp.c bus->algo.setscl = hfi1_setscl; bus 161 drivers/infiniband/hw/hfi1/qsfp.c bus->algo.getsda = hfi1_getsda; bus 162 drivers/infiniband/hw/hfi1/qsfp.c bus->algo.getscl = hfi1_getscl; bus 163 drivers/infiniband/hw/hfi1/qsfp.c bus->algo.udelay = 5; bus 164 drivers/infiniband/hw/hfi1/qsfp.c bus->algo.timeout = usecs_to_jiffies(100000); bus 165 drivers/infiniband/hw/hfi1/qsfp.c bus->algo.data = bus; bus 167 drivers/infiniband/hw/hfi1/qsfp.c bus->adapter.owner = THIS_MODULE; bus 168 drivers/infiniband/hw/hfi1/qsfp.c bus->adapter.algo_data = &bus->algo; bus 169 drivers/infiniband/hw/hfi1/qsfp.c bus->adapter.dev.parent = &dd->pcidev->dev; bus 170 drivers/infiniband/hw/hfi1/qsfp.c snprintf(bus->adapter.name, sizeof(bus->adapter.name), bus 173 drivers/infiniband/hw/hfi1/qsfp.c ret = i2c_bit_add_bus(&bus->adapter); bus 177 drivers/infiniband/hw/hfi1/qsfp.c kfree(bus); bus 181 drivers/infiniband/hw/hfi1/qsfp.c return bus; bus 197 drivers/infiniband/hw/hfi1/qsfp.c static void clean_i2c_bus(struct hfi1_i2c_bus *bus) bus 199 drivers/infiniband/hw/hfi1/qsfp.c if (bus) { bus 200 drivers/infiniband/hw/hfi1/qsfp.c i2c_del_adapter(&bus->adapter); bus 201 drivers/infiniband/hw/hfi1/qsfp.c kfree(bus); bus 263 drivers/infiniband/hw/hfi1/qsfp.c static int i2c_bus_read(struct hfi1_devdata *dd, struct hfi1_i2c_bus *bus, bus 301 drivers/infiniband/hw/hfi1/qsfp.c bus->controlling_dd = dd; bus 302 drivers/infiniband/hw/hfi1/qsfp.c ret = i2c_transfer(&bus->adapter, msgs, num_msgs); bus 305 drivers/infiniband/hw/hfi1/qsfp.c __func__, bus->num, slave_addr, offset, len, ret); bus 320 drivers/infiniband/hw/hfi1/qsfp.c struct hfi1_i2c_bus *bus; bus 324 drivers/infiniband/hw/hfi1/qsfp.c bus = target ? dd->asic_data->i2c_bus1 : dd->asic_data->i2c_bus0; bus 327 drivers/infiniband/hw/hfi1/qsfp.c return i2c_bus_write(dd, bus, slave_addr, offset, offset_size, bp, len); bus 359 drivers/infiniband/hw/hfi1/qsfp.c struct hfi1_i2c_bus *bus; bus 363 drivers/infiniband/hw/hfi1/qsfp.c bus = target ? dd->asic_data->i2c_bus1 : dd->asic_data->i2c_bus0; bus 366 drivers/infiniband/hw/hfi1/qsfp.c return i2c_bus_read(dd, bus, slave_addr, offset, offset_size, bp, len); bus 76 drivers/infiniband/hw/mthca/mthca_reset.c bridge->subordinate == mdev->pdev->bus) { bus 1146 drivers/infiniband/hw/qib/qib_file_ops.c const struct cpumask *local_mask = cpumask_of_pcibus(dd->pcidev->bus); bus 1547 drivers/infiniband/hw/qib/qib_file_ops.c if (pcibus_to_node(dd->pcidev->bus) < 0) { bus 1552 drivers/infiniband/hw/qib/qib_file_ops.c pcibus_to_node(dd->pcidev->bus)) { bus 3428 drivers/infiniband/hw/qib/qib_iba7322.c local_mask = cpumask_of_pcibus(dd->pcidev->bus); bus 124 drivers/infiniband/hw/qib/qib_init.c int local_node_id = pcibus_to_node(dd->pcidev->bus); bus 408 drivers/infiniband/hw/qib/qib_pcie.c parent = dd->pcidev->bus->self; bus 409 drivers/infiniband/hw/qib/qib_pcie.c if (parent->bus->parent) { bus 472 drivers/infiniband/hw/qib/qib_pcie.c parent = dd->pcidev->bus->self; bus 473 drivers/infiniband/hw/qib/qib_pcie.c if (!pci_is_root_bus(parent->bus)) { bus 89 drivers/infiniband/hw/usnic/usnic_ib_sysfs.c busname = us_ibdev->pdev->bus->name; bus 486 drivers/infiniband/hw/usnic/usnic_uiom.c if (!iommu_capable(dev->bus, IOMMU_CAP_CACHE_COHERENCY)) { bus 720 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c pdev_net = pci_get_slot(dev->pdev->bus, bus 967 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c pdev_net = pci_get_slot(pdev->bus, PCI_DEVFN(PCI_SLOT(pdev->devfn), 0)); bus 534 drivers/input/gameport/gameport.c gameport->dev.bus = &gameport_bus; bus 724 drivers/input/gameport/gameport.c drv->driver.bus = &gameport_bus; bus 1052 drivers/input/mouse/elantech.c unsigned int *bus) bus 1061 drivers/input/mouse/elantech.c *bus = param[2]; bus 1663 drivers/input/mouse/elantech.c &info->bus)) { bus 1875 drivers/input/mouse/elantech.c switch (info->bus) { bus 1891 drivers/input/mouse/elantech.c info->bus); bus 153 drivers/input/mouse/elantech.h unsigned int bus; bus 91 drivers/input/rmi4/rmi_bus.c rmi_dev->dev.bus = &rmi_bus_type; bus 250 drivers/input/rmi4/rmi_bus.c fn->dev.bus = &rmi_bus_type; bus 303 drivers/input/rmi4/rmi_bus.c driver->bus = &rmi_bus_type; bus 1247 drivers/input/rmi4/rmi_driver.c .bus = &rmi_bus_type, bus 511 drivers/input/serio/serio.c serio->dev.bus = &serio_bus; bus 819 drivers/input/serio/serio.c drv->driver.bus = &serio_bus; bus 92 drivers/input/tablet/acecad.c udev->bus->bus_name, bus 87 drivers/input/touchscreen/wm97xx-core.c return wm->ac97->bus->ops->read(wm->ac97, reg); bus 108 drivers/input/touchscreen/wm97xx-core.c wm->ac97->bus->ops->write(wm->ac97, reg, val); bus 817 drivers/input/touchscreen/wm97xx-core.c wm->ac97->bus->ops->write(wm->ac97, AC97_WM97XX_DIGITISER2, reg); bus 895 drivers/input/touchscreen/wm97xx-core.c .bus = &ac97_bus_type, bus 275 drivers/iommu/amd_iommu.c PCI_BUS_NUM(ivrs_alias) == pdev->bus->number) bus 1807 drivers/iommu/amd_iommu_init.c pci_get_domain_bus_and_slot(0, iommu->dev->bus->number, bus 2977 drivers/iommu/amd_iommu_init.c unsigned int bus, dev, fn; bus 2981 drivers/iommu/amd_iommu_init.c ret = sscanf(str, "[%d]=%x:%x.%x", &id, &bus, &dev, &fn); bus 2994 drivers/iommu/amd_iommu_init.c devid = ((bus & 0xff) << 8) | ((dev & 0x1f) << 3) | (fn & 0x7); bus 3007 drivers/iommu/amd_iommu_init.c unsigned int bus, dev, fn; bus 3011 drivers/iommu/amd_iommu_init.c ret = sscanf(str, "[%d]=%x:%x.%x", &id, &bus, &dev, &fn); bus 3024 drivers/iommu/amd_iommu_init.c devid = ((bus & 0xff) << 8) | ((dev & 0x1f) << 3) | (fn & 0x7); bus 3037 drivers/iommu/amd_iommu_init.c u32 bus, dev, fn; bus 3042 drivers/iommu/amd_iommu_init.c ret = sscanf(str, "[%x:%x.%x]=%s", &bus, &dev, &fn, acpiid); bus 3061 drivers/iommu/amd_iommu_init.c ((bus & 0xff) << 8) | ((dev & 0x1f) << 3) | (fn & 0x7); bus 92 drivers/iommu/amd_iommu_v2.c devid = pdev->bus->number; bus 136 drivers/iommu/arm-smmu.c struct pci_bus *bus = to_pci_dev(dev)->bus; bus 138 drivers/iommu/arm-smmu.c while (!pci_is_root_bus(bus)) bus 139 drivers/iommu/arm-smmu.c bus = bus->parent; bus 140 drivers/iommu/arm-smmu.c return of_node_get(bus->bridge->parent->of_node); bus 197 drivers/iommu/dma-iommu.c struct pci_host_bridge *bridge = pci_find_host_bridge(dev->bus); bus 136 drivers/iommu/dmar.c if (pci_domain_nr(dev->bus) > U16_MAX) bus 141 drivers/iommu/dmar.c for (tmp = dev; tmp; tmp = tmp->bus->self) bus 160 drivers/iommu/dmar.c info->seg = pci_domain_nr(dev->bus); bus 163 drivers/iommu/dmar.c for (tmp = dev; tmp; tmp = tmp->bus->self) { bus 165 drivers/iommu/dmar.c info->path[level].bus = tmp->bus->number; bus 168 drivers/iommu/dmar.c if (pci_is_root_bus(tmp->bus)) bus 169 drivers/iommu/dmar.c info->bus = tmp->bus->number; bus 182 drivers/iommu/dmar.c static bool dmar_match_pci_path(struct dmar_pci_notify_info *info, int bus, bus 187 drivers/iommu/dmar.c if (info->bus != bus) bus 206 drivers/iommu/dmar.c if (bus == info->path[i].bus && bus 210 drivers/iommu/dmar.c bus, path[0].device, path[0].function); bus 239 drivers/iommu/dmar.c if (!dmar_match_pci_path(info, scope->bus, path, level)) bus 263 drivers/iommu/dmar.c devices[i].bus = info->dev->bus->number; bus 665 drivers/iommu/dmar.c dev = dev->bus->self; bus 686 drivers/iommu/dmar.c drhd->segment == pci_domain_nr(dev->bus)) bus 726 drivers/iommu/dmar.c scope->bus, path->device, path->function); bus 729 drivers/iommu/dmar.c dmaru->devices[i].bus = scope->bus; bus 663 drivers/iommu/fsl_pamu_domain.c pci_ctl = pci_bus_to_host(pdev->bus); bus 699 drivers/iommu/fsl_pamu_domain.c pci_ctl = pci_bus_to_host(pdev->bus); bus 938 drivers/iommu/fsl_pamu_domain.c struct pci_bus *bus = pdev->bus; bus 944 drivers/iommu/fsl_pamu_domain.c while (bus) { bus 945 drivers/iommu/fsl_pamu_domain.c list_for_each_entry(tmp, &bus->devices, bus_list) { bus 953 drivers/iommu/fsl_pamu_domain.c bus = bus->parent; bus 965 drivers/iommu/fsl_pamu_domain.c pci_ctl = pci_bus_to_host(pdev->bus); bus 20 drivers/iommu/intel-iommu-debugfs.c u16 bus; bus 160 drivers/iommu/intel-iommu-debugfs.c tbl_wlk->bus, PCI_SLOT(tbl_wlk->devfn), bus 213 drivers/iommu/intel-iommu-debugfs.c static void ctx_tbl_walk(struct seq_file *m, struct intel_iommu *iommu, u16 bus) bus 235 drivers/iommu/intel-iommu-debugfs.c context = iommu_context_addr(iommu, bus, devfn, 0); bus 242 drivers/iommu/intel-iommu-debugfs.c tbl_wlk.bus = bus; bus 244 drivers/iommu/intel-iommu-debugfs.c tbl_wlk.rt_entry = &iommu->root_entry[bus]; bus 262 drivers/iommu/intel-iommu-debugfs.c u16 bus; bus 274 drivers/iommu/intel-iommu-debugfs.c for (bus = 0; bus < 256; bus++) bus 275 drivers/iommu/intel-iommu-debugfs.c ctx_tbl_walk(m, iommu, bus); bus 696 drivers/iommu/intel-iommu.c struct context_entry *iommu_context_addr(struct intel_iommu *iommu, u8 bus, bus 699 drivers/iommu/intel-iommu.c struct root_entry *root = &iommu->root_entry[bus]; bus 755 drivers/iommu/intel-iommu.c pbridge->subordinate->number <= pdev->bus->number && bus 756 drivers/iommu/intel-iommu.c pbridge->subordinate->busn_res.end >= pdev->bus->number) bus 762 drivers/iommu/intel-iommu.c static struct intel_iommu *device_to_iommu(struct device *dev, u8 *bus, u8 *devfn) bus 781 drivers/iommu/intel-iommu.c if (is_vmd(pdev->bus)) bus 789 drivers/iommu/intel-iommu.c segment = pci_domain_nr(pdev->bus); bus 808 drivers/iommu/intel-iommu.c *bus = drhd->devices[i].bus; bus 819 drivers/iommu/intel-iommu.c *bus = pdev->bus->number; bus 838 drivers/iommu/intel-iommu.c static int device_context_mapped(struct intel_iommu *iommu, u8 bus, u8 devfn) bus 845 drivers/iommu/intel-iommu.c context = iommu_context_addr(iommu, bus, devfn, 0); bus 1344 drivers/iommu/intel-iommu.c u8 bus, u8 devfn) bus 1354 drivers/iommu/intel-iommu.c if (info->iommu == iommu && info->bus == bus && bus 1478 drivers/iommu/intel-iommu.c sid = info->bus << 8 | info->devfn; bus 1976 drivers/iommu/intel-iommu.c u8 bus, u8 devfn) bus 1991 drivers/iommu/intel-iommu.c bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); bus 1999 drivers/iommu/intel-iommu.c context = iommu_context_addr(iommu, bus, devfn, 1); bus 2021 drivers/iommu/intel-iommu.c (((u16)bus) << 8) | devfn, bus 2048 drivers/iommu/intel-iommu.c info = iommu_support_dev_iotlb(domain, iommu, bus, devfn); bus 2071 drivers/iommu/intel-iommu.c info = iommu_support_dev_iotlb(domain, iommu, bus, devfn); bus 2103 drivers/iommu/intel-iommu.c (((u16)bus) << 8) | devfn, bus 2143 drivers/iommu/intel-iommu.c u8 bus, devfn; bus 2145 drivers/iommu/intel-iommu.c iommu = device_to_iommu(dev, &bus, &devfn); bus 2153 drivers/iommu/intel-iommu.c bus, devfn); bus 2174 drivers/iommu/intel-iommu.c u8 bus, devfn; bus 2176 drivers/iommu/intel-iommu.c iommu = device_to_iommu(dev, &bus, &devfn); bus 2181 drivers/iommu/intel-iommu.c return device_context_mapped(iommu, bus, devfn); bus 2372 drivers/iommu/intel-iommu.c static void domain_context_clear_one(struct intel_iommu *iommu, u8 bus, u8 devfn) bus 2382 drivers/iommu/intel-iommu.c context = iommu_context_addr(iommu, bus, devfn, 0); bus 2393 drivers/iommu/intel-iommu.c (((u16)bus) << 8) | devfn, bus 2449 drivers/iommu/intel-iommu.c dmar_search_domain_by_dev_info(int segment, int bus, int devfn) bus 2454 drivers/iommu/intel-iommu.c if (info->iommu->segment == segment && info->bus == bus && bus 2462 drivers/iommu/intel-iommu.c int bus, int devfn, bus 2475 drivers/iommu/intel-iommu.c info->bus = bus; bus 2516 drivers/iommu/intel-iommu.c info2 = dmar_search_domain_by_dev_info(iommu->segment, bus, devfn); bus 2593 drivers/iommu/intel-iommu.c u8 bus, devfn; bus 2595 drivers/iommu/intel-iommu.c iommu = device_to_iommu(dev, &bus, &devfn); bus 2605 drivers/iommu/intel-iommu.c info = dmar_search_domain_by_dev_info(pci_domain_nr(pdev->bus), bus 2638 drivers/iommu/intel-iommu.c u8 bus, devfn; bus 2640 drivers/iommu/intel-iommu.c iommu = device_to_iommu(dev, &bus, &devfn); bus 2644 drivers/iommu/intel-iommu.c req_id = ((u16)bus << 8) | devfn; bus 2661 drivers/iommu/intel-iommu.c tmp = dmar_insert_one_dev_info(iommu, bus, devfn, dev, domain); bus 2802 drivers/iommu/intel-iommu.c u8 bus, devfn; bus 2804 drivers/iommu/intel-iommu.c iommu = device_to_iommu(dev, &bus, &devfn); bus 2808 drivers/iommu/intel-iommu.c ndomain = dmar_insert_one_dev_info(iommu, bus, devfn, dev, domain); bus 2943 drivers/iommu/intel-iommu.c if (!pci_is_root_bus(pdev->bus)) bus 2993 drivers/iommu/intel-iommu.c int bus, bool ext) bus 3001 drivers/iommu/intel-iommu.c tbl_idx = ext ? bus * 2 : bus; bus 3100 drivers/iommu/intel-iommu.c int bus, ret; bus 3131 drivers/iommu/intel-iommu.c for (bus = 0; bus < 256; bus++) { bus 3132 drivers/iommu/intel-iommu.c ret = copy_context_table(iommu, &old_rt[bus], bus 3133 drivers/iommu/intel-iommu.c ctxt_tbls, bus, ext); bus 3136 drivers/iommu/intel-iommu.c iommu->name, bus); bus 3144 drivers/iommu/intel-iommu.c for (bus = 0; bus < 256; bus++) { bus 3145 drivers/iommu/intel-iommu.c int idx = ext ? bus * 2 : bus; bus 3150 drivers/iommu/intel-iommu.c iommu->root_entry[bus].lo = val; bus 3157 drivers/iommu/intel-iommu.c iommu->root_entry[bus].hi = val; bus 4111 drivers/iommu/intel-iommu.c rc = pci_bus_read_config_dword(pdev->bus, PCI_DEVFN(0, 0), 0xb0, &vtbar); bus 4557 drivers/iommu/intel-iommu.c struct pci_bus *bus; bus 4564 drivers/iommu/intel-iommu.c for (bus = dev->bus; bus; bus = bus->parent) { bus 4565 drivers/iommu/intel-iommu.c bridge = bus->self; bus 4581 drivers/iommu/intel-iommu.c if (atsr->segment != pci_domain_nr(dev->bus)) bus 4885 drivers/iommu/intel-iommu.c if (dev->bus != &acpi_bus_type) bus 4898 drivers/iommu/intel-iommu.c pn->dev->bus->iommu_ops = &intel_iommu_ops; bus 5260 drivers/iommu/intel-iommu.c u8 bus, devfn; bus 5264 drivers/iommu/intel-iommu.c iommu = device_to_iommu(dev, &bus, &devfn); bus 5345 drivers/iommu/intel-iommu.c u8 bus, devfn; bus 5347 drivers/iommu/intel-iommu.c iommu = device_to_iommu(dev, &bus, &devfn); bus 5582 drivers/iommu/intel-iommu.c u8 bus, devfn; bus 5585 drivers/iommu/intel-iommu.c iommu = device_to_iommu(dev, &bus, &devfn); bus 5650 drivers/iommu/intel-iommu.c u8 bus, devfn; bus 5652 drivers/iommu/intel-iommu.c iommu = device_to_iommu(dev, &bus, &devfn); bus 5753 drivers/iommu/intel-iommu.c context = iommu_context_addr(iommu, info->bus, info->devfn, 0); bus 5765 drivers/iommu/intel-iommu.c PCI_DEVID(info->bus, info->devfn), bus 5807 drivers/iommu/intel-iommu.c u8 bus, devfn; bus 5815 drivers/iommu/intel-iommu.c iommu = device_to_iommu(dev, &bus, &devfn); bus 5830 drivers/iommu/intel-iommu.c u8 bus, devfn; bus 5833 drivers/iommu/intel-iommu.c iommu = device_to_iommu(dev, &bus, &devfn); bus 88 drivers/iommu/intel-pasid.c int bus; bus 97 drivers/iommu/intel-pasid.c info->bus == data->bus && bus 111 drivers/iommu/intel-pasid.c data->segment = pci_domain_nr(pdev->bus); bus 112 drivers/iommu/intel-pasid.c data->bus = PCI_BUS_NUM(alias); bus 437 drivers/iommu/intel-pasid.c sid = info->bus << 8 | info->devfn; bus 292 drivers/iommu/intel-svm.c sdev->sid = PCI_DEVID(info->bus, info->devfn); bus 34 drivers/iommu/intel_irq_remapping.c unsigned int bus; /* PCI bus number */ bus 41 drivers/iommu/intel_irq_remapping.c unsigned int bus; bus 320 drivers/iommu/intel_irq_remapping.c sid = (ir_ioapic[i].bus << 8) | ir_ioapic[i].devfn; bus 347 drivers/iommu/intel_irq_remapping.c sid = (ir_hpet[i].bus << 8) | ir_hpet[i].devfn; bus 418 drivers/iommu/intel_irq_remapping.c if (PCI_BUS_NUM(data.alias) != data.pdev->bus->number) bus 420 drivers/iommu/intel_irq_remapping.c dev->bus->number); bus 422 drivers/iommu/intel_irq_remapping.c set_irte_verify_bus(irte, dev->bus->number, dev->bus->number); bus 423 drivers/iommu/intel_irq_remapping.c else if (data.pdev->bus->number != dev->bus->number) bus 839 drivers/iommu/intel_irq_remapping.c u8 bus; bus 842 drivers/iommu/intel_irq_remapping.c bus = scope->bus; bus 852 drivers/iommu/intel_irq_remapping.c bus = read_pci_config_byte(bus, path->device, path->function, bus 871 drivers/iommu/intel_irq_remapping.c ir_hpet[free].bus = bus; bus 884 drivers/iommu/intel_irq_remapping.c u8 bus; bus 887 drivers/iommu/intel_irq_remapping.c bus = scope->bus; bus 897 drivers/iommu/intel_irq_remapping.c bus = read_pci_config_byte(bus, path->device, path->function, bus 914 drivers/iommu/intel_irq_remapping.c ir_ioapic[free].bus = bus; bus 176 drivers/iommu/iommu.c const struct iommu_ops *ops = dev->bus->iommu_ops; bus 195 drivers/iommu/iommu.c const struct iommu_ops *ops = dev->bus->iommu_ops; bus 203 drivers/iommu/iommu.c static struct iommu_domain *__iommu_domain_alloc(struct bus_type *bus, bus 1176 drivers/iommu/iommu.c if (tmp == pdev || tmp->bus != pdev->bus || bus 1214 drivers/iommu/iommu.c if (tmp == pdev || tmp->bus != pdev->bus) bus 1272 drivers/iommu/iommu.c struct pci_bus *bus; bus 1296 drivers/iommu/iommu.c for (bus = pdev->bus; !pci_is_root_bus(bus); bus = bus->parent) { bus 1297 drivers/iommu/iommu.c if (!bus->self) bus 1300 drivers/iommu/iommu.c if (pci_acs_path_enabled(bus->self, NULL, REQ_ACS_FLAGS)) bus 1303 drivers/iommu/iommu.c pdev = bus->self; bus 1355 drivers/iommu/iommu.c const struct iommu_ops *ops = dev->bus->iommu_ops; bus 1380 drivers/iommu/iommu.c dom = __iommu_domain_alloc(dev->bus, iommu_def_domain_type); bus 1382 drivers/iommu/iommu.c dom = __iommu_domain_alloc(dev->bus, IOMMU_DOMAIN_DMA); bus 1490 drivers/iommu/iommu.c static int iommu_bus_init(struct bus_type *bus, const struct iommu_ops *ops) bus 1501 drivers/iommu/iommu.c err = bus_register_notifier(bus, nb); bus 1505 drivers/iommu/iommu.c err = bus_for_each_dev(bus, NULL, NULL, add_iommu_group); bus 1514 drivers/iommu/iommu.c bus_for_each_dev(bus, NULL, NULL, remove_iommu_group); bus 1515 drivers/iommu/iommu.c bus_unregister_notifier(bus, nb); bus 1536 drivers/iommu/iommu.c int bus_set_iommu(struct bus_type *bus, const struct iommu_ops *ops) bus 1540 drivers/iommu/iommu.c if (bus->iommu_ops != NULL) bus 1543 drivers/iommu/iommu.c bus->iommu_ops = ops; bus 1546 drivers/iommu/iommu.c err = iommu_bus_init(bus, ops); bus 1548 drivers/iommu/iommu.c bus->iommu_ops = NULL; bus 1554 drivers/iommu/iommu.c bool iommu_present(struct bus_type *bus) bus 1556 drivers/iommu/iommu.c return bus->iommu_ops != NULL; bus 1560 drivers/iommu/iommu.c bool iommu_capable(struct bus_type *bus, enum iommu_cap cap) bus 1562 drivers/iommu/iommu.c if (!bus->iommu_ops || !bus->iommu_ops->capable) bus 1565 drivers/iommu/iommu.c return bus->iommu_ops->capable(cap); bus 1592 drivers/iommu/iommu.c static struct iommu_domain *__iommu_domain_alloc(struct bus_type *bus, bus 1597 drivers/iommu/iommu.c if (bus == NULL || bus->iommu_ops == NULL) bus 1600 drivers/iommu/iommu.c domain = bus->iommu_ops->domain_alloc(type); bus 1604 drivers/iommu/iommu.c domain->ops = bus->iommu_ops; bus 1607 drivers/iommu/iommu.c domain->pgsize_bitmap = bus->iommu_ops->pgsize_bitmap; bus 1612 drivers/iommu/iommu.c struct iommu_domain *iommu_domain_alloc(struct bus_type *bus) bus 1614 drivers/iommu/iommu.c return __iommu_domain_alloc(bus, IOMMU_DOMAIN_UNMANAGED); bus 2158 drivers/iommu/iommu.c const struct iommu_ops *ops = dev->bus->iommu_ops; bus 2166 drivers/iommu/iommu.c const struct iommu_ops *ops = dev->bus->iommu_ops; bus 2214 drivers/iommu/iommu.c domain = __iommu_domain_alloc(dev->bus, type); bus 2355 drivers/iommu/iommu.c const struct iommu_ops *ops = dev->bus->iommu_ops; bus 2366 drivers/iommu/iommu.c const struct iommu_ops *ops = dev->bus->iommu_ops; bus 2382 drivers/iommu/iommu.c const struct iommu_ops *ops = dev->bus->iommu_ops; bus 2393 drivers/iommu/iommu.c const struct iommu_ops *ops = dev->bus->iommu_ops; bus 2466 drivers/iommu/iommu.c const struct iommu_ops *ops = dev->bus->iommu_ops; bus 2511 drivers/iommu/iommu.c const struct iommu_ops *ops = dev->bus->iommu_ops; bus 2541 drivers/iommu/iommu.c const struct iommu_ops *ops = handle->dev->bus->iommu_ops; bus 215 drivers/iommu/of_iommu.c if (!err && dev->bus && !device_iommu_mapped(dev)) bus 54 drivers/ipack/carriers/tpci200.c tpci200 = dev_get_drvdata(dev->bus->parent); bus 64 drivers/ipack/carriers/tpci200.c dev->bus->bus_nr, dev->slot, TPCI200_NB_SLOT-1); bus 211 drivers/ipack/carriers/tpci200.c dev->bus->bus_nr, bus 221 drivers/ipack/carriers/tpci200.c dev->bus->bus_nr, dev->slot); bus 260 drivers/ipack/carriers/tpci200.c tpci200->info->pdev->bus->number, bus 272 drivers/ipack/carriers/tpci200.c tpci200->info->pdev->bus->number, bus 283 drivers/ipack/carriers/tpci200.c tpci200->info->pdev->bus->number, bus 294 drivers/ipack/carriers/tpci200.c tpci200->info->pdev->bus->number, bus 307 drivers/ipack/carriers/tpci200.c tpci200->info->pdev->bus->number, bus 347 drivers/ipack/carriers/tpci200.c tpci200->info->pdev->bus->number, bus 495 drivers/ipack/carriers/tpci200.c dev->bus = tpci200->info->ipack_bus; bus 411 drivers/ipack/devices/ipoctal.c ipoctal->dev->bus->ops->request_irq(ipoctal->dev, bus 677 drivers/ipack/devices/ipoctal.c res = ipoctal_inst_slot(ipoctal, dev->bus->bus_nr, dev->slot); bus 693 drivers/ipack/devices/ipoctal.c ipoctal->dev->bus->ops->free_irq(ipoctal->dev); bus 210 drivers/ipack/ipack.c struct ipack_bus_device *bus; bus 212 drivers/ipack/ipack.c bus = kzalloc(sizeof(*bus), GFP_KERNEL); bus 213 drivers/ipack/ipack.c if (!bus) bus 218 drivers/ipack/ipack.c kfree(bus); bus 222 drivers/ipack/ipack.c bus->bus_nr = bus_nr; bus 223 drivers/ipack/ipack.c bus->parent = parent; bus 224 drivers/ipack/ipack.c bus->slots = slots; bus 225 drivers/ipack/ipack.c bus->ops = ops; bus 226 drivers/ipack/ipack.c bus->owner = owner; bus 227 drivers/ipack/ipack.c return bus; bus 234 drivers/ipack/ipack.c struct ipack_bus_device *bus = data; bus 236 drivers/ipack/ipack.c if (idev->bus == bus) bus 242 drivers/ipack/ipack.c int ipack_bus_unregister(struct ipack_bus_device *bus) bus 244 drivers/ipack/ipack.c bus_for_each_dev(&ipack_bus_type, NULL, bus, bus 246 drivers/ipack/ipack.c ida_simple_remove(&ipack_ida, bus->bus_nr); bus 247 drivers/ipack/ipack.c kfree(bus); bus 257 drivers/ipack/ipack.c edrv->driver.bus = &ipack_bus_type; bus 432 drivers/ipack/ipack.c dev->dev.bus = &ipack_bus_type; bus 434 drivers/ipack/ipack.c dev->dev.parent = dev->bus->parent; bus 436 drivers/ipack/ipack.c "ipack-dev.%u.%u", dev->bus->bus_nr, dev->slot); bus 439 drivers/ipack/ipack.c if (dev->bus->ops->set_clockrate(dev, 8)) bus 441 drivers/ipack/ipack.c if (dev->bus->ops->reset_timeout(dev)) bus 452 drivers/ipack/ipack.c ret = dev->bus->ops->set_clockrate(dev, 32); bus 250 drivers/macintosh/macio_asic.c if (dev->bus->chip->type != macio_gatwick) bus 370 drivers/macintosh/macio_asic.c dev->bus = &chip->lbus; bus 377 drivers/macintosh/macio_asic.c dev->ofdev.dev.bus = &macio_bus_type; bus 526 drivers/macintosh/macio_asic.c drv->driver.bus = &macio_bus_type; bus 452 drivers/macintosh/mediabay.c if (dev->bus != &macio_bus_type) bus 97 drivers/macintosh/rack-meter.c struct macio_chip *macio = rm->mdev->bus->chip; bus 880 drivers/macintosh/smu.c cmd->info.bus, cmd->info.caddr, bus 1005 drivers/macintosh/windfarm_pm121.c .bus = &platform_bus_type, bus 108 drivers/mcb/mcb-core.c struct mcb_bus *bus = to_mcb_bus(dev); bus 110 drivers/mcb/mcb-core.c return scnprintf(buf, PAGE_SIZE, "%d\n", bus->revision); bus 117 drivers/mcb/mcb-core.c struct mcb_bus *bus = to_mcb_bus(dev); bus 119 drivers/mcb/mcb-core.c return scnprintf(buf, PAGE_SIZE, "%c\n", bus->model); bus 126 drivers/mcb/mcb-core.c struct mcb_bus *bus = to_mcb_bus(dev); bus 128 drivers/mcb/mcb-core.c return scnprintf(buf, PAGE_SIZE, "%d\n", bus->minor); bus 135 drivers/mcb/mcb-core.c struct mcb_bus *bus = to_mcb_bus(dev); bus 137 drivers/mcb/mcb-core.c return scnprintf(buf, PAGE_SIZE, "%s\n", bus->name); bus 189 drivers/mcb/mcb-core.c drv->driver.bus = &mcb_bus_type; bus 212 drivers/mcb/mcb-core.c mcb_bus_put(mdev->bus); bus 223 drivers/mcb/mcb-core.c int mcb_device_register(struct mcb_bus *bus, struct mcb_device *dev) bus 229 drivers/mcb/mcb-core.c mcb_bus_get(bus); bus 230 drivers/mcb/mcb-core.c dev->dev.bus = &mcb_bus_type; bus 231 drivers/mcb/mcb-core.c dev->dev.parent = bus->dev.parent; bus 233 drivers/mcb/mcb-core.c dev->dma_dev = bus->carrier; bus 237 drivers/mcb/mcb-core.c bus->bus_nr, device_id, dev->inst, dev->group, dev->var); bus 242 drivers/mcb/mcb-core.c device_id, bus->bus_nr, ret); bus 256 drivers/mcb/mcb-core.c struct mcb_bus *bus = to_mcb_bus(dev); bus 258 drivers/mcb/mcb-core.c put_device(bus->carrier); bus 259 drivers/mcb/mcb-core.c ida_simple_remove(&mcb_ida, bus->bus_nr); bus 260 drivers/mcb/mcb-core.c kfree(bus); bus 270 drivers/mcb/mcb-core.c struct mcb_bus *bus; bus 274 drivers/mcb/mcb-core.c bus = kzalloc(sizeof(struct mcb_bus), GFP_KERNEL); bus 275 drivers/mcb/mcb-core.c if (!bus) bus 284 drivers/mcb/mcb-core.c bus->bus_nr = bus_nr; bus 285 drivers/mcb/mcb-core.c bus->carrier = get_device(carrier); bus 287 drivers/mcb/mcb-core.c device_initialize(&bus->dev); bus 288 drivers/mcb/mcb-core.c bus->dev.parent = carrier; bus 289 drivers/mcb/mcb-core.c bus->dev.bus = &mcb_bus_type; bus 290 drivers/mcb/mcb-core.c bus->dev.type = &mcb_carrier_device_type; bus 291 drivers/mcb/mcb-core.c bus->dev.release = &mcb_free_bus; bus 293 drivers/mcb/mcb-core.c dev_set_name(&bus->dev, "mcb:%d", bus_nr); bus 294 drivers/mcb/mcb-core.c rc = device_add(&bus->dev); bus 298 drivers/mcb/mcb-core.c return bus; bus 301 drivers/mcb/mcb-core.c kfree(bus); bus 312 drivers/mcb/mcb-core.c static void mcb_devices_unregister(struct mcb_bus *bus) bus 322 drivers/mcb/mcb-core.c void mcb_release_bus(struct mcb_bus *bus) bus 324 drivers/mcb/mcb-core.c mcb_devices_unregister(bus); bus 334 drivers/mcb/mcb-core.c struct mcb_bus *mcb_bus_get(struct mcb_bus *bus) bus 336 drivers/mcb/mcb-core.c if (bus) bus 337 drivers/mcb/mcb-core.c get_device(&bus->dev); bus 339 drivers/mcb/mcb-core.c return bus; bus 349 drivers/mcb/mcb-core.c void mcb_bus_put(struct mcb_bus *bus) bus 351 drivers/mcb/mcb-core.c if (bus) bus 352 drivers/mcb/mcb-core.c put_device(&bus->dev); bus 362 drivers/mcb/mcb-core.c struct mcb_device *mcb_alloc_dev(struct mcb_bus *bus) bus 370 drivers/mcb/mcb-core.c dev->bus = bus; bus 411 drivers/mcb/mcb-core.c void mcb_bus_add_devices(const struct mcb_bus *bus) bus 491 drivers/mcb/mcb-core.c struct mcb_bus *bus = dev->bus; bus 493 drivers/mcb/mcb-core.c if (bus->get_irq) bus 494 drivers/mcb/mcb-core.c return bus->get_irq(dev); bus 125 drivers/mcb/mcb-internal.h int chameleon_parse_cells(struct mcb_bus *bus, phys_addr_t mapbase, bus 17 drivers/mcb/mcb-lpc.c struct mcb_bus *bus; bus 55 drivers/mcb/mcb-lpc.c priv->bus = mcb_alloc_bus(&pdev->dev); bus 56 drivers/mcb/mcb-lpc.c if (IS_ERR(priv->bus)) bus 57 drivers/mcb/mcb-lpc.c return PTR_ERR(priv->bus); bus 59 drivers/mcb/mcb-lpc.c ret = chameleon_parse_cells(priv->bus, priv->mem->start, priv->base); bus 61 drivers/mcb/mcb-lpc.c mcb_release_bus(priv->bus); bus 67 drivers/mcb/mcb-lpc.c mcb_bus_add_devices(priv->bus); bus 77 drivers/mcb/mcb-lpc.c mcb_release_bus(priv->bus); bus 29 drivers/mcb/mcb-parse.c static int chameleon_parse_bdd(struct mcb_bus *bus, bus 36 drivers/mcb/mcb-parse.c static int chameleon_parse_gdd(struct mcb_bus *bus, bus 50 drivers/mcb/mcb-parse.c mdev = mcb_alloc_dev(bus); bus 104 drivers/mcb/mcb-parse.c ret = mcb_device_register(bus, mdev); bus 177 drivers/mcb/mcb-parse.c int chameleon_parse_cells(struct mcb_bus *bus, phys_addr_t mapbase, bus 207 drivers/mcb/mcb-parse.c bus->revision = header->revision; bus 208 drivers/mcb/mcb-parse.c bus->model = header->model; bus 209 drivers/mcb/mcb-parse.c bus->minor = header->minor; bus 210 drivers/mcb/mcb-parse.c snprintf(bus->name, CHAMELEON_FILENAME_LEN + 1, "%s", bus 222 drivers/mcb/mcb-parse.c ret = chameleon_parse_gdd(bus, cb, p, bar_count); bus 228 drivers/mcb/mcb-parse.c chameleon_parse_bdd(bus, cb, p); bus 16 drivers/mcb/mcb-pci.c struct mcb_bus *bus; bus 23 drivers/mcb/mcb-pci.c struct mcb_bus *mbus = mdev->bus; bus 81 drivers/mcb/mcb-pci.c priv->bus = mcb_alloc_bus(&pdev->dev); bus 82 drivers/mcb/mcb-pci.c if (IS_ERR(priv->bus)) { bus 83 drivers/mcb/mcb-pci.c ret = PTR_ERR(priv->bus); bus 87 drivers/mcb/mcb-pci.c priv->bus->get_irq = mcb_pci_get_irq; bus 89 drivers/mcb/mcb-pci.c ret = chameleon_parse_cells(priv->bus, priv->mapbase, priv->base); bus 95 drivers/mcb/mcb-pci.c mcb_bus_add_devices(priv->bus); bus 100 drivers/mcb/mcb-pci.c mcb_release_bus(priv->bus); bus 110 drivers/mcb/mcb-pci.c mcb_release_bus(priv->bus); bus 120 drivers/media/cec/cec-core.c devnode->dev.bus = &cec_bus_type; bus 225 drivers/media/common/b2c2/flexcop.c void *bus; bus 233 drivers/media/common/b2c2/flexcop.c bus = kzalloc(bus_specific_len, GFP_KERNEL); bus 234 drivers/media/common/b2c2/flexcop.c if (!bus) { bus 240 drivers/media/common/b2c2/flexcop.c fc->bus_specific = bus; bus 393 drivers/media/firewire/firedtv-fw.c .bus = &fw_bus_type, bus 589 drivers/media/i2c/adv748x/adv748x-core.c num_lanes = vep.bus.mipi_csi2.num_data_lanes; bus 3154 drivers/media/i2c/adv7604.c flags = bus_cfg.bus.parallel.flags; bus 1238 drivers/media/i2c/mt9m111.c mt9m111->pclk_sample = !!(bus_cfg.bus.parallel.flags & bus 1031 drivers/media/i2c/mt9v032.c pdata->clk_pol = !!(endpoint.bus.parallel.flags & bus 1203 drivers/media/i2c/ov5640.c unsigned int flags = sensor->ep.bus.parallel.flags; bus 1829 drivers/media/i2c/ov5640.c rate = rate / sensor->ep.bus.mipi_csi2.num_data_lanes; bus 1832 drivers/media/i2c/ov5640.c rate = rate / sensor->ep.bus.parallel.bus_width; bus 1039 drivers/media/i2c/ov5675.c if (bus_cfg.bus.mipi_csi2.num_data_lanes != OV5675_DATA_LANES) { bus 1041 drivers/media/i2c/ov5675.c bus_cfg.bus.mipi_csi2.num_data_lanes); bus 1829 drivers/media/i2c/ov7670.c info->mbus_config = bus_cfg.bus.parallel.flags; bus 1127 drivers/media/i2c/ov8856.c if (bus_cfg.bus.mipi_csi2.num_data_lanes != OV8856_DATA_LANES) { bus 1129 drivers/media/i2c/ov8856.c bus_cfg.bus.mipi_csi2.num_data_lanes); bus 1647 drivers/media/i2c/s5c73m3/s5c73m3-core.c if (ep.bus.mipi_csi2.num_data_lanes != S5C73M3_MIPI_DATA_LANES) bus 1876 drivers/media/i2c/s5k5baf.c state->nlanes = ep.bus.mipi_csi2.num_data_lanes; bus 2783 drivers/media/i2c/smiapp/smiapp-core.c hwcfg->lanes = bus_cfg.bus.mipi_csi2.num_data_lanes; bus 2786 drivers/media/i2c/smiapp/smiapp-core.c hwcfg->csi_signalling_mode = (bus_cfg.bus.mipi_csi1.strobe) ? bus 379 drivers/media/i2c/st-mipid02.c return pixel_clock * bpp / (2 * ep->bus.mipi_csi2.num_data_lanes); bus 413 drivers/media/i2c/st-mipid02.c bool *polarities = ep->bus.mipi_csi2.lane_polarities; bus 416 drivers/media/i2c/st-mipid02.c if (ep->bus.mipi_csi2.clock_lane != 0) { bus 462 drivers/media/i2c/st-mipid02.c bool are_lanes_swap = ep->bus.mipi_csi2.data_lanes[0] == 2; bus 463 drivers/media/i2c/st-mipid02.c bool *polarities = ep->bus.mipi_csi2.lane_polarities; bus 464 drivers/media/i2c/st-mipid02.c int nb = ep->bus.mipi_csi2.num_data_lanes; bus 492 drivers/media/i2c/st-mipid02.c bridge->r.pix_width_ctrl = ep->bus.parallel.bus_width; bus 493 drivers/media/i2c/st-mipid02.c bridge->r.pix_width_ctrl_emb = ep->bus.parallel.bus_width; bus 494 drivers/media/i2c/st-mipid02.c if (ep->bus.parallel.flags & V4L2_MBUS_HSYNC_ACTIVE_HIGH) bus 496 drivers/media/i2c/st-mipid02.c if (ep->bus.parallel.flags & V4L2_MBUS_VSYNC_ACTIVE_HIGH) bus 867 drivers/media/i2c/st-mipid02.c if (ep.bus.mipi_csi2.num_data_lanes > 2) { bus 869 drivers/media/i2c/st-mipid02.c ep.bus.mipi_csi2.num_data_lanes); bus 72 drivers/media/i2c/tc358743.c struct v4l2_fwnode_bus_mipi_csi2 bus; bus 719 drivers/media/i2c/tc358743.c i2c_wr32(sd, TXOPTIONCNTRL, (state->bus.flags & bus 1925 drivers/media/i2c/tc358743.c endpoint.bus.mipi_csi2.num_data_lanes == 0 || bus 1932 drivers/media/i2c/tc358743.c if (endpoint.bus.mipi_csi2.num_data_lanes > 4) { bus 1938 drivers/media/i2c/tc358743.c state->bus = endpoint.bus.mipi_csi2; bus 2054 drivers/media/i2c/tc358743.c state->bus.flags = V4L2_MBUS_CSI2_CONTINUOUS_CLOCK; bus 2305 drivers/media/i2c/tda1997x.c flags = bus_cfg.bus.parallel.flags; bus 2312 drivers/media/i2c/tda1997x.c pdata->vidout_bus_width = bus_cfg.bus.parallel.bus_width; bus 1001 drivers/media/i2c/tvp514x.c flags = bus_cfg.bus.parallel.flags; bus 1615 drivers/media/i2c/tvp5150.c flags = bus_cfg.bus.parallel.flags; bus 902 drivers/media/i2c/tvp7002.c flags = bus_cfg.bus.parallel.flags; bus 235 drivers/media/mc/mc-devnode.c devnode->dev.bus = &media_bus_type; bus 438 drivers/media/pci/bt8xx/bt878.c bt878_num, bt->id, bt->revision, dev->bus->number, bus 83 drivers/media/pci/bt8xx/bttv-gpio.c sub->dev.bus = &bttv_sub_bus_type; bus 113 drivers/media/pci/bt8xx/bttv-gpio.c sub->drv.bus = &bttv_sub_bus_type; bus 103 drivers/media/pci/bt8xx/dvb-bt8xx.c (adev->bus->number == bdev->bus->number) && bus 188 drivers/media/pci/cobalt/cobalt-driver.c struct pci_dev *pci_bus_dev = cobalt->pci_dev->bus->self; bus 247 drivers/media/pci/cobalt/cobalt-driver.c struct pci_dev *pci_dev = cobalt->pci_dev->bus->self; bus 175 drivers/media/pci/cobalt/cobalt-driver.h dma_addr_t bus; bus 181 drivers/media/pci/cobalt/cobalt-driver.h dma_addr_t bus; bus 100 drivers/media/pci/cobalt/cobalt-omnitek.c iowrite32((u32)((u64)desc->bus >> 32), DESCRIPTOR(s->dma_channel) + 4); bus 101 drivers/media/pci/cobalt/cobalt-omnitek.c iowrite32((u32)desc->bus & NEXT_ADRS_MSK, DESCRIPTOR(s->dma_channel)); bus 155 drivers/media/pci/cobalt/cobalt-omnitek.c dma_addr_t next = desc->bus; bus 256 drivers/media/pci/cobalt/cobalt-omnitek.c d->next_h = (u32)((u64)desc->bus >> 32); bus 257 drivers/media/pci/cobalt/cobalt-omnitek.c d->next_l = (u32)desc->bus | bus 281 drivers/media/pci/cobalt/cobalt-omnitek.c d->next_h = (u32)((u64)next->bus >> 32); bus 282 drivers/media/pci/cobalt/cobalt-omnitek.c d->next_l = (u32)next->bus | direction | INTERRUPT_ENABLE; bus 290 drivers/media/pci/cobalt/cobalt-omnitek.c &desc->bus, GFP_KERNEL); bus 298 drivers/media/pci/cobalt/cobalt-omnitek.c desc->virt, desc->bus); bus 320 drivers/media/pci/cobalt/cobalt-omnitek.c d->next_h = (u32)((u64)desc->bus >> 32); bus 321 drivers/media/pci/cobalt/cobalt-omnitek.c d->next_l = (u32)desc->bus | (d->next_l & DESCRIPTOR_FLAG_MSK); bus 834 drivers/media/pci/cx18/cx18-driver.c cx->pci_dev->device, cx->card_rev, pci_dev->bus->number, bus 98 drivers/media/pci/cx18/cx18-i2c.c int bus = hw_bus[idx]; bus 99 drivers/media/pci/cx18/cx18-i2c.c struct i2c_adapter *adap = &cx->i2c_adap[bus]; bus 941 drivers/media/pci/cx23885/cx23885-core.c dev->pci_bus = dev->pci->bus->number; bus 39 drivers/media/pci/cx23885/cx23885-i2c.c struct cx23885_i2c *bus = i2c_adap->algo_data; bus 40 drivers/media/pci/cx23885/cx23885-i2c.c struct cx23885_dev *dev = bus->dev; bus 41 drivers/media/pci/cx23885/cx23885-i2c.c return cx_read(bus->reg_stat) & 0x01; bus 46 drivers/media/pci/cx23885/cx23885-i2c.c struct cx23885_i2c *bus = i2c_adap->algo_data; bus 47 drivers/media/pci/cx23885/cx23885-i2c.c struct cx23885_dev *dev = bus->dev; bus 48 drivers/media/pci/cx23885/cx23885-i2c.c return cx_read(bus->reg_stat) & 0x02 ? 1 : 0; bus 70 drivers/media/pci/cx23885/cx23885-i2c.c struct cx23885_i2c *bus = i2c_adap->algo_data; bus 71 drivers/media/pci/cx23885/cx23885-i2c.c struct cx23885_dev *dev = bus->dev; bus 83 drivers/media/pci/cx23885/cx23885-i2c.c cx_write(bus->reg_addr, msg->addr << 25); bus 84 drivers/media/pci/cx23885/cx23885-i2c.c cx_write(bus->reg_ctrl, bus->i2c_period | (1 << 2)); bus 98 drivers/media/pci/cx23885/cx23885-i2c.c ctrl = bus->i2c_period | (1 << 12) | (1 << 2); bus 105 drivers/media/pci/cx23885/cx23885-i2c.c cx_write(bus->reg_addr, addr); bus 106 drivers/media/pci/cx23885/cx23885-i2c.c cx_write(bus->reg_wdata, wdata); bus 107 drivers/media/pci/cx23885/cx23885-i2c.c cx_write(bus->reg_ctrl, ctrl); bus 120 drivers/media/pci/cx23885/cx23885-i2c.c ctrl = bus->i2c_period | (1 << 12) | (1 << 2); bus 127 drivers/media/pci/cx23885/cx23885-i2c.c cx_write(bus->reg_addr, addr); bus 128 drivers/media/pci/cx23885/cx23885-i2c.c cx_write(bus->reg_wdata, wdata); bus 129 drivers/media/pci/cx23885/cx23885-i2c.c cx_write(bus->reg_ctrl, ctrl); bus 151 drivers/media/pci/cx23885/cx23885-i2c.c struct cx23885_i2c *bus = i2c_adap->algo_data; bus 152 drivers/media/pci/cx23885/cx23885-i2c.c struct cx23885_dev *dev = bus->dev; bus 162 drivers/media/pci/cx23885/cx23885-i2c.c cx_write(bus->reg_addr, msg->addr << 25); bus 163 drivers/media/pci/cx23885/cx23885-i2c.c cx_write(bus->reg_ctrl, bus->i2c_period | (1 << 2) | 1); bus 183 drivers/media/pci/cx23885/cx23885-i2c.c ctrl = bus->i2c_period | (1 << 12) | (1 << 2) | 1; bus 188 drivers/media/pci/cx23885/cx23885-i2c.c cx_write(bus->reg_addr, msg->addr << 25); bus 189 drivers/media/pci/cx23885/cx23885-i2c.c cx_write(bus->reg_ctrl, ctrl); bus 193 drivers/media/pci/cx23885/cx23885-i2c.c msg->buf[cnt] = cx_read(bus->reg_rdata) & 0xff; bus 299 drivers/media/pci/cx23885/cx23885-i2c.c int cx23885_i2c_register(struct cx23885_i2c *bus) bus 301 drivers/media/pci/cx23885/cx23885-i2c.c struct cx23885_dev *dev = bus->dev; bus 303 drivers/media/pci/cx23885/cx23885-i2c.c dprintk(1, "%s(bus = %d)\n", __func__, bus->nr); bus 305 drivers/media/pci/cx23885/cx23885-i2c.c bus->i2c_adap = cx23885_i2c_adap_template; bus 306 drivers/media/pci/cx23885/cx23885-i2c.c bus->i2c_client = cx23885_i2c_client_template; bus 307 drivers/media/pci/cx23885/cx23885-i2c.c bus->i2c_adap.dev.parent = &dev->pci->dev; bus 309 drivers/media/pci/cx23885/cx23885-i2c.c strscpy(bus->i2c_adap.name, bus->dev->name, bus 310 drivers/media/pci/cx23885/cx23885-i2c.c sizeof(bus->i2c_adap.name)); bus 312 drivers/media/pci/cx23885/cx23885-i2c.c bus->i2c_adap.algo_data = bus; bus 313 drivers/media/pci/cx23885/cx23885-i2c.c i2c_set_adapdata(&bus->i2c_adap, &dev->v4l2_dev); bus 314 drivers/media/pci/cx23885/cx23885-i2c.c i2c_add_adapter(&bus->i2c_adap); bus 316 drivers/media/pci/cx23885/cx23885-i2c.c bus->i2c_client.adapter = &bus->i2c_adap; bus 318 drivers/media/pci/cx23885/cx23885-i2c.c if (0 == bus->i2c_rc) { bus 319 drivers/media/pci/cx23885/cx23885-i2c.c dprintk(1, "%s: i2c bus %d registered\n", dev->name, bus->nr); bus 322 drivers/media/pci/cx23885/cx23885-i2c.c dev->name, bus->nr); bus 323 drivers/media/pci/cx23885/cx23885-i2c.c do_i2c_scan(dev->name, &bus->i2c_client); bus 327 drivers/media/pci/cx23885/cx23885-i2c.c dev->name, bus->nr); bus 330 drivers/media/pci/cx23885/cx23885-i2c.c if (0 == bus->i2c_rc) { bus 340 drivers/media/pci/cx23885/cx23885-i2c.c i2c_new_probed_device(&bus->i2c_adap, &info, addr_list, bus 344 drivers/media/pci/cx23885/cx23885-i2c.c return bus->i2c_rc; bus 347 drivers/media/pci/cx23885/cx23885-i2c.c int cx23885_i2c_unregister(struct cx23885_i2c *bus) bus 349 drivers/media/pci/cx23885/cx23885-i2c.c i2c_del_adapter(&bus->i2c_adap); bus 594 drivers/media/pci/cx23885/cx23885.h extern int cx23885_i2c_register(struct cx23885_i2c *bus); bus 595 drivers/media/pci/cx23885/cx23885.h extern int cx23885_i2c_unregister(struct cx23885_i2c *bus); bus 342 drivers/media/pci/cx25821/cx25821-core.c struct cx25821_i2c *bus = i2c_adap->algo_data; bus 343 drivers/media/pci/cx25821/cx25821-core.c struct cx25821_dev *dev = bus->dev; bus 344 drivers/media/pci/cx25821/cx25821-core.c return cx_read(bus->reg_stat) & 0x01; bus 883 drivers/media/pci/cx25821/cx25821-core.c dev->pci_bus = dev->pci->bus->number; bus 38 drivers/media/pci/cx25821/cx25821-i2c.c struct cx25821_i2c *bus = i2c_adap->algo_data; bus 39 drivers/media/pci/cx25821/cx25821-i2c.c struct cx25821_dev *dev = bus->dev; bus 40 drivers/media/pci/cx25821/cx25821-i2c.c return cx_read(bus->reg_stat) & 0x01; bus 45 drivers/media/pci/cx25821/cx25821-i2c.c struct cx25821_i2c *bus = i2c_adap->algo_data; bus 46 drivers/media/pci/cx25821/cx25821-i2c.c struct cx25821_dev *dev = bus->dev; bus 47 drivers/media/pci/cx25821/cx25821-i2c.c return cx_read(bus->reg_stat) & 0x02 ? 1 : 0; bus 69 drivers/media/pci/cx25821/cx25821-i2c.c struct cx25821_i2c *bus = i2c_adap->algo_data; bus 70 drivers/media/pci/cx25821/cx25821-i2c.c struct cx25821_dev *dev = bus->dev; bus 82 drivers/media/pci/cx25821/cx25821-i2c.c cx_write(bus->reg_addr, msg->addr << 25); bus 83 drivers/media/pci/cx25821/cx25821-i2c.c cx_write(bus->reg_ctrl, bus->i2c_period | (1 << 2)); bus 99 drivers/media/pci/cx25821/cx25821-i2c.c ctrl = bus->i2c_period | (1 << 12) | (1 << 2); bus 106 drivers/media/pci/cx25821/cx25821-i2c.c cx_write(bus->reg_addr, addr); bus 107 drivers/media/pci/cx25821/cx25821-i2c.c cx_write(bus->reg_wdata, wdata); bus 108 drivers/media/pci/cx25821/cx25821-i2c.c cx_write(bus->reg_ctrl, ctrl); bus 125 drivers/media/pci/cx25821/cx25821-i2c.c ctrl = bus->i2c_period | (1 << 12) | (1 << 2); bus 132 drivers/media/pci/cx25821/cx25821-i2c.c cx_write(bus->reg_addr, addr); bus 133 drivers/media/pci/cx25821/cx25821-i2c.c cx_write(bus->reg_wdata, wdata); bus 134 drivers/media/pci/cx25821/cx25821-i2c.c cx_write(bus->reg_ctrl, ctrl); bus 163 drivers/media/pci/cx25821/cx25821-i2c.c struct cx25821_i2c *bus = i2c_adap->algo_data; bus 164 drivers/media/pci/cx25821/cx25821-i2c.c struct cx25821_dev *dev = bus->dev; bus 173 drivers/media/pci/cx25821/cx25821-i2c.c cx_write(bus->reg_addr, msg->addr << 25); bus 174 drivers/media/pci/cx25821/cx25821-i2c.c cx_write(bus->reg_ctrl, bus->i2c_period | (1 << 2) | 1); bus 193 drivers/media/pci/cx25821/cx25821-i2c.c ctrl = bus->i2c_period | (1 << 12) | (1 << 2) | 1; bus 198 drivers/media/pci/cx25821/cx25821-i2c.c cx_write(bus->reg_addr, msg->addr << 25); bus 199 drivers/media/pci/cx25821/cx25821-i2c.c cx_write(bus->reg_ctrl, ctrl); bus 206 drivers/media/pci/cx25821/cx25821-i2c.c msg->buf[cnt] = cx_read(bus->reg_rdata) & 0xff; bus 226 drivers/media/pci/cx25821/cx25821-i2c.c struct cx25821_i2c *bus = i2c_adap->algo_data; bus 227 drivers/media/pci/cx25821/cx25821-i2c.c struct cx25821_dev *dev = bus->dev; bus 289 drivers/media/pci/cx25821/cx25821-i2c.c int cx25821_i2c_register(struct cx25821_i2c *bus) bus 291 drivers/media/pci/cx25821/cx25821-i2c.c struct cx25821_dev *dev = bus->dev; bus 293 drivers/media/pci/cx25821/cx25821-i2c.c dprintk(1, "%s(bus = %d)\n", __func__, bus->nr); bus 295 drivers/media/pci/cx25821/cx25821-i2c.c bus->i2c_adap = cx25821_i2c_adap_template; bus 296 drivers/media/pci/cx25821/cx25821-i2c.c bus->i2c_client = cx25821_i2c_client_template; bus 297 drivers/media/pci/cx25821/cx25821-i2c.c bus->i2c_adap.dev.parent = &dev->pci->dev; bus 299 drivers/media/pci/cx25821/cx25821-i2c.c strscpy(bus->i2c_adap.name, bus->dev->name, sizeof(bus->i2c_adap.name)); bus 301 drivers/media/pci/cx25821/cx25821-i2c.c bus->i2c_adap.algo_data = bus; bus 302 drivers/media/pci/cx25821/cx25821-i2c.c i2c_set_adapdata(&bus->i2c_adap, &dev->v4l2_dev); bus 303 drivers/media/pci/cx25821/cx25821-i2c.c i2c_add_adapter(&bus->i2c_adap); bus 305 drivers/media/pci/cx25821/cx25821-i2c.c bus->i2c_client.adapter = &bus->i2c_adap; bus 308 drivers/media/pci/cx25821/cx25821-i2c.c bus->i2c_client.addr = (0x88 >> 1); bus 310 drivers/media/pci/cx25821/cx25821-i2c.c return bus->i2c_rc; bus 313 drivers/media/pci/cx25821/cx25821-i2c.c int cx25821_i2c_unregister(struct cx25821_i2c *bus) bus 315 drivers/media/pci/cx25821/cx25821-i2c.c i2c_del_adapter(&bus->i2c_adap); bus 344 drivers/media/pci/cx25821/cx25821-i2c.c int cx25821_i2c_read(struct cx25821_i2c *bus, u16 reg_addr, int *value) bus 346 drivers/media/pci/cx25821/cx25821-i2c.c struct i2c_client *client = &bus->i2c_client; bus 378 drivers/media/pci/cx25821/cx25821-i2c.c int cx25821_i2c_write(struct cx25821_i2c *bus, u16 reg_addr, int value) bus 380 drivers/media/pci/cx25821/cx25821-i2c.c struct i2c_client *client = &bus->i2c_client; bus 371 drivers/media/pci/cx25821/cx25821.h extern int cx25821_i2c_register(struct cx25821_i2c *bus); bus 372 drivers/media/pci/cx25821/cx25821.h extern int cx25821_i2c_read(struct cx25821_i2c *bus, u16 reg_addr, int *value); bus 373 drivers/media/pci/cx25821/cx25821.h extern int cx25821_i2c_write(struct cx25821_i2c *bus, u16 reg_addr, int value); bus 374 drivers/media/pci/cx25821/cx25821.h extern int cx25821_i2c_unregister(struct cx25821_i2c *bus); bus 3665 drivers/media/pci/cx88/cx88-cards.c core->pci_bus = pci->bus->number; bus 1037 drivers/media/pci/cx88/cx88-core.c if (pci->bus->number != core->pci_bus) bus 1508 drivers/media/pci/intel/ipu3/ipu3-cio2.c s_asd->csi2.lanes = vep.bus.mipi_csi2.num_data_lanes; bus 899 drivers/media/pci/ivtv/ivtv-driver.c pdev->device, pdev->revision, pdev->bus->number, bus 109 drivers/media/pci/mantis/mantis_core.c mantis->pdev->bus->number, PCI_SLOT(mantis->pdev->devfn), PCI_FUNC(mantis->pdev->devfn)); bus 47 drivers/media/pci/mantis/mantis_pci.c mantis->pdev->bus->number, bus 818 drivers/media/pci/netup_unidvb/netup_unidvb_core.c ndev->pci_bus = pci_dev->bus->number; bus 80 drivers/media/pci/ngene/ngene-i2c.c static void ngene_i2c_set_bus(struct ngene *dev, int bus) bus 84 drivers/media/pci/ngene/ngene-i2c.c if (dev->i2c_current_bus == bus) bus 87 drivers/media/pci/ngene/ngene-i2c.c switch (bus) { bus 98 drivers/media/pci/ngene/ngene-i2c.c dev->i2c_current_bus = bus; bus 1353 drivers/media/pci/saa7164/saa7164-api.c int saa7164_api_i2c_read(struct saa7164_i2c *bus, u8 addr, u32 reglen, u8 *reg, bus 1356 drivers/media/pci/saa7164/saa7164-api.c struct saa7164_dev *dev = bus->dev; bus 1378 drivers/media/pci/saa7164/saa7164-api.c unitid = saa7164_i2caddr_to_unitid(bus, addr); bus 1386 drivers/media/pci/saa7164/saa7164-api.c ret = saa7164_cmd_send(bus->dev, unitid, GET_LEN, bus 1399 drivers/media/pci/saa7164/saa7164-api.c ret = saa7164_cmd_send(bus->dev, unitid, GET_CUR, bus 1414 drivers/media/pci/saa7164/saa7164-api.c int saa7164_api_i2c_write(struct saa7164_i2c *bus, u8 addr, u32 datalen, bus 1417 drivers/media/pci/saa7164/saa7164-api.c struct saa7164_dev *dev = bus->dev; bus 1432 drivers/media/pci/saa7164/saa7164-api.c unitid = saa7164_i2caddr_to_unitid(bus, addr); bus 1440 drivers/media/pci/saa7164/saa7164-api.c reglen = saa7164_i2caddr_to_reglen(bus, addr); bus 1448 drivers/media/pci/saa7164/saa7164-api.c ret = saa7164_cmd_send(bus->dev, unitid, GET_LEN, bus 1471 drivers/media/pci/saa7164/saa7164-api.c ret = saa7164_cmd_send(bus->dev, unitid, SET_CUR, bus 15 drivers/media/pci/saa7164/saa7164-bus.c struct tmComResBusInfo *b = &dev->bus; bus 44 drivers/media/pci/saa7164/saa7164-bus.c struct tmComResBusInfo *b = &dev->bus; bus 72 drivers/media/pci/saa7164/saa7164-bus.c struct tmComResBusInfo *b = &dev->bus; bus 123 drivers/media/pci/saa7164/saa7164-bus.c struct tmComResBusInfo *bus = &dev->bus; bus 138 drivers/media/pci/saa7164/saa7164-bus.c if (msg->size > dev->bus.m_wMaxReqSize) { bus 150 drivers/media/pci/saa7164/saa7164-bus.c mutex_lock(&bus->lock); bus 155 drivers/media/pci/saa7164/saa7164-bus.c curr_srp = saa7164_readl(bus->m_dwSetReadPos); bus 156 drivers/media/pci/saa7164/saa7164-bus.c curr_swp = saa7164_readl(bus->m_dwSetWritePos); bus 164 drivers/media/pci/saa7164/saa7164-bus.c free_write_space = (curr_srp + bus->m_dwSizeSetRing) - curr_swp; bus 189 drivers/media/pci/saa7164/saa7164-bus.c curr_srp = saa7164_readl(bus->m_dwSetReadPos); bus 197 drivers/media/pci/saa7164/saa7164-bus.c free_write_space = (curr_srp + bus->m_dwSizeSetRing) - bus 207 drivers/media/pci/saa7164/saa7164-bus.c bus->m_dwSizeSetRing); bus 222 drivers/media/pci/saa7164/saa7164-bus.c if (new_swp > bus->m_dwSizeSetRing) { bus 225 drivers/media/pci/saa7164/saa7164-bus.c new_swp -= bus->m_dwSizeSetRing; bus 227 drivers/media/pci/saa7164/saa7164-bus.c space_rem = bus->m_dwSizeSetRing - curr_swp; bus 239 drivers/media/pci/saa7164/saa7164-bus.c memcpy_toio(bus->m_pdwSetRing + curr_swp, msg, space_rem); bus 240 drivers/media/pci/saa7164/saa7164-bus.c memcpy_toio(bus->m_pdwSetRing, (u8 *)msg + space_rem, bus 243 drivers/media/pci/saa7164/saa7164-bus.c memcpy_toio(bus->m_pdwSetRing + sizeof(*msg) - space_rem, bus 250 drivers/media/pci/saa7164/saa7164-bus.c memcpy_toio(bus->m_pdwSetRing + curr_swp, msg, sizeof(*msg)); bus 251 drivers/media/pci/saa7164/saa7164-bus.c memcpy_toio(bus->m_pdwSetRing, buf, size); bus 255 drivers/media/pci/saa7164/saa7164-bus.c memcpy_toio(bus->m_pdwSetRing + curr_swp, msg, sizeof(*msg)); bus 257 drivers/media/pci/saa7164/saa7164-bus.c memcpy_toio(bus->m_pdwSetRing + curr_swp + bus 260 drivers/media/pci/saa7164/saa7164-bus.c memcpy_toio(bus->m_pdwSetRing, (u8 *)buf + bus 272 drivers/media/pci/saa7164/saa7164-bus.c memcpy_toio(bus->m_pdwSetRing + curr_swp, msg, sizeof(*msg)); bus 273 drivers/media/pci/saa7164/saa7164-bus.c memcpy_toio(bus->m_pdwSetRing + curr_swp + sizeof(*msg), buf, bus 280 drivers/media/pci/saa7164/saa7164-bus.c saa7164_writel(bus->m_dwSetWritePos, new_swp); bus 290 drivers/media/pci/saa7164/saa7164-bus.c mutex_unlock(&bus->lock); bus 308 drivers/media/pci/saa7164/saa7164-bus.c struct tmComResBusInfo *bus = &dev->bus; bus 319 drivers/media/pci/saa7164/saa7164-bus.c if (msg->size > dev->bus.m_wMaxReqSize) { bus 332 drivers/media/pci/saa7164/saa7164-bus.c mutex_lock(&bus->lock); bus 337 drivers/media/pci/saa7164/saa7164-bus.c curr_gwp = saa7164_readl(bus->m_dwGetWritePos); bus 338 drivers/media/pci/saa7164/saa7164-bus.c curr_grp = saa7164_readl(bus->m_dwGetReadPos); bus 354 drivers/media/pci/saa7164/saa7164-bus.c write_distance = curr_gwp + bus->m_dwSizeGetRing - curr_grp; bus 364 drivers/media/pci/saa7164/saa7164-bus.c if (new_grp > bus->m_dwSizeGetRing) { bus 367 drivers/media/pci/saa7164/saa7164-bus.c new_grp -= bus->m_dwSizeGetRing; bus 368 drivers/media/pci/saa7164/saa7164-bus.c space_rem = bus->m_dwSizeGetRing - curr_grp; bus 370 drivers/media/pci/saa7164/saa7164-bus.c memcpy_fromio(&msg_tmp, bus->m_pdwGetRing + curr_grp, space_rem); bus 371 drivers/media/pci/saa7164/saa7164-bus.c memcpy_fromio((u8 *)&msg_tmp + space_rem, bus->m_pdwGetRing, bus 376 drivers/media/pci/saa7164/saa7164-bus.c memcpy_fromio(&msg_tmp, bus->m_pdwGetRing + curr_grp, bytes_to_read); bus 413 drivers/media/pci/saa7164/saa7164-bus.c write_distance = curr_gwp + bus->m_dwSizeGetRing - curr_grp; bus 424 drivers/media/pci/saa7164/saa7164-bus.c if (new_grp > bus->m_dwSizeGetRing) { bus 427 drivers/media/pci/saa7164/saa7164-bus.c new_grp -= bus->m_dwSizeGetRing; bus 428 drivers/media/pci/saa7164/saa7164-bus.c space_rem = bus->m_dwSizeGetRing - curr_grp; bus 432 drivers/media/pci/saa7164/saa7164-bus.c memcpy_fromio(buf, bus->m_pdwGetRing + sizeof(*msg) - bus 437 drivers/media/pci/saa7164/saa7164-bus.c memcpy_fromio(buf, bus->m_pdwGetRing, buf_size); bus 441 drivers/media/pci/saa7164/saa7164-bus.c memcpy_fromio(buf, bus->m_pdwGetRing + curr_grp + bus 444 drivers/media/pci/saa7164/saa7164-bus.c bus->m_pdwGetRing, bytes_to_read - bus 453 drivers/media/pci/saa7164/saa7164-bus.c memcpy_fromio(buf, bus->m_pdwGetRing + curr_grp + sizeof(*msg), bus 458 drivers/media/pci/saa7164/saa7164-bus.c saa7164_writel(bus->m_dwGetReadPos, new_grp); bus 463 drivers/media/pci/saa7164/saa7164-bus.c mutex_unlock(&bus->lock); bus 867 drivers/media/pci/saa7164/saa7164-cards.c int saa7164_i2caddr_to_unitid(struct saa7164_i2c *bus, int addr) bus 872 drivers/media/pci/saa7164/saa7164-cards.c struct saa7164_dev *dev = bus->dev; bus 881 drivers/media/pci/saa7164/saa7164-cards.c if ((bus->nr == unit->i2c_bus_nr) && bus 893 drivers/media/pci/saa7164/saa7164-cards.c int saa7164_i2caddr_to_reglen(struct saa7164_i2c *bus, int addr) bus 899 drivers/media/pci/saa7164/saa7164-cards.c struct saa7164_dev *dev = bus->dev; bus 909 drivers/media/pci/saa7164/saa7164-cards.c if ((bus->nr == unit->i2c_bus_nr) && bus 175 drivers/media/pci/saa7164/saa7164-cmd.c struct tmComResBusInfo *bus = &dev->bus; bus 191 drivers/media/pci/saa7164/saa7164-cmd.c cmds = size / bus->m_wMaxReqSize; bus 192 drivers/media/pci/saa7164/saa7164-cmd.c if (size % bus->m_wMaxReqSize == 0) bus 201 drivers/media/pci/saa7164/saa7164-cmd.c msg->size = bus->m_wMaxReqSize; bus 202 drivers/media/pci/saa7164/saa7164-cmd.c tmp = buf + idx * bus->m_wMaxReqSize; bus 222 drivers/media/pci/saa7164/saa7164-cmd.c msg->size = size - idx * bus->m_wMaxReqSize; bus 224 drivers/media/pci/saa7164/saa7164-cmd.c ret = saa7164_bus_set(dev, msg, buf + idx * bus->m_wMaxReqSize); bus 975 drivers/media/pci/saa7164/saa7164-core.c dev->pci_bus = dev->pci->bus->number; bus 1064 drivers/media/pci/saa7164/saa7164-core.c b = &dev->bus; bus 18 drivers/media/pci/saa7164/saa7164-i2c.c struct saa7164_i2c *bus = i2c_adap->algo_data; bus 19 drivers/media/pci/saa7164/saa7164-i2c.c struct saa7164_dev *dev = bus->dev; bus 28 drivers/media/pci/saa7164/saa7164-i2c.c retval = saa7164_api_i2c_read(bus, bus 36 drivers/media/pci/saa7164/saa7164-i2c.c retval = saa7164_api_i2c_read(bus, msgs[i].addr, bus 47 drivers/media/pci/saa7164/saa7164-i2c.c retval = saa7164_api_i2c_write(bus, msgs[i].addr, bus 81 drivers/media/pci/saa7164/saa7164-i2c.c int saa7164_i2c_register(struct saa7164_i2c *bus) bus 83 drivers/media/pci/saa7164/saa7164-i2c.c struct saa7164_dev *dev = bus->dev; bus 85 drivers/media/pci/saa7164/saa7164-i2c.c dprintk(DBGLVL_I2C, "%s(bus = %d)\n", __func__, bus->nr); bus 87 drivers/media/pci/saa7164/saa7164-i2c.c bus->i2c_adap = saa7164_i2c_adap_template; bus 88 drivers/media/pci/saa7164/saa7164-i2c.c bus->i2c_client = saa7164_i2c_client_template; bus 90 drivers/media/pci/saa7164/saa7164-i2c.c bus->i2c_adap.dev.parent = &dev->pci->dev; bus 92 drivers/media/pci/saa7164/saa7164-i2c.c strscpy(bus->i2c_adap.name, bus->dev->name, bus 93 drivers/media/pci/saa7164/saa7164-i2c.c sizeof(bus->i2c_adap.name)); bus 95 drivers/media/pci/saa7164/saa7164-i2c.c bus->i2c_adap.algo_data = bus; bus 96 drivers/media/pci/saa7164/saa7164-i2c.c i2c_set_adapdata(&bus->i2c_adap, bus); bus 97 drivers/media/pci/saa7164/saa7164-i2c.c i2c_add_adapter(&bus->i2c_adap); bus 99 drivers/media/pci/saa7164/saa7164-i2c.c bus->i2c_client.adapter = &bus->i2c_adap; bus 101 drivers/media/pci/saa7164/saa7164-i2c.c if (0 != bus->i2c_rc) bus 103 drivers/media/pci/saa7164/saa7164-i2c.c dev->name, bus->nr); bus 105 drivers/media/pci/saa7164/saa7164-i2c.c return bus->i2c_rc; bus 108 drivers/media/pci/saa7164/saa7164-i2c.c int saa7164_i2c_unregister(struct saa7164_i2c *bus) bus 110 drivers/media/pci/saa7164/saa7164-i2c.c i2c_del_adapter(&bus->i2c_adap); bus 450 drivers/media/pci/saa7164/saa7164.h struct tmComResBusInfo bus; bus 494 drivers/media/pci/saa7164/saa7164.h extern int saa7164_i2c_register(struct saa7164_i2c *bus); bus 495 drivers/media/pci/saa7164/saa7164.h extern int saa7164_i2c_unregister(struct saa7164_i2c *bus); bus 496 drivers/media/pci/saa7164/saa7164.h extern void saa7164_call_i2c_clients(struct saa7164_i2c *bus, bus 520 drivers/media/pci/saa7164/saa7164.h int saa7164_api_i2c_read(struct saa7164_i2c *bus, u8 addr, u32 reglen, u8 *reg, bus 522 drivers/media/pci/saa7164/saa7164.h int saa7164_api_i2c_write(struct saa7164_i2c *bus, u8 addr, bus 524 drivers/media/pci/saa7164/saa7164.h int saa7164_api_dif_write(struct saa7164_i2c *bus, u8 addr, bus 561 drivers/media/pci/saa7164/saa7164.h extern int saa7164_i2caddr_to_reglen(struct saa7164_i2c *bus, int addr); bus 562 drivers/media/pci/saa7164/saa7164.h extern int saa7164_i2caddr_to_unitid(struct saa7164_i2c *bus, int addr); bus 400 drivers/media/pci/tw5864/tw5864-reg.h #define TW5864_FRAME_WIDTH_BUS_A(bus) (0x0d10 + 0x0010 * bus) bus 401 drivers/media/pci/tw5864/tw5864-reg.h #define TW5864_FRAME_WIDTH_BUS_B(bus) (0x0d14 + 0x0010 * bus) bus 402 drivers/media/pci/tw5864/tw5864-reg.h #define TW5864_FRAME_HEIGHT_BUS_A(bus) (0x0d18 + 0x0010 * bus) bus 403 drivers/media/pci/tw5864/tw5864-reg.h #define TW5864_FRAME_HEIGHT_BUS_B(bus) (0x0d1c + 0x0010 * bus) bus 986 drivers/media/pci/tw5864/tw5864-reg.h #define TW5864_H264EN_RATE_CNTL_LO_WORD(bus, channel) \ bus 987 drivers/media/pci/tw5864/tw5864-reg.h (0x9100 + bus * 0x20 + channel * 0x08) bus 988 drivers/media/pci/tw5864/tw5864-reg.h #define TW5864_H264EN_RATE_CNTL_HI_WORD(bus, channel) \ bus 989 drivers/media/pci/tw5864/tw5864-reg.h (0x9104 + bus * 0x20 + channel * 0x08) bus 2470 drivers/media/platform/am437x/am437x-vpfe.c sdinfo->vpfe_param.bus_width = bus_cfg.bus.parallel.bus_width; bus 2478 drivers/media/platform/am437x/am437x-vpfe.c flags = bus_cfg.bus.parallel.flags; bus 810 drivers/media/platform/atmel/atmel-isi.c switch (ep.bus.parallel.bus_width) { bus 820 drivers/media/platform/atmel/atmel-isi.c ep.bus.parallel.bus_width); bus 824 drivers/media/platform/atmel/atmel-isi.c if (ep.bus.parallel.flags & V4L2_MBUS_HSYNC_ACTIVE_LOW) bus 826 drivers/media/platform/atmel/atmel-isi.c if (ep.bus.parallel.flags & V4L2_MBUS_VSYNC_ACTIVE_LOW) bus 828 drivers/media/platform/atmel/atmel-isi.c if (ep.bus.parallel.flags & V4L2_MBUS_PCLK_SAMPLE_FALLING) bus 109 drivers/media/platform/atmel/atmel-sama5d2-isc.c flags = v4l2_epn.bus.parallel.flags; bus 388 drivers/media/platform/cadence/cdns-csi2rx.c memcpy(csi2rx->lanes, v4l2_ep.bus.mipi_csi2.data_lanes, bus 390 drivers/media/platform/cadence/cdns-csi2rx.c csi2rx->num_lanes = v4l2_ep.bus.mipi_csi2.num_data_lanes; bus 515 drivers/media/platform/cadence/cdns-csi2tx.c csi2tx->num_lanes = v4l2_ep.bus.mipi_csi2.num_data_lanes; bus 524 drivers/media/platform/cadence/cdns-csi2tx.c if (v4l2_ep.bus.mipi_csi2.data_lanes[i] < 1) { bus 526 drivers/media/platform/cadence/cdns-csi2tx.c i, v4l2_ep.bus.mipi_csi2.data_lanes[i]); bus 532 drivers/media/platform/cadence/cdns-csi2tx.c memcpy(csi2tx->lanes, v4l2_ep.bus.mipi_csi2.data_lanes, bus 1503 drivers/media/platform/davinci/vpbe_display.c .bus = &platform_bus_type, bus 1574 drivers/media/platform/davinci/vpif_capture.c endpoint, bus_cfg.bus.parallel.bus_width); bus 1576 drivers/media/platform/davinci/vpif_capture.c flags = bus_cfg.bus.parallel.flags; bus 423 drivers/media/platform/exynos4-is/media-dev.c pd->flags = endpoint.bus.parallel.flags; bus 751 drivers/media/platform/exynos4-is/mipi-csis.c state->num_lanes = endpoint.bus.mipi_csi2.num_data_lanes; bus 2059 drivers/media/platform/omap3isp/isp.c buscfg->bus.parallel.data_lane_shift = vep->bus.parallel.data_shift; bus 2060 drivers/media/platform/omap3isp/isp.c buscfg->bus.parallel.clk_pol = bus 2061 drivers/media/platform/omap3isp/isp.c !!(vep->bus.parallel.flags & V4L2_MBUS_PCLK_SAMPLE_FALLING); bus 2062 drivers/media/platform/omap3isp/isp.c buscfg->bus.parallel.hs_pol = bus 2063 drivers/media/platform/omap3isp/isp.c !!(vep->bus.parallel.flags & V4L2_MBUS_VSYNC_ACTIVE_LOW); bus 2064 drivers/media/platform/omap3isp/isp.c buscfg->bus.parallel.vs_pol = bus 2065 drivers/media/platform/omap3isp/isp.c !!(vep->bus.parallel.flags & V4L2_MBUS_HSYNC_ACTIVE_LOW); bus 2066 drivers/media/platform/omap3isp/isp.c buscfg->bus.parallel.fld_pol = bus 2067 drivers/media/platform/omap3isp/isp.c !!(vep->bus.parallel.flags & V4L2_MBUS_FIELD_EVEN_LOW); bus 2068 drivers/media/platform/omap3isp/isp.c buscfg->bus.parallel.data_pol = bus 2069 drivers/media/platform/omap3isp/isp.c !!(vep->bus.parallel.flags & V4L2_MBUS_DATA_ACTIVE_LOW); bus 2070 drivers/media/platform/omap3isp/isp.c buscfg->bus.parallel.bt656 = vep->bus_type == V4L2_MBUS_BT656; bus 2079 drivers/media/platform/omap3isp/isp.c buscfg->bus.csi2.lanecfg.clk.pos = vep->bus.mipi_csi2.clock_lane; bus 2080 drivers/media/platform/omap3isp/isp.c buscfg->bus.csi2.lanecfg.clk.pol = bus 2081 drivers/media/platform/omap3isp/isp.c vep->bus.mipi_csi2.lane_polarities[0]; bus 2083 drivers/media/platform/omap3isp/isp.c buscfg->bus.csi2.lanecfg.clk.pol, bus 2084 drivers/media/platform/omap3isp/isp.c buscfg->bus.csi2.lanecfg.clk.pos); bus 2086 drivers/media/platform/omap3isp/isp.c buscfg->bus.csi2.num_data_lanes = vep->bus.mipi_csi2.num_data_lanes; bus 2088 drivers/media/platform/omap3isp/isp.c for (i = 0; i < buscfg->bus.csi2.num_data_lanes; i++) { bus 2089 drivers/media/platform/omap3isp/isp.c buscfg->bus.csi2.lanecfg.data[i].pos = bus 2090 drivers/media/platform/omap3isp/isp.c vep->bus.mipi_csi2.data_lanes[i]; bus 2091 drivers/media/platform/omap3isp/isp.c buscfg->bus.csi2.lanecfg.data[i].pol = bus 2092 drivers/media/platform/omap3isp/isp.c vep->bus.mipi_csi2.lane_polarities[i + 1]; bus 2095 drivers/media/platform/omap3isp/isp.c buscfg->bus.csi2.lanecfg.data[i].pol, bus 2096 drivers/media/platform/omap3isp/isp.c buscfg->bus.csi2.lanecfg.data[i].pos); bus 2102 drivers/media/platform/omap3isp/isp.c buscfg->bus.csi2.crc = 1; bus 2109 drivers/media/platform/omap3isp/isp.c buscfg->bus.ccp2.lanecfg.clk.pos = vep->bus.mipi_csi1.clock_lane; bus 2110 drivers/media/platform/omap3isp/isp.c buscfg->bus.ccp2.lanecfg.clk.pol = vep->bus.mipi_csi1.lane_polarity[0]; bus 2112 drivers/media/platform/omap3isp/isp.c buscfg->bus.ccp2.lanecfg.clk.pol, bus 2113 drivers/media/platform/omap3isp/isp.c buscfg->bus.ccp2.lanecfg.clk.pos); bus 2115 drivers/media/platform/omap3isp/isp.c buscfg->bus.ccp2.lanecfg.data[0].pos = vep->bus.mipi_csi1.data_lane; bus 2116 drivers/media/platform/omap3isp/isp.c buscfg->bus.ccp2.lanecfg.data[0].pol = bus 2117 drivers/media/platform/omap3isp/isp.c vep->bus.mipi_csi1.lane_polarity[1]; bus 2120 drivers/media/platform/omap3isp/isp.c buscfg->bus.ccp2.lanecfg.data[0].pol, bus 2121 drivers/media/platform/omap3isp/isp.c buscfg->bus.ccp2.lanecfg.data[0].pos); bus 2123 drivers/media/platform/omap3isp/isp.c buscfg->bus.ccp2.strobe_clk_pol = vep->bus.mipi_csi1.clock_inv; bus 2124 drivers/media/platform/omap3isp/isp.c buscfg->bus.ccp2.phy_layer = vep->bus.mipi_csi1.strobe; bus 2125 drivers/media/platform/omap3isp/isp.c buscfg->bus.ccp2.ccp2_mode = vep->bus_type == V4L2_MBUS_CCP2; bus 2126 drivers/media/platform/omap3isp/isp.c buscfg->bus.ccp2.vp_clk_pol = 1; bus 2128 drivers/media/platform/omap3isp/isp.c buscfg->bus.ccp2.crc = 1; bus 2141 drivers/media/platform/omap3isp/isp.c *buscfg = &__isd->bus; bus 224 drivers/media/platform/omap3isp/isp.h struct isp_bus_cfg bus; bus 228 drivers/media/platform/omap3isp/isp.h (&container_of((sd)->asd, struct isp_async_subdev, asd)->bus) bus 1142 drivers/media/platform/omap3isp/ispccdc.c parcfg = &v4l2_subdev_to_bus_cfg(sd)->bus.parallel; bus 2418 drivers/media/platform/omap3isp/ispccdc.c parallel_shift = bus_cfg->bus.parallel.data_lane_shift; bus 364 drivers/media/platform/omap3isp/ispccp2.c ret = ccp2_phyif_config(ccp2, &buscfg->bus.ccp2); bus 368 drivers/media/platform/omap3isp/ispccp2.c ccp2_vp_config(ccp2, buscfg->bus.ccp2.vpclk_div + 1); bus 375 drivers/media/platform/omap3isp/ispccp2.c ccp2->if_cfg.crc = buscfg->bus.ccp2.crc; bus 578 drivers/media/platform/omap3isp/ispcsi2.c csi2->ctrl.ecc_enable = buscfg->bus.csi2.crc; bus 174 drivers/media/platform/omap3isp/ispcsiphy.c lanes = &buscfg->bus.ccp2.lanecfg; bus 177 drivers/media/platform/omap3isp/ispcsiphy.c lanes = &buscfg->bus.csi2.lanecfg; bus 178 drivers/media/platform/omap3isp/ispcsiphy.c num_data_lanes = buscfg->bus.csi2.num_data_lanes; bus 207 drivers/media/platform/omap3isp/ispcsiphy.c buscfg->bus.ccp2.phy_layer); bus 312 drivers/media/platform/omap3isp/ispcsiphy.c buscfg->bus.ccp2.phy_layer); bus 127 drivers/media/platform/omap3isp/omap3isp.h } bus; /* gcc < 4.6.0 chokes on anonymous union initializers */ bus 2314 drivers/media/platform/pxa_camera.c switch (ep.bus.parallel.bus_width) { bus 2334 drivers/media/platform/pxa_camera.c if (ep.bus.parallel.flags & V4L2_MBUS_MASTER) bus 2336 drivers/media/platform/pxa_camera.c if (ep.bus.parallel.flags & V4L2_MBUS_HSYNC_ACTIVE_HIGH) bus 2338 drivers/media/platform/pxa_camera.c if (ep.bus.parallel.flags & V4L2_MBUS_VSYNC_ACTIVE_HIGH) bus 2340 drivers/media/platform/pxa_camera.c if (ep.bus.parallel.flags & V4L2_MBUS_PCLK_SAMPLE_RISING) bus 2342 drivers/media/platform/pxa_camera.c if (ep.bus.parallel.flags & V4L2_MBUS_PCLK_SAMPLE_FALLING) bus 439 drivers/media/platform/qcom/camss/camss.c mipi_csi2 = &vep.bus.mipi_csi2; bus 630 drivers/media/platform/rcar-vin/rcar-core.c vin->parallel->mbus_flags = vep->bus.parallel.flags; bus 790 drivers/media/platform/rcar-vin/rcar-csi2.c priv->lanes = vep->bus.mipi_csi2.num_data_lanes; bus 799 drivers/media/platform/rcar-vin/rcar-csi2.c vep->bus.mipi_csi2.data_lanes[i] : i; bus 1556 drivers/media/platform/renesas-ceu.c .bus = { bus 1585 drivers/media/platform/renesas-ceu.c ceu_sd->mbus_flags = fw_ep.bus.parallel.flags; bus 159 drivers/media/platform/stm32/stm32-dcmi.c struct v4l2_fwnode_bus_parallel bus; bus 753 drivers/media/platform/stm32/stm32-dcmi.c switch (dcmi->bus.bus_width) { bus 769 drivers/media/platform/stm32/stm32-dcmi.c if (dcmi->bus.flags & V4L2_MBUS_VSYNC_ACTIVE_HIGH) bus 773 drivers/media/platform/stm32/stm32-dcmi.c if (dcmi->bus.flags & V4L2_MBUS_HSYNC_ACTIVE_HIGH) bus 777 drivers/media/platform/stm32/stm32-dcmi.c if (dcmi->bus.flags & V4L2_MBUS_PCLK_SAMPLE_RISING) bus 1878 drivers/media/platform/stm32/stm32-dcmi.c dcmi->bus.flags = ep.bus.parallel.flags; bus 1879 drivers/media/platform/stm32/stm32-dcmi.c dcmi->bus.bus_width = ep.bus.parallel.bus_width; bus 1880 drivers/media/platform/stm32/stm32-dcmi.c dcmi->bus.data_shift = ep.bus.parallel.data_shift; bus 128 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.c csi->bus = vep.bus.parallel; bus 125 drivers/media/platform/sunxi/sun4i-csi/sun4i_csi.h struct v4l2_fwnode_bus_parallel bus; bus 229 drivers/media/platform/sunxi/sun4i-csi/sun4i_dma.c struct v4l2_fwnode_bus_parallel *bus = &csi->bus; bus 289 drivers/media/platform/sunxi/sun4i-csi/sun4i_dma.c href_pol = !!(bus->flags & V4L2_MBUS_HSYNC_ACTIVE_LOW); bus 290 drivers/media/platform/sunxi/sun4i-csi/sun4i_dma.c vref_pol = !!(bus->flags & V4L2_MBUS_VSYNC_ACTIVE_LOW); bus 291 drivers/media/platform/sunxi/sun4i-csi/sun4i_dma.c pclk_pol = !!(bus->flags & V4L2_MBUS_PCLK_SAMPLE_RISING); bus 62 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c && sdev->csi.v4l2_ep.bus.parallel.bus_width == 16) { bus 387 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c bus_width = endpoint->bus.parallel.bus_width; bus 406 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c flags = endpoint->bus.parallel.flags; bus 425 drivers/media/platform/sunxi/sun6i-csi/sun6i_csi.c flags = endpoint->bus.parallel.flags; bus 603 drivers/media/platform/ti-vpe/cal.c &ctx->endpoint.bus.mipi_csi2; bus 1709 drivers/media/platform/ti-vpe/cal.c ctx_dbg(3, ctx, "flags=0x%08x\n", endpoint->bus.mipi_csi2.flags); bus 1710 drivers/media/platform/ti-vpe/cal.c ctx_dbg(3, ctx, "clock_lane=%d\n", endpoint->bus.mipi_csi2.clock_lane); bus 1712 drivers/media/platform/ti-vpe/cal.c endpoint->bus.mipi_csi2.num_data_lanes); bus 1714 drivers/media/platform/ti-vpe/cal.c for (lane = 0; lane < endpoint->bus.mipi_csi2.num_data_lanes; lane++) bus 1716 drivers/media/platform/ti-vpe/cal.c endpoint->bus.mipi_csi2.data_lanes[lane]); bus 2437 drivers/media/rc/imon.c usbdev->bus->busnum, usbdev->devnum); bus 141 drivers/media/rc/mtk-cir.c struct clk *bus; bus 156 drivers/media/rc/mtk-cir.c clk_get_rate(ir->bus) / ir->data->div); bus 165 drivers/media/rc/mtk-cir.c clk_get_rate(ir->bus) / ir->data->div); bus 317 drivers/media/rc/mtk-cir.c ir->bus = devm_clk_get(dev, "bus"); bus 318 drivers/media/rc/mtk-cir.c if (IS_ERR(ir->bus)) { bus 323 drivers/media/rc/mtk-cir.c ir->bus = ir->clk; bus 369 drivers/media/rc/mtk-cir.c if (clk_prepare_enable(ir->bus)) { bus 420 drivers/media/rc/mtk-cir.c clk_disable_unprepare(ir->bus); bus 439 drivers/media/rc/mtk-cir.c clk_disable_unprepare(ir->bus); bus 430 drivers/media/rc/streamzap.c usbdev->bus->busnum, usbdev->devnum); bus 52 drivers/media/usb/cx231xx/cx231xx-i2c.c static inline bool is_tuner(struct cx231xx *dev, struct cx231xx_i2c *bus, bus 55 drivers/media/usb/cx231xx/cx231xx-i2c.c int i2c_port = get_real_i2c_port(dev, bus->nr); bus 75 drivers/media/usb/cx231xx/cx231xx-i2c.c struct cx231xx_i2c *bus = i2c_adap->algo_data; bus 76 drivers/media/usb/cx231xx/cx231xx-i2c.c struct cx231xx *dev = bus->dev; bus 86 drivers/media/usb/cx231xx/cx231xx-i2c.c if (is_tuner(dev, bus, msg, TUNER_XC5000)) { bus 145 drivers/media/usb/cx231xx/cx231xx-i2c.c bus->i2c_nostop = (size > 16) ? 1 : 0; bus 146 drivers/media/usb/cx231xx/cx231xx-i2c.c bus->i2c_reserve = (loop == 0) ? 0 : 1; bus 149 drivers/media/usb/cx231xx/cx231xx-i2c.c status = dev->cx231xx_send_usb_command(bus, &req_data); bus 159 drivers/media/usb/cx231xx/cx231xx-i2c.c bus->i2c_nostop = 0; bus 160 drivers/media/usb/cx231xx/cx231xx-i2c.c bus->i2c_reserve = 0; bus 173 drivers/media/usb/cx231xx/cx231xx-i2c.c status = dev->cx231xx_send_usb_command(bus, &req_data); bus 186 drivers/media/usb/cx231xx/cx231xx-i2c.c struct cx231xx_i2c *bus = i2c_adap->algo_data; bus 187 drivers/media/usb/cx231xx/cx231xx-i2c.c struct cx231xx *dev = bus->dev; bus 193 drivers/media/usb/cx231xx/cx231xx-i2c.c if (is_tuner(dev, bus, msg, TUNER_XC5000)) { bus 246 drivers/media/usb/cx231xx/cx231xx-i2c.c status = dev->cx231xx_send_usb_command(bus, &req_data); bus 259 drivers/media/usb/cx231xx/cx231xx-i2c.c status = dev->cx231xx_send_usb_command(bus, &req_data); bus 273 drivers/media/usb/cx231xx/cx231xx-i2c.c struct cx231xx_i2c *bus = i2c_adap->algo_data; bus 274 drivers/media/usb/cx231xx/cx231xx-i2c.c struct cx231xx *dev = bus->dev; bus 285 drivers/media/usb/cx231xx/cx231xx-i2c.c if (is_tuner(dev, bus, msg2, TUNER_XC5000)) { bus 324 drivers/media/usb/cx231xx/cx231xx-i2c.c status = dev->cx231xx_send_usb_command(bus, &req_data); bus 336 drivers/media/usb/cx231xx/cx231xx-i2c.c struct cx231xx_i2c *bus = i2c_adap->algo_data; bus 337 drivers/media/usb/cx231xx/cx231xx-i2c.c struct cx231xx *dev = bus->dev; bus 351 drivers/media/usb/cx231xx/cx231xx-i2c.c status = dev->cx231xx_send_usb_command(bus, &req_data); bus 363 drivers/media/usb/cx231xx/cx231xx-i2c.c struct cx231xx_i2c *bus = i2c_adap->algo_data; bus 364 drivers/media/usb/cx231xx/cx231xx-i2c.c struct cx231xx *dev = bus->dev; bus 393 drivers/media/usb/cx231xx/cx231xx-i2c.c && (msgs[i].len <= 2) && (bus->nr < 3)) { bus 514 drivers/media/usb/cx231xx/cx231xx-i2c.c int cx231xx_i2c_register(struct cx231xx_i2c *bus) bus 516 drivers/media/usb/cx231xx/cx231xx-i2c.c struct cx231xx *dev = bus->dev; bus 520 drivers/media/usb/cx231xx/cx231xx-i2c.c bus->i2c_adap = cx231xx_adap_template; bus 521 drivers/media/usb/cx231xx/cx231xx-i2c.c bus->i2c_adap.dev.parent = dev->dev; bus 523 drivers/media/usb/cx231xx/cx231xx-i2c.c snprintf(bus->i2c_adap.name, sizeof(bus->i2c_adap.name), "%s-%d", bus->dev->name, bus->nr); bus 525 drivers/media/usb/cx231xx/cx231xx-i2c.c bus->i2c_adap.algo_data = bus; bus 526 drivers/media/usb/cx231xx/cx231xx-i2c.c i2c_set_adapdata(&bus->i2c_adap, &dev->v4l2_dev); bus 527 drivers/media/usb/cx231xx/cx231xx-i2c.c bus->i2c_rc = i2c_add_adapter(&bus->i2c_adap); bus 529 drivers/media/usb/cx231xx/cx231xx-i2c.c if (0 != bus->i2c_rc) bus 531 drivers/media/usb/cx231xx/cx231xx-i2c.c "i2c bus %d register FAILED\n", bus->nr); bus 533 drivers/media/usb/cx231xx/cx231xx-i2c.c return bus->i2c_rc; bus 540 drivers/media/usb/cx231xx/cx231xx-i2c.c void cx231xx_i2c_unregister(struct cx231xx_i2c *bus) bus 542 drivers/media/usb/cx231xx/cx231xx-i2c.c if (!bus->i2c_rc) bus 543 drivers/media/usb/cx231xx/cx231xx-i2c.c i2c_del_adapter(&bus->i2c_adap); bus 752 drivers/media/usb/cx231xx/cx231xx.h int cx231xx_i2c_register(struct cx231xx_i2c *bus); bus 753 drivers/media/usb/cx231xx/cx231xx.h void cx231xx_i2c_unregister(struct cx231xx_i2c *bus); bus 535 drivers/media/usb/em28xx/em28xx-i2c.c unsigned int bus = i2c_bus->bus; bus 551 drivers/media/usb/em28xx/em28xx-i2c.c if (bus != dev->cur_i2c_bus && bus 553 drivers/media/usb/em28xx/em28xx-i2c.c if (bus == 1) bus 559 drivers/media/usb/em28xx/em28xx-i2c.c dev->cur_i2c_bus = bus; bus 638 drivers/media/usb/em28xx/em28xx-i2c.c static int em28xx_i2c_read_block(struct em28xx *dev, unsigned int bus, u16 addr, bus 650 drivers/media/usb/em28xx/em28xx-i2c.c ret = i2c_master_send(&dev->i2c_client[bus], bus 665 drivers/media/usb/em28xx/em28xx-i2c.c ret = i2c_master_recv(&dev->i2c_client[bus], data, rsize); bus 676 drivers/media/usb/em28xx/em28xx-i2c.c static int em28xx_i2c_eeprom(struct em28xx *dev, unsigned int bus, bus 694 drivers/media/usb/em28xx/em28xx-i2c.c dev->i2c_client[bus].addr = 0xa0 >> 1; bus 697 drivers/media/usb/em28xx/em28xx-i2c.c err = i2c_master_recv(&dev->i2c_client[bus], &buf, 0); bus 708 drivers/media/usb/em28xx/em28xx-i2c.c err = em28xx_i2c_read_block(dev, bus, 0x0000, bus 758 drivers/media/usb/em28xx/em28xx-i2c.c err = em28xx_i2c_read_block(dev, bus, mc_start + 46, 1, 2, bus 777 drivers/media/usb/em28xx/em28xx-i2c.c err = em28xx_i2c_read_block(dev, bus, hwconf_offset, 1, len, bus 946 drivers/media/usb/em28xx/em28xx-i2c.c void em28xx_do_i2c_scan(struct em28xx *dev, unsigned int bus) bus 955 drivers/media/usb/em28xx/em28xx-i2c.c dev->i2c_client[bus].addr = i; bus 956 drivers/media/usb/em28xx/em28xx-i2c.c rc = i2c_master_recv(&dev->i2c_client[bus], &buf, 0); bus 962 drivers/media/usb/em28xx/em28xx-i2c.c i << 1, bus, i2c_devs[i] ? i2c_devs[i] : "???"); bus 965 drivers/media/usb/em28xx/em28xx-i2c.c if (bus == dev->def_i2c_bus) bus 974 drivers/media/usb/em28xx/em28xx-i2c.c int em28xx_i2c_register(struct em28xx *dev, unsigned int bus, bus 983 drivers/media/usb/em28xx/em28xx-i2c.c if (bus >= NUM_I2C_BUSES) bus 986 drivers/media/usb/em28xx/em28xx-i2c.c dev->i2c_adap[bus] = em28xx_adap_template; bus 987 drivers/media/usb/em28xx/em28xx-i2c.c dev->i2c_adap[bus].dev.parent = &dev->intf->dev; bus 988 drivers/media/usb/em28xx/em28xx-i2c.c strscpy(dev->i2c_adap[bus].name, dev_name(&dev->intf->dev), bus 989 drivers/media/usb/em28xx/em28xx-i2c.c sizeof(dev->i2c_adap[bus].name)); bus 991 drivers/media/usb/em28xx/em28xx-i2c.c dev->i2c_bus[bus].bus = bus; bus 992 drivers/media/usb/em28xx/em28xx-i2c.c dev->i2c_bus[bus].algo_type = algo_type; bus 993 drivers/media/usb/em28xx/em28xx-i2c.c dev->i2c_bus[bus].dev = dev; bus 994 drivers/media/usb/em28xx/em28xx-i2c.c dev->i2c_adap[bus].algo_data = &dev->i2c_bus[bus]; bus 996 drivers/media/usb/em28xx/em28xx-i2c.c retval = i2c_add_adapter(&dev->i2c_adap[bus]); bus 1004 drivers/media/usb/em28xx/em28xx-i2c.c dev->i2c_client[bus] = em28xx_client_template; bus 1005 drivers/media/usb/em28xx/em28xx-i2c.c dev->i2c_client[bus].adapter = &dev->i2c_adap[bus]; bus 1008 drivers/media/usb/em28xx/em28xx-i2c.c if (!bus) { bus 1009 drivers/media/usb/em28xx/em28xx-i2c.c retval = em28xx_i2c_eeprom(dev, bus, bus 1019 drivers/media/usb/em28xx/em28xx-i2c.c em28xx_do_i2c_scan(dev, bus); bus 1028 drivers/media/usb/em28xx/em28xx-i2c.c int em28xx_i2c_unregister(struct em28xx *dev, unsigned int bus) bus 1030 drivers/media/usb/em28xx/em28xx-i2c.c if (bus >= NUM_I2C_BUSES) bus 1033 drivers/media/usb/em28xx/em28xx-i2c.c i2c_del_adapter(&dev->i2c_adap[bus]); bus 638 drivers/media/usb/em28xx/em28xx.h unsigned int bus; bus 797 drivers/media/usb/em28xx/em28xx.h void em28xx_do_i2c_scan(struct em28xx *dev, unsigned int bus); bus 798 drivers/media/usb/em28xx/em28xx.h int em28xx_i2c_register(struct em28xx *dev, unsigned int bus, bus 800 drivers/media/usb/em28xx/em28xx.h int em28xx_i2c_unregister(struct em28xx *dev, unsigned int bus); bus 50 drivers/media/usb/hdpvr/hdpvr-i2c.c static int hdpvr_i2c_read(struct hdpvr_device *dev, int bus, bus 63 drivers/media/usb/hdpvr/hdpvr-i2c.c (bus << 8) | addr, 0, dev->i2c_buf, bus 71 drivers/media/usb/hdpvr/hdpvr-i2c.c (bus << 8) | addr, 0, dev->i2c_buf, len, 1000); bus 82 drivers/media/usb/hdpvr/hdpvr-i2c.c static int hdpvr_i2c_write(struct hdpvr_device *dev, int bus, bus 93 drivers/media/usb/hdpvr/hdpvr-i2c.c (bus << 8) | addr, 0, dev->i2c_buf, len, 1000); bus 550 drivers/media/usb/siano/smsusb.c udev->bus->busnum, udev->devpath); bus 435 drivers/media/usb/tm6000/tm6000-alsa.c dev->udev->bus->busnum, dev->udev->devnum); bus 364 drivers/media/usb/usbtv/usbtv-audio.c "USBTV Audio at bus %d device %d", usbtv->udev->bus->busnum, bus 183 drivers/media/usb/usbvision/usbvision-i2c.c usbvision->dev->bus->busnum, usbvision->dev->devpath); bus 82 drivers/media/usb/uvc/uvc_debugfs.c snprintf(dir_name, sizeof(dir_name), "%u-%u-%u", udev->bus->busnum, bus 133 drivers/media/v4l2-core/v4l2-fwnode.c struct v4l2_fwnode_bus_mipi_csi2 *bus = &vep->bus.mipi_csi2; bus 149 drivers/media/v4l2-core/v4l2-fwnode.c num_data_lanes = min_t(u32, bus->num_data_lanes, bus 152 drivers/media/v4l2-core/v4l2-fwnode.c clock_lane = bus->clock_lane; bus 157 drivers/media/v4l2-core/v4l2-fwnode.c array[i] = bus->data_lanes[i]; bus 232 drivers/media/v4l2-core/v4l2-fwnode.c bus->flags = flags; bus 235 drivers/media/v4l2-core/v4l2-fwnode.c bus->num_data_lanes = num_data_lanes; bus 238 drivers/media/v4l2-core/v4l2-fwnode.c bus->clock_lane = 0; bus 240 drivers/media/v4l2-core/v4l2-fwnode.c bus->data_lanes[i] = dfl_data_lane_index + i; bus 242 drivers/media/v4l2-core/v4l2-fwnode.c bus->clock_lane = clock_lane; bus 244 drivers/media/v4l2-core/v4l2-fwnode.c bus->data_lanes[i] = array[i]; bus 253 drivers/media/v4l2-core/v4l2-fwnode.c bus->lane_polarities[i] = array[i]; bus 277 drivers/media/v4l2-core/v4l2-fwnode.c struct v4l2_fwnode_bus_parallel *bus = &vep->bus.parallel; bus 282 drivers/media/v4l2-core/v4l2-fwnode.c flags = bus->flags; bus 334 drivers/media/v4l2-core/v4l2-fwnode.c bus->bus_width = v; bus 339 drivers/media/v4l2-core/v4l2-fwnode.c bus->data_shift = v; bus 361 drivers/media/v4l2-core/v4l2-fwnode.c bus->flags = flags; bus 369 drivers/media/v4l2-core/v4l2-fwnode.c bus->flags = flags; bus 373 drivers/media/v4l2-core/v4l2-fwnode.c bus->flags = flags & ~PARALLEL_MBUS_FLAGS; bus 383 drivers/media/v4l2-core/v4l2-fwnode.c struct v4l2_fwnode_bus_mipi_csi1 *bus = &vep->bus.mipi_csi1; bus 387 drivers/media/v4l2-core/v4l2-fwnode.c bus->clock_inv = v; bus 392 drivers/media/v4l2-core/v4l2-fwnode.c bus->strobe = v; bus 397 drivers/media/v4l2-core/v4l2-fwnode.c bus->data_lane = v; bus 402 drivers/media/v4l2-core/v4l2-fwnode.c bus->clock_lane = v; bus 421 drivers/media/v4l2-core/v4l2-fwnode.c memset(&vep->bus, 0, bus 422 drivers/media/v4l2-core/v4l2-fwnode.c sizeof(*vep) - offsetof(typeof(*vep), bus)); bus 507 drivers/media/v4l2-core/videobuf-dma-sg.c dma_addr_t bus; bus 558 drivers/media/v4l2-core/videobuf-dma-sg.c bus = (dma_addr_t)(unsigned long)fbuf->base + vb->boff; bus 561 drivers/media/v4l2-core/videobuf-dma-sg.c bus, pages); bus 389 drivers/memstick/core/memstick.c card->dev.bus = &memstick_bus_type; bus 606 drivers/memstick/core/memstick.c drv->driver.bus = &memstick_bus_type; bus 2657 drivers/message/fusion/mptbase.c ioc->name, pci_name(pdev), pdev->bus->number, bus 2660 drivers/message/fusion/mptbase.c peer = pci_get_slot(pdev->bus, PCI_DEVFN(slot,func-1)); bus 2662 drivers/message/fusion/mptbase.c peer = pci_get_slot(pdev->bus, PCI_DEVFN(slot,func+1)); bus 1295 drivers/message/fusion/mptctl.c karg->pciInfo.u.bits.busNumber = pdev->bus->number; bus 1301 drivers/message/fusion/mptctl.c karg->pciInfo.u.bits.busNumber = pdev->bus->number; bus 1304 drivers/message/fusion/mptctl.c karg->pciInfo.segmentID = pci_domain_nr(pdev->bus); bus 2369 drivers/message/fusion/mptctl.c karg.bus = pdev->bus->number; bus 387 drivers/message/fusion/mptctl.h u8 bus; bus 410 drivers/message/fusion/mptctl.h u8 bus; bus 1123 drivers/mfd/lpc_ich.c struct pci_bus *bus = dev->bus; bus 1130 drivers/mfd/lpc_ich.c pci_bus_write_config_byte(bus, p2sb, 0xe1, 0x0); bus 1131 drivers/mfd/lpc_ich.c pci_bus_read_config_dword(bus, spi, PCI_BASE_ADDRESS_0, bus 1137 drivers/mfd/lpc_ich.c pci_bus_read_config_dword(bus, spi, BCR, &bcr); bus 1141 drivers/mfd/lpc_ich.c pci_bus_write_config_byte(bus, p2sb, 0xe1, 0x1); bus 180 drivers/mfd/mcp-core.c mcp->attached_device.bus = &mcp_bus_type; bus 210 drivers/mfd/mcp-core.c mcpdrv->drv.bus = &mcp_bus_type; bus 235 drivers/mfd/sprd-sc27xx-spi.c .bus = &spi_bus_type, bus 141 drivers/mfd/ucb1400_core.c .bus = &ac97_bus_type, bus 87 drivers/mfd/viperboard.c vb->usb_dev->bus->busnum, vb->usb_dev->devnum); bus 263 drivers/misc/cardreader/alcor_pci.c priv->parent_pdev = pdev->bus->self; bus 626 drivers/misc/cardreader/rtsx_usb.c usb_dev->bus->busnum, usb_dev->devnum); bus 42 drivers/misc/cb710/core.c pdev0 = pci_get_slot(pdev->bus, devfn); bus 27 drivers/misc/cxl/guest.c list_for_each_entry(afu_dev, &afu->phb->bus->devices, bus_list) { bus 1807 drivers/misc/cxl/pci.c list_for_each_entry(afu_dev, &afu->phb->bus->devices, bus_list) { bus 2005 drivers/misc/cxl/pci.c list_for_each_entry(afu_dev, &afu->phb->bus->devices, bus_list) { bus 2076 drivers/misc/cxl/pci.c list_for_each_entry(afu_dev, &afu->phb->bus->devices, bus_list) { bus 10 drivers/misc/cxl/vphb.c static int cxl_pci_probe_mode(struct pci_bus *bus) bus 34 drivers/misc/cxl/vphb.c phb = pci_bus_to_host(dev->bus); bus 70 drivers/misc/cxl/vphb.c static resource_size_t cxl_pci_window_alignment(struct pci_bus *bus, bus 81 drivers/misc/cxl/vphb.c static int cxl_pcie_cfg_record(u8 bus, u8 devfn) bus 83 drivers/misc/cxl/vphb.c return (bus << 8) + devfn; bus 86 drivers/misc/cxl/vphb.c static inline struct cxl_afu *pci_bus_to_afu(struct pci_bus *bus) bus 88 drivers/misc/cxl/vphb.c struct pci_controller *phb = bus ? pci_bus_to_host(bus) : NULL; bus 103 drivers/misc/cxl/vphb.c static inline int cxl_pcie_config_info(struct pci_bus *bus, unsigned int devfn, bus 108 drivers/misc/cxl/vphb.c record = cxl_pcie_cfg_record(bus->number, devfn); bus 116 drivers/misc/cxl/vphb.c static int cxl_pcie_read_config(struct pci_bus *bus, unsigned int devfn, bus 125 drivers/misc/cxl/vphb.c afu = pci_bus_to_afu(bus); bus 130 drivers/misc/cxl/vphb.c rc = cxl_pcie_config_info(bus, devfn, afu, &record); bus 156 drivers/misc/cxl/vphb.c static int cxl_pcie_write_config(struct pci_bus *bus, unsigned int devfn, bus 162 drivers/misc/cxl/vphb.c afu = pci_bus_to_afu(bus); bus 167 drivers/misc/cxl/vphb.c rc = cxl_pcie_config_info(bus, devfn, afu, &record); bus 253 drivers/misc/cxl/vphb.c if (phb->bus == NULL) bus 257 drivers/misc/cxl/vphb.c pci_set_host_bridge_release(to_pci_host_bridge(phb->bus->bridge), bus 265 drivers/misc/cxl/vphb.c pcibios_claim_one_bus(phb->bus); bus 268 drivers/misc/cxl/vphb.c pci_bus_add_devices(phb->bus); bus 286 drivers/misc/cxl/vphb.c pci_remove_root_bus(phb->bus); bus 297 drivers/misc/cxl/vphb.c phb = pci_bus_to_host(dev->bus); bus 306 drivers/misc/cxl/vphb.c phb = pci_bus_to_host(dev->bus); bus 314 drivers/misc/cxl/vphb.c return cxl_pcie_cfg_record(dev->bus->number, dev->devfn); bus 174 drivers/misc/habanalabs/pci.c parent_port = pdev->bus->self; bus 238 drivers/misc/habanalabs/sysfs.c pci_domain_nr(hdev->pdev->bus), bus 239 drivers/misc/habanalabs/sysfs.c hdev->pdev->bus->number, bus 79 drivers/misc/ibmasm/module.c sp->number = pdev->bus->number; bus 198 drivers/misc/mei/bus-fixup.c memset(cldev->bus->fw_ver, 0, sizeof(cldev->bus->fw_ver)); bus 207 drivers/misc/mei/bus-fixup.c cldev->bus->fw_ver[i].platform = fwver->ver[i].platform; bus 208 drivers/misc/mei/bus-fixup.c cldev->bus->fw_ver[i].major = fwver->ver[i].major; bus 209 drivers/misc/mei/bus-fixup.c cldev->bus->fw_ver[i].minor = fwver->ver[i].minor; bus 210 drivers/misc/mei/bus-fixup.c cldev->bus->fw_ver[i].hotfix = fwver->ver[i].hotfix; bus 211 drivers/misc/mei/bus-fixup.c cldev->bus->fw_ver[i].buildno = fwver->ver[i].buildno; bus 222 drivers/misc/mei/bus-fixup.c if (!cldev->bus->fw_f_fw_ver_supported && bus 223 drivers/misc/mei/bus-fixup.c !cldev->bus->hbm_f_os_supported) bus 230 drivers/misc/mei/bus-fixup.c if (cldev->bus->fw_f_fw_ver_supported) { bus 237 drivers/misc/mei/bus-fixup.c if (cldev->bus->hbm_f_os_supported) { bus 325 drivers/misc/mei/bus-fixup.c struct mei_device *bus; bus 335 drivers/misc/mei/bus-fixup.c bus = cl->dev; bus 337 drivers/misc/mei/bus-fixup.c WARN_ON(mutex_is_locked(&bus->device_lock)); bus 342 drivers/misc/mei/bus-fixup.c dev_err(bus->dev, "Could not send IF version cmd\n"); bus 357 drivers/misc/mei/bus-fixup.c dev_err(bus->dev, "Could not read IF version\n"); bus 364 drivers/misc/mei/bus-fixup.c dev_info(bus->dev, "NFC MEI VERSION: IVN 0x%x Vendor ID 0x%x Type 0x%x\n", bus 404 drivers/misc/mei/bus-fixup.c struct mei_device *bus; bus 411 drivers/misc/mei/bus-fixup.c bus = cldev->bus; bus 415 drivers/misc/mei/bus-fixup.c mutex_lock(&bus->device_lock); bus 417 drivers/misc/mei/bus-fixup.c cl = mei_cl_alloc_linked(bus); bus 421 drivers/misc/mei/bus-fixup.c dev_err(bus->dev, "nfc hook alloc failed %d\n", ret); bus 425 drivers/misc/mei/bus-fixup.c me_cl = mei_me_cl_by_uuid(bus, &mei_nfc_info_guid); bus 428 drivers/misc/mei/bus-fixup.c dev_err(bus->dev, "Cannot find nfc info %d\n", ret); bus 439 drivers/misc/mei/bus-fixup.c mutex_unlock(&bus->device_lock); bus 454 drivers/misc/mei/bus-fixup.c dev_dbg(bus->dev, "nfc radio %s\n", radio_name); bus 458 drivers/misc/mei/bus-fixup.c mutex_lock(&bus->device_lock); bus 460 drivers/misc/mei/bus-fixup.c dev_err(bus->dev, "Can't disconnect the NFC INFO ME\n"); bus 466 drivers/misc/mei/bus-fixup.c mutex_unlock(&bus->device_lock); bus 473 drivers/misc/mei/bus-fixup.c dev_dbg(bus->dev, "end of fixup match = %d\n", cldev->do_match); bus 36 drivers/misc/mei/bus.c struct mei_device *bus; bus 43 drivers/misc/mei/bus.c bus = cl->dev; bus 45 drivers/misc/mei/bus.c mutex_lock(&bus->device_lock); bus 46 drivers/misc/mei/bus.c if (bus->dev_state != MEI_DEV_ENABLED) { bus 67 drivers/misc/mei/bus.c while (cl->tx_cb_queued >= bus->tx_queue_limit) { bus 68 drivers/misc/mei/bus.c mutex_unlock(&bus->device_lock); bus 72 drivers/misc/mei/bus.c mutex_lock(&bus->device_lock); bus 97 drivers/misc/mei/bus.c mutex_unlock(&bus->device_lock); bus 116 drivers/misc/mei/bus.c struct mei_device *bus; bus 125 drivers/misc/mei/bus.c bus = cl->dev; bus 127 drivers/misc/mei/bus.c mutex_lock(&bus->device_lock); bus 128 drivers/misc/mei/bus.c if (bus->dev_state != MEI_DEV_ENABLED) { bus 150 drivers/misc/mei/bus.c mutex_unlock(&bus->device_lock); bus 176 drivers/misc/mei/bus.c mutex_lock(&bus->device_lock); bus 203 drivers/misc/mei/bus.c mutex_unlock(&bus->device_lock); bus 269 drivers/misc/mei/bus.c struct mei_device *bus; bus 273 drivers/misc/mei/bus.c bus = cldev->bus; bus 278 drivers/misc/mei/bus.c mutex_lock(&bus->device_lock); bus 280 drivers/misc/mei/bus.c mutex_unlock(&bus->device_lock); bus 355 drivers/misc/mei/bus.c struct mei_device *bus = cldev->bus; bus 366 drivers/misc/mei/bus.c mutex_lock(&bus->device_lock); bus 368 drivers/misc/mei/bus.c mutex_unlock(&bus->device_lock); bus 389 drivers/misc/mei/bus.c struct mei_device *bus = cldev->bus; bus 401 drivers/misc/mei/bus.c mutex_lock(&bus->device_lock); bus 403 drivers/misc/mei/bus.c mutex_unlock(&bus->device_lock); bus 485 drivers/misc/mei/bus.c return try_module_get(cldev->bus->dev->driver->owner); bus 495 drivers/misc/mei/bus.c module_put(cldev->bus->dev->driver->owner); bus 508 drivers/misc/mei/bus.c struct mei_device *bus = cldev->bus; bus 514 drivers/misc/mei/bus.c mutex_lock(&bus->device_lock); bus 539 drivers/misc/mei/bus.c mutex_unlock(&bus->device_lock); bus 574 drivers/misc/mei/bus.c struct mei_device *bus; bus 583 drivers/misc/mei/bus.c bus = cldev->bus; bus 587 drivers/misc/mei/bus.c mutex_lock(&bus->device_lock); bus 590 drivers/misc/mei/bus.c dev_dbg(bus->dev, "Already disconnected\n"); bus 597 drivers/misc/mei/bus.c dev_err(bus->dev, "Could not disconnect from the ME client\n"); bus 604 drivers/misc/mei/bus.c mutex_unlock(&bus->device_lock); bus 842 drivers/misc/mei/bus.c static struct mei_device *mei_dev_bus_get(struct mei_device *bus) bus 844 drivers/misc/mei/bus.c if (bus) bus 845 drivers/misc/mei/bus.c get_device(bus->dev); bus 847 drivers/misc/mei/bus.c return bus; bus 850 drivers/misc/mei/bus.c static void mei_dev_bus_put(struct mei_device *bus) bus 852 drivers/misc/mei/bus.c if (bus) bus 853 drivers/misc/mei/bus.c put_device(bus->dev); bus 864 drivers/misc/mei/bus.c mei_dev_bus_put(cldev->bus); bus 884 drivers/misc/mei/bus.c dev_name(cldev->bus->dev), bus 896 drivers/misc/mei/bus.c static struct mei_cl_device *mei_cl_bus_dev_alloc(struct mei_device *bus, bus 906 drivers/misc/mei/bus.c cl = mei_cl_allocate(bus); bus 913 drivers/misc/mei/bus.c cldev->dev.parent = bus->dev; bus 914 drivers/misc/mei/bus.c cldev->dev.bus = &mei_cl_bus_type; bus 916 drivers/misc/mei/bus.c cldev->bus = mei_dev_bus_get(bus); bus 935 drivers/misc/mei/bus.c static bool mei_cl_bus_dev_setup(struct mei_device *bus, bus 959 drivers/misc/mei/bus.c dev_dbg(cldev->bus->dev, "adding %pUL:%02X\n", bus 990 drivers/misc/mei/bus.c WARN_ON(!mutex_is_locked(&cldev->bus->cl_bus_lock)); bus 1019 drivers/misc/mei/bus.c void mei_cl_bus_remove_devices(struct mei_device *bus) bus 1023 drivers/misc/mei/bus.c mutex_lock(&bus->cl_bus_lock); bus 1024 drivers/misc/mei/bus.c list_for_each_entry_safe(cldev, next, &bus->device_list, bus_list) bus 1026 drivers/misc/mei/bus.c mutex_unlock(&bus->cl_bus_lock); bus 1039 drivers/misc/mei/bus.c static void mei_cl_bus_dev_init(struct mei_device *bus, bus 1044 drivers/misc/mei/bus.c WARN_ON(!mutex_is_locked(&bus->cl_bus_lock)); bus 1046 drivers/misc/mei/bus.c dev_dbg(bus->dev, "initializing %pUl", mei_me_cl_uuid(me_cl)); bus 1051 drivers/misc/mei/bus.c cldev = mei_cl_bus_dev_alloc(bus, me_cl); bus 1056 drivers/misc/mei/bus.c list_add_tail(&cldev->bus_list, &bus->device_list); bus 1066 drivers/misc/mei/bus.c static void mei_cl_bus_rescan(struct mei_device *bus) bus 1071 drivers/misc/mei/bus.c mutex_lock(&bus->cl_bus_lock); bus 1073 drivers/misc/mei/bus.c down_read(&bus->me_clients_rwsem); bus 1074 drivers/misc/mei/bus.c list_for_each_entry(me_cl, &bus->me_clients, list) bus 1075 drivers/misc/mei/bus.c mei_cl_bus_dev_init(bus, me_cl); bus 1076 drivers/misc/mei/bus.c up_read(&bus->me_clients_rwsem); bus 1078 drivers/misc/mei/bus.c list_for_each_entry_safe(cldev, n, &bus->device_list, bus_list) { bus 1088 drivers/misc/mei/bus.c if (mei_cl_bus_dev_setup(bus, cldev)) bus 1095 drivers/misc/mei/bus.c mutex_unlock(&bus->cl_bus_lock); bus 1097 drivers/misc/mei/bus.c dev_dbg(bus->dev, "rescan end"); bus 1102 drivers/misc/mei/bus.c struct mei_device *bus = bus 1105 drivers/misc/mei/bus.c mei_cl_bus_rescan(bus); bus 1115 drivers/misc/mei/bus.c cldrv->driver.bus = &mei_cl_bus_type; bus 1349 drivers/misc/mei/hw-me.c pci_bus_read_config_dword(pdev->bus, devfn, PCI_CFG_HFS_1, ®); bus 325 drivers/misc/mei/mei_dev.h void mei_cl_bus_remove_devices(struct mei_device *bus); bus 469 drivers/misc/mei/pci-me.c if (pdev->dev.bus && pdev->dev.bus->pm) { bus 470 drivers/misc/mei/pci-me.c dev->pg_domain.ops = *pdev->dev.bus->pm; bus 357 drivers/misc/mei/pci-txe.c if (pdev->dev.bus && pdev->dev.bus->pm) { bus 358 drivers/misc/mei/pci-txe.c dev->pg_domain.ops = *pdev->dev.bus->pm; bus 42 drivers/misc/mic/bus/cosm_bus.c driver->driver.bus = &cosm_bus; bus 74 drivers/misc/mic/bus/cosm_bus.c cdev->dev.bus = &cosm_bus; bus 117 drivers/misc/mic/bus/mic_bus.c driver->driver.bus = &mic_bus; bus 155 drivers/misc/mic/bus/mic_bus.c mbdev->dev.bus = &mic_bus; bus 114 drivers/misc/mic/bus/scif_bus.c driver->driver.bus = &scif_bus; bus 155 drivers/misc/mic/bus/scif_bus.c sdev->dev.bus = &scif_bus; bus 114 drivers/misc/mic/bus/vop_bus.c driver->driver.bus = &vop_bus; bus 153 drivers/misc/mic/bus/vop_bus.c vdev->dev.bus = &vop_bus; bus 46 drivers/misc/mic/scif/scif_peer_bus.c spdev->dev.bus = &scif_peer_bus; bus 83 drivers/misc/ocxl/link.c int bus; bus 283 drivers/misc/ocxl/link.c link->domain, link->bus, link->dev); bus 355 drivers/misc/ocxl/link.c pr_debug("Allocated SPA for %x:%x:%x at %p\n", link->domain, link->bus, bus 366 drivers/misc/ocxl/link.c pr_debug("Freeing SPA for %x:%x:%x\n", link->domain, link->bus, bus 386 drivers/misc/ocxl/link.c link->domain = pci_domain_nr(dev->bus); bus 387 drivers/misc/ocxl/link.c link->bus = dev->bus->number; bus 432 drivers/misc/ocxl/link.c if (link->domain == pci_domain_nr(dev->bus) && bus 433 drivers/misc/ocxl/link.c link->bus == dev->bus->number && bus 266 drivers/misc/tifm_core.c sock->dev.bus = &tifm_bus_type; bus 316 drivers/misc/tifm_core.c drv->driver.bus = &tifm_bus_type; bus 2531 drivers/mmc/core/block.c rpmb->dev.bus = &mmc_rpmb_bus_type; bus 229 drivers/mmc/core/bus.c drv->drv.bus = &mmc_bus_type; bus 241 drivers/mmc/core/bus.c drv->drv.bus = &mmc_bus_type; bus 274 drivers/mmc/core/bus.c card->dev.bus = &mmc_bus_type; bus 249 drivers/mmc/core/sdio_bus.c drv->drv.bus = &sdio_bus_type; bus 260 drivers/mmc/core/sdio_bus.c drv->drv.bus = &sdio_bus_type; bus 302 drivers/mmc/core/sdio_bus.c func->dev.bus = &sdio_bus_type; bus 1232 drivers/mmc/host/sdhci-pci-core.c (chip->pdev->bus == sd_dev->bus)) bus 109 drivers/mmc/host/sdhci-pic32.c u32 bus = readl(host->ioaddr + SDH_SHARED_BUS_CTRL); bus 110 drivers/mmc/host/sdhci-pic32.c u32 clk_pins = (bus & SDH_SHARED_BUS_NR_CLK_PINS_MASK) >> 0; bus 111 drivers/mmc/host/sdhci-pic32.c u32 irq_pins = (bus & SDH_SHARED_BUS_NR_IRQ_PINS_MASK) >> 4; bus 115 drivers/mmc/host/sdhci-pic32.c bus |= (1 << SDH_SHARED_BUS_CLK_PINS); bus 119 drivers/mmc/host/sdhci-pic32.c bus |= (1 << SDH_SHARED_BUS_IRQ_PINS); bus 121 drivers/mmc/host/sdhci-pic32.c writel(bus, host->ioaddr + SDH_SHARED_BUS_CTRL); bus 1115 drivers/mtd/devices/spear_smi.c .bus = &platform_bus_type, bus 38 drivers/mtd/nand/raw/bcm47xxnflash/main.c if (b47n->cc->core->bus->chipinfo.id == BCMA_CHIP_ID_BCM4706) { bus 46 drivers/net/dsa/b53/b53_mdio.c struct mii_bus *bus = dev->priv; bus 51 drivers/net/dsa/b53/b53_mdio.c ret = mdiobus_write_nested(bus, BRCM_PSEUDO_PHY_ADDR, bus 60 drivers/net/dsa/b53/b53_mdio.c ret = mdiobus_write_nested(bus, BRCM_PSEUDO_PHY_ADDR, REG_MII_ADDR, v); bus 66 drivers/net/dsa/b53/b53_mdio.c v = mdiobus_read_nested(bus, BRCM_PSEUDO_PHY_ADDR, bus 81 drivers/net/dsa/b53/b53_mdio.c struct mii_bus *bus = dev->priv; bus 88 drivers/net/dsa/b53/b53_mdio.c *val = mdiobus_read_nested(bus, BRCM_PSEUDO_PHY_ADDR, bus 96 drivers/net/dsa/b53/b53_mdio.c struct mii_bus *bus = dev->priv; bus 103 drivers/net/dsa/b53/b53_mdio.c *val = mdiobus_read_nested(bus, BRCM_PSEUDO_PHY_ADDR, REG_MII_DATA0); bus 110 drivers/net/dsa/b53/b53_mdio.c struct mii_bus *bus = dev->priv; bus 117 drivers/net/dsa/b53/b53_mdio.c *val = mdiobus_read_nested(bus, BRCM_PSEUDO_PHY_ADDR, REG_MII_DATA0); bus 118 drivers/net/dsa/b53/b53_mdio.c *val |= mdiobus_read_nested(bus, BRCM_PSEUDO_PHY_ADDR, bus 126 drivers/net/dsa/b53/b53_mdio.c struct mii_bus *bus = dev->priv; bus 137 drivers/net/dsa/b53/b53_mdio.c temp |= mdiobus_read_nested(bus, BRCM_PSEUDO_PHY_ADDR, bus 148 drivers/net/dsa/b53/b53_mdio.c struct mii_bus *bus = dev->priv; bus 159 drivers/net/dsa/b53/b53_mdio.c temp |= mdiobus_read_nested(bus, BRCM_PSEUDO_PHY_ADDR, bus 170 drivers/net/dsa/b53/b53_mdio.c struct mii_bus *bus = dev->priv; bus 173 drivers/net/dsa/b53/b53_mdio.c ret = mdiobus_write_nested(bus, BRCM_PSEUDO_PHY_ADDR, bus 184 drivers/net/dsa/b53/b53_mdio.c struct mii_bus *bus = dev->priv; bus 187 drivers/net/dsa/b53/b53_mdio.c ret = mdiobus_write_nested(bus, BRCM_PSEUDO_PHY_ADDR, bus 198 drivers/net/dsa/b53/b53_mdio.c struct mii_bus *bus = dev->priv; bus 203 drivers/net/dsa/b53/b53_mdio.c int ret = mdiobus_write_nested(bus, BRCM_PSEUDO_PHY_ADDR, bus 217 drivers/net/dsa/b53/b53_mdio.c struct mii_bus *bus = dev->priv; bus 222 drivers/net/dsa/b53/b53_mdio.c int ret = mdiobus_write_nested(bus, BRCM_PSEUDO_PHY_ADDR, bus 236 drivers/net/dsa/b53/b53_mdio.c struct mii_bus *bus = dev->priv; bus 241 drivers/net/dsa/b53/b53_mdio.c int ret = mdiobus_write_nested(bus, BRCM_PSEUDO_PHY_ADDR, bus 255 drivers/net/dsa/b53/b53_mdio.c struct mii_bus *bus = dev->priv; bus 257 drivers/net/dsa/b53/b53_mdio.c *value = mdiobus_read_nested(bus, addr, reg); bus 265 drivers/net/dsa/b53/b53_mdio.c struct mii_bus *bus = dev->bus; bus 267 drivers/net/dsa/b53/b53_mdio.c return mdiobus_write_nested(bus, addr, reg, value); bus 306 drivers/net/dsa/b53/b53_mdio.c phy_id = mdiobus_read(mdiodev->bus, 0, 2) << 16; bus 307 drivers/net/dsa/b53/b53_mdio.c phy_id |= mdiobus_read(mdiodev->bus, 0, 3); bus 329 drivers/net/dsa/b53/b53_mdio.c strcmp(mdiodev->bus->name, "sf2 slave mii")) bus 332 drivers/net/dsa/b53/b53_mdio.c dev = b53_switch_alloc(&mdiodev->dev, &b53_mdio_ops, mdiodev->bus); bus 338 drivers/net/dsa/b53/b53_mdio.c dev->bus = mdiodev->bus; bus 132 drivers/net/dsa/b53/b53_priv.h struct mii_bus *bus; bus 289 drivers/net/dsa/bcm_sf2.c static int bcm_sf2_sw_mdio_read(struct mii_bus *bus, int addr, int regnum) bus 291 drivers/net/dsa/bcm_sf2.c struct bcm_sf2_priv *priv = bus->priv; bus 302 drivers/net/dsa/bcm_sf2.c static int bcm_sf2_sw_mdio_write(struct mii_bus *bus, int addr, int regnum, bus 305 drivers/net/dsa/bcm_sf2.c struct bcm_sf2_priv *priv = bus->priv; bus 53 drivers/net/dsa/dsa_loop.c struct mii_bus *bus; bus 120 drivers/net/dsa/dsa_loop.c struct mii_bus *bus = ps->bus; bus 123 drivers/net/dsa/dsa_loop.c ret = mdiobus_read_nested(bus, ps->port_base + port, regnum); bus 136 drivers/net/dsa/dsa_loop.c struct mii_bus *bus = ps->bus; bus 139 drivers/net/dsa/dsa_loop.c ret = mdiobus_write_nested(bus, ps->port_base + port, regnum, value); bus 185 drivers/net/dsa/dsa_loop.c struct mii_bus *bus = ps->bus; bus 191 drivers/net/dsa/dsa_loop.c mdiobus_read(bus, ps->port_base + port, MII_BMSR); bus 205 drivers/net/dsa/dsa_loop.c struct mii_bus *bus = ps->bus; bus 210 drivers/net/dsa/dsa_loop.c mdiobus_read(bus, ps->port_base + port, MII_BMSR); bus 234 drivers/net/dsa/dsa_loop.c struct mii_bus *bus = ps->bus; bus 239 drivers/net/dsa/dsa_loop.c mdiobus_read(bus, ps->port_base + port, MII_BMSR); bus 306 drivers/net/dsa/dsa_loop.c ps->bus = mdiodev->bus; bus 27 drivers/net/dsa/lan9303_mdio.c mdio->bus->write(mdio->bus, PHY_ADDR(reg), PHY_REG(reg), val); bus 35 drivers/net/dsa/lan9303_mdio.c mutex_lock(&sw_dev->device->bus->mdio_lock); bus 38 drivers/net/dsa/lan9303_mdio.c mutex_unlock(&sw_dev->device->bus->mdio_lock); bus 45 drivers/net/dsa/lan9303_mdio.c return mdio->bus->read(mdio->bus, PHY_ADDR(reg), PHY_REG(reg)); bus 53 drivers/net/dsa/lan9303_mdio.c mutex_lock(&sw_dev->device->bus->mdio_lock); bus 56 drivers/net/dsa/lan9303_mdio.c mutex_unlock(&sw_dev->device->bus->mdio_lock); bus 66 drivers/net/dsa/lan9303_mdio.c return mdiobus_write_nested(sw_dev->device->bus, phy, reg, val); bus 73 drivers/net/dsa/lan9303_mdio.c return mdiobus_read_nested(sw_dev->device->bus, phy, reg); bus 438 drivers/net/dsa/lantiq_gswip.c static int gswip_mdio_wr(struct mii_bus *bus, int addr, int reg, u16 val) bus 440 drivers/net/dsa/lantiq_gswip.c struct gswip_priv *priv = bus->priv; bus 445 drivers/net/dsa/lantiq_gswip.c dev_err(&bus->dev, "waiting for MDIO bus busy timed out\n"); bus 458 drivers/net/dsa/lantiq_gswip.c static int gswip_mdio_rd(struct mii_bus *bus, int addr, int reg) bus 460 drivers/net/dsa/lantiq_gswip.c struct gswip_priv *priv = bus->priv; bus 465 drivers/net/dsa/lantiq_gswip.c dev_err(&bus->dev, "waiting for MDIO bus busy timed out\n"); bus 476 drivers/net/dsa/lantiq_gswip.c dev_err(&bus->dev, "waiting for MDIO bus busy timed out\n"); bus 72 drivers/net/dsa/mt7530.c struct mii_bus *bus = priv->bus; bus 76 drivers/net/dsa/mt7530.c ret = bus->write(bus, 0, MII_MMD_CTRL, devad); bus 81 drivers/net/dsa/mt7530.c ret = bus->write(bus, 0, MII_MMD_DATA, prtad); bus 86 drivers/net/dsa/mt7530.c ret = bus->write(bus, 0, MII_MMD_CTRL, (devad | MII_MMD_CTRL_NOINCR)); bus 91 drivers/net/dsa/mt7530.c value = bus->read(bus, 0, MII_MMD_DATA); bus 95 drivers/net/dsa/mt7530.c dev_err(&bus->dev, "failed to read mmd register\n"); bus 104 drivers/net/dsa/mt7530.c struct mii_bus *bus = priv->bus; bus 108 drivers/net/dsa/mt7530.c ret = bus->write(bus, 0, MII_MMD_CTRL, devad); bus 113 drivers/net/dsa/mt7530.c ret = bus->write(bus, 0, MII_MMD_DATA, prtad); bus 118 drivers/net/dsa/mt7530.c ret = bus->write(bus, 0, MII_MMD_CTRL, (devad | MII_MMD_CTRL_NOINCR)); bus 123 drivers/net/dsa/mt7530.c ret = bus->write(bus, 0, MII_MMD_DATA, data); bus 126 drivers/net/dsa/mt7530.c dev_err(&bus->dev, bus 134 drivers/net/dsa/mt7530.c struct mii_bus *bus = priv->bus; bus 136 drivers/net/dsa/mt7530.c mutex_lock_nested(&bus->mdio_lock, MDIO_MUTEX_NESTED); bus 140 drivers/net/dsa/mt7530.c mutex_unlock(&bus->mdio_lock); bus 146 drivers/net/dsa/mt7530.c struct mii_bus *bus = priv->bus; bus 149 drivers/net/dsa/mt7530.c mutex_lock_nested(&bus->mdio_lock, MDIO_MUTEX_NESTED); bus 156 drivers/net/dsa/mt7530.c mutex_unlock(&bus->mdio_lock); bus 174 drivers/net/dsa/mt7530.c struct mii_bus *bus = priv->bus; bus 184 drivers/net/dsa/mt7530.c ret = bus->write(bus, 0x1f, 0x1f, page); bus 188 drivers/net/dsa/mt7530.c ret = bus->write(bus, 0x1f, r, lo); bus 192 drivers/net/dsa/mt7530.c ret = bus->write(bus, 0x1f, 0x10, hi); bus 195 drivers/net/dsa/mt7530.c dev_err(&bus->dev, bus 203 drivers/net/dsa/mt7530.c struct mii_bus *bus = priv->bus; bus 211 drivers/net/dsa/mt7530.c ret = bus->write(bus, 0x1f, 0x1f, page); bus 213 drivers/net/dsa/mt7530.c dev_err(&bus->dev, bus 218 drivers/net/dsa/mt7530.c lo = bus->read(bus, 0x1f, r); bus 219 drivers/net/dsa/mt7530.c hi = bus->read(bus, 0x1f, 0x10); bus 227 drivers/net/dsa/mt7530.c struct mii_bus *bus = priv->bus; bus 229 drivers/net/dsa/mt7530.c mutex_lock_nested(&bus->mdio_lock, MDIO_MUTEX_NESTED); bus 233 drivers/net/dsa/mt7530.c mutex_unlock(&bus->mdio_lock); bus 239 drivers/net/dsa/mt7530.c struct mii_bus *bus = p->priv->bus; bus 242 drivers/net/dsa/mt7530.c mutex_lock_nested(&bus->mdio_lock, MDIO_MUTEX_NESTED); bus 246 drivers/net/dsa/mt7530.c mutex_unlock(&bus->mdio_lock); bus 264 drivers/net/dsa/mt7530.c struct mii_bus *bus = priv->bus; bus 267 drivers/net/dsa/mt7530.c mutex_lock_nested(&bus->mdio_lock, MDIO_MUTEX_NESTED); bus 274 drivers/net/dsa/mt7530.c mutex_unlock(&bus->mdio_lock); bus 508 drivers/net/dsa/mt7530.c return mdiobus_read_nested(priv->bus, port, regnum); bus 516 drivers/net/dsa/mt7530.c return mdiobus_write_nested(priv->bus, port, regnum, val); bus 1607 drivers/net/dsa/mt7530.c priv->bus = mdiodev->bus; bus 457 drivers/net/dsa/mt7530.h struct mii_bus *bus; bus 19 drivers/net/dsa/mv88e6060.c return mdiobus_read_nested(priv->bus, priv->sw_addr + addr, reg); bus 24 drivers/net/dsa/mv88e6060.c return mdiobus_write_nested(priv->bus, priv->sw_addr + addr, reg, val); bus 27 drivers/net/dsa/mv88e6060.c static const char *mv88e6060_get_name(struct mii_bus *bus, int sw_addr) bus 31 drivers/net/dsa/mv88e6060.c ret = mdiobus_read(bus, sw_addr + REG_PORT(0), PORT_SWITCH_ID); bus 264 drivers/net/dsa/mv88e6060.c priv->bus = mdiodev->bus; bus 267 drivers/net/dsa/mv88e6060.c name = mv88e6060_get_name(priv->bus, priv->sw_addr); bus 114 drivers/net/dsa/mv88e6060.h struct mii_bus *bus; bus 123 drivers/net/dsa/mv88e6xxx/chip.c return mdio_bus->bus; bus 2763 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_mdio_read(struct mii_bus *bus, int phy, int reg) bus 2765 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; bus 2774 drivers/net/dsa/mv88e6xxx/chip.c err = chip->info->ops->phy_read(chip, bus, phy, reg, &val); bus 2799 drivers/net/dsa/mv88e6xxx/chip.c static int mv88e6xxx_mdio_write(struct mii_bus *bus, int phy, int reg, u16 val) bus 2801 drivers/net/dsa/mv88e6xxx/chip.c struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; bus 2809 drivers/net/dsa/mv88e6xxx/chip.c err = chip->info->ops->phy_write(chip, bus, phy, reg, val); bus 2821 drivers/net/dsa/mv88e6xxx/chip.c struct mii_bus *bus; bus 2833 drivers/net/dsa/mv88e6xxx/chip.c bus = devm_mdiobus_alloc_size(chip->dev, sizeof(*mdio_bus)); bus 2834 drivers/net/dsa/mv88e6xxx/chip.c if (!bus) bus 2837 drivers/net/dsa/mv88e6xxx/chip.c mdio_bus = bus->priv; bus 2838 drivers/net/dsa/mv88e6xxx/chip.c mdio_bus->bus = bus; bus 2844 drivers/net/dsa/mv88e6xxx/chip.c bus->name = np->full_name; bus 2845 drivers/net/dsa/mv88e6xxx/chip.c snprintf(bus->id, MII_BUS_ID_SIZE, "%pOF", np); bus 2847 drivers/net/dsa/mv88e6xxx/chip.c bus->name = "mv88e6xxx SMI"; bus 2848 drivers/net/dsa/mv88e6xxx/chip.c snprintf(bus->id, MII_BUS_ID_SIZE, "mv88e6xxx-%d", index++); bus 2851 drivers/net/dsa/mv88e6xxx/chip.c bus->read = mv88e6xxx_mdio_read; bus 2852 drivers/net/dsa/mv88e6xxx/chip.c bus->write = mv88e6xxx_mdio_write; bus 2853 drivers/net/dsa/mv88e6xxx/chip.c bus->parent = chip->dev; bus 2856 drivers/net/dsa/mv88e6xxx/chip.c err = mv88e6xxx_g2_irq_mdio_setup(chip, bus); bus 2861 drivers/net/dsa/mv88e6xxx/chip.c err = of_mdiobus_register(bus, np); bus 2864 drivers/net/dsa/mv88e6xxx/chip.c mv88e6xxx_g2_irq_mdio_free(chip, bus); bus 2886 drivers/net/dsa/mv88e6xxx/chip.c struct mii_bus *bus; bus 2889 drivers/net/dsa/mv88e6xxx/chip.c bus = mdio_bus->bus; bus 2892 drivers/net/dsa/mv88e6xxx/chip.c mv88e6xxx_g2_irq_mdio_free(chip, bus); bus 2894 drivers/net/dsa/mv88e6xxx/chip.c mdiobus_unregister(bus); bus 5076 drivers/net/dsa/mv88e6xxx/chip.c err = mv88e6xxx_smi_init(chip, mdiodev->bus, mdiodev->addr); bus 249 drivers/net/dsa/mv88e6xxx/chip.h struct mii_bus *bus; bus 326 drivers/net/dsa/mv88e6xxx/chip.h struct mii_bus *bus; bus 352 drivers/net/dsa/mv88e6xxx/chip.h struct mii_bus *bus, bus 355 drivers/net/dsa/mv88e6xxx/chip.h struct mii_bus *bus, bus 761 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6xxx_g2_smi_phy_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus, bus 764 drivers/net/dsa/mv88e6xxx/global2.c struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; bus 775 drivers/net/dsa/mv88e6xxx/global2.c int mv88e6xxx_g2_smi_phy_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus, bus 778 drivers/net/dsa/mv88e6xxx/global2.c struct mv88e6xxx_mdio_bus *mdio_bus = bus->priv; bus 1130 drivers/net/dsa/mv88e6xxx/global2.c struct mii_bus *bus) bus 1140 drivers/net/dsa/mv88e6xxx/global2.c bus->irq[chip->info->phy_base_addr + phy] = irq; bus 1147 drivers/net/dsa/mv88e6xxx/global2.c irq_dispose_mapping(bus->irq[phy]); bus 1153 drivers/net/dsa/mv88e6xxx/global2.c struct mii_bus *bus) bus 1158 drivers/net/dsa/mv88e6xxx/global2.c irq_dispose_mapping(bus->irq[phy]); bus 305 drivers/net/dsa/mv88e6xxx/global2.h struct mii_bus *bus, bus 308 drivers/net/dsa/mv88e6xxx/global2.h struct mii_bus *bus, bus 330 drivers/net/dsa/mv88e6xxx/global2.h struct mii_bus *bus); bus 332 drivers/net/dsa/mv88e6xxx/global2.h struct mii_bus *bus); bus 398 drivers/net/dsa/mv88e6xxx/global2.h struct mii_bus *bus, bus 405 drivers/net/dsa/mv88e6xxx/global2.h struct mii_bus *bus, bus 466 drivers/net/dsa/mv88e6xxx/global2.h struct mii_bus *bus) bus 472 drivers/net/dsa/mv88e6xxx/global2.h struct mii_bus *bus) bus 16 drivers/net/dsa/mv88e6xxx/phy.c int mv88e6165_phy_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus, bus 22 drivers/net/dsa/mv88e6xxx/phy.c int mv88e6165_phy_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus, bus 31 drivers/net/dsa/mv88e6xxx/phy.c struct mii_bus *bus; bus 33 drivers/net/dsa/mv88e6xxx/phy.c bus = mv88e6xxx_default_mdio_bus(chip); bus 34 drivers/net/dsa/mv88e6xxx/phy.c if (!bus) bus 40 drivers/net/dsa/mv88e6xxx/phy.c return chip->info->ops->phy_read(chip, bus, addr, reg, val); bus 46 drivers/net/dsa/mv88e6xxx/phy.c struct mii_bus *bus; bus 48 drivers/net/dsa/mv88e6xxx/phy.c bus = mv88e6xxx_default_mdio_bus(chip); bus 49 drivers/net/dsa/mv88e6xxx/phy.c if (!bus) bus 55 drivers/net/dsa/mv88e6xxx/phy.c return chip->info->ops->phy_write(chip, bus, addr, reg, val); bus 203 drivers/net/dsa/mv88e6xxx/phy.c int mv88e6185_phy_ppu_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus, bus 217 drivers/net/dsa/mv88e6xxx/phy.c int mv88e6185_phy_ppu_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus, bus 17 drivers/net/dsa/mv88e6xxx/phy.h int mv88e6165_phy_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus, bus 19 drivers/net/dsa/mv88e6xxx/phy.h int mv88e6165_phy_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus, bus 21 drivers/net/dsa/mv88e6xxx/phy.h int mv88e6185_phy_ppu_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus, bus 23 drivers/net/dsa/mv88e6xxx/phy.h int mv88e6185_phy_ppu_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus, bus 34 drivers/net/dsa/mv88e6xxx/smi.c ret = mdiobus_read_nested(chip->bus, dev, reg); bus 48 drivers/net/dsa/mv88e6xxx/smi.c ret = mdiobus_write_nested(chip->bus, dev, reg, data); bus 164 drivers/net/dsa/mv88e6xxx/smi.c struct mii_bus *bus, int sw_addr) bus 175 drivers/net/dsa/mv88e6xxx/smi.c chip->bus = bus; bus 35 drivers/net/dsa/mv88e6xxx/smi.h struct mii_bus *bus, int sw_addr); bus 91 drivers/net/dsa/qca8k.c qca8k_mii_read32(struct mii_bus *bus, int phy_id, u32 regnum) bus 96 drivers/net/dsa/qca8k.c ret = bus->read(bus, phy_id, regnum); bus 99 drivers/net/dsa/qca8k.c ret = bus->read(bus, phy_id, regnum + 1); bus 104 drivers/net/dsa/qca8k.c dev_err_ratelimited(&bus->dev, bus 113 drivers/net/dsa/qca8k.c qca8k_mii_write32(struct mii_bus *bus, int phy_id, u32 regnum, u32 val) bus 121 drivers/net/dsa/qca8k.c ret = bus->write(bus, phy_id, regnum, lo); bus 123 drivers/net/dsa/qca8k.c ret = bus->write(bus, phy_id, regnum + 1, hi); bus 125 drivers/net/dsa/qca8k.c dev_err_ratelimited(&bus->dev, bus 130 drivers/net/dsa/qca8k.c qca8k_set_page(struct mii_bus *bus, u16 page) bus 135 drivers/net/dsa/qca8k.c if (bus->write(bus, 0x18, 0, page) < 0) bus 136 drivers/net/dsa/qca8k.c dev_err_ratelimited(&bus->dev, bus 149 drivers/net/dsa/qca8k.c mutex_lock_nested(&priv->bus->mdio_lock, MDIO_MUTEX_NESTED); bus 151 drivers/net/dsa/qca8k.c qca8k_set_page(priv->bus, page); bus 152 drivers/net/dsa/qca8k.c val = qca8k_mii_read32(priv->bus, 0x10 | r2, r1); bus 154 drivers/net/dsa/qca8k.c mutex_unlock(&priv->bus->mdio_lock); bus 166 drivers/net/dsa/qca8k.c mutex_lock_nested(&priv->bus->mdio_lock, MDIO_MUTEX_NESTED); bus 168 drivers/net/dsa/qca8k.c qca8k_set_page(priv->bus, page); bus 169 drivers/net/dsa/qca8k.c qca8k_mii_write32(priv->bus, 0x10 | r2, r1, val); bus 171 drivers/net/dsa/qca8k.c mutex_unlock(&priv->bus->mdio_lock); bus 182 drivers/net/dsa/qca8k.c mutex_lock_nested(&priv->bus->mdio_lock, MDIO_MUTEX_NESTED); bus 184 drivers/net/dsa/qca8k.c qca8k_set_page(priv->bus, page); bus 185 drivers/net/dsa/qca8k.c ret = qca8k_mii_read32(priv->bus, 0x10 | r2, r1); bus 188 drivers/net/dsa/qca8k.c qca8k_mii_write32(priv->bus, 0x10 | r2, r1, ret); bus 190 drivers/net/dsa/qca8k.c mutex_unlock(&priv->bus->mdio_lock); bus 1056 drivers/net/dsa/qca8k.c priv->bus = mdiodev->bus; bus 172 drivers/net/dsa/qca8k.h struct mii_bus *bus; bus 330 drivers/net/dsa/realtek-smi-core.c static int realtek_smi_mdio_read(struct mii_bus *bus, int addr, int regnum) bus 332 drivers/net/dsa/realtek-smi-core.c struct realtek_smi *smi = bus->priv; bus 337 drivers/net/dsa/realtek-smi-core.c static int realtek_smi_mdio_write(struct mii_bus *bus, int addr, int regnum, bus 340 drivers/net/dsa/realtek-smi-core.c struct realtek_smi *smi = bus->priv; bus 704 drivers/net/ethernet/3com/3c59x.c #define DEVICE_EISA(dev) (((dev)->bus == &eisa_bus_type) ? to_eisa_device((dev)) : NULL) bus 1118 drivers/net/ethernet/aeroflex/greth.c strlcpy(info->bus_info, greth->dev->bus->name, sizeof(info->bus_info)); bus 1162 drivers/net/ethernet/aeroflex/greth.c static int greth_mdio_read(struct mii_bus *bus, int phy, int reg) bus 1164 drivers/net/ethernet/aeroflex/greth.c struct greth_private *greth = bus->priv; bus 1184 drivers/net/ethernet/aeroflex/greth.c static int greth_mdio_write(struct mii_bus *bus, int phy, int reg, u16 val) bus 1186 drivers/net/ethernet/aeroflex/greth.c struct greth_private *greth = bus->priv; bus 1424 drivers/net/ethernet/agere/et131x.c static int et131x_mdio_read(struct mii_bus *bus, int phy_addr, int reg) bus 1426 drivers/net/ethernet/agere/et131x.c struct net_device *netdev = bus->priv; bus 1439 drivers/net/ethernet/agere/et131x.c static int et131x_mdio_write(struct mii_bus *bus, int phy_addr, bus 1442 drivers/net/ethernet/agere/et131x.c struct net_device *netdev = bus->priv; bus 3998 drivers/net/ethernet/agere/et131x.c (adapter->pdev->bus->number << 8) | adapter->pdev->devfn); bus 112 drivers/net/ethernet/altera/altera_tse_main.c static int altera_tse_mdio_read(struct mii_bus *bus, int mii_id, int regnum) bus 114 drivers/net/ethernet/altera/altera_tse_main.c struct net_device *ndev = bus->priv; bus 126 drivers/net/ethernet/altera/altera_tse_main.c static int altera_tse_mdio_write(struct mii_bus *bus, int mii_id, int regnum, bus 129 drivers/net/ethernet/altera/altera_tse_main.c struct net_device *ndev = bus->priv; bus 2419 drivers/net/ethernet/amazon/ena/ena_netdev.c host_info->bdf = (pdev->bus->number << 8) | pdev->devfn; bus 328 drivers/net/ethernet/amd/au1000_eth.c static int au1000_mdiobus_read(struct mii_bus *bus, int phy_addr, int regnum) bus 330 drivers/net/ethernet/amd/au1000_eth.c struct net_device *const dev = bus->priv; bus 340 drivers/net/ethernet/amd/au1000_eth.c static int au1000_mdiobus_write(struct mii_bus *bus, int phy_addr, int regnum, bus 343 drivers/net/ethernet/amd/au1000_eth.c struct net_device *const dev = bus->priv; bus 354 drivers/net/ethernet/amd/au1000_eth.c static int au1000_mdiobus_reset(struct mii_bus *bus) bus 356 drivers/net/ethernet/amd/au1000_eth.c struct net_device *const dev = bus->priv; bus 1328 drivers/net/ethernet/amd/declance.c .bus = &tc_bus_type, bus 12 drivers/net/ethernet/apm/xgene-v2/mdio.c static int xge_mdio_write(struct mii_bus *bus, int phy_id, int reg, u16 data) bus 14 drivers/net/ethernet/apm/xgene-v2/mdio.c struct xge_pdata *pdata = bus->priv; bus 29 drivers/net/ethernet/apm/xgene-v2/mdio.c dev_err(&bus->dev, "MII_MGMT write failed\n"); bus 36 drivers/net/ethernet/apm/xgene-v2/mdio.c static int xge_mdio_read(struct mii_bus *bus, int phy_id, int reg) bus 38 drivers/net/ethernet/apm/xgene-v2/mdio.c struct xge_pdata *pdata = bus->priv; bus 53 drivers/net/ethernet/apm/xgene-v2/mdio.c dev_err(&bus->dev, "MII_MGMT read failed\n"); bus 264 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct mii_bus *bus = ndev->phydev->mdio.bus; bus 266 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c return xgene_mdio_wr_mac(bus->priv, wr_addr, wr_data); bus 323 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c struct mii_bus *bus = ndev->phydev->mdio.bus; bus 325 drivers/net/ethernet/apm/xgene/xgene_enet_hw.c return xgene_mdio_rd_mac(bus->priv, rd_addr); bus 138 drivers/net/ethernet/arc/emac.h struct mii_bus *bus; bus 56 drivers/net/ethernet/arc/emac_mdio.c static int arc_mdio_read(struct mii_bus *bus, int phy_addr, int reg_num) bus 58 drivers/net/ethernet/arc/emac_mdio.c struct arc_emac_priv *priv = bus->priv; bus 88 drivers/net/ethernet/arc/emac_mdio.c static int arc_mdio_write(struct mii_bus *bus, int phy_addr, bus 91 drivers/net/ethernet/arc/emac_mdio.c struct arc_emac_priv *priv = bus->priv; bus 108 drivers/net/ethernet/arc/emac_mdio.c static int arc_mdio_reset(struct mii_bus *bus) bus 110 drivers/net/ethernet/arc/emac_mdio.c struct arc_emac_priv *priv = bus->priv; bus 135 drivers/net/ethernet/arc/emac_mdio.c struct mii_bus *bus; bus 138 drivers/net/ethernet/arc/emac_mdio.c bus = mdiobus_alloc(); bus 139 drivers/net/ethernet/arc/emac_mdio.c if (!bus) bus 142 drivers/net/ethernet/arc/emac_mdio.c priv->bus = bus; bus 143 drivers/net/ethernet/arc/emac_mdio.c bus->priv = priv; bus 144 drivers/net/ethernet/arc/emac_mdio.c bus->parent = priv->dev; bus 145 drivers/net/ethernet/arc/emac_mdio.c bus->name = "Synopsys MII Bus"; bus 146 drivers/net/ethernet/arc/emac_mdio.c bus->read = &arc_mdio_read; bus 147 drivers/net/ethernet/arc/emac_mdio.c bus->write = &arc_mdio_write; bus 148 drivers/net/ethernet/arc/emac_mdio.c bus->reset = &arc_mdio_reset; bus 164 drivers/net/ethernet/arc/emac_mdio.c snprintf(bus->id, MII_BUS_ID_SIZE, "%s", bus->name); bus 166 drivers/net/ethernet/arc/emac_mdio.c error = of_mdiobus_register(bus, priv->dev->of_node); bus 168 drivers/net/ethernet/arc/emac_mdio.c dev_err(priv->dev, "cannot register MDIO bus %s\n", bus->name); bus 169 drivers/net/ethernet/arc/emac_mdio.c mdiobus_free(bus); bus 184 drivers/net/ethernet/arc/emac_mdio.c mdiobus_unregister(priv->bus); bus 185 drivers/net/ethernet/arc/emac_mdio.c mdiobus_free(priv->bus); bus 186 drivers/net/ethernet/arc/emac_mdio.c priv->bus = NULL; bus 416 drivers/net/ethernet/atheros/ag71xx.c static int ag71xx_mdio_mii_read(struct mii_bus *bus, int addr, int reg) bus 418 drivers/net/ethernet/atheros/ag71xx.c struct ag71xx *ag = bus->priv; bus 444 drivers/net/ethernet/atheros/ag71xx.c static int ag71xx_mdio_mii_write(struct mii_bus *bus, int addr, int reg, bus 447 drivers/net/ethernet/atheros/ag71xx.c struct ag71xx *ag = bus->priv; bus 505 drivers/net/ethernet/atheros/ag71xx.c static int ag71xx_mdio_reset(struct mii_bus *bus) bus 507 drivers/net/ethernet/atheros/ag71xx.c struct ag71xx *ag = bus->priv; bus 112 drivers/net/ethernet/aurora/nb8800.c static int nb8800_mdio_wait(struct mii_bus *bus) bus 114 drivers/net/ethernet/aurora/nb8800.c struct nb8800_priv *priv = bus->priv; bus 121 drivers/net/ethernet/aurora/nb8800.c static int nb8800_mdio_cmd(struct mii_bus *bus, u32 cmd) bus 123 drivers/net/ethernet/aurora/nb8800.c struct nb8800_priv *priv = bus->priv; bus 126 drivers/net/ethernet/aurora/nb8800.c err = nb8800_mdio_wait(bus); bus 134 drivers/net/ethernet/aurora/nb8800.c return nb8800_mdio_wait(bus); bus 137 drivers/net/ethernet/aurora/nb8800.c static int nb8800_mdio_read(struct mii_bus *bus, int phy_id, int reg) bus 139 drivers/net/ethernet/aurora/nb8800.c struct nb8800_priv *priv = bus->priv; bus 143 drivers/net/ethernet/aurora/nb8800.c err = nb8800_mdio_cmd(bus, MDIO_CMD_ADDR(phy_id) | MDIO_CMD_REG(reg)); bus 154 drivers/net/ethernet/aurora/nb8800.c static int nb8800_mdio_write(struct mii_bus *bus, int phy_id, int reg, u16 val) bus 159 drivers/net/ethernet/aurora/nb8800.c return nb8800_mdio_cmd(bus, cmd); bus 1343 drivers/net/ethernet/aurora/nb8800.c struct mii_bus *bus; bus 1397 drivers/net/ethernet/aurora/nb8800.c bus = devm_mdiobus_alloc(&pdev->dev); bus 1398 drivers/net/ethernet/aurora/nb8800.c if (!bus) { bus 1403 drivers/net/ethernet/aurora/nb8800.c bus->name = "nb8800-mii"; bus 1404 drivers/net/ethernet/aurora/nb8800.c bus->read = nb8800_mdio_read; bus 1405 drivers/net/ethernet/aurora/nb8800.c bus->write = nb8800_mdio_write; bus 1406 drivers/net/ethernet/aurora/nb8800.c bus->parent = &pdev->dev; bus 1407 drivers/net/ethernet/aurora/nb8800.c snprintf(bus->id, MII_BUS_ID_SIZE, "%lx.nb8800-mii", bus 1409 drivers/net/ethernet/aurora/nb8800.c bus->priv = priv; bus 1411 drivers/net/ethernet/aurora/nb8800.c ret = of_mdiobus_register(bus, pdev->dev.of_node); bus 1436 drivers/net/ethernet/aurora/nb8800.c priv->mii_bus = bus; bus 1483 drivers/net/ethernet/aurora/nb8800.c mdiobus_unregister(bus); bus 321 drivers/net/ethernet/broadcom/b44.c static int b44_mdio_read_phylib(struct mii_bus *bus, int phy_id, int location) bus 324 drivers/net/ethernet/broadcom/b44.c struct b44 *bp = bus->priv; bus 331 drivers/net/ethernet/broadcom/b44.c static int b44_mdio_write_phylib(struct mii_bus *bus, int phy_id, int location, bus 334 drivers/net/ethernet/broadcom/b44.c struct b44 *bp = bus->priv; bus 1289 drivers/net/ethernet/broadcom/b44.c ssb_pcicore_dev_irqvecs_enable(&sdev->bus->pcicore, sdev); bus 1314 drivers/net/ethernet/broadcom/b44.c switch (sdev->bus->bustype) { bus 1317 drivers/net/ethernet/broadcom/b44.c (DIV_ROUND_CLOSEST(ssb_clockspeed(sdev->bus), bus 1606 drivers/net/ethernet/broadcom/b44.c if (bp->sdev->bus->bustype != SSB_BUSTYPE_SSB) { bus 1608 drivers/net/ethernet/broadcom/b44.c pci_read_config_word(bp->sdev->bus->host_pci, SSB_PMCSR, &val); bus 1609 drivers/net/ethernet/broadcom/b44.c pci_write_config_word(bp->sdev->bus->host_pci, SSB_PMCSR, val | SSB_PE); bus 1794 drivers/net/ethernet/broadcom/b44.c struct ssb_bus *bus = bp->sdev->bus; bus 1798 drivers/net/ethernet/broadcom/b44.c switch (bus->bustype) { bus 1800 drivers/net/ethernet/broadcom/b44.c strlcpy(info->bus_info, pci_name(bus->host_pci), sizeof(info->bus_info)); bus 2167 drivers/net/ethernet/broadcom/b44.c if (sdev->bus->bustype == SSB_BUSTYPE_SSB && bus 2169 drivers/net/ethernet/broadcom/b44.c addr = sdev->bus->sprom.et1mac; bus 2170 drivers/net/ethernet/broadcom/b44.c bp->phy_addr = sdev->bus->sprom.et1phyaddr; bus 2172 drivers/net/ethernet/broadcom/b44.c addr = sdev->bus->sprom.et0mac; bus 2173 drivers/net/ethernet/broadcom/b44.c bp->phy_addr = sdev->bus->sprom.et0phyaddr; bus 2259 drivers/net/ethernet/broadcom/b44.c struct ssb_sprom *sprom = &sdev->bus->sprom; bus 2387 drivers/net/ethernet/broadcom/b44.c err = ssb_bus_powerup(sdev->bus, 0); bus 2465 drivers/net/ethernet/broadcom/b44.c ssb_bus_may_powerdown(sdev->bus); bus 2484 drivers/net/ethernet/broadcom/b44.c ssb_bus_may_powerdown(sdev->bus); bus 2526 drivers/net/ethernet/broadcom/b44.c rc = ssb_bus_powerup(sdev->bus, 0); bus 188 drivers/net/ethernet/broadcom/bcm63xx_enet.c static int bcm_enet_mdio_read_phylib(struct mii_bus *bus, int mii_id, bus 191 drivers/net/ethernet/broadcom/bcm63xx_enet.c return bcm_enet_mdio_read(bus->priv, mii_id, regnum); bus 197 drivers/net/ethernet/broadcom/bcm63xx_enet.c static int bcm_enet_mdio_write_phylib(struct mii_bus *bus, int mii_id, bus 200 drivers/net/ethernet/broadcom/bcm63xx_enet.c return bcm_enet_mdio_write(bus->priv, mii_id, regnum, value); bus 1697 drivers/net/ethernet/broadcom/bcm63xx_enet.c struct mii_bus *bus; bus 1792 drivers/net/ethernet/broadcom/bcm63xx_enet.c bus = priv->mii_bus; bus 1793 drivers/net/ethernet/broadcom/bcm63xx_enet.c bus->name = "bcm63xx_enet MII bus"; bus 1794 drivers/net/ethernet/broadcom/bcm63xx_enet.c bus->parent = &pdev->dev; bus 1795 drivers/net/ethernet/broadcom/bcm63xx_enet.c bus->priv = priv; bus 1796 drivers/net/ethernet/broadcom/bcm63xx_enet.c bus->read = bcm_enet_mdio_read_phylib; bus 1797 drivers/net/ethernet/broadcom/bcm63xx_enet.c bus->write = bcm_enet_mdio_write_phylib; bus 1798 drivers/net/ethernet/broadcom/bcm63xx_enet.c sprintf(bus->id, "%s-%d", pdev->name, pdev->id); bus 1803 drivers/net/ethernet/broadcom/bcm63xx_enet.c bus->phy_mask = ~(1 << priv->phy_id); bus 1806 drivers/net/ethernet/broadcom/bcm63xx_enet.c bus->irq[priv->phy_id] = priv->phy_interrupt; bus 1808 drivers/net/ethernet/broadcom/bcm63xx_enet.c ret = mdiobus_register(bus); bus 55 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c core = bgmac->bcma.core->bus->drv_gmac_cmn.core; bus 94 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c core = bgmac->bcma.core->bus->drv_gmac_cmn.core; bus 132 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c struct bcma_chipinfo *ci = &bgmac->bcma.core->bus->chipinfo; bus 152 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c struct bcma_drv_cc *cc = &bgmac->bcma.core->bus->drv_cc; bus 178 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c static int bcma_mdio_phy_reset(struct mii_bus *bus) bus 180 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c struct bgmac *bgmac = bus->priv; bus 199 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c static int bcma_mdio_mii_read(struct mii_bus *bus, int mii_id, int regnum) bus 201 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c return bcma_mdio_phy_read(bus->priv, mii_id, regnum); bus 204 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c static int bcma_mdio_mii_write(struct mii_bus *bus, int mii_id, int regnum, bus 207 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c return bcma_mdio_phy_write(bus->priv, mii_id, regnum, value); bus 223 drivers/net/ethernet/broadcom/bgmac-bcma-mdio.c sprintf(mii_bus->id, "%s-%d-%d", "bcma_mdio", core->bus->num, bus 19 drivers/net/ethernet/broadcom/bgmac-bcma.c switch (core->bus->chipinfo.id) { bus 66 drivers/net/ethernet/broadcom/bgmac-bcma.c struct bcma_drv_cc *cc = &bgmac->bcma.core->bus->drv_cc; bus 73 drivers/net/ethernet/broadcom/bgmac-bcma.c struct bcma_drv_cc *cc = &bgmac->bcma.core->bus->drv_cc; bus 114 drivers/net/ethernet/broadcom/bgmac-bcma.c struct bcma_chipinfo *ci = &core->bus->chipinfo; bus 115 drivers/net/ethernet/broadcom/bgmac-bcma.c struct ssb_sprom *sprom = &core->bus->sprom; bus 158 drivers/net/ethernet/broadcom/bgmac-bcma.c !core->bus->drv_gmac_cmn.core) { bus 163 drivers/net/ethernet/broadcom/bgmac-bcma.c bgmac->bcma.cmn = core->bus->drv_gmac_cmn.core; bus 202 drivers/net/ethernet/broadcom/bgmac-bcma.c if (core->bus->hosttype == BCMA_HOSTTYPE_PCI) { bus 1295 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h u8 bus; bus 10627 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bp->pdev->bus->number == tmp_list->bus && bus 10732 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c tmp_list->bus = bp->pdev->bus->number; bus 816 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c dev = pci_get_domain_bus_and_slot(vf->domain, vf->bus, vf->devfn); bus 1049 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c return pci_domain_nr(dev->bus); bus 1057 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c return dev->bus->number + ((dev->devfn + iov->offset + bus 1218 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c if (!pci_ari_enabled(bp->pdev->bus)) { bus 1621 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c vf->bus = bnx2x_vf_bus(bp, vfid); bus 1627 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c vf->abs_vfid, vf->bus, vf->devfn, bus 189 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h unsigned int bus; bus 309 drivers/net/ethernet/broadcom/sb1250-mac.c static int sbmac_mii_read(struct mii_bus *bus, int phyaddr, int regidx); bus 310 drivers/net/ethernet/broadcom/sb1250-mac.c static int sbmac_mii_write(struct mii_bus *bus, int phyaddr, int regidx, bus 421 drivers/net/ethernet/broadcom/sb1250-mac.c static int sbmac_mii_read(struct mii_bus *bus, int phyaddr, int regidx) bus 423 drivers/net/ethernet/broadcom/sb1250-mac.c struct sbmac_softc *sc = (struct sbmac_softc *)bus->priv; bus 514 drivers/net/ethernet/broadcom/sb1250-mac.c static int sbmac_mii_write(struct mii_bus *bus, int phyaddr, int regidx, bus 517 drivers/net/ethernet/broadcom/sb1250-mac.c struct sbmac_softc *sc = (struct sbmac_softc *)bus->priv; bus 1547 drivers/net/ethernet/broadcom/tg3.c (tp->pdev->bus->number << 8) | tp->pdev->devfn); bus 16070 drivers/net/ethernet/broadcom/tg3.c peer = pci_get_slot(tp->pdev->bus, devnr | func); bus 16285 drivers/net/ethernet/broadcom/tg3.c tp->pdev->bus->number)) { bus 16315 drivers/net/ethernet/broadcom/tg3.c tp->pdev->bus->number) && bus 16317 drivers/net/ethernet/broadcom/tg3.c tp->pdev->bus->number)) { bus 16343 drivers/net/ethernet/broadcom/tg3.c tp->pdev->bus->number) && bus 16345 drivers/net/ethernet/broadcom/tg3.c tp->pdev->bus->number)) { bus 331 drivers/net/ethernet/cadence/macb_main.c static int macb_mdio_read(struct mii_bus *bus, int mii_id, int regnum) bus 333 drivers/net/ethernet/cadence/macb_main.c struct macb *bp = bus->priv; bus 365 drivers/net/ethernet/cadence/macb_main.c static int macb_mdio_write(struct mii_bus *bus, int mii_id, int regnum, bus 368 drivers/net/ethernet/cadence/macb_main.c struct macb *bp = bus->priv; bus 740 drivers/net/ethernet/cavium/liquidio/lio_main.c oct_busnum = oct->pci_dev->bus->number; bus 741 drivers/net/ethernet/cavium/liquidio/lio_main.c other_oct_busnum = other_oct->pci_dev->bus->number; bus 909 drivers/net/ethernet/cavium/liquidio/lio_main.c u8 bus, device, function; bus 916 drivers/net/ethernet/cavium/liquidio/lio_main.c bus = pdev->bus->number; bus 921 drivers/net/ethernet/cavium/liquidio/lio_main.c "liowd/%02hhx:%02hhx.%hhx", bus, device, function); bus 4087 drivers/net/ethernet/cavium/liquidio/lio_main.c octeon_register_device(octeon_dev, octeon_dev->pci_dev->bus->number, bus 761 drivers/net/ethernet/cavium/liquidio/octeon_device.c int bus, int dev, int func, int is_pf) bus 765 drivers/net/ethernet/cavium/liquidio/octeon_device.c oct->loc.bus = bus; bus 789 drivers/net/ethernet/cavium/liquidio/octeon_device.c if ((octeon_device[idx]->loc.bus == bus) && bus 804 drivers/net/ethernet/cavium/liquidio/octeon_device.c oct->loc.bus, oct->loc.dev, oct->loc.func, refcount); bus 821 drivers/net/ethernet/cavium/liquidio/octeon_device.c oct->loc.bus, oct->loc.dev, oct->loc.func, refcount); bus 595 drivers/net/ethernet/cavium/liquidio/octeon_device.h int bus; bus 656 drivers/net/ethernet/cavium/liquidio/octeon_device.h int bus, int dev, int func, int is_pf); bus 5569 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pbridge = pdev->bus->self; bus 5580 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pbridge->bus->number, PCI_SLOT(pbridge->devfn), bus 803 drivers/net/ethernet/dec/tulip/de4x5.c int bus; /* EISA or PCI */ bus 876 drivers/net/ethernet/dec/tulip/de4x5.c int bus; bus 1104 drivers/net/ethernet/dec/tulip/de4x5.c if (lp->bus == EISA) { bus 1122 drivers/net/ethernet/dec/tulip/de4x5.c if (lp->bus == PCI) { bus 1262 drivers/net/ethernet/dec/tulip/de4x5.c ((lp->bus == PCI) ? "PCI BIOS" : "EISA CNFG")); bus 2056 drivers/net/ethernet/dec/tulip/de4x5.c lp->bus = EISA; bus 2131 drivers/net/ethernet/dec/tulip/de4x5.c list_for_each_entry(this_dev, &pdev->bus->devices, bus_list) { bus 2137 drivers/net/ethernet/dec/tulip/de4x5.c pb = this_dev->bus->number; bus 2168 drivers/net/ethernet/dec/tulip/de4x5.c last.bus = pb; bus 2206 drivers/net/ethernet/dec/tulip/de4x5.c pb = pdev->bus->number; bus 2230 drivers/net/ethernet/dec/tulip/de4x5.c lp->bus = PCI; bus 3957 drivers/net/ethernet/dec/tulip/de4x5.c if (lp->bus == EISA) { bus 4041 drivers/net/ethernet/dec/tulip/de4x5.c if (lp->bus == PCI) { bus 4067 drivers/net/ethernet/dec/tulip/de4x5.c if (lp->bus == PCI) { bus 4160 drivers/net/ethernet/dec/tulip/de4x5.c (lp->bus_num == last.bus) && (lp->bus_num > 0)) { bus 4175 drivers/net/ethernet/dec/tulip/de4x5.c last.bus = lp->bus_num; bus 5143 drivers/net/ethernet/dec/tulip/de4x5.c if(lp->bus == EISA) { bus 16 drivers/net/ethernet/dec/tulip/de4x5.h #define DE4X5_BMR iobase+(0x000 << lp->bus) /* Bus Mode Register */ bus 17 drivers/net/ethernet/dec/tulip/de4x5.h #define DE4X5_TPD iobase+(0x008 << lp->bus) /* Transmit Poll Demand Reg */ bus 18 drivers/net/ethernet/dec/tulip/de4x5.h #define DE4X5_RPD iobase+(0x010 << lp->bus) /* Receive Poll Demand Reg */ bus 19 drivers/net/ethernet/dec/tulip/de4x5.h #define DE4X5_RRBA iobase+(0x018 << lp->bus) /* RX Ring Base Address Reg */ bus 20 drivers/net/ethernet/dec/tulip/de4x5.h #define DE4X5_TRBA iobase+(0x020 << lp->bus) /* TX Ring Base Address Reg */ bus 21 drivers/net/ethernet/dec/tulip/de4x5.h #define DE4X5_STS iobase+(0x028 << lp->bus) /* Status Register */ bus 22 drivers/net/ethernet/dec/tulip/de4x5.h #define DE4X5_OMR iobase+(0x030 << lp->bus) /* Operation Mode Register */ bus 23 drivers/net/ethernet/dec/tulip/de4x5.h #define DE4X5_IMR iobase+(0x038 << lp->bus) /* Interrupt Mask Register */ bus 24 drivers/net/ethernet/dec/tulip/de4x5.h #define DE4X5_MFC iobase+(0x040 << lp->bus) /* Missed Frame Counter */ bus 25 drivers/net/ethernet/dec/tulip/de4x5.h #define DE4X5_APROM iobase+(0x048 << lp->bus) /* Ethernet Address PROM */ bus 26 drivers/net/ethernet/dec/tulip/de4x5.h #define DE4X5_BROM iobase+(0x048 << lp->bus) /* Boot ROM Register */ bus 27 drivers/net/ethernet/dec/tulip/de4x5.h #define DE4X5_SROM iobase+(0x048 << lp->bus) /* Serial ROM Register */ bus 28 drivers/net/ethernet/dec/tulip/de4x5.h #define DE4X5_MII iobase+(0x048 << lp->bus) /* MII Interface Register */ bus 29 drivers/net/ethernet/dec/tulip/de4x5.h #define DE4X5_DDR iobase+(0x050 << lp->bus) /* Data Diagnostic Register */ bus 30 drivers/net/ethernet/dec/tulip/de4x5.h #define DE4X5_FDR iobase+(0x058 << lp->bus) /* Full Duplex Register */ bus 31 drivers/net/ethernet/dec/tulip/de4x5.h #define DE4X5_GPT iobase+(0x058 << lp->bus) /* General Purpose Timer Reg.*/ bus 32 drivers/net/ethernet/dec/tulip/de4x5.h #define DE4X5_GEP iobase+(0x060 << lp->bus) /* General Purpose Register */ bus 33 drivers/net/ethernet/dec/tulip/de4x5.h #define DE4X5_SISR iobase+(0x060 << lp->bus) /* SIA Status Register */ bus 34 drivers/net/ethernet/dec/tulip/de4x5.h #define DE4X5_SICR iobase+(0x068 << lp->bus) /* SIA Connectivity Register */ bus 35 drivers/net/ethernet/dec/tulip/de4x5.h #define DE4X5_STRR iobase+(0x070 << lp->bus) /* SIA TX/RX Register */ bus 36 drivers/net/ethernet/dec/tulip/de4x5.h #define DE4X5_SIGR iobase+(0x078 << lp->bus) /* SIA General Register */ bus 1560 drivers/net/ethernet/dec/tulip/tulip_core.c if ((pdev->bus->number == 0) && bus 99 drivers/net/ethernet/dnet.c static int dnet_mdio_read(struct mii_bus *bus, int mii_id, int regnum) bus 101 drivers/net/ethernet/dnet.c struct dnet *bp = bus->priv; bus 131 drivers/net/ethernet/dnet.c static int dnet_mdio_write(struct mii_bus *bus, int mii_id, int regnum, bus 134 drivers/net/ethernet/dnet.c struct dnet *bp = bus->priv; bus 253 drivers/net/ethernet/emulex/benet/be.h DEFINE_DMA_UNMAP_ADDR(bus); bus 2290 drivers/net/ethernet/emulex/benet/be_main.c dma_unmap_addr(rx_page_info, bus), bus 2295 drivers/net/ethernet/emulex/benet/be_main.c dma_unmap_addr(rx_page_info, bus), bus 2635 drivers/net/ethernet/emulex/benet/be_main.c dma_unmap_addr_set(page_info, bus, page_dmaaddr); bus 2637 drivers/net/ethernet/emulex/benet/be_main.c dma_unmap_addr_set(page_info, bus, frag_dmaaddr); bus 2650 drivers/net/ethernet/emulex/benet/be_main.c dma_unmap_addr_set(prev_page_info, bus, page_dmaaddr); bus 621 drivers/net/ethernet/ethoc.c static int ethoc_mdio_read(struct mii_bus *bus, int phy, int reg) bus 623 drivers/net/ethernet/ethoc.c struct ethoc *priv = bus->priv; bus 643 drivers/net/ethernet/ethoc.c static int ethoc_mdio_write(struct mii_bus *bus, int phy, int reg, u16 val) bus 645 drivers/net/ethernet/ethoc.c struct ethoc *priv = bus->priv; bus 1075 drivers/net/ethernet/faraday/ftgmac100.c static int ftgmac100_mdiobus_read(struct mii_bus *bus, int phy_addr, int regnum) bus 1077 drivers/net/ethernet/faraday/ftgmac100.c struct net_device *netdev = bus->priv; bus 1110 drivers/net/ethernet/faraday/ftgmac100.c static int ftgmac100_mdiobus_write(struct mii_bus *bus, int phy_addr, bus 1113 drivers/net/ethernet/faraday/ftgmac100.c struct net_device *netdev = bus->priv; bus 46 drivers/net/ethernet/freescale/enetc/enetc_mdio.c int enetc_mdio_write(struct mii_bus *bus, int phy_id, int regnum, u16 value) bus 48 drivers/net/ethernet/freescale/enetc/enetc_mdio.c struct enetc_mdio_priv *mdio_priv = bus->priv; bus 93 drivers/net/ethernet/freescale/enetc/enetc_mdio.c int enetc_mdio_read(struct mii_bus *bus, int phy_id, int regnum) bus 95 drivers/net/ethernet/freescale/enetc/enetc_mdio.c struct enetc_mdio_priv *mdio_priv = bus->priv; bus 138 drivers/net/ethernet/freescale/enetc/enetc_mdio.c dev_dbg(&bus->dev, bus 154 drivers/net/ethernet/freescale/enetc/enetc_mdio.c struct mii_bus *bus; bus 157 drivers/net/ethernet/freescale/enetc/enetc_mdio.c bus = devm_mdiobus_alloc_size(dev, sizeof(*mdio_priv)); bus 158 drivers/net/ethernet/freescale/enetc/enetc_mdio.c if (!bus) bus 161 drivers/net/ethernet/freescale/enetc/enetc_mdio.c bus->name = "Freescale ENETC MDIO Bus"; bus 162 drivers/net/ethernet/freescale/enetc/enetc_mdio.c bus->read = enetc_mdio_read; bus 163 drivers/net/ethernet/freescale/enetc/enetc_mdio.c bus->write = enetc_mdio_write; bus 164 drivers/net/ethernet/freescale/enetc/enetc_mdio.c bus->parent = dev; bus 165 drivers/net/ethernet/freescale/enetc/enetc_mdio.c mdio_priv = bus->priv; bus 167 drivers/net/ethernet/freescale/enetc/enetc_mdio.c snprintf(bus->id, MII_BUS_ID_SIZE, "%s", dev_name(dev)); bus 175 drivers/net/ethernet/freescale/enetc/enetc_mdio.c err = of_mdiobus_register(bus, np); bus 183 drivers/net/ethernet/freescale/enetc/enetc_mdio.c pf->mdio = bus; bus 11 drivers/net/ethernet/freescale/enetc/enetc_mdio.h int enetc_mdio_write(struct mii_bus *bus, int phy_id, int regnum, u16 value); bus 12 drivers/net/ethernet/freescale/enetc/enetc_mdio.h int enetc_mdio_read(struct mii_bus *bus, int phy_id, int regnum); bus 17 drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c struct mii_bus *bus; bus 24 drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c bus = devm_mdiobus_alloc_size(dev, sizeof(*mdio_priv)); bus 25 drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c if (!bus) bus 28 drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c bus->name = ENETC_MDIO_BUS_NAME; bus 29 drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c bus->read = enetc_mdio_read; bus 30 drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c bus->write = enetc_mdio_write; bus 31 drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c bus->parent = dev; bus 32 drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c mdio_priv = bus->priv; bus 34 drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c snprintf(bus->id, MII_BUS_ID_SIZE, "%s", dev_name(dev)); bus 56 drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c err = of_mdiobus_register(bus, dev->of_node); bus 60 drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c pci_set_drvdata(pdev, bus); bus 76 drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c struct mii_bus *bus = pci_get_drvdata(pdev); bus 79 drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c mdiobus_unregister(bus); bus 80 drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c mdio_priv = bus->priv; bus 1821 drivers/net/ethernet/freescale/fec_main.c static int fec_enet_mdio_read(struct mii_bus *bus, int mii_id, int regnum) bus 1823 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = bus->priv; bus 1886 drivers/net/ethernet/freescale/fec_main.c static int fec_enet_mdio_write(struct mii_bus *bus, int mii_id, int regnum, bus 1889 drivers/net/ethernet/freescale/fec_main.c struct fec_enet_private *fep = bus->priv; bus 27 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c static int mpc52xx_fec_mdio_transfer(struct mii_bus *bus, int phy_id, bus 30 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c struct mpc52xx_fec_mdio_priv *priv = bus->priv; bus 51 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c static int mpc52xx_fec_mdio_read(struct mii_bus *bus, int phy_id, int reg) bus 53 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c return mpc52xx_fec_mdio_transfer(bus, phy_id, reg, FEC_MII_READ_FRAME); bus 56 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c static int mpc52xx_fec_mdio_write(struct mii_bus *bus, int phy_id, int reg, bus 59 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c return mpc52xx_fec_mdio_transfer(bus, phy_id, reg, bus 67 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c struct mii_bus *bus; bus 72 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c bus = mdiobus_alloc(); bus 73 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c if (bus == NULL) bus 81 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c bus->name = "mpc52xx MII bus"; bus 82 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c bus->read = mpc52xx_fec_mdio_read; bus 83 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c bus->write = mpc52xx_fec_mdio_write; bus 95 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c snprintf(bus->id, MII_BUS_ID_SIZE, "%x", res.start); bus 96 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c bus->priv = priv; bus 98 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c bus->parent = dev; bus 99 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c dev_set_drvdata(dev, bus); bus 105 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c err = of_mdiobus_register(bus, np); bus 115 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c mdiobus_free(bus); bus 122 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c struct mii_bus *bus = platform_get_drvdata(of); bus 123 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c struct mpc52xx_fec_mdio_priv *priv = bus->priv; bus 125 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c mdiobus_unregister(bus); bus 128 drivers/net/ethernet/freescale/fec_mpc52xx_phy.c mdiobus_free(bus); bus 237 drivers/net/ethernet/freescale/fs_enet/mac-fec.c struct mii_bus *mii = dev->phydev->mdio.bus; bus 346 drivers/net/ethernet/freescale/fs_enet/mac-fec.c struct fec_info *feci = dev->phydev->mdio.bus->priv; bus 111 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c static int fs_mii_bitbang_init(struct mii_bus *bus, struct device_node *np) bus 116 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c struct bb_info *bitbang = bus->priv; bus 129 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c snprintf(bus->id, MII_BUS_ID_SIZE, "%x", res.start); bus 197 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c struct mii_bus *bus = platform_get_drvdata(ofdev); bus 198 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c struct bb_info *bitbang = bus->priv; bus 200 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c mdiobus_unregister(bus); bus 201 drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c free_mdio_bitbang(bus); bus 52 drivers/net/ethernet/freescale/fs_enet/mii-fec.c static int fs_enet_fec_mii_read(struct mii_bus *bus , int phy_id, int location) bus 54 drivers/net/ethernet/freescale/fs_enet/mii-fec.c struct fec_info* fec = bus->priv; bus 75 drivers/net/ethernet/freescale/fs_enet/mii-fec.c static int fs_enet_fec_mii_write(struct mii_bus *bus, int phy_id, int location, u16 val) bus 77 drivers/net/ethernet/freescale/fs_enet/mii-fec.c struct fec_info* fec = bus->priv; bus 192 drivers/net/ethernet/freescale/fs_enet/mii-fec.c struct mii_bus *bus = platform_get_drvdata(ofdev); bus 193 drivers/net/ethernet/freescale/fs_enet/mii-fec.c struct fec_info *fec = bus->priv; bus 195 drivers/net/ethernet/freescale/fs_enet/mii-fec.c mdiobus_unregister(bus); bus 198 drivers/net/ethernet/freescale/fs_enet/mii-fec.c mdiobus_free(bus); bus 96 drivers/net/ethernet/freescale/fsl_pq_mdio.c static int fsl_pq_mdio_write(struct mii_bus *bus, int mii_id, int regnum, bus 99 drivers/net/ethernet/freescale/fsl_pq_mdio.c struct fsl_pq_mdio_priv *priv = bus->priv; bus 129 drivers/net/ethernet/freescale/fsl_pq_mdio.c static int fsl_pq_mdio_read(struct mii_bus *bus, int mii_id, int regnum) bus 131 drivers/net/ethernet/freescale/fsl_pq_mdio.c struct fsl_pq_mdio_priv *priv = bus->priv; bus 157 drivers/net/ethernet/freescale/fsl_pq_mdio.c dev_dbg(&bus->dev, "read %04x from address %x/%x\n", value, mii_id, regnum); bus 162 drivers/net/ethernet/freescale/fsl_pq_mdio.c static int fsl_pq_mdio_reset(struct mii_bus *bus) bus 164 drivers/net/ethernet/freescale/fsl_pq_mdio.c struct fsl_pq_mdio_priv *priv = bus->priv; bus 168 drivers/net/ethernet/freescale/fsl_pq_mdio.c mutex_lock(&bus->mdio_lock); bus 183 drivers/net/ethernet/freescale/fsl_pq_mdio.c mutex_unlock(&bus->mdio_lock); bus 186 drivers/net/ethernet/freescale/fsl_pq_mdio.c dev_err(&bus->dev, "timeout waiting for MII bus\n"); bus 517 drivers/net/ethernet/freescale/fsl_pq_mdio.c struct mii_bus *bus = dev_get_drvdata(device); bus 518 drivers/net/ethernet/freescale/fsl_pq_mdio.c struct fsl_pq_mdio_priv *priv = bus->priv; bus 520 drivers/net/ethernet/freescale/fsl_pq_mdio.c mdiobus_unregister(bus); bus 523 drivers/net/ethernet/freescale/fsl_pq_mdio.c mdiobus_free(bus); bus 129 drivers/net/ethernet/freescale/xgmac_mdio.c static int xgmac_mdio_write(struct mii_bus *bus, int phy_id, int regnum, u16 value) bus 131 drivers/net/ethernet/freescale/xgmac_mdio.c struct mdio_fsl_priv *priv = (struct mdio_fsl_priv *)bus->priv; bus 151 drivers/net/ethernet/freescale/xgmac_mdio.c ret = xgmac_wait_until_free(&bus->dev, regs, endian); bus 163 drivers/net/ethernet/freescale/xgmac_mdio.c ret = xgmac_wait_until_free(&bus->dev, regs, endian); bus 171 drivers/net/ethernet/freescale/xgmac_mdio.c ret = xgmac_wait_until_done(&bus->dev, regs, endian); bus 183 drivers/net/ethernet/freescale/xgmac_mdio.c static int xgmac_mdio_read(struct mii_bus *bus, int phy_id, int regnum) bus 185 drivers/net/ethernet/freescale/xgmac_mdio.c struct mdio_fsl_priv *priv = (struct mdio_fsl_priv *)bus->priv; bus 205 drivers/net/ethernet/freescale/xgmac_mdio.c ret = xgmac_wait_until_free(&bus->dev, regs, endian); bus 217 drivers/net/ethernet/freescale/xgmac_mdio.c ret = xgmac_wait_until_free(&bus->dev, regs, endian); bus 225 drivers/net/ethernet/freescale/xgmac_mdio.c ret = xgmac_wait_until_done(&bus->dev, regs, endian); bus 232 drivers/net/ethernet/freescale/xgmac_mdio.c dev_err(&bus->dev, bus 239 drivers/net/ethernet/freescale/xgmac_mdio.c dev_dbg(&bus->dev, "read %04x\n", value); bus 247 drivers/net/ethernet/freescale/xgmac_mdio.c struct mii_bus *bus; bus 258 drivers/net/ethernet/freescale/xgmac_mdio.c bus = mdiobus_alloc_size(sizeof(struct mdio_fsl_priv)); bus 259 drivers/net/ethernet/freescale/xgmac_mdio.c if (!bus) bus 262 drivers/net/ethernet/freescale/xgmac_mdio.c bus->name = "Freescale XGMAC MDIO Bus"; bus 263 drivers/net/ethernet/freescale/xgmac_mdio.c bus->read = xgmac_mdio_read; bus 264 drivers/net/ethernet/freescale/xgmac_mdio.c bus->write = xgmac_mdio_write; bus 265 drivers/net/ethernet/freescale/xgmac_mdio.c bus->parent = &pdev->dev; bus 266 drivers/net/ethernet/freescale/xgmac_mdio.c snprintf(bus->id, MII_BUS_ID_SIZE, "%llx", (unsigned long long)res.start); bus 269 drivers/net/ethernet/freescale/xgmac_mdio.c priv = bus->priv; bus 282 drivers/net/ethernet/freescale/xgmac_mdio.c ret = of_mdiobus_register(bus, np); bus 288 drivers/net/ethernet/freescale/xgmac_mdio.c platform_set_drvdata(pdev, bus); bus 296 drivers/net/ethernet/freescale/xgmac_mdio.c mdiobus_free(bus); bus 303 drivers/net/ethernet/freescale/xgmac_mdio.c struct mii_bus *bus = platform_get_drvdata(pdev); bus 305 drivers/net/ethernet/freescale/xgmac_mdio.c mdiobus_unregister(bus); bus 306 drivers/net/ethernet/freescale/xgmac_mdio.c iounmap(bus->priv); bus 307 drivers/net/ethernet/freescale/xgmac_mdio.c mdiobus_free(bus); bus 33 drivers/net/ethernet/google/gve/gve.h dma_addr_t bus; /* the bus for the desc_ring */ bus 135 drivers/net/ethernet/google/gve/gve.h dma_addr_t bus; /* dma address of the descr ring */ bus 204 drivers/net/ethernet/google/gve/gve_adminq.c .tx_ring_addr = cpu_to_be64(tx->bus), bus 225 drivers/net/ethernet/google/gve/gve_adminq.c .rx_desc_ring_addr = cpu_to_be64(rx->desc.bus), bus 29 drivers/net/ethernet/google/gve/gve_rx.c dma_free_coherent(dev, bytes, rx->desc.desc_ring, rx->desc.bus); bus 153 drivers/net/ethernet/google/gve/gve_rx.c rx->desc.desc_ring = dma_alloc_coherent(hdev, bytes, &rx->desc.bus, bus 166 drivers/net/ethernet/google/gve/gve_tx.c dma_free_coherent(hdev, bytes, tx->desc, tx->bus); bus 205 drivers/net/ethernet/google/gve/gve_tx.c tx->desc = dma_alloc_coherent(hdev, bytes, &tx->bus, GFP_KERNEL); bus 224 drivers/net/ethernet/google/gve/gve_tx.c (unsigned long)tx->bus); bus 233 drivers/net/ethernet/google/gve/gve_tx.c dma_free_coherent(hdev, bytes, tx->desc, tx->bus); bus 270 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c struct mii_bus *bus; bus 917 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c static int hix5hd2_mdio_wait_ready(struct mii_bus *bus) bus 919 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c struct hix5hd2_priv *priv = bus->priv; bus 932 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c static int hix5hd2_mdio_read(struct mii_bus *bus, int phy, int reg) bus 934 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c struct hix5hd2_priv *priv = bus->priv; bus 938 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c ret = hix5hd2_mdio_wait_ready(bus); bus 943 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c ret = hix5hd2_mdio_wait_ready(bus); bus 949 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c dev_err(bus->parent, "SMI bus read not valid\n"); bus 960 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c static int hix5hd2_mdio_write(struct mii_bus *bus, int phy, int reg, u16 val) bus 962 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c struct hix5hd2_priv *priv = bus->priv; bus 966 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c ret = hix5hd2_mdio_wait_ready(bus); bus 972 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c ret = hix5hd2_mdio_wait_ready(bus); bus 1100 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c struct mii_bus *bus; bus 1178 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c bus = mdiobus_alloc(); bus 1179 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c if (bus == NULL) { bus 1184 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c bus->priv = priv; bus 1185 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c bus->name = "hix5hd2_mii_bus"; bus 1186 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c bus->read = hix5hd2_mdio_read; bus 1187 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c bus->write = hix5hd2_mdio_write; bus 1188 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c bus->parent = &pdev->dev; bus 1189 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c snprintf(bus->id, MII_BUS_ID_SIZE, "%s-mii", dev_name(&pdev->dev)); bus 1190 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c priv->bus = bus; bus 1192 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c ret = of_mdiobus_register(bus, node); bus 1277 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c mdiobus_unregister(bus); bus 1279 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c mdiobus_free(bus); bus 1297 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c mdiobus_unregister(priv->bus); bus 1298 drivers/net/ethernet/hisilicon/hix5hd2_gmac.c mdiobus_free(priv->bus); bus 68 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c if (!phy_dev || !phy_dev->mdio.bus) { bus 651 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c strncpy(drvinfo->bus_info, priv->dev->bus->name, bus 42 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c static int hclge_mdio_write(struct mii_bus *bus, int phyid, int regnum, bus 46 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c struct hclge_dev *hdev = bus->priv; bus 81 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c static int hclge_mdio_read(struct mii_bus *bus, int phyid, int regnum) bus 84 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c struct hclge_dev *hdev = bus->priv; bus 171 drivers/net/ethernet/hisilicon/hns_mdio.c static int hns_mdio_wait_ready(struct mii_bus *bus) bus 173 drivers/net/ethernet/hisilicon/hns_mdio.c struct hns_mdio_device *mdio_dev = bus->priv; bus 217 drivers/net/ethernet/hisilicon/hns_mdio.c static int hns_mdio_write(struct mii_bus *bus, bus 221 drivers/net/ethernet/hisilicon/hns_mdio.c struct hns_mdio_device *mdio_dev = (struct hns_mdio_device *)bus->priv; bus 228 drivers/net/ethernet/hisilicon/hns_mdio.c dev_dbg(&bus->dev, "mdio write %s,base is %p\n", bus 229 drivers/net/ethernet/hisilicon/hns_mdio.c bus->id, mdio_dev->vbase); bus 230 drivers/net/ethernet/hisilicon/hns_mdio.c dev_dbg(&bus->dev, "phy id=%d, is_c45=%d, devad=%d, reg=%#x, write data=%d\n", bus 234 drivers/net/ethernet/hisilicon/hns_mdio.c ret = hns_mdio_wait_ready(bus); bus 236 drivers/net/ethernet/hisilicon/hns_mdio.c dev_err(&bus->dev, "MDIO bus is busy\n"); bus 252 drivers/net/ethernet/hisilicon/hns_mdio.c ret = hns_mdio_wait_ready(bus); bus 254 drivers/net/ethernet/hisilicon/hns_mdio.c dev_err(&bus->dev, "MDIO bus is busy\n"); bus 280 drivers/net/ethernet/hisilicon/hns_mdio.c static int hns_mdio_read(struct mii_bus *bus, int phy_id, int regnum) bus 287 drivers/net/ethernet/hisilicon/hns_mdio.c struct hns_mdio_device *mdio_dev = (struct hns_mdio_device *)bus->priv; bus 289 drivers/net/ethernet/hisilicon/hns_mdio.c dev_dbg(&bus->dev, "mdio read %s,base is %p\n", bus 290 drivers/net/ethernet/hisilicon/hns_mdio.c bus->id, mdio_dev->vbase); bus 291 drivers/net/ethernet/hisilicon/hns_mdio.c dev_dbg(&bus->dev, "phy id=%d, is_c45=%d, devad=%d, reg=%#x!\n", bus 295 drivers/net/ethernet/hisilicon/hns_mdio.c ret = hns_mdio_wait_ready(bus); bus 297 drivers/net/ethernet/hisilicon/hns_mdio.c dev_err(&bus->dev, "MDIO bus is busy\n"); bus 313 drivers/net/ethernet/hisilicon/hns_mdio.c ret = hns_mdio_wait_ready(bus); bus 315 drivers/net/ethernet/hisilicon/hns_mdio.c dev_err(&bus->dev, "MDIO bus is busy\n"); bus 325 drivers/net/ethernet/hisilicon/hns_mdio.c ret = hns_mdio_wait_ready(bus); bus 327 drivers/net/ethernet/hisilicon/hns_mdio.c dev_err(&bus->dev, "MDIO bus is busy\n"); bus 333 drivers/net/ethernet/hisilicon/hns_mdio.c dev_err(&bus->dev, " ERROR! MDIO Read failed!\n"); bus 350 drivers/net/ethernet/hisilicon/hns_mdio.c static int hns_mdio_reset(struct mii_bus *bus) bus 352 drivers/net/ethernet/hisilicon/hns_mdio.c struct hns_mdio_device *mdio_dev = (struct hns_mdio_device *)bus->priv; bus 356 drivers/net/ethernet/hisilicon/hns_mdio.c if (dev_of_node(bus->parent)) { bus 358 drivers/net/ethernet/hisilicon/hns_mdio.c dev_err(&bus->dev, "mdio sys ctl reg has not maped\n"); bus 368 drivers/net/ethernet/hisilicon/hns_mdio.c dev_err(&bus->dev, "MDIO reset fail\n"); bus 377 drivers/net/ethernet/hisilicon/hns_mdio.c dev_err(&bus->dev, "MDIO dis clk fail\n"); bus 386 drivers/net/ethernet/hisilicon/hns_mdio.c dev_err(&bus->dev, "MDIO dis clk fail\n"); bus 395 drivers/net/ethernet/hisilicon/hns_mdio.c dev_err(&bus->dev, "MDIO en clk fail\n"); bus 396 drivers/net/ethernet/hisilicon/hns_mdio.c } else if (is_acpi_node(bus->parent->fwnode)) { bus 399 drivers/net/ethernet/hisilicon/hns_mdio.c s = acpi_evaluate_object(ACPI_HANDLE(bus->parent), bus 402 drivers/net/ethernet/hisilicon/hns_mdio.c dev_err(&bus->dev, "Reset failed, return:%#x\n", s); bus 408 drivers/net/ethernet/hisilicon/hns_mdio.c dev_err(&bus->dev, "Can not get cfg data from DT or ACPI\n"); bus 538 drivers/net/ethernet/hisilicon/hns_mdio.c struct mii_bus *bus; bus 540 drivers/net/ethernet/hisilicon/hns_mdio.c bus = platform_get_drvdata(pdev); bus 542 drivers/net/ethernet/hisilicon/hns_mdio.c mdiobus_unregister(bus); bus 149 drivers/net/ethernet/hp/hp100.c u_char bus; bus 220 drivers/net/ethernet/hp/hp100.c static int hp100_probe1(struct net_device *dev, int ioaddr, u_char bus, bus 432 drivers/net/ethernet/hp/hp100.c static int hp100_probe1(struct net_device *dev, int ioaddr, u_char bus, bus 567 drivers/net/ethernet/hp/hp100.c if((bus == HP100_BUS_PCI) && bus 603 drivers/net/ethernet/hp/hp100.c if (bus == HP100_BUS_ISA && (mem_ptr_phys & ~0xfffff) != 0) { bus 649 drivers/net/ethernet/hp/hp100.c lp->bus = bus; bus 673 drivers/net/ethernet/hp/hp100.c if (bus == HP100_BUS_PCI) { bus 735 drivers/net/ethernet/hp/hp100.c switch (bus) { bus 1084 drivers/net/ethernet/hp/hp100.c lp->bus == HP100_BUS_PCI || lp->bus == bus 2891 drivers/net/ethernet/ibm/ehea/ehea_main.c port->ofdev.dev.bus = &ibmebus_bus_type; bus 2481 drivers/net/ethernet/ibm/emac/core.c static int emac_mii_bus_read(struct mii_bus *bus, int addr, int regnum) bus 2483 drivers/net/ethernet/ibm/emac/core.c int ret = emac_mdio_read(bus->priv, addr, regnum); bus 2493 drivers/net/ethernet/ibm/emac/core.c static int emac_mii_bus_write(struct mii_bus *bus, int addr, bus 2496 drivers/net/ethernet/ibm/emac/core.c emac_mdio_write(bus->priv, addr, regnum, val); bus 2500 drivers/net/ethernet/ibm/emac/core.c static int emac_mii_bus_reset(struct mii_bus *bus) bus 2502 drivers/net/ethernet/ibm/emac/core.c struct emac_instance *dev = netdev_priv(bus->priv); bus 182 drivers/net/ethernet/intel/e1000e/80003es2lan.c mask = hw->bus.func ? E1000_SWFW_PHY1_SM : E1000_SWFW_PHY0_SM; bus 196 drivers/net/ethernet/intel/e1000e/80003es2lan.c mask = hw->bus.func ? E1000_SWFW_PHY1_SM : E1000_SWFW_PHY0_SM; bus 497 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (hw->bus.func == 1) bus 680 drivers/net/ethernet/intel/e1000e/hw.h struct e1000_bus_info bus; bus 4615 drivers/net/ethernet/intel/e1000e/ich8lan.c struct e1000_bus_info *bus = &hw->bus; bus 4625 drivers/net/ethernet/intel/e1000e/ich8lan.c if (bus->width == e1000_bus_width_unknown) bus 4626 drivers/net/ethernet/intel/e1000e/ich8lan.c bus->width = e1000_bus_width_pcie_x1; bus 17 drivers/net/ethernet/intel/e1000e/mac.c struct e1000_bus_info *bus = &hw->bus; bus 23 drivers/net/ethernet/intel/e1000e/mac.c bus->width = e1000_bus_width_unknown; bus 28 drivers/net/ethernet/intel/e1000e/mac.c bus->width = (enum e1000_bus_width)((pcie_link_status & bus 48 drivers/net/ethernet/intel/e1000e/mac.c struct e1000_bus_info *bus = &hw->bus; bus 55 drivers/net/ethernet/intel/e1000e/mac.c bus->func = (reg & E1000_STATUS_FUNC_MASK) >> E1000_STATUS_FUNC_SHIFT; bus 66 drivers/net/ethernet/intel/e1000e/mac.c struct e1000_bus_info *bus = &hw->bus; bus 68 drivers/net/ethernet/intel/e1000e/mac.c bus->func = 0; bus 167 drivers/net/ethernet/intel/e1000e/mac.c if (hw->bus.func == E1000_FUNC_1) bus 6462 drivers/net/ethernet/intel/e1000e/netdev.c struct pci_dev *us_dev = pdev->bus->self; bus 6491 drivers/net/ethernet/intel/e1000e/netdev.c struct pci_dev *parent = pdev->bus->self; bus 6932 drivers/net/ethernet/intel/e1000e/netdev.c ((hw->bus.width == e1000_bus_width_pcie_x4) ? "Width x4" : bus 7303 drivers/net/ethernet/intel/e1000e/netdev.c (adapter->hw.bus.func == 1)) bus 76 drivers/net/ethernet/intel/fm10k/fm10k_common.c hw->bus.width = fm10k_bus_width_pcie_x1; bus 79 drivers/net/ethernet/intel/fm10k/fm10k_common.c hw->bus.width = fm10k_bus_width_pcie_x2; bus 82 drivers/net/ethernet/intel/fm10k/fm10k_common.c hw->bus.width = fm10k_bus_width_pcie_x4; bus 85 drivers/net/ethernet/intel/fm10k/fm10k_common.c hw->bus.width = fm10k_bus_width_pcie_x8; bus 88 drivers/net/ethernet/intel/fm10k/fm10k_common.c hw->bus.width = fm10k_bus_width_unknown; bus 94 drivers/net/ethernet/intel/fm10k/fm10k_common.c hw->bus.speed = fm10k_bus_speed_2500; bus 97 drivers/net/ethernet/intel/fm10k/fm10k_common.c hw->bus.speed = fm10k_bus_speed_5000; bus 100 drivers/net/ethernet/intel/fm10k/fm10k_common.c hw->bus.speed = fm10k_bus_speed_8000; bus 103 drivers/net/ethernet/intel/fm10k/fm10k_common.c hw->bus.speed = fm10k_bus_speed_unknown; bus 112 drivers/net/ethernet/intel/fm10k/fm10k_common.c hw->bus.payload = fm10k_bus_payload_128; bus 115 drivers/net/ethernet/intel/fm10k/fm10k_common.c hw->bus.payload = fm10k_bus_payload_256; bus 118 drivers/net/ethernet/intel/fm10k/fm10k_common.c hw->bus.payload = fm10k_bus_payload_512; bus 121 drivers/net/ethernet/intel/fm10k/fm10k_common.c hw->bus.payload = fm10k_bus_payload_unknown; bus 138 drivers/net/ethernet/intel/fm10k/fm10k_pf.c switch (hw->bus.speed) { bus 745 drivers/net/ethernet/intel/fm10k/fm10k_pf.c switch (hw->bus.speed) { bus 647 drivers/net/ethernet/intel/fm10k/fm10k_type.h struct fm10k_bus_info bus; bus 424 drivers/net/ethernet/intel/i40e/i40e_client.c pf->hw.pf_id, pf->hw.bus.bus_id, bus 425 drivers/net/ethernet/intel/i40e/i40e_client.c pf->hw.bus.device, pf->hw.bus.func); bus 463 drivers/net/ethernet/intel/i40e/i40e_client.c pf->hw.pf_id, pf->hw.bus.bus_id, bus 464 drivers/net/ethernet/intel/i40e/i40e_client.c pf->hw.bus.device, pf->hw.bus.func); bus 322 drivers/net/ethernet/intel/i40e/i40e_common.c hw->bus.bus_id, bus 323 drivers/net/ethernet/intel/i40e/i40e_common.c hw->bus.device, bus 324 drivers/net/ethernet/intel/i40e/i40e_common.c hw->bus.func); bus 4477 drivers/net/ethernet/intel/i40e/i40e_common.c hw->bus.type = i40e_bus_type_pci_express; bus 4481 drivers/net/ethernet/intel/i40e/i40e_common.c hw->bus.width = i40e_bus_width_pcie_x1; bus 4484 drivers/net/ethernet/intel/i40e/i40e_common.c hw->bus.width = i40e_bus_width_pcie_x2; bus 4487 drivers/net/ethernet/intel/i40e/i40e_common.c hw->bus.width = i40e_bus_width_pcie_x4; bus 4490 drivers/net/ethernet/intel/i40e/i40e_common.c hw->bus.width = i40e_bus_width_pcie_x8; bus 4493 drivers/net/ethernet/intel/i40e/i40e_common.c hw->bus.width = i40e_bus_width_unknown; bus 4499 drivers/net/ethernet/intel/i40e/i40e_common.c hw->bus.speed = i40e_bus_speed_2500; bus 4502 drivers/net/ethernet/intel/i40e/i40e_common.c hw->bus.speed = i40e_bus_speed_5000; bus 4505 drivers/net/ethernet/intel/i40e/i40e_common.c hw->bus.speed = i40e_bus_speed_8000; bus 4508 drivers/net/ethernet/intel/i40e/i40e_common.c hw->bus.speed = i40e_bus_speed_unknown; bus 428 drivers/net/ethernet/intel/i40e/i40e_ddp.c if (pf->hw.bus.func != 0) { bus 14815 drivers/net/ethernet/intel/i40e/i40e_main.c hw->bus.device = PCI_SLOT(pdev->devfn); bus 14816 drivers/net/ethernet/intel/i40e/i40e_main.c hw->bus.func = PCI_FUNC(pdev->devfn); bus 14817 drivers/net/ethernet/intel/i40e/i40e_main.c hw->bus.bus_id = pdev->bus->number; bus 15214 drivers/net/ethernet/intel/i40e/i40e_main.c switch (hw->bus.speed) { bus 15224 drivers/net/ethernet/intel/i40e/i40e_main.c switch (hw->bus.width) { bus 15240 drivers/net/ethernet/intel/i40e/i40e_main.c if (hw->bus.width < i40e_bus_width_pcie_x8 || bus 15241 drivers/net/ethernet/intel/i40e/i40e_main.c hw->bus.speed < i40e_bus_speed_8000) { bus 56 drivers/net/ethernet/intel/i40e/i40e_osdep.h (h)->bus.bus_id, (h)->bus.device, \ bus 57 drivers/net/ethernet/intel/i40e/i40e_osdep.h (h)->bus.func, ##__VA_ARGS__); \ bus 567 drivers/net/ethernet/intel/i40e/i40e_type.h struct i40e_bus_info bus; bus 313 drivers/net/ethernet/intel/iavf/iavf_client.c adapter->hw.bus.bus_id, adapter->hw.bus.device, bus 314 drivers/net/ethernet/intel/iavf/iavf_client.c adapter->hw.bus.func); bus 342 drivers/net/ethernet/intel/iavf/iavf_client.c adapter->hw.bus.bus_id, adapter->hw.bus.device, bus 343 drivers/net/ethernet/intel/iavf/iavf_client.c adapter->hw.bus.func); bus 297 drivers/net/ethernet/intel/iavf/iavf_common.c hw->bus.bus_id, bus 298 drivers/net/ethernet/intel/iavf/iavf_common.c hw->bus.device, bus 299 drivers/net/ethernet/intel/iavf/iavf_common.c hw->bus.func); bus 3718 drivers/net/ethernet/intel/iavf/iavf_main.c hw->bus.device = PCI_SLOT(pdev->devfn); bus 3719 drivers/net/ethernet/intel/iavf/iavf_main.c hw->bus.func = PCI_FUNC(pdev->devfn); bus 3720 drivers/net/ethernet/intel/iavf/iavf_main.c hw->bus.bus_id = pdev->bus->number; bus 51 drivers/net/ethernet/intel/iavf/iavf_osdep.h (h)->bus.bus_id, (h)->bus.device, \ bus 52 drivers/net/ethernet/intel/iavf/iavf_osdep.h (h)->bus.func, ##__VA_ARGS__); \ bus 175 drivers/net/ethernet/intel/iavf/iavf_type.h struct iavf_bus_info bus; bus 2840 drivers/net/ethernet/intel/ice/ice_main.c hw->bus.device = PCI_SLOT(pdev->devfn); bus 2841 drivers/net/ethernet/intel/ice/ice_main.c hw->bus.func = PCI_FUNC(pdev->devfn); bus 430 drivers/net/ethernet/intel/ice/ice_type.h struct ice_bus_info bus; bus 225 drivers/net/ethernet/intel/igb/e1000_82575.c hw->bus.func = (rd32(E1000_STATUS) & E1000_STATUS_FUNC_MASK) >> bus 722 drivers/net/ethernet/intel/igb/e1000_82575.c if (hw->bus.func == E1000_FUNC_1) bus 724 drivers/net/ethernet/intel/igb/e1000_82575.c else if (hw->bus.func == E1000_FUNC_2) bus 726 drivers/net/ethernet/intel/igb/e1000_82575.c else if (hw->bus.func == E1000_FUNC_3) bus 743 drivers/net/ethernet/intel/igb/e1000_82575.c if (hw->bus.func == E1000_FUNC_1) bus 745 drivers/net/ethernet/intel/igb/e1000_82575.c else if (hw->bus.func == E1000_FUNC_2) bus 747 drivers/net/ethernet/intel/igb/e1000_82575.c else if (hw->bus.func == E1000_FUNC_3) bus 1235 drivers/net/ethernet/intel/igb/e1000_82575.c if (hw->bus.func == 1) bus 1237 drivers/net/ethernet/intel/igb/e1000_82575.c else if (hw->bus.func == E1000_FUNC_2) bus 1239 drivers/net/ethernet/intel/igb/e1000_82575.c else if (hw->bus.func == E1000_FUNC_3) bus 2226 drivers/net/ethernet/intel/igb/e1000_82575.c NVM_82580_LAN_FUNC_OFFSET(hw->bus.func), 1, bus 2790 drivers/net/ethernet/intel/igb/e1000_82575.c if ((hw->mac.type != e1000_i350) || (hw->bus.func != 0)) bus 2845 drivers/net/ethernet/intel/igb/e1000_82575.c if ((hw->mac.type != e1000_i350) || (hw->bus.func != 0)) bus 528 drivers/net/ethernet/intel/igb/e1000_hw.h struct e1000_bus_info bus; bus 27 drivers/net/ethernet/intel/igb/e1000_mac.c struct e1000_bus_info *bus = &hw->bus; bus 32 drivers/net/ethernet/intel/igb/e1000_mac.c bus->type = e1000_bus_type_pci_express; bus 38 drivers/net/ethernet/intel/igb/e1000_mac.c bus->width = e1000_bus_width_unknown; bus 39 drivers/net/ethernet/intel/igb/e1000_mac.c bus->speed = e1000_bus_speed_unknown; bus 43 drivers/net/ethernet/intel/igb/e1000_mac.c bus->speed = e1000_bus_speed_2500; bus 46 drivers/net/ethernet/intel/igb/e1000_mac.c bus->speed = e1000_bus_speed_5000; bus 49 drivers/net/ethernet/intel/igb/e1000_mac.c bus->speed = e1000_bus_speed_unknown; bus 53 drivers/net/ethernet/intel/igb/e1000_mac.c bus->width = (enum e1000_bus_width)((pcie_link_status & bus 59 drivers/net/ethernet/intel/igb/e1000_mac.c bus->func = (reg & E1000_STATUS_FUNC_MASK) >> E1000_STATUS_FUNC_SHIFT; bus 311 drivers/net/ethernet/intel/igb/e1000_mac.c if (hw->bus.func == E1000_FUNC_1) bus 313 drivers/net/ethernet/intel/igb/e1000_mac.c if (hw->bus.func == E1000_FUNC_2) bus 316 drivers/net/ethernet/intel/igb/e1000_mac.c if (hw->bus.func == E1000_FUNC_3) bus 776 drivers/net/ethernet/intel/igb/e1000_mac.c lan_offset = NVM_82580_LAN_FUNC_OFFSET(hw->bus.func); bus 1526 drivers/net/ethernet/intel/igb/e1000_mac.c if (hw->bus.type != e1000_bus_type_pci_express) bus 2399 drivers/net/ethernet/intel/igb/igb_main.c if (mac->type == e1000_i350 && hw->bus.func == 0) { bus 2919 drivers/net/ethernet/intel/igb/igb_main.c switch (hw->bus.func) { bus 2925 drivers/net/ethernet/intel/igb/igb_main.c hw->bus.func); bus 2933 drivers/net/ethernet/intel/igb/igb_main.c hw->bus.func); bus 2941 drivers/net/ethernet/intel/igb/igb_main.c hw->bus.func); bus 2949 drivers/net/ethernet/intel/igb/igb_main.c hw->bus.func); bus 3242 drivers/net/ethernet/intel/igb/igb_main.c if (hw->bus.func == 0) bus 3248 drivers/net/ethernet/intel/igb/igb_main.c NVM_82580_LAN_FUNC_OFFSET(hw->bus.func), 1, bus 3250 drivers/net/ethernet/intel/igb/igb_main.c else if (hw->bus.func == 1) bus 3313 drivers/net/ethernet/intel/igb/igb_main.c (hw->bus.func == 0)) { bus 3357 drivers/net/ethernet/intel/igb/igb_main.c if (hw->mac.type == e1000_i350 && hw->bus.func == 0) { bus 3388 drivers/net/ethernet/intel/igb/igb_main.c ((hw->bus.speed == e1000_bus_speed_2500) ? "2.5Gb/s" : bus 3389 drivers/net/ethernet/intel/igb/igb_main.c (hw->bus.speed == e1000_bus_speed_5000) ? "5.0Gb/s" : bus 3391 drivers/net/ethernet/intel/igb/igb_main.c ((hw->bus.width == e1000_bus_width_pcie_x4) ? bus 3393 drivers/net/ethernet/intel/igb/igb_main.c (hw->bus.width == e1000_bus_width_pcie_x2) ? bus 3395 drivers/net/ethernet/intel/igb/igb_main.c (hw->bus.width == e1000_bus_width_pcie_x1) ? bus 3803 drivers/net/ethernet/intel/igb/igb_main.c pci_read_config_word(pdev, PCI_COMMAND, &hw->bus.pci_cmd_word); bus 170 drivers/net/ethernet/intel/igc/igc_base.c hw->bus.func = (rd32(IGC_STATUS) & IGC_STATUS_FUNC_MASK) >> bus 204 drivers/net/ethernet/intel/igc/igc_hw.h struct igc_bus_info bus; bus 4174 drivers/net/ethernet/intel/igc/igc_main.c adapter->port_num = hw->bus.func; bus 4416 drivers/net/ethernet/intel/igc/igc_main.c pci_read_config_word(pdev, PCI_COMMAND, &hw->bus.pci_cmd_word); bus 1066 drivers/net/ethernet/intel/ixgb/ixgb_hw.c hw->bus.type = (status_reg & IXGB_STATUS_PCIX_MODE) ? bus 1069 drivers/net/ethernet/intel/ixgb/ixgb_hw.c if (hw->bus.type == ixgb_bus_type_pci) { bus 1070 drivers/net/ethernet/intel/ixgb/ixgb_hw.c hw->bus.speed = (status_reg & IXGB_STATUS_PCI_SPD) ? bus 1075 drivers/net/ethernet/intel/ixgb/ixgb_hw.c hw->bus.speed = ixgb_bus_speed_66; bus 1078 drivers/net/ethernet/intel/ixgb/ixgb_hw.c hw->bus.speed = ixgb_bus_speed_100; bus 1081 drivers/net/ethernet/intel/ixgb/ixgb_hw.c hw->bus.speed = ixgb_bus_speed_133; bus 1084 drivers/net/ethernet/intel/ixgb/ixgb_hw.c hw->bus.speed = ixgb_bus_speed_reserved; bus 1089 drivers/net/ethernet/intel/ixgb/ixgb_hw.c hw->bus.width = (status_reg & IXGB_STATUS_BUS64) ? bus 642 drivers/net/ethernet/intel/ixgb/ixgb_hw.h struct ixgb_bus bus; /* Bus parameters */ bus 1054 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c struct ixgbe_bus_info *bus = &hw->bus; bus 1071 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c bus->func = 0; bus 660 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c hw->bus.type = ixgbe_bus_type_pci_express; bus 665 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c hw->bus.width = ixgbe_convert_bus_width(link_status); bus 666 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c hw->bus.speed = ixgbe_convert_bus_speed(link_status); bus 682 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c struct ixgbe_bus_info *bus = &hw->bus; bus 687 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c bus->func = (reg & IXGBE_STATUS_LAN_ID) >> IXGBE_STATUS_LAN_ID_SHIFT; bus 688 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c bus->lan_id = bus->func; bus 693 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c bus->func ^= 0x1; bus 698 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c bus->instance_id = (ee_ctrl_4 & IXGBE_EE_CTRL_4_INST_ID) >> bus 2883 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c (hw->bus.func) ? (san_mac_offset += IXGBE_SAN_MAC_ADDR_PORT1_OFFSET) : bus 3766 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c fw_cmd.port_num = hw->bus.func; bus 188 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c parent_bus = adapter->pdev->bus->parent; bus 212 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c hw->bus.type = ixgbe_bus_type_pci_express; bus 223 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c hw->bus.width = ixgbe_convert_bus_width(link_status); bus 224 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c hw->bus.speed = ixgbe_convert_bus_speed(link_status); bus 259 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (hw->bus.type == ixgbe_bus_type_internal) bus 264 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c pdev = adapter->pdev->bus->parent->self; bus 10592 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c list_for_each_entry(entry, &adapter->pdev->bus->devices, bus_list) { bus 10637 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c (hw->bus.func == 0))) bus 10651 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (hw->bus.func != 0) bus 11308 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c bdev = pdev->bus->self; bus 11310 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c bdev = bdev->bus->self; bus 269 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if (hw->bus.lan_id) bus 778 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c static s32 ixgbe_mii_bus_read(struct mii_bus *bus, int addr, int regnum) bus 780 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c struct ixgbe_adapter *adapter = bus->priv; bus 794 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c static s32 ixgbe_mii_bus_write(struct mii_bus *bus, int addr, int regnum, bus 797 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c struct ixgbe_adapter *adapter = bus->priv; bus 810 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c static s32 ixgbe_x550em_a_mii_bus_read(struct mii_bus *bus, int addr, bus 813 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c struct ixgbe_adapter *adapter = bus->priv; bus 828 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c static s32 ixgbe_x550em_a_mii_bus_write(struct mii_bus *bus, int addr, bus 831 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c struct ixgbe_adapter *adapter = bus->priv; bus 849 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c int bus; bus 853 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c bus = rp_pdev->subordinate->number; bus 854 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c return pci_get_domain_bus_and_slot(0, bus, 0); bus 907 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c struct mii_bus *bus; bus 910 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c bus = devm_mdiobus_alloc(dev); bus 911 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if (!bus) bus 927 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c bus->read = &ixgbe_x550em_a_mii_bus_read; bus 928 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c bus->write = &ixgbe_x550em_a_mii_bus_write; bus 931 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c bus->read = &ixgbe_mii_bus_read; bus 932 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c bus->write = &ixgbe_mii_bus_write; bus 937 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c snprintf(bus->id, MII_BUS_ID_SIZE, "%s-mdio-%s", ixgbe_driver_name, bus 940 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c bus->name = "ixgbe-mdio"; bus 941 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c bus->priv = adapter; bus 942 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c bus->parent = dev; bus 943 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c bus->phy_mask = GENMASK(31, 0); bus 951 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c err = mdiobus_register(bus); bus 953 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c adapter->mii_bus = bus; bus 958 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c devm_mdiobus_free(dev, bus); bus 1481 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if (hw->bus.lan_id == 0) bus 1493 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if (hw->bus.lan_id == 0) bus 1506 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if (hw->bus.lan_id == 0) bus 1513 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if (hw->bus.lan_id == 0) bus 1520 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if (hw->bus.lan_id == 0) bus 1527 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if (hw->bus.lan_id == 0) bus 1717 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if (hw->bus.lan_id == 0) bus 1723 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if (hw->bus.lan_id == 0) bus 1757 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if (hw->bus.lan_id == 0) bus 3638 drivers/net/ethernet/intel/ixgbe/ixgbe_type.h struct ixgbe_bus_info bus; bus 77 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (hw->bus.lan_id) { bus 299 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (hw->bus.lan_id) bus 324 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (hw->bus.lan_id) bus 339 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (hw->bus.lan_id) bus 446 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c hic.cmd.port_number = hw->bus.lan_id; bus 531 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (hw->bus.lan_id) bus 742 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c token_cmd.port_number = hw->bus.lan_id; bus 771 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c token_cmd.port_number = hw->bus.lan_id; bus 801 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c write_cmd.port_number = hw->bus.lan_id; bus 831 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c hic.cmd.port_number = hw->bus.lan_id; bus 1241 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c hw->bus.type = ixgbe_bus_type_internal; bus 1242 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c hw->bus.width = ixgbe_bus_width_unknown; bus 1243 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c hw->bus.speed = ixgbe_bus_speed_unknown; bus 1288 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c fw_cmd.port_number = hw->bus.lan_id; bus 1439 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_RX_TRN_LINKUP_CTRL(hw->bus.lan_id), bus 1446 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_RX_TRN_LINKUP_CTRL(hw->bus.lan_id), bus 1453 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_DSP_TXFFE_STATE_4(hw->bus.lan_id), bus 1462 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_DSP_TXFFE_STATE_4(hw->bus.lan_id), bus 1468 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_DSP_TXFFE_STATE_5(hw->bus.lan_id), bus 1477 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_DSP_TXFFE_STATE_5(hw->bus.lan_id), bus 1484 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_TX_COEFF_CTRL_1(hw->bus.lan_id), bus 1494 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_TX_COEFF_CTRL_1(hw->bus.lan_id), bus 1511 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_LINK_CTRL_1(hw->bus.lan_id), bus 1521 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_LINK_CTRL_1(hw->bus.lan_id), bus 1529 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_PMD_FLX_MASK_ST20(hw->bus.lan_id), bus 1539 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_PMD_FLX_MASK_ST20(hw->bus.lan_id), bus 1565 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_LINK_CTRL_1(hw->bus.lan_id), bus 1587 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_LINK_CTRL_1(hw->bus.lan_id), bus 1673 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c reg_slice = IXGBE_CS4227_LINE_SPARE24_LSB + (hw->bus.lan_id << 12); bus 1701 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_PMD_FLX_MASK_ST20(hw->bus.lan_id), bus 1725 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_PMD_FLX_MASK_ST20(hw->bus.lan_id), bus 1764 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_PMD_FLX_MASK_ST20(hw->bus.lan_id), bus 1774 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_PMD_FLX_MASK_ST20(hw->bus.lan_id), bus 1828 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c slice_offset = (hw->bus.lan_id + bus 1829 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c (hw->bus.instance_id << 1)) << 12; bus 1831 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c slice_offset = hw->bus.lan_id << 12; bus 1959 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_LINK_CTRL_1(hw->bus.lan_id), bus 1970 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_LINK_CTRL_1(hw->bus.lan_id), bus 1976 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_SGMII_CTRL(hw->bus.lan_id), bus 1984 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_SGMII_CTRL(hw->bus.lan_id), bus 1990 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_PMD_FLX_MASK_ST20(hw->bus.lan_id), bus 1996 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_PMD_FLX_MASK_ST20(hw->bus.lan_id), bus 2008 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_PMD_FLX_MASK_ST20(hw->bus.lan_id), bus 2031 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_LINK_CTRL_1(hw->bus.lan_id), bus 2042 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_LINK_CTRL_1(hw->bus.lan_id), bus 2048 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_SGMII_CTRL(hw->bus.lan_id), bus 2056 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_SGMII_CTRL(hw->bus.lan_id), bus 2062 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_LINK_CTRL_1(hw->bus.lan_id), bus 2068 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_PMD_FLX_MASK_ST20(hw->bus.lan_id), bus 2080 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_PMD_FLX_MASK_ST20(hw->bus.lan_id), bus 2537 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_LINK_CTRL_1(hw->bus.lan_id), bus 2555 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_LINK_CTRL_1(hw->bus.lan_id), bus 2561 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_PMD_FLX_MASK_ST20(hw->bus.lan_id), bus 2574 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_PMD_FLX_MASK_ST20(hw->bus.lan_id), bus 2783 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c fw_cmd.port_num = (u8)hw->bus.func; bus 2838 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if ((hw->bus.lan_id && (word & NVM_INIT_CTRL_3_D10GMP_PORT1)) || bus 2903 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_AN_CNTL_1(hw->bus.lan_id), bus 2916 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_AN_CNTL_1(hw->bus.lan_id), bus 2961 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_LINK_S1(hw->bus.lan_id), bus 2974 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_AN_CNTL_1(hw->bus.lan_id), bus 2983 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_LP_BASE_PAGE_HIGH(hw->bus.lan_id), bus 3576 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_AN_CNTL_1(hw->bus.lan_id), bus 3626 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c IXGBE_KRM_AN_CNTL_1(hw->bus.lan_id), bus 3644 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (!hw->bus.lan_id) bus 304 drivers/net/ethernet/lantiq_etop.c ltq_etop_mdio_wr(struct mii_bus *bus, int phy_addr, int phy_reg, u16 phy_data) bus 318 drivers/net/ethernet/lantiq_etop.c ltq_etop_mdio_rd(struct mii_bus *bus, int phy_addr, int phy_reg) bus 92 drivers/net/ethernet/marvell/mvmdio.c struct mii_bus *bus) bus 94 drivers/net/ethernet/marvell/mvmdio.c struct orion_mdio_dev *dev = bus->priv; bus 125 drivers/net/ethernet/marvell/mvmdio.c dev_err(bus->parent, "Timeout: SMI busy for too long\n"); bus 140 drivers/net/ethernet/marvell/mvmdio.c static int orion_mdio_smi_read(struct mii_bus *bus, int mii_id, bus 143 drivers/net/ethernet/marvell/mvmdio.c struct orion_mdio_dev *dev = bus->priv; bus 150 drivers/net/ethernet/marvell/mvmdio.c ret = orion_mdio_wait_ready(&orion_mdio_smi_ops, bus); bus 159 drivers/net/ethernet/marvell/mvmdio.c ret = orion_mdio_wait_ready(&orion_mdio_smi_ops, bus); bus 165 drivers/net/ethernet/marvell/mvmdio.c dev_err(bus->parent, "SMI bus read not valid\n"); bus 172 drivers/net/ethernet/marvell/mvmdio.c static int orion_mdio_smi_write(struct mii_bus *bus, int mii_id, bus 175 drivers/net/ethernet/marvell/mvmdio.c struct orion_mdio_dev *dev = bus->priv; bus 181 drivers/net/ethernet/marvell/mvmdio.c ret = orion_mdio_wait_ready(&orion_mdio_smi_ops, bus); bus 205 drivers/net/ethernet/marvell/mvmdio.c static int orion_mdio_xsmi_read(struct mii_bus *bus, int mii_id, bus 208 drivers/net/ethernet/marvell/mvmdio.c struct orion_mdio_dev *dev = bus->priv; bus 215 drivers/net/ethernet/marvell/mvmdio.c ret = orion_mdio_wait_ready(&orion_mdio_xsmi_ops, bus); bus 225 drivers/net/ethernet/marvell/mvmdio.c ret = orion_mdio_wait_ready(&orion_mdio_xsmi_ops, bus); bus 231 drivers/net/ethernet/marvell/mvmdio.c dev_err(bus->parent, "XSMI bus read not valid\n"); bus 238 drivers/net/ethernet/marvell/mvmdio.c static int orion_mdio_xsmi_write(struct mii_bus *bus, int mii_id, bus 241 drivers/net/ethernet/marvell/mvmdio.c struct orion_mdio_dev *dev = bus->priv; bus 248 drivers/net/ethernet/marvell/mvmdio.c ret = orion_mdio_wait_ready(&orion_mdio_xsmi_ops, bus); bus 280 drivers/net/ethernet/marvell/mvmdio.c struct mii_bus *bus; bus 292 drivers/net/ethernet/marvell/mvmdio.c bus = devm_mdiobus_alloc_size(&pdev->dev, bus 294 drivers/net/ethernet/marvell/mvmdio.c if (!bus) bus 299 drivers/net/ethernet/marvell/mvmdio.c bus->read = orion_mdio_smi_read; bus 300 drivers/net/ethernet/marvell/mvmdio.c bus->write = orion_mdio_smi_write; bus 303 drivers/net/ethernet/marvell/mvmdio.c bus->read = orion_mdio_xsmi_read; bus 304 drivers/net/ethernet/marvell/mvmdio.c bus->write = orion_mdio_xsmi_write; bus 308 drivers/net/ethernet/marvell/mvmdio.c bus->name = "orion_mdio_bus"; bus 309 drivers/net/ethernet/marvell/mvmdio.c snprintf(bus->id, MII_BUS_ID_SIZE, "%s-mii", bus 311 drivers/net/ethernet/marvell/mvmdio.c bus->parent = &pdev->dev; bus 313 drivers/net/ethernet/marvell/mvmdio.c dev = bus->priv; bus 372 drivers/net/ethernet/marvell/mvmdio.c ret = of_mdiobus_register(bus, pdev->dev.of_node); bus 378 drivers/net/ethernet/marvell/mvmdio.c platform_set_drvdata(pdev, bus); bus 399 drivers/net/ethernet/marvell/mvmdio.c struct mii_bus *bus = platform_get_drvdata(pdev); bus 400 drivers/net/ethernet/marvell/mvmdio.c struct orion_mdio_dev *dev = bus->priv; bus 405 drivers/net/ethernet/marvell/mvmdio.c mdiobus_unregister(bus); bus 1302 drivers/net/ethernet/marvell/pxa168_eth.c static int pxa168_smi_read(struct mii_bus *bus, int phy_addr, int regnum) bus 1304 drivers/net/ethernet/marvell/pxa168_eth.c struct pxa168_eth_private *pep = bus->priv; bus 1326 drivers/net/ethernet/marvell/pxa168_eth.c static int pxa168_smi_write(struct mii_bus *bus, int phy_addr, int regnum, bus 1329 drivers/net/ethernet/marvell/pxa168_eth.c struct pxa168_eth_private *pep = bus->priv; bus 134 drivers/net/ethernet/mediatek/mtk_eth_soc.c static int mtk_mdio_write(struct mii_bus *bus, int phy_addr, bus 137 drivers/net/ethernet/mediatek/mtk_eth_soc.c struct mtk_eth *eth = bus->priv; bus 142 drivers/net/ethernet/mediatek/mtk_eth_soc.c static int mtk_mdio_read(struct mii_bus *bus, int phy_addr, int phy_reg) bus 144 drivers/net/ethernet/mediatek/mtk_eth_soc.c struct mtk_eth *eth = bus->priv; bus 236 drivers/net/ethernet/mellanox/mlx4/fw.c func->bus = field & 0xf; bus 251 drivers/net/ethernet/mellanox/mlx4/fw.c func->bus, func->device, func->function, func->physical_function, bus 158 drivers/net/ethernet/mellanox/mlx4/fw.h int bus; bus 306 drivers/net/ethernet/mellanox/mlx5/core/dev.c return (u32)((pci_domain_nr(dev->pdev->bus) << 16) | bus 307 drivers/net/ethernet/mellanox/mlx5/core/dev.c (dev->pdev->bus->number << 8) | bus 63 drivers/net/ethernet/mellanox/mlxsw/core.c const struct mlxsw_bus *bus; bus 573 drivers/net/ethernet/mellanox/mlxsw/core.c if (!(mlxsw_core->bus->features & MLXSW_BUS_F_TXRX)) bus 614 drivers/net/ethernet/mellanox/mlxsw/core.c if (!(mlxsw_core->bus->features & MLXSW_BUS_F_TXRX)) bus 992 drivers/net/ethernet/mellanox/mlxsw/core.c if (!(mlxsw_core->bus->features & MLXSW_BUS_F_RESET)) bus 1006 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_core->bus, bus 1127 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_core->bus = mlxsw_bus; bus 1282 drivers/net/ethernet/mellanox/mlxsw/core.c mlxsw_core->bus->fini(mlxsw_core->bus_priv); bus 1298 drivers/net/ethernet/mellanox/mlxsw/core.c return mlxsw_core->bus->skb_transmit_busy(mlxsw_core->bus_priv, bus 1306 drivers/net/ethernet/mellanox/mlxsw/core.c return mlxsw_core->bus->skb_transmit(mlxsw_core->bus_priv, skb, bus 2038 drivers/net/ethernet/mellanox/mlxsw/core.c if (!mlxsw_core->bus->cmd_exec) bus 2048 drivers/net/ethernet/mellanox/mlxsw/core.c err = mlxsw_core->bus->cmd_exec(mlxsw_core->bus_priv, opcode, bus 2160 drivers/net/ethernet/mellanox/mlxsw/core.c return mlxsw_core->bus->read_frc_h(mlxsw_core->bus_priv); bus 2166 drivers/net/ethernet/mellanox/mlxsw/core.c return mlxsw_core->bus->read_frc_l(mlxsw_core->bus_priv); bus 1122 drivers/net/ethernet/microchip/encx24j600.c .bus = &spi_bus_type, bus 729 drivers/net/ethernet/microchip/lan743x_main.c static int lan743x_mdiobus_read(struct mii_bus *bus, int phy_id, int index) bus 731 drivers/net/ethernet/microchip/lan743x_main.c struct lan743x_adapter *adapter = bus->priv; bus 751 drivers/net/ethernet/microchip/lan743x_main.c static int lan743x_mdiobus_write(struct mii_bus *bus, bus 754 drivers/net/ethernet/microchip/lan743x_main.c struct lan743x_adapter *adapter = bus->priv; bus 107 drivers/net/ethernet/myricom/myri10ge/myri10ge.c DEFINE_DMA_UNMAP_ADDR(bus); bus 114 drivers/net/ethernet/myricom/myri10ge/myri10ge.c DEFINE_DMA_UNMAP_ADDR(bus); bus 129 drivers/net/ethernet/myricom/myri10ge/myri10ge.c dma_addr_t bus; bus 158 drivers/net/ethernet/myricom/myri10ge/myri10ge.c dma_addr_t bus; bus 1001 drivers/net/ethernet/myricom/myri10ge/myri10ge.c cmd.data0 = MYRI10GE_LOWPART_TO_U32(ss->rx_done.bus); bus 1002 drivers/net/ethernet/myricom/myri10ge/myri10ge.c cmd.data1 = MYRI10GE_HIGHPART_TO_U32(ss->rx_done.bus); bus 1194 drivers/net/ethernet/myricom/myri10ge/myri10ge.c dma_addr_t bus; bus 1220 drivers/net/ethernet/myricom/myri10ge/myri10ge.c bus = pci_map_page(mgp->pdev, page, 0, bus 1223 drivers/net/ethernet/myricom/myri10ge/myri10ge.c if (unlikely(pci_dma_mapping_error(mgp->pdev, bus))) { bus 1232 drivers/net/ethernet/myricom/myri10ge/myri10ge.c rx->bus = bus; bus 1239 drivers/net/ethernet/myricom/myri10ge/myri10ge.c dma_unmap_addr_set(&rx->info[idx], bus, rx->bus); bus 1241 drivers/net/ethernet/myricom/myri10ge/myri10ge.c htonl(MYRI10GE_LOWPART_TO_U32(rx->bus) + rx->page_offset); bus 1243 drivers/net/ethernet/myricom/myri10ge/myri10ge.c htonl(MYRI10GE_HIGHPART_TO_U32(rx->bus)); bus 1271 drivers/net/ethernet/myricom/myri10ge/myri10ge.c pci_unmap_page(pdev, (dma_unmap_addr(info, bus) bus 1415 drivers/net/ethernet/myricom/myri10ge/myri10ge.c bus), len, bus 1421 drivers/net/ethernet/myricom/myri10ge/myri10ge.c bus), len, bus 2126 drivers/net/ethernet/myricom/myri10ge/myri10ge.c bus), len, bus 2132 drivers/net/ethernet/myricom/myri10ge/myri10ge.c bus), len, bus 2280 drivers/net/ethernet/myricom/myri10ge/myri10ge.c dma_addr_t bus = ss->fw_stats_bus; bus 2283 drivers/net/ethernet/myricom/myri10ge/myri10ge.c bus += offsetof(struct mcp_irq_data, send_done_count); bus 2284 drivers/net/ethernet/myricom/myri10ge/myri10ge.c cmd.data0 = MYRI10GE_LOWPART_TO_U32(bus); bus 2285 drivers/net/ethernet/myricom/myri10ge/myri10ge.c cmd.data1 = MYRI10GE_HIGHPART_TO_U32(bus); bus 2600 drivers/net/ethernet/myricom/myri10ge/myri10ge.c bus), len, bus 2605 drivers/net/ethernet/myricom/myri10ge/myri10ge.c bus), len, bus 2633 drivers/net/ethernet/myricom/myri10ge/myri10ge.c dma_addr_t bus; bus 2729 drivers/net/ethernet/myricom/myri10ge/myri10ge.c bus = pci_map_single(mgp->pdev, skb->data, len, PCI_DMA_TODEVICE); bus 2730 drivers/net/ethernet/myricom/myri10ge/myri10ge.c if (unlikely(pci_dma_mapping_error(mgp->pdev, bus))) bus 2735 drivers/net/ethernet/myricom/myri10ge/myri10ge.c dma_unmap_addr_set(&tx->info[idx], bus, bus); bus 2764 drivers/net/ethernet/myricom/myri10ge/myri10ge.c low = MYRI10GE_LOWPART_TO_U32(bus); bus 2765 drivers/net/ethernet/myricom/myri10ge/myri10ge.c high_swapped = htonl(MYRI10GE_HIGHPART_TO_U32(bus)); bus 2836 drivers/net/ethernet/myricom/myri10ge/myri10ge.c bus = skb_frag_dma_map(&mgp->pdev->dev, frag, 0, len, bus 2838 drivers/net/ethernet/myricom/myri10ge/myri10ge.c if (unlikely(pci_dma_mapping_error(mgp->pdev, bus))) { bus 2843 drivers/net/ethernet/myricom/myri10ge/myri10ge.c dma_unmap_addr_set(&tx->info[idx], bus, bus); bus 3062 drivers/net/ethernet/myricom/myri10ge/myri10ge.c struct pci_dev *bridge = mgp->pdev->bus->self; bus 3080 drivers/net/ethernet/myricom/myri10ge/myri10ge.c bridge = bridge->bus->self; bus 3255 drivers/net/ethernet/myricom/myri10ge/myri10ge.c struct pci_dev *bridge = pdev->bus->self; bus 3570 drivers/net/ethernet/myricom/myri10ge/myri10ge.c ss->rx_done.entry, ss->rx_done.bus); bus 3605 drivers/net/ethernet/myricom/myri10ge/myri10ge.c &ss->rx_done.bus, bus 1028 drivers/net/ethernet/neterion/s2io.c if (tdev->bus == s2io_pdev->bus->parent) { bus 4312 drivers/net/ethernet/neterion/vxge/vxge-main.c static int bus = -1, device = -1; bus 4325 drivers/net/ethernet/neterion/vxge/vxge-main.c if (((bus != pdev->bus->number) || (device != PCI_SLOT(pdev->devfn))) && bus 4329 drivers/net/ethernet/neterion/vxge/vxge-main.c bus = pdev->bus->number; bus 1095 drivers/net/ethernet/ni/nixge.c static int nixge_mdio_read(struct mii_bus *bus, int phy_id, int reg) bus 1097 drivers/net/ethernet/ni/nixge.c struct nixge_priv *priv = bus->priv; bus 1144 drivers/net/ethernet/ni/nixge.c static int nixge_mdio_write(struct mii_bus *bus, int phy_id, int reg, u16 val) bus 1146 drivers/net/ethernet/ni/nixge.c struct nixge_priv *priv = bus->priv; bus 1200 drivers/net/ethernet/ni/nixge.c struct mii_bus *bus; bus 1202 drivers/net/ethernet/ni/nixge.c bus = devm_mdiobus_alloc(priv->dev); bus 1203 drivers/net/ethernet/ni/nixge.c if (!bus) bus 1206 drivers/net/ethernet/ni/nixge.c snprintf(bus->id, MII_BUS_ID_SIZE, "%s-mii", dev_name(priv->dev)); bus 1207 drivers/net/ethernet/ni/nixge.c bus->priv = priv; bus 1208 drivers/net/ethernet/ni/nixge.c bus->name = "nixge_mii_bus"; bus 1209 drivers/net/ethernet/ni/nixge.c bus->read = nixge_mdio_read; bus 1210 drivers/net/ethernet/ni/nixge.c bus->write = nixge_mdio_write; bus 1211 drivers/net/ethernet/ni/nixge.c bus->parent = priv->dev; bus 1213 drivers/net/ethernet/ni/nixge.c priv->mii_bus = bus; bus 1215 drivers/net/ethernet/ni/nixge.c return of_mdiobus_register(bus, np); bus 668 drivers/net/ethernet/nxp/lpc_eth.c static int lpc_mdio_read(struct mii_bus *bus, int phy_id, int phyreg) bus 670 drivers/net/ethernet/nxp/lpc_eth.c struct netdata_local *pldat = bus->priv; bus 690 drivers/net/ethernet/nxp/lpc_eth.c static int lpc_mdio_write(struct mii_bus *bus, int phy_id, int phyreg, bus 693 drivers/net/ethernet/nxp/lpc_eth.c struct netdata_local *pldat = bus->priv; bus 709 drivers/net/ethernet/nxp/lpc_eth.c static int lpc_mdio_reset(struct mii_bus *bus) bus 711 drivers/net/ethernet/nxp/lpc_eth.c return __lpc_mii_mngt_reset((struct netdata_local *)bus->priv); bus 2543 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c pci_get_domain_bus_and_slot(pci_domain_nr(adapter->pdev->bus), bus 2544 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c adapter->pdev->bus->number, bus 1422 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c struct pci_dev *root = pdev->bus->self; bus 4137 drivers/net/ethernet/qlogic/qed/qed_debug.c (!dump || dev_data->bus.state == DBG_BUS_STATE_IDLE)) bus 2569 drivers/net/ethernet/qlogic/qed/qed_hsi.h struct dbg_bus_data bus; bus 723 drivers/net/ethernet/qlogic/qed/qed_main.c id, cdev->pdev->bus->number, bus 731 drivers/net/ethernet/qlogic/qed/qed_main.c cdev->pdev->bus->number, PCI_SLOT(cdev->pdev->devfn), bus 1183 drivers/net/ethernet/qlogic/qed/qed_main.c cdev->pdev->bus->number, bus 5244 drivers/net/ethernet/qlogic/qed/qed_sriov.c cdev->pdev->bus->number, bus 1053 drivers/net/ethernet/qlogic/qede/qede_main.c pr_info("qede %02x:%02x.%02x: %s [%s]\n", edev->pdev->bus->number, bus 3806 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c (pdev->bus), pdev->bus->number, bus 44 drivers/net/ethernet/qualcomm/emac/emac-phy.c static int emac_mdio_read(struct mii_bus *bus, int addr, int regnum) bus 46 drivers/net/ethernet/qualcomm/emac/emac-phy.c struct emac_adapter *adpt = bus->priv; bus 67 drivers/net/ethernet/qualcomm/emac/emac-phy.c static int emac_mdio_write(struct mii_bus *bus, int addr, int regnum, u16 val) bus 69 drivers/net/ethernet/qualcomm/emac/emac-phy.c struct emac_adapter *adpt = bus->priv; bus 239 drivers/net/ethernet/rdc/r6040.c static int r6040_mdiobus_read(struct mii_bus *bus, int phy_addr, int reg) bus 241 drivers/net/ethernet/rdc/r6040.c struct net_device *dev = bus->priv; bus 248 drivers/net/ethernet/rdc/r6040.c static int r6040_mdiobus_write(struct mii_bus *bus, int phy_addr, bus 251 drivers/net/ethernet/rdc/r6040.c struct net_device *dev = bus->priv; bus 6763 drivers/net/ethernet/realtek/r8169_main.c mdiobus_unregister(tp->phydev->mdio.bus); bus 7263 drivers/net/ethernet/realtek/r8169_main.c mdiobus_unregister(tp->phydev->mdio.bus); bus 109 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c static int sxgbe_mdio_read(struct mii_bus *bus, int phyaddr, int phyreg) bus 111 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c struct net_device *ndev = bus->priv; bus 130 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c static int sxgbe_mdio_write(struct mii_bus *bus, int phyaddr, int phyreg, bus 133 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c struct net_device *ndev = bus->priv; bus 1571 drivers/net/ethernet/sfc/efx.c pcibus_to_node(efx->pci_dev->bus)); bus 2332 drivers/net/ethernet/sfc/falcon/falcon.c if (dev->bus == efx->pci_dev->bus && bus 1267 drivers/net/ethernet/sfc/siena_sriov.c pci_domain_nr(pci_dev->bus), pci_dev->bus->number, bus 1027 drivers/net/ethernet/sgi/ioc3-eth.c struct pci_dev *dev = pci_get_slot(pdev->bus, PCI_DEVFN(slot, 0)); bus 1042 drivers/net/ethernet/sgi/ioc3-eth.c return !pdev->bus->parent && bus 553 drivers/net/ethernet/smsc/smsc911x.c static int smsc911x_mii_read(struct mii_bus *bus, int phyaddr, int regidx) bus 555 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = (struct smsc911x_data *)bus->priv; bus 589 drivers/net/ethernet/smsc/smsc911x.c static int smsc911x_mii_write(struct mii_bus *bus, int phyaddr, int regidx, bus 592 drivers/net/ethernet/smsc/smsc911x.c struct smsc911x_data *pdata = (struct smsc911x_data *)bus->priv; bus 868 drivers/net/ethernet/smsc/smsc911x.c smsc911x_mii_write(phy_dev->mdio.bus, phy_dev->mdio.addr, bus 897 drivers/net/ethernet/smsc/smsc911x.c smsc911x_mii_write(phy_dev->mdio.bus, phy_dev->mdio.addr, MII_BMCR, 0); bus 2004 drivers/net/ethernet/smsc/smsc911x.c data[j++] = smsc911x_mii_read(phy_dev->mdio.bus, bus 103 drivers/net/ethernet/smsc/smsc9420.c static int smsc9420_mii_read(struct mii_bus *bus, int phyaddr, int regidx) bus 105 drivers/net/ethernet/smsc/smsc9420.c struct smsc9420_pdata *pd = (struct smsc9420_pdata *)bus->priv; bus 140 drivers/net/ethernet/smsc/smsc9420.c static int smsc9420_mii_write(struct mii_bus *bus, int phyaddr, int regidx, bus 143 drivers/net/ethernet/smsc/smsc9420.c struct smsc9420_pdata *pd = (struct smsc9420_pdata *)bus->priv; bus 269 drivers/net/ethernet/smsc/smsc9420.c data[j++] = smsc9420_mii_read(phy_dev->mdio.bus, bus 1151 drivers/net/ethernet/smsc/smsc9420.c (pd->pdev->bus->number << 8) | pd->pdev->devfn); bus 465 drivers/net/ethernet/socionext/netsec.c static int netsec_phy_read(struct mii_bus *bus, int phy_addr, int reg_addr); bus 467 drivers/net/ethernet/socionext/netsec.c static int netsec_phy_write(struct mii_bus *bus, bus 471 drivers/net/ethernet/socionext/netsec.c struct netsec_priv *priv = bus->priv; bus 493 drivers/net/ethernet/socionext/netsec.c netsec_phy_read(bus, phy_addr, MII_PHYSID1); bus 498 drivers/net/ethernet/socionext/netsec.c static int netsec_phy_read(struct mii_bus *bus, int phy_addr, int reg_addr) bus 500 drivers/net/ethernet/socionext/netsec.c struct netsec_priv *priv = bus->priv; bus 1887 drivers/net/ethernet/socionext/netsec.c struct mii_bus *bus; bus 1890 drivers/net/ethernet/socionext/netsec.c bus = devm_mdiobus_alloc(priv->dev); bus 1891 drivers/net/ethernet/socionext/netsec.c if (!bus) bus 1894 drivers/net/ethernet/socionext/netsec.c snprintf(bus->id, MII_BUS_ID_SIZE, "%s", dev_name(priv->dev)); bus 1895 drivers/net/ethernet/socionext/netsec.c bus->priv = priv; bus 1896 drivers/net/ethernet/socionext/netsec.c bus->name = "SNI NETSEC MDIO"; bus 1897 drivers/net/ethernet/socionext/netsec.c bus->read = netsec_phy_read; bus 1898 drivers/net/ethernet/socionext/netsec.c bus->write = netsec_phy_write; bus 1899 drivers/net/ethernet/socionext/netsec.c bus->parent = priv->dev; bus 1900 drivers/net/ethernet/socionext/netsec.c priv->mii_bus = bus; bus 1915 drivers/net/ethernet/socionext/netsec.c ret = of_mdiobus_register(bus, parent); bus 1924 drivers/net/ethernet/socionext/netsec.c bus->phy_mask = ~0; bus 1925 drivers/net/ethernet/socionext/netsec.c ret = mdiobus_register(bus); bus 1931 drivers/net/ethernet/socionext/netsec.c priv->phydev = get_phy_device(bus, phy_addr, false); bus 1941 drivers/net/ethernet/socionext/netsec.c mdiobus_unregister(bus); bus 491 drivers/net/ethernet/socionext/sni_ave.c static int ave_mdiobus_read(struct mii_bus *bus, int phyid, int regnum) bus 493 drivers/net/ethernet/socionext/sni_ave.c struct net_device *ndev = bus->priv; bus 519 drivers/net/ethernet/socionext/sni_ave.c static int ave_mdiobus_write(struct mii_bus *bus, int phyid, int regnum, bus 522 drivers/net/ethernet/socionext/sni_ave.c struct net_device *ndev = bus->priv; bus 69 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c static int stmmac_xgmac2_mdio_read(struct mii_bus *bus, int phyaddr, int phyreg) bus 71 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c struct net_device *ndev = bus->priv; bus 108 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c static int stmmac_xgmac2_mdio_write(struct mii_bus *bus, int phyaddr, bus 111 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c struct net_device *ndev = bus->priv; bus 155 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c static int stmmac_mdio_read(struct mii_bus *bus, int phyaddr, int phyreg) bus 157 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c struct net_device *ndev = bus->priv; bus 209 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c static int stmmac_mdio_write(struct mii_bus *bus, int phyaddr, int phyreg, bus 212 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c struct net_device *ndev = bus->priv; bus 261 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c int stmmac_mdio_reset(struct mii_bus *bus) bus 264 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c struct net_device *ndev = bus->priv; bus 4809 drivers/net/ethernet/sun/cassini.c struct pci_dev *pdev = cas_pdev->bus->self; bus 9756 drivers/net/ethernet/sun/niu.c parent_id.pci.domain = pci_domain_nr(pdev->bus); bus 9757 drivers/net/ethernet/sun/niu.c parent_id.pci.bus = pdev->bus->number; bus 3059 drivers/net/ethernet/sun/niu.h int bus; bus 2642 drivers/net/ethernet/sun/sunhme.c struct pci_dev *bdev = pdev->bus->self; bus 2903 drivers/net/ethernet/sun/sunhme.c struct pci_dev *busdev = pdev->bus->self; bus 2913 drivers/net/ethernet/sun/sunhme.c list_for_each_entry(this_pdev, &pdev->bus->devices, bus_list) { bus 265 drivers/net/ethernet/ti/cpmac.c static int cpmac_mdio_read(struct mii_bus *bus, int phy_id, int reg) bus 269 drivers/net/ethernet/ti/cpmac.c while (cpmac_read(bus->priv, CPMAC_MDIO_ACCESS(0)) & MDIO_BUSY) bus 271 drivers/net/ethernet/ti/cpmac.c cpmac_write(bus->priv, CPMAC_MDIO_ACCESS(0), MDIO_BUSY | MDIO_REG(reg) | bus 273 drivers/net/ethernet/ti/cpmac.c while ((val = cpmac_read(bus->priv, CPMAC_MDIO_ACCESS(0))) & MDIO_BUSY) bus 279 drivers/net/ethernet/ti/cpmac.c static int cpmac_mdio_write(struct mii_bus *bus, int phy_id, bus 282 drivers/net/ethernet/ti/cpmac.c while (cpmac_read(bus->priv, CPMAC_MDIO_ACCESS(0)) & MDIO_BUSY) bus 284 drivers/net/ethernet/ti/cpmac.c cpmac_write(bus->priv, CPMAC_MDIO_ACCESS(0), MDIO_BUSY | MDIO_WRITE | bus 290 drivers/net/ethernet/ti/cpmac.c static int cpmac_mdio_reset(struct mii_bus *bus) bus 294 drivers/net/ethernet/ti/cpmac.c cpmac_clk = clk_get(&bus->dev, "cpmac"); bus 300 drivers/net/ethernet/ti/cpmac.c cpmac_write(bus->priv, CPMAC_MDIO_CONTROL, MDIOC_ENABLE | bus 85 drivers/net/ethernet/ti/davinci_mdio.c struct mii_bus *bus; bus 131 drivers/net/ethernet/ti/davinci_mdio.c static int davinci_mdio_reset(struct mii_bus *bus) bus 133 drivers/net/ethernet/ti/davinci_mdio.c struct davinci_mdio_data *data = bus->priv; bus 167 drivers/net/ethernet/ti/davinci_mdio.c data->bus->phy_mask = phy_mask; bus 226 drivers/net/ethernet/ti/davinci_mdio.c static int davinci_mdio_read(struct mii_bus *bus, int phy_id, int phy_reg) bus 228 drivers/net/ethernet/ti/davinci_mdio.c struct davinci_mdio_data *data = bus->priv; bus 269 drivers/net/ethernet/ti/davinci_mdio.c static int davinci_mdio_write(struct mii_bus *bus, int phy_id, bus 272 drivers/net/ethernet/ti/davinci_mdio.c struct davinci_mdio_data *data = bus->priv; bus 354 drivers/net/ethernet/ti/davinci_mdio.c data->bus = devm_mdiobus_alloc(dev); bus 355 drivers/net/ethernet/ti/davinci_mdio.c if (!data->bus) { bus 366 drivers/net/ethernet/ti/davinci_mdio.c snprintf(data->bus->id, MII_BUS_ID_SIZE, "%s", pdev->name); bus 379 drivers/net/ethernet/ti/davinci_mdio.c snprintf(data->bus->id, MII_BUS_ID_SIZE, "%s-%x", bus 383 drivers/net/ethernet/ti/davinci_mdio.c data->bus->name = dev_name(dev); bus 384 drivers/net/ethernet/ti/davinci_mdio.c data->bus->read = davinci_mdio_read, bus 385 drivers/net/ethernet/ti/davinci_mdio.c data->bus->write = davinci_mdio_write, bus 386 drivers/net/ethernet/ti/davinci_mdio.c data->bus->reset = davinci_mdio_reset, bus 387 drivers/net/ethernet/ti/davinci_mdio.c data->bus->parent = dev; bus 388 drivers/net/ethernet/ti/davinci_mdio.c data->bus->priv = data; bus 418 drivers/net/ethernet/ti/davinci_mdio.c ret = of_mdiobus_register(data->bus, dev->of_node); bus 424 drivers/net/ethernet/ti/davinci_mdio.c phy = mdiobus_get_phy(data->bus, addr); bus 444 drivers/net/ethernet/ti/davinci_mdio.c if (data->bus) bus 445 drivers/net/ethernet/ti/davinci_mdio.c mdiobus_unregister(data->bus); bus 444 drivers/net/ethernet/toshiba/tc35815.c static inline void *fd_bus_to_virt(struct tc35815_local *lp, dma_addr_t bus) bus 446 drivers/net/ethernet/toshiba/tc35815.c return (void *)((u8 *)lp->fd_buf + (bus - lp->fd_buf_dma)); bus 503 drivers/net/ethernet/toshiba/tc35815.c static int tc_mdio_read(struct mii_bus *bus, int mii_id, int regnum) bus 505 drivers/net/ethernet/toshiba/tc35815.c struct net_device *dev = bus->priv; bus 520 drivers/net/ethernet/toshiba/tc35815.c static int tc_mdio_write(struct mii_bus *bus, int mii_id, int regnum, u16 val) bus 522 drivers/net/ethernet/toshiba/tc35815.c struct net_device *dev = bus->priv; bus 672 drivers/net/ethernet/toshiba/tc35815.c (lp->pci_dev->bus->number << 8) | lp->pci_dev->devfn); bus 24 drivers/net/ethernet/xilinx/ll_temac_mdio.c static int temac_mdio_read(struct mii_bus *bus, int phy_id, int reg) bus 26 drivers/net/ethernet/xilinx/ll_temac_mdio.c struct temac_local *lp = bus->priv; bus 44 drivers/net/ethernet/xilinx/ll_temac_mdio.c static int temac_mdio_write(struct mii_bus *bus, int phy_id, int reg, u16 val) bus 46 drivers/net/ethernet/xilinx/ll_temac_mdio.c struct temac_local *lp = bus->priv; bus 67 drivers/net/ethernet/xilinx/ll_temac_mdio.c struct mii_bus *bus; bus 94 drivers/net/ethernet/xilinx/ll_temac_mdio.c bus = devm_mdiobus_alloc(&pdev->dev); bus 95 drivers/net/ethernet/xilinx/ll_temac_mdio.c if (!bus) bus 100 drivers/net/ethernet/xilinx/ll_temac_mdio.c snprintf(bus->id, MII_BUS_ID_SIZE, "%.8llx", bus 103 drivers/net/ethernet/xilinx/ll_temac_mdio.c snprintf(bus->id, MII_BUS_ID_SIZE, "%.8llx", bus 107 drivers/net/ethernet/xilinx/ll_temac_mdio.c bus->priv = lp; bus 108 drivers/net/ethernet/xilinx/ll_temac_mdio.c bus->name = "Xilinx TEMAC MDIO"; bus 109 drivers/net/ethernet/xilinx/ll_temac_mdio.c bus->read = temac_mdio_read; bus 110 drivers/net/ethernet/xilinx/ll_temac_mdio.c bus->write = temac_mdio_write; bus 111 drivers/net/ethernet/xilinx/ll_temac_mdio.c bus->parent = lp->dev; bus 113 drivers/net/ethernet/xilinx/ll_temac_mdio.c lp->mii_bus = bus; bus 115 drivers/net/ethernet/xilinx/ll_temac_mdio.c rc = of_mdiobus_register(bus, np); bus 45 drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c static int axienet_mdio_read(struct mii_bus *bus, int phy_id, int reg) bus 49 drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c struct axienet_local *lp = bus->priv; bus 88 drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c static int axienet_mdio_write(struct mii_bus *bus, int phy_id, int reg, bus 92 drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c struct axienet_local *lp = bus->priv; bus 220 drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c struct mii_bus *bus; bus 227 drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c bus = mdiobus_alloc(); bus 228 drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c if (!bus) bus 231 drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c snprintf(bus->id, MII_BUS_ID_SIZE, "axienet-%.8llx", bus 234 drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c bus->priv = lp; bus 235 drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c bus->name = "Xilinx Axi Ethernet MDIO"; bus 236 drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c bus->read = axienet_mdio_read; bus 237 drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c bus->write = axienet_mdio_write; bus 238 drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c bus->parent = lp->dev; bus 239 drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c lp->mii_bus = bus; bus 242 drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c ret = of_mdiobus_register(bus, mdio_node); bus 245 drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c mdiobus_free(bus); bus 737 drivers/net/ethernet/xilinx/xilinx_emaclite.c static int xemaclite_mdio_read(struct mii_bus *bus, int phy_id, int reg) bus 739 drivers/net/ethernet/xilinx/xilinx_emaclite.c struct net_local *lp = bus->priv; bus 781 drivers/net/ethernet/xilinx/xilinx_emaclite.c static int xemaclite_mdio_write(struct mii_bus *bus, int phy_id, int reg, bus 784 drivers/net/ethernet/xilinx/xilinx_emaclite.c struct net_local *lp = bus->priv; bus 822 drivers/net/ethernet/xilinx/xilinx_emaclite.c struct mii_bus *bus; bus 855 drivers/net/ethernet/xilinx/xilinx_emaclite.c bus = mdiobus_alloc(); bus 856 drivers/net/ethernet/xilinx/xilinx_emaclite.c if (!bus) { bus 861 drivers/net/ethernet/xilinx/xilinx_emaclite.c snprintf(bus->id, MII_BUS_ID_SIZE, "%.8llx", bus 863 drivers/net/ethernet/xilinx/xilinx_emaclite.c bus->priv = lp; bus 864 drivers/net/ethernet/xilinx/xilinx_emaclite.c bus->name = "Xilinx Emaclite MDIO"; bus 865 drivers/net/ethernet/xilinx/xilinx_emaclite.c bus->read = xemaclite_mdio_read; bus 866 drivers/net/ethernet/xilinx/xilinx_emaclite.c bus->write = xemaclite_mdio_write; bus 867 drivers/net/ethernet/xilinx/xilinx_emaclite.c bus->parent = dev; bus 869 drivers/net/ethernet/xilinx/xilinx_emaclite.c rc = of_mdiobus_register(bus, np); bus 875 drivers/net/ethernet/xilinx/xilinx_emaclite.c lp->mii_bus = bus; bus 880 drivers/net/ethernet/xilinx/xilinx_emaclite.c mdiobus_free(bus); bus 438 drivers/net/ethernet/xscale/ixp4xx_eth.c static int ixp4xx_mdio_cmd(struct mii_bus *bus, int phy_id, int location, bus 444 drivers/net/ethernet/xscale/ixp4xx_eth.c printk(KERN_ERR "%s: MII not ready to transmit\n", bus->name); bus 464 drivers/net/ethernet/xscale/ixp4xx_eth.c printk(KERN_ERR "%s #%i: MII write failed\n", bus->name, bus 470 drivers/net/ethernet/xscale/ixp4xx_eth.c printk(KERN_DEBUG "%s #%i: mdio_%s() took %i cycles\n", bus->name, bus 479 drivers/net/ethernet/xscale/ixp4xx_eth.c printk(KERN_DEBUG "%s #%i: MII read failed\n", bus->name, bus 489 drivers/net/ethernet/xscale/ixp4xx_eth.c static int ixp4xx_mdio_read(struct mii_bus *bus, int phy_id, int location) bus 495 drivers/net/ethernet/xscale/ixp4xx_eth.c ret = ixp4xx_mdio_cmd(bus, phy_id, location, 0, 0); bus 498 drivers/net/ethernet/xscale/ixp4xx_eth.c printk(KERN_DEBUG "%s #%i: MII read [%i] -> 0x%X\n", bus->name, bus 504 drivers/net/ethernet/xscale/ixp4xx_eth.c static int ixp4xx_mdio_write(struct mii_bus *bus, int phy_id, int location, bus 511 drivers/net/ethernet/xscale/ixp4xx_eth.c ret = ixp4xx_mdio_cmd(bus, phy_id, location, 1, val); bus 515 drivers/net/ethernet/xscale/ixp4xx_eth.c bus->name, phy_id, location, val, ret); bus 245 drivers/net/fddi/defxx.c #define DFX_BUS_EISA(dev) (dev->bus == &eisa_bus_type) bus 251 drivers/net/fddi/defxx.c #define DFX_BUS_TC(dev) (dev->bus == &tc_bus_type) bus 3783 drivers/net/fddi/defxx.c .bus = &eisa_bus_type, bus 3804 drivers/net/fddi/defxx.c .bus = &tc_bus_type, bus 1549 drivers/net/fddi/defza.c .bus = &tc_bus_type, bus 160 drivers/net/netdevsim/bus.c new_device_store(struct bus_type *bus, const char *buf, size_t count) bus 197 drivers/net/netdevsim/bus.c del_device_store(struct bus_type *bus, const char *buf, size_t count) bus 283 drivers/net/netdevsim/bus.c nsim_bus_dev->dev.bus = &nsim_bus; bus 308 drivers/net/netdevsim/bus.c .bus = &nsim_bus, bus 480 drivers/net/phy/adin.c struct mii_bus *bus = phydev->mdio.bus; bus 489 drivers/net/phy/adin.c err = __mdiobus_write(bus, phy_addr, ADIN1300_MII_EXT_REG_PTR, bus 494 drivers/net/phy/adin.c return __mdiobus_read(bus, phy_addr, ADIN1300_MII_EXT_REG_DATA); bus 500 drivers/net/phy/adin.c struct mii_bus *bus = phydev->mdio.bus; bus 509 drivers/net/phy/adin.c err = __mdiobus_write(bus, phy_addr, ADIN1300_MII_EXT_REG_PTR, bus 514 drivers/net/phy/adin.c return __mdiobus_write(bus, phy_addr, ADIN1300_MII_EXT_REG_DATA, val); bus 20 drivers/net/phy/cortina.c return mdiobus_read(phydev->mdio.bus, phydev->mdio.addr, bus 125 drivers/net/phy/dp83640.c struct mii_bus *bus; bus 213 drivers/net/phy/dp83640.c return mdiobus_write(phydev->mdio.bus, BROADCAST_ADDR, regnum, val); bus 1030 drivers/net/phy/dp83640.c put_device(&clock->bus->dev); bus 1038 drivers/net/phy/dp83640.c static void dp83640_clock_init(struct dp83640_clock *clock, struct mii_bus *bus) bus 1041 drivers/net/phy/dp83640.c clock->bus = bus; bus 1066 drivers/net/phy/dp83640.c get_device(&bus->dev); bus 1092 drivers/net/phy/dp83640.c static struct dp83640_clock *dp83640_clock_get_bus(struct mii_bus *bus) bus 1101 drivers/net/phy/dp83640.c if (tmp->bus == bus) { bus 1121 drivers/net/phy/dp83640.c dp83640_clock_init(clock, bus); bus 1143 drivers/net/phy/dp83640.c clock = dp83640_clock_get_bus(phydev->mdio.bus); bus 56 drivers/net/phy/fixed_phy.c if (!phydev || !phydev->mdio.bus) bus 75 drivers/net/phy/fixed_phy.c static int fixed_mdio_read(struct mii_bus *bus, int phy_addr, int reg_num) bus 77 drivers/net/phy/fixed_phy.c struct fixed_mdio_bus *fmb = bus->priv; bus 104 drivers/net/phy/fixed_phy.c static int fixed_mdio_write(struct mii_bus *bus, int phy_addr, int reg_num, bus 122 drivers/net/phy/fixed_phy.c if (!phydev || !phydev->mdio.bus) bus 72 drivers/net/phy/icplus.c err = mdiobus_write(phydev->mdio.bus, 30, 0, 0x175c); bus 77 drivers/net/phy/icplus.c err = mdiobus_read(phydev->mdio.bus, 30, 0); bus 83 drivers/net/phy/icplus.c err = mdiobus_write(phydev->mdio.bus, 29, 31, 0x175c); bus 88 drivers/net/phy/icplus.c err = mdiobus_write(phydev->mdio.bus, 29, 22, 0x420); bus 94 drivers/net/phy/icplus.c err = mdiobus_write(phydev->mdio.bus, i, bus 101 drivers/net/phy/icplus.c err = mdiobus_read(phydev->mdio.bus, i, MII_BMCR); bus 42 drivers/net/phy/mdio-aspeed.c static int aspeed_mdio_read(struct mii_bus *bus, int addr, int regnum) bus 44 drivers/net/phy/mdio-aspeed.c struct aspeed_mdio *ctx = bus->priv; bus 49 drivers/net/phy/mdio-aspeed.c dev_dbg(&bus->dev, "%s: addr: %d, regnum: %d\n", __func__, addr, bus 74 drivers/net/phy/mdio-aspeed.c static int aspeed_mdio_write(struct mii_bus *bus, int addr, int regnum, u16 val) bus 76 drivers/net/phy/mdio-aspeed.c struct aspeed_mdio *ctx = bus->priv; bus 79 drivers/net/phy/mdio-aspeed.c dev_dbg(&bus->dev, "%s: addr: %d, regnum: %d, val: 0x%x\n", bus 104 drivers/net/phy/mdio-aspeed.c struct mii_bus *bus; bus 107 drivers/net/phy/mdio-aspeed.c bus = devm_mdiobus_alloc_size(&pdev->dev, sizeof(*ctx)); bus 108 drivers/net/phy/mdio-aspeed.c if (!bus) bus 111 drivers/net/phy/mdio-aspeed.c ctx = bus->priv; bus 116 drivers/net/phy/mdio-aspeed.c bus->name = DRV_NAME; bus 117 drivers/net/phy/mdio-aspeed.c snprintf(bus->id, MII_BUS_ID_SIZE, "%s%d", pdev->name, pdev->id); bus 118 drivers/net/phy/mdio-aspeed.c bus->parent = &pdev->dev; bus 119 drivers/net/phy/mdio-aspeed.c bus->read = aspeed_mdio_read; bus 120 drivers/net/phy/mdio-aspeed.c bus->write = aspeed_mdio_write; bus 122 drivers/net/phy/mdio-aspeed.c rc = of_mdiobus_register(bus, pdev->dev.of_node); bus 128 drivers/net/phy/mdio-aspeed.c platform_set_drvdata(pdev, bus); bus 66 drivers/net/phy/mdio-bcm-iproc.c static int iproc_mdio_read(struct mii_bus *bus, int phy_id, int reg) bus 68 drivers/net/phy/mdio-bcm-iproc.c struct iproc_mdio_priv *priv = bus->priv; bus 94 drivers/net/phy/mdio-bcm-iproc.c static int iproc_mdio_write(struct mii_bus *bus, int phy_id, bus 97 drivers/net/phy/mdio-bcm-iproc.c struct iproc_mdio_priv *priv = bus->priv; bus 125 drivers/net/phy/mdio-bcm-iproc.c struct mii_bus *bus; bus 144 drivers/net/phy/mdio-bcm-iproc.c bus = priv->mii_bus; bus 145 drivers/net/phy/mdio-bcm-iproc.c bus->priv = priv; bus 146 drivers/net/phy/mdio-bcm-iproc.c bus->name = "iProc MDIO bus"; bus 147 drivers/net/phy/mdio-bcm-iproc.c snprintf(bus->id, MII_BUS_ID_SIZE, "%s-%d", pdev->name, pdev->id); bus 148 drivers/net/phy/mdio-bcm-iproc.c bus->parent = &pdev->dev; bus 149 drivers/net/phy/mdio-bcm-iproc.c bus->read = iproc_mdio_read; bus 150 drivers/net/phy/mdio-bcm-iproc.c bus->write = iproc_mdio_write; bus 154 drivers/net/phy/mdio-bcm-iproc.c rc = of_mdiobus_register(bus, pdev->dev.of_node); bus 167 drivers/net/phy/mdio-bcm-iproc.c mdiobus_free(bus); bus 98 drivers/net/phy/mdio-bcm-unimac.c static int unimac_mdio_read(struct mii_bus *bus, int phy_id, int reg) bus 100 drivers/net/phy/mdio-bcm-unimac.c struct unimac_mdio_priv *priv = bus->priv; bus 122 drivers/net/phy/mdio-bcm-unimac.c if (!(bus->phy_ignore_ta_mask & 1 << phy_id) && (cmd & MDIO_READ_FAIL)) bus 128 drivers/net/phy/mdio-bcm-unimac.c static int unimac_mdio_write(struct mii_bus *bus, int phy_id, bus 131 drivers/net/phy/mdio-bcm-unimac.c struct unimac_mdio_priv *priv = bus->priv; bus 159 drivers/net/phy/mdio-bcm-unimac.c static int unimac_mdio_reset(struct mii_bus *bus) bus 161 drivers/net/phy/mdio-bcm-unimac.c struct device_node *np = bus->dev.of_node; bus 167 drivers/net/phy/mdio-bcm-unimac.c read_mask = ~bus->phy_mask; bus 170 drivers/net/phy/mdio-bcm-unimac.c addr = of_mdio_parse_addr(&bus->dev, child); bus 180 drivers/net/phy/mdio-bcm-unimac.c dev_dbg(&bus->dev, "Workaround for PHY @ %d\n", addr); bus 181 drivers/net/phy/mdio-bcm-unimac.c mdiobus_read(bus, addr, MII_BMSR); bus 222 drivers/net/phy/mdio-bcm-unimac.c struct mii_bus *bus; bus 264 drivers/net/phy/mdio-bcm-unimac.c bus = priv->mii_bus; bus 265 drivers/net/phy/mdio-bcm-unimac.c bus->priv = priv; bus 267 drivers/net/phy/mdio-bcm-unimac.c bus->name = pdata->bus_name; bus 270 drivers/net/phy/mdio-bcm-unimac.c bus->phy_mask = ~pdata->phy_mask; bus 272 drivers/net/phy/mdio-bcm-unimac.c bus->name = "unimac MII bus"; bus 276 drivers/net/phy/mdio-bcm-unimac.c bus->parent = &pdev->dev; bus 277 drivers/net/phy/mdio-bcm-unimac.c bus->read = unimac_mdio_read; bus 278 drivers/net/phy/mdio-bcm-unimac.c bus->write = unimac_mdio_write; bus 279 drivers/net/phy/mdio-bcm-unimac.c bus->reset = unimac_mdio_reset; bus 280 drivers/net/phy/mdio-bcm-unimac.c snprintf(bus->id, MII_BUS_ID_SIZE, "%s-%d", pdev->name, pdev->id); bus 282 drivers/net/phy/mdio-bcm-unimac.c ret = of_mdiobus_register(bus, np); bus 295 drivers/net/phy/mdio-bcm-unimac.c mdiobus_free(bus); bus 152 drivers/net/phy/mdio-bitbang.c static int mdiobb_read(struct mii_bus *bus, int phy, int reg) bus 154 drivers/net/phy/mdio-bitbang.c struct mdiobb_ctrl *ctrl = bus->priv; bus 169 drivers/net/phy/mdio-bitbang.c !(bus->phy_ignore_ta_mask & (1 << phy))) { bus 184 drivers/net/phy/mdio-bitbang.c static int mdiobb_write(struct mii_bus *bus, int phy, int reg, u16 val) bus 186 drivers/net/phy/mdio-bitbang.c struct mdiobb_ctrl *ctrl = bus->priv; bus 207 drivers/net/phy/mdio-bitbang.c struct mii_bus *bus; bus 209 drivers/net/phy/mdio-bitbang.c bus = mdiobus_alloc(); bus 210 drivers/net/phy/mdio-bitbang.c if (!bus) bus 215 drivers/net/phy/mdio-bitbang.c bus->read = mdiobb_read; bus 216 drivers/net/phy/mdio-bitbang.c bus->write = mdiobb_write; bus 217 drivers/net/phy/mdio-bitbang.c bus->priv = ctrl; bus 219 drivers/net/phy/mdio-bitbang.c return bus; bus 223 drivers/net/phy/mdio-bitbang.c void free_mdio_bitbang(struct mii_bus *bus) bus 225 drivers/net/phy/mdio-bitbang.c struct mdiobb_ctrl *ctrl = bus->priv; bus 228 drivers/net/phy/mdio-bitbang.c mdiobus_free(bus); bus 23 drivers/net/phy/mdio-boardinfo.c void mdiobus_setup_mdiodev_from_board_info(struct mii_bus *bus, bus 25 drivers/net/phy/mdio-boardinfo.c (struct mii_bus *bus, bus 37 drivers/net/phy/mdio-boardinfo.c if (strcmp(bus->id, bi->bus_id)) bus 41 drivers/net/phy/mdio-boardinfo.c ret = cb(bus, bi); bus 18 drivers/net/phy/mdio-boardinfo.h void mdiobus_setup_mdiodev_from_board_info(struct mii_bus *bus, bus 20 drivers/net/phy/mdio-boardinfo.h (struct mii_bus *bus, bus 62 drivers/net/phy/mdio-cavium.c int cavium_mdiobus_read(struct mii_bus *bus, int phy_id, int regnum) bus 64 drivers/net/phy/mdio-cavium.c struct cavium_mdiobus *p = bus->priv; bus 103 drivers/net/phy/mdio-cavium.c int cavium_mdiobus_write(struct mii_bus *bus, int phy_id, int regnum, u16 val) bus 105 drivers/net/phy/mdio-cavium.c struct cavium_mdiobus *p = bus->priv; bus 117 drivers/net/phy/mdio-cavium.h int cavium_mdiobus_read(struct mii_bus *bus, int phy_id, int regnum); bus 118 drivers/net/phy/mdio-cavium.h int cavium_mdiobus_write(struct mii_bus *bus, int phy_id, int regnum, u16 val); bus 142 drivers/net/phy/mdio-gpio.c struct mii_bus *bus = dev_get_drvdata(dev); bus 144 drivers/net/phy/mdio-gpio.c free_mdio_bitbang(bus); bus 149 drivers/net/phy/mdio-gpio.c struct mii_bus *bus = dev_get_drvdata(dev); bus 151 drivers/net/phy/mdio-gpio.c mdiobus_unregister(bus); bus 36 drivers/net/phy/mdio-hisi-femac.c static int hisi_femac_mdio_read(struct mii_bus *bus, int mii_id, int regnum) bus 38 drivers/net/phy/mdio-hisi-femac.c struct hisi_femac_mdio_data *data = bus->priv; bus 55 drivers/net/phy/mdio-hisi-femac.c static int hisi_femac_mdio_write(struct mii_bus *bus, int mii_id, int regnum, bus 58 drivers/net/phy/mdio-hisi-femac.c struct hisi_femac_mdio_data *data = bus->priv; bus 75 drivers/net/phy/mdio-hisi-femac.c struct mii_bus *bus; bus 79 drivers/net/phy/mdio-hisi-femac.c bus = mdiobus_alloc_size(sizeof(*data)); bus 80 drivers/net/phy/mdio-hisi-femac.c if (!bus) bus 83 drivers/net/phy/mdio-hisi-femac.c bus->name = "hisi_femac_mii_bus"; bus 84 drivers/net/phy/mdio-hisi-femac.c bus->read = &hisi_femac_mdio_read; bus 85 drivers/net/phy/mdio-hisi-femac.c bus->write = &hisi_femac_mdio_write; bus 86 drivers/net/phy/mdio-hisi-femac.c snprintf(bus->id, MII_BUS_ID_SIZE, "%s", pdev->name); bus 87 drivers/net/phy/mdio-hisi-femac.c bus->parent = &pdev->dev; bus 89 drivers/net/phy/mdio-hisi-femac.c data = bus->priv; bus 106 drivers/net/phy/mdio-hisi-femac.c ret = of_mdiobus_register(bus, np); bus 110 drivers/net/phy/mdio-hisi-femac.c platform_set_drvdata(pdev, bus); bus 117 drivers/net/phy/mdio-hisi-femac.c mdiobus_free(bus); bus 123 drivers/net/phy/mdio-hisi-femac.c struct mii_bus *bus = platform_get_drvdata(pdev); bus 124 drivers/net/phy/mdio-hisi-femac.c struct hisi_femac_mdio_data *data = bus->priv; bus 126 drivers/net/phy/mdio-hisi-femac.c mdiobus_unregister(bus); bus 128 drivers/net/phy/mdio-hisi-femac.c mdiobus_free(bus); bus 32 drivers/net/phy/mdio-i2c.c static int i2c_mii_read(struct mii_bus *bus, int phy_id, int reg) bus 34 drivers/net/phy/mdio-i2c.c struct i2c_adapter *i2c = bus->priv; bus 59 drivers/net/phy/mdio-i2c.c static int i2c_mii_write(struct mii_bus *bus, int phy_id, int reg, u16 val) bus 61 drivers/net/phy/mdio-i2c.c struct i2c_adapter *i2c = bus->priv; bus 34 drivers/net/phy/mdio-moxart.c static int moxart_mdio_read(struct mii_bus *bus, int mii_id, int regnum) bus 36 drivers/net/phy/mdio-moxart.c struct moxart_mdio_data *data = bus->priv; bus 40 drivers/net/phy/mdio-moxart.c dev_dbg(&bus->dev, "%s\n", __func__); bus 57 drivers/net/phy/mdio-moxart.c dev_dbg(&bus->dev, "%s timed out\n", __func__); bus 62 drivers/net/phy/mdio-moxart.c static int moxart_mdio_write(struct mii_bus *bus, int mii_id, bus 65 drivers/net/phy/mdio-moxart.c struct moxart_mdio_data *data = bus->priv; bus 69 drivers/net/phy/mdio-moxart.c dev_dbg(&bus->dev, "%s\n", __func__); bus 89 drivers/net/phy/mdio-moxart.c dev_dbg(&bus->dev, "%s timed out\n", __func__); bus 94 drivers/net/phy/mdio-moxart.c static int moxart_mdio_reset(struct mii_bus *bus) bus 99 drivers/net/phy/mdio-moxart.c data = moxart_mdio_read(bus, i, MII_BMCR); bus 104 drivers/net/phy/mdio-moxart.c if (moxart_mdio_write(bus, i, MII_BMCR, data) < 0) bus 114 drivers/net/phy/mdio-moxart.c struct mii_bus *bus; bus 118 drivers/net/phy/mdio-moxart.c bus = mdiobus_alloc_size(sizeof(*data)); bus 119 drivers/net/phy/mdio-moxart.c if (!bus) bus 122 drivers/net/phy/mdio-moxart.c bus->name = "MOXA ART Ethernet MII"; bus 123 drivers/net/phy/mdio-moxart.c bus->read = &moxart_mdio_read; bus 124 drivers/net/phy/mdio-moxart.c bus->write = &moxart_mdio_write; bus 125 drivers/net/phy/mdio-moxart.c bus->reset = &moxart_mdio_reset; bus 126 drivers/net/phy/mdio-moxart.c snprintf(bus->id, MII_BUS_ID_SIZE, "%s-%d-mii", pdev->name, pdev->id); bus 127 drivers/net/phy/mdio-moxart.c bus->parent = &pdev->dev; bus 137 drivers/net/phy/mdio-moxart.c bus->irq[i] = PHY_IGNORE_INTERRUPT; bus 139 drivers/net/phy/mdio-moxart.c data = bus->priv; bus 146 drivers/net/phy/mdio-moxart.c ret = of_mdiobus_register(bus, np); bus 150 drivers/net/phy/mdio-moxart.c platform_set_drvdata(pdev, bus); bus 155 drivers/net/phy/mdio-moxart.c mdiobus_free(bus); bus 161 drivers/net/phy/mdio-moxart.c struct mii_bus *bus = platform_get_drvdata(pdev); bus 163 drivers/net/phy/mdio-moxart.c mdiobus_unregister(bus); bus 164 drivers/net/phy/mdio-moxart.c mdiobus_free(bus); bus 41 drivers/net/phy/mdio-mscc-miim.c static int mscc_miim_wait_ready(struct mii_bus *bus) bus 43 drivers/net/phy/mdio-mscc-miim.c struct mscc_miim_dev *miim = bus->priv; bus 54 drivers/net/phy/mdio-mscc-miim.c static int mscc_miim_read(struct mii_bus *bus, int mii_id, int regnum) bus 56 drivers/net/phy/mdio-mscc-miim.c struct mscc_miim_dev *miim = bus->priv; bus 60 drivers/net/phy/mdio-mscc-miim.c ret = mscc_miim_wait_ready(bus); bus 68 drivers/net/phy/mdio-mscc-miim.c ret = mscc_miim_wait_ready(bus); bus 83 drivers/net/phy/mdio-mscc-miim.c static int mscc_miim_write(struct mii_bus *bus, int mii_id, bus 86 drivers/net/phy/mdio-mscc-miim.c struct mscc_miim_dev *miim = bus->priv; bus 89 drivers/net/phy/mdio-mscc-miim.c ret = mscc_miim_wait_ready(bus); bus 103 drivers/net/phy/mdio-mscc-miim.c static int mscc_miim_reset(struct mii_bus *bus) bus 105 drivers/net/phy/mdio-mscc-miim.c struct mscc_miim_dev *miim = bus->priv; bus 119 drivers/net/phy/mdio-mscc-miim.c struct mii_bus *bus; bus 127 drivers/net/phy/mdio-mscc-miim.c bus = devm_mdiobus_alloc_size(&pdev->dev, sizeof(*dev)); bus 128 drivers/net/phy/mdio-mscc-miim.c if (!bus) bus 131 drivers/net/phy/mdio-mscc-miim.c bus->name = "mscc_miim"; bus 132 drivers/net/phy/mdio-mscc-miim.c bus->read = mscc_miim_read; bus 133 drivers/net/phy/mdio-mscc-miim.c bus->write = mscc_miim_write; bus 134 drivers/net/phy/mdio-mscc-miim.c bus->reset = mscc_miim_reset; bus 135 drivers/net/phy/mdio-mscc-miim.c snprintf(bus->id, MII_BUS_ID_SIZE, "%s-mii", dev_name(&pdev->dev)); bus 136 drivers/net/phy/mdio-mscc-miim.c bus->parent = &pdev->dev; bus 138 drivers/net/phy/mdio-mscc-miim.c dev = bus->priv; bus 154 drivers/net/phy/mdio-mscc-miim.c ret = of_mdiobus_register(bus, pdev->dev.of_node); bus 160 drivers/net/phy/mdio-mscc-miim.c platform_set_drvdata(pdev, bus); bus 167 drivers/net/phy/mdio-mscc-miim.c struct mii_bus *bus = platform_get_drvdata(pdev); bus 169 drivers/net/phy/mdio-mscc-miim.c mdiobus_unregister(bus); bus 140 drivers/net/phy/mdio-mux-bcm-iproc.c static int iproc_mdiomux_read(struct mii_bus *bus, int phyid, int reg) bus 142 drivers/net/phy/mdio-mux-bcm-iproc.c struct iproc_mdiomux_desc *md = bus->priv; bus 147 drivers/net/phy/mdio-mux-bcm-iproc.c dev_err(&bus->dev, "mdiomux read operation failed!!!"); bus 152 drivers/net/phy/mdio-mux-bcm-iproc.c static int iproc_mdiomux_write(struct mii_bus *bus, bus 155 drivers/net/phy/mdio-mux-bcm-iproc.c struct iproc_mdiomux_desc *md = bus->priv; bus 161 drivers/net/phy/mdio-mux-bcm-iproc.c dev_err(&bus->dev, "mdiomux write operation failed!!!"); bus 187 drivers/net/phy/mdio-mux-bcm-iproc.c struct mii_bus *bus; bus 230 drivers/net/phy/mdio-mux-bcm-iproc.c bus = md->mii_bus; bus 231 drivers/net/phy/mdio-mux-bcm-iproc.c bus->priv = md; bus 232 drivers/net/phy/mdio-mux-bcm-iproc.c bus->name = "iProc MDIO mux bus"; bus 233 drivers/net/phy/mdio-mux-bcm-iproc.c snprintf(bus->id, MII_BUS_ID_SIZE, "%s-%d", pdev->name, pdev->id); bus 234 drivers/net/phy/mdio-mux-bcm-iproc.c bus->parent = &pdev->dev; bus 235 drivers/net/phy/mdio-mux-bcm-iproc.c bus->read = iproc_mdiomux_read; bus 236 drivers/net/phy/mdio-mux-bcm-iproc.c bus->write = iproc_mdiomux_write; bus 238 drivers/net/phy/mdio-mux-bcm-iproc.c bus->phy_mask = ~0; bus 239 drivers/net/phy/mdio-mux-bcm-iproc.c bus->dev.of_node = pdev->dev.of_node; bus 240 drivers/net/phy/mdio-mux-bcm-iproc.c rc = mdiobus_register(bus); bus 261 drivers/net/phy/mdio-mux-bcm-iproc.c mdiobus_unregister(bus); bus 38 drivers/net/phy/mdio-mux.c static int mdio_mux_read(struct mii_bus *bus, int phy_id, int regnum) bus 40 drivers/net/phy/mdio-mux.c struct mdio_mux_child_bus *cb = bus->priv; bus 61 drivers/net/phy/mdio-mux.c static int mdio_mux_write(struct mii_bus *bus, int phy_id, bus 64 drivers/net/phy/mdio-mux.c struct mdio_mux_child_bus *cb = bus->priv; bus 18 drivers/net/phy/mdio-octeon.c struct cavium_mdiobus *bus; bus 26 drivers/net/phy/mdio-octeon.c mii_bus = devm_mdiobus_alloc_size(&pdev->dev, sizeof(*bus)); bus 36 drivers/net/phy/mdio-octeon.c bus = mii_bus->priv; bus 37 drivers/net/phy/mdio-octeon.c bus->mii_bus = mii_bus; bus 47 drivers/net/phy/mdio-octeon.c bus->register_base = bus 49 drivers/net/phy/mdio-octeon.c if (!bus->register_base) { bus 56 drivers/net/phy/mdio-octeon.c oct_mdio_writeq(smi_en.u64, bus->register_base + SMI_EN); bus 58 drivers/net/phy/mdio-octeon.c bus->mii_bus->name = KBUILD_MODNAME; bus 59 drivers/net/phy/mdio-octeon.c snprintf(bus->mii_bus->id, MII_BUS_ID_SIZE, "%llx", bus->register_base); bus 60 drivers/net/phy/mdio-octeon.c bus->mii_bus->parent = &pdev->dev; bus 62 drivers/net/phy/mdio-octeon.c bus->mii_bus->read = cavium_mdiobus_read; bus 63 drivers/net/phy/mdio-octeon.c bus->mii_bus->write = cavium_mdiobus_write; bus 65 drivers/net/phy/mdio-octeon.c platform_set_drvdata(pdev, bus); bus 67 drivers/net/phy/mdio-octeon.c err = of_mdiobus_register(bus->mii_bus, pdev->dev.of_node); bus 75 drivers/net/phy/mdio-octeon.c mdiobus_free(bus->mii_bus); bus 77 drivers/net/phy/mdio-octeon.c oct_mdio_writeq(smi_en.u64, bus->register_base + SMI_EN); bus 83 drivers/net/phy/mdio-octeon.c struct cavium_mdiobus *bus; bus 86 drivers/net/phy/mdio-octeon.c bus = platform_get_drvdata(pdev); bus 88 drivers/net/phy/mdio-octeon.c mdiobus_unregister(bus->mii_bus); bus 89 drivers/net/phy/mdio-octeon.c mdiobus_free(bus->mii_bus); bus 91 drivers/net/phy/mdio-octeon.c oct_mdio_writeq(smi_en.u64, bus->register_base + SMI_EN); bus 36 drivers/net/phy/mdio-sun4i.c static int sun4i_mdio_read(struct mii_bus *bus, int mii_id, int regnum) bus 38 drivers/net/phy/mdio-sun4i.c struct sun4i_mdio_data *data = bus->priv; bus 63 drivers/net/phy/mdio-sun4i.c static int sun4i_mdio_write(struct mii_bus *bus, int mii_id, int regnum, bus 66 drivers/net/phy/mdio-sun4i.c struct sun4i_mdio_data *data = bus->priv; bus 93 drivers/net/phy/mdio-sun4i.c struct mii_bus *bus; bus 97 drivers/net/phy/mdio-sun4i.c bus = mdiobus_alloc_size(sizeof(*data)); bus 98 drivers/net/phy/mdio-sun4i.c if (!bus) bus 101 drivers/net/phy/mdio-sun4i.c bus->name = "sun4i_mii_bus"; bus 102 drivers/net/phy/mdio-sun4i.c bus->read = &sun4i_mdio_read; bus 103 drivers/net/phy/mdio-sun4i.c bus->write = &sun4i_mdio_write; bus 104 drivers/net/phy/mdio-sun4i.c snprintf(bus->id, MII_BUS_ID_SIZE, "%s-mii", dev_name(&pdev->dev)); bus 105 drivers/net/phy/mdio-sun4i.c bus->parent = &pdev->dev; bus 107 drivers/net/phy/mdio-sun4i.c data = bus->priv; bus 129 drivers/net/phy/mdio-sun4i.c ret = of_mdiobus_register(bus, np); bus 133 drivers/net/phy/mdio-sun4i.c platform_set_drvdata(pdev, bus); bus 141 drivers/net/phy/mdio-sun4i.c mdiobus_free(bus); bus 147 drivers/net/phy/mdio-sun4i.c struct mii_bus *bus = platform_get_drvdata(pdev); bus 148 drivers/net/phy/mdio-sun4i.c struct sun4i_mdio_data *data = bus->priv; bus 150 drivers/net/phy/mdio-sun4i.c mdiobus_unregister(bus); bus 153 drivers/net/phy/mdio-sun4i.c mdiobus_free(bus); bus 60 drivers/net/phy/mdio-thunder.c struct cavium_mdiobus *bus; bus 78 drivers/net/phy/mdio-thunder.c mii_bus = devm_mdiobus_alloc_size(&pdev->dev, sizeof(*bus)); bus 81 drivers/net/phy/mdio-thunder.c bus = mii_bus->priv; bus 82 drivers/net/phy/mdio-thunder.c bus->mii_bus = mii_bus; bus 84 drivers/net/phy/mdio-thunder.c nexus->buses[i] = bus; bus 87 drivers/net/phy/mdio-thunder.c bus->register_base = (u64)nexus->bar0 + bus 92 drivers/net/phy/mdio-thunder.c oct_mdio_writeq(smi_en.u64, bus->register_base + SMI_EN); bus 93 drivers/net/phy/mdio-thunder.c bus->mii_bus->name = KBUILD_MODNAME; bus 94 drivers/net/phy/mdio-thunder.c snprintf(bus->mii_bus->id, MII_BUS_ID_SIZE, "%llx", r.start); bus 95 drivers/net/phy/mdio-thunder.c bus->mii_bus->parent = &pdev->dev; bus 96 drivers/net/phy/mdio-thunder.c bus->mii_bus->read = cavium_mdiobus_read; bus 97 drivers/net/phy/mdio-thunder.c bus->mii_bus->write = cavium_mdiobus_write; bus 99 drivers/net/phy/mdio-thunder.c err = of_mdiobus_register(bus->mii_bus, node); bus 123 drivers/net/phy/mdio-thunder.c struct cavium_mdiobus *bus = nexus->buses[i]; bus 125 drivers/net/phy/mdio-thunder.c if (!bus) bus 128 drivers/net/phy/mdio-thunder.c mdiobus_unregister(bus->mii_bus); bus 129 drivers/net/phy/mdio-thunder.c mdiobus_free(bus->mii_bus); bus 130 drivers/net/phy/mdio-thunder.c oct_mdio_writeq(0, bus->register_base + SMI_EN); bus 80 drivers/net/phy/mdio-xgene.c int xgene_mdio_rgmii_read(struct mii_bus *bus, int phy_id, int reg) bus 82 drivers/net/phy/mdio-xgene.c struct xgene_mdio_pdata *pdata = (struct xgene_mdio_pdata *)bus->priv; bus 95 drivers/net/phy/mdio-xgene.c dev_err(&bus->dev, "MII_MGMT read failed\n"); bus 106 drivers/net/phy/mdio-xgene.c int xgene_mdio_rgmii_write(struct mii_bus *bus, int phy_id, int reg, u16 data) bus 108 drivers/net/phy/mdio-xgene.c struct xgene_mdio_pdata *pdata = (struct xgene_mdio_pdata *)bus->priv; bus 122 drivers/net/phy/mdio-xgene.c dev_err(&bus->dev, "MII_MGMT write failed\n"); bus 211 drivers/net/phy/mdio-xgene.c static int xgene_xfi_mdio_write(struct mii_bus *bus, int phy_id, bus 214 drivers/net/phy/mdio-xgene.c void __iomem *addr = (void __iomem *)bus->priv; bus 235 drivers/net/phy/mdio-xgene.c static int xgene_xfi_mdio_read(struct mii_bus *bus, int phy_id, int reg) bus 237 drivers/net/phy/mdio-xgene.c void __iomem *addr = (void __iomem *)bus->priv; bus 263 drivers/net/phy/mdio-xgene.c struct phy_device *xgene_enet_phy_register(struct mii_bus *bus, int phy_addr) bus 267 drivers/net/phy/mdio-xgene.c phy_dev = get_phy_device(bus, phy_addr, false); bus 126 drivers/net/phy/mdio-xgene.h int xgene_mdio_rgmii_read(struct mii_bus *bus, int phy_id, int reg); bus 127 drivers/net/phy/mdio-xgene.h int xgene_mdio_rgmii_write(struct mii_bus *bus, int phy_id, int reg, u16 data); bus 128 drivers/net/phy/mdio-xgene.h struct phy_device *xgene_enet_phy_register(struct mii_bus *bus, int phy_addr); bus 83 drivers/net/phy/mdio_bus.c if (mdiodev->bus->mdio_map[mdiodev->addr]) bus 99 drivers/net/phy/mdio_bus.c mdiodev->bus->mdio_map[mdiodev->addr] = mdiodev; bus 107 drivers/net/phy/mdio_bus.c if (mdiodev->bus->mdio_map[mdiodev->addr] != mdiodev) bus 112 drivers/net/phy/mdio_bus.c mdiodev->bus->mdio_map[mdiodev->addr] = NULL; bus 118 drivers/net/phy/mdio_bus.c struct phy_device *mdiobus_get_phy(struct mii_bus *bus, int addr) bus 120 drivers/net/phy/mdio_bus.c struct mdio_device *mdiodev = bus->mdio_map[addr]; bus 132 drivers/net/phy/mdio_bus.c bool mdiobus_is_registered_device(struct mii_bus *bus, int addr) bus 134 drivers/net/phy/mdio_bus.c return bus->mdio_map[addr]; bus 148 drivers/net/phy/mdio_bus.c struct mii_bus *bus; bus 149 drivers/net/phy/mdio_bus.c size_t aligned_size = ALIGN(sizeof(*bus), NETDEV_ALIGN); bus 157 drivers/net/phy/mdio_bus.c alloc_size = sizeof(*bus); bus 159 drivers/net/phy/mdio_bus.c bus = kzalloc(alloc_size, GFP_KERNEL); bus 160 drivers/net/phy/mdio_bus.c if (!bus) bus 163 drivers/net/phy/mdio_bus.c bus->state = MDIOBUS_ALLOCATED; bus 165 drivers/net/phy/mdio_bus.c bus->priv = (void *)bus + aligned_size; bus 169 drivers/net/phy/mdio_bus.c bus->irq[i] = PHY_POLL; bus 171 drivers/net/phy/mdio_bus.c return bus; bus 206 drivers/net/phy/mdio_bus.c struct mii_bus **ptr, *bus; bus 213 drivers/net/phy/mdio_bus.c bus = mdiobus_alloc_size(sizeof_priv); bus 214 drivers/net/phy/mdio_bus.c if (bus) { bus 215 drivers/net/phy/mdio_bus.c *ptr = bus; bus 221 drivers/net/phy/mdio_bus.c return bus; bus 232 drivers/net/phy/mdio_bus.c void devm_mdiobus_free(struct device *dev, struct mii_bus *bus) bus 237 drivers/net/phy/mdio_bus.c devm_mdiobus_match, bus); bus 251 drivers/net/phy/mdio_bus.c struct mii_bus *bus = to_mii_bus(d); bus 252 drivers/net/phy/mdio_bus.c BUG_ON(bus->state != MDIOBUS_RELEASED && bus 254 drivers/net/phy/mdio_bus.c bus->state != MDIOBUS_ALLOCATED); bus 255 drivers/net/phy/mdio_bus.c kfree(bus); bus 295 drivers/net/phy/mdio_bus.c static void of_mdiobus_link_mdiodev(struct mii_bus *bus, bus 301 drivers/net/phy/mdio_bus.c if (dev->of_node || !bus->dev.of_node) bus 304 drivers/net/phy/mdio_bus.c for_each_available_child_of_node(bus->dev.of_node, child) { bus 333 drivers/net/phy/mdio_bus.c static int mdiobus_create_device(struct mii_bus *bus, bus 339 drivers/net/phy/mdio_bus.c mdiodev = mdio_device_create(bus, bi->mdio_addr); bus 369 drivers/net/phy/mdio_bus.c int __mdiobus_register(struct mii_bus *bus, struct module *owner) bus 375 drivers/net/phy/mdio_bus.c if (NULL == bus || NULL == bus->name || bus 376 drivers/net/phy/mdio_bus.c NULL == bus->read || NULL == bus->write) bus 379 drivers/net/phy/mdio_bus.c BUG_ON(bus->state != MDIOBUS_ALLOCATED && bus 380 drivers/net/phy/mdio_bus.c bus->state != MDIOBUS_UNREGISTERED); bus 382 drivers/net/phy/mdio_bus.c bus->owner = owner; bus 383 drivers/net/phy/mdio_bus.c bus->dev.parent = bus->parent; bus 384 drivers/net/phy/mdio_bus.c bus->dev.class = &mdio_bus_class; bus 385 drivers/net/phy/mdio_bus.c bus->dev.groups = NULL; bus 386 drivers/net/phy/mdio_bus.c dev_set_name(&bus->dev, "%s", bus->id); bus 388 drivers/net/phy/mdio_bus.c err = device_register(&bus->dev); bus 390 drivers/net/phy/mdio_bus.c pr_err("mii_bus %s failed to register\n", bus->id); bus 394 drivers/net/phy/mdio_bus.c mutex_init(&bus->mdio_lock); bus 397 drivers/net/phy/mdio_bus.c gpiod = devm_gpiod_get_optional(&bus->dev, "reset", GPIOD_OUT_LOW); bus 399 drivers/net/phy/mdio_bus.c dev_err(&bus->dev, "mii_bus %s couldn't get reset GPIO\n", bus 400 drivers/net/phy/mdio_bus.c bus->id); bus 401 drivers/net/phy/mdio_bus.c device_del(&bus->dev); bus 404 drivers/net/phy/mdio_bus.c bus->reset_gpiod = gpiod; bus 407 drivers/net/phy/mdio_bus.c udelay(bus->reset_delay_us); bus 411 drivers/net/phy/mdio_bus.c if (bus->reset) bus 412 drivers/net/phy/mdio_bus.c bus->reset(bus); bus 415 drivers/net/phy/mdio_bus.c if ((bus->phy_mask & (1 << i)) == 0) { bus 418 drivers/net/phy/mdio_bus.c phydev = mdiobus_scan(bus, i); bus 426 drivers/net/phy/mdio_bus.c mdiobus_setup_mdiodev_from_board_info(bus, mdiobus_create_device); bus 428 drivers/net/phy/mdio_bus.c bus->state = MDIOBUS_REGISTERED; bus 429 drivers/net/phy/mdio_bus.c pr_info("%s: probed\n", bus->name); bus 434 drivers/net/phy/mdio_bus.c mdiodev = bus->mdio_map[i]; bus 443 drivers/net/phy/mdio_bus.c if (bus->reset_gpiod) bus 444 drivers/net/phy/mdio_bus.c gpiod_set_value_cansleep(bus->reset_gpiod, 1); bus 446 drivers/net/phy/mdio_bus.c device_del(&bus->dev); bus 451 drivers/net/phy/mdio_bus.c void mdiobus_unregister(struct mii_bus *bus) bus 456 drivers/net/phy/mdio_bus.c BUG_ON(bus->state != MDIOBUS_REGISTERED); bus 457 drivers/net/phy/mdio_bus.c bus->state = MDIOBUS_UNREGISTERED; bus 460 drivers/net/phy/mdio_bus.c mdiodev = bus->mdio_map[i]; bus 472 drivers/net/phy/mdio_bus.c if (bus->reset_gpiod) bus 473 drivers/net/phy/mdio_bus.c gpiod_set_value_cansleep(bus->reset_gpiod, 1); bus 475 drivers/net/phy/mdio_bus.c device_del(&bus->dev); bus 487 drivers/net/phy/mdio_bus.c void mdiobus_free(struct mii_bus *bus) bus 490 drivers/net/phy/mdio_bus.c if (bus->state == MDIOBUS_ALLOCATED) { bus 491 drivers/net/phy/mdio_bus.c kfree(bus); bus 495 drivers/net/phy/mdio_bus.c BUG_ON(bus->state != MDIOBUS_UNREGISTERED); bus 496 drivers/net/phy/mdio_bus.c bus->state = MDIOBUS_RELEASED; bus 498 drivers/net/phy/mdio_bus.c put_device(&bus->dev); bus 514 drivers/net/phy/mdio_bus.c struct phy_device *mdiobus_scan(struct mii_bus *bus, int addr) bus 519 drivers/net/phy/mdio_bus.c phydev = get_phy_device(bus, addr, false); bus 527 drivers/net/phy/mdio_bus.c of_mdiobus_link_mdiodev(bus, &phydev->mdio); bus 549 drivers/net/phy/mdio_bus.c int __mdiobus_read(struct mii_bus *bus, int addr, u32 regnum) bus 553 drivers/net/phy/mdio_bus.c WARN_ON_ONCE(!mutex_is_locked(&bus->mdio_lock)); bus 555 drivers/net/phy/mdio_bus.c retval = bus->read(bus, addr, regnum); bus 557 drivers/net/phy/mdio_bus.c trace_mdio_access(bus, 1, addr, regnum, retval, retval); bus 574 drivers/net/phy/mdio_bus.c int __mdiobus_write(struct mii_bus *bus, int addr, u32 regnum, u16 val) bus 578 drivers/net/phy/mdio_bus.c WARN_ON_ONCE(!mutex_is_locked(&bus->mdio_lock)); bus 580 drivers/net/phy/mdio_bus.c err = bus->write(bus, addr, regnum, val); bus 582 drivers/net/phy/mdio_bus.c trace_mdio_access(bus, 0, addr, regnum, val, err); bus 601 drivers/net/phy/mdio_bus.c int mdiobus_read_nested(struct mii_bus *bus, int addr, u32 regnum) bus 607 drivers/net/phy/mdio_bus.c mutex_lock_nested(&bus->mdio_lock, MDIO_MUTEX_NESTED); bus 608 drivers/net/phy/mdio_bus.c retval = __mdiobus_read(bus, addr, regnum); bus 609 drivers/net/phy/mdio_bus.c mutex_unlock(&bus->mdio_lock); bus 625 drivers/net/phy/mdio_bus.c int mdiobus_read(struct mii_bus *bus, int addr, u32 regnum) bus 631 drivers/net/phy/mdio_bus.c mutex_lock(&bus->mdio_lock); bus 632 drivers/net/phy/mdio_bus.c retval = __mdiobus_read(bus, addr, regnum); bus 633 drivers/net/phy/mdio_bus.c mutex_unlock(&bus->mdio_lock); bus 653 drivers/net/phy/mdio_bus.c int mdiobus_write_nested(struct mii_bus *bus, int addr, u32 regnum, u16 val) bus 659 drivers/net/phy/mdio_bus.c mutex_lock_nested(&bus->mdio_lock, MDIO_MUTEX_NESTED); bus 660 drivers/net/phy/mdio_bus.c err = __mdiobus_write(bus, addr, regnum, val); bus 661 drivers/net/phy/mdio_bus.c mutex_unlock(&bus->mdio_lock); bus 678 drivers/net/phy/mdio_bus.c int mdiobus_write(struct mii_bus *bus, int addr, u32 regnum, u16 val) bus 684 drivers/net/phy/mdio_bus.c mutex_lock(&bus->mdio_lock); bus 685 drivers/net/phy/mdio_bus.c err = __mdiobus_write(bus, addr, regnum, val); bus 686 drivers/net/phy/mdio_bus.c mutex_unlock(&bus->mdio_lock); bus 47 drivers/net/phy/mdio_device.c struct mdio_device *mdio_device_create(struct mii_bus *bus, int addr) bus 57 drivers/net/phy/mdio_device.c mdiodev->dev.parent = &bus->dev; bus 58 drivers/net/phy/mdio_device.c mdiodev->dev.bus = &mdio_bus_type; bus 61 drivers/net/phy/mdio_device.c mdiodev->bus = bus; bus 64 drivers/net/phy/mdio_device.c dev_set_name(&mdiodev->dev, PHY_ID_FMT, bus->id, addr); bus 194 drivers/net/phy/mdio_device.c mdiodrv->driver.bus = &mdio_bus_type; bus 985 drivers/net/phy/mscc.c if (unlikely(!mutex_is_locked(&phydev->mdio.bus->mdio_lock))) { bus 990 drivers/net/phy/mscc.c return __mdiobus_write(phydev->mdio.bus, priv->base_addr, regnum, val); bus 998 drivers/net/phy/mscc.c if (unlikely(!mutex_is_locked(&phydev->mdio.bus->mdio_lock))) { bus 1003 drivers/net/phy/mscc.c return __mdiobus_read(phydev->mdio.bus, priv->base_addr, regnum); bus 1584 drivers/net/phy/mscc.c struct mdio_device **map = phydev->mdio.bus->mdio_map; bus 1621 drivers/net/phy/mscc.c mutex_lock(&phydev->mdio.bus->mdio_lock); bus 1623 drivers/net/phy/mscc.c __mdiobus_write(phydev->mdio.bus, phydev->mdio.addr, bus 1625 drivers/net/phy/mscc.c addr = __mdiobus_read(phydev->mdio.bus, phydev->mdio.addr, bus 1629 drivers/net/phy/mscc.c val = __mdiobus_read(phydev->mdio.bus, phydev->mdio.addr, bus 1708 drivers/net/phy/mscc.c mutex_unlock(&phydev->mdio.bus->mdio_lock); bus 1731 drivers/net/phy/mscc.c mutex_unlock(&phydev->mdio.bus->mdio_lock); bus 1992 drivers/net/phy/mscc.c mutex_lock(&phydev->mdio.bus->mdio_lock); bus 2094 drivers/net/phy/mscc.c mutex_unlock(&phydev->mdio.bus->mdio_lock); bus 2101 drivers/net/phy/mscc.c mutex_unlock(&phydev->mdio.bus->mdio_lock); bus 2121 drivers/net/phy/mscc.c mutex_unlock(&phydev->mdio.bus->mdio_lock); bus 2128 drivers/net/phy/mscc.c mutex_unlock(&phydev->mdio.bus->mdio_lock); bus 2132 drivers/net/phy/mscc.c mutex_unlock(&phydev->mdio.bus->mdio_lock); bus 2159 drivers/net/phy/mscc.c mutex_unlock(&phydev->mdio.bus->mdio_lock); bus 352 drivers/net/phy/phy-core.c static void mmd_phy_indirect(struct mii_bus *bus, int phy_addr, int devad, bus 356 drivers/net/phy/phy-core.c __mdiobus_write(bus, phy_addr, MII_MMD_CTRL, devad); bus 359 drivers/net/phy/phy-core.c __mdiobus_write(bus, phy_addr, MII_MMD_DATA, regnum); bus 362 drivers/net/phy/phy-core.c __mdiobus_write(bus, phy_addr, MII_MMD_CTRL, bus 387 drivers/net/phy/phy-core.c val = __mdiobus_read(phydev->mdio.bus, phydev->mdio.addr, addr); bus 389 drivers/net/phy/phy-core.c struct mii_bus *bus = phydev->mdio.bus; bus 392 drivers/net/phy/phy-core.c mmd_phy_indirect(bus, phy_addr, devad, regnum); bus 395 drivers/net/phy/phy-core.c val = __mdiobus_read(bus, phy_addr, MII_MMD_DATA); bus 414 drivers/net/phy/phy-core.c mutex_lock(&phydev->mdio.bus->mdio_lock); bus 416 drivers/net/phy/phy-core.c mutex_unlock(&phydev->mdio.bus->mdio_lock); bus 444 drivers/net/phy/phy-core.c ret = __mdiobus_write(phydev->mdio.bus, phydev->mdio.addr, bus 447 drivers/net/phy/phy-core.c struct mii_bus *bus = phydev->mdio.bus; bus 450 drivers/net/phy/phy-core.c mmd_phy_indirect(bus, phy_addr, devad, regnum); bus 453 drivers/net/phy/phy-core.c __mdiobus_write(bus, phy_addr, MII_MMD_DATA, val); bus 475 drivers/net/phy/phy-core.c mutex_lock(&phydev->mdio.bus->mdio_lock); bus 477 drivers/net/phy/phy-core.c mutex_unlock(&phydev->mdio.bus->mdio_lock); bus 531 drivers/net/phy/phy-core.c mutex_lock(&phydev->mdio.bus->mdio_lock); bus 533 drivers/net/phy/phy-core.c mutex_unlock(&phydev->mdio.bus->mdio_lock); bus 575 drivers/net/phy/phy-core.c mutex_lock(&phydev->mdio.bus->mdio_lock); bus 577 drivers/net/phy/phy-core.c mutex_unlock(&phydev->mdio.bus->mdio_lock); bus 634 drivers/net/phy/phy-core.c mutex_lock(&phydev->mdio.bus->mdio_lock); bus 636 drivers/net/phy/phy-core.c mutex_unlock(&phydev->mdio.bus->mdio_lock); bus 682 drivers/net/phy/phy-core.c mutex_lock(&phydev->mdio.bus->mdio_lock); bus 684 drivers/net/phy/phy-core.c mutex_unlock(&phydev->mdio.bus->mdio_lock); bus 710 drivers/net/phy/phy-core.c mutex_lock(&phydev->mdio.bus->mdio_lock); bus 777 drivers/net/phy/phy-core.c mutex_unlock(&phydev->mdio.bus->mdio_lock); bus 419 drivers/net/phy/phy.c mii_data->val_out = mdiobus_read(phydev->mdio.bus, prtad, bus 471 drivers/net/phy/phy.c mdiobus_write(phydev->mdio.bus, prtad, devad, val); bus 580 drivers/net/phy/phy_device.c struct phy_device *phy_device_create(struct mii_bus *bus, int addr, u32 phy_id, bus 594 drivers/net/phy/phy_device.c mdiodev->dev.parent = &bus->dev; bus 595 drivers/net/phy/phy_device.c mdiodev->dev.bus = &mdio_bus_type; bus 597 drivers/net/phy/phy_device.c mdiodev->bus = bus; bus 617 drivers/net/phy/phy_device.c dev->irq = bus->irq[addr]; bus 618 drivers/net/phy/phy_device.c dev_set_name(&mdiodev->dev, PHY_ID_FMT, bus->id, addr); bus 674 drivers/net/phy/phy_device.c static int get_phy_c45_devs_in_pkg(struct mii_bus *bus, int addr, int dev_addr, bus 680 drivers/net/phy/phy_device.c phy_reg = mdiobus_read(bus, addr, reg_addr); bus 686 drivers/net/phy/phy_device.c phy_reg = mdiobus_read(bus, addr, reg_addr); bus 710 drivers/net/phy/phy_device.c static int get_phy_c45_ids(struct mii_bus *bus, int addr, u32 *phy_id, bus 721 drivers/net/phy/phy_device.c phy_reg = get_phy_c45_devs_in_pkg(bus, addr, i, devs); bus 731 drivers/net/phy/phy_device.c phy_reg = get_phy_c45_devs_in_pkg(bus, addr, 0, devs); bus 750 drivers/net/phy/phy_device.c phy_reg = mdiobus_read(bus, addr, reg_addr); bus 756 drivers/net/phy/phy_device.c phy_reg = mdiobus_read(bus, addr, reg_addr); bus 781 drivers/net/phy/phy_device.c static int get_phy_id(struct mii_bus *bus, int addr, u32 *phy_id, bus 787 drivers/net/phy/phy_device.c return get_phy_c45_ids(bus, addr, phy_id, c45_ids); bus 790 drivers/net/phy/phy_device.c phy_reg = mdiobus_read(bus, addr, MII_PHYSID1); bus 799 drivers/net/phy/phy_device.c phy_reg = mdiobus_read(bus, addr, MII_PHYSID2); bus 818 drivers/net/phy/phy_device.c struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45) bus 827 drivers/net/phy/phy_device.c r = get_phy_id(bus, addr, &phy_id, is_c45, &c45_ids); bus 835 drivers/net/phy/phy_device.c return phy_device_create(bus, addr, phy_id, is_c45, &c45_ids); bus 901 drivers/net/phy/phy_device.c struct phy_device *phy_find_first(struct mii_bus *bus) bus 907 drivers/net/phy/phy_device.c phydev = mdiobus_get_phy(bus, addr); bus 1203 drivers/net/phy/phy_device.c struct mii_bus *bus = phydev->mdio.bus; bus 1216 drivers/net/phy/phy_device.c if (ndev_owner != bus->owner && !try_module_get(bus->owner)) { bus 1315 drivers/net/phy/phy_device.c if (ndev_owner != bus->owner) bus 1316 drivers/net/phy/phy_device.c module_put(bus->owner); bus 1333 drivers/net/phy/phy_device.c struct bus_type *bus = &mdio_bus_type; bus 1344 drivers/net/phy/phy_device.c d = bus_find_device_by_name(bus, NULL, bus_id); bus 1401 drivers/net/phy/phy_device.c struct mii_bus *bus; bus 1437 drivers/net/phy/phy_device.c bus = phydev->mdio.bus; bus 1442 drivers/net/phy/phy_device.c if (ndev_owner != bus->owner) bus 1443 drivers/net/phy/phy_device.c module_put(bus->owner); bus 2321 drivers/net/phy/phy_device.c new_driver->mdiodrv.driver.bus = &mdio_bus_type; bus 64 drivers/net/phy/phy_led_triggers.c phy->mdio.bus->id, phy->mdio.addr, suffix); bus 1512 drivers/net/phy/phylink.c return mdiobus_read(pl->phydev->mdio.bus, prtad, devad); bus 1553 drivers/net/phy/phylink.c return mdiobus_write(phydev->mdio.bus, prtad, devad, val); bus 1682 drivers/net/phy/phylink.c static void phylink_sfp_attach(void *upstream, struct sfp_bus *bus) bus 1686 drivers/net/phy/phylink.c pl->netdev->sfp_bus = bus; bus 1689 drivers/net/phy/phylink.c static void phylink_sfp_detach(void *upstream, struct sfp_bus *bus) bus 47 drivers/net/phy/sfp-bus.c int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id, bus 86 drivers/net/phy/sfp-bus.c dev_warn(bus->sfp_dev, "SFP: unknown connector id 0x%02x\n", bus 117 drivers/net/phy/sfp-bus.c void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id, bus 208 drivers/net/phy/sfp-bus.c dev_warn(bus->sfp_dev, bus 255 drivers/net/phy/sfp-bus.c phy_interface_t sfp_select_interface(struct sfp_bus *bus, bus 277 drivers/net/phy/sfp-bus.c dev_warn(bus->sfp_dev, "Unable to ascertain link mode\n"); bus 286 drivers/net/phy/sfp-bus.c static const struct sfp_upstream_ops *sfp_get_upstream_ops(struct sfp_bus *bus) bus 288 drivers/net/phy/sfp-bus.c return bus->registered ? bus->upstream_ops : NULL; bus 324 drivers/net/phy/sfp-bus.c struct sfp_bus *bus = container_of(kref, struct sfp_bus, kref); bus 326 drivers/net/phy/sfp-bus.c list_del(&bus->node); bus 328 drivers/net/phy/sfp-bus.c kfree(bus); bus 331 drivers/net/phy/sfp-bus.c static void sfp_bus_put(struct sfp_bus *bus) bus 333 drivers/net/phy/sfp-bus.c kref_put_mutex(&bus->kref, sfp_bus_release, &sfp_mutex); bus 336 drivers/net/phy/sfp-bus.c static int sfp_register_bus(struct sfp_bus *bus) bus 338 drivers/net/phy/sfp-bus.c const struct sfp_upstream_ops *ops = bus->upstream_ops; bus 343 drivers/net/phy/sfp-bus.c ops->link_down(bus->upstream); bus 344 drivers/net/phy/sfp-bus.c if (ops->connect_phy && bus->phydev) { bus 345 drivers/net/phy/sfp-bus.c ret = ops->connect_phy(bus->upstream, bus->phydev); bus 350 drivers/net/phy/sfp-bus.c bus->socket_ops->attach(bus->sfp); bus 351 drivers/net/phy/sfp-bus.c if (bus->started) bus 352 drivers/net/phy/sfp-bus.c bus->socket_ops->start(bus->sfp); bus 353 drivers/net/phy/sfp-bus.c bus->upstream_ops->attach(bus->upstream, bus); bus 354 drivers/net/phy/sfp-bus.c bus->registered = true; bus 358 drivers/net/phy/sfp-bus.c static void sfp_unregister_bus(struct sfp_bus *bus) bus 360 drivers/net/phy/sfp-bus.c const struct sfp_upstream_ops *ops = bus->upstream_ops; bus 362 drivers/net/phy/sfp-bus.c if (bus->registered) { bus 363 drivers/net/phy/sfp-bus.c bus->upstream_ops->detach(bus->upstream, bus); bus 364 drivers/net/phy/sfp-bus.c if (bus->started) bus 365 drivers/net/phy/sfp-bus.c bus->socket_ops->stop(bus->sfp); bus 366 drivers/net/phy/sfp-bus.c bus->socket_ops->detach(bus->sfp); bus 367 drivers/net/phy/sfp-bus.c if (bus->phydev && ops && ops->disconnect_phy) bus 368 drivers/net/phy/sfp-bus.c ops->disconnect_phy(bus->upstream); bus 370 drivers/net/phy/sfp-bus.c bus->registered = false; bus 383 drivers/net/phy/sfp-bus.c int sfp_get_module_info(struct sfp_bus *bus, struct ethtool_modinfo *modinfo) bus 385 drivers/net/phy/sfp-bus.c return bus->socket_ops->module_info(bus->sfp, modinfo); bus 400 drivers/net/phy/sfp-bus.c int sfp_get_module_eeprom(struct sfp_bus *bus, struct ethtool_eeprom *ee, bus 403 drivers/net/phy/sfp-bus.c return bus->socket_ops->module_eeprom(bus->sfp, ee, data); bus 416 drivers/net/phy/sfp-bus.c void sfp_upstream_start(struct sfp_bus *bus) bus 418 drivers/net/phy/sfp-bus.c if (bus->registered) bus 419 drivers/net/phy/sfp-bus.c bus->socket_ops->start(bus->sfp); bus 420 drivers/net/phy/sfp-bus.c bus->started = true; bus 433 drivers/net/phy/sfp-bus.c void sfp_upstream_stop(struct sfp_bus *bus) bus 435 drivers/net/phy/sfp-bus.c if (bus->registered) bus 436 drivers/net/phy/sfp-bus.c bus->socket_ops->stop(bus->sfp); bus 437 drivers/net/phy/sfp-bus.c bus->started = false; bus 441 drivers/net/phy/sfp-bus.c static void sfp_upstream_clear(struct sfp_bus *bus) bus 443 drivers/net/phy/sfp-bus.c bus->upstream_ops = NULL; bus 444 drivers/net/phy/sfp-bus.c bus->upstream = NULL; bus 463 drivers/net/phy/sfp-bus.c struct sfp_bus *bus = sfp_bus_get(fwnode); bus 466 drivers/net/phy/sfp-bus.c if (bus) { bus 468 drivers/net/phy/sfp-bus.c bus->upstream_ops = ops; bus 469 drivers/net/phy/sfp-bus.c bus->upstream = upstream; bus 471 drivers/net/phy/sfp-bus.c if (bus->sfp) { bus 472 drivers/net/phy/sfp-bus.c ret = sfp_register_bus(bus); bus 474 drivers/net/phy/sfp-bus.c sfp_upstream_clear(bus); bus 480 drivers/net/phy/sfp-bus.c sfp_bus_put(bus); bus 481 drivers/net/phy/sfp-bus.c bus = NULL; bus 484 drivers/net/phy/sfp-bus.c return bus; bus 495 drivers/net/phy/sfp-bus.c void sfp_unregister_upstream(struct sfp_bus *bus) bus 498 drivers/net/phy/sfp-bus.c if (bus->sfp) bus 499 drivers/net/phy/sfp-bus.c sfp_unregister_bus(bus); bus 500 drivers/net/phy/sfp-bus.c sfp_upstream_clear(bus); bus 503 drivers/net/phy/sfp-bus.c sfp_bus_put(bus); bus 508 drivers/net/phy/sfp-bus.c int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev) bus 510 drivers/net/phy/sfp-bus.c const struct sfp_upstream_ops *ops = sfp_get_upstream_ops(bus); bus 514 drivers/net/phy/sfp-bus.c ret = ops->connect_phy(bus->upstream, phydev); bus 517 drivers/net/phy/sfp-bus.c bus->phydev = phydev; bus 523 drivers/net/phy/sfp-bus.c void sfp_remove_phy(struct sfp_bus *bus) bus 525 drivers/net/phy/sfp-bus.c const struct sfp_upstream_ops *ops = sfp_get_upstream_ops(bus); bus 528 drivers/net/phy/sfp-bus.c ops->disconnect_phy(bus->upstream); bus 529 drivers/net/phy/sfp-bus.c bus->phydev = NULL; bus 533 drivers/net/phy/sfp-bus.c void sfp_link_up(struct sfp_bus *bus) bus 535 drivers/net/phy/sfp-bus.c const struct sfp_upstream_ops *ops = sfp_get_upstream_ops(bus); bus 538 drivers/net/phy/sfp-bus.c ops->link_up(bus->upstream); bus 542 drivers/net/phy/sfp-bus.c void sfp_link_down(struct sfp_bus *bus) bus 544 drivers/net/phy/sfp-bus.c const struct sfp_upstream_ops *ops = sfp_get_upstream_ops(bus); bus 547 drivers/net/phy/sfp-bus.c ops->link_down(bus->upstream); bus 551 drivers/net/phy/sfp-bus.c int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id) bus 553 drivers/net/phy/sfp-bus.c const struct sfp_upstream_ops *ops = sfp_get_upstream_ops(bus); bus 557 drivers/net/phy/sfp-bus.c ret = ops->module_insert(bus->upstream, id); bus 563 drivers/net/phy/sfp-bus.c void sfp_module_remove(struct sfp_bus *bus) bus 565 drivers/net/phy/sfp-bus.c const struct sfp_upstream_ops *ops = sfp_get_upstream_ops(bus); bus 568 drivers/net/phy/sfp-bus.c ops->module_remove(bus->upstream); bus 572 drivers/net/phy/sfp-bus.c static void sfp_socket_clear(struct sfp_bus *bus) bus 574 drivers/net/phy/sfp-bus.c bus->sfp_dev = NULL; bus 575 drivers/net/phy/sfp-bus.c bus->sfp = NULL; bus 576 drivers/net/phy/sfp-bus.c bus->socket_ops = NULL; bus 582 drivers/net/phy/sfp-bus.c struct sfp_bus *bus = sfp_bus_get(dev->fwnode); bus 585 drivers/net/phy/sfp-bus.c if (bus) { bus 587 drivers/net/phy/sfp-bus.c bus->sfp_dev = dev; bus 588 drivers/net/phy/sfp-bus.c bus->sfp = sfp; bus 589 drivers/net/phy/sfp-bus.c bus->socket_ops = ops; bus 591 drivers/net/phy/sfp-bus.c if (bus->upstream_ops) { bus 592 drivers/net/phy/sfp-bus.c ret = sfp_register_bus(bus); bus 594 drivers/net/phy/sfp-bus.c sfp_socket_clear(bus); bus 600 drivers/net/phy/sfp-bus.c sfp_bus_put(bus); bus 601 drivers/net/phy/sfp-bus.c bus = NULL; bus 604 drivers/net/phy/sfp-bus.c return bus; bus 608 drivers/net/phy/sfp-bus.c void sfp_unregister_socket(struct sfp_bus *bus) bus 611 drivers/net/phy/sfp-bus.c if (bus->upstream_ops) bus 612 drivers/net/phy/sfp-bus.c sfp_unregister_bus(bus); bus 613 drivers/net/phy/sfp-bus.c sfp_socket_clear(bus); bus 616 drivers/net/phy/sfp-bus.c sfp_bus_put(bus); bus 19 drivers/net/phy/sfp.h int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev); bus 20 drivers/net/phy/sfp.h void sfp_remove_phy(struct sfp_bus *bus); bus 21 drivers/net/phy/sfp.h void sfp_link_up(struct sfp_bus *bus); bus 22 drivers/net/phy/sfp.h void sfp_link_down(struct sfp_bus *bus); bus 23 drivers/net/phy/sfp.h int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id); bus 24 drivers/net/phy/sfp.h void sfp_module_remove(struct sfp_bus *bus); bus 25 drivers/net/phy/sfp.h int sfp_link_configure(struct sfp_bus *bus, const struct sfp_eeprom_id *id); bus 28 drivers/net/phy/sfp.h void sfp_unregister_socket(struct sfp_bus *bus); bus 33 drivers/net/phy/xilinx_gmii2rgmii.c struct mii_bus *bus = priv->mdio->bus; bus 45 drivers/net/phy/xilinx_gmii2rgmii.c val = mdiobus_read(bus, addr, XILINX_GMII2RGMII_REG); bus 55 drivers/net/phy/xilinx_gmii2rgmii.c mdiobus_write(bus, addr, XILINX_GMII2RGMII_REG, val); bus 29 drivers/net/usb/ax88172a.c static int asix_mdio_bus_read(struct mii_bus *bus, int phy_id, int regnum) bus 31 drivers/net/usb/ax88172a.c return asix_mdio_read(((struct usbnet *)bus->priv)->net, phy_id, bus 35 drivers/net/usb/ax88172a.c static int asix_mdio_bus_write(struct mii_bus *bus, int phy_id, int regnum, bus 38 drivers/net/usb/ax88172a.c asix_mdio_write(((struct usbnet *)bus->priv)->net, phy_id, regnum, val); bus 103 drivers/net/usb/ax88172a.c dev->udev->bus->busnum, dev->udev->devnum); bus 342 drivers/net/usb/catc.c catc->usbdev->bus->bus_name, bus 912 drivers/net/usb/catc.c usbdev->bus->bus_name, usbdev->devpath, netdev->dev_addr); bus 484 drivers/net/usb/kaweth.c kaweth->dev->bus->bus_name, bus 1726 drivers/net/usb/lan78xx.c static int lan78xx_mdiobus_read(struct mii_bus *bus, int phy_id, int idx) bus 1728 drivers/net/usb/lan78xx.c struct lan78xx_net *dev = bus->priv; bus 1762 drivers/net/usb/lan78xx.c static int lan78xx_mdiobus_write(struct mii_bus *bus, int phy_id, int idx, bus 1765 drivers/net/usb/lan78xx.c struct lan78xx_net *dev = bus->priv; bus 1815 drivers/net/usb/lan78xx.c dev->udev->bus->busnum, dev->udev->devnum); bus 186 drivers/net/usb/net1080.c dev->udev->bus->bus_name, dev->udev->devpath, bus 229 drivers/net/usb/net1080.c dev->udev->bus->bus_name, dev->udev->devpath, bus 270 drivers/net/usb/net1080.c dev->udev->bus->bus_name, dev->udev->devpath, retval); bus 528 drivers/net/usb/rtl8150.c dev->udev->bus->bus_name, dev->udev->devpath, res); bus 823 drivers/net/usb/usbnet.c dev->udev->bus->bus_name, dev->udev->devpath, bus 871 drivers/net/usb/usbnet.c dev->udev->bus->bus_name, bus 882 drivers/net/usb/usbnet.c dev->udev->bus->bus_name, bus 1217 drivers/net/usb/usbnet.c dev->udev->bus->bus_name, bus 1600 drivers/net/usb/usbnet.c xdev->bus->bus_name, xdev->devpath, bus 1804 drivers/net/usb/usbnet.c xdev->bus->bus_name, xdev->devpath, bus 239 drivers/net/wan/slic_ds26522.c .bus = &spi_bus_type, bus 854 drivers/net/wimax/i2400m/driver.c "i2400m-%s:%s", dev->bus->name, dev_name(dev)); bus 61 drivers/net/wireless/ath/ath10k/core.c .bus = ATH10K_BUS_PCI, bus 131 drivers/net/wireless/ath/ath10k/core.c .bus = ATH10K_BUS_PCI, bus 167 drivers/net/wireless/ath/ath10k/core.c .bus = ATH10K_BUS_SDIO, bus 195 drivers/net/wireless/ath/ath10k/core.c .bus = ATH10K_BUS_PCI, bus 230 drivers/net/wireless/ath/ath10k/core.c .bus = ATH10K_BUS_PCI, bus 265 drivers/net/wireless/ath/ath10k/core.c .bus = ATH10K_BUS_PCI, bus 300 drivers/net/wireless/ath/ath10k/core.c .bus = ATH10K_BUS_PCI, bus 338 drivers/net/wireless/ath/ath10k/core.c .bus = ATH10K_BUS_PCI, bus 379 drivers/net/wireless/ath/ath10k/core.c .bus = ATH10K_BUS_PCI, bus 427 drivers/net/wireless/ath/ath10k/core.c .bus = ATH10K_BUS_PCI, bus 472 drivers/net/wireless/ath/ath10k/core.c .bus = ATH10K_BUS_PCI, bus 507 drivers/net/wireless/ath/ath10k/core.c .bus = ATH10K_BUS_PCI, bus 544 drivers/net/wireless/ath/ath10k/core.c .bus = ATH10K_BUS_AHB, bus 586 drivers/net/wireless/ath/ath10k/core.c .bus = ATH10K_BUS_SNOC, bus 1096 drivers/net/wireless/ath/ath10k/core.c ath10k_bus_str(ar->hif.bus), dev_name(ar->dev)); bus 1104 drivers/net/wireless/ath/ath10k/core.c ath10k_bus_str(ar->hif.bus), dev_name(ar->dev)); bus 1386 drivers/net/wireless/ath/ath10k/core.c ath10k_bus_str(ar->hif.bus), bus 1395 drivers/net/wireless/ath/ath10k/core.c ath10k_bus_str(ar->hif.bus), bus 1402 drivers/net/wireless/ath/ath10k/core.c ath10k_bus_str(ar->hif.bus), bus 1417 drivers/net/wireless/ath/ath10k/core.c ath10k_bus_str(ar->hif.bus), bus 1943 drivers/net/wireless/ath/ath10k/core.c switch (ar->hif.bus) { bus 1947 drivers/net/wireless/ath/ath10k/core.c ATH10K_FW_FILE_BASE, ath10k_bus_str(ar->hif.bus), bus 2166 drivers/net/wireless/ath/ath10k/core.c if (hw_params->bus == ar->hif.bus && bus 2379 drivers/net/wireless/ath/ath10k/core.c if (ar->hif.bus == ATH10K_BUS_SDIO) bus 2568 drivers/net/wireless/ath/ath10k/core.c if (ar->hif.bus == ATH10K_BUS_SDIO) bus 2865 drivers/net/wireless/ath/ath10k/core.c switch (ar->hif.bus) { bus 2899 drivers/net/wireless/ath/ath10k/core.c ath10k_err(ar, "incorrect hif bus type: %d\n", ar->hif.bus); bus 3111 drivers/net/wireless/ath/ath10k/core.c enum ath10k_bus bus, bus 3127 drivers/net/wireless/ath/ath10k/core.c ar->hif.bus = bus; bus 87 drivers/net/wireless/ath/ath10k/core.h static inline const char *ath10k_bus_str(enum ath10k_bus bus) bus 89 drivers/net/wireless/ath/ath10k/core.h switch (bus) { bus 979 drivers/net/wireless/ath/ath10k/core.h enum ath10k_bus bus; bus 1230 drivers/net/wireless/ath/ath10k/core.h enum ath10k_bus bus, bus 908 drivers/net/wireless/ath/ath10k/htc.c if (ar->hif.bus == ATH10K_BUS_SDIO) { bus 513 drivers/net/wireless/ath/ath10k/hw.h enum ath10k_bus bus; bus 771 drivers/net/wireless/ath/ath10k/qmi.c ar->hif.bus = ATH10K_BUS_SNOC; bus 180 drivers/net/wireless/ath/ath10k/testmode.c switch (ar->hif.bus) { bus 184 drivers/net/wireless/ath/ath10k/testmode.c ATH10K_FW_UTF_FILE_BASE, ath10k_bus_str(ar->hif.bus), bus 107 drivers/net/wireless/ath/ath9k/ath9k_pci_owl_loader.c struct pci_bus *bus; bus 126 drivers/net/wireless/ath/ath9k/ath9k_pci_owl_loader.c bus = pdev->bus; bus 131 drivers/net/wireless/ath/ath9k/ath9k_pci_owl_loader.c pci_rescan_bus(bus); bus 832 drivers/net/wireless/ath/ath9k/pci.c parent = pdev->bus->self; bus 99 drivers/net/wireless/broadcom/b43/bus.c bcm47xx_bus.bcma.bus.chipinfo.id == BCMA_CHIP_ID_BCM4716) bus 107 drivers/net/wireless/broadcom/b43/bus.c dev->board_vendor = core->bus->boardinfo.vendor; bus 108 drivers/net/wireless/broadcom/b43/bus.c dev->board_type = core->bus->boardinfo.type; bus 109 drivers/net/wireless/broadcom/b43/bus.c dev->board_rev = core->bus->sprom.board_rev; bus 111 drivers/net/wireless/broadcom/b43/bus.c dev->chip_id = core->bus->chipinfo.id; bus 112 drivers/net/wireless/broadcom/b43/bus.c dev->chip_rev = core->bus->chipinfo.rev; bus 113 drivers/net/wireless/broadcom/b43/bus.c dev->chip_pkg = core->bus->chipinfo.pkg; bus 115 drivers/net/wireless/broadcom/b43/bus.c dev->bus_sprom = &core->bus->sprom; bus 128 drivers/net/wireless/broadcom/b43/bus.c return ssb_bus_may_powerdown(dev->sdev->bus); bus 133 drivers/net/wireless/broadcom/b43/bus.c return ssb_bus_powerup(dev->sdev->bus, dynamic_pctl); bus 206 drivers/net/wireless/broadcom/b43/bus.c dev->board_vendor = sdev->bus->boardinfo.vendor; bus 207 drivers/net/wireless/broadcom/b43/bus.c dev->board_type = sdev->bus->boardinfo.type; bus 208 drivers/net/wireless/broadcom/b43/bus.c dev->board_rev = sdev->bus->sprom.board_rev; bus 210 drivers/net/wireless/broadcom/b43/bus.c dev->chip_id = sdev->bus->chip_id; bus 211 drivers/net/wireless/broadcom/b43/bus.c dev->chip_rev = sdev->bus->chip_rev; bus 212 drivers/net/wireless/broadcom/b43/bus.c dev->chip_pkg = sdev->bus->chip_package; bus 214 drivers/net/wireless/broadcom/b43/bus.c dev->bus_sprom = &sdev->bus->sprom; bus 61 drivers/net/wireless/broadcom/b43/bus.h dev->sdev->bus->bustype == SSB_BUSTYPE_PCMCIA); bus 71 drivers/net/wireless/broadcom/b43/bus.h return (dev->bdev->bus->hosttype == BCMA_HOSTTYPE_PCI); bus 75 drivers/net/wireless/broadcom/b43/bus.h return (dev->sdev->bus->bustype == SSB_BUSTYPE_PCI); bus 84 drivers/net/wireless/broadcom/b43/bus.h dev->sdev->bus->bustype == SSB_BUSTYPE_SDIO); bus 1044 drivers/net/wireless/broadcom/b43/dma.c dev->dev->sdev->bus->bustype == SSB_BUSTYPE_PCI && bus 1045 drivers/net/wireless/broadcom/b43/dma.c !(pci_is_pcie(dev->dev->sdev->bus->host_pci) && bus 1210 drivers/net/wireless/broadcom/b43/main.c bcma_cc = &dev->dev->bdev->bus->drv_cc; bus 1220 drivers/net/wireless/broadcom/b43/main.c ssb_cc = &dev->dev->sdev->bus->chipco; bus 2852 drivers/net/wireless/broadcom/b43/main.c struct ssb_bus *bus = dev->dev->sdev->bus; bus 2855 drivers/net/wireless/broadcom/b43/main.c return (bus->chipco.dev ? bus->chipco.dev : bus->pcicore.dev); bus 2857 drivers/net/wireless/broadcom/b43/main.c return bus->chipco.dev; bus 2905 drivers/net/wireless/broadcom/b43/main.c bcma_chipco_gpio_control(&dev->dev->bdev->bus->drv_cc, mask, set); bus 2932 drivers/net/wireless/broadcom/b43/main.c bcma_chipco_gpio_control(&dev->dev->bdev->bus->drv_cc, ~0, 0); bus 3329 drivers/net/wireless/broadcom/b43/main.c dev->dev->sdev->bus->chipco.fast_pwrup_delay); bus 4715 drivers/net/wireless/broadcom/b43/main.c struct ssb_bus *bus; bus 4725 drivers/net/wireless/broadcom/b43/main.c bus = dev->dev->sdev->bus; bus 4727 drivers/net/wireless/broadcom/b43/main.c if ((bus->chip_id == 0x4311 && bus->chip_rev == 2) || bus 4728 drivers/net/wireless/broadcom/b43/main.c (bus->chip_id == 0x4312)) { bus 4734 drivers/net/wireless/broadcom/b43/main.c ssb_commit_settings(bus); bus 4783 drivers/net/wireless/broadcom/b43/main.c bcma_host_pci_down(dev->dev->bdev->bus); bus 4830 drivers/net/wireless/broadcom/b43/main.c bcma_host_pci_irq_ctl(dev->dev->bdev->bus, bus 4832 drivers/net/wireless/broadcom/b43/main.c bcma_host_pci_up(dev->dev->bdev->bus); bus 4837 drivers/net/wireless/broadcom/b43/main.c ssb_pcicore_dev_irqvecs_enable(&dev->dev->sdev->bus->pcicore, bus 4873 drivers/net/wireless/broadcom/b43/main.c dev->dev->sdev->bus->bustype == SSB_BUSTYPE_PCI && bus 4874 drivers/net/wireless/broadcom/b43/main.c dev->dev->sdev->bus->pcicore.dev->id.revision <= 10) bus 5297 drivers/net/wireless/broadcom/b43/main.c dev->dev->bdev->bus->hosttype == BCMA_HOSTTYPE_PCI) bus 5298 drivers/net/wireless/broadcom/b43/main.c dev_id = dev->dev->bdev->bus->host_pci->device; bus 5302 drivers/net/wireless/broadcom/b43/main.c dev->dev->sdev->bus->bustype == SSB_BUSTYPE_PCI) bus 5303 drivers/net/wireless/broadcom/b43/main.c dev_id = dev->dev->sdev->bus->host_pci->device; bus 5521 drivers/net/wireless/broadcom/b43/main.c static void b43_sprom_fixup(struct ssb_bus *bus) bus 5526 drivers/net/wireless/broadcom/b43/main.c if (bus->boardinfo.vendor == SSB_BOARDVENDOR_DELL && bus 5527 drivers/net/wireless/broadcom/b43/main.c bus->chip_id == 0x4301 && bus->sprom.board_rev == 0x74) bus 5528 drivers/net/wireless/broadcom/b43/main.c bus->sprom.boardflags_lo |= B43_BFL_BTCOEXIST; bus 5529 drivers/net/wireless/broadcom/b43/main.c if (bus->boardinfo.vendor == PCI_VENDOR_ID_APPLE && bus 5530 drivers/net/wireless/broadcom/b43/main.c bus->boardinfo.type == 0x4E && bus->sprom.board_rev > 0x40) bus 5531 drivers/net/wireless/broadcom/b43/main.c bus->sprom.boardflags_lo |= B43_BFL_PACTRL; bus 5532 drivers/net/wireless/broadcom/b43/main.c if (bus->bustype == SSB_BUSTYPE_PCI) { bus 5533 drivers/net/wireless/broadcom/b43/main.c pdev = bus->host_pci; bus 5541 drivers/net/wireless/broadcom/b43/main.c bus->sprom.boardflags_lo &= ~B43_BFL_BTCOEXIST; bus 5711 drivers/net/wireless/broadcom/b43/main.c b43_sprom_fixup(sdev->bus); bus 743 drivers/net/wireless/broadcom/b43/phy_ht.c bcma_pmu_spuravoid_pllupdate(&core->bus->drv_cc, spuravoid); bus 589 drivers/net/wireless/broadcom/b43/phy_lcn.c struct bcma_drv_cc *cc = &dev->dev->bdev->bus->drv_cc; bus 700 drivers/net/wireless/broadcom/b43/phy_lcn.c struct bcma_drv_cc *cc = &dev->dev->bdev->bus->drv_cc; bus 199 drivers/net/wireless/broadcom/b43/phy_lp.c struct ssb_bus *bus = dev->dev->sdev->bus; bus 231 drivers/net/wireless/broadcom/b43/phy_lp.c ssb_pmu_set_ldo_voltage(&bus->chipco, LDO_PAREF, 0x28); bus 232 drivers/net/wireless/broadcom/b43/phy_lp.c ssb_pmu_set_ldo_paref(&bus->chipco, true); bus 239 drivers/net/wireless/broadcom/b43/phy_lp.c ssb_pmu_set_ldo_paref(&bus->chipco, false); bus 504 drivers/net/wireless/broadcom/b43/phy_lp.c struct ssb_bus *bus = dev->dev->sdev->bus; bus 544 drivers/net/wireless/broadcom/b43/phy_lp.c crystalfreq = bus->chipco.pmu.crystalfreq * 1000; bus 546 drivers/net/wireless/broadcom/b43/phy_lp.c B43_WARN_ON(!(bus->chipco.capabilities & SSB_CHIPCO_CAP_PMU)); bus 1274 drivers/net/wireless/broadcom/b43/phy_lp.c struct ssb_bus *bus = dev->dev->sdev->bus; bus 1275 drivers/net/wireless/broadcom/b43/phy_lp.c u32 crystal_freq = bus->chipco.pmu.crystalfreq * 1000; bus 2390 drivers/net/wireless/broadcom/b43/phy_lp.c struct ssb_bus *bus = dev->dev->sdev->bus; bus 2392 drivers/net/wireless/broadcom/b43/phy_lp.c u32 crystal_freq = bus->chipco.pmu.crystalfreq * 1000; bus 2480 drivers/net/wireless/broadcom/b43/phy_lp.c struct ssb_bus *bus = dev->dev->sdev->bus; bus 2483 drivers/net/wireless/broadcom/b43/phy_lp.c u32 crystal_freq = bus->chipco.pmu.crystalfreq * 1000; bus 5997 drivers/net/wireless/broadcom/b43/phy_n.c bcma_chipco_gpio_control(&dev->dev->bdev->bus->drv_cc, bus 6003 drivers/net/wireless/broadcom/b43/phy_n.c ssb_chipco_gpio_control(&dev->dev->sdev->bus->chipco, bus 6043 drivers/net/wireless/broadcom/b43/phy_n.c bcma_cc_set32(&dev->dev->bdev->bus->drv_cc, bus 6049 drivers/net/wireless/broadcom/b43/phy_n.c chipco_set32(&dev->dev->sdev->bus->chipco, bus 6255 drivers/net/wireless/broadcom/b43/phy_n.c bcma_pmu_spuravoid_pllupdate(&dev->dev->bdev->bus->drv_cc, bus 6261 drivers/net/wireless/broadcom/b43/phy_n.c ssb_pmu_spuravoid_pllupdate(&dev->dev->sdev->bus->chipco, bus 6509 drivers/net/wireless/broadcom/b43/phy_n.c dev->dev->sdev->bus->bustype == SSB_BUSTYPE_PCI) { bus 6511 drivers/net/wireless/broadcom/b43/phy_n.c dev->dev->sdev->bus->host_pci; bus 65 drivers/net/wireless/broadcom/b43/sdio.c struct ssb_bus *bus = dev->dev->sdev->bus; bus 66 drivers/net/wireless/broadcom/b43/sdio.c struct sdio_func *func = bus->host_sdio; bus 81 drivers/net/wireless/broadcom/b43/sdio.c struct ssb_bus *bus = dev->dev->sdev->bus; bus 82 drivers/net/wireless/broadcom/b43/sdio.c struct sdio_func *func = bus->host_sdio; bus 803 drivers/net/wireless/broadcom/b43legacy/b43legacy.h return (dev->dev->bus->boardinfo.vendor == PCI_VENDOR_ID_BROADCOM); bus 178 drivers/net/wireless/broadcom/b43legacy/leds.c struct ssb_bus *bus = dev->dev->bus; bus 184 drivers/net/wireless/broadcom/b43legacy/leds.c sprom[0] = bus->sprom.gpio0; bus 185 drivers/net/wireless/broadcom/b43legacy/leds.c sprom[1] = bus->sprom.gpio1; bus 186 drivers/net/wireless/broadcom/b43legacy/leds.c sprom[2] = bus->sprom.gpio2; bus 187 drivers/net/wireless/broadcom/b43legacy/leds.c sprom[3] = bus->sprom.gpio3; bus 198 drivers/net/wireless/broadcom/b43legacy/leds.c if (bus->boardinfo.vendor == PCI_VENDOR_ID_COMPAQ) bus 203 drivers/net/wireless/broadcom/b43legacy/leds.c if (bus->boardinfo.vendor == PCI_VENDOR_ID_ASUSTEK) bus 1877 drivers/net/wireless/broadcom/b43legacy/main.c struct ssb_bus *bus = dev->dev->bus; bus 1894 drivers/net/wireless/broadcom/b43legacy/main.c if (dev->dev->bus->chip_id == 0x4301) { bus 1898 drivers/net/wireless/broadcom/b43legacy/main.c if (dev->dev->bus->sprom.boardflags_lo & B43legacy_BFL_PACTRL) { bus 1910 drivers/net/wireless/broadcom/b43legacy/main.c pcidev = bus->pcicore.dev; bus 1912 drivers/net/wireless/broadcom/b43legacy/main.c gpiodev = bus->chipco.dev ? : pcidev; bus 1925 drivers/net/wireless/broadcom/b43legacy/main.c struct ssb_bus *bus = dev->dev->bus; bus 1929 drivers/net/wireless/broadcom/b43legacy/main.c pcidev = bus->pcicore.dev; bus 1931 drivers/net/wireless/broadcom/b43legacy/main.c gpiodev = bus->chipco.dev ? : pcidev; bus 2041 drivers/net/wireless/broadcom/b43legacy/main.c if (dev->dev->bus->chip_id == 0x4306 && bus 2042 drivers/net/wireless/broadcom/b43legacy/main.c dev->dev->bus->chip_rev == 3) bus 2241 drivers/net/wireless/broadcom/b43legacy/main.c dev->dev->bus->chipco.fast_pwrup_delay); bus 2273 drivers/net/wireless/broadcom/b43legacy/main.c if (dev->dev->bus->sprom.boardflags_lo & B43legacy_BFL_RSSI) { bus 3024 drivers/net/wireless/broadcom/b43legacy/main.c if (dev->dev->bus->chip_id == 0x4317) { bus 3025 drivers/net/wireless/broadcom/b43legacy/main.c if (dev->dev->bus->chip_rev == 0) bus 3027 drivers/net/wireless/broadcom/b43legacy/main.c else if (dev->dev->bus->chip_rev == 1) bus 3205 drivers/net/wireless/broadcom/b43legacy/main.c ssb_bus_may_powerdown(dev->dev->bus); bus 3251 drivers/net/wireless/broadcom/b43legacy/main.c struct ssb_bus *bus = dev->dev->bus; bus 3253 drivers/net/wireless/broadcom/b43legacy/main.c struct ssb_sprom *sprom = &dev->dev->bus->sprom; bus 3260 drivers/net/wireless/broadcom/b43legacy/main.c err = ssb_bus_powerup(bus, 0); bus 3283 drivers/net/wireless/broadcom/b43legacy/main.c ssb_pcicore_dev_irqvecs_enable(&bus->pcicore, dev->dev); bus 3350 drivers/net/wireless/broadcom/b43legacy/main.c ssb_bus_powerup(bus, 1); /* Enable dynamic PCTL */ bus 3370 drivers/net/wireless/broadcom/b43legacy/main.c ssb_bus_may_powerdown(bus); bus 3624 drivers/net/wireless/broadcom/b43legacy/main.c struct ssb_bus *bus = dev->dev->bus; bus 3625 drivers/net/wireless/broadcom/b43legacy/main.c struct pci_dev *pdev = (bus->bustype == SSB_BUSTYPE_PCI) ? bus->host_pci : NULL; bus 3638 drivers/net/wireless/broadcom/b43legacy/main.c err = ssb_bus_powerup(bus, 0); bus 3702 drivers/net/wireless/broadcom/b43legacy/main.c ssb_bus_may_powerdown(bus); bus 3708 drivers/net/wireless/broadcom/b43legacy/main.c ssb_bus_may_powerdown(bus); bus 3767 drivers/net/wireless/broadcom/b43legacy/main.c static void b43legacy_sprom_fixup(struct ssb_bus *bus) bus 3770 drivers/net/wireless/broadcom/b43legacy/main.c if (bus->boardinfo.vendor == PCI_VENDOR_ID_APPLE && bus 3771 drivers/net/wireless/broadcom/b43legacy/main.c bus->boardinfo.type == 0x4E && bus 3772 drivers/net/wireless/broadcom/b43legacy/main.c bus->sprom.board_rev > 0x40) bus 3773 drivers/net/wireless/broadcom/b43legacy/main.c bus->sprom.boardflags_lo |= B43legacy_BFL_PACTRL; bus 3787 drivers/net/wireless/broadcom/b43legacy/main.c struct ssb_sprom *sprom = &dev->bus->sprom; bus 3793 drivers/net/wireless/broadcom/b43legacy/main.c b43legacy_sprom_fixup(dev->bus); bus 3841 drivers/net/wireless/broadcom/b43legacy/main.c dev->bus->chip_id, dev->id.revision); bus 145 drivers/net/wireless/broadcom/b43legacy/phy.c (dev->dev->bus->boardinfo.type == 0x0416)) bus 385 drivers/net/wireless/broadcom/b43legacy/phy.c (dev->dev->bus->boardinfo.type == 0x0416) && bus 386 drivers/net/wireless/broadcom/b43legacy/phy.c (dev->dev->bus->sprom.board_rev == 0x0017)) bus 401 drivers/net/wireless/broadcom/b43legacy/phy.c (dev->dev->bus->boardinfo.type == 0x0416) && bus 402 drivers/net/wireless/broadcom/b43legacy/phy.c (dev->dev->bus->sprom.board_rev == 0x0017)) bus 417 drivers/net/wireless/broadcom/b43legacy/phy.c if (dev->dev->bus->sprom.boardflags_lo & B43legacy_BFL_PACTRL) bus 519 drivers/net/wireless/broadcom/b43legacy/phy.c if (dev->dev->bus->sprom.boardflags_lo & B43legacy_BFL_RSSI) { bus 538 drivers/net/wireless/broadcom/b43legacy/phy.c (dev->dev->bus->boardinfo.type != 0x0416)) { bus 677 drivers/net/wireless/broadcom/b43legacy/phy.c if (dev->dev->bus->sprom.boardflags_lo & 0x8000) { bus 775 drivers/net/wireless/broadcom/b43legacy/phy.c if (dev->dev->bus->sprom.boardflags_lo & bus 899 drivers/net/wireless/broadcom/b43legacy/phy.c if (dev->dev->bus->sprom.boardflags_lo & B43legacy_BFL_EXTLNA) { bus 1054 drivers/net/wireless/broadcom/b43legacy/phy.c if (dev->dev->bus->sprom.boardflags_lo & bus 1069 drivers/net/wireless/broadcom/b43legacy/phy.c if (!(dev->dev->bus->sprom.boardflags_lo & B43legacy_BFL_RSSI)) { bus 1090 drivers/net/wireless/broadcom/b43legacy/phy.c if (dev->dev->bus->chip_id == 0x4306 bus 1091 drivers/net/wireless/broadcom/b43legacy/phy.c && dev->dev->bus->chip_package == 2) { bus 1772 drivers/net/wireless/broadcom/b43legacy/phy.c if ((dev->dev->bus->boardinfo.type == 0x0416) && bus 1817 drivers/net/wireless/broadcom/b43legacy/phy.c max_pwr = dev->dev->bus->sprom.maxpwr_bg; bus 1819 drivers/net/wireless/broadcom/b43legacy/phy.c if ((dev->dev->bus->sprom.boardflags_lo bus 1827 drivers/net/wireless/broadcom/b43legacy/phy.c dev->dev->bus->sprom.maxpwr_bg = max_pwr; bus 1838 drivers/net/wireless/broadcom/b43legacy/phy.c - dev->dev->bus->sprom.antenna_gain.a0 bus 1898 drivers/net/wireless/broadcom/b43legacy/phy.c } else if (dev->dev->bus->sprom.boardflags_lo bus 1980 drivers/net/wireless/broadcom/b43legacy/phy.c pab0 = (s16)(dev->dev->bus->sprom.pa0b0); bus 1981 drivers/net/wireless/broadcom/b43legacy/phy.c pab1 = (s16)(dev->dev->bus->sprom.pa0b1); bus 1982 drivers/net/wireless/broadcom/b43legacy/phy.c pab2 = (s16)(dev->dev->bus->sprom.pa0b2); bus 1984 drivers/net/wireless/broadcom/b43legacy/phy.c if ((dev->dev->bus->chip_id == 0x4301) && (phy->radio_ver != 0x2050)) { bus 1993 drivers/net/wireless/broadcom/b43legacy/phy.c if ((s8)dev->dev->bus->sprom.itssi_bg != 0 && bus 1994 drivers/net/wireless/broadcom/b43legacy/phy.c (s8)dev->dev->bus->sprom.itssi_bg != -1) bus 1995 drivers/net/wireless/broadcom/b43legacy/phy.c phy->idle_tssi = (s8)(dev->dev->bus->sprom. bus 814 drivers/net/wireless/broadcom/b43legacy/radio.c if (!(dev->dev->bus->sprom.boardflags_lo & bus 844 drivers/net/wireless/broadcom/b43legacy/radio.c !(dev->dev->bus->sprom.boardflags_lo & bus 1393 drivers/net/wireless/broadcom/b43legacy/radio.c if (phy->rev < 7 || !(dev->dev->bus->sprom.boardflags_lo bus 1446 drivers/net/wireless/broadcom/b43legacy/radio.c if (phy->rev >= 7 && dev->dev->bus->sprom.boardflags_lo bus 1537 drivers/net/wireless/broadcom/b43legacy/radio.c !(dev->dev->bus->sprom.boardflags_lo bus 1754 drivers/net/wireless/broadcom/b43legacy/radio.c if (dev->dev->bus->sprom.country_code == 5) /* JAPAN) */ bus 1964 drivers/net/wireless/broadcom/b43legacy/radio.c dev->dev->bus->boardinfo.type == 0x421 && bus 1965 drivers/net/wireless/broadcom/b43legacy/radio.c dev->dev->bus->sprom.board_rev >= 30) bus 1968 drivers/net/wireless/broadcom/b43legacy/radio.c dev->dev->bus->boardinfo.type == 0x416) bus 1974 drivers/net/wireless/broadcom/b43legacy/radio.c dev->dev->bus->boardinfo.type == 0x421 && bus 1975 drivers/net/wireless/broadcom/b43legacy/radio.c dev->dev->bus->sprom.board_rev >= 30) bus 1984 drivers/net/wireless/broadcom/b43legacy/radio.c dev->dev->bus->boardinfo.type == 0x421 && bus 1985 drivers/net/wireless/broadcom/b43legacy/radio.c dev->dev->bus->sprom.board_rev >= 30) bus 1988 drivers/net/wireless/broadcom/b43legacy/radio.c dev->dev->bus->boardinfo.type == bus 1991 drivers/net/wireless/broadcom/b43legacy/radio.c else if (dev->dev->bus->chip_id == 0x4320) bus 2018 drivers/net/wireless/broadcom/b43legacy/radio.c dev->dev->bus->boardinfo.type == 0x421) { bus 2019 drivers/net/wireless/broadcom/b43legacy/radio.c if (dev->dev->bus->sprom.board_rev < 0x43) bus 2021 drivers/net/wireless/broadcom/b43legacy/radio.c else if (dev->dev->bus->sprom.board_rev < 0x51) bus 43 drivers/net/wireless/broadcom/b43legacy/rfkill.c struct ssb_bus *bus = dev->dev->bus; bus 49 drivers/net/wireless/broadcom/b43legacy/rfkill.c if (ssb_bus_powerup(bus, 0)) { bus 74 drivers/net/wireless/broadcom/b43legacy/rfkill.c ssb_bus_may_powerdown(bus); bus 377 drivers/net/wireless/broadcom/b43legacy/xmit.c if (dev->dev->bus->sprom.boardflags_lo bus 74 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c brcmf_sdio_isr(sdiodev->bus); bus 86 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c brcmf_sdio_isr(sdiodev->bus); bus 101 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c pdata = &sdiodev->settings->bus.sdio; bus 174 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c pdata = &sdiodev->settings->bus.sdio; bus 400 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c if (!write && sdiodev->settings->bus.sdio.broken_sg_support) { bus 481 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c if (!write && sdiodev->settings->bus.sdio.broken_sg_support) { bus 772 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c sdiodev->settings->bus.sdio.txglomsz); bus 784 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c sdiodev->txglomsz = sdiodev->settings->bus.sdio.txglomsz; bus 816 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c brcmf_sdio_trigger_dpc(sdiodev->bus); bus 820 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c res = brcmf_sdio_sleep(sdiodev->bus, true); bus 828 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c brcmf_sdio_sleep(sdiodev->bus, false); bus 871 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c if (sdiodev->bus) { bus 872 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c brcmf_sdio_remove(sdiodev->bus); bus 873 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c sdiodev->bus = NULL; bus 938 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c sdiodev->bus = brcmf_sdio_probe(sdiodev); bus 939 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c if (!sdiodev->bus) { bus 1123 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c brcmf_sdio_wd_timer(sdiodev->bus, 0); bus 1127 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c if (sdiodev->settings->bus.sdio.oob_irq_supported) bus 1128 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c enable_irq_wake(sdiodev->settings->bus.sdio.oob_irq_nr); bus 160 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h static inline int brcmf_bus_preinit(struct brcmf_bus *bus) bus 162 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h if (!bus->ops->preinit) bus 164 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h return bus->ops->preinit(bus->dev); bus 167 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h static inline void brcmf_bus_stop(struct brcmf_bus *bus) bus 169 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h bus->ops->stop(bus->dev); bus 172 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h static inline int brcmf_bus_txdata(struct brcmf_bus *bus, struct sk_buff *skb) bus 174 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h return bus->ops->txdata(bus->dev, skb); bus 178 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h int brcmf_bus_txctl(struct brcmf_bus *bus, unsigned char *msg, uint len) bus 180 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h return bus->ops->txctl(bus->dev, msg, len); bus 184 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h int brcmf_bus_rxctl(struct brcmf_bus *bus, unsigned char *msg, uint len) bus 186 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h return bus->ops->rxctl(bus->dev, msg, len); bus 190 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h struct pktq *brcmf_bus_gettxq(struct brcmf_bus *bus) bus 192 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h if (!bus->ops->gettxq) bus 195 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h return bus->ops->gettxq(bus->dev); bus 199 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h void brcmf_bus_wowl_config(struct brcmf_bus *bus, bool enabled) bus 201 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h if (bus->ops->wowl_config) bus 202 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h bus->ops->wowl_config(bus->dev, enabled); bus 205 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h static inline size_t brcmf_bus_get_ramsize(struct brcmf_bus *bus) bus 207 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h if (!bus->ops->get_ramsize) bus 210 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h return bus->ops->get_ramsize(bus->dev); bus 214 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h int brcmf_bus_get_memdump(struct brcmf_bus *bus, void *data, size_t len) bus 216 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h if (!bus->ops->get_memdump) bus 219 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h return bus->ops->get_memdump(bus->dev, data, len); bus 223 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h int brcmf_bus_get_fwname(struct brcmf_bus *bus, const char *ext, bus 226 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h return bus->ops->get_fwname(bus->dev, ext, fw_name); bus 230 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h void brcmf_bus_debugfs_create(struct brcmf_bus *bus) bus 232 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h if (!bus->ops->debugfs_create) bus 235 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h return bus->ops->debugfs_create(bus->dev); bus 239 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h int brcmf_bus_reset(struct brcmf_bus *bus) bus 241 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h if (!bus->ops->reset) bus 244 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h return bus->ops->reset(bus->dev); bus 270 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h void brcmf_bus_change_state(struct brcmf_bus *bus, enum brcmf_bus_state state); bus 123 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c struct brcmf_bus *bus = drvr->bus_if; bus 137 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c err = brcmf_bus_get_fwname(bus, ".clm_blob", clm_name); bus 143 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c err = firmware_request_nowarn(&clm, clm_name, bus->dev); bus 198 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c struct brcmf_bus *bus; bus 215 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c bus = ifp->drvr->bus_if; bus 233 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c ri->bus = le32_to_cpu(revinfo.bus); bus 241 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c if (!bus->chip) { bus 242 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c bus->chip = le32_to_cpu(revinfo.chipnum); bus 243 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c bus->chiprev = le32_to_cpu(revinfo.chiprev); bus 248 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c if (bus->chip) bus 249 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c brcmf_chip_name(bus->chip, bus->chiprev, bus 344 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c void __brcmf_err(struct brcmf_bus *bus, const char *func, const char *fmt, ...) bus 353 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c if (bus) bus 354 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c dev_err(bus->dev, "%s: %pV", func, &vaf); bus 421 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c settings->bus.sdio.txglomsz = brcmf_sdiod_txglomsz; bus 436 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c memcpy(&settings->bus.sdio, bus 437 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c &device_pd->bus.sdio, bus 438 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c sizeof(settings->bus.sdio)); bus 55 drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.h } bus; bus 1070 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c seq_printf(s, "bus: %u\n", ri->bus); bus 1414 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c void brcmf_bus_change_state(struct brcmf_bus *bus, enum brcmf_bus_state state) bus 1416 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c struct brcmf_pub *drvr = bus->drvr; bus 1420 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c brcmf_dbg(TRACE, "%d -> %d\n", bus->state, state); bus 1427 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c bus->state = state; bus 85 drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.h u32 bus; bus 17 drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.c int brcmf_debug_create_memdump(struct brcmf_bus *bus, const void *data, bus 24 drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.c ramsize = brcmf_bus_get_ramsize(bus); bus 34 drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.c err = brcmf_bus_get_memdump(bus, dump + len, ramsize); bus 40 drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.c dev_coredumpv(bus->dev, dump, len + ramsize, GFP_KERNEL); bus 40 drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.h void __brcmf_err(struct brcmf_bus *bus, const char *func, const char *fmt, ...); bus 121 drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.h int brcmf_debug_create_memdump(struct brcmf_bus *bus, const void *data, bus 135 drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.h int brcmf_debug_create_memdump(struct brcmf_bus *bus, const void *data, bus 722 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h __le32 bus; bus 18 drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c struct brcmfmac_sdio_pd *sdio = &settings->bus.sdio; bus 24 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c #define brcmf_err(bus, fmt, ...) \ bus 29 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c __brcmf_err(bus, __func__, fmt, ##__VA_ARGS__); \ bus 537 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_bus *bus = dev_get_drvdata(&pdev->dev); bus 555 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_err(bus, "Unsupported core selected %x\n", coreid); bus 766 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_bus *bus = dev_get_drvdata(&pdev->dev); bus 797 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c __brcmf_err(bus, __func__, "CONSOLE: %s", bus 872 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_bus *bus = dev_get_drvdata(&pdev->dev); bus 883 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_err(bus, "Failed to request IRQ %d\n", pdev->irq); bus 894 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_bus *bus = dev_get_drvdata(&pdev->dev); bus 912 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_err(bus, "Still in IRQ (processing) !!!\n"); bus 1123 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_bus *bus = dev_get_drvdata(&devinfo->pdev->dev); bus 1276 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_err(bus, "Allocating ring buffers failed\n"); bus 1299 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_bus *bus = dev_get_drvdata(&devinfo->pdev->dev); bus 1339 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_err(bus, "Allocating scratch buffers failed\n"); bus 1495 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_bus *bus = dev_get_drvdata(&devinfo->pdev->dev); bus 1507 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_err(bus, "Unsupported PCIE version %d\n", bus 1550 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_bus *bus = dev_get_drvdata(&devinfo->pdev->dev); bus 1605 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_err(bus, "FW failed to initialize\n"); bus 1610 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_err(bus, "Invalid shared RAM address 0x%08x\n", bus 1623 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_bus *bus = dev_get_drvdata(&pdev->dev); bus 1630 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_err(bus, "pci_enable_device failed err=%d\n", err); bus 1643 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_err(bus, "BAR1 Not enabled, device size=%ld, addr=%#016llx\n", bus 1652 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_err(bus, "ioremap() failed (%p,%p)\n", devinfo->regs, bus 1755 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_bus *bus; bus 1765 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c bus = dev_get_drvdata(dev); bus 1766 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c pcie_bus_dev = bus->bus_priv.pcie; bus 1777 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_err(bus, "Failed to get RAM info\n"); bus 1809 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c bus->msgbuf->commonrings[i] = bus 1819 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c bus->msgbuf->flowrings = flowrings; bus 1821 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c bus->msgbuf->rx_dataoffset = devinfo->shared.rx_dataoffset; bus 1822 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c bus->msgbuf->max_rxbufpost = devinfo->shared.max_rxbufpost; bus 1823 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c bus->msgbuf->max_flowrings = devinfo->shared.max_flowrings; bus 1863 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c fwreq->domain_nr = pci_domain_nr(devinfo->pdev->bus) + 1; bus 1864 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c fwreq->bus_nr = devinfo->pdev->bus->number; bus 1876 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_bus *bus; bus 1909 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c bus = kzalloc(sizeof(*bus), GFP_KERNEL); bus 1910 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (!bus) { bus 1914 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c bus->msgbuf = kzalloc(sizeof(*bus->msgbuf), GFP_KERNEL); bus 1915 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (!bus->msgbuf) { bus 1917 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c kfree(bus); bus 1923 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c pcie_bus_dev->bus = bus; bus 1924 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c bus->dev = &pdev->dev; bus 1925 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c bus->bus_priv.pcie = pcie_bus_dev; bus 1926 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c bus->ops = &brcmf_pcie_bus_ops; bus 1927 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c bus->proto_type = BRCMF_PROTO_MSGBUF; bus 1928 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c bus->chip = devinfo->coreid; bus 1929 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c bus->wowl_supported = pci_pme_capable(pdev, PCI_D3hot); bus 1930 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c dev_set_drvdata(&pdev->dev, bus); bus 1942 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c ret = brcmf_fw_get_firmwares(bus->dev, fwreq, brcmf_pcie_setup); bus 1950 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c kfree(bus->msgbuf); bus 1951 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c kfree(bus); bus 1969 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_bus *bus; bus 1973 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c bus = dev_get_drvdata(&pdev->dev); bus 1974 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c if (bus == NULL) bus 1977 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo = bus->bus_priv.pcie->devinfo; bus 1986 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c kfree(bus->bus_priv.pcie); bus 1987 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c kfree(bus->msgbuf->flowrings); bus 1988 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c kfree(bus->msgbuf); bus 1989 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c kfree(bus); bus 2013 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_bus *bus; bus 2017 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c bus = dev_get_drvdata(dev); bus 2018 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo = bus->bus_priv.pcie->devinfo; bus 2020 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_bus_change_state(bus, BRCMF_BUS_DOWN); bus 2028 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_err(bus, "Timeout on response for entering D3 substate\n"); bus 2029 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_bus_change_state(bus, BRCMF_BUS_UP); bus 2042 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c struct brcmf_bus *bus; bus 2048 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c bus = dev_get_drvdata(dev); bus 2049 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c devinfo = bus->bus_priv.pcie->devinfo; bus 2050 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_dbg(PCIE, "Enter, dev=%p, bus=%p\n", dev, bus); bus 2060 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_bus_change_state(bus, BRCMF_BUS_UP); bus 2074 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c brcmf_err(bus, "probe after resume failed, err=%d\n", err); bus 10 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.h struct brcmf_bus *bus; bus 654 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static bool data_ok(struct brcmf_sdio *bus) bus 656 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c return (u8)(bus->tx_max - bus->tx_seq) != 0 && bus 657 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c ((u8)(bus->tx_max - bus->tx_seq) & 0x80) == 0; bus 661 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_kso_control(struct brcmf_sdio *bus, bool on) bus 670 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_retune_crc_disable(bus->sdiodev->func1); bus 674 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_retune_hold_now(bus->sdiodev->func1); bus 678 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_writeb(bus->sdiodev, SBSDIO_FUNC1_SLEEPCSR, wr_val, &err); bus 685 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!on && bus->ci->chip == CY_CC_43012_CHIP_ID) bus 712 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rd_val = brcmf_sdiod_readb(bus->sdiodev, SBSDIO_FUNC1_SLEEPCSR, bus 724 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_writeb(bus->sdiodev, SBSDIO_FUNC1_SLEEPCSR, wr_val, bus 737 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_retune_release(bus->sdiodev->func1); bus 739 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_retune_crc_enable(bus->sdiodev->func1); bus 747 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_htclk(struct brcmf_sdio *bus, bool on, bool pendok) bus 757 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->sr_enabled) { bus 758 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->clkstate = (on ? CLK_AVAIL : CLK_SDONLY); bus 765 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->alp_only ? SBSDIO_ALP_AVAIL_REQ : SBSDIO_HT_AVAIL_REQ; bus 767 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_writeb(bus->sdiodev, SBSDIO_FUNC1_CHIPCLKCSR, bus 775 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c clkctl = brcmf_sdiod_readb(bus->sdiodev, bus 783 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!SBSDIO_CLKAV(clkctl, bus->alp_only) && pendok) { bus 785 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c devctl = brcmf_sdiod_readb(bus->sdiodev, bus 793 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_writeb(bus->sdiodev, SBSDIO_DEVICE_CTL, bus 796 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->clkstate = CLK_PENDING; bus 799 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c } else if (bus->clkstate == CLK_PENDING) { bus 801 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c devctl = brcmf_sdiod_readb(bus->sdiodev, bus 804 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_writeb(bus->sdiodev, SBSDIO_DEVICE_CTL, bus 811 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c while (!SBSDIO_CLKAV(clkctl, bus->alp_only)) { bus 812 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c clkctl = brcmf_sdiod_readb(bus->sdiodev, bus 824 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!SBSDIO_CLKAV(clkctl, bus->alp_only)) { bus 831 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->clkstate = CLK_AVAIL; bus 835 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!bus->alp_only) { bus 844 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->clkstate == CLK_PENDING) { bus 846 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c devctl = brcmf_sdiod_readb(bus->sdiodev, bus 849 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_writeb(bus->sdiodev, SBSDIO_DEVICE_CTL, bus 853 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->clkstate = CLK_SDONLY; bus 854 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_writeb(bus->sdiodev, SBSDIO_FUNC1_CHIPCLKCSR, bus 867 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_sdclk(struct brcmf_sdio *bus, bool on) bus 872 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->clkstate = CLK_SDONLY; bus 874 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->clkstate = CLK_NONE; bus 880 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_clkctl(struct brcmf_sdio *bus, uint target, bool pendok) bus 883 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c uint oldstate = bus->clkstate; bus 889 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->clkstate == target) bus 895 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->clkstate == CLK_NONE) bus 896 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_sdclk(bus, true); bus 898 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_htclk(bus, true, pendok); bus 903 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->clkstate == CLK_NONE) bus 904 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_sdclk(bus, true); bus 905 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c else if (bus->clkstate == CLK_AVAIL) bus 906 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_htclk(bus, false, false); bus 909 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->clkstate, target); bus 914 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->clkstate == CLK_AVAIL) bus 915 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_htclk(bus, false, false); bus 917 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_sdclk(bus, false); bus 921 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_dbg(SDIO, "%d -> %d\n", oldstate, bus->clkstate); bus 928 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_bus_sleep(struct brcmf_sdio *bus, bool sleep, bool pendok) bus 935 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c (bus->sleeping ? "SLEEP" : "WAKE")); bus 938 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->sr_enabled) { bus 940 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (sleep == bus->sleeping) bus 945 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c clkcsr = brcmf_sdiod_readb(bus->sdiodev, bus 950 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_writeb(bus->sdiodev, bus 954 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c err = brcmf_sdio_kso_control(bus, false); bus 956 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c err = brcmf_sdio_kso_control(bus, true); bus 968 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!bus->sr_enabled) bus 969 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_clkctl(bus, CLK_NONE, pendok); bus 971 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_clkctl(bus, CLK_AVAIL, pendok); bus 972 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_wd_timer(bus, true); bus 974 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sleeping = sleep; bus 989 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_readshared(struct brcmf_sdio *bus, bus 998 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 999 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_bus_sleep(bus, false, false); bus 1005 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c shaddr = bus->ci->rambase + bus->ci->ramsize - 4; bus 1006 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!bus->ci->rambase && brcmf_chip_sr_capable(bus->ci)) bus 1007 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c shaddr -= bus->ci->srsize; bus 1008 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rv = brcmf_sdiod_ramrw(bus->sdiodev, false, shaddr, bus 1027 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rv = brcmf_sdiod_ramrw(bus->sdiodev, false, addr, (u8 *)&sh_le, bus 1032 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 1054 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 1058 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static void brcmf_sdio_get_console_addr(struct brcmf_sdio *bus) bus 1062 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (brcmf_sdio_readshared(bus, &sh) == 0) bus 1063 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->console_addr = sh.console_addr; bus 1066 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static void brcmf_sdio_get_console_addr(struct brcmf_sdio *bus) bus 1071 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static u32 brcmf_sdio_hostmail(struct brcmf_sdio *bus) bus 1073 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_sdio_dev *sdiod = bus->sdiodev; bus 1074 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_core *core = bus->sdio_core; bus 1091 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.f1regdata += 2; bus 1102 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->rx_seq); bus 1103 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!bus->rxskip) bus 1106 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->rxskip = false; bus 1114 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdpcm_ver = bus 1117 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->sdpcm_ver != SDPCM_PROT_VERSION) bus 1120 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdpcm_ver, SDPCM_PROT_VERSION); bus 1123 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdpcm_ver); bus 1129 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_get_console_addr(bus); bus 1141 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (fcbits & ~bus->flowcontrol) bus 1142 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.fc_xoff++; bus 1144 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->flowcontrol & ~fcbits) bus 1145 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.fc_xon++; bus 1147 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.fc_rcvd++; bus 1148 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->flowcontrol = fcbits; bus 1164 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static void brcmf_sdio_rxfail(struct brcmf_sdio *bus, bool abort, bool rtx) bus 1166 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_sdio_dev *sdiod = bus->sdiodev; bus 1167 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_core *core = bus->sdio_core; bus 1178 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_abort(bus->sdiodev, bus->sdiodev->func2); bus 1180 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_writeb(bus->sdiodev, SBSDIO_FUNC1_FRAMECTRL, SFC_RF_TERM, bus 1182 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.f1regdata++; bus 1186 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c hi = brcmf_sdiod_readb(bus->sdiodev, SBSDIO_FUNC1_RFRAMEBCHI, bus 1188 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c lo = brcmf_sdiod_readb(bus->sdiodev, SBSDIO_FUNC1_RFRAMEBCLO, bus 1190 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.f1regdata += 2; bus 1208 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.rxrtx++; bus 1212 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.f1regdata++; bus 1214 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->rxskip = true; bus 1218 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->cur_read.len = 0; bus 1221 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static void brcmf_sdio_txfail(struct brcmf_sdio *bus) bus 1223 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_sdio_dev *sdiodev = bus->sdiodev; bus 1228 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.tx_sderrs++; bus 1232 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.f1regdata++; bus 1237 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.f1regdata += 2; bus 1244 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static uint brcmf_sdio_glom_len(struct brcmf_sdio *bus) bus 1250 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c skb_queue_walk(&bus->glom, p) bus 1255 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static void brcmf_sdio_free_glom(struct brcmf_sdio *bus) bus 1259 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c skb_queue_walk_safe(&bus->glom, cur, next) { bus 1260 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c skb_unlink(cur, &bus->glom); bus 1333 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_hdparse(struct brcmf_sdio *bus, u8 *header, bus 1348 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->rxpending = false; bus 1353 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.rx_badhdr++; bus 1354 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_rxfail(bus, false, false); bus 1362 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c (roundup(len, bus->blocksize) != rd->len)) { bus 1385 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.rx_toolong++; bus 1386 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_rxfail(bus, false, false); bus 1404 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.rx_badhdr++; bus 1405 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_rxfail(bus, false, false); bus 1411 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.rx_badseq++; bus 1426 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->flowcontrol != fc) { bus 1427 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (~bus->flowcontrol & fc) bus 1428 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.fc_xoff++; bus 1429 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->flowcontrol & ~fc) bus 1430 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.fc_xon++; bus 1431 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.fc_rcvd++; bus 1432 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->flowcontrol = fc; bus 1435 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if ((u8)(tx_seq_max - bus->tx_seq) > 0x40) { bus 1437 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c tx_seq_max = bus->tx_seq + 2; bus 1439 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->tx_max = tx_seq_max; bus 1450 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static void brcmf_sdio_hdpack(struct brcmf_sdio *bus, u8 *header, bus 1459 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->txglom) { bus 1474 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c trace_brcmf_sdpcm_hdr(SDPCM_TX + !!(bus->txglom), header); bus 1477 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static u8 brcmf_sdio_rxglom(struct brcmf_sdio *bus, u8 rxseq) bus 1493 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->glomd, skb_peek(&bus->glom)); bus 1496 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->glomd) { bus 1498 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c dlen = (u16) (bus->glomd->len); bus 1499 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c dptr = bus->glomd->data; bus 1518 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (sublen % bus->sgentry_align) { bus 1520 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sublen, bus->sgentry_align); bus 1528 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c (roundup(totlen, bus->blocksize) - totlen); bus 1529 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c totlen = roundup(totlen, bus->blocksize); bus 1533 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c pnext = brcmu_pkt_buf_get_skb(sublen + bus->sgentry_align); bus 1539 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c skb_queue_tail(&bus->glom, pnext); bus 1542 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c pkt_align(pnext, sublen, bus->sgentry_align); bus 1550 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (BRCMF_GLOM_ON() && bus->cur_read.len && bus 1551 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c totlen != bus->cur_read.len) { bus 1553 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->cur_read.len, totlen, rxseq); bus 1557 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_free_glom(bus); bus 1562 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmu_pkt_buf_free_skb(bus->glomd); bus 1563 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->glomd = NULL; bus 1564 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->cur_read.len = 0; bus 1569 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!skb_queue_empty(&bus->glom)) { bus 1572 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c skb_queue_walk(&bus->glom, pnext) { bus 1579 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c pfirst = skb_peek(&bus->glom); bus 1580 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c dlen = (u16) brcmf_sdio_glom_len(bus); bus 1586 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 1587 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c errcode = brcmf_sdiod_recv_chain(bus->sdiodev, bus 1588 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c &bus->glom, dlen); bus 1589 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 1590 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.f2rxdata++; bus 1597 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 1598 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_rxfail(bus, true, false); bus 1599 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.rxglomfail++; bus 1600 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_free_glom(bus); bus 1601 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 1611 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 1612 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c errcode = brcmf_sdio_hdparse(bus, pfirst->data, &rd_new, bus 1614 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 1615 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->cur_read.len = rd_new.len_nxtfrm << 4; bus 1622 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c skb_queue_walk(&bus->glom, pnext) { bus 1629 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 1630 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c errcode = brcmf_sdio_hdparse(bus, pnext->data, &rd_new, bus 1632 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 1641 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 1642 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_rxfail(bus, true, false); bus 1643 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.rxglomfail++; bus 1644 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_free_glom(bus); bus 1645 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 1646 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->cur_read.len = 0; bus 1652 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c skb_queue_walk_safe(&bus->glom, pfirst, pnext) { bus 1665 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c skb_unlink(pfirst, &bus->glom); bus 1674 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->glom.qlen, pfirst, pfirst->data, bus 1677 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c skb_unlink(pfirst, &bus->glom); bus 1679 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_rx_event(bus->sdiodev->dev, pfirst); bus 1681 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_rx_frame(bus->sdiodev->dev, pfirst, bus 1683 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.rxglompkts++; bus 1686 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.rxglomframes++; bus 1691 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_dcmd_resp_wait(struct brcmf_sdio *bus, uint *condition, bus 1698 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c add_wait_queue(&bus->dcmd_resp_wait, &wait); bus 1708 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c remove_wait_queue(&bus->dcmd_resp_wait, &wait); bus 1713 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_dcmd_resp_wake(struct brcmf_sdio *bus) bus 1715 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c wake_up_interruptible(&bus->dcmd_resp_wait); bus 1720 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_read_control(struct brcmf_sdio *bus, u8 *hdr, uint len, uint doff) bus 1727 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->rxblen) bus 1728 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c buf = vzalloc(bus->rxblen); bus 1732 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rbuf = bus->rxbuf; bus 1733 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c pad = ((unsigned long)rbuf % bus->head_align); bus 1735 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rbuf += (bus->head_align - pad); bus 1744 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->roundup && bus->blocksize && (rdlen > bus->blocksize)) { bus 1745 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c pad = bus->blocksize - (rdlen % bus->blocksize); bus 1746 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if ((pad <= bus->roundup) && (pad < bus->blocksize) && bus 1747 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c ((len + pad) < bus->sdiodev->bus_if->maxctl)) bus 1749 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c } else if (rdlen % bus->head_align) { bus 1750 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rdlen += bus->head_align - (rdlen % bus->head_align); bus 1754 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if ((rdlen + BRCMF_FIRSTREAD) > bus->sdiodev->bus_if->maxctl) { bus 1756 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rdlen, bus->sdiodev->bus_if->maxctl); bus 1757 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_rxfail(bus, false, false); bus 1761 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if ((len - doff) > bus->sdiodev->bus_if->maxctl) { bus 1763 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c len, len - doff, bus->sdiodev->bus_if->maxctl); bus 1764 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.rx_toolong++; bus 1765 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_rxfail(bus, false, false); bus 1770 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdret = brcmf_sdiod_recv_buf(bus->sdiodev, rbuf, rdlen); bus 1771 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.f2rxdata++; bus 1777 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.rxc_errors++; bus 1778 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_rxfail(bus, true, true); bus 1789 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c spin_lock_bh(&bus->rxctl_lock); bus 1790 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->rxctl) { bus 1792 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c spin_unlock_bh(&bus->rxctl_lock); bus 1796 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->rxctl = buf + doff; bus 1797 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->rxctl_orig = buf; bus 1798 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->rxlen = len - doff; bus 1799 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c spin_unlock_bh(&bus->rxctl_lock); bus 1803 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_dcmd_resp_wake(bus); bus 1807 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static void brcmf_sdio_pad(struct brcmf_sdio *bus, u16 *pad, u16 *rdlen) bus 1809 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->roundup && bus->blocksize && *rdlen > bus->blocksize) { bus 1810 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c *pad = bus->blocksize - (*rdlen % bus->blocksize); bus 1811 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (*pad <= bus->roundup && *pad < bus->blocksize && bus 1814 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c } else if (*rdlen % bus->head_align) { bus 1815 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c *rdlen += bus->head_align - (*rdlen % bus->head_align); bus 1819 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static uint brcmf_sdio_readframes(struct brcmf_sdio *bus, uint maxframes) bus 1826 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_sdio_hdrinfo *rd = &bus->cur_read, rd_new; bus 1832 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->rxpending = true; bus 1834 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c for (rd->seq_num = bus->rx_seq, rxleft = maxframes; bus 1835 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c !bus->rxskip && rxleft && bus->sdiodev->state == BRCMF_SDIOD_DATA; bus 1839 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->glomd || !skb_queue_empty(&bus->glom)) { bus 1842 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->glomd, skb_peek(&bus->glom)); bus 1843 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c cnt = brcmf_sdio_rxglom(bus, rd->seq_num); bus 1852 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 1854 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c ret = brcmf_sdiod_recv_buf(bus->sdiodev, bus 1855 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->rxhdr, BRCMF_FIRSTREAD); bus 1856 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.f2rxhdrs++; bus 1860 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.rx_hdrfail++; bus 1861 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_rxfail(bus, true, true); bus 1862 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 1867 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->rxhdr, SDPCM_HDRLEN, bus 1870 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (brcmf_sdio_hdparse(bus, bus->rxhdr, rd, bus 1872 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 1873 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!bus->rxpending) bus 1880 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_read_control(bus, bus->rxhdr, bus 1888 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 1896 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_pad(bus, &pad, &rd->len_left); bus 1899 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->head_align); bus 1903 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_rxfail(bus, false, bus 1905 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 1909 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c pkt_align(pkt, rd->len_left, bus->head_align); bus 1911 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c ret = brcmf_sdiod_recv_pkt(bus->sdiodev, pkt); bus 1912 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.f2rxdata++; bus 1913 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 1919 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 1920 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_rxfail(bus, true, bus 1922 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 1928 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c memcpy(pkt->data, bus->rxhdr, head_read); bus 1931 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c memcpy(bus->rxhdr, pkt->data, SDPCM_HDRLEN); bus 1933 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 1934 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (brcmf_sdio_hdparse(bus, bus->rxhdr, &rd_new, bus 1937 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_rxfail(bus, true, true); bus 1938 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 1942 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.rx_readahead_cnt++; bus 1948 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_rxfail(bus, true, true); bus 1949 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 1953 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 1961 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->rxhdr, SDPCM_HDRLEN, bus 1969 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 1970 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_rxfail(bus, false, true); bus 1971 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 1982 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (SDPCM_GLOMDESC(&bus->rxhdr[SDPCM_HWHDR_LEN])) { bus 1990 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->glomd = pkt; bus 1994 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 1995 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_rxfail(bus, false, false); bus 1996 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 2013 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_rx_event(bus->sdiodev->dev, pkt); bus 2015 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_rx_frame(bus->sdiodev->dev, pkt, bus 2032 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->rxskip) bus 2034 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->rx_seq = rd->seq_num; bus 2040 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_wait_event_wakeup(struct brcmf_sdio *bus) bus 2042 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c wake_up_interruptible(&bus->ctrl_wait); bus 2046 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_txpkt_hdalign(struct brcmf_sdio *bus, struct sk_buff *pkt) bus 2055 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c head_pad = ((unsigned long)dat_buf % bus->head_align); bus 2058 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c stats = &bus->sdiodev->bus_if->stats; bus 2069 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c memset(dat_buf, 0, head_pad + bus->tx_hdrlen); bus 2082 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_txpkt_prep_sg(struct brcmf_sdio *bus, bus 2093 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdiodev = bus->sdiodev; bus 2096 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c WARN_ON(blksize % bus->sgentry_align); bus 2101 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c tail_chop = pkt->len % bus->sgentry_align; bus 2103 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c tail_pad = bus->sgentry_align - tail_chop; bus 2109 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->head_align); bus 2112 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c ret = brcmf_sdio_txpkt_hdalign(bus, pkt_pad); bus 2151 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_txpkt_prep(struct brcmf_sdio *bus, struct sk_buff_head *pktq, bus 2160 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c txseq = bus->tx_seq; bus 2172 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c ret = brcmf_sdio_txpkt_hdalign(bus, pkt_next); bus 2177 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c memset(pkt_next->data + bus->tx_hdrlen, 0, head_pad); bus 2183 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->txglom && pktq->qlen > 1) { bus 2184 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c ret = brcmf_sdio_txpkt_prep_sg(bus, pktq, bus 2193 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c hd_info.dat_offset = head_pad + bus->tx_hdrlen; bus 2197 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_hdpack(bus, pkt_next->data, &hd_info); bus 2206 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c head_pad + bus->tx_hdrlen, bus 2212 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->txglom) bus 2227 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_txpkt_postp(struct brcmf_sdio *bus, struct sk_buff_head *pktq) bus 2246 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c hdr = pkt_next->data + bus->tx_hdrlen - SDPCM_SWHDR_LEN; bus 2251 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->txglom) { bus 2261 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_txpkt(struct brcmf_sdio *bus, struct sk_buff_head *pktq, bus 2269 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c ret = brcmf_sdio_txpkt_prep(bus, pktq, chan); bus 2273 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 2274 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c ret = brcmf_sdiod_send_pkt(bus->sdiodev, pktq); bus 2275 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.f2txdata++; bus 2278 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_txfail(bus); bus 2280 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 2283 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_txpkt_postp(bus, pktq); bus 2285 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->tx_seq = (bus->tx_seq + pktq->qlen) % SDPCM_SEQ_WRAP; bus 2288 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_proto_bcdc_txcomplete(bus->sdiodev->dev, pkt_next, bus 2294 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static uint brcmf_sdio_sendfromq(struct brcmf_sdio *bus, uint maxframes) bus 2298 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c u32 intstat_addr = bus->sdio_core->base + SD_REG(intstatus); bus 2306 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c tx_prec_map = ~bus->flowcontrol; bus 2309 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c for (cnt = 0; (cnt < maxframes) && data_ok(bus);) { bus 2311 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->txglom) bus 2312 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c pkt_num = min_t(u8, bus->tx_max - bus->tx_seq, bus 2313 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdiodev->txglomsz); bus 2315 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmu_pktq_mlen(&bus->txq, ~bus->flowcontrol)); bus 2317 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c spin_lock_bh(&bus->txq_lock); bus 2319 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c pkt = brcmu_pktq_mdeq(&bus->txq, tx_prec_map, bus 2325 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c spin_unlock_bh(&bus->txq_lock); bus 2329 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c ret = brcmf_sdio_txpkt(bus, &pktq, SDPCM_DATA_CHANNEL); bus 2334 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!bus->intr) { bus 2336 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 2337 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c intstatus = brcmf_sdiod_readl(bus->sdiodev, bus 2339 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 2341 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.f2txdata++; bus 2344 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (intstatus & bus->hostintmask) bus 2345 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c atomic_set(&bus->ipend, 1); bus 2350 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if ((bus->sdiodev->state == BRCMF_SDIOD_DATA) && bus 2351 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->txoff && (pktq_len(&bus->txq) < TXLOW)) { bus 2352 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->txoff = false; bus 2353 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_proto_bcdc_txflowblock(bus->sdiodev->dev, false); bus 2359 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_tx_ctrlframe(struct brcmf_sdio *bus, u8 *frame, u16 len) bus 2370 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c frame -= bus->tx_hdrlen; bus 2371 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c len += bus->tx_hdrlen; bus 2374 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c doff = ((unsigned long)frame % bus->head_align); bus 2378 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c memset(frame + bus->tx_hdrlen, 0, doff); bus 2383 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->roundup && bus->blocksize && (len > bus->blocksize)) { bus 2384 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c pad = bus->blocksize - (len % bus->blocksize); bus 2385 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if ((pad > bus->roundup) || (pad >= bus->blocksize)) bus 2387 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c } else if (len % bus->head_align) { bus 2388 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c pad = bus->head_align - (len % bus->head_align); bus 2394 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c hd_info.dat_offset = doff + bus->tx_hdrlen; bus 2395 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c hd_info.seq_num = bus->tx_seq; bus 2398 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_hdpack(bus, frame, &hd_info); bus 2400 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->txglom) bus 2410 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c ret = brcmf_sdiod_send_buf(bus->sdiodev, frame, len); bus 2413 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_txfail(bus); bus 2415 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->tx_seq = (bus->tx_seq + 1) % SDPCM_SEQ_WRAP; bus 2433 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_sdio *bus = sdiodev->bus; bus 2434 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_core *core = bus->sdio_core; bus 2441 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->watchdog_tsk) { bus 2442 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c send_sig(SIGTERM, bus->watchdog_tsk, 1); bus 2443 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c kthread_stop(bus->watchdog_tsk); bus 2444 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->watchdog_tsk = NULL; bus 2451 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_bus_sleep(bus, false, false); bus 2457 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c local_hostintmask = bus->hostintmask; bus 2458 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->hostintmask = 0; bus 2465 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bpreq |= brcmf_chip_is_ulp(bus->ci) ? bus 2486 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmu_pktq_flush(&bus->txq, true, NULL, NULL); bus 2489 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmu_pkt_buf_free_skb(bus->glomd); bus 2490 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_free_glom(bus); bus 2493 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c spin_lock_bh(&bus->rxctl_lock); bus 2494 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->rxlen = 0; bus 2495 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c spin_unlock_bh(&bus->rxctl_lock); bus 2496 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_dcmd_resp_wake(bus); bus 2499 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->rxskip = false; bus 2500 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->tx_seq = bus->rx_seq = 0; bus 2503 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static inline void brcmf_sdio_clrintr(struct brcmf_sdio *bus) bus 2508 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdiodev = bus->sdiodev; bus 2511 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!sdiodev->irq_en && !atomic_read(&bus->ipend)) { bus 2512 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c enable_irq(sdiodev->settings->bus.sdio.oob_irq_nr); bus 2519 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_intr_rstatus(struct brcmf_sdio *bus) bus 2521 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_core *core = bus->sdio_core; bus 2528 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c val = brcmf_sdiod_readl(bus->sdiodev, addr, &ret); bus 2529 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.f1regdata++; bus 2533 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c val &= bus->hostintmask; bus 2534 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c atomic_set(&bus->fcstate, !!(val & I_HMB_FC_STATE)); bus 2538 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_writel(bus->sdiodev, addr, val, &ret); bus 2539 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.f1regdata++; bus 2540 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c atomic_or(val, &bus->intstatus); bus 2546 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static void brcmf_sdio_dpc(struct brcmf_sdio *bus) bus 2548 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_sdio_dev *sdiod = bus->sdiodev; bus 2550 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c u32 intstat_addr = bus->sdio_core->base + SD_REG(intstatus); bus 2552 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c uint txlimit = bus->txbound; /* Tx frames to send before resched */ bus 2558 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 2561 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!bus->sr_enabled && bus->clkstate == CLK_PENDING) { bus 2566 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c devctl = brcmf_sdiod_readb(bus->sdiodev, SBSDIO_DEVICE_CTL, bus 2571 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c clkctl = brcmf_sdiod_readb(bus->sdiodev, bus 2578 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c devctl = brcmf_sdiod_readb(bus->sdiodev, bus 2581 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_writeb(bus->sdiodev, bus 2583 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->clkstate = CLK_AVAIL; bus 2588 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_bus_sleep(bus, false, true); bus 2591 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (atomic_read(&bus->ipend) > 0) { bus 2592 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c atomic_set(&bus->ipend, 0); bus 2593 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c err = brcmf_sdio_intr_rstatus(bus); bus 2597 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c intstatus = atomic_xchg(&bus->intstatus, 0); bus 2609 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.f1regdata += 2; bus 2610 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c atomic_set(&bus->fcstate, bus 2612 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c intstatus |= (newstatus & bus->hostintmask); bus 2618 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c intstatus |= brcmf_sdio_hostmail(bus); bus 2621 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 2646 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->rxskip) bus 2650 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if ((intstatus & I_HMB_FRAME_IND) && (bus->clkstate == CLK_AVAIL)) { bus 2651 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_readframes(bus, bus->rxbound); bus 2652 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!bus->rxpending) bus 2658 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c atomic_or(intstatus, &bus->intstatus); bus 2660 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_clrintr(bus); bus 2662 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->ctrl_frame_stat && (bus->clkstate == CLK_AVAIL) && bus 2663 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c data_ok(bus)) { bus 2664 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 2665 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->ctrl_frame_stat) { bus 2666 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c err = brcmf_sdio_tx_ctrlframe(bus, bus->ctrl_frame_buf, bus 2667 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->ctrl_frame_len); bus 2668 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->ctrl_frame_err = err; bus 2670 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->ctrl_frame_stat = false; bus 2672 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 2673 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_wait_event_wakeup(bus); bus 2676 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if ((bus->clkstate == CLK_AVAIL) && !atomic_read(&bus->fcstate) && bus 2677 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmu_pktq_mlen(&bus->txq, ~bus->flowcontrol) && txlimit && bus 2678 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c data_ok(bus)) { bus 2679 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c framecnt = bus->rxpending ? min(txlimit, bus->txminmax) : bus 2681 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_sendfromq(bus, framecnt); bus 2684 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if ((bus->sdiodev->state != BRCMF_SDIOD_DATA) || (err != 0)) { bus 2686 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c atomic_set(&bus->intstatus, 0); bus 2687 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->ctrl_frame_stat) { bus 2688 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 2689 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->ctrl_frame_stat) { bus 2690 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->ctrl_frame_err = -ENODEV; bus 2692 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->ctrl_frame_stat = false; bus 2693 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_wait_event_wakeup(bus); bus 2695 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 2697 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c } else if (atomic_read(&bus->intstatus) || bus 2698 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c atomic_read(&bus->ipend) > 0 || bus 2699 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c (!atomic_read(&bus->fcstate) && bus 2700 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmu_pktq_mlen(&bus->txq, ~bus->flowcontrol) && bus 2701 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c data_ok(bus))) { bus 2702 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->dpc_triggered = true; bus 2710 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_sdio *bus = sdiodev->bus; bus 2712 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c return &bus->txq; bus 2763 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_sdio *bus = sdiodev->bus; bus 2770 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c skb_push(pkt, bus->tx_hdrlen); bus 2777 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_dbg(TRACE, "deferring pktq len %d\n", pktq_len(&bus->txq)); bus 2778 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.fcqueued++; bus 2781 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c spin_lock_bh(&bus->txq_lock); bus 2784 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!brcmf_sdio_prec_enq(&bus->txq, pkt, prec)) { bus 2785 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c skb_pull(pkt, bus->tx_hdrlen); bus 2792 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (pktq_len(&bus->txq) >= TXHI) { bus 2793 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->txoff = true; bus 2796 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c spin_unlock_bh(&bus->txq_lock); bus 2799 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (pktq_plen(&bus->txq, prec) > qcount[prec]) bus 2800 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c qcount[prec] = pktq_plen(&bus->txq, prec); bus 2803 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_trigger_dpc(bus); bus 2810 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_readconsole(struct brcmf_sdio *bus) bus 2812 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_console *c = &bus->console; bus 2818 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->console_addr == 0) bus 2822 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c addr = bus->console_addr + offsetof(struct rte_console, log_le); bus 2823 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rv = brcmf_sdiod_ramrw(bus->sdiodev, false, addr, (u8 *)&c->log_le, bus 2849 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rv = brcmf_sdiod_ramrw(bus->sdiodev, false, addr, c->buf, c->bufsize); bus 2892 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_sdio *bus = sdiodev->bus; bus 2900 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->ctrl_frame_buf = msg; bus 2901 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->ctrl_frame_len = msglen; bus 2903 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->ctrl_frame_stat = true; bus 2905 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_trigger_dpc(bus); bus 2906 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c wait_event_interruptible_timeout(bus->ctrl_wait, !bus->ctrl_frame_stat, bus 2909 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->ctrl_frame_stat) { bus 2910 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 2911 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->ctrl_frame_stat) { bus 2913 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->ctrl_frame_stat = false; bus 2916 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 2920 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->ctrl_frame_err); bus 2922 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c ret = bus->ctrl_frame_err; bus 2926 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.tx_ctlerrs++; bus 2928 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.tx_ctlpkts++; bus 2934 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_dump_console(struct seq_file *seq, struct brcmf_sdio *bus, bus 2944 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rv = brcmf_sdiod_ramrw(bus->sdiodev, false, addr, bus 2951 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rv = brcmf_sdiod_ramrw(bus->sdiodev, false, addr, bus 2958 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rv = brcmf_sdiod_ramrw(bus->sdiodev, false, addr, bus 2973 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rv = brcmf_sdiod_ramrw(bus->sdiodev, false, console_ptr, (u8 *)conbuf, bus 2991 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_trap_info(struct seq_file *seq, struct brcmf_sdio *bus, bus 3002 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c error = brcmf_sdiod_ramrw(bus->sdiodev, false, sh->trap_addr, (u8 *)&tr, bus 3039 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_assert_info(struct seq_file *seq, struct brcmf_sdio *bus, bus 3054 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 3056 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c error = brcmf_sdiod_ramrw(bus->sdiodev, false, bus 3062 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c error = brcmf_sdiod_ramrw(bus->sdiodev, false, bus 3067 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 3074 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_checkdied(struct brcmf_sdio *bus) bus 3079 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c error = brcmf_sdio_readshared(bus, &sh); bus 3091 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_trap_info(NULL, bus, &sh); bus 3097 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_died_dump(struct seq_file *seq, struct brcmf_sdio *bus) bus 3102 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c error = brcmf_sdio_readshared(bus, &sh); bus 3106 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c error = brcmf_sdio_assert_info(seq, bus, &sh); bus 3110 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c error = brcmf_sdio_trap_info(seq, bus, &sh); bus 3114 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c error = brcmf_sdio_dump_console(seq, bus, &sh); bus 3123 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_sdio *bus = bus_if->bus_priv.sdio->bus; bus 3125 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c return brcmf_sdio_died_dump(seq, bus); bus 3132 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_sdio_count *sdcnt = &sdiodev->bus->sdcnt; bus 3172 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_sdio *bus = sdiodev->bus; bus 3178 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->console_interval = BRCMF_CONSOLE; bus 3184 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c &bus->console_interval); bus 3187 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_checkdied(struct brcmf_sdio *bus) bus 3206 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_sdio *bus = sdiodev->bus; bus 3213 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c timeleft = brcmf_sdio_dcmd_resp_wait(bus, &bus->rxlen, &pending); bus 3215 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c spin_lock_bh(&bus->rxctl_lock); bus 3216 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c rxlen = bus->rxlen; bus 3217 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c memcpy(msg, bus->rxctl, min(msglen, rxlen)); bus 3218 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->rxctl = NULL; bus 3219 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c buf = bus->rxctl_orig; bus 3220 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->rxctl_orig = NULL; bus 3221 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->rxlen = 0; bus 3222 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c spin_unlock_bh(&bus->rxctl_lock); bus 3230 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_checkdied(bus); bus 3236 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_checkdied(bus); bus 3240 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.rx_ctlpkts++; bus 3242 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.rx_ctlerrs++; bus 3301 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_download_code_file(struct brcmf_sdio *bus, bus 3308 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c err = brcmf_sdiod_ramrw(bus->sdiodev, true, bus->ci->rambase, bus 3312 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c err, (int)fw->size, bus->ci->rambase); bus 3313 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c else if (!brcmf_sdio_verifymemory(bus->sdiodev, bus->ci->rambase, bus 3320 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_download_nvram(struct brcmf_sdio *bus, bus 3328 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c address = bus->ci->ramsize - varsz + bus->ci->rambase; bus 3329 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c err = brcmf_sdiod_ramrw(bus->sdiodev, true, address, vars, varsz); bus 3333 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c else if (!brcmf_sdio_verifymemory(bus->sdiodev, address, vars, varsz)) bus 3339 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_download_firmware(struct brcmf_sdio *bus, bus 3346 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 3347 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_clkctl(bus, CLK_AVAIL, false); bus 3352 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bcmerror = brcmf_sdio_download_code_file(bus, fw); bus 3360 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bcmerror = brcmf_sdio_download_nvram(bus, nvram, nvlen); bus 3368 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!brcmf_chip_set_active(bus->ci, rstvec)) { bus 3374 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_clkctl(bus, CLK_SDONLY, false); bus 3375 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 3379 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static bool brcmf_sdio_aos_no_decode(struct brcmf_sdio *bus) bus 3381 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->ci->chip == CY_CC_43012_CHIP_ID) bus 3387 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static void brcmf_sdio_sr_init(struct brcmf_sdio *bus) bus 3397 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (brcmf_chip_is_ulp(bus->ci)) { bus 3405 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (brcmf_sdio_aos_no_decode(bus)) { bus 3412 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c val = brcmf_sdiod_readb(bus->sdiodev, SBSDIO_FUNC1_WAKEUPCTRL, &err); bus 3418 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_writeb(bus->sdiodev, SBSDIO_FUNC1_WAKEUPCTRL, val, &err); bus 3425 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_func0_wb(bus->sdiodev, SDIO_CCCR_BRCM_CARDCAP, bus 3433 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_writeb(bus->sdiodev, SBSDIO_FUNC1_CHIPCLKCSR, bus 3441 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sr_enabled = true; bus 3446 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static int brcmf_sdio_kso_init(struct brcmf_sdio *bus) bus 3448 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_core *core = bus->sdio_core; bus 3458 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c val = brcmf_sdiod_readb(bus->sdiodev, SBSDIO_FUNC1_SLEEPCSR, &err); bus 3467 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_writeb(bus->sdiodev, SBSDIO_FUNC1_SLEEPCSR, bus 3483 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_sdio *bus = sdiodev->bus; bus 3484 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_core *core = bus->sdio_core; bus 3493 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus_if->maxctl += bus->roundup; bus 3495 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c value += bus->head_align; bus 3496 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->rxbuf = kmalloc(value, GFP_ATOMIC); bus 3497 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->rxbuf) bus 3498 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->rxblen = value; bus 3511 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c value = sdiodev->settings->bus.sdio.sd_sgentry_align; bus 3521 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->tx_hdrlen = SDPCM_HWHDR_LEN + SDPCM_SWHDR_LEN; bus 3523 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->txglom = false; bus 3525 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c err = brcmf_iovar_data_set(bus->sdiodev->dev, "bus:rxglom", bus 3531 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->txglom = true; bus 3532 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->tx_hdrlen += SDPCM_HWEXT_LEN; bus 3535 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_bus_add_txhdrlen(bus->sdiodev->dev, bus->tx_hdrlen); bus 3545 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_sdio *bus = sdiodev->bus; bus 3547 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c return bus->ci->ramsize - bus->ci->srsize; bus 3555 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_sdio *bus = sdiodev->bus; bus 3561 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_dbg(INFO, "dump at 0x%08x: size=%zu\n", bus->ci->rambase, bus 3564 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c address = bus->ci->rambase; bus 3586 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c void brcmf_sdio_trigger_dpc(struct brcmf_sdio *bus) bus 3588 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!bus->dpc_triggered) { bus 3589 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->dpc_triggered = true; bus 3590 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c queue_work(bus->brcmf_wq, &bus->datawork); bus 3594 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c void brcmf_sdio_isr(struct brcmf_sdio *bus) bus 3598 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!bus) { bus 3604 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.intrcount++; bus 3606 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c atomic_set(&bus->ipend, 1); bus 3608 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (brcmf_sdio_intr_rstatus(bus)) { bus 3613 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!bus->intr) bus 3616 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->dpc_triggered = true; bus 3617 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c queue_work(bus->brcmf_wq, &bus->datawork); bus 3620 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c static void brcmf_sdio_bus_watchdog(struct brcmf_sdio *bus) bus 3625 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!bus->sr_enabled && bus 3626 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->poll && (++bus->polltick >= bus->pollrate)) { bus 3630 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->polltick = 0; bus 3633 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!bus->intr || bus 3634 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c (bus->sdcnt.intrcount == bus->sdcnt.lastintrs)) { bus 3636 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!bus->dpc_triggered) { bus 3639 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 3640 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c devpend = brcmf_sdiod_func0_rb(bus->sdiodev, bus 3642 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 3650 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.pollcnt++; bus 3651 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c atomic_set(&bus->ipend, 1); bus 3653 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->dpc_triggered = true; bus 3654 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c queue_work(bus->brcmf_wq, &bus->datawork); bus 3659 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.lastintrs = bus->sdcnt.intrcount; bus 3663 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->sdiodev->state == BRCMF_SDIOD_DATA && BRCMF_FWCON_ON() && bus 3664 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->console_interval != 0) { bus 3665 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->console.count += jiffies_to_msecs(BRCMF_WD_POLL); bus 3666 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->console.count >= bus->console_interval) { bus 3667 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->console.count -= bus->console_interval; bus 3668 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 3670 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_bus_sleep(bus, false, false); bus 3671 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (brcmf_sdio_readconsole(bus) < 0) bus 3673 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->console_interval = 0; bus 3674 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 3680 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!bus->dpc_triggered) { bus 3682 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if ((!bus->dpc_running) && (bus->idletime > 0) && bus 3683 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c (bus->clkstate == CLK_AVAIL)) { bus 3684 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->idlecount++; bus 3685 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->idlecount > bus->idletime) { bus 3687 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 3688 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_wd_timer(bus, false); bus 3689 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->idlecount = 0; bus 3690 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_bus_sleep(bus, true, false); bus 3691 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 3694 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->idlecount = 0; bus 3697 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->idlecount = 0; bus 3703 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_sdio *bus = container_of(work, struct brcmf_sdio, bus 3706 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->dpc_running = true; bus 3708 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c while (READ_ONCE(bus->dpc_triggered)) { bus 3709 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->dpc_triggered = false; bus 3710 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_dpc(bus); bus 3711 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->idlecount = 0; bus 3713 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->dpc_running = false; bus 3714 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (brcmf_sdiod_freezing(bus->sdiodev)) { bus 3715 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_change_state(bus->sdiodev, BRCMF_SDIOD_DOWN); bus 3716 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_try_freeze(bus->sdiodev); bus 3717 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_change_state(bus->sdiodev, BRCMF_SDIOD_DATA); bus 3840 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_core *core = sdiodev->bus->sdio_core; bus 3895 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_probe_attach(struct brcmf_sdio *bus) bus 3904 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdiodev = bus->sdiodev; bus 3927 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->ci = brcmf_chip_attach(sdiodev, &brcmf_sdio_buscore_ops); bus 3928 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (IS_ERR(bus->ci)) { bus 3930 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->ci = NULL; bus 3935 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdio_core = brcmf_chip_get_core(bus->ci, BCMA_CORE_SDIO_DEV); bus 3936 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!bus->sdio_core) bus 3940 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdiodev->cc_core = brcmf_chip_get_core(bus->ci, BCMA_CORE_CHIPCOMMON); bus 3946 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->ci->chip, bus 3947 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->ci->chiprev); bus 3955 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->head_align = ALIGNMENT; bus 3956 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sgentry_align = ALIGNMENT; bus 3957 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (sdiodev->settings->bus.sdio.sd_head_align > ALIGNMENT) bus 3958 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->head_align = sdiodev->settings->bus.sdio.sd_head_align; bus 3959 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (sdiodev->settings->bus.sdio.sd_sgentry_align > ALIGNMENT) bus 3960 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sgentry_align = bus 3961 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdiodev->settings->bus.sdio.sd_sgentry_align; bus 3974 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c (sdiodev->settings->bus.sdio.oob_irq_supported))) bus 3978 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (brcmf_sdio_kso_init(bus)) { bus 3983 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (sdiodev->settings->bus.sdio.drive_strength) bus 3984 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c drivestrength = sdiodev->settings->bus.sdio.drive_strength; bus 3987 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_drivestrengthinit(sdiodev, bus->ci, drivestrength); bus 4001 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c reg_addr = CORE_CC_REG(brcmf_chip_get_pmu(bus->ci)->base, pmucontrol); bus 4014 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmu_pktq_init(&bus->txq, (PRIOMASK + 1), TXQLEN); bus 4017 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->hdrbuf = kzalloc(MAX_HDR_READ + bus->head_align, GFP_KERNEL); bus 4018 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!bus->hdrbuf) bus 4021 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->rxhdr = (u8 *) roundup((unsigned long)&bus->hdrbuf[0], bus 4022 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->head_align); bus 4025 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->intr = true; bus 4026 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->poll = false; bus 4027 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->poll) bus 4028 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->pollrate = 1; bus 4040 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_sdio *bus = (struct brcmf_sdio *)data; bus 4045 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_freezer_count(bus->sdiodev); bus 4049 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_freezer_uncount(bus->sdiodev); bus 4050 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c wait = wait_for_completion_interruptible(&bus->watchdog_wait); bus 4051 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_freezer_count(bus->sdiodev); bus 4052 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_try_freeze(bus->sdiodev); bus 4054 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_bus_watchdog(bus); bus 4056 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.tickcnt++; bus 4057 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c reinit_completion(&bus->watchdog_wait); bus 4067 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_sdio *bus = from_timer(bus, t, timer); bus 4069 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->watchdog_tsk) { bus 4070 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c complete(&bus->watchdog_wait); bus 4072 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->wd_active) bus 4073 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c mod_timer(&bus->timer, bus 4120 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_sdio *bus = sdiod->bus; bus 4121 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_core *core = bus->sdio_core; bus 4139 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->alp_only = true; bus 4140 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c err = brcmf_sdio_download_firmware(bus, code, nvram, nvram_len); bus 4143 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->alp_only = false; bus 4146 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdcnt.tickcnt = 0; bus 4147 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_wd_timer(bus, true); bus 4152 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_clkctl(bus, CLK_AVAIL, false); bus 4153 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->clkstate != CLK_AVAIL) bus 4160 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bpreq |= brcmf_chip_is_ulp(bus->ci) ? bus 4181 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->hostintmask = HOSTINTMASK; bus 4183 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->hostintmask, NULL); bus 4222 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (brcmf_chip_sr_capable(bus->ci)) { bus 4223 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_sr_init(bus); bus 4234 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdiod->bus_if->chip = bus->ci->chip; bus 4235 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdiod->bus_if->chiprev = bus->ci->chiprev; bus 4238 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_change_state(bus->sdiodev, BRCMF_SDIOD_DATA); bus 4247 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_clkctl(bus, CLK_NONE, false); bus 4274 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_checkdied(bus); bus 4284 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_prepare_fw_request(struct brcmf_sdio *bus) bus 4288 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c { ".bin", bus->sdiodev->fw_name }, bus 4289 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c { ".txt", bus->sdiodev->nvram_name }, bus 4292 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c fwreq = brcmf_fw_alloc_request(bus->ci->chip, bus->ci->chiprev, bus 4301 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c fwreq->board_type = bus->sdiodev->settings->board_type; bus 4309 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c struct brcmf_sdio *bus; bus 4316 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus = kzalloc(sizeof(struct brcmf_sdio), GFP_ATOMIC); bus 4317 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!bus) bus 4320 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sdiodev = sdiodev; bus 4321 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdiodev->bus = bus; bus 4322 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c skb_queue_head_init(&bus->glom); bus 4323 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->txbound = BRCMF_TXBOUND; bus 4324 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->rxbound = BRCMF_RXBOUND; bus 4325 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->txminmax = BRCMF_TXMINMAX; bus 4326 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->tx_seq = SDPCM_SEQ_WRAP - 1; bus 4336 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c INIT_WORK(&bus->datawork, brcmf_sdio_dataworker); bus 4337 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->brcmf_wq = wq; bus 4340 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!(brcmf_sdio_probe_attach(bus))) { bus 4345 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c spin_lock_init(&bus->rxctl_lock); bus 4346 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c spin_lock_init(&bus->txq_lock); bus 4347 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c init_waitqueue_head(&bus->ctrl_wait); bus 4348 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c init_waitqueue_head(&bus->dcmd_resp_wait); bus 4351 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c timer_setup(&bus->timer, brcmf_sdio_watchdog, 0); bus 4353 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c init_completion(&bus->watchdog_wait); bus 4354 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->watchdog_tsk = kthread_run(brcmf_sdio_watchdog_thread, bus 4355 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus, "brcmf_wdog/%s", bus 4357 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (IS_ERR(bus->watchdog_tsk)) { bus 4359 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->watchdog_tsk = NULL; bus 4362 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->dpc_triggered = false; bus 4363 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->dpc_running = false; bus 4366 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->tx_hdrlen = SDPCM_HWHDR_LEN + SDPCM_SWHDR_LEN; bus 4369 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->blocksize = bus->sdiodev->func2->cur_blksize; bus 4370 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->roundup = min(max_roundup, bus->blocksize); bus 4372 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 4375 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_disable_func(bus->sdiodev->func2); bus 4377 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->rxflow = false; bus 4380 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_writeb(bus->sdiodev, SBSDIO_FUNC1_CHIPCLKCSR, 0, NULL); bus 4382 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 4385 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->clkstate = CLK_SDONLY; bus 4386 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->idletime = BRCMF_IDLE_INTERVAL; bus 4387 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->idleclock = BRCMF_IDLE_ACTIVE; bus 4390 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->sr_enabled = false; bus 4394 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c fwreq = brcmf_sdio_prepare_fw_request(bus); bus 4408 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c return bus; bus 4411 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_remove(bus); bus 4416 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c void brcmf_sdio_remove(struct brcmf_sdio *bus) bus 4420 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus) { bus 4422 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->watchdog_tsk) { bus 4423 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c send_sig(SIGTERM, bus->watchdog_tsk, 1); bus 4424 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c kthread_stop(bus->watchdog_tsk); bus 4425 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->watchdog_tsk = NULL; bus 4429 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdiod_intr_unregister(bus->sdiodev); bus 4431 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_detach(bus->sdiodev->dev); bus 4433 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c cancel_work_sync(&bus->datawork); bus 4434 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->brcmf_wq) bus 4435 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c destroy_workqueue(bus->brcmf_wq); bus 4437 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->ci) { bus 4438 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->sdiodev->state != BRCMF_SDIOD_NOMEDIUM) { bus 4439 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 4440 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_wd_timer(bus, false); bus 4441 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_clkctl(bus, CLK_AVAIL, false); bus 4447 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_chip_set_passive(bus->ci); bus 4448 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_clkctl(bus, CLK_NONE, false); bus 4449 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 4451 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_chip_detach(bus->ci); bus 4453 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->sdiodev->settings) bus 4454 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_release_module_param(bus->sdiodev->settings); bus 4456 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c kfree(bus->rxbuf); bus 4457 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c kfree(bus->hdrbuf); bus 4458 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c kfree(bus); bus 4464 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c void brcmf_sdio_wd_timer(struct brcmf_sdio *bus, bool active) bus 4467 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!active && bus->wd_active) { bus 4468 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c del_timer_sync(&bus->timer); bus 4469 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->wd_active = false; bus 4474 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->sdiodev->state != BRCMF_SDIOD_DATA) bus 4478 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (!bus->wd_active) { bus 4482 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->timer.expires = jiffies + BRCMF_WD_POLL; bus 4483 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c add_timer(&bus->timer); bus 4484 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->wd_active = true; bus 4487 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c mod_timer(&bus->timer, jiffies + BRCMF_WD_POLL); bus 4492 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c int brcmf_sdio_sleep(struct brcmf_sdio *bus, bool sleep) bus 4496 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_claim_host(bus->sdiodev->func1); bus 4497 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c ret = brcmf_sdio_bus_sleep(bus, sleep, false); bus 4498 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c sdio_release_host(bus->sdiodev->func1); bus 173 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.h struct brcmf_sdio *bus; bus 372 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.h void brcmf_sdio_remove(struct brcmf_sdio *bus); bus 373 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.h void brcmf_sdio_isr(struct brcmf_sdio *bus); bus 375 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.h void brcmf_sdio_wd_timer(struct brcmf_sdio *bus, bool active); bus 377 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.h int brcmf_sdio_sleep(struct brcmf_sdio *bus, bool sleep); bus 378 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.h void brcmf_sdio_trigger_dpc(struct brcmf_sdio *bus); bus 15 drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.c void __brcmf_err(struct brcmf_bus *bus, const char *func, const char *fmt, ...) bus 24 drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.c if (bus) bus 25 drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.c dev_err(bus->dev, "%s: %pV", func, &vaf); bus 562 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_bus *bcmf_bus = devinfo->bus_pub.bus; bus 1123 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_bus *bus = dev_get_drvdata(dev); bus 1129 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c fwreq = brcmf_fw_alloc_request(bus->chip, bus->chiprev, bus 1155 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_bus *bus = dev_get_drvdata(dev); bus 1156 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_usbdev_info *devinfo = bus->bus_priv.usb->devinfo; bus 1222 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct brcmf_bus *bus = NULL; bus 1233 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c bus = kzalloc(sizeof(struct brcmf_bus), GFP_ATOMIC); bus 1234 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c if (!bus) { bus 1239 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c bus->dev = dev; bus 1240 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c bus_pub->bus = bus; bus 1241 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c bus->bus_priv.usb = bus_pub; bus 1242 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c dev_set_drvdata(dev, bus); bus 1243 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c bus->ops = &brcmf_usb_bus_ops; bus 1244 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c bus->proto_type = BRCMF_PROTO_BCDC; bus 1245 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c bus->always_use_fws_queue = true; bus 1247 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c bus->wowl_supported = true; bus 1250 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c devinfo->settings = brcmf_get_module_param(bus->dev, BRCMF_BUSTYPE_USB, bus 1269 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c bus->chip = bus_pub->devid; bus 1270 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c bus->chiprev = bus_pub->chiprev; bus 1291 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c kfree(bus); bus 1305 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c kfree(devinfo->bus_pub.bus); bus 24 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.h struct brcmf_bus *bus; bus 447 drivers/net/wireless/broadcom/brcm80211/brcmsmac/aiutils.c if (cc->bus->nr_cores == 0) bus 112 drivers/net/wireless/broadcom/brcm80211/brcmsmac/antsel.c struct ssb_sprom *sprom = &wlc->hw->d11core->bus->sprom; bus 330 drivers/net/wireless/broadcom/brcm80211/brcmsmac/channel.c struct ssb_sprom *sprom = &wlc->hw->d11core->bus->sprom; bus 70 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.c struct bcma_bus *bus = core->bus; bus 88 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.c bus->chipinfo.id, bus->chipinfo.rev, bus->chipinfo.pkg, bus 89 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.c core->id.rev, bus->boardinfo.type, bus->boardinfo.vendor, bus 57 drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c struct bcma_drv_cc *cc_drv = &wl->wlc->hw->d11core->bus->drv_cc; bus 59 drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c struct ssb_sprom *sprom = &wl->wlc->hw->d11core->bus->sprom; bus 458 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c bcma_core_pci_power_save(wl->wlc->hw->d11core->bus, true); bus 481 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c bcma_core_pci_power_save(wl->wlc->hw->d11core->bus, false); bus 1905 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c struct ssb_sprom *sprom = &wlc_hw->d11core->bus->sprom; bus 2257 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c bcma_chipco_gpio_control(&wlc_hw->d11core->bus->drv_cc, gm, gc); bus 4413 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c struct pci_dev *pcidev = core->bus->host_pci; bus 4414 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c struct ssb_sprom *sprom = &core->bus->sprom; bus 4416 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (core->bus->hosttype == BCMA_HOSTTYPE_PCI) bus 4422 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c core->bus->boardinfo.vendor, bus 4423 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c core->bus->boardinfo.type); bus 4440 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_hw->sih = ai_attach(core->bus); bus 4456 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (core->bus->hosttype == BCMA_HOSTTYPE_PCI) { bus 4460 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_hw->vendorid = core->bus->boardinfo.vendor; bus 4461 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_hw->deviceid = core->bus->boardinfo.type; bus 4672 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c bcma_host_pci_down(wlc_hw->d11core->bus); bus 4715 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c struct ssb_sprom *sprom = &wlc->hw->d11core->bus->sprom; bus 4963 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c bcma_host_pci_irq_ctl(wlc_hw->d11core->bus, wlc_hw->d11core, bus 4973 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c bcma_host_pci_down(wlc_hw->d11core->bus); bus 4978 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c bcma_host_pci_up(wlc_hw->d11core->bus); bus 5175 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c bcma_host_pci_down(wlc_hw->d11core->bus); bus 5630 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c struct pci_dev *pcidev = core->bus->host_pci; bus 5654 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c struct bcma_chipinfo *chipinfo = &core->bus->chipinfo; bus 5665 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c switch (core->bus->hosttype) { bus 5671 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c pr_err("unknown host type: %i\n", core->bus->hosttype); bus 201 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if ((pi->d11core->bus->hosttype == BCMA_HOSTTYPE_PCI) && bus 288 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if ((pi->d11core->bus->hosttype == BCMA_HOSTTYPE_PCI) && bus 2895 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_chipco_gpio_control(&pi->d11core->bus->drv_cc, bus 2897 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_chipco_gpio_out(&pi->d11core->bus->drv_cc, bus 2899 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_chipco_gpio_outen(&pi->d11core->bus->drv_cc, bus 2906 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_chipco_gpio_out(&pi->d11core->bus->drv_cc, bus 2908 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_chipco_gpio_outen(&pi->d11core->bus->drv_cc, bus 2910 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c bcma_chipco_gpio_control(&pi->d11core->bus->drv_cc, bus 1622 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_chipco_pll_write(&pi->d11core->bus->drv_cc, 0x2, bus 1624 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_chipco_pll_maskset(&pi->d11core->bus->drv_cc, 0x3, bus 1626 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_chipco_pll_write(&pi->d11core->bus->drv_cc, 0x4, bus 1629 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_cc_set32(&pi->d11core->bus->drv_cc, BCMA_CC_PMU_CTL, bus 1638 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_chipco_pll_write(&pi->d11core->bus->drv_cc, 0x2, bus 1640 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_chipco_pll_maskset(&pi->d11core->bus->drv_cc, 0x3, bus 1642 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_chipco_pll_write(&pi->d11core->bus->drv_cc, 0x4, bus 1645 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_cc_set32(&pi->d11core->bus->drv_cc, BCMA_CC_PMU_CTL, bus 4839 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_chipco_regctl_maskset(&pi->d11core->bus->drv_cc, 0, ~0xf, 0x9); bus 4841 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c bcma_chipco_chipctl_maskset(&pi->d11core->bus->drv_cc, 0, 0x0, bus 4867 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c struct ssb_sprom *sprom = &pi->d11core->bus->sprom; bus 5055 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c pi->xtalfreq = bcma_chipco_get_alp_clock(&pi->d11core->bus->drv_cc); bus 14378 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c struct ssb_sprom *sprom = &pi->d11core->bus->sprom; bus 14551 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c struct ssb_sprom *sprom = &pi->d11core->bus->sprom; bus 19226 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_cc_set32(&pi->d11core->bus->drv_cc, bus 19231 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_chipco_chipctl_maskset(&pi->d11core->bus->drv_cc, 1, bus 21124 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_pmu_spuravoid_pllupdate(&pi->d11core->bus->drv_cc, bus 21128 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_pmu_spuravoid_pllupdate(&pi->d11core->bus->drv_cc, bus 21286 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c bcma_chipco_gpio_control(&pi->d11core->bus->drv_cc, mask, mask); bus 375 drivers/net/wireless/broadcom/brcm80211/brcmsmac/stf.c struct ssb_sprom *sprom = &wlc->hw->d11core->bus->sprom; bus 934 drivers/net/wireless/intel/iwlwifi/fw/dbg.c strncpy(dump_info->bus_human_readable, fwrt->dev->bus->name, bus 756 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c mvm->fwrt.dev->bus->name); bus 146 drivers/net/wireless/intel/iwlwifi/pcie/trans.c if (!pdev->bus->self) bus 149 drivers/net/wireless/intel/iwlwifi/pcie/trans.c pdev = pdev->bus->self; bus 12 drivers/net/wireless/mediatek/mt76/debugfs.c dev->bus->wr(dev, dev->debugfs_reg, val); bus 21 drivers/net/wireless/mediatek/mt76/debugfs.c *val = dev->bus->rr(dev, dev->debugfs_reg); bus 94 drivers/net/wireless/mediatek/mt76/mmio.c dev->bus = &mt76_mmio_ops; bus 52 drivers/net/wireless/mediatek/mt76/mt76.h #define mt76_is_usb(dev) ((dev)->mt76.bus->type == MT76_BUS_USB) bus 53 drivers/net/wireless/mediatek/mt76/mt76.h #define mt76_is_mmio(dev) ((dev)->mt76.bus->type == MT76_BUS_MMIO) bus 434 drivers/net/wireless/mediatek/mt76/mt76.h const struct mt76_bus_ops *bus; bus 535 drivers/net/wireless/mediatek/mt76/mt76.h #define __mt76_rr(dev, ...) (dev)->bus->rr((dev), __VA_ARGS__) bus 536 drivers/net/wireless/mediatek/mt76/mt76.h #define __mt76_wr(dev, ...) (dev)->bus->wr((dev), __VA_ARGS__) bus 537 drivers/net/wireless/mediatek/mt76/mt76.h #define __mt76_rmw(dev, ...) (dev)->bus->rmw((dev), __VA_ARGS__) bus 538 drivers/net/wireless/mediatek/mt76/mt76.h #define __mt76_wr_copy(dev, ...) (dev)->bus->write_copy((dev), __VA_ARGS__) bus 539 drivers/net/wireless/mediatek/mt76/mt76.h #define __mt76_rr_copy(dev, ...) (dev)->bus->read_copy((dev), __VA_ARGS__) bus 544 drivers/net/wireless/mediatek/mt76/mt76.h #define mt76_rr(dev, ...) (dev)->mt76.bus->rr(&((dev)->mt76), __VA_ARGS__) bus 545 drivers/net/wireless/mediatek/mt76/mt76.h #define mt76_wr(dev, ...) (dev)->mt76.bus->wr(&((dev)->mt76), __VA_ARGS__) bus 546 drivers/net/wireless/mediatek/mt76/mt76.h #define mt76_rmw(dev, ...) (dev)->mt76.bus->rmw(&((dev)->mt76), __VA_ARGS__) bus 547 drivers/net/wireless/mediatek/mt76/mt76.h #define mt76_wr_copy(dev, ...) (dev)->mt76.bus->write_copy(&((dev)->mt76), __VA_ARGS__) bus 548 drivers/net/wireless/mediatek/mt76/mt76.h #define mt76_rr_copy(dev, ...) (dev)->mt76.bus->read_copy(&((dev)->mt76), __VA_ARGS__) bus 549 drivers/net/wireless/mediatek/mt76/mt76.h #define mt76_wr_rp(dev, ...) (dev)->mt76.bus->wr_rp(&((dev)->mt76), __VA_ARGS__) bus 550 drivers/net/wireless/mediatek/mt76/mt76.h #define mt76_rd_rp(dev, ...) (dev)->mt76.bus->rd_rp(&((dev)->mt76), __VA_ARGS__) bus 516 drivers/net/wireless/mediatek/mt76/mt7603/init.c dev->bus_ops = dev->mt76.bus; bus 525 drivers/net/wireless/mediatek/mt76/mt7603/init.c dev->mt76.bus = bus_ops; bus 152 drivers/net/wireless/mediatek/mt76/mt76x02_mac.h switch (dev->bus->rr(dev, MAC_CSR0)) { bus 10 drivers/net/wireless/mediatek/mt76/pci.c struct pci_dev *parent = pdev->bus->self; bus 242 drivers/net/wireless/mediatek/mt76/usb.c return (!disable_usb_sg && udev->bus->sg_tablesize > 0 && bus 243 drivers/net/wireless/mediatek/mt76/usb.c (udev->bus->no_sg_constraint || bus 969 drivers/net/wireless/mediatek/mt76/usb.c dev->bus = &mt76u_ops; bus 16 drivers/net/wireless/mediatek/mt76/util.c cur = dev->bus->rr(dev, offset) & mask; bus 34 drivers/net/wireless/mediatek/mt76/util.c cur = dev->bus->rr(dev, offset) & mask; bus 61 drivers/net/wireless/quantenna/qtnfmac/bus.h static inline bool qtnf_fw_is_up(struct qtnf_bus *bus) bus 63 drivers/net/wireless/quantenna/qtnfmac/bus.h enum qtnf_fw_state state = bus->fw_state; bus 69 drivers/net/wireless/quantenna/qtnfmac/bus.h static inline bool qtnf_fw_is_attached(struct qtnf_bus *bus) bus 71 drivers/net/wireless/quantenna/qtnfmac/bus.h enum qtnf_fw_state state = bus->fw_state; bus 78 drivers/net/wireless/quantenna/qtnfmac/bus.h static inline void *get_bus_priv(struct qtnf_bus *bus) bus 80 drivers/net/wireless/quantenna/qtnfmac/bus.h if (WARN(!bus, "qtnfmac: invalid bus pointer")) bus 83 drivers/net/wireless/quantenna/qtnfmac/bus.h return &bus->bus_priv; bus 88 drivers/net/wireless/quantenna/qtnfmac/bus.h static inline int qtnf_bus_preinit(struct qtnf_bus *bus) bus 90 drivers/net/wireless/quantenna/qtnfmac/bus.h if (!bus->bus_ops->preinit) bus 92 drivers/net/wireless/quantenna/qtnfmac/bus.h return bus->bus_ops->preinit(bus); bus 95 drivers/net/wireless/quantenna/qtnfmac/bus.h static inline void qtnf_bus_stop(struct qtnf_bus *bus) bus 97 drivers/net/wireless/quantenna/qtnfmac/bus.h if (!bus->bus_ops->stop) bus 99 drivers/net/wireless/quantenna/qtnfmac/bus.h bus->bus_ops->stop(bus); bus 102 drivers/net/wireless/quantenna/qtnfmac/bus.h static inline int qtnf_bus_data_tx(struct qtnf_bus *bus, struct sk_buff *skb) bus 104 drivers/net/wireless/quantenna/qtnfmac/bus.h return bus->bus_ops->data_tx(bus, skb); bus 108 drivers/net/wireless/quantenna/qtnfmac/bus.h qtnf_bus_data_tx_timeout(struct qtnf_bus *bus, struct net_device *ndev) bus 110 drivers/net/wireless/quantenna/qtnfmac/bus.h return bus->bus_ops->data_tx_timeout(bus, ndev); bus 113 drivers/net/wireless/quantenna/qtnfmac/bus.h static inline int qtnf_bus_control_tx(struct qtnf_bus *bus, struct sk_buff *skb) bus 115 drivers/net/wireless/quantenna/qtnfmac/bus.h return bus->bus_ops->control_tx(bus, skb); bus 118 drivers/net/wireless/quantenna/qtnfmac/bus.h static inline void qtnf_bus_data_rx_start(struct qtnf_bus *bus) bus 120 drivers/net/wireless/quantenna/qtnfmac/bus.h return bus->bus_ops->data_rx_start(bus); bus 123 drivers/net/wireless/quantenna/qtnfmac/bus.h static inline void qtnf_bus_data_rx_stop(struct qtnf_bus *bus) bus 125 drivers/net/wireless/quantenna/qtnfmac/bus.h return bus->bus_ops->data_rx_stop(bus); bus 128 drivers/net/wireless/quantenna/qtnfmac/bus.h static __always_inline void qtnf_bus_lock(struct qtnf_bus *bus) bus 130 drivers/net/wireless/quantenna/qtnfmac/bus.h mutex_lock(&bus->bus_lock); bus 133 drivers/net/wireless/quantenna/qtnfmac/bus.h static __always_inline void qtnf_bus_unlock(struct qtnf_bus *bus) bus 135 drivers/net/wireless/quantenna/qtnfmac/bus.h mutex_unlock(&bus->bus_lock); bus 140 drivers/net/wireless/quantenna/qtnfmac/bus.h int qtnf_core_attach(struct qtnf_bus *bus); bus 141 drivers/net/wireless/quantenna/qtnfmac/bus.h void qtnf_core_detach(struct qtnf_bus *bus); bus 629 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c queue_delayed_work(mac->bus->workqueue, &mac->scan_timeout, bus 960 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c struct qtnf_bus *bus = mac->bus; bus 962 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c device_set_wakeup_enable(bus->dev, enabled); bus 1029 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c struct wiphy *qtnf_wiphy_allocate(struct qtnf_bus *bus) bus 1033 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c if (bus->hw_info.hw_capab & QLINK_HW_CAPAB_DFS_OFFLOAD) bus 1036 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c if (!(bus->hw_info.hw_capab & QLINK_HW_CAPAB_PWR_MGMT)) bus 1043 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c set_wiphy_dev(wiphy, bus->dev); bus 77 drivers/net/wireless/quantenna/qtnfmac/commands.c static int qtnf_cmd_send_with_reply(struct qtnf_bus *bus, bus 100 drivers/net/wireless/quantenna/qtnfmac/commands.c if (!qtnf_fw_is_up(bus) && cmd_id != QLINK_CMD_FW_INIT) { bus 102 drivers/net/wireless/quantenna/qtnfmac/commands.c mac_id, vif_id, cmd_id, bus->fw_state); bus 107 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_trans_send_cmd_with_resp(bus, cmd_skb, &resp_skb); bus 142 drivers/net/wireless/quantenna/qtnfmac/commands.c static inline int qtnf_cmd_send(struct qtnf_bus *bus, struct sk_buff *cmd_skb) bus 144 drivers/net/wireless/quantenna/qtnfmac/commands.c return qtnf_cmd_send_with_reply(bus, cmd_skb, NULL, bus 323 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(vif->mac->bus); bus 324 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); bus 331 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(vif->mac->bus); bus 347 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(vif->mac->bus); bus 348 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); bus 353 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(vif->mac->bus); bus 370 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(vif->mac->bus); bus 376 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); bus 381 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(vif->mac->bus); bus 405 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(vif->mac->bus); bus 415 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); bus 420 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(vif->mac->bus); bus 445 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(vif->mac->bus); bus 446 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); bus 451 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(vif->mac->bus); bus 692 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(vif->mac->bus); bus 697 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send_with_reply(vif->mac->bus, cmd_skb, &resp_skb, bus 716 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(vif->mac->bus); bus 739 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(vif->mac->bus); bus 763 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send_with_reply(vif->mac->bus, cmd_skb, &resp_skb, bus 772 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(vif->mac->bus); bus 823 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(vif->mac->bus); bus 843 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); bus 848 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(vif->mac->bus); bus 853 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_cmd_resp_proc_hw_info(struct qtnf_bus *bus, bus 857 drivers/net/wireless/quantenna/qtnfmac/commands.c struct qtnf_hw_info *hwinfo = &bus->hw_info; bus 1613 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(mac->bus); bus 1614 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send_with_reply(mac->bus, cmd_skb, &resp_skb, bus 1624 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(mac->bus); bus 1630 drivers/net/wireless/quantenna/qtnfmac/commands.c int qtnf_cmd_get_hw_info(struct qtnf_bus *bus) bus 1643 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(bus); bus 1644 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send_with_reply(bus, cmd_skb, &resp_skb, bus 1650 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_resp_proc_hw_info(bus, resp, info_len); bus 1653 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(bus); bus 1678 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(mac->bus); bus 1679 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send_with_reply(mac->bus, cmd_skb, &resp_skb, bus 1695 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(mac->bus); bus 1714 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(mac->bus); bus 1715 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send_with_reply(mac->bus, cmd_skb, &resp_skb, bus 1724 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(mac->bus); bus 1742 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(mac->bus); bus 1762 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(mac->bus, cmd_skb); bus 1767 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(mac->bus); bus 1772 drivers/net/wireless/quantenna/qtnfmac/commands.c int qtnf_cmd_send_init_fw(struct qtnf_bus *bus) bus 1783 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(bus); bus 1784 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(bus, cmd_skb); bus 1789 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(bus); bus 1794 drivers/net/wireless/quantenna/qtnfmac/commands.c void qtnf_cmd_send_deinit_fw(struct qtnf_bus *bus) bus 1804 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(bus); bus 1805 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_cmd_send(bus, cmd_skb); bus 1806 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(bus); bus 1822 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(vif->mac->bus); bus 1845 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); bus 1850 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(vif->mac->bus); bus 1868 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(vif->mac->bus); bus 1880 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); bus 1885 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(vif->mac->bus); bus 1903 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(vif->mac->bus); bus 1910 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); bus 1915 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(vif->mac->bus); bus 1932 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(vif->mac->bus); bus 1937 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); bus 1942 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(vif->mac->bus); bus 1981 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(vif->mac->bus); bus 2003 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); bus 2008 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(vif->mac->bus); bus 2026 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(vif->mac->bus); bus 2038 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); bus 2043 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(vif->mac->bus); bus 2130 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(mac->bus); bus 2183 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(mac->bus, cmd_skb); bus 2188 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(mac->bus); bus 2278 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(vif->mac->bus); bus 2279 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); bus 2284 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(vif->mac->bus); bus 2307 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(vif->mac->bus); bus 2308 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); bus 2313 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(vif->mac->bus); bus 2330 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(vif->mac->bus); bus 2335 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); bus 2340 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(vif->mac->bus); bus 2360 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(vif->mac->bus); bus 2361 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(vif->mac->bus, cmd_skb); bus 2366 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(vif->mac->bus); bus 2375 drivers/net/wireless/quantenna/qtnfmac/commands.c struct qtnf_bus *bus = mac->bus; bus 2452 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(bus); bus 2453 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(bus, cmd_skb); bus 2454 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(bus); bus 2474 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(mac->bus); bus 2479 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send_with_reply(mac->bus, cmd_skb, &resp_skb, bus 2489 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(mac->bus); bus 2509 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(mac->bus); bus 2517 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(mac->bus, cmd_skb); bus 2522 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(mac->bus); bus 2529 drivers/net/wireless/quantenna/qtnfmac/commands.c struct qtnf_bus *bus = vif->mac->bus; bus 2541 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(bus); bus 2542 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send_with_reply(bus, cmd_skb, &resp_skb, bus 2551 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(bus); bus 2561 drivers/net/wireless/quantenna/qtnfmac/commands.c struct qtnf_bus *bus = vif->mac->bus; bus 2576 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(bus); bus 2577 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(bus, cmd_skb); bus 2582 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(bus); bus 2590 drivers/net/wireless/quantenna/qtnfmac/commands.c struct qtnf_bus *bus = vif->mac->bus; bus 2607 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(bus); bus 2608 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(bus, cmd_skb); bus 2613 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(bus); bus 2620 drivers/net/wireless/quantenna/qtnfmac/commands.c struct qtnf_bus *bus = vif->mac->bus; bus 2634 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(bus); bus 2636 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(bus, cmd_skb); bus 2641 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(bus); bus 2649 drivers/net/wireless/quantenna/qtnfmac/commands.c struct qtnf_bus *bus = vif->mac->bus; bus 2661 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_lock(bus); bus 2686 drivers/net/wireless/quantenna/qtnfmac/commands.c ret = qtnf_cmd_send(bus, cmd_skb); bus 2691 drivers/net/wireless/quantenna/qtnfmac/commands.c qtnf_bus_unlock(bus); bus 12 drivers/net/wireless/quantenna/qtnfmac/commands.h int qtnf_cmd_send_init_fw(struct qtnf_bus *bus); bus 13 drivers/net/wireless/quantenna/qtnfmac/commands.h void qtnf_cmd_send_deinit_fw(struct qtnf_bus *bus); bus 14 drivers/net/wireless/quantenna/qtnfmac/commands.h int qtnf_cmd_get_hw_info(struct qtnf_bus *bus); bus 32 drivers/net/wireless/quantenna/qtnfmac/core.c struct qtnf_wmac *qtnf_core_get_mac(const struct qtnf_bus *bus, u8 macid) bus 41 drivers/net/wireless/quantenna/qtnfmac/core.c mac = bus->mac[macid]; bus 110 drivers/net/wireless/quantenna/qtnfmac/core.c return qtnf_bus_data_tx(mac->bus, skb); bus 155 drivers/net/wireless/quantenna/qtnfmac/core.c struct qtnf_bus *bus; bus 157 drivers/net/wireless/quantenna/qtnfmac/core.c if (unlikely(!vif || !vif->mac || !vif->mac->bus)) bus 161 drivers/net/wireless/quantenna/qtnfmac/core.c bus = mac->bus; bus 165 drivers/net/wireless/quantenna/qtnfmac/core.c qtnf_bus_data_tx_timeout(bus, ndev); bus 171 drivers/net/wireless/quantenna/qtnfmac/core.c queue_work(bus->workqueue, &vif->reset_work); bus 394 drivers/net/wireless/quantenna/qtnfmac/core.c static struct qtnf_wmac *qtnf_core_mac_alloc(struct qtnf_bus *bus, bus 402 drivers/net/wireless/quantenna/qtnfmac/core.c wiphy = qtnf_wiphy_allocate(bus); bus 409 drivers/net/wireless/quantenna/qtnfmac/core.c mac->bus = bus; bus 430 drivers/net/wireless/quantenna/qtnfmac/core.c bus->mac[macid] = mac; bus 475 drivers/net/wireless/quantenna/qtnfmac/core.c SET_NETDEV_DEV(dev, mac->bus->dev); bus 486 drivers/net/wireless/quantenna/qtnfmac/core.c static void qtnf_core_mac_detach(struct qtnf_bus *bus, unsigned int macid) bus 494 drivers/net/wireless/quantenna/qtnfmac/core.c mac = bus->mac[macid]; bus 534 drivers/net/wireless/quantenna/qtnfmac/core.c bus->mac[macid] = NULL; bus 537 drivers/net/wireless/quantenna/qtnfmac/core.c static int qtnf_core_mac_attach(struct qtnf_bus *bus, unsigned int macid) bus 543 drivers/net/wireless/quantenna/qtnfmac/core.c if (!(bus->hw_info.mac_bitmap & BIT(macid))) { bus 548 drivers/net/wireless/quantenna/qtnfmac/core.c mac = qtnf_core_mac_alloc(bus, macid); bus 586 drivers/net/wireless/quantenna/qtnfmac/core.c ret = qtnf_wiphy_register(&bus->hw_info, mac); bus 611 drivers/net/wireless/quantenna/qtnfmac/core.c qtnf_core_mac_detach(bus, macid); bus 615 drivers/net/wireless/quantenna/qtnfmac/core.c int qtnf_core_attach(struct qtnf_bus *bus) bus 620 drivers/net/wireless/quantenna/qtnfmac/core.c qtnf_trans_init(bus); bus 621 drivers/net/wireless/quantenna/qtnfmac/core.c qtnf_bus_data_rx_start(bus); bus 623 drivers/net/wireless/quantenna/qtnfmac/core.c bus->workqueue = alloc_ordered_workqueue("QTNF_BUS", 0); bus 624 drivers/net/wireless/quantenna/qtnfmac/core.c if (!bus->workqueue) { bus 630 drivers/net/wireless/quantenna/qtnfmac/core.c bus->hprio_workqueue = alloc_workqueue("QTNF_HPRI", WQ_HIGHPRI, 0); bus 631 drivers/net/wireless/quantenna/qtnfmac/core.c if (!bus->hprio_workqueue) { bus 637 drivers/net/wireless/quantenna/qtnfmac/core.c INIT_WORK(&bus->event_work, qtnf_event_work_handler); bus 639 drivers/net/wireless/quantenna/qtnfmac/core.c ret = qtnf_cmd_send_init_fw(bus); bus 645 drivers/net/wireless/quantenna/qtnfmac/core.c bus->fw_state = QTNF_FW_STATE_ACTIVE; bus 646 drivers/net/wireless/quantenna/qtnfmac/core.c ret = qtnf_cmd_get_hw_info(bus); bus 652 drivers/net/wireless/quantenna/qtnfmac/core.c if (bus->hw_info.ql_proto_ver != QLINK_PROTO_VER) { bus 654 drivers/net/wireless/quantenna/qtnfmac/core.c QLINK_PROTO_VER, bus->hw_info.ql_proto_ver); bus 659 drivers/net/wireless/quantenna/qtnfmac/core.c if (bus->hw_info.num_mac > QTNF_MAX_MAC) { bus 661 drivers/net/wireless/quantenna/qtnfmac/core.c bus->hw_info.num_mac); bus 666 drivers/net/wireless/quantenna/qtnfmac/core.c for (i = 0; i < bus->hw_info.num_mac; i++) { bus 667 drivers/net/wireless/quantenna/qtnfmac/core.c ret = qtnf_core_mac_attach(bus, i); bus 675 drivers/net/wireless/quantenna/qtnfmac/core.c bus->fw_state = QTNF_FW_STATE_RUNNING; bus 679 drivers/net/wireless/quantenna/qtnfmac/core.c qtnf_core_detach(bus); bus 684 drivers/net/wireless/quantenna/qtnfmac/core.c void qtnf_core_detach(struct qtnf_bus *bus) bus 688 drivers/net/wireless/quantenna/qtnfmac/core.c qtnf_bus_data_rx_stop(bus); bus 691 drivers/net/wireless/quantenna/qtnfmac/core.c qtnf_core_mac_detach(bus, macid); bus 693 drivers/net/wireless/quantenna/qtnfmac/core.c if (qtnf_fw_is_up(bus)) bus 694 drivers/net/wireless/quantenna/qtnfmac/core.c qtnf_cmd_send_deinit_fw(bus); bus 696 drivers/net/wireless/quantenna/qtnfmac/core.c bus->fw_state = QTNF_FW_STATE_DETACHED; bus 698 drivers/net/wireless/quantenna/qtnfmac/core.c if (bus->workqueue) { bus 699 drivers/net/wireless/quantenna/qtnfmac/core.c flush_workqueue(bus->workqueue); bus 700 drivers/net/wireless/quantenna/qtnfmac/core.c destroy_workqueue(bus->workqueue); bus 701 drivers/net/wireless/quantenna/qtnfmac/core.c bus->workqueue = NULL; bus 704 drivers/net/wireless/quantenna/qtnfmac/core.c if (bus->hprio_workqueue) { bus 705 drivers/net/wireless/quantenna/qtnfmac/core.c flush_workqueue(bus->hprio_workqueue); bus 706 drivers/net/wireless/quantenna/qtnfmac/core.c destroy_workqueue(bus->hprio_workqueue); bus 707 drivers/net/wireless/quantenna/qtnfmac/core.c bus->hprio_workqueue = NULL; bus 710 drivers/net/wireless/quantenna/qtnfmac/core.c qtnf_trans_free(bus); bus 719 drivers/net/wireless/quantenna/qtnfmac/core.c struct net_device *qtnf_classify_skb(struct qtnf_bus *bus, struct sk_buff *skb) bus 726 drivers/net/wireless/quantenna/qtnfmac/core.c if (unlikely(bus->fw_state != QTNF_FW_STATE_RUNNING)) bus 748 drivers/net/wireless/quantenna/qtnfmac/core.c mac = bus->mac[meta->macid]; bus 781 drivers/net/wireless/quantenna/qtnfmac/core.c struct qtnf_bus *bus; bus 785 drivers/net/wireless/quantenna/qtnfmac/core.c if (unlikely(!vif || !vif->mac || !vif->mac->bus)) bus 788 drivers/net/wireless/quantenna/qtnfmac/core.c bus = vif->mac->bus; bus 791 drivers/net/wireless/quantenna/qtnfmac/core.c if (!(bus->hw_info.mac_bitmap & BIT(macid))) bus 794 drivers/net/wireless/quantenna/qtnfmac/core.c mac = bus->mac[macid]; bus 849 drivers/net/wireless/quantenna/qtnfmac/core.c queue_work(vif->mac->bus->hprio_workqueue, &vif->high_pri_tx_work); bus 111 drivers/net/wireless/quantenna/qtnfmac/core.h struct qtnf_bus *bus; bus 138 drivers/net/wireless/quantenna/qtnfmac/core.h struct wiphy *qtnf_wiphy_allocate(struct qtnf_bus *bus); bus 145 drivers/net/wireless/quantenna/qtnfmac/core.h struct qtnf_wmac *qtnf_core_get_mac(const struct qtnf_bus *bus, u8 macid); bus 146 drivers/net/wireless/quantenna/qtnfmac/core.h struct net_device *qtnf_classify_skb(struct qtnf_bus *bus, struct sk_buff *skb); bus 6 drivers/net/wireless/quantenna/qtnfmac/debug.c void qtnf_debugfs_init(struct qtnf_bus *bus, const char *name) bus 10 drivers/net/wireless/quantenna/qtnfmac/debug.c bus->dbg_dir = debugfs_create_dir(name, parent); bus 13 drivers/net/wireless/quantenna/qtnfmac/debug.c void qtnf_debugfs_remove(struct qtnf_bus *bus) bus 15 drivers/net/wireless/quantenna/qtnfmac/debug.c debugfs_remove_recursive(bus->dbg_dir); bus 16 drivers/net/wireless/quantenna/qtnfmac/debug.c bus->dbg_dir = NULL; bus 19 drivers/net/wireless/quantenna/qtnfmac/debug.c void qtnf_debugfs_add_entry(struct qtnf_bus *bus, const char *name, bus 22 drivers/net/wireless/quantenna/qtnfmac/debug.c debugfs_create_devm_seqfile(bus->dev, name, bus->dbg_dir, fn); bus 14 drivers/net/wireless/quantenna/qtnfmac/debug.h void qtnf_debugfs_init(struct qtnf_bus *bus, const char *name); bus 15 drivers/net/wireless/quantenna/qtnfmac/debug.h void qtnf_debugfs_remove(struct qtnf_bus *bus); bus 16 drivers/net/wireless/quantenna/qtnfmac/debug.h void qtnf_debugfs_add_entry(struct qtnf_bus *bus, const char *name, bus 21 drivers/net/wireless/quantenna/qtnfmac/debug.h static inline void qtnf_debugfs_init(struct qtnf_bus *bus, const char *name) bus 25 drivers/net/wireless/quantenna/qtnfmac/debug.h static inline void qtnf_debugfs_remove(struct qtnf_bus *bus) bus 30 drivers/net/wireless/quantenna/qtnfmac/debug.h qtnf_debugfs_add_entry(struct qtnf_bus *bus, const char *name, bus 691 drivers/net/wireless/quantenna/qtnfmac/event.c static int qtnf_event_process_skb(struct qtnf_bus *bus, bus 705 drivers/net/wireless/quantenna/qtnfmac/event.c mac = qtnf_core_get_mac(bus, event->macid); bus 723 drivers/net/wireless/quantenna/qtnfmac/event.c struct qtnf_bus *bus = container_of(work, struct qtnf_bus, event_work); bus 724 drivers/net/wireless/quantenna/qtnfmac/event.c struct sk_buff_head *event_queue = &bus->trans.event_queue; bus 728 drivers/net/wireless/quantenna/qtnfmac/event.c qtnf_event_process_skb(bus, current_event_skb); bus 50 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c int qtnf_pcie_control_tx(struct qtnf_bus *bus, struct sk_buff *skb) bus 52 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c struct qtnf_pcie_bus_priv *priv = get_bus_priv(bus); bus 59 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c bus->fw_state = QTNF_FW_STATE_DEAD; bus 85 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c static void qtnf_pcie_bringup_fw_async(struct qtnf_bus *bus) bus 87 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c struct qtnf_pcie_bus_priv *priv = get_bus_priv(bus); bus 91 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c schedule_work(&bus->fw_work); bus 96 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c struct qtnf_bus *bus = dev_get_drvdata(s->private); bus 97 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c struct qtnf_pcie_bus_priv *priv = get_bus_priv(bus); bus 106 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c struct qtnf_bus *bus = dev_get_drvdata(s->private); bus 107 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c struct qtnf_pcie_bus_priv *priv = get_bus_priv(bus); bus 116 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c struct qtnf_bus *bus = dev_get_drvdata(s->private); bus 117 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c struct qtnf_pcie_bus_priv *priv = get_bus_priv(bus); bus 131 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c int qtnf_pcie_fw_boot_done(struct qtnf_bus *bus) bus 133 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c struct qtnf_pcie_bus_priv *priv = get_bus_priv(bus); bus 137 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c bus->fw_state = QTNF_FW_STATE_BOOT_DONE; bus 138 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c ret = qtnf_core_attach(bus); bus 144 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c qtnf_debugfs_init(bus, card_id); bus 145 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c qtnf_debugfs_add_entry(bus, "mps", qtnf_dbg_mps_show); bus 146 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c qtnf_debugfs_add_entry(bus, "msi_enabled", qtnf_dbg_msi_show); bus 147 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c qtnf_debugfs_add_entry(bus, "shm_stats", qtnf_dbg_shm_stats); bus 168 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c if (pdev->bus && pdev->bus->self) { bus 170 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c parent = pdev->bus->self; bus 238 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c struct qtnf_bus *bus = pci_get_drvdata(priv->pdev); bus 255 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c qtnf_trans_handle_rx_ctl_packet(bus, skb); bus 277 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c struct qtnf_bus *bus; bus 325 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c bus = qtnf_pcie_pearl_alloc(pdev); bus 328 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c bus = qtnf_pcie_topaz_alloc(pdev); bus 335 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c if (!bus) bus 338 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c pcie_priv = get_bus_priv(bus); bus 339 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c pci_set_drvdata(pdev, bus); bus 340 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c bus->dev = &pdev->dev; bus 341 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c bus->fw_state = QTNF_FW_STATE_DETACHED; bus 352 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c mutex_init(&bus->bus_lock); bus 377 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c init_dummy_netdev(&bus->mux_dev); bus 384 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c ret = pcie_priv->probe_cb(bus, tx_bd_size_param); bus 388 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c qtnf_pcie_bringup_fw_async(bus); bus 407 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c struct qtnf_bus *bus; bus 409 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c bus = pci_get_drvdata(dev); bus 410 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c if (!bus) bus 413 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c priv = get_bus_priv(bus); bus 415 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c cancel_work_sync(&bus->fw_work); bus 417 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c if (qtnf_fw_is_attached(bus)) bus 418 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c qtnf_core_detach(bus); bus 420 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c netif_napi_del(&bus->mux_napi); bus 426 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c qtnf_debugfs_remove(bus); bus 427 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c priv->remove_cb(bus); bus 435 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c struct qtnf_bus *bus; bus 437 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c bus = dev_get_drvdata(dev); bus 438 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c if (!bus) bus 441 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c priv = get_bus_priv(bus); bus 442 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c return priv->suspend_cb(bus); bus 448 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c struct qtnf_bus *bus; bus 450 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c bus = dev_get_drvdata(dev); bus 451 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c if (!bus) bus 454 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c priv = get_bus_priv(bus); bus 455 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c return priv->resume_cb(bus); bus 26 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie_priv.h int (*probe_cb)(struct qtnf_bus *bus, unsigned int tx_bd_size); bus 27 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie_priv.h void (*remove_cb)(struct qtnf_bus *bus); bus 28 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie_priv.h int (*suspend_cb)(struct qtnf_bus *bus); bus 29 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie_priv.h int (*resume_cb)(struct qtnf_bus *bus); bus 72 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie_priv.h int qtnf_pcie_control_tx(struct qtnf_bus *bus, struct sk_buff *skb); bus 74 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie_priv.h int qtnf_pcie_fw_boot_done(struct qtnf_bus *bus); bus 534 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c static int qtnf_pcie_data_tx(struct qtnf_bus *bus, struct sk_buff *skb) bus 536 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c struct qtnf_pcie_pearl_state *ps = get_bus_priv(bus); bus 612 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c struct qtnf_bus *bus = (struct qtnf_bus *)data; bus 613 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c struct qtnf_pcie_pearl_state *ps = get_bus_priv(bus); bus 637 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c napi_schedule(&bus->mux_napi); bus 672 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c struct qtnf_bus *bus = container_of(napi, struct qtnf_bus, mux_napi); bus 673 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c struct qtnf_pcie_pearl_state *ps = get_bus_priv(bus); bus 724 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c ndev = qtnf_classify_skb(bus, skb); bus 731 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c bus->mux_dev.stats.rx_dropped++; bus 736 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c bus->mux_dev.stats.rx_dropped++; bus 775 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c qtnf_pcie_data_tx_timeout(struct qtnf_bus *bus, struct net_device *ndev) bus 777 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c struct qtnf_pcie_pearl_state *ps = (void *)get_bus_priv(bus); bus 782 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c static void qtnf_pcie_data_rx_start(struct qtnf_bus *bus) bus 784 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c struct qtnf_pcie_pearl_state *ps = (void *)get_bus_priv(bus); bus 787 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c napi_enable(&bus->mux_napi); bus 790 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c static void qtnf_pcie_data_rx_stop(struct qtnf_bus *bus) bus 792 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c struct qtnf_pcie_pearl_state *ps = (void *)get_bus_priv(bus); bus 794 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c napi_disable(&bus->mux_napi); bus 811 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c struct qtnf_bus *bus = dev_get_drvdata(s->private); bus 812 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c struct qtnf_pcie_pearl_state *ps = get_bus_priv(bus); bus 835 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c struct qtnf_bus *bus = dev_get_drvdata(s->private); bus 836 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c struct qtnf_pcie_pearl_state *ps = get_bus_priv(bus); bus 868 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c struct qtnf_bus *bus = pci_get_drvdata(pdev); bus 907 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c ret = qtnf_pcie_data_tx(bus, skb); bus 981 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c struct qtnf_bus *bus = container_of(work, struct qtnf_bus, fw_work); bus 982 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c struct qtnf_pcie_pearl_state *ps = (void *)get_bus_priv(bus); bus 1041 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c ret = qtnf_pcie_fw_boot_done(bus); bus 1045 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c qtnf_debugfs_add_entry(bus, "hdp_stats", qtnf_dbg_hdp_stats); bus 1046 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c qtnf_debugfs_add_entry(bus, "irq_stats", qtnf_dbg_irq_stats); bus 1069 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c static int qtnf_pcie_pearl_probe(struct qtnf_bus *bus, unsigned int tx_bd_size) bus 1072 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c struct qtnf_pcie_pearl_state *ps = get_bus_priv(bus); bus 1076 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c bus->bus_ops = &qtnf_pcie_pearl_bus_ops; bus 1078 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c INIT_WORK(&bus->fw_work, qtnf_pearl_fw_work_handler); bus 1098 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c "qtnf_pearl_irq", (void *)bus); bus 1107 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c netif_napi_add(&bus->mux_dev, &bus->mux_napi, bus 1118 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c static void qtnf_pcie_pearl_remove(struct qtnf_bus *bus) bus 1120 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c struct qtnf_pcie_pearl_state *ps = get_bus_priv(bus); bus 1127 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c static int qtnf_pcie_pearl_suspend(struct qtnf_bus *bus) bus 1132 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c static int qtnf_pcie_pearl_resume(struct qtnf_bus *bus) bus 1140 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c struct qtnf_bus *bus; bus 1143 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c bus = devm_kzalloc(&pdev->dev, sizeof(*bus) + sizeof(*ps), GFP_KERNEL); bus 1144 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c if (!bus) bus 1147 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c ps = get_bus_priv(bus); bus 1156 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c return bus; bus 434 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static void qtnf_try_stop_xmit(struct qtnf_bus *bus, struct net_device *ndev) bus 436 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = (void *)get_bus_priv(bus); bus 456 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static void qtnf_try_wake_xmit(struct qtnf_bus *bus, struct net_device *ndev) bus 458 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); bus 489 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static int qtnf_pcie_data_tx(struct qtnf_bus *bus, struct sk_buff *skb) bus 491 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = (void *)get_bus_priv(bus); bus 511 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_try_stop_xmit(bus, skb->dev); bus 562 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_bus *bus = (struct qtnf_bus *)data; bus 563 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = (void *)get_bus_priv(bus); bus 577 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c if (napi_schedule_prep(&bus->mux_napi)) { bus 579 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c __napi_schedule(&bus->mux_napi); bus 604 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_bus *bus = container_of(napi, struct qtnf_bus, mux_napi); bus 605 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = (void *)get_bus_priv(bus); bus 658 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ndev = qtnf_classify_skb(bus, skb); bus 665 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c bus->mux_dev.stats.rx_dropped++; bus 670 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c bus->mux_dev.stats.rx_dropped++; bus 715 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_pcie_data_tx_timeout(struct qtnf_bus *bus, struct net_device *ndev) bus 717 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); bus 719 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_try_wake_xmit(bus, ndev); bus 723 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static void qtnf_pcie_data_rx_start(struct qtnf_bus *bus) bus 725 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); bus 727 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c napi_enable(&bus->mux_napi); bus 731 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static void qtnf_pcie_data_rx_stop(struct qtnf_bus *bus) bus 733 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); bus 736 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c napi_disable(&bus->mux_napi); bus 752 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_bus *bus = dev_get_drvdata(s->private); bus 753 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); bus 762 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_bus *bus = dev_get_drvdata(s->private); bus 763 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); bus 846 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static int qtnf_pre_init_ep(struct qtnf_bus *bus) bus 848 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = (void *)get_bus_priv(bus); bus 1032 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_bus *bus = container_of(work, struct qtnf_bus, fw_work); bus 1033 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = (void *)get_bus_priv(bus); bus 1045 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ret = qtnf_pre_init_ep(bus); bus 1093 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ret = qtnf_pcie_fw_boot_done(bus); bus 1097 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_debugfs_add_entry(bus, "pkt_stats", qtnf_dbg_pkt_stats); bus 1098 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c qtnf_debugfs_add_entry(bus, "irq_stats", qtnf_dbg_irq_stats); bus 1116 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static int qtnf_pcie_topaz_probe(struct qtnf_bus *bus, unsigned int tx_bd_num) bus 1118 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); bus 1124 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c bus->bus_ops = &qtnf_pcie_topaz_bus_ops; bus 1125 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c INIT_WORK(&bus->fw_work, qtnf_topaz_fw_work_handler); bus 1136 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c irqflags, "qtnf_topaz_irq", (void *)bus); bus 1144 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ret = qtnf_pre_init_ep(bus); bus 1158 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c netif_napi_add(&bus->mux_dev, &bus->mux_napi, bus 1169 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static void qtnf_pcie_topaz_remove(struct qtnf_bus *bus) bus 1171 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); bus 1178 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static int qtnf_pcie_topaz_suspend(struct qtnf_bus *bus) bus 1180 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); bus 1195 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c static int qtnf_pcie_topaz_resume(struct qtnf_bus *bus) bus 1197 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_pcie_topaz_state *ts = get_bus_priv(bus); bus 1215 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c struct qtnf_bus *bus; bus 1218 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c bus = devm_kzalloc(&pdev->dev, sizeof(*bus) + sizeof(*ts), GFP_KERNEL); bus 1219 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c if (!bus) bus 1222 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c ts = get_bus_priv(bus); bus 1231 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c return bus; bus 15 drivers/net/wireless/quantenna/qtnfmac/trans.c int qtnf_trans_send_cmd_with_resp(struct qtnf_bus *bus, struct sk_buff *cmd_skb, bus 18 drivers/net/wireless/quantenna/qtnfmac/trans.c struct qtnf_cmd_ctl_node *ctl_node = &bus->trans.curr_cmd; bus 37 drivers/net/wireless/quantenna/qtnfmac/trans.c ret = qtnf_bus_control_tx(bus, cmd_skb); bus 81 drivers/net/wireless/quantenna/qtnfmac/trans.c static void qtnf_trans_signal_cmdresp(struct qtnf_bus *bus, struct sk_buff *skb) bus 83 drivers/net/wireless/quantenna/qtnfmac/trans.c struct qtnf_cmd_ctl_node *ctl_node = &bus->trans.curr_cmd; bus 112 drivers/net/wireless/quantenna/qtnfmac/trans.c static int qtnf_trans_event_enqueue(struct qtnf_bus *bus, struct sk_buff *skb) bus 114 drivers/net/wireless/quantenna/qtnfmac/trans.c struct qtnf_qlink_transport *trans = &bus->trans; bus 119 drivers/net/wireless/quantenna/qtnfmac/trans.c queue_work(bus->workqueue, &bus->event_work); bus 129 drivers/net/wireless/quantenna/qtnfmac/trans.c void qtnf_trans_init(struct qtnf_bus *bus) bus 131 drivers/net/wireless/quantenna/qtnfmac/trans.c struct qtnf_qlink_transport *trans = &bus->trans; bus 147 drivers/net/wireless/quantenna/qtnfmac/trans.c static void qtnf_trans_free_events(struct qtnf_bus *bus) bus 149 drivers/net/wireless/quantenna/qtnfmac/trans.c struct sk_buff_head *event_queue = &bus->trans.event_queue; bus 158 drivers/net/wireless/quantenna/qtnfmac/trans.c void qtnf_trans_free(struct qtnf_bus *bus) bus 160 drivers/net/wireless/quantenna/qtnfmac/trans.c if (!bus) { bus 165 drivers/net/wireless/quantenna/qtnfmac/trans.c qtnf_trans_free_events(bus); bus 168 drivers/net/wireless/quantenna/qtnfmac/trans.c int qtnf_trans_handle_rx_ctl_packet(struct qtnf_bus *bus, struct sk_buff *skb) bus 194 drivers/net/wireless/quantenna/qtnfmac/trans.c qtnf_trans_signal_cmdresp(bus, skb); bus 203 drivers/net/wireless/quantenna/qtnfmac/trans.c ret = qtnf_trans_event_enqueue(bus, skb); bus 35 drivers/net/wireless/quantenna/qtnfmac/trans.h void qtnf_trans_init(struct qtnf_bus *bus); bus 36 drivers/net/wireless/quantenna/qtnfmac/trans.h void qtnf_trans_free(struct qtnf_bus *bus); bus 38 drivers/net/wireless/quantenna/qtnfmac/trans.h int qtnf_trans_send_next_cmd(struct qtnf_bus *bus); bus 39 drivers/net/wireless/quantenna/qtnfmac/trans.h int qtnf_trans_handle_rx_ctl_packet(struct qtnf_bus *bus, struct sk_buff *skb); bus 40 drivers/net/wireless/quantenna/qtnfmac/trans.h int qtnf_trans_send_cmd_with_resp(struct qtnf_bus *bus, bus 1879 drivers/net/wireless/realtek/rtlwifi/pci.c struct pci_dev *bridge_pdev = pdev->bus->self; bus 2014 drivers/net/wireless/realtek/rtlwifi/pci.c pcipriv->ndis_adapter.busnumber = pdev->bus->number; bus 2040 drivers/net/wireless/realtek/rtlwifi/pci.c bridge_pdev->bus->number; bus 87 drivers/ntb/core.c client->drv.bus = &ntb_bus; bus 114 drivers/ntb/core.c ntb->dev.bus = &ntb_bus; bus 409 drivers/ntb/ntb_transport.c dev->bus = &ntb_transport_bus; bus 442 drivers/ntb/ntb_transport.c drv->driver.bus = &ntb_transport_bus; bus 52 drivers/nubus/bus.c ndrv->driver.bus = &nubus_bus_type; bus 95 drivers/nubus/bus.c board->dev.bus = &nubus_bus_type; bus 360 drivers/nvdimm/bus.c nvdimm_bus->dev.bus = &nvdimm_bus_type; bus 473 drivers/nvdimm/bus.c .bus = &nvdimm_bus_type, bus 536 drivers/nvdimm/bus.c dev->bus = &nvdimm_bus_type; bus 618 drivers/nvdimm/bus.c drv->bus = &nvdimm_bus_type; bus 25 drivers/nvdimm/of_pmem.c struct nvdimm_bus *bus; bus 32 drivers/nvdimm/of_pmem.c struct nvdimm_bus *bus; bus 49 drivers/nvdimm/of_pmem.c priv->bus = bus = nvdimm_bus_register(&pdev->dev, &priv->bus_desc); bus 50 drivers/nvdimm/of_pmem.c if (!bus) { bus 77 drivers/nvdimm/of_pmem.c region = nvdimm_volatile_region_create(bus, &ndr_desc); bus 79 drivers/nvdimm/of_pmem.c region = nvdimm_pmem_region_create(bus, &ndr_desc); bus 96 drivers/nvdimm/of_pmem.c nvdimm_bus_unregister(priv->bus); bus 382 drivers/nvmem/core.c nvmem->dev.bus = &nvmem_bus_type; bus 183 drivers/of/address.c struct of_bus *bus; bus 190 drivers/of/address.c bus = of_match_bus(parent); bus 191 drivers/of/address.c if (strcmp(bus->name, "pci")) { bus 195 drivers/of/address.c bus->count_cells(dev, &na, &ns); bus 201 drivers/of/address.c prop = of_get_property(dev, bus->addresses, &psize); bus 213 drivers/of/address.c *flags = bus->get_flags(prop); bus 496 drivers/of/address.c static int of_translate_one(struct device_node *parent, struct of_bus *bus, bus 539 drivers/of/address.c offset = bus->map(addr, ranges, na, ns, pna); bus 577 drivers/of/address.c struct of_bus *bus, *pbus; bus 592 drivers/of/address.c bus = of_match_bus(parent); bus 595 drivers/of/address.c bus->count_cells(dev, &na, &ns); bus 603 drivers/of/address.c bus->name, na, ns, parent); bus 647 drivers/of/address.c if (of_translate_one(dev, bus, pbus, addr, na, ns, pna, rprop)) bus 653 drivers/of/address.c bus = pbus; bus 721 drivers/of/address.c struct of_bus *bus; bus 728 drivers/of/address.c bus = of_match_bus(parent); bus 729 drivers/of/address.c bus->count_cells(dev, &na, &ns); bus 735 drivers/of/address.c prop = of_get_property(dev, bus->addresses, &psize); bus 746 drivers/of/address.c *flags = bus->get_flags(prop); bus 110 drivers/of/fdt_address.c const struct of_bus *bus, bus 135 drivers/of/fdt_address.c offset = bus->map(addr, ranges, na, ns, pna); bus 166 drivers/of/fdt_address.c const struct of_bus *bus, *pbus; bus 186 drivers/of/fdt_address.c bus = &of_busses[0]; bus 189 drivers/of/fdt_address.c bus->count_cells(blob, parent, &na, &ns); bus 227 drivers/of/fdt_address.c if (fdt_translate_one(blob, node_offset, bus, pbus, bus 234 drivers/of/fdt_address.c bus = pbus; bus 185 drivers/of/platform.c dev->dev.bus = &platform_bus_type; bus 346 drivers/of/platform.c static int of_platform_bus_create(struct device_node *bus, bus 359 drivers/of/platform.c if (strict && (!of_get_property(bus, "compatible", NULL))) { bus 361 drivers/of/platform.c __func__, bus); bus 366 drivers/of/platform.c if (unlikely(of_match_node(of_skipped_node_table, bus))) { bus 367 drivers/of/platform.c pr_debug("%s() - skipping %pOF node\n", __func__, bus); bus 371 drivers/of/platform.c if (of_node_check_flag(bus, OF_POPULATED_BUS)) { bus 373 drivers/of/platform.c __func__, bus); bus 377 drivers/of/platform.c auxdata = of_dev_lookup(lookup, bus); bus 383 drivers/of/platform.c if (of_device_is_compatible(bus, "arm,primecell")) { bus 388 drivers/of/platform.c of_amba_device_create(bus, bus_id, platform_data, parent); bus 392 drivers/of/platform.c dev = of_platform_device_create_pdata(bus, bus_id, platform_data, parent); bus 393 drivers/of/platform.c if (!dev || !of_match_node(matches, bus)) bus 396 drivers/of/platform.c for_each_child_of_node(bus, child) { bus 404 drivers/of/platform.c of_node_set_flag(bus, OF_POPULATED_BUS); bus 556 drivers/of/platform.c if (dev->bus == &platform_bus_type) bus 559 drivers/of/platform.c else if (dev->bus == &amba_bustype) bus 164 drivers/parisc/dino.c dino_dev = DINO_DEV(parisc_walk_tree(dev->bus->bridge)); bus 172 drivers/parisc/dino.c #define DINO_CFG_TOK(bus,dfn,pos) ((u32) ((bus)<<16 | (dfn)<<8 | (pos))) bus 181 drivers/parisc/dino.c static int dino_cfg_read(struct pci_bus *bus, unsigned int devfn, int where, bus 184 drivers/parisc/dino.c struct dino_device *d = DINO_DEV(parisc_walk_tree(bus->bridge)); bus 185 drivers/parisc/dino.c u32 local_bus = (bus->parent == NULL) ? 0 : bus->busn_res.start; bus 216 drivers/parisc/dino.c static int dino_cfg_write(struct pci_bus *bus, unsigned int devfn, int where, bus 219 drivers/parisc/dino.c struct dino_device *d = DINO_DEV(parisc_walk_tree(bus->bridge)); bus 220 drivers/parisc/dino.c u32 local_bus = (bus->parent == NULL) ? 0 : bus->busn_res.start; bus 480 drivers/parisc/dino.c dino_card_setup(struct pci_bus *bus, void __iomem *base_addr) bus 483 drivers/parisc/dino.c struct dino_device *dino_dev = DINO_DEV(parisc_walk_tree(bus->bridge)); bus 491 drivers/parisc/dino.c dev_name(bus->bridge)); bus 505 drivers/parisc/dino.c dev_name(bus->bridge)); bus 507 drivers/parisc/dino.c list_for_each_entry_safe(dev, tmp, &bus->devices, bus_list) { bus 513 drivers/parisc/dino.c bus->resource[1] = res; bus 514 drivers/parisc/dino.c bus->resource[0] = &(dino_dev->hba.io_space); bus 544 drivers/parisc/dino.c dino_cfg_write(dev->bus, dev->devfn, bus 556 drivers/parisc/dino.c dino_cfg_read(dev->bus, dev->devfn, PCI_INTERRUPT_PIN, 1, &irq_pin); bus 562 drivers/parisc/dino.c dino_cfg_write(dev->bus, dev->devfn, PCI_INTERRUPT_LINE, 1, dev->irq); bus 570 drivers/parisc/dino.c dino_fixup_bus(struct pci_bus *bus) bus 573 drivers/parisc/dino.c struct dino_device *dino_dev = DINO_DEV(parisc_walk_tree(bus->bridge)); bus 576 drivers/parisc/dino.c __func__, bus, bus->busn_res.start, bus 577 drivers/parisc/dino.c bus->bridge->platform_data); bus 581 drivers/parisc/dino.c dino_card_setup(bus, dino_dev->hba.base_addr); bus 582 drivers/parisc/dino.c } else if (bus->parent) { bus 585 drivers/parisc/dino.c pci_read_bridge_bases(bus); bus 589 drivers/parisc/dino.c if((bus->self->resource[i].flags & bus 593 drivers/parisc/dino.c if(bus->self->resource[i].flags & IORESOURCE_MEM) { bus 600 drivers/parisc/dino.c bus->self->resource[i].end = bus->self->resource[i].end - bus->self->resource[i].start + DINO_BRIDGE_ALIGN; bus 601 drivers/parisc/dino.c bus->self->resource[i].start = DINO_BRIDGE_ALIGN; bus 606 drivers/parisc/dino.c dev_name(&bus->self->dev), i, bus 607 drivers/parisc/dino.c &bus->self->resource[i]); bus 608 drivers/parisc/dino.c WARN_ON(pci_assign_resource(bus->self, i)); bus 610 drivers/parisc/dino.c dev_name(&bus->self->dev), i, bus 611 drivers/parisc/dino.c &bus->self->resource[i]); bus 616 drivers/parisc/dino.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 647 drivers/parisc/dino.c dino_cfg_read(dev->bus, dev->devfn, bus 652 drivers/parisc/dino.c dino_cfg_write(dev->bus, dev->devfn, bus 916 drivers/parisc/dino.c struct pci_bus *bus; bus 1012 drivers/parisc/dino.c dino_dev->hba.hba_bus = bus = pci_create_root_bus(&dev->dev, bus 1014 drivers/parisc/dino.c if (!bus) { bus 1023 drivers/parisc/dino.c max = pci_scan_child_bus(bus); bus 1024 drivers/parisc/dino.c pci_bus_update_busn_res_end(bus, max); bus 1030 drivers/parisc/dino.c pci_bus_assign_resources(bus); bus 1031 drivers/parisc/dino.c pci_bus_add_devices(bus); bus 475 drivers/parisc/iosapic.c if (pcidev->bus->parent) { bus 493 drivers/parisc/iosapic.c struct pci_bus *p = pcidev->bus; bus 521 drivers/parisc/iosapic.c pcidev->bus->busn_res.start, intr_slot, intr_pin); bus 144 drivers/parisc/lba_pci.c #define LBA_CFG_TOK(bus,dfn) ((u32) ((bus)<<16 | (dfn)<<8)) bus 189 drivers/parisc/lba_pci.c static int lba_device_present(u8 bus, u8 dfn, struct lba_device *d) bus 194 drivers/parisc/lba_pci.c if ((bus < first_bus) || bus 195 drivers/parisc/lba_pci.c (bus > last_sub_bus) || bus 196 drivers/parisc/lba_pci.c ((bus - first_bus) >= LBA_MAX_NUM_BUSES)) { bus 363 drivers/parisc/lba_pci.c static int elroy_cfg_read(struct pci_bus *bus, unsigned int devfn, int pos, int size, u32 *data) bus 365 drivers/parisc/lba_pci.c struct lba_device *d = LBA_DEV(parisc_walk_tree(bus->bridge)); bus 366 drivers/parisc/lba_pci.c u32 local_bus = (bus->parent == NULL) ? 0 : bus->busn_res.start; bus 382 drivers/parisc/lba_pci.c if (LBA_SKIP_PROBE(d) && !lba_device_present(bus->busn_res.start, devfn, d)) { bus 430 drivers/parisc/lba_pci.c static int elroy_cfg_write(struct pci_bus *bus, unsigned int devfn, int pos, int size, u32 data) bus 432 drivers/parisc/lba_pci.c struct lba_device *d = LBA_DEV(parisc_walk_tree(bus->bridge)); bus 433 drivers/parisc/lba_pci.c u32 local_bus = (bus->parent == NULL) ? 0 : bus->busn_res.start; bus 446 drivers/parisc/lba_pci.c if (LBA_SKIP_PROBE(d) && (!lba_device_present(bus->busn_res.start, devfn, d))) { bus 480 drivers/parisc/lba_pci.c static int mercury_cfg_read(struct pci_bus *bus, unsigned int devfn, int pos, int size, u32 *data) bus 482 drivers/parisc/lba_pci.c struct lba_device *d = LBA_DEV(parisc_walk_tree(bus->bridge)); bus 483 drivers/parisc/lba_pci.c u32 local_bus = (bus->parent == NULL) ? 0 : bus->busn_res.start; bus 512 drivers/parisc/lba_pci.c static int mercury_cfg_write(struct pci_bus *bus, unsigned int devfn, int pos, int size, u32 data) bus 514 drivers/parisc/lba_pci.c struct lba_device *d = LBA_DEV(parisc_walk_tree(bus->bridge)); bus 516 drivers/parisc/lba_pci.c u32 local_bus = (bus->parent == NULL) ? 0 : bus->busn_res.start; bus 691 drivers/parisc/lba_pci.c static void pcibios_allocate_bus_resources(struct pci_bus *bus) bus 696 drivers/parisc/lba_pci.c if (bus->self) bus 697 drivers/parisc/lba_pci.c pcibios_allocate_bridge_resources(bus->self); bus 698 drivers/parisc/lba_pci.c list_for_each_entry(child, &bus->children, node) bus 713 drivers/parisc/lba_pci.c lba_fixup_bus(struct pci_bus *bus) bus 719 drivers/parisc/lba_pci.c struct lba_device *ldev = LBA_DEV(parisc_walk_tree(bus->bridge)); bus 722 drivers/parisc/lba_pci.c bus, (int)bus->busn_res.start, bus->bridge->platform_data); bus 728 drivers/parisc/lba_pci.c if (bus->parent) { bus 730 drivers/parisc/lba_pci.c pci_read_bridge_bases(bus); bus 733 drivers/parisc/lba_pci.c pcibios_allocate_bus_resources(bus); bus 795 drivers/parisc/lba_pci.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 822 drivers/parisc/lba_pci.c bus->bridge_ctl &= ~(status & PCI_STATUS_FAST_BACK); bus 843 drivers/parisc/lba_pci.c if (bus->parent) { bus 846 drivers/parisc/lba_pci.c (void) pci_read_config_byte(bus->self, PCI_BRIDGE_CONTROL, &control); bus 847 drivers/parisc/lba_pci.c (void) pci_write_config_byte(bus->self, PCI_BRIDGE_CONTROL, control | PCI_STATUS_FAST_BACK); bus 856 drivers/parisc/lba_pci.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 3353 drivers/parport/parport_pc.c if (dev && dev->bus == &platform_bus_type) bus 290 drivers/parport/share.c drv->driver.bus = &parport_bus_type; bus 515 drivers/parport/share.c tmp->bus_dev.bus = &parport_bus_type; bus 911 drivers/parport/share.c par_dev->dev.bus = &parport_bus_type; bus 37 drivers/pci/access.c (struct pci_bus *bus, unsigned int devfn, int pos, type *value) \ bus 44 drivers/pci/access.c res = bus->ops->read(bus, devfn, pos, len, &data); \ bus 52 drivers/pci/access.c (struct pci_bus *bus, unsigned int devfn, int pos, type value) \ bus 58 drivers/pci/access.c res = bus->ops->write(bus, devfn, pos, len, value); \ bus 77 drivers/pci/access.c int pci_generic_config_read(struct pci_bus *bus, unsigned int devfn, bus 82 drivers/pci/access.c addr = bus->ops->map_bus(bus, devfn, where); bus 99 drivers/pci/access.c int pci_generic_config_write(struct pci_bus *bus, unsigned int devfn, bus 104 drivers/pci/access.c addr = bus->ops->map_bus(bus, devfn, where); bus 119 drivers/pci/access.c int pci_generic_config_read32(struct pci_bus *bus, unsigned int devfn, bus 124 drivers/pci/access.c addr = bus->ops->map_bus(bus, devfn, where & ~0x3); bus 139 drivers/pci/access.c int pci_generic_config_write32(struct pci_bus *bus, unsigned int devfn, bus 145 drivers/pci/access.c addr = bus->ops->map_bus(bus, devfn, where & ~0x3); bus 163 drivers/pci/access.c dev_warn_ratelimited(&bus->dev, "%d-byte config write to %04x:%02x:%02x.%d offset %#x may corrupt adjacent RW1C bits\n", bus 164 drivers/pci/access.c size, pci_domain_nr(bus), bus->number, bus 183 drivers/pci/access.c struct pci_ops *pci_bus_set_ops(struct pci_bus *bus, struct pci_ops *ops) bus 189 drivers/pci/access.c old_ops = bus->ops; bus 190 drivers/pci/access.c bus->ops = ops; bus 232 drivers/pci/access.c ret = dev->bus->ops->read(dev->bus, dev->devfn, \ bus 251 drivers/pci/access.c ret = dev->bus->ops->write(dev->bus, dev->devfn, \ bus 533 drivers/pci/access.c return pci_bus_read_config_byte(dev->bus, dev->devfn, where, val); bus 543 drivers/pci/access.c return pci_bus_read_config_word(dev->bus, dev->devfn, where, val); bus 554 drivers/pci/access.c return pci_bus_read_config_dword(dev->bus, dev->devfn, where, val); bus 562 drivers/pci/access.c return pci_bus_write_config_byte(dev->bus, dev->devfn, where, val); bus 570 drivers/pci/access.c return pci_bus_write_config_word(dev->bus, dev->devfn, where, val); bus 579 drivers/pci/access.c return pci_bus_write_config_dword(dev->bus, dev->devfn, where, val); bus 47 drivers/pci/bus.c void pci_bus_add_resource(struct pci_bus *bus, struct resource *res, bus 54 drivers/pci/bus.c dev_err(&bus->dev, "can't add %pR resource\n", res); bus 60 drivers/pci/bus.c list_add_tail(&bus_res->list, &bus->resources); bus 63 drivers/pci/bus.c struct resource *pci_bus_resource_n(const struct pci_bus *bus, int n) bus 68 drivers/pci/bus.c return bus->resource[n]; bus 71 drivers/pci/bus.c list_for_each_entry(bus_res, &bus->resources, list) { bus 79 drivers/pci/bus.c void pci_bus_remove_resources(struct pci_bus *bus) bus 85 drivers/pci/bus.c bus->resource[i] = NULL; bus 87 drivers/pci/bus.c list_for_each_entry_safe(bus_res, tmp, &bus->resources, list) { bus 136 drivers/pci/bus.c static void pci_clip_resource_to_region(struct pci_bus *bus, bus 142 drivers/pci/bus.c pcibios_resource_to_bus(bus, &r, res); bus 151 drivers/pci/bus.c pcibios_bus_to_resource(bus, res, &r); bus 154 drivers/pci/bus.c static int pci_bus_alloc_from_region(struct pci_bus *bus, struct resource *res, bus 170 drivers/pci/bus.c pci_bus_for_each_resource(bus, r, i) { bus 187 drivers/pci/bus.c pci_clip_resource_to_region(bus, &avail, region); bus 224 drivers/pci/bus.c int pci_bus_alloc_resource(struct pci_bus *bus, struct resource *res, bus 237 drivers/pci/bus.c rc = pci_bus_alloc_from_region(bus, res, size, align, min, bus 243 drivers/pci/bus.c return pci_bus_alloc_from_region(bus, res, size, align, min, bus 249 drivers/pci/bus.c return pci_bus_alloc_from_region(bus, res, size, align, min, bus 263 drivers/pci/bus.c struct pci_bus *bus = dev->bus; bus 269 drivers/pci/bus.c pci_bus_for_each_resource(bus, r, i) { bus 299 drivers/pci/bus.c void __weak pcibios_resource_survey_bus(struct pci_bus *bus) { } bus 342 drivers/pci/bus.c void pci_bus_add_devices(const struct pci_bus *bus) bus 347 drivers/pci/bus.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 354 drivers/pci/bus.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 382 drivers/pci/bus.c struct pci_bus *bus; bus 386 drivers/pci/bus.c bus = top; bus 390 drivers/pci/bus.c if (next == &bus->devices) { bus 392 drivers/pci/bus.c if (bus == top) bus 394 drivers/pci/bus.c next = bus->self->bus_list.next; bus 395 drivers/pci/bus.c bus = bus->self->bus; bus 402 drivers/pci/bus.c bus = dev->subordinate; bus 414 drivers/pci/bus.c struct pci_bus *pci_bus_get(struct pci_bus *bus) bus 416 drivers/pci/bus.c if (bus) bus 417 drivers/pci/bus.c get_device(&bus->dev); bus 418 drivers/pci/bus.c return bus; bus 421 drivers/pci/bus.c void pci_bus_put(struct pci_bus *bus) bus 423 drivers/pci/bus.c if (bus) bus 424 drivers/pci/bus.c put_device(&bus->dev); bus 1261 drivers/pci/controller/dwc/pci-imx6.c struct pci_bus *bus = dev->bus; bus 1262 drivers/pci/controller/dwc/pci-imx6.c struct pcie_port *pp = bus->sysdata; bus 1265 drivers/pci/controller/dwc/pci-imx6.c if (!bus->dev.parent || !bus->dev.parent->parent) bus 1269 drivers/pci/controller/dwc/pci-imx6.c if (bus->dev.parent->parent->driver != &imx6_pcie_driver.driver) bus 1272 drivers/pci/controller/dwc/pci-imx6.c if (bus->number == pp->root_bus_nr) { bus 433 drivers/pci/controller/dwc/pci-keystone.c static int ks_pcie_rd_other_conf(struct pcie_port *pp, struct pci_bus *bus, bus 441 drivers/pci/controller/dwc/pci-keystone.c reg = CFG_BUS(bus->number) | CFG_DEVICE(PCI_SLOT(devfn)) | bus 443 drivers/pci/controller/dwc/pci-keystone.c if (bus->parent->number != pp->root_bus_nr) bus 450 drivers/pci/controller/dwc/pci-keystone.c static int ks_pcie_wr_other_conf(struct pcie_port *pp, struct pci_bus *bus, bus 458 drivers/pci/controller/dwc/pci-keystone.c reg = CFG_BUS(bus->number) | CFG_DEVICE(PCI_SLOT(devfn)) | bus 460 drivers/pci/controller/dwc/pci-keystone.c if (bus->parent->number != pp->root_bus_nr) bus 536 drivers/pci/controller/dwc/pci-keystone.c struct pci_bus *bus = dev->bus; bus 550 drivers/pci/controller/dwc/pci-keystone.c if (pci_is_root_bus(bus)) bus 554 drivers/pci/controller/dwc/pci-keystone.c while (!pci_is_root_bus(bus)) { bus 555 drivers/pci/controller/dwc/pci-keystone.c bridge = bus->self; bus 556 drivers/pci/controller/dwc/pci-keystone.c bus = bus->parent; bus 22 drivers/pci/controller/dwc/pcie-al.c static void __iomem *al_pcie_map_bus(struct pci_bus *bus, unsigned int devfn, bus 25 drivers/pci/controller/dwc/pcie-al.c struct pci_config_window *cfg = bus->sysdata; bus 29 drivers/pci/controller/dwc/pcie-al.c if (bus->number == cfg->busr.start) { bus 40 drivers/pci/controller/dwc/pcie-al.c return pci_ecam_map_bus(bus, devfn, where); bus 251 drivers/pci/controller/dwc/pcie-al.c static int al_pcie_rd_other_conf(struct pcie_port *pp, struct pci_bus *bus, bus 257 drivers/pci/controller/dwc/pcie-al.c unsigned int busnr = bus->number; bus 266 drivers/pci/controller/dwc/pcie-al.c size, pci_domain_nr(bus), bus->number, bus 273 drivers/pci/controller/dwc/pcie-al.c static int al_pcie_wr_other_conf(struct pcie_port *pp, struct pci_bus *bus, bus 279 drivers/pci/controller/dwc/pcie-al.c unsigned int busnr = bus->number; bus 288 drivers/pci/controller/dwc/pcie-al.c size, pci_domain_nr(bus), bus->number, bus 497 drivers/pci/controller/dwc/pcie-designware-host.c pp->root_bus = bridge->bus; bus 527 drivers/pci/controller/dwc/pcie-designware-host.c static int dw_pcie_access_other_conf(struct pcie_port *pp, struct pci_bus *bus, bus 537 drivers/pci/controller/dwc/pcie-designware-host.c busdev = PCIE_ATU_BUS(bus->number) | PCIE_ATU_DEV(PCI_SLOT(devfn)) | bus 540 drivers/pci/controller/dwc/pcie-designware-host.c if (bus->parent->number == pp->root_bus_nr) { bus 568 drivers/pci/controller/dwc/pcie-designware-host.c static int dw_pcie_rd_other_conf(struct pcie_port *pp, struct pci_bus *bus, bus 572 drivers/pci/controller/dwc/pcie-designware-host.c return pp->ops->rd_other_conf(pp, bus, devfn, where, bus 575 drivers/pci/controller/dwc/pcie-designware-host.c return dw_pcie_access_other_conf(pp, bus, devfn, where, size, val, bus 579 drivers/pci/controller/dwc/pcie-designware-host.c static int dw_pcie_wr_other_conf(struct pcie_port *pp, struct pci_bus *bus, bus 583 drivers/pci/controller/dwc/pcie-designware-host.c return pp->ops->wr_other_conf(pp, bus, devfn, where, bus 586 drivers/pci/controller/dwc/pcie-designware-host.c return dw_pcie_access_other_conf(pp, bus, devfn, where, size, &val, bus 590 drivers/pci/controller/dwc/pcie-designware-host.c static int dw_pcie_valid_device(struct pcie_port *pp, struct pci_bus *bus, bus 596 drivers/pci/controller/dwc/pcie-designware-host.c if (bus->number != pp->root_bus_nr) { bus 602 drivers/pci/controller/dwc/pcie-designware-host.c if (bus->number == pp->root_bus_nr && dev > 0) bus 608 drivers/pci/controller/dwc/pcie-designware-host.c static int dw_pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, bus 611 drivers/pci/controller/dwc/pcie-designware-host.c struct pcie_port *pp = bus->sysdata; bus 613 drivers/pci/controller/dwc/pcie-designware-host.c if (!dw_pcie_valid_device(pp, bus, PCI_SLOT(devfn))) { bus 618 drivers/pci/controller/dwc/pcie-designware-host.c if (bus->number == pp->root_bus_nr) bus 621 drivers/pci/controller/dwc/pcie-designware-host.c return dw_pcie_rd_other_conf(pp, bus, devfn, where, size, val); bus 624 drivers/pci/controller/dwc/pcie-designware-host.c static int dw_pcie_wr_conf(struct pci_bus *bus, u32 devfn, bus 627 drivers/pci/controller/dwc/pcie-designware-host.c struct pcie_port *pp = bus->sysdata; bus 629 drivers/pci/controller/dwc/pcie-designware-host.c if (!dw_pcie_valid_device(pp, bus, PCI_SLOT(devfn))) bus 632 drivers/pci/controller/dwc/pcie-designware-host.c if (bus->number == pp->root_bus_nr) bus 635 drivers/pci/controller/dwc/pcie-designware-host.c return dw_pcie_wr_other_conf(pp, bus, devfn, where, size, val); bus 155 drivers/pci/controller/dwc/pcie-designware.h int (*rd_other_conf)(struct pcie_port *pp, struct pci_bus *bus, bus 157 drivers/pci/controller/dwc/pcie-designware.h int (*wr_other_conf)(struct pcie_port *pp, struct pci_bus *bus, bus 26 drivers/pci/controller/dwc/pcie-hisi.c static int hisi_pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, bus 29 drivers/pci/controller/dwc/pcie-hisi.c struct pci_config_window *cfg = bus->sysdata; bus 32 drivers/pci/controller/dwc/pcie-hisi.c if (bus->number == cfg->busr.start) { bus 37 drivers/pci/controller/dwc/pcie-hisi.c return pci_generic_config_read32(bus, devfn, where, bus 41 drivers/pci/controller/dwc/pcie-hisi.c return pci_generic_config_read(bus, devfn, where, size, val); bus 44 drivers/pci/controller/dwc/pcie-hisi.c static int hisi_pcie_wr_conf(struct pci_bus *bus, u32 devfn, bus 47 drivers/pci/controller/dwc/pcie-hisi.c struct pci_config_window *cfg = bus->sysdata; bus 50 drivers/pci/controller/dwc/pcie-hisi.c if (bus->number == cfg->busr.start) { bus 55 drivers/pci/controller/dwc/pcie-hisi.c return pci_generic_config_write32(bus, devfn, where, bus 59 drivers/pci/controller/dwc/pcie-hisi.c return pci_generic_config_write(bus, devfn, where, size, val); bus 62 drivers/pci/controller/dwc/pcie-hisi.c static void __iomem *hisi_pcie_map_bus(struct pci_bus *bus, unsigned int devfn, bus 65 drivers/pci/controller/dwc/pcie-hisi.c struct pci_config_window *cfg = bus->sysdata; bus 68 drivers/pci/controller/dwc/pcie-hisi.c if (bus->number == cfg->busr.start) bus 71 drivers/pci/controller/dwc/pcie-hisi.c return pci_ecam_map_bus(bus, devfn, where); bus 170 drivers/pci/controller/pci-aardvark.c #define PCIE_CONF_BUS(bus) (((bus) & 0xff) << 20) bus 174 drivers/pci/controller/pci-aardvark.c #define PCIE_CONF_ADDR(bus, devfn, where) \ bus 175 drivers/pci/controller/pci-aardvark.c (PCIE_CONF_BUS(bus) | PCIE_CONF_DEV(PCI_SLOT(devfn)) | \ bus 538 drivers/pci/controller/pci-aardvark.c static bool advk_pcie_valid_device(struct advk_pcie *pcie, struct pci_bus *bus, bus 541 drivers/pci/controller/pci-aardvark.c if ((bus->number == pcie->root_bus_nr) && PCI_SLOT(devfn) != 0) bus 547 drivers/pci/controller/pci-aardvark.c static int advk_pcie_rd_conf(struct pci_bus *bus, u32 devfn, bus 550 drivers/pci/controller/pci-aardvark.c struct advk_pcie *pcie = bus->sysdata; bus 554 drivers/pci/controller/pci-aardvark.c if (!advk_pcie_valid_device(pcie, bus, devfn)) { bus 559 drivers/pci/controller/pci-aardvark.c if (bus->number == pcie->root_bus_nr) bus 570 drivers/pci/controller/pci-aardvark.c if (bus->primary == pcie->root_bus_nr) bus 577 drivers/pci/controller/pci-aardvark.c reg = PCIE_CONF_ADDR(bus->number, devfn, where); bus 603 drivers/pci/controller/pci-aardvark.c static int advk_pcie_wr_conf(struct pci_bus *bus, u32 devfn, bus 606 drivers/pci/controller/pci-aardvark.c struct advk_pcie *pcie = bus->sysdata; bus 612 drivers/pci/controller/pci-aardvark.c if (!advk_pcie_valid_device(pcie, bus, devfn)) bus 615 drivers/pci/controller/pci-aardvark.c if (bus->number == pcie->root_bus_nr) bus 629 drivers/pci/controller/pci-aardvark.c if (bus->primary == pcie->root_bus_nr) bus 636 drivers/pci/controller/pci-aardvark.c reg = PCIE_CONF_ADDR(bus->number, devfn, where); bus 126 drivers/pci/controller/pci-ftpci100.c struct pci_bus *bus; bus 210 drivers/pci/controller/pci-ftpci100.c static int faraday_pci_read_config(struct pci_bus *bus, unsigned int fn, bus 213 drivers/pci/controller/pci-ftpci100.c struct faraday_pci *p = bus->sysdata; bus 215 drivers/pci/controller/pci-ftpci100.c dev_dbg(&bus->dev, bus 219 drivers/pci/controller/pci-ftpci100.c return faraday_raw_pci_read_config(p, bus->number, fn, config, size, value); bus 252 drivers/pci/controller/pci-ftpci100.c static int faraday_pci_write_config(struct pci_bus *bus, unsigned int fn, bus 255 drivers/pci/controller/pci-ftpci100.c struct faraday_pci *p = bus->sysdata; bus 257 drivers/pci/controller/pci-ftpci100.c dev_dbg(&bus->dev, bus 261 drivers/pci/controller/pci-ftpci100.c return faraday_raw_pci_write_config(p, bus->number, fn, config, size, bus 578 drivers/pci/controller/pci-ftpci100.c p->bus = host->bus; bus 579 drivers/pci/controller/pci-ftpci100.c p->bus->max_bus_speed = max_bus_speed; bus 580 drivers/pci/controller/pci-ftpci100.c p->bus->cur_bus_speed = cur_bus_speed; bus 582 drivers/pci/controller/pci-ftpci100.c pci_bus_assign_resources(p->bus); bus 583 drivers/pci/controller/pci-ftpci100.c pci_bus_add_devices(p->bus); bus 95 drivers/pci/controller/pci-host-common.c platform_set_drvdata(pdev, bridge->bus); bus 101 drivers/pci/controller/pci-host-common.c struct pci_bus *bus = platform_get_drvdata(pdev); bus 104 drivers/pci/controller/pci-host-common.c pci_stop_root_bus(bus); bus 105 drivers/pci/controller/pci-host-common.c pci_remove_root_bus(bus); bus 27 drivers/pci/controller/pci-host-generic.c static bool pci_dw_valid_device(struct pci_bus *bus, unsigned int devfn) bus 29 drivers/pci/controller/pci-host-generic.c struct pci_config_window *cfg = bus->sysdata; bus 37 drivers/pci/controller/pci-host-generic.c if (bus->number == cfg->busr.start && PCI_SLOT(devfn) > 0) bus 43 drivers/pci/controller/pci-host-generic.c static void __iomem *pci_dw_ecam_map_bus(struct pci_bus *bus, bus 46 drivers/pci/controller/pci-host-generic.c if (!pci_dw_valid_device(bus, devfn)) bus 49 drivers/pci/controller/pci-host-generic.c return pci_ecam_map_bus(bus, devfn, where); bus 507 drivers/pci/controller/pci-hyperv.c struct hv_pcibus_device *bus; bus 805 drivers/pci/controller/pci-hyperv.c static int hv_pcifront_read_config(struct pci_bus *bus, unsigned int devfn, bus 809 drivers/pci/controller/pci-hyperv.c container_of(bus->sysdata, struct hv_pcibus_device, sysdata); bus 833 drivers/pci/controller/pci-hyperv.c static int hv_pcifront_write_config(struct pci_bus *bus, unsigned int devfn, bus 837 drivers/pci/controller/pci-hyperv.c container_of(bus->sysdata, struct hv_pcibus_device, sysdata); bus 937 drivers/pci/controller/pci-hyperv.c container_of(pdev->bus->sysdata, struct hv_pcibus_device, bus 1017 drivers/pci/controller/pci-hyperv.c container_of(pdev->bus->sysdata, struct hv_pcibus_device, bus 1087 drivers/pci/controller/pci-hyperv.c container_of(pdev->bus->sysdata, struct hv_pcibus_device, bus 1202 drivers/pci/controller/pci-hyperv.c pbus = pdev->bus; bus 1375 drivers/pci/controller/pci-hyperv.c pbus = pdev->bus; bus 1985 drivers/pci/controller/pci-hyperv.c hbus = dr_wrk->bus; bus 2123 drivers/pci/controller/pci-hyperv.c dr_wrk->bus = hbus; bus 50 drivers/pci/controller/pci-mvebu.c #define PCIE_CONF_ADDR(bus, devfn, where) \ bus 51 drivers/pci/controller/pci-mvebu.c (PCIE_CONF_BUS(bus) | PCIE_CONF_DEV(PCI_SLOT(devfn)) | \ bus 229 drivers/pci/controller/pci-mvebu.c struct pci_bus *bus, bus 234 drivers/pci/controller/pci-mvebu.c mvebu_writel(port, PCIE_CONF_ADDR(bus->number, devfn, where), bus 253 drivers/pci/controller/pci-mvebu.c struct pci_bus *bus, bus 258 drivers/pci/controller/pci-mvebu.c mvebu_writel(port, PCIE_CONF_ADDR(bus->number, devfn, where), bus 595 drivers/pci/controller/pci-mvebu.c struct pci_bus *bus, bus 603 drivers/pci/controller/pci-mvebu.c if (bus->number == 0 && port->devfn == devfn) bus 605 drivers/pci/controller/pci-mvebu.c if (bus->number != 0 && bus 606 drivers/pci/controller/pci-mvebu.c bus->number >= port->bridge.conf.secondary_bus && bus 607 drivers/pci/controller/pci-mvebu.c bus->number <= port->bridge.conf.subordinate_bus) bus 615 drivers/pci/controller/pci-mvebu.c static int mvebu_pcie_wr_conf(struct pci_bus *bus, u32 devfn, bus 618 drivers/pci/controller/pci-mvebu.c struct mvebu_pcie *pcie = bus->sysdata; bus 622 drivers/pci/controller/pci-mvebu.c port = mvebu_pcie_find_port(pcie, bus, devfn); bus 627 drivers/pci/controller/pci-mvebu.c if (bus->number == 0) bus 635 drivers/pci/controller/pci-mvebu.c ret = mvebu_pcie_hw_wr_conf(port, bus, devfn, bus 642 drivers/pci/controller/pci-mvebu.c static int mvebu_pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, bus 645 drivers/pci/controller/pci-mvebu.c struct mvebu_pcie *pcie = bus->sysdata; bus 649 drivers/pci/controller/pci-mvebu.c port = mvebu_pcie_find_port(pcie, bus, devfn); bus 656 drivers/pci/controller/pci-mvebu.c if (bus->number == 0) bus 666 drivers/pci/controller/pci-mvebu.c ret = mvebu_pcie_hw_rd_conf(port, bus, devfn, bus 683 drivers/pci/controller/pci-mvebu.c if (dev->bus->number != 0) bus 1013 drivers/pci/controller/pci-mvebu.c struct pci_bus *bus, *child; bus 1030 drivers/pci/controller/pci-mvebu.c bus = bridge->bus; bus 1038 drivers/pci/controller/pci-mvebu.c pci_bus_claim_resources(bus); bus 1040 drivers/pci/controller/pci-mvebu.c pci_bus_size_bridges(bus); bus 1041 drivers/pci/controller/pci-mvebu.c pci_bus_assign_resources(bus); bus 1043 drivers/pci/controller/pci-mvebu.c list_for_each_entry(child, &bus->children, node) bus 1047 drivers/pci/controller/pci-mvebu.c pci_bus_add_devices(bus); bus 109 drivers/pci/controller/pci-rcar-gen2.c static void __iomem *rcar_pci_cfg_base(struct pci_bus *bus, unsigned int devfn, bus 112 drivers/pci/controller/pci-rcar-gen2.c struct pci_sys_data *sys = bus->sysdata; bus 116 drivers/pci/controller/pci-rcar-gen2.c if (sys->busnr != bus->number || PCI_FUNC(devfn)) bus 138 drivers/pci/controller/pci-rcar-gen2.c struct pci_sys_data *sys = dev->bus->sysdata; bus 455 drivers/pci/controller/pci-tegra.c static unsigned int tegra_pcie_conf_offset(u8 bus, unsigned int devfn, bus 458 drivers/pci/controller/pci-tegra.c return ((where & 0xf00) << 16) | (bus << 16) | (PCI_SLOT(devfn) << 11) | bus 462 drivers/pci/controller/pci-tegra.c static void __iomem *tegra_pcie_map_bus(struct pci_bus *bus, bus 466 drivers/pci/controller/pci-tegra.c struct tegra_pcie *pcie = bus->sysdata; bus 469 drivers/pci/controller/pci-tegra.c if (bus->number == 0) { bus 483 drivers/pci/controller/pci-tegra.c offset = tegra_pcie_conf_offset(bus->number, devfn, where); bus 496 drivers/pci/controller/pci-tegra.c static int tegra_pcie_config_read(struct pci_bus *bus, unsigned int devfn, bus 499 drivers/pci/controller/pci-tegra.c if (bus->number == 0) bus 500 drivers/pci/controller/pci-tegra.c return pci_generic_config_read32(bus, devfn, where, size, bus 503 drivers/pci/controller/pci-tegra.c return pci_generic_config_read(bus, devfn, where, size, value); bus 506 drivers/pci/controller/pci-tegra.c static int tegra_pcie_config_write(struct pci_bus *bus, unsigned int devfn, bus 509 drivers/pci/controller/pci-tegra.c if (bus->number == 0) bus 510 drivers/pci/controller/pci-tegra.c return pci_generic_config_write32(bus, devfn, where, size, bus 513 drivers/pci/controller/pci-tegra.c return pci_generic_config_write(bus, devfn, where, size, value); bus 834 drivers/pci/controller/pci-tegra.c struct tegra_pcie *pcie = pdev->bus->sysdata; bus 2822 drivers/pci/controller/pci-tegra.c pci_bus_size_bridges(host->bus); bus 2823 drivers/pci/controller/pci-tegra.c pci_bus_assign_resources(host->bus); bus 2825 drivers/pci/controller/pci-tegra.c list_for_each_entry(child, &host->bus->children, node) bus 2828 drivers/pci/controller/pci-tegra.c pci_bus_add_devices(host->bus); bus 2859 drivers/pci/controller/pci-tegra.c pci_stop_root_bus(host->bus); bus 2860 drivers/pci/controller/pci-tegra.c pci_remove_root_bus(host->bus); bus 29 drivers/pci/controller/pci-thunder-ecam.c static int handle_ea_bar(u32 e0, int bar, struct pci_bus *bus, bus 43 drivers/pci/controller/pci-thunder-ecam.c addr = bus->ops->map_bus(bus, devfn, bar); /* BAR 0 */ bus 58 drivers/pci/controller/pci-thunder-ecam.c addr = bus->ops->map_bus(bus, devfn, bar); /* BAR 0 */ bus 74 drivers/pci/controller/pci-thunder-ecam.c addr = bus->ops->map_bus(bus, devfn, bar + 4); /* BAR 1 */ bus 86 drivers/pci/controller/pci-thunder-ecam.c static int thunder_ecam_p2_config_read(struct pci_bus *bus, unsigned int devfn, bus 89 drivers/pci/controller/pci-thunder-ecam.c struct pci_config_window *cfg = bus->sysdata; bus 103 drivers/pci/controller/pci-thunder-ecam.c return pci_generic_config_read(bus, devfn, where, size, val); bus 106 drivers/pci/controller/pci-thunder-ecam.c addr = bus->ops->map_bus(bus, devfn, where_a); bus 127 drivers/pci/controller/pci-thunder-ecam.c static int thunder_ecam_config_read(struct pci_bus *bus, unsigned int devfn, bus 137 drivers/pci/controller/pci-thunder-ecam.c addr = bus->ops->map_bus(bus, devfn, 0xc); bus 148 drivers/pci/controller/pci-thunder-ecam.c addr = bus->ops->map_bus(bus, devfn, 8); bus 162 drivers/pci/controller/pci-thunder-ecam.c return thunder_ecam_p2_config_read(bus, devfn, where, bus 178 drivers/pci/controller/pci-thunder-ecam.c addr = bus->ops->map_bus(bus, devfn, 0); bus 198 drivers/pci/controller/pci-thunder-ecam.c addr = bus->ops->map_bus(bus, devfn, 0x70); bus 213 drivers/pci/controller/pci-thunder-ecam.c addr = bus->ops->map_bus(bus, devfn, where_a); bus 240 drivers/pci/controller/pci-thunder-ecam.c 0x10, bus, devfn, where, bus 245 drivers/pci/controller/pci-thunder-ecam.c 0x20, bus, devfn, where, bus 250 drivers/pci/controller/pci-thunder-ecam.c 0x18, bus, devfn, where, bus 255 drivers/pci/controller/pci-thunder-ecam.c 0x1a4, bus, devfn, where, bus 260 drivers/pci/controller/pci-thunder-ecam.c 0x1b4, bus, devfn, where, bus 270 drivers/pci/controller/pci-thunder-ecam.c addr = bus->ops->map_bus(bus, devfn, where_a); bus 330 drivers/pci/controller/pci-thunder-ecam.c return pci_generic_config_read(bus, devfn, where, size, val); bus 333 drivers/pci/controller/pci-thunder-ecam.c static int thunder_ecam_config_write(struct pci_bus *bus, unsigned int devfn, bus 345 drivers/pci/controller/pci-thunder-ecam.c return pci_generic_config_write(bus, devfn, where, size, val); bus 26 drivers/pci/controller/pci-thunder-pem.c static int thunder_pem_bridge_read(struct pci_bus *bus, unsigned int devfn, bus 30 drivers/pci/controller/pci-thunder-pem.c struct pci_config_window *cfg = bus->sysdata; bus 128 drivers/pci/controller/pci-thunder-pem.c static int thunder_pem_config_read(struct pci_bus *bus, unsigned int devfn, bus 131 drivers/pci/controller/pci-thunder-pem.c struct pci_config_window *cfg = bus->sysdata; bus 133 drivers/pci/controller/pci-thunder-pem.c if (bus->number < cfg->busr.start || bus 134 drivers/pci/controller/pci-thunder-pem.c bus->number > cfg->busr.end) bus 141 drivers/pci/controller/pci-thunder-pem.c if (bus->number == cfg->busr.start) bus 142 drivers/pci/controller/pci-thunder-pem.c return thunder_pem_bridge_read(bus, devfn, where, size, val); bus 144 drivers/pci/controller/pci-thunder-pem.c return pci_generic_config_read(bus, devfn, where, size, val); bus 204 drivers/pci/controller/pci-thunder-pem.c static int thunder_pem_bridge_write(struct pci_bus *bus, unsigned int devfn, bus 207 drivers/pci/controller/pci-thunder-pem.c struct pci_config_window *cfg = bus->sysdata; bus 277 drivers/pci/controller/pci-thunder-pem.c static int thunder_pem_config_write(struct pci_bus *bus, unsigned int devfn, bus 280 drivers/pci/controller/pci-thunder-pem.c struct pci_config_window *cfg = bus->sysdata; bus 282 drivers/pci/controller/pci-thunder-pem.c if (bus->number < cfg->busr.start || bus 283 drivers/pci/controller/pci-thunder-pem.c bus->number > cfg->busr.end) bus 289 drivers/pci/controller/pci-thunder-pem.c if (bus->number == cfg->busr.start) bus 290 drivers/pci/controller/pci-thunder-pem.c return thunder_pem_bridge_write(bus, devfn, where, size, val); bus 293 drivers/pci/controller/pci-thunder-pem.c return pci_generic_config_write(bus, devfn, where, size, val); bus 242 drivers/pci/controller/pci-v3-semi.c struct pci_bus *bus; bus 315 drivers/pci/controller/pci-v3-semi.c static void __iomem *v3_map_bus(struct pci_bus *bus, bus 318 drivers/pci/controller/pci-v3-semi.c struct v3_pci *v3 = bus->sysdata; bus 321 drivers/pci/controller/pci-v3-semi.c busnr = bus->number; bus 407 drivers/pci/controller/pci-v3-semi.c static int v3_pci_read_config(struct pci_bus *bus, unsigned int fn, bus 410 drivers/pci/controller/pci-v3-semi.c struct v3_pci *v3 = bus->sysdata; bus 413 drivers/pci/controller/pci-v3-semi.c dev_dbg(&bus->dev, bus 416 drivers/pci/controller/pci-v3-semi.c ret = pci_generic_config_read(bus, fn, config, size, value); bus 421 drivers/pci/controller/pci-v3-semi.c static int v3_pci_write_config(struct pci_bus *bus, unsigned int fn, bus 424 drivers/pci/controller/pci-v3-semi.c struct v3_pci *v3 = bus->sysdata; bus 427 drivers/pci/controller/pci-v3-semi.c dev_dbg(&bus->dev, bus 430 drivers/pci/controller/pci-v3-semi.c ret = pci_generic_config_write(bus, fn, config, size, value); bus 940 drivers/pci/controller/pci-v3-semi.c v3->bus = host->bus; bus 942 drivers/pci/controller/pci-v3-semi.c pci_bus_assign_resources(v3->bus); bus 943 drivers/pci/controller/pci-v3-semi.c pci_bus_add_devices(v3->bus); bus 48 drivers/pci/controller/pci-versatile.c static void __iomem *versatile_map_bus(struct pci_bus *bus, bus 51 drivers/pci/controller/pci-versatile.c unsigned int busnr = bus->number; bus 121 drivers/pci/controller/pci-versatile.c struct pci_bus *bus, *child; bus 212 drivers/pci/controller/pci-versatile.c bus = bridge->bus; bus 214 drivers/pci/controller/pci-versatile.c pci_assign_unassigned_bus_resources(bus); bus 215 drivers/pci/controller/pci-versatile.c list_for_each_entry(child, &bus->children, node) bus 217 drivers/pci/controller/pci-versatile.c pci_bus_add_devices(bus); bus 90 drivers/pci/controller/pci-xgene.c static inline struct xgene_pcie_port *pcie_bus_to_port(struct pci_bus *bus) bus 95 drivers/pci/controller/pci-xgene.c return (struct xgene_pcie_port *)(bus->sysdata); bus 97 drivers/pci/controller/pci-xgene.c cfg = bus->sysdata; bus 105 drivers/pci/controller/pci-xgene.c static void __iomem *xgene_pcie_get_cfg_base(struct pci_bus *bus) bus 107 drivers/pci/controller/pci-xgene.c struct xgene_pcie_port *port = pcie_bus_to_port(bus); bus 109 drivers/pci/controller/pci-xgene.c if (bus->number >= (bus->primary + 1)) bus 119 drivers/pci/controller/pci-xgene.c static void xgene_pcie_set_rtdid_reg(struct pci_bus *bus, uint devfn) bus 121 drivers/pci/controller/pci-xgene.c struct xgene_pcie_port *port = pcie_bus_to_port(bus); bus 125 drivers/pci/controller/pci-xgene.c b = bus->number; bus 129 drivers/pci/controller/pci-xgene.c if (!pci_is_root_bus(bus)) bus 145 drivers/pci/controller/pci-xgene.c static bool xgene_pcie_hide_rc_bars(struct pci_bus *bus, int offset) bus 147 drivers/pci/controller/pci-xgene.c if (pci_is_root_bus(bus) && ((offset == PCI_BASE_ADDRESS_0) || bus 154 drivers/pci/controller/pci-xgene.c static void __iomem *xgene_pcie_map_bus(struct pci_bus *bus, unsigned int devfn, bus 157 drivers/pci/controller/pci-xgene.c if ((pci_is_root_bus(bus) && devfn != 0) || bus 158 drivers/pci/controller/pci-xgene.c xgene_pcie_hide_rc_bars(bus, offset)) bus 161 drivers/pci/controller/pci-xgene.c xgene_pcie_set_rtdid_reg(bus, devfn); bus 162 drivers/pci/controller/pci-xgene.c return xgene_pcie_get_cfg_base(bus) + offset; bus 165 drivers/pci/controller/pci-xgene.c static int xgene_pcie_config_read32(struct pci_bus *bus, unsigned int devfn, bus 168 drivers/pci/controller/pci-xgene.c struct xgene_pcie_port *port = pcie_bus_to_port(bus); bus 170 drivers/pci/controller/pci-xgene.c if (pci_generic_config_read32(bus, devfn, where & ~0x3, 4, val) != bus 183 drivers/pci/controller/pci-xgene.c if (pci_is_root_bus(bus) && (port->version == XGENE_PCIE_IP_VER_1) && bus 611 drivers/pci/controller/pci-xgene.c struct pci_bus *bus, *child; bus 662 drivers/pci/controller/pci-xgene.c bus = bridge->bus; bus 664 drivers/pci/controller/pci-xgene.c pci_assign_unassigned_bus_resources(bus); bus 665 drivers/pci/controller/pci-xgene.c list_for_each_entry(child, &bus->children, node) bus 667 drivers/pci/controller/pci-xgene.c pci_bus_add_devices(bus); bus 59 drivers/pci/controller/pcie-altera.c #define TLP_REQ_ID(bus, devfn) (((bus) << 8) | (devfn)) bus 65 drivers/pci/controller/pcie-altera.c #define TLP_CFG_DW2(bus, devfn, offset) \ bus 66 drivers/pci/controller/pcie-altera.c (((bus) << 24) | ((devfn) << 16) | (offset)) bus 160 drivers/pci/controller/pcie-altera.c static bool altera_pcie_hide_rc_bar(struct pci_bus *bus, unsigned int devfn, bus 163 drivers/pci/controller/pcie-altera.c if (pci_is_root_bus(bus) && (devfn == 0) && bus 185 drivers/pci/controller/pcie-altera.c struct pci_bus *bus, int dev) bus 188 drivers/pci/controller/pcie-altera.c if (bus->number != pcie->root_bus_nr) { bus 194 drivers/pci/controller/pcie-altera.c if (bus->number == pcie->root_bus_nr && dev > 0) bus 322 drivers/pci/controller/pcie-altera.c static void get_tlp_header(struct altera_pcie *pcie, u8 bus, u32 devfn, bus 331 drivers/pci/controller/pcie-altera.c cfg = (bus == pcie->root_bus_nr) ? cfg0 : cfg1; bus 333 drivers/pci/controller/pcie-altera.c cfg = (bus > S10_RP_SECONDARY(pcie)) ? cfg0 : cfg1; bus 337 drivers/pci/controller/pcie-altera.c headers[2] = TLP_CFG_DW2(bus, devfn, where); bus 340 drivers/pci/controller/pcie-altera.c static int tlp_cfg_dword_read(struct altera_pcie *pcie, u8 bus, u32 devfn, bus 345 drivers/pci/controller/pcie-altera.c get_tlp_header(pcie, bus, devfn, where, byte_en, true, bus 353 drivers/pci/controller/pcie-altera.c static int tlp_cfg_dword_write(struct altera_pcie *pcie, u8 bus, u32 devfn, bus 359 drivers/pci/controller/pcie-altera.c get_tlp_header(pcie, bus, devfn, where, byte_en, false, bus 378 drivers/pci/controller/pcie-altera.c if ((bus == pcie->root_bus_nr) && (where == PCI_PRIMARY_BUS)) bus 506 drivers/pci/controller/pcie-altera.c static int altera_pcie_cfg_read(struct pci_bus *bus, unsigned int devfn, bus 509 drivers/pci/controller/pcie-altera.c struct altera_pcie *pcie = bus->sysdata; bus 511 drivers/pci/controller/pcie-altera.c if (altera_pcie_hide_rc_bar(bus, devfn, where)) bus 514 drivers/pci/controller/pcie-altera.c if (!altera_pcie_valid_device(pcie, bus, PCI_SLOT(devfn))) { bus 519 drivers/pci/controller/pcie-altera.c return _altera_pcie_cfg_read(pcie, bus->number, devfn, where, size, bus 523 drivers/pci/controller/pcie-altera.c static int altera_pcie_cfg_write(struct pci_bus *bus, unsigned int devfn, bus 526 drivers/pci/controller/pcie-altera.c struct altera_pcie *pcie = bus->sysdata; bus 528 drivers/pci/controller/pcie-altera.c if (altera_pcie_hide_rc_bar(bus, devfn, where)) bus 531 drivers/pci/controller/pcie-altera.c if (!altera_pcie_valid_device(pcie, bus, PCI_SLOT(devfn))) bus 534 drivers/pci/controller/pcie-altera.c return _altera_pcie_cfg_write(pcie, bus->number, devfn, where, size, bus 810 drivers/pci/controller/pcie-altera.c struct pci_bus *bus; bus 868 drivers/pci/controller/pcie-altera.c bus = bridge->bus; bus 870 drivers/pci/controller/pcie-altera.c pci_assign_unassigned_bus_resources(bus); bus 873 drivers/pci/controller/pcie-altera.c list_for_each_entry(child, &bus->children, node) bus 876 drivers/pci/controller/pcie-altera.c pci_bus_add_devices(bus); bus 885 drivers/pci/controller/pcie-altera.c pci_stop_root_bus(bridge->bus); bus 886 drivers/pci/controller/pcie-altera.c pci_remove_root_bus(bridge->bus); bus 41 drivers/pci/controller/pcie-cadence-host.c static void __iomem *cdns_pci_map_bus(struct pci_bus *bus, unsigned int devfn, bus 44 drivers/pci/controller/pcie-cadence-host.c struct pci_host_bridge *bridge = pci_find_host_bridge(bus); bus 47 drivers/pci/controller/pcie-cadence-host.c unsigned int busn = bus->number; bus 219 drivers/pci/controller/pcie-cadence-host.c rc->pcie.bus = bus_range->start; bus 312 drivers/pci/controller/pcie-cadence-host.c bridge->busnr = pcie->bus; bus 63 drivers/pci/controller/pcie-cadence.c desc1 |= CDNS_PCIE_AT_OB_REGION_DESC1_BUS(pcie->bus); bus 97 drivers/pci/controller/pcie-cadence.c desc1 |= CDNS_PCIE_AT_OB_REGION_DESC1_BUS(pcie->bus); bus 119 drivers/pci/controller/pcie-cadence.h #define CDNS_PCIE_AT_OB_REGION_PCI_ADDR0_BUS(bus) \ bus 120 drivers/pci/controller/pcie-cadence.h (((bus) << 20) & CDNS_PCIE_AT_OB_REGION_PCI_ADDR0_BUS_MASK) bus 146 drivers/pci/controller/pcie-cadence.h #define CDNS_PCIE_AT_OB_REGION_DESC1_BUS(bus) \ bus 147 drivers/pci/controller/pcie-cadence.h ((bus) & CDNS_PCIE_AT_OB_REGION_DESC1_BUS_MASK) bus 235 drivers/pci/controller/pcie-cadence.h u8 bus; bus 399 drivers/pci/controller/pcie-iproc.c static inline struct iproc_pcie *iproc_data(struct pci_bus *bus) bus 401 drivers/pci/controller/pcie-iproc.c struct iproc_pcie *pcie = bus->sysdata; bus 444 drivers/pci/controller/pcie-iproc.c static inline void iproc_pcie_apb_err_disable(struct pci_bus *bus, bus 447 drivers/pci/controller/pcie-iproc.c struct iproc_pcie *pcie = iproc_data(bus); bus 450 drivers/pci/controller/pcie-iproc.c if (bus->number && pcie->has_apb_err_disable) { bus 573 drivers/pci/controller/pcie-iproc.c static int iproc_pcie_config_read(struct pci_bus *bus, unsigned int devfn, bus 576 drivers/pci/controller/pcie-iproc.c struct iproc_pcie *pcie = iproc_data(bus); bus 579 drivers/pci/controller/pcie-iproc.c unsigned int busno = bus->number; bus 586 drivers/pci/controller/pcie-iproc.c ret = pci_generic_config_read32(bus, devfn, where, size, val); bus 655 drivers/pci/controller/pcie-iproc.c static void __iomem *iproc_pcie_bus_map_cfg_bus(struct pci_bus *bus, bus 659 drivers/pci/controller/pcie-iproc.c return iproc_pcie_map_cfg_bus(iproc_data(bus), bus->number, devfn, bus 707 drivers/pci/controller/pcie-iproc.c static int iproc_pcie_config_read32(struct pci_bus *bus, unsigned int devfn, bus 711 drivers/pci/controller/pcie-iproc.c struct iproc_pcie *pcie = iproc_data(bus); bus 713 drivers/pci/controller/pcie-iproc.c iproc_pcie_apb_err_disable(bus, true); bus 715 drivers/pci/controller/pcie-iproc.c ret = iproc_pcie_config_read(bus, devfn, where, size, val); bus 717 drivers/pci/controller/pcie-iproc.c ret = pci_generic_config_read32(bus, devfn, where, size, val); bus 718 drivers/pci/controller/pcie-iproc.c iproc_pcie_apb_err_disable(bus, false); bus 723 drivers/pci/controller/pcie-iproc.c static int iproc_pcie_config_write32(struct pci_bus *bus, unsigned int devfn, bus 728 drivers/pci/controller/pcie-iproc.c iproc_pcie_apb_err_disable(bus, true); bus 729 drivers/pci/controller/pcie-iproc.c ret = pci_generic_config_write32(bus, devfn, where, size, val); bus 730 drivers/pci/controller/pcie-iproc.c iproc_pcie_apb_err_disable(bus, false); bus 1560 drivers/pci/controller/pcie-iproc.c pci_assign_unassigned_bus_resources(host->bus); bus 1562 drivers/pci/controller/pcie-iproc.c pcie->root_bus = host->bus; bus 1564 drivers/pci/controller/pcie-iproc.c list_for_each_entry(child, &host->bus->children, node) bus 1567 drivers/pci/controller/pcie-iproc.c pci_bus_add_devices(host->bus); bus 1599 drivers/pci/controller/pcie-iproc.c struct iproc_pcie *pcie = iproc_data(pdev->bus); bus 53 drivers/pci/controller/pcie-mediatek.c #define PCIE_CONF_BUS(bus) (((bus) << 16) & GENMASK(23, 16)) bus 54 drivers/pci/controller/pcie-mediatek.c #define PCIE_CONF_ADDR(regn, fun, dev, bus) \ bus 56 drivers/pci/controller/pcie-mediatek.c PCIE_CONF_DEV(dev) | PCIE_CONF_BUS(bus)) bus 121 drivers/pci/controller/pcie-mediatek.c #define CFG_DW2_BUS(bus) (((bus) << 24) & GENMASK(31, 24)) bus 126 drivers/pci/controller/pcie-mediatek.c #define CFG_HEADER_DW2(regn, fun, dev, bus) \ bus 128 drivers/pci/controller/pcie-mediatek.c CFG_DW2_DEV(dev) | CFG_DW2_BUS(bus)) bus 281 drivers/pci/controller/pcie-mediatek.c static int mtk_pcie_hw_rd_cfg(struct mtk_pcie_port *port, u32 bus, u32 devfn, bus 290 drivers/pci/controller/pcie-mediatek.c writel(CFG_HEADER_DW2(where, PCI_FUNC(devfn), PCI_SLOT(devfn), bus), bus 313 drivers/pci/controller/pcie-mediatek.c static int mtk_pcie_hw_wr_cfg(struct mtk_pcie_port *port, u32 bus, u32 devfn, bus 320 drivers/pci/controller/pcie-mediatek.c writel(CFG_HEADER_DW2(where, PCI_FUNC(devfn), PCI_SLOT(devfn), bus), bus 336 drivers/pci/controller/pcie-mediatek.c static struct mtk_pcie_port *mtk_pcie_find_port(struct pci_bus *bus, bus 339 drivers/pci/controller/pcie-mediatek.c struct mtk_pcie *pcie = bus->sysdata; bus 347 drivers/pci/controller/pcie-mediatek.c while (bus && bus->number) { bus 348 drivers/pci/controller/pcie-mediatek.c dev = bus->self; bus 349 drivers/pci/controller/pcie-mediatek.c bus = dev->bus; bus 360 drivers/pci/controller/pcie-mediatek.c static int mtk_pcie_config_read(struct pci_bus *bus, unsigned int devfn, bus 364 drivers/pci/controller/pcie-mediatek.c u32 bn = bus->number; bus 367 drivers/pci/controller/pcie-mediatek.c port = mtk_pcie_find_port(bus, devfn); bus 380 drivers/pci/controller/pcie-mediatek.c static int mtk_pcie_config_write(struct pci_bus *bus, unsigned int devfn, bus 384 drivers/pci/controller/pcie-mediatek.c u32 bn = bus->number; bus 386 drivers/pci/controller/pcie-mediatek.c port = mtk_pcie_find_port(bus, devfn); bus 735 drivers/pci/controller/pcie-mediatek.c static void __iomem *mtk_pcie_map_bus(struct pci_bus *bus, bus 738 drivers/pci/controller/pcie-mediatek.c struct mtk_pcie *pcie = bus->sysdata; bus 741 drivers/pci/controller/pcie-mediatek.c bus->number), pcie->base + PCIE_CFG_ADDR); bus 1147 drivers/pci/controller/pcie-mediatek.c pci_stop_root_bus(host->bus); bus 1148 drivers/pci/controller/pcie-mediatek.c pci_remove_root_bus(host->bus); bus 282 drivers/pci/controller/pcie-mobiveil.c static bool mobiveil_pcie_valid_device(struct pci_bus *bus, unsigned int devfn) bus 284 drivers/pci/controller/pcie-mobiveil.c struct mobiveil_pcie *pcie = bus->sysdata; bus 287 drivers/pci/controller/pcie-mobiveil.c if ((bus->number == pcie->root_bus_nr) && (devfn > 0)) bus 294 drivers/pci/controller/pcie-mobiveil.c if ((bus->primary == pcie->root_bus_nr) && (PCI_SLOT(devfn) > 0)) bus 304 drivers/pci/controller/pcie-mobiveil.c static void __iomem *mobiveil_pcie_map_bus(struct pci_bus *bus, bus 307 drivers/pci/controller/pcie-mobiveil.c struct mobiveil_pcie *pcie = bus->sysdata; bus 310 drivers/pci/controller/pcie-mobiveil.c if (!mobiveil_pcie_valid_device(bus, devfn)) bus 314 drivers/pci/controller/pcie-mobiveil.c if (bus->number == pcie->root_bus_nr) bus 323 drivers/pci/controller/pcie-mobiveil.c value = bus->number << PAB_BUS_SHIFT | bus 861 drivers/pci/controller/pcie-mobiveil.c struct pci_bus *bus; bus 936 drivers/pci/controller/pcie-mobiveil.c bus = bridge->bus; bus 938 drivers/pci/controller/pcie-mobiveil.c pci_assign_unassigned_bus_resources(bus); bus 939 drivers/pci/controller/pcie-mobiveil.c list_for_each_entry(child, &bus->children, node) bus 941 drivers/pci/controller/pcie-mobiveil.c pci_bus_add_devices(bus); bus 196 drivers/pci/controller/pcie-rcar.c unsigned char access_type, struct pci_bus *bus, bus 221 drivers/pci/controller/pcie-rcar.c if (pci_is_root_bus(bus)) { bus 229 drivers/pci/controller/pcie-rcar.c if (pci_is_root_bus(bus) && (reg == PCI_PRIMARY_BUS)) bus 245 drivers/pci/controller/pcie-rcar.c rcar_pci_write_reg(pcie, PCIE_CONF_BUS(bus->number) | bus 249 drivers/pci/controller/pcie-rcar.c if (bus->parent->number == pcie->root_bus_nr) bus 274 drivers/pci/controller/pcie-rcar.c static int rcar_pcie_read_conf(struct pci_bus *bus, unsigned int devfn, bus 277 drivers/pci/controller/pcie-rcar.c struct rcar_pcie *pcie = bus->sysdata; bus 281 drivers/pci/controller/pcie-rcar.c bus, devfn, where, val); bus 292 drivers/pci/controller/pcie-rcar.c dev_dbg(&bus->dev, "pcie-config-read: bus=%3d devfn=0x%04x where=0x%04x size=%d val=0x%08x\n", bus 293 drivers/pci/controller/pcie-rcar.c bus->number, devfn, where, size, *val); bus 299 drivers/pci/controller/pcie-rcar.c static int rcar_pcie_write_conf(struct pci_bus *bus, unsigned int devfn, bus 302 drivers/pci/controller/pcie-rcar.c struct rcar_pcie *pcie = bus->sysdata; bus 308 drivers/pci/controller/pcie-rcar.c bus, devfn, where, &data); bus 312 drivers/pci/controller/pcie-rcar.c dev_dbg(&bus->dev, "pcie-config-write: bus=%3d devfn=0x%04x where=0x%04x size=%d val=0x%08x\n", bus 313 drivers/pci/controller/pcie-rcar.c bus->number, devfn, where, size, val); bus 327 drivers/pci/controller/pcie-rcar.c bus, devfn, where, &data); bus 461 drivers/pci/controller/pcie-rcar.c struct pci_bus *bus, *child; bus 484 drivers/pci/controller/pcie-rcar.c bus = bridge->bus; bus 486 drivers/pci/controller/pcie-rcar.c pci_bus_size_bridges(bus); bus 487 drivers/pci/controller/pcie-rcar.c pci_bus_assign_resources(bus); bus 489 drivers/pci/controller/pcie-rcar.c list_for_each_entry(child, &bus->children, node) bus 492 drivers/pci/controller/pcie-rcar.c pci_bus_add_devices(bus); bus 72 drivers/pci/controller/pcie-rockchip-host.c struct pci_bus *bus, int dev) bus 75 drivers/pci/controller/pcie-rockchip-host.c if (bus->number == rockchip->root_bus_nr && dev > 0) bus 82 drivers/pci/controller/pcie-rockchip-host.c if (bus->primary == rockchip->root_bus_nr && dev > 0) bus 160 drivers/pci/controller/pcie-rockchip-host.c struct pci_bus *bus, u32 devfn, bus 165 drivers/pci/controller/pcie-rockchip-host.c busdev = PCIE_ECAM_ADDR(bus->number, PCI_SLOT(devfn), bus 173 drivers/pci/controller/pcie-rockchip-host.c if (bus->parent->number == rockchip->root_bus_nr) bus 194 drivers/pci/controller/pcie-rockchip-host.c struct pci_bus *bus, u32 devfn, bus 199 drivers/pci/controller/pcie-rockchip-host.c busdev = PCIE_ECAM_ADDR(bus->number, PCI_SLOT(devfn), bus 204 drivers/pci/controller/pcie-rockchip-host.c if (bus->parent->number == rockchip->root_bus_nr) bus 223 drivers/pci/controller/pcie-rockchip-host.c static int rockchip_pcie_rd_conf(struct pci_bus *bus, u32 devfn, int where, bus 226 drivers/pci/controller/pcie-rockchip-host.c struct rockchip_pcie *rockchip = bus->sysdata; bus 228 drivers/pci/controller/pcie-rockchip-host.c if (!rockchip_pcie_valid_device(rockchip, bus, PCI_SLOT(devfn))) { bus 233 drivers/pci/controller/pcie-rockchip-host.c if (bus->number == rockchip->root_bus_nr) bus 236 drivers/pci/controller/pcie-rockchip-host.c return rockchip_pcie_rd_other_conf(rockchip, bus, devfn, where, size, bus 240 drivers/pci/controller/pcie-rockchip-host.c static int rockchip_pcie_wr_conf(struct pci_bus *bus, u32 devfn, bus 243 drivers/pci/controller/pcie-rockchip-host.c struct rockchip_pcie *rockchip = bus->sysdata; bus 245 drivers/pci/controller/pcie-rockchip-host.c if (!rockchip_pcie_valid_device(rockchip, bus, PCI_SLOT(devfn))) bus 248 drivers/pci/controller/pcie-rockchip-host.c if (bus->number == rockchip->root_bus_nr) bus 251 drivers/pci/controller/pcie-rockchip-host.c return rockchip_pcie_wr_other_conf(rockchip, bus, devfn, where, size, bus 951 drivers/pci/controller/pcie-rockchip-host.c struct pci_bus *bus, *child; bus 1059 drivers/pci/controller/pcie-rockchip-host.c bus = bridge->bus; bus 1061 drivers/pci/controller/pcie-rockchip-host.c rockchip->root_bus = bus; bus 1063 drivers/pci/controller/pcie-rockchip-host.c pci_bus_size_bridges(bus); bus 1064 drivers/pci/controller/pcie-rockchip-host.c pci_bus_assign_resources(bus); bus 1065 drivers/pci/controller/pcie-rockchip-host.c list_for_each_entry(child, &bus->children, node) bus 1068 drivers/pci/controller/pcie-rockchip-host.c pci_bus_add_devices(bus); bus 185 drivers/pci/controller/pcie-rockchip.h #define PCIE_ECAM_ADDR(bus, dev, func, reg) \ bus 186 drivers/pci/controller/pcie-rockchip.h (PCIE_ECAM_BUS(bus) | PCIE_ECAM_DEV(dev) | \ bus 246 drivers/pci/controller/pcie-rockchip.h #define ROCKCHIP_PCIE_AT_OB_REGION_PCI_ADDR0_BUS(bus) \ bus 247 drivers/pci/controller/pcie-rockchip.h (((bus) << 20) & ROCKCHIP_PCIE_AT_OB_REGION_PCI_ADDR0_BUS_MASK) bus 173 drivers/pci/controller/pcie-tango.c static int smp8759_config_read(struct pci_bus *bus, unsigned int devfn, bus 176 drivers/pci/controller/pcie-tango.c struct pci_config_window *cfg = bus->sysdata; bus 190 drivers/pci/controller/pcie-tango.c ret = pci_generic_config_read(bus, devfn, where, size, val); bus 196 drivers/pci/controller/pcie-tango.c static int smp8759_config_write(struct pci_bus *bus, unsigned int devfn, bus 199 drivers/pci/controller/pcie-tango.c struct pci_config_window *cfg = bus->sysdata; bus 204 drivers/pci/controller/pcie-tango.c ret = pci_generic_config_write(bus, devfn, where, size, val); bus 215 drivers/pci/controller/pcie-xilinx-nwl.c static bool nwl_pcie_valid_device(struct pci_bus *bus, unsigned int devfn) bus 217 drivers/pci/controller/pcie-xilinx-nwl.c struct nwl_pcie *pcie = bus->sysdata; bus 220 drivers/pci/controller/pcie-xilinx-nwl.c if (bus->number != pcie->root_busno) { bus 226 drivers/pci/controller/pcie-xilinx-nwl.c if (bus->number == pcie->root_busno && devfn > 0) bus 242 drivers/pci/controller/pcie-xilinx-nwl.c static void __iomem *nwl_pcie_map_bus(struct pci_bus *bus, unsigned int devfn, bus 245 drivers/pci/controller/pcie-xilinx-nwl.c struct nwl_pcie *pcie = bus->sysdata; bus 248 drivers/pci/controller/pcie-xilinx-nwl.c if (!nwl_pcie_valid_device(bus, devfn)) bus 251 drivers/pci/controller/pcie-xilinx-nwl.c relbus = (bus->number << ECAM_BUS_LOC_SHIFT) | bus 820 drivers/pci/controller/pcie-xilinx-nwl.c struct pci_bus *bus; bus 885 drivers/pci/controller/pcie-xilinx-nwl.c bus = bridge->bus; bus 887 drivers/pci/controller/pcie-xilinx-nwl.c pci_assign_unassigned_bus_resources(bus); bus 888 drivers/pci/controller/pcie-xilinx-nwl.c list_for_each_entry(child, &bus->children, node) bus 890 drivers/pci/controller/pcie-xilinx-nwl.c pci_bus_add_devices(bus); bus 160 drivers/pci/controller/pcie-xilinx.c static bool xilinx_pcie_valid_device(struct pci_bus *bus, unsigned int devfn) bus 162 drivers/pci/controller/pcie-xilinx.c struct xilinx_pcie_port *port = bus->sysdata; bus 165 drivers/pci/controller/pcie-xilinx.c if (bus->number != port->root_busno) bus 170 drivers/pci/controller/pcie-xilinx.c if (bus->number == port->root_busno && devfn > 0) bus 185 drivers/pci/controller/pcie-xilinx.c static void __iomem *xilinx_pcie_map_bus(struct pci_bus *bus, bus 188 drivers/pci/controller/pcie-xilinx.c struct xilinx_pcie_port *port = bus->sysdata; bus 191 drivers/pci/controller/pcie-xilinx.c if (!xilinx_pcie_valid_device(bus, devfn)) bus 194 drivers/pci/controller/pcie-xilinx.c relbus = (bus->number << ECAM_BUS_NUM_SHIFT) | bus 271 drivers/pci/controller/pcie-xilinx.c struct xilinx_pcie_port *port = pdev->bus->sysdata; bus 619 drivers/pci/controller/pcie-xilinx.c struct pci_bus *bus, *child; bus 678 drivers/pci/controller/pcie-xilinx.c bus = bridge->bus; bus 680 drivers/pci/controller/pcie-xilinx.c pci_assign_unassigned_bus_resources(bus); bus 681 drivers/pci/controller/pcie-xilinx.c list_for_each_entry(child, &bus->children, node) bus 683 drivers/pci/controller/pcie-xilinx.c pci_bus_add_devices(bus); bus 99 drivers/pci/controller/vmd.c struct pci_bus *bus; bus 106 drivers/pci/controller/vmd.c static inline struct vmd_dev *vmd_from_bus(struct pci_bus *bus) bus 108 drivers/pci/controller/vmd.c return container_of(bus->sysdata, struct vmd_dev, sysdata); bus 231 drivers/pci/controller/vmd.c struct vmd_dev *vmd = vmd_from_bus(msi_desc_to_pci_dev(desc)->bus); bus 269 drivers/pci/controller/vmd.c struct vmd_dev *vmd = vmd_from_bus(pdev->bus); bus 306 drivers/pci/controller/vmd.c struct vmd_dev *vmd = vmd_from_bus(pdev->bus); bus 443 drivers/pci/controller/vmd.c static char __iomem *vmd_cfg_addr(struct vmd_dev *vmd, struct pci_bus *bus, bus 447 drivers/pci/controller/vmd.c ((bus->number - vmd->busn_start) << 20) + bus 461 drivers/pci/controller/vmd.c static int vmd_pci_read(struct pci_bus *bus, unsigned int devfn, int reg, bus 464 drivers/pci/controller/vmd.c struct vmd_dev *vmd = vmd_from_bus(bus); bus 465 drivers/pci/controller/vmd.c char __iomem *addr = vmd_cfg_addr(vmd, bus, devfn, reg, len); bus 496 drivers/pci/controller/vmd.c static int vmd_pci_write(struct pci_bus *bus, unsigned int devfn, int reg, bus 499 drivers/pci/controller/vmd.c struct vmd_dev *vmd = vmd_from_bus(bus); bus 500 drivers/pci/controller/vmd.c char __iomem *addr = vmd_cfg_addr(vmd, bus, devfn, reg, len); bus 555 drivers/pci/controller/vmd.c struct pci_bus *bus = NULL; bus 557 drivers/pci/controller/vmd.c while ((bus = pci_find_next_bus(bus)) != NULL) bus 558 drivers/pci/controller/vmd.c domain = max_t(int, domain, pci_domain_nr(bus)); bus 673 drivers/pci/controller/vmd.c sd->node = pcibus_to_node(vmd->dev->bus); bus 689 drivers/pci/controller/vmd.c vmd->bus = pci_create_root_bus(&vmd->dev->dev, vmd->busn_start, bus 691 drivers/pci/controller/vmd.c if (!vmd->bus) { bus 699 drivers/pci/controller/vmd.c dev_set_msi_domain(&vmd->bus->dev, vmd->irq_domain); bus 701 drivers/pci/controller/vmd.c pci_scan_child_bus(vmd->bus); bus 702 drivers/pci/controller/vmd.c pci_assign_unassigned_bus_resources(vmd->bus); bus 709 drivers/pci/controller/vmd.c list_for_each_entry(child, &vmd->bus->children, node) bus 712 drivers/pci/controller/vmd.c pci_bus_add_devices(vmd->bus); bus 714 drivers/pci/controller/vmd.c WARN(sysfs_create_link(&vmd->dev->dev.kobj, &vmd->bus->dev.kobj, bus 810 drivers/pci/controller/vmd.c pci_stop_root_bus(vmd->bus); bus 811 drivers/pci/controller/vmd.c pci_remove_root_bus(vmd->bus); bus 128 drivers/pci/ecam.c void __iomem *pci_ecam_map_bus(struct pci_bus *bus, unsigned int devfn, bus 131 drivers/pci/ecam.c struct pci_config_window *cfg = bus->sysdata; bus 133 drivers/pci/ecam.c unsigned int busn = bus->number; bus 220 drivers/pci/endpoint/pci-epf-core.c driver->driver.bus = &pci_epf_bus_type; bus 273 drivers/pci/endpoint/pci-epf-core.c dev->bus = &pci_epf_bus_type; bus 12 drivers/pci/host-bridge.c static struct pci_bus *find_pci_root_bus(struct pci_bus *bus) bus 14 drivers/pci/host-bridge.c while (bus->parent) bus 15 drivers/pci/host-bridge.c bus = bus->parent; bus 17 drivers/pci/host-bridge.c return bus; bus 20 drivers/pci/host-bridge.c struct pci_host_bridge *pci_find_host_bridge(struct pci_bus *bus) bus 22 drivers/pci/host-bridge.c struct pci_bus *root_bus = find_pci_root_bus(bus); bus 29 drivers/pci/host-bridge.c struct pci_bus *root_bus = find_pci_root_bus(dev->bus); bus 50 drivers/pci/host-bridge.c void pcibios_resource_to_bus(struct pci_bus *bus, struct pci_bus_region *region, bus 53 drivers/pci/host-bridge.c struct pci_host_bridge *bridge = pci_find_host_bridge(bus); bus 75 drivers/pci/host-bridge.c void pcibios_bus_to_resource(struct pci_bus *bus, struct resource *res, bus 78 drivers/pci/host-bridge.c struct pci_host_bridge *bridge = pci_find_host_bridge(bus); bus 81 drivers/pci/hotplug/acpi_pcihp.c host = pci_find_host_bridge(pdev->bus); bus 112 drivers/pci/hotplug/acpi_pcihp.c for (pbus = pdev->bus; pbus; pbus = pbus->parent) { bus 82 drivers/pci/hotplug/acpiphp.h struct pci_bus *bus; bus 277 drivers/pci/hotplug/acpiphp_core.c retval = pci_hp_register(&slot->hotplug_slot, acpiphp_slot->bus, bus 49 drivers/pci/hotplug/acpiphp_glue.c static void acpiphp_sanitize_bus(struct pci_bus *bus); bus 184 drivers/pci/hotplug/acpiphp_glue.c struct pci_bus *bus; bus 190 drivers/pci/hotplug/acpiphp_glue.c bus = context->func.slot->bus; bus 191 drivers/pci/hotplug/acpiphp_glue.c if (!bus->self) bus 197 drivers/pci/hotplug/acpiphp_glue.c pci_read_config_dword(bus->self, PCI_PRIMARY_BUS, &buses); bus 199 drivers/pci/hotplug/acpiphp_glue.c if (((buses >> 8) & 0xff) != bus->busn_res.start) { bus 201 drivers/pci/hotplug/acpiphp_glue.c | ((unsigned int)(bus->primary) << 0) bus 202 drivers/pci/hotplug/acpiphp_glue.c | ((unsigned int)(bus->busn_res.start) << 8) bus 203 drivers/pci/hotplug/acpiphp_glue.c | ((unsigned int)(bus->busn_res.end) << 16); bus 204 drivers/pci/hotplug/acpiphp_glue.c pci_write_config_dword(bus->self, PCI_PRIMARY_BUS, buses); bus 281 drivers/pci/hotplug/acpiphp_glue.c slot->bus = bridge->pci_bus; bus 362 drivers/pci/hotplug/acpiphp_glue.c static unsigned char acpiphp_max_busnr(struct pci_bus *bus) bus 375 drivers/pci/hotplug/acpiphp_glue.c max = bus->busn_res.start; bus 377 drivers/pci/hotplug/acpiphp_glue.c list_for_each_entry(tmp, &bus->children, node) { bus 431 drivers/pci/hotplug/acpiphp_glue.c return pci_scan_slot(slot->bus, PCI_DEVFN(slot->device, 0)); bus 436 drivers/pci/hotplug/acpiphp_glue.c struct pci_bus *bus = bridge->subordinate; bus 440 drivers/pci/hotplug/acpiphp_glue.c if (!bus) bus 443 drivers/pci/hotplug/acpiphp_glue.c max = bus->busn_res.start; bus 445 drivers/pci/hotplug/acpiphp_glue.c for_each_pci_bridge(dev, bus) { bus 447 drivers/pci/hotplug/acpiphp_glue.c max = pci_scan_bridge(bus, dev, max, 0); bus 451 drivers/pci/hotplug/acpiphp_glue.c for_each_pci_bridge(dev, bus) { bus 455 drivers/pci/hotplug/acpiphp_glue.c max = pci_scan_bridge(bus, dev, max, 1); bus 475 drivers/pci/hotplug/acpiphp_glue.c struct pci_bus *bus = slot->bus; bus 478 drivers/pci/hotplug/acpiphp_glue.c if (bridge && bus->self && hotplug_is_native(bus->self)) { bus 486 drivers/pci/hotplug/acpiphp_glue.c for_each_pci_bridge(dev, bus) { bus 495 drivers/pci/hotplug/acpiphp_glue.c max = acpiphp_max_busnr(bus); bus 497 drivers/pci/hotplug/acpiphp_glue.c for_each_pci_bridge(dev, bus) { bus 501 drivers/pci/hotplug/acpiphp_glue.c max = pci_scan_bridge(bus, dev, max, pass); bus 510 drivers/pci/hotplug/acpiphp_glue.c __pci_bus_assign_resources(bus, &add_list, NULL); bus 513 drivers/pci/hotplug/acpiphp_glue.c acpiphp_sanitize_bus(bus); bus 514 drivers/pci/hotplug/acpiphp_glue.c pcie_bus_configure_settings(bus); bus 517 drivers/pci/hotplug/acpiphp_glue.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 523 drivers/pci/hotplug/acpiphp_glue.c pci_bus_add_devices(bus); bus 527 drivers/pci/hotplug/acpiphp_glue.c dev = pci_get_slot(bus, PCI_DEVFN(slot->device, bus 544 drivers/pci/hotplug/acpiphp_glue.c struct pci_bus *bus = slot->bus; bus 554 drivers/pci/hotplug/acpiphp_glue.c list_for_each_entry_safe_reverse(dev, prev, &bus->devices, bus_list) bus 566 drivers/pci/hotplug/acpiphp_glue.c struct pci_bus *bus = slot->bus; bus 569 drivers/pci/hotplug/acpiphp_glue.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 603 drivers/pci/hotplug/acpiphp_glue.c if (pci_bus_read_dev_vendor_id(slot->bus, bus 618 drivers/pci/hotplug/acpiphp_glue.c if (pci_bus_read_dev_vendor_id(slot->bus, bus 645 drivers/pci/hotplug/acpiphp_glue.c struct pci_bus *bus = dev->subordinate; bus 667 drivers/pci/hotplug/acpiphp_glue.c } else if (bus) { bus 672 drivers/pci/hotplug/acpiphp_glue.c list_for_each_entry_safe_reverse(child, tmp, &bus->devices, bus_list) bus 698 drivers/pci/hotplug/acpiphp_glue.c struct pci_bus *bus = slot->bus; bus 706 drivers/pci/hotplug/acpiphp_glue.c &bus->devices, bus_list) bus 725 drivers/pci/hotplug/acpiphp_glue.c static void acpiphp_sanitize_bus(struct pci_bus *bus) bus 731 drivers/pci/hotplug/acpiphp_glue.c list_for_each_entry_safe_reverse(dev, tmp, &bus->devices, bus_list) { bus 846 drivers/pci/hotplug/acpiphp_glue.c void acpiphp_enumerate_slots(struct pci_bus *bus) bus 856 drivers/pci/hotplug/acpiphp_glue.c adev = ACPI_COMPANION(bus->bridge); bus 867 drivers/pci/hotplug/acpiphp_glue.c bridge->pci_dev = pci_dev_get(bus->self); bus 868 drivers/pci/hotplug/acpiphp_glue.c bridge->pci_bus = bus; bus 875 drivers/pci/hotplug/acpiphp_glue.c get_device(&bus->dev); bus 924 drivers/pci/hotplug/acpiphp_glue.c put_device(&bus->dev); bus 950 drivers/pci/hotplug/acpiphp_glue.c void acpiphp_remove_slots(struct pci_bus *bus) bus 959 drivers/pci/hotplug/acpiphp_glue.c if (bridge->pci_bus == bus) { bus 33 drivers/pci/hotplug/cpci_hotplug.h struct pci_bus *bus; bus 73 drivers/pci/hotplug/cpci_hotplug.h int cpci_hp_register_bus(struct pci_bus *bus, u8 first, u8 last); bus 74 drivers/pci/hotplug/cpci_hotplug.h int cpci_hp_unregister_bus(struct pci_bus *bus); bus 190 drivers/pci/hotplug/cpci_hotplug_core.c cpci_hp_register_bus(struct pci_bus *bus, u8 first, u8 last) bus 197 drivers/pci/hotplug/cpci_hotplug_core.c if (!(controller && bus)) bus 211 drivers/pci/hotplug/cpci_hotplug_core.c slot->bus = bus; bus 215 drivers/pci/hotplug/cpci_hotplug_core.c snprintf(name, SLOT_NAME_SIZE, "%02x:%02x", bus->number, i); bus 220 drivers/pci/hotplug/cpci_hotplug_core.c status = pci_hp_register(&slot->hotplug_slot, bus, i, name); bus 242 drivers/pci/hotplug/cpci_hotplug_core.c cpci_hp_unregister_bus(struct pci_bus *bus) bus 254 drivers/pci/hotplug/cpci_hotplug_core.c if (slot->bus == bus) { bus 311 drivers/pci/hotplug/cpci_hotplug_core.c dev = pci_get_slot(slot->bus, PCI_DEVFN(slot->number, 0)); bus 40 drivers/pci/hotplug/cpci_hotplug_pci.c hs_cap = pci_bus_find_capability(slot->bus, bus 46 drivers/pci/hotplug/cpci_hotplug_pci.c if (pci_bus_read_config_word(slot->bus, bus 60 drivers/pci/hotplug/cpci_hotplug_pci.c hs_cap = pci_bus_find_capability(slot->bus, bus 65 drivers/pci/hotplug/cpci_hotplug_pci.c if (pci_bus_read_config_word(slot->bus, bus 74 drivers/pci/hotplug/cpci_hotplug_pci.c if (pci_bus_write_config_word(slot->bus, bus 87 drivers/pci/hotplug/cpci_hotplug_pci.c hs_cap = pci_bus_find_capability(slot->bus, bus 92 drivers/pci/hotplug/cpci_hotplug_pci.c if (pci_bus_read_config_word(slot->bus, bus 106 drivers/pci/hotplug/cpci_hotplug_pci.c hs_cap = pci_bus_find_capability(slot->bus, bus 111 drivers/pci/hotplug/cpci_hotplug_pci.c if (pci_bus_read_config_word(slot->bus, bus 118 drivers/pci/hotplug/cpci_hotplug_pci.c if (pci_bus_write_config_word(slot->bus, bus 135 drivers/pci/hotplug/cpci_hotplug_pci.c hs_cap = pci_bus_find_capability(slot->bus, bus 140 drivers/pci/hotplug/cpci_hotplug_pci.c if (pci_bus_read_config_word(slot->bus, bus 155 drivers/pci/hotplug/cpci_hotplug_pci.c hs_cap = pci_bus_find_capability(slot->bus, bus 160 drivers/pci/hotplug/cpci_hotplug_pci.c if (pci_bus_read_config_word(slot->bus, bus 167 drivers/pci/hotplug/cpci_hotplug_pci.c if (pci_bus_write_config_word(slot->bus, bus 181 drivers/pci/hotplug/cpci_hotplug_pci.c hs_cap = pci_bus_find_capability(slot->bus, bus 186 drivers/pci/hotplug/cpci_hotplug_pci.c if (pci_bus_read_config_word(slot->bus, bus 193 drivers/pci/hotplug/cpci_hotplug_pci.c if (pci_bus_write_config_word(slot->bus, bus 209 drivers/pci/hotplug/cpci_hotplug_pci.c hs_cap = pci_bus_find_capability(slot->bus, bus 214 drivers/pci/hotplug/cpci_hotplug_pci.c if (pci_bus_read_config_word(slot->bus, bus 221 drivers/pci/hotplug/cpci_hotplug_pci.c if (pci_bus_write_config_word(slot->bus, bus 249 drivers/pci/hotplug/cpci_hotplug_pci.c slot->bus->number, PCI_SLOT(slot->devfn), PCI_FUNC(slot->devfn)); bus 250 drivers/pci/hotplug/cpci_hotplug_pci.c slot->dev = pci_get_slot(slot->bus, slot->devfn); bus 262 drivers/pci/hotplug/cpci_hotplug_pci.c n = pci_scan_slot(slot->bus, slot->devfn); bus 264 drivers/pci/hotplug/cpci_hotplug_pci.c slot->dev = pci_get_slot(slot->bus, slot->devfn); bus 271 drivers/pci/hotplug/cpci_hotplug_pci.c parent = slot->dev->bus; bus 300 drivers/pci/hotplug/cpci_hotplug_pci.c list_for_each_entry_safe(dev, temp, &slot->bus->devices, bus_list) { bus 50 drivers/pci/hotplug/cpcihp_generic.c static struct pci_bus *bus; bus 145 drivers/pci/hotplug/cpcihp_generic.c bus = dev->subordinate; bus 159 drivers/pci/hotplug/cpcihp_generic.c status = cpci_hp_register_bus(bus, first_slot, last_slot); bus 174 drivers/pci/hotplug/cpcihp_generic.c cpci_hp_unregister_bus(bus); bus 185 drivers/pci/hotplug/cpcihp_generic.c cpci_hp_unregister_bus(bus); bus 227 drivers/pci/hotplug/cpqphp.h u8 bus; bus 249 drivers/pci/hotplug/cpqphp.h u8 bus; bus 293 drivers/pci/hotplug/cpqphp.h u8 bus; /* bus number for the pci hotplug controller */ bus 406 drivers/pci/hotplug/cpqphp.h struct pci_func *cpqhp_slot_find(unsigned char bus, unsigned char device, bus 170 drivers/pci/hotplug/cpqphp_core.c tbus = cpqhp_routing_table->slots[loop].bus; bus 306 drivers/pci/hotplug/cpqphp_core.c get_slot_mapping(struct pci_bus *bus, u8 bus_num, u8 dev_num, u8 *slot) bus 314 drivers/pci/hotplug/cpqphp_core.c dbg("%s: %p, %d, %d, %p\n", __func__, bus, bus_num, dev_num, slot); bus 320 drivers/pci/hotplug/cpqphp_core.c tbus = cpqhp_routing_table->slots[loop].bus; bus 337 drivers/pci/hotplug/cpqphp_core.c bus->number = tbus; bus 338 drivers/pci/hotplug/cpqphp_core.c pci_bus_read_config_dword(bus, PCI_DEVFN(tdevice, 0), bus 342 drivers/pci/hotplug/cpqphp_core.c pci_bus_read_config_dword(bus, bus 419 drivers/pci/hotplug/cpqphp_core.c u8 bus; bus 426 drivers/pci/hotplug/cpqphp_core.c if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1) bus 431 drivers/pci/hotplug/cpqphp_core.c dbg("bus, dev, fn = %d, %d, %d\n", bus, device, function); bus 433 drivers/pci/hotplug/cpqphp_core.c slot_func = cpqhp_slot_find(bus, device, function); bus 446 drivers/pci/hotplug/cpqphp_core.c u8 bus; bus 453 drivers/pci/hotplug/cpqphp_core.c if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1) bus 458 drivers/pci/hotplug/cpqphp_core.c dbg("bus, dev, fn = %d, %d, %d\n", bus, device, function); bus 460 drivers/pci/hotplug/cpqphp_core.c slot_func = cpqhp_slot_find(bus, device, function); bus 464 drivers/pci/hotplug/cpqphp_core.c slot_func->bus = bus; bus 478 drivers/pci/hotplug/cpqphp_core.c u8 bus; bus 485 drivers/pci/hotplug/cpqphp_core.c if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1) bus 490 drivers/pci/hotplug/cpqphp_core.c dbg("bus, dev, fn = %d, %d, %d\n", bus, device, function); bus 492 drivers/pci/hotplug/cpqphp_core.c slot_func = cpqhp_slot_find(bus, device, function); bus 576 drivers/pci/hotplug/cpqphp_core.c struct pci_bus *bus = ctrl->pci_bus; bus 602 drivers/pci/hotplug/cpqphp_core.c slot->bus = ctrl->bus; bus 631 drivers/pci/hotplug/cpqphp_core.c if (bus->cur_bus_speed == PCI_SPEED_66MHz) bus 653 drivers/pci/hotplug/cpqphp_core.c slot->bus, slot->device, bus 657 drivers/pci/hotplug/cpqphp_core.c ctrl->pci_dev->bus, bus 766 drivers/pci/hotplug/cpqphp_core.c struct pci_bus *bus; bus 776 drivers/pci/hotplug/cpqphp_core.c bus = pdev->subordinate; bus 777 drivers/pci/hotplug/cpqphp_core.c if (!bus) { bus 852 drivers/pci/hotplug/cpqphp_core.c bus->max_bus_speed = PCI_SPEED_133MHz_PCIX; bus 857 drivers/pci/hotplug/cpqphp_core.c bus->max_bus_speed = PCI_SPEED_100MHz_PCIX; bus 862 drivers/pci/hotplug/cpqphp_core.c bus->max_bus_speed = PCI_SPEED_66MHz_PCIX; bus 867 drivers/pci/hotplug/cpqphp_core.c bus->max_bus_speed = PCI_SPEED_66MHz; bus 878 drivers/pci/hotplug/cpqphp_core.c bus->max_bus_speed = PCI_SPEED_33MHz; bus 889 drivers/pci/hotplug/cpqphp_core.c bus->max_bus_speed = PCI_SPEED_33MHz; bus 899 drivers/pci/hotplug/cpqphp_core.c bus->max_bus_speed = PCI_SPEED_33MHz; bus 910 drivers/pci/hotplug/cpqphp_core.c bus->max_bus_speed = PCI_SPEED_66MHz; bus 921 drivers/pci/hotplug/cpqphp_core.c bus->max_bus_speed = PCI_SPEED_100MHz_PCIX; bus 938 drivers/pci/hotplug/cpqphp_core.c bus->max_bus_speed = PCI_SPEED_66MHz; bus 940 drivers/pci/hotplug/cpqphp_core.c bus->max_bus_speed = PCI_SPEED_33MHz; bus 999 drivers/pci/hotplug/cpqphp_core.c pdev->bus->number); bus 1002 drivers/pci/hotplug/cpqphp_core.c dbg(" speed_capability %d\n", bus->max_bus_speed); bus 1021 drivers/pci/hotplug/cpqphp_core.c ctrl->pci_bus = kmemdup(pdev->bus, sizeof(*ctrl->pci_bus), GFP_KERNEL); bus 1028 drivers/pci/hotplug/cpqphp_core.c ctrl->bus = pdev->bus->number; bus 1030 drivers/pci/hotplug/cpqphp_core.c dbg("bus device function rev: %d %d %d %d\n", ctrl->bus, bus 1063 drivers/pci/hotplug/cpqphp_core.c bus->cur_bus_speed = get_controller_speed(ctrl); bus 1080 drivers/pci/hotplug/cpqphp_core.c rc = get_slot_mapping(ctrl->pci_bus, pdev->bus->number, bus 1091 drivers/pci/hotplug/cpqphp_core.c rc = cpqhp_save_config(ctrl, ctrl->bus, readb(ctrl->hpc_reg + SLOT_MASK)); bus 1183 drivers/pci/hotplug/cpqphp_core.c func = cpqhp_slot_find(ctrl->bus, device, 0); bus 72 drivers/pci/hotplug/cpqphp_ctrl.c func = cpqhp_slot_find(ctrl->bus, bus 151 drivers/pci/hotplug/cpqphp_ctrl.c func = cpqhp_slot_find(ctrl->bus, bus 242 drivers/pci/hotplug/cpqphp_ctrl.c func = cpqhp_slot_find(ctrl->bus, bus 991 drivers/pci/hotplug/cpqphp_ctrl.c next = cpqhp_slot_list[old_slot->bus]; bus 996 drivers/pci/hotplug/cpqphp_ctrl.c cpqhp_slot_list[old_slot->bus] = old_slot->next; bus 1037 drivers/pci/hotplug/cpqphp_ctrl.c next = cpqhp_slot_list[bridge->bus]; bus 1043 drivers/pci/hotplug/cpqphp_ctrl.c cpqhp_slot_list[bridge->bus] = bridge->next; bus 1067 drivers/pci/hotplug/cpqphp_ctrl.c struct pci_func *cpqhp_slot_find(u8 bus, u8 device, u8 index) bus 1072 drivers/pci/hotplug/cpqphp_ctrl.c func = cpqhp_slot_list[bus]; bus 1118 drivers/pci/hotplug/cpqphp_ctrl.c struct pci_bus *bus = ctrl->pci_bus; bus 1124 drivers/pci/hotplug/cpqphp_ctrl.c if (bus->cur_bus_speed == adapter_speed) bus 1139 drivers/pci/hotplug/cpqphp_ctrl.c if (bus->cur_bus_speed < adapter_speed) bus 1148 drivers/pci/hotplug/cpqphp_ctrl.c if ((bus->cur_bus_speed > adapter_speed) && (!ctrl->pcix_speed_capability)) bus 1152 drivers/pci/hotplug/cpqphp_ctrl.c if ((bus->cur_bus_speed < adapter_speed) && (!ctrl->pcix_speed_capability)) bus 1158 drivers/pci/hotplug/cpqphp_ctrl.c if (bus->max_bus_speed < adapter_speed) { bus 1159 drivers/pci/hotplug/cpqphp_ctrl.c if (bus->cur_bus_speed == bus->max_bus_speed) bus 1161 drivers/pci/hotplug/cpqphp_ctrl.c adapter_speed = bus->max_bus_speed; bus 1216 drivers/pci/hotplug/cpqphp_ctrl.c if (((bus->cur_bus_speed == PCI_SPEED_66MHz) && (adapter_speed == PCI_SPEED_66MHz_PCIX)) || bus 1217 drivers/pci/hotplug/cpqphp_ctrl.c ((bus->cur_bus_speed == PCI_SPEED_66MHz_PCIX) && (adapter_speed == PCI_SPEED_66MHz))) bus 1230 drivers/pci/hotplug/cpqphp_ctrl.c bus->cur_bus_speed = adapter_speed; bus 1256 drivers/pci/hotplug/cpqphp_ctrl.c struct pci_bus *bus = ctrl->pci_bus; bus 1297 drivers/pci/hotplug/cpqphp_ctrl.c if (bus->cur_bus_speed != adapter_speed) bus 1414 drivers/pci/hotplug/cpqphp_ctrl.c struct pci_bus *bus = ctrl->pci_bus; bus 1445 drivers/pci/hotplug/cpqphp_ctrl.c if (bus->cur_bus_speed != adapter_speed) bus 1506 drivers/pci/hotplug/cpqphp_ctrl.c ctrl->pci_bus->number = func->bus; bus 1569 drivers/pci/hotplug/cpqphp_ctrl.c new_slot = cpqhp_slot_find(ctrl->bus, func->device, index++); bus 1639 drivers/pci/hotplug/cpqphp_ctrl.c temp_func = cpqhp_slot_find(func->bus, func->device, index++); bus 1646 drivers/pci/hotplug/cpqphp_ctrl.c temp_func = cpqhp_slot_find(temp_func->bus, temp_func->device, index++); bus 1698 drivers/pci/hotplug/cpqphp_ctrl.c func = cpqhp_slot_find(ctrl->bus, device, 0); bus 1702 drivers/pci/hotplug/cpqphp_ctrl.c func = cpqhp_slot_create(ctrl->bus); bus 1707 drivers/pci/hotplug/cpqphp_ctrl.c func->bus = ctrl->bus; bus 1784 drivers/pci/hotplug/cpqphp_ctrl.c func = cpqhp_slot_find(ctrl->bus, (hp_slot + ctrl->slot_device_offset), 0); bus 1901 drivers/pci/hotplug/cpqphp_ctrl.c func = cpqhp_slot_find(p_slot->bus, p_slot->device, 0); bus 1923 drivers/pci/hotplug/cpqphp_ctrl.c func = cpqhp_slot_find(p_slot->bus, p_slot->device, 0); bus 1976 drivers/pci/hotplug/cpqphp_ctrl.c func = cpqhp_slot_create(ctrl->bus); bus 1980 drivers/pci/hotplug/cpqphp_ctrl.c func->bus = ctrl->bus; bus 2005 drivers/pci/hotplug/cpqphp_ctrl.c func = cpqhp_slot_create(ctrl->bus); bus 2010 drivers/pci/hotplug/cpqphp_ctrl.c func->bus = ctrl->bus; bus 2049 drivers/pci/hotplug/cpqphp_ctrl.c func = cpqhp_slot_find(ctrl->bus, device, index++); bus 2056 drivers/pci/hotplug/cpqphp_ctrl.c pci_bus->number = func->bus; bus 2086 drivers/pci/hotplug/cpqphp_ctrl.c func = cpqhp_slot_find(ctrl->bus, device, index++); bus 2089 drivers/pci/hotplug/cpqphp_ctrl.c func = cpqhp_slot_find(ctrl->bus, device, 0); bus 2235 drivers/pci/hotplug/cpqphp_ctrl.c ctrl->pci_bus->number = func->bus; bus 2257 drivers/pci/hotplug/cpqphp_ctrl.c new_slot = cpqhp_slot_find(new_slot->bus, new_slot->device, index++); bus 2280 drivers/pci/hotplug/cpqphp_ctrl.c new_slot = cpqhp_slot_create(func->bus); bus 2285 drivers/pci/hotplug/cpqphp_ctrl.c new_slot->bus = func->bus; bus 2349 drivers/pci/hotplug/cpqphp_ctrl.c pci_bus->number = func->bus; bus 2359 drivers/pci/hotplug/cpqphp_ctrl.c dbg("set Primary bus = %d\n", func->bus); bus 2360 drivers/pci/hotplug/cpqphp_ctrl.c rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_PRIMARY_BUS, func->bus); bus 2518 drivers/pci/hotplug/cpqphp_ctrl.c pci_bus->number = func->bus; bus 2529 drivers/pci/hotplug/cpqphp_ctrl.c new_slot->bus = hold_bus_node->base; bus 2553 drivers/pci/hotplug/cpqphp_ctrl.c rc = cpqhp_set_irq(func->bus, func->device, bus 2873 drivers/pci/hotplug/cpqphp_ctrl.c rc = cpqhp_set_irq(func->bus, func->device, temp_byte, IRQ); bus 65 drivers/pci/hotplug/cpqphp_nvram.c u8 bus; bus 269 drivers/pci/hotplug/cpqphp_nvram.c rc = add_byte(&pFill, ctrl->bus, &usedbytes, &available); bus 426 drivers/pci/hotplug/cpqphp_nvram.c u8 bus, device, function; bus 464 drivers/pci/hotplug/cpqphp_nvram.c bus = p_ev_ctrl->bus; bus 468 drivers/pci/hotplug/cpqphp_nvram.c while ((bus != ctrl->bus) || bus 494 drivers/pci/hotplug/cpqphp_nvram.c bus = p_ev_ctrl->bus; bus 78 drivers/pci/hotplug/cpqphp_pci.c func->pci_dev = pci_get_domain_bus_and_slot(0, func->bus, bus 86 drivers/pci/hotplug/cpqphp_pci.c num = pci_scan_slot(ctrl->pci_dev->bus, PCI_DEVFN(func->device, func->function)); bus 88 drivers/pci/hotplug/cpqphp_pci.c pci_bus_add_devices(ctrl->pci_dev->bus); bus 90 drivers/pci/hotplug/cpqphp_pci.c func->pci_dev = pci_get_domain_bus_and_slot(0, func->bus, bus 118 drivers/pci/hotplug/cpqphp_pci.c dbg("%s: bus/dev/func = %x/%x/%x\n", __func__, func->bus, func->device, func->function); bus 123 drivers/pci/hotplug/cpqphp_pci.c func->bus, bus 135 drivers/pci/hotplug/cpqphp_pci.c static int PCI_RefinedAccessConfig(struct pci_bus *bus, unsigned int devfn, u8 offset, u32 *value) bus 139 drivers/pci/hotplug/cpqphp_pci.c if (pci_bus_read_config_dword(bus, devfn, PCI_VENDOR_ID, &vendID) == -1) bus 143 drivers/pci/hotplug/cpqphp_pci.c return pci_bus_read_config_dword(bus, devfn, offset, value); bus 172 drivers/pci/hotplug/cpqphp_pci.c fakedev->bus = fakebus; bus 245 drivers/pci/hotplug/cpqphp_pci.c tbus = cpqhp_routing_table->slots[loop].bus; bus 345 drivers/pci/hotplug/cpqphp_pci.c new_slot->bus = (u8) busnumber; bus 406 drivers/pci/hotplug/cpqphp_pci.c new_slot->bus = (u8) busnumber; bus 415 drivers/pci/hotplug/cpqphp_pci.c new_slot->bus, devfn); bus 479 drivers/pci/hotplug/cpqphp_pci.c ctrl->pci_bus->number = new_slot->bus; bus 506 drivers/pci/hotplug/cpqphp_pci.c ctrl->pci_bus->number = new_slot->bus; bus 563 drivers/pci/hotplug/cpqphp_pci.c func = cpqhp_slot_find(func->bus, func->device, index++); bus 566 drivers/pci/hotplug/cpqphp_pci.c pci_bus->number = func->bus; bus 586 drivers/pci/hotplug/cpqphp_pci.c pci_bus->number = func->bus; bus 669 drivers/pci/hotplug/cpqphp_pci.c func = cpqhp_slot_find(func->bus, func->device, index++); bus 708 drivers/pci/hotplug/cpqphp_pci.c func = cpqhp_slot_find(func->bus, func->device, index++); bus 711 drivers/pci/hotplug/cpqphp_pci.c pci_bus->number = func->bus; bus 932 drivers/pci/hotplug/cpqphp_pci.c func = cpqhp_slot_find(func->bus, func->device, index++); bus 961 drivers/pci/hotplug/cpqphp_pci.c func = cpqhp_slot_find(func->bus, func->device, index++); bus 964 drivers/pci/hotplug/cpqphp_pci.c pci_bus->number = func->bus; bus 1001 drivers/pci/hotplug/cpqphp_pci.c dbg("bus = %x, device = %x, function = %x\n", func->bus, func->device, func->function); bus 1010 drivers/pci/hotplug/cpqphp_pci.c func = cpqhp_slot_find(func->bus, func->device, index++); bus 1043 drivers/pci/hotplug/cpqphp_pci.c func = cpqhp_slot_find(func->bus, func->device, index++); bus 1046 drivers/pci/hotplug/cpqphp_pci.c pci_bus->number = func->bus; bus 1151 drivers/pci/hotplug/cpqphp_pci.c func = cpqhp_slot_find(func->bus, func->device, index++); bus 1260 drivers/pci/hotplug/cpqphp_pci.c if (primary_bus != ctrl->bus) { bus 77 drivers/pci/hotplug/cpqphp_sysfs.c new_slot = cpqhp_slot_find(slot->bus, slot->device, 0); bus 194 drivers/pci/hotplug/ibmphp.h u8 bus; bus 687 drivers/pci/hotplug/ibmphp.h u8 bus; /* flag for unconfiguring, to say if PPB */ bus 691 drivers/pci/hotplug/ibmphp.h u8 bus; bus 142 drivers/pci/hotplug/ibmphp_core.c (*cur_slot)->bus == rtable->slots[loop].bus) { bus 145 drivers/pci/hotplug/ibmphp_core.c (*cur_slot)->irq[i] = IO_APIC_get_PCI_irq_vector((int) (*cur_slot)->bus, bus 372 drivers/pci/hotplug/ibmphp_core.c struct pci_bus *bus = slot->hotplug_slot.pci_slot->bus; bus 398 drivers/pci/hotplug/ibmphp_core.c bus->max_bus_speed = speed; bus 572 drivers/pci/hotplug/ibmphp_core.c struct pci_bus *bus = slot_cur->hotplug_slot.pci_slot->bus; bus 598 drivers/pci/hotplug/ibmphp_core.c bus->cur_bus_speed = bus_speed; bus 691 drivers/pci/hotplug/ibmphp_core.c struct pci_bus *bus, *b; bus 698 drivers/pci/hotplug/ibmphp_core.c bus = kmalloc(sizeof(*bus), GFP_KERNEL); bus 699 drivers/pci/hotplug/ibmphp_core.c if (!bus) bus 704 drivers/pci/hotplug/ibmphp_core.c kfree(bus); bus 708 drivers/pci/hotplug/ibmphp_core.c bus->number = busno; bus 709 drivers/pci/hotplug/ibmphp_core.c bus->ops = ibmphp_pci_bus->ops; bus 710 drivers/pci/hotplug/ibmphp_core.c dev->bus = bus; bus 726 drivers/pci/hotplug/ibmphp_core.c kfree(bus); bus 747 drivers/pci/hotplug/ibmphp_core.c struct pci_bus *bus = pci_find_bus(0, func->busno); bus 748 drivers/pci/hotplug/ibmphp_core.c if (!bus) bus 751 drivers/pci/hotplug/ibmphp_core.c num = pci_scan_slot(bus, bus 754 drivers/pci/hotplug/ibmphp_core.c pci_bus_add_devices(bus); bus 1066 drivers/pci/hotplug/ibmphp_core.c slot_cur->func->busno = slot_cur->bus; bus 1072 drivers/pci/hotplug/ibmphp_core.c slot_cur->bus, slot_cur->device); bus 1087 drivers/pci/hotplug/ibmphp_core.c tmp_func = ibm_slot_find(slot_cur->bus, slot_cur->func->device, bus 1172 drivers/pci/hotplug/ibmphp_core.c slot_cur->func->busno = slot_cur->bus; bus 1256 drivers/pci/hotplug/ibmphp_core.c struct pci_bus *bus; bus 1270 drivers/pci/hotplug/ibmphp_core.c bus = pci_find_bus(0, 0); bus 1271 drivers/pci/hotplug/ibmphp_core.c if (!bus) { bus 1276 drivers/pci/hotplug/ibmphp_core.c memcpy(ibmphp_pci_bus, bus, sizeof(*ibmphp_pci_bus)); bus 210 drivers/pci/hotplug/ibmphp_ebda.c debug("%s - bus: %x\n", __func__, hpc_ptr->u.pci_ctlr.bus); bus 685 drivers/pci/hotplug/ibmphp_ebda.c u16 ctlr, slot, bus; bus 774 drivers/pci/hotplug/ibmphp_ebda.c for (bus = 0; bus < bus_num; bus++) { bus 775 drivers/pci/hotplug/ibmphp_ebda.c bus_ptr->bus_num = readb(io_mem + addr_bus + bus); bus 776 drivers/pci/hotplug/ibmphp_ebda.c bus_ptr->slots_at_33_conv = readb(io_mem + addr_bus + bus_num + 8 * bus); bus 777 drivers/pci/hotplug/ibmphp_ebda.c bus_ptr->slots_at_66_conv = readb(io_mem + addr_bus + bus_num + 8 * bus + 1); bus 779 drivers/pci/hotplug/ibmphp_ebda.c bus_ptr->slots_at_66_pcix = readb(io_mem + addr_bus + bus_num + 8 * bus + 2); bus 781 drivers/pci/hotplug/ibmphp_ebda.c bus_ptr->slots_at_100_pcix = readb(io_mem + addr_bus + bus_num + 8 * bus + 3); bus 783 drivers/pci/hotplug/ibmphp_ebda.c bus_ptr->slots_at_133_pcix = readb(io_mem + addr_bus + bus_num + 8 * bus + 4); bus 800 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr->u.pci_ctlr.bus = readb(io_mem + addr); bus 805 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr->u.pci_ctlr.bus, bus 866 drivers/pci/hotplug/ibmphp_ebda.c tmp_slot->bus = hpc_ptr->slots[index].slot_bus_num; bus 902 drivers/pci/hotplug/ibmphp_ebda.c pci_find_bus(0, tmp_slot->bus), tmp_slot->device, name); bus 1112 drivers/pci/hotplug/ibmphp_ebda.c if ((dev->devfn == ctrl->u.pci_ctlr.dev_fun) && (dev->bus->number == ctrl->u.pci_ctlr.bus)) { bus 523 drivers/pci/hotplug/ibmphp_hpc.c busindex = ibmphp_get_bus_index(pslot->bus); bus 663 drivers/pci/hotplug/ibmphp_hpc.c busindex = ibmphp_get_bus_index(pslot->bus); bus 183 drivers/pci/hotplug/ibmphp_pci.c func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */ bus 211 drivers/pci/hotplug/ibmphp_pci.c func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */ bus 251 drivers/pci/hotplug/ibmphp_pci.c func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */ bus 284 drivers/pci/hotplug/ibmphp_pci.c func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */ bus 525 drivers/pci/hotplug/ibmphp_pci.c func->bus = 0; /* To indicate that this is not a PPB */ bus 567 drivers/pci/hotplug/ibmphp_pci.c struct bus_node *bus; bus 893 drivers/pci/hotplug/ibmphp_pci.c bus = ibmphp_find_res_bus(sec_number); bus 894 drivers/pci/hotplug/ibmphp_pci.c if (!bus) { bus 895 drivers/pci/hotplug/ibmphp_pci.c bus = kzalloc(sizeof(*bus), GFP_KERNEL); bus 896 drivers/pci/hotplug/ibmphp_pci.c if (!bus) { bus 900 drivers/pci/hotplug/ibmphp_pci.c bus->busno = sec_number; bus 902 drivers/pci/hotplug/ibmphp_pci.c rc = add_new_bus(bus, io, mem, pfmem, func->busno); bus 903 drivers/pci/hotplug/ibmphp_pci.c } else if (!(bus->rangeIO) && !(bus->rangeMem) && !(bus->rangePFMem)) bus 904 drivers/pci/hotplug/ibmphp_pci.c rc = add_new_bus(bus, io, mem, pfmem, 0xFF); bus 912 drivers/pci/hotplug/ibmphp_pci.c ibmphp_remove_bus(bus, func->busno); bus 931 drivers/pci/hotplug/ibmphp_pci.c if (bus->noIORanges) { bus 932 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_byte(ibmphp_pci_bus, devfn, PCI_IO_BASE, 0x00 | bus->rangeIO->start >> 8); bus 933 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_byte(ibmphp_pci_bus, devfn, PCI_IO_LIMIT, 0x00 | bus->rangeIO->end >> 8); bus 951 drivers/pci/hotplug/ibmphp_pci.c if (bus->noMemRanges) { bus 952 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_word(ibmphp_pci_bus, devfn, PCI_MEMORY_BASE, 0x0000 | bus->rangeMem->start >> 16); bus 953 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_word(ibmphp_pci_bus, devfn, PCI_MEMORY_LIMIT, 0x0000 | bus->rangeMem->end >> 16); bus 966 drivers/pci/hotplug/ibmphp_pci.c if (bus->noPFMemRanges) { bus 967 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_word(ibmphp_pci_bus, devfn, PCI_PREF_MEMORY_BASE, 0x0000 | bus->rangePFMem->start >> 16); bus 968 drivers/pci/hotplug/ibmphp_pci.c pci_bus_write_config_word(ibmphp_pci_bus, devfn, PCI_PREF_MEMORY_LIMIT, 0x0000 | bus->rangePFMem->end >> 16); bus 1005 drivers/pci/hotplug/ibmphp_pci.c func->bus = 1; /* For unconfiguring, to indicate it's PPB */ bus 1199 drivers/pci/hotplug/ibmphp_pci.c struct bus_node *bus; bus 1208 drivers/pci/hotplug/ibmphp_pci.c bus = ibmphp_find_res_bus(busno); bus 1209 drivers/pci/hotplug/ibmphp_pci.c if (!bus) { bus 1239 drivers/pci/hotplug/ibmphp_pci.c if (ibmphp_find_resource(bus, start_address, &io, IO)) bus 1248 drivers/pci/hotplug/ibmphp_pci.c if (ibmphp_find_resource(bus, start_address, bus 1266 drivers/pci/hotplug/ibmphp_pci.c if (ibmphp_find_resource(bus, start_address, &pfmem, PFMEM) < 0) { bus 1280 drivers/pci/hotplug/ibmphp_pci.c if (ibmphp_find_resource(bus, start_address, &mem, MEM) < 0) { bus 1313 drivers/pci/hotplug/ibmphp_pci.c struct bus_node *bus; bus 1345 drivers/pci/hotplug/ibmphp_pci.c bus = ibmphp_find_res_bus(sec_number); bus 1346 drivers/pci/hotplug/ibmphp_pci.c if (!bus) { bus 1350 drivers/pci/hotplug/ibmphp_pci.c debug("bus->busno is %x\n", bus->busno); bus 1353 drivers/pci/hotplug/ibmphp_pci.c ibmphp_remove_bus(bus, busno); bus 1369 drivers/pci/hotplug/ibmphp_pci.c if (ibmphp_find_resource(bus, start_address, &io, IO) < 0) { bus 1384 drivers/pci/hotplug/ibmphp_pci.c if (ibmphp_find_resource(bus, start_address, &pfmem, PFMEM) < 0) { bus 1396 drivers/pci/hotplug/ibmphp_pci.c if (ibmphp_find_resource(bus, start_address, &mem, MEM) < 0) { bus 1431 drivers/pci/hotplug/ibmphp_pci.c busno = slot_cur->bus; bus 1557 drivers/pci/hotplug/ibmphp_pci.c if (cur_func->bus) { bus 1605 drivers/pci/hotplug/ibmphp_pci.c static int add_new_bus(struct bus_node *bus, struct resource_node *io, struct resource_node *mem, struct resource_node *pfmem, u8 parent_busno) bus 1620 drivers/pci/hotplug/ibmphp_pci.c list_add(&bus->bus_list, &cur_bus->bus_list); bus 1630 drivers/pci/hotplug/ibmphp_pci.c bus->noIORanges = 1; bus 1631 drivers/pci/hotplug/ibmphp_pci.c bus->rangeIO = io_range; bus 1641 drivers/pci/hotplug/ibmphp_pci.c bus->noMemRanges = 1; bus 1642 drivers/pci/hotplug/ibmphp_pci.c bus->rangeMem = mem_range; bus 1652 drivers/pci/hotplug/ibmphp_pci.c bus->noPFMemRanges = 1; bus 1653 drivers/pci/hotplug/ibmphp_pci.c bus->rangePFMem = pfmem_range; bus 1667 drivers/pci/hotplug/ibmphp_pci.c struct bus_info *bus; bus 1670 drivers/pci/hotplug/ibmphp_pci.c bus = ibmphp_find_same_bus_num(primary_busno); bus 1671 drivers/pci/hotplug/ibmphp_pci.c if (!bus) { bus 1675 drivers/pci/hotplug/ibmphp_pci.c max = bus->slot_max; bus 1676 drivers/pci/hotplug/ibmphp_pci.c min = bus->slot_min; bus 1340 drivers/pci/hotplug/ibmphp_res.c int ibmphp_remove_bus(struct bus_node *bus, u8 parent_busno) bus 1356 drivers/pci/hotplug/ibmphp_res.c rc = remove_ranges(bus, prev_bus); bus 1360 drivers/pci/hotplug/ibmphp_res.c if (bus->firstIO) { bus 1361 drivers/pci/hotplug/ibmphp_res.c res_cur = bus->firstIO; bus 1371 drivers/pci/hotplug/ibmphp_res.c bus->firstIO = NULL; bus 1373 drivers/pci/hotplug/ibmphp_res.c if (bus->firstMem) { bus 1374 drivers/pci/hotplug/ibmphp_res.c res_cur = bus->firstMem; bus 1384 drivers/pci/hotplug/ibmphp_res.c bus->firstMem = NULL; bus 1386 drivers/pci/hotplug/ibmphp_res.c if (bus->firstPFMem) { bus 1387 drivers/pci/hotplug/ibmphp_res.c res_cur = bus->firstPFMem; bus 1397 drivers/pci/hotplug/ibmphp_res.c bus->firstPFMem = NULL; bus 1400 drivers/pci/hotplug/ibmphp_res.c if (bus->firstPFMemFromMem) { bus 1401 drivers/pci/hotplug/ibmphp_res.c res_cur = bus->firstPFMemFromMem; bus 1409 drivers/pci/hotplug/ibmphp_res.c bus->firstPFMemFromMem = NULL; bus 1412 drivers/pci/hotplug/ibmphp_res.c list_del(&bus->bus_list); bus 1413 drivers/pci/hotplug/ibmphp_res.c kfree(bus); bus 1479 drivers/pci/hotplug/ibmphp_res.c int ibmphp_find_resource(struct bus_node *bus, u32 start_address, struct resource_node **res, int flag) bus 1484 drivers/pci/hotplug/ibmphp_res.c if (!bus) { bus 1491 drivers/pci/hotplug/ibmphp_res.c res_cur = bus->firstIO; bus 1495 drivers/pci/hotplug/ibmphp_res.c res_cur = bus->firstMem; bus 1499 drivers/pci/hotplug/ibmphp_res.c res_cur = bus->firstPFMem; bus 1520 drivers/pci/hotplug/ibmphp_res.c res_cur = bus->firstPFMemFromMem; bus 1906 drivers/pci/hotplug/ibmphp_res.c static int __init update_bridge_ranges(struct bus_node **bus) bus 1919 drivers/pci/hotplug/ibmphp_res.c bus_cur = *bus; bus 2117 drivers/pci/hotplug/ibmphp_res.c bus = &bus_cur; bus 404 drivers/pci/hotplug/pci_hotplug_core.c int __pci_hp_register(struct hotplug_slot *slot, struct pci_bus *bus, bus 410 drivers/pci/hotplug/pci_hotplug_core.c result = __pci_hp_initialize(slot, bus, devnr, name, owner, mod_name); bus 438 drivers/pci/hotplug/pci_hotplug_core.c int __pci_hp_initialize(struct hotplug_slot *slot, struct pci_bus *bus, bus 457 drivers/pci/hotplug/pci_hotplug_core.c pci_slot = pci_create_slot(bus, devnr, name, slot); bus 257 drivers/pci/hotplug/pciehp_core.c host = pci_find_host_bridge(dev->port->bus); bus 231 drivers/pci/hotplug/pciehp_hpc.c static bool pci_bus_check_dev(struct pci_bus *bus, int devfn) bus 239 drivers/pci/hotplug/pciehp_hpc.c found = pci_bus_read_dev_vendor_id(bus, devfn, &l, 0); bus 251 drivers/pci/hotplug/pciehp_hpc.c pci_domain_nr(bus), bus->number, PCI_SLOT(devfn), bus 252 drivers/pci/hotplug/pnv_php.c struct pci_controller *hose = pci_bus_to_host(slot->bus); bus 511 drivers/pci/hotplug/pnv_php.c pci_hp_add_devices(php_slot->bus); bus 574 drivers/pci/hotplug/pnv_php.c pci_hp_remove_devices(php_slot->bus); bus 614 drivers/pci/hotplug/pnv_php.c struct pci_bus *bus; bus 626 drivers/pci/hotplug/pnv_php.c bus = pci_find_bus_by_node(dn); bus 627 drivers/pci/hotplug/pnv_php.c if (!bus) bus 648 drivers/pci/hotplug/pnv_php.c php_slot->pdev = bus->self; bus 649 drivers/pci/hotplug/pnv_php.c php_slot->bus = bus; bus 675 drivers/pci/hotplug/pnv_php.c ret = pci_hp_register(&php_slot->slot, php_slot->bus, bus 794 drivers/pci/hotplug/pnv_php.c pchild = list_first_entry_or_null(&php_slot->bus->devices, bus 146 drivers/pci/hotplug/rpadlpar_core.c dev = of_create_pci_dev(dn, phb->bus, pdn->devfn); bus 165 drivers/pci/hotplug/rpadlpar_core.c pcibios_finish_adding_to_bus(phb->bus); bus 181 drivers/pci/hotplug/rpadlpar_core.c dev = dlpar_find_new_dev(phb->bus, dn); bus 357 drivers/pci/hotplug/rpadlpar_core.c struct pci_bus *bus; bus 363 drivers/pci/hotplug/rpadlpar_core.c bus = pci_find_bus_by_node(dn); bus 364 drivers/pci/hotplug/rpadlpar_core.c if (!bus) { bus 370 drivers/pci/hotplug/rpadlpar_core.c bus->self ? pci_name(bus->self) : "<!PHB!>"); bus 375 drivers/pci/hotplug/rpadlpar_core.c pci_domain_nr(bus), bus->number); bus 387 drivers/pci/hotplug/rpadlpar_core.c pci_hp_remove_devices(bus); bus 390 drivers/pci/hotplug/rpadlpar_core.c if (pcibios_unmap_io_space(bus)) { bus 398 drivers/pci/hotplug/rpadlpar_core.c BUG_ON(!bus->self); bus 399 drivers/pci/hotplug/rpadlpar_core.c pr_debug("PCI: Now removing bridge device %s\n", pci_name(bus->self)); bus 400 drivers/pci/hotplug/rpadlpar_core.c pci_stop_and_remove_bus_device(bus->self); bus 69 drivers/pci/hotplug/rpaphp.h struct pci_bus *bus; bus 449 drivers/pci/hotplug/rpaphp_core.c pci_hp_add_devices(slot->bus); bus 460 drivers/pci/hotplug/rpaphp_core.c slot->bus->max_bus_speed = get_max_bus_speed(slot); bus 471 drivers/pci/hotplug/rpaphp_core.c pci_hp_remove_devices(slot->bus); bus 64 drivers/pci/hotplug/rpaphp_pci.c struct pci_bus *bus; bus 78 drivers/pci/hotplug/rpaphp_pci.c bus = pci_find_bus_by_node(slot->dn); bus 79 drivers/pci/hotplug/rpaphp_pci.c if (!bus) { bus 84 drivers/pci/hotplug/rpaphp_pci.c slot->bus = bus; bus 85 drivers/pci/hotplug/rpaphp_pci.c slot->pci_devs = &bus->devices; bus 98 drivers/pci/hotplug/rpaphp_pci.c if (list_empty(&bus->devices)) bus 99 drivers/pci/hotplug/rpaphp_pci.c pci_hp_add_devices(bus); bus 101 drivers/pci/hotplug/rpaphp_pci.c if (!list_empty(&bus->devices)) { bus 108 drivers/pci/hotplug/rpaphp_pci.c list_for_each_entry(dev, &bus->devices, bus_list) bus 108 drivers/pci/hotplug/rpaphp_slot.c retval = pci_hp_register(php_slot, slot->bus, slotno, slot->name); bus 82 drivers/pci/hotplug/s390_pci_hpc.c pci_scan_slot(slot->zdev->bus, ZPCI_DEVFN); bus 84 drivers/pci/hotplug/s390_pci_hpc.c pci_bus_add_devices(slot->zdev->bus); bus 103 drivers/pci/hotplug/s390_pci_hpc.c pdev = pci_get_slot(slot->zdev->bus, ZPCI_DEVFN); bus 162 drivers/pci/hotplug/s390_pci_hpc.c rc = pci_hp_register(&slot->hotplug_slot, zdev->bus, bus 64 drivers/pci/hotplug/shpchp.h u8 bus; bus 83 drivers/pci/hotplug/shpchp_core.c slot->bus = ctrl->pci_dev->subordinate->number; bus 103 drivers/pci/hotplug/shpchp_core.c slot->bus, slot->device, slot->hp_slot, slot->number, bus 309 drivers/pci/hotplug/shpchp_ctrl.c pci_domain_nr(parent), p_slot->bus, p_slot->device); bus 640 drivers/pci/hotplug/shpchp_hpc.c struct pci_bus *bus = ctrl->pci_dev->subordinate; bus 700 drivers/pci/hotplug/shpchp_hpc.c bus->cur_bus_speed = bus_speed; bus 854 drivers/pci/hotplug/shpchp_hpc.c struct pci_bus *bus = ctrl->pci_dev->subordinate; bus 890 drivers/pci/hotplug/shpchp_hpc.c bus->max_bus_speed = bus_speed; bus 37 drivers/pci/hotplug/shpchp_pci.c p_slot->bus, p_slot->device); bus 72 drivers/pci/hotplug/shpchp_pci.c __func__, pci_domain_nr(parent), p_slot->bus, p_slot->device); bus 30 drivers/pci/hotplug/shpchp_sysfs.c struct pci_bus *bus; bus 33 drivers/pci/hotplug/shpchp_sysfs.c bus = pdev->subordinate; bus 36 drivers/pci/hotplug/shpchp_sysfs.c pci_bus_for_each_resource(bus, res, index) { bus 45 drivers/pci/hotplug/shpchp_sysfs.c pci_bus_for_each_resource(bus, res, index) { bus 54 drivers/pci/hotplug/shpchp_sysfs.c pci_bus_for_each_resource(bus, res, index) { bus 62 drivers/pci/hotplug/shpchp_sysfs.c for (busnr = bus->busn_res.start; busnr <= bus->busn_res.end; busnr++) { bus 63 drivers/pci/hotplug/shpchp_sysfs.c if (!pci_find_bus(pci_domain_nr(bus), busnr)) bus 66 drivers/pci/hotplug/shpchp_sysfs.c if (busnr < bus->busn_res.end) bus 68 drivers/pci/hotplug/shpchp_sysfs.c busnr, (int)(bus->busn_res.end - busnr)); bus 24 drivers/pci/iov.c return dev->bus->number + ((dev->devfn + dev->sriov->offset + bus 80 drivers/pci/iov.c static struct pci_bus *virtfn_add_bus(struct pci_bus *bus, int busnr) bus 84 drivers/pci/iov.c if (bus->number == busnr) bus 85 drivers/pci/iov.c return bus; bus 87 drivers/pci/iov.c child = pci_find_bus(pci_domain_nr(bus), busnr); bus 91 drivers/pci/iov.c child = pci_add_new_bus(bus, NULL, busnr); bus 146 drivers/pci/iov.c struct pci_bus *bus; bus 148 drivers/pci/iov.c bus = virtfn_add_bus(dev->bus, pci_iov_virtfn_bus(dev, id)); bus 149 drivers/pci/iov.c if (!bus) bus 152 drivers/pci/iov.c virtfn = pci_alloc_dev(bus); bus 185 drivers/pci/iov.c pci_device_add(virtfn, virtfn->bus); bus 207 drivers/pci/iov.c virtfn_remove_bus(dev->bus, bus); bus 218 drivers/pci/iov.c virtfn = pci_get_domain_bus_and_slot(pci_domain_nr(dev->bus), bus 235 drivers/pci/iov.c virtfn_remove_bus(dev->bus, virtfn->bus); bus 450 drivers/pci/iov.c int bus; bus 479 drivers/pci/iov.c bus = pci_iov_virtfn_bus(dev, nr_virtfn - 1); bus 480 drivers/pci/iov.c if (bus > dev->bus->busn_res.end) { bus 482 drivers/pci/iov.c nr_virtfn, bus, &dev->bus->busn_res); bus 492 drivers/pci/iov.c pdev = pci_get_slot(dev->bus, iov->link); bus 603 drivers/pci/iov.c list_for_each_entry(pdev, &dev->bus->devices, bus_list) bus 608 drivers/pci/iov.c if (pci_ari_enabled(dev->bus)) bus 828 drivers/pci/iov.c pcibios_resource_to_bus(dev->bus, ®ion, res); bus 889 drivers/pci/iov.c int pci_iov_bus_range(struct pci_bus *bus) bus 894 drivers/pci/iov.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 901 drivers/pci/iov.c return max ? max - bus->number : 0; bus 65 drivers/pci/msi.c struct msi_controller *chip = dev->bus->msi; bus 92 drivers/pci/msi.c struct msi_controller *chip = dev->bus->msi; bus 859 drivers/pci/msi.c struct pci_bus *bus; bus 883 drivers/pci/msi.c for (bus = dev->bus; bus; bus = bus->parent) bus 884 drivers/pci/msi.c if (bus->bus_flags & PCI_BUS_FLAGS_NO_MSI) bus 1345 drivers/pci/msi.c return dev->bus->sysdata; bus 1379 drivers/pci/msi.c (pci_domain_nr(dev->bus) & 0xFFFFFFFF) << 27; bus 1528 drivers/pci/msi.c u8 bus = PCI_BUS_NUM(*pa); bus 1530 drivers/pci/msi.c if (pdev->bus->number != bus || PCI_BUS_NUM(alias) != bus) bus 21 drivers/pci/of.c if (!dev->bus->dev.of_node) bus 23 drivers/pci/of.c dev->dev.of_node = of_pci_find_child_device(dev->bus->dev.of_node, bus 36 drivers/pci/of.c void pci_set_bus_of_node(struct pci_bus *bus) bus 40 drivers/pci/of.c if (bus->self == NULL) { bus 41 drivers/pci/of.c node = pcibios_get_phb_of_node(bus); bus 43 drivers/pci/of.c node = of_node_get(bus->self->dev.of_node); bus 45 drivers/pci/of.c bus->self->untrusted = true; bus 48 drivers/pci/of.c bus->dev.of_node = node; bus 50 drivers/pci/of.c if (bus->dev.of_node) bus 51 drivers/pci/of.c bus->dev.fwnode = &bus->dev.of_node->fwnode; bus 54 drivers/pci/of.c void pci_release_bus_of_node(struct pci_bus *bus) bus 56 drivers/pci/of.c of_node_put(bus->dev.of_node); bus 57 drivers/pci/of.c bus->dev.of_node = NULL; bus 58 drivers/pci/of.c bus->dev.fwnode = NULL; bus 61 drivers/pci/of.c struct device_node * __weak pcibios_get_phb_of_node(struct pci_bus *bus) bus 64 drivers/pci/of.c if (WARN_ON(bus->self || bus->parent)) bus 72 drivers/pci/of.c if (bus->bridge->of_node) bus 73 drivers/pci/of.c return of_node_get(bus->bridge->of_node); bus 74 drivers/pci/of.c if (bus->bridge->parent && bus->bridge->parent->of_node) bus 75 drivers/pci/of.c return of_node_get(bus->bridge->parent->of_node); bus 79 drivers/pci/of.c struct irq_domain *pci_host_bridge_of_msi_domain(struct pci_bus *bus) bus 84 drivers/pci/of.c if (!bus->dev.of_node) bus 88 drivers/pci/of.c d = of_msi_get_domain(&bus->dev, bus->dev.of_node, DOMAIN_BUS_PCI_MSI); bus 96 drivers/pci/of.c d = irq_find_matching_host(bus->dev.of_node, DOMAIN_BUS_PCI_MSI); bus 100 drivers/pci/of.c return irq_find_host(bus->dev.of_node); bus 398 drivers/pci/of.c ppdev = pdev->bus->self; bus 402 drivers/pci/of.c ppnode = pci_bus_to_OF_node(pdev->bus); bus 440 drivers/pci/of.c laddr[0] = cpu_to_be32((pdev->bus->number << 16) | (pdev->devfn << 8)); bus 298 drivers/pci/p2pdma.c struct pci_dev *root = pci_get_slot(host->bus, PCI_DEVFN(0, 0)); bus 327 drivers/pci/p2pdma.c struct pci_host_bridge *host_a = pci_find_host_bridge(a->bus); bus 328 drivers/pci/p2pdma.c struct pci_host_bridge *host_b = pci_find_host_bridge(b->bus); bus 415 drivers/pci/p2pdma.c return (pci_domain_nr(client->bus) << 16) | bus 416 drivers/pci/p2pdma.c (client->bus->number << 8) | client->devfn; bus 755 drivers/pci/pci-acpi.c for (pbus = dev->bus; pbus; pbus = pbus->parent) { bus 806 drivers/pci/pci-acpi.c host = pci_find_host_bridge(bridge->bus); bus 833 drivers/pci/pci-acpi.c pci_pme_wakeup_bus(root->bus); bus 1049 drivers/pci/pci-acpi.c static int acpi_pci_propagate_wakeup(struct pci_bus *bus, bool enable) bus 1051 drivers/pci/pci-acpi.c while (bus->parent) { bus 1052 drivers/pci/pci-acpi.c if (acpi_pm_device_can_wakeup(&bus->self->dev)) bus 1053 drivers/pci/pci-acpi.c return acpi_pm_set_bridge_wakeup(&bus->self->dev, enable); bus 1055 drivers/pci/pci-acpi.c bus = bus->parent; bus 1059 drivers/pci/pci-acpi.c if (bus->bridge) { bus 1060 drivers/pci/pci-acpi.c if (acpi_pm_device_can_wakeup(bus->bridge)) bus 1061 drivers/pci/pci-acpi.c return acpi_pm_set_bridge_wakeup(bus->bridge, enable); bus 1071 drivers/pci/pci-acpi.c return acpi_pci_propagate_wakeup(dev->bus, enable); bus 1112 drivers/pci/pci-acpi.c void acpi_pci_add_bus(struct pci_bus *bus) bus 1117 drivers/pci/pci-acpi.c if (acpi_pci_disabled || !bus->bridge || !ACPI_HANDLE(bus->bridge)) bus 1120 drivers/pci/pci-acpi.c acpi_pci_slot_enumerate(bus); bus 1121 drivers/pci/pci-acpi.c acpiphp_enumerate_slots(bus); bus 1127 drivers/pci/pci-acpi.c if (!pci_is_root_bus(bus)) bus 1130 drivers/pci/pci-acpi.c obj = acpi_evaluate_dsm(ACPI_HANDLE(bus->bridge), &pci_acpi_dsm_guid, 3, bus 1136 drivers/pci/pci-acpi.c bridge = pci_find_host_bridge(bus); bus 1142 drivers/pci/pci-acpi.c void acpi_pci_remove_bus(struct pci_bus *bus) bus 1144 drivers/pci/pci-acpi.c if (acpi_pci_disabled || !bus->bridge) bus 1147 drivers/pci/pci-acpi.c acpiphp_remove_slots(bus); bus 1148 drivers/pci/pci-acpi.c acpi_pci_slot_remove(bus); bus 1188 drivers/pci/pci-acpi.c struct pci_host_bridge *bridge = pci_find_host_bridge(pdev->bus); bus 1320 drivers/pci/pci-acpi.c struct irq_domain *pci_host_bridge_acpi_msi_domain(struct pci_bus *bus) bus 1327 drivers/pci/pci-acpi.c fwnode = pci_msi_get_fwnode_cb(&bus->dev); bus 878 drivers/pci/pci-driver.c if (pci_dev->bus->self) bus 879 drivers/pci/pci-driver.c pci_dev->bus->self->skip_bus_pm = true; bus 1440 drivers/pci/pci-driver.c drv->driver.bus = &pci_bus_type; bus 1677 drivers/pci/pci-driver.c if (drv->bus != &pcie_port_bus_type || dev->bus != &pcie_port_bus_type) bus 49 drivers/pci/pci-label.c int bus; bus 52 drivers/pci/pci-label.c domain_nr = pci_domain_nr(pdev->bus); bus 53 drivers/pci/pci-label.c bus = pdev->bus->number; bus 61 drivers/pci/pci-label.c donboard->bus == bus && bus 87 drivers/pci/pci-sysfs.c mask = cpumask_of_pcibus(to_pci_dev(dev)->bus); bus 262 drivers/pci/pci-sysfs.c return sprintf(buf, "%u\n", pci_ari_enabled(pci_dev->bus)); bus 418 drivers/pci/pci-sysfs.c static ssize_t rescan_store(struct bus_type *bus, const char *buf, size_t count) bus 462 drivers/pci/pci-sysfs.c pci_rescan_bus(pdev->bus); bus 490 drivers/pci/pci-sysfs.c struct pci_bus *bus = to_pci_bus(dev); bus 497 drivers/pci/pci-sysfs.c if (!pci_is_root_bus(bus) && list_empty(&bus->devices)) bus 498 drivers/pci/pci-sysfs.c pci_rescan_bus_bridge_resize(bus->self); bus 500 drivers/pci/pci-sysfs.c pci_rescan_bus(bus); bus 835 drivers/pci/pci-sysfs.c struct pci_bus *bus = to_pci_bus(kobj_to_dev(kobj)); bus 841 drivers/pci/pci-sysfs.c return pci_legacy_read(bus, off, (u32 *)buf, count); bus 860 drivers/pci/pci-sysfs.c struct pci_bus *bus = to_pci_bus(kobj_to_dev(kobj)); bus 866 drivers/pci/pci-sysfs.c return pci_legacy_write(bus, off, *(u32 *)buf, count); bus 884 drivers/pci/pci-sysfs.c struct pci_bus *bus = to_pci_bus(kobj_to_dev(kobj)); bus 886 drivers/pci/pci-sysfs.c return pci_mmap_legacy_page_range(bus, vma, pci_mmap_mem); bus 904 drivers/pci/pci-sysfs.c struct pci_bus *bus = to_pci_bus(kobj_to_dev(kobj)); bus 906 drivers/pci/pci-sysfs.c return pci_mmap_legacy_page_range(bus, vma, pci_mmap_io); bus 152 drivers/pci/pci.c unsigned char pci_bus_max_busnr(struct pci_bus *bus) bus 157 drivers/pci/pci.c max = bus->busn_res.end; bus 158 drivers/pci/pci.c list_for_each_entry(tmp, &bus->children, node) { bus 221 drivers/pci/pci.c int seg, bus, slot, func; bus 261 drivers/pci/pci.c ret = sscanf(wpath, "%x:%x:%x.%x%c", &seg, &bus, &slot, bus 265 drivers/pci/pci.c ret = sscanf(wpath, "%x:%x.%x%c", &bus, &slot, &func, &end); bus 272 drivers/pci/pci.c ret = (seg == pci_domain_nr(dev->bus) && bus 273 drivers/pci/pci.c bus == dev->bus->number && bus 361 drivers/pci/pci.c static int __pci_find_next_cap_ttl(struct pci_bus *bus, unsigned int devfn, bus 367 drivers/pci/pci.c pci_bus_read_config_byte(bus, devfn, pos, &pos); bus 373 drivers/pci/pci.c pci_bus_read_config_word(bus, devfn, pos, &ent); bus 385 drivers/pci/pci.c static int __pci_find_next_cap(struct pci_bus *bus, unsigned int devfn, bus 390 drivers/pci/pci.c return __pci_find_next_cap_ttl(bus, devfn, pos, cap, &ttl); bus 395 drivers/pci/pci.c return __pci_find_next_cap(dev->bus, dev->devfn, bus 400 drivers/pci/pci.c static int __pci_bus_find_cap_start(struct pci_bus *bus, bus 405 drivers/pci/pci.c pci_bus_read_config_word(bus, devfn, PCI_STATUS, &status); bus 443 drivers/pci/pci.c pos = __pci_bus_find_cap_start(dev->bus, dev->devfn, dev->hdr_type); bus 445 drivers/pci/pci.c pos = __pci_find_next_cap(dev->bus, dev->devfn, pos, cap); bus 464 drivers/pci/pci.c int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap) bus 469 drivers/pci/pci.c pci_bus_read_config_byte(bus, devfn, PCI_HEADER_TYPE, &hdr_type); bus 471 drivers/pci/pci.c pos = __pci_bus_find_cap_start(bus, devfn, hdr_type & 0x7f); bus 473 drivers/pci/pci.c pos = __pci_find_next_cap(bus, devfn, pos, cap); bus 561 drivers/pci/pci.c pos = __pci_find_next_cap_ttl(dev->bus, dev->devfn, pos, bus 571 drivers/pci/pci.c pos = __pci_find_next_cap_ttl(dev->bus, dev->devfn, bus 612 drivers/pci/pci.c pos = __pci_bus_find_cap_start(dev->bus, dev->devfn, dev->hdr_type); bus 632 drivers/pci/pci.c const struct pci_bus *bus = dev->bus; bus 636 drivers/pci/pci.c pci_bus_for_each_resource(bus, r, i) { bus 913 drivers/pci/pci.c if (dev->bus->self) bus 914 drivers/pci/pci.c pcie_aspm_pm_state_change(dev->bus->self); bus 999 drivers/pci/pci.c void pci_wakeup_bus(struct pci_bus *bus) bus 1001 drivers/pci/pci.c if (bus) bus 1002 drivers/pci/pci.c pci_walk_bus(bus, pci_wakeup, NULL); bus 1051 drivers/pci/pci.c void pci_bus_set_current_state(struct pci_bus *bus, pci_power_t state) bus 1053 drivers/pci/pci.c if (bus) bus 1054 drivers/pci/pci.c pci_walk_bus(bus, __pci_dev_set_current_state, &state); bus 2047 drivers/pci/pci.c void pci_pme_wakeup_bus(struct pci_bus *bus) bus 2049 drivers/pci/pci.c if (bus) bus 2050 drivers/pci/pci.c pci_walk_bus(bus, pci_pme_wakeup, (void *)true); bus 2077 drivers/pci/pci.c bridge = pme_dev->dev->bus->self; bus 2456 drivers/pci/pci.c struct pci_bus *bus = dev->bus; bus 2468 drivers/pci/pci.c while (bus->parent) { bus 2469 drivers/pci/pci.c struct pci_dev *bridge = bus->self; bus 2474 drivers/pci/pci.c bus = bus->parent; bus 2478 drivers/pci/pci.c if (bus->bridge) bus 2479 drivers/pci/pci.c return device_can_wakeup(bus->bridge); bus 3030 drivers/pci/pci.c pci_bus_read_config_byte(dev->bus, dev->devfn, ea + PCI_EA_NUM_ENT, bus 3144 drivers/pci/pci.c bridge = dev->bus->self; bus 3411 drivers/pci/pci.c if (pci_is_root_bus(pdev->bus)) bus 3414 drivers/pci/pci.c parent = pdev->bus->self; bus 3536 drivers/pci/pci.c struct pci_bus *bus = dev->bus; bus 3559 drivers/pci/pci.c while (bus->parent) { bus 3560 drivers/pci/pci.c bridge = bus->self; bus 3587 drivers/pci/pci.c bus = bus->parent; bus 3611 drivers/pci/pci.c if (pci_ari_enabled(dev->bus)) bus 3627 drivers/pci/pci.c while (!pci_is_root_bus(dev->bus)) { bus 3629 drivers/pci/pci.c dev = dev->bus->self; bus 3647 drivers/pci/pci.c while (!pci_is_root_bus(dev->bus)) { bus 3649 drivers/pci/pci.c dev = dev->bus->self; bus 4343 drivers/pci/pci.c struct pci_bus *bus = dev->bus; bus 4359 drivers/pci/pci.c bus->ops->read(bus, dev->devfn, PCI_COMMAND, 4, &cmd_status_dword); bus 4378 drivers/pci/pci.c bus->ops->write(bus, dev->devfn, PCI_COMMAND, 2, newcmd); bus 4679 drivers/pci/pci.c static int pci_bus_max_d3cold_delay(const struct pci_bus *bus) bus 4685 drivers/pci/pci.c list_for_each_entry(pdev, &bus->devices, bus_list) { bus 4842 drivers/pci/pci.c if (pci_is_root_bus(dev->bus) || dev->subordinate || bus 4843 drivers/pci/pci.c !dev->bus->self || dev->dev_flags & PCI_DEV_FLAGS_NO_BUS_RESET) bus 4846 drivers/pci/pci.c list_for_each_entry(pdev, &dev->bus->devices, bus_list) bus 4853 drivers/pci/pci.c return pci_bridge_secondary_bus_reset(dev->bus->self); bus 4879 drivers/pci/pci.c list_for_each_entry(pdev, &dev->bus->devices, bus_list) bus 5143 drivers/pci/pci.c static bool pci_bus_resetable(struct pci_bus *bus) bus 5148 drivers/pci/pci.c if (bus->self && (bus->self->dev_flags & PCI_DEV_FLAGS_NO_BUS_RESET)) bus 5151 drivers/pci/pci.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 5161 drivers/pci/pci.c static void pci_bus_lock(struct pci_bus *bus) bus 5165 drivers/pci/pci.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 5173 drivers/pci/pci.c static void pci_bus_unlock(struct pci_bus *bus) bus 5177 drivers/pci/pci.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 5185 drivers/pci/pci.c static int pci_bus_trylock(struct pci_bus *bus) bus 5189 drivers/pci/pci.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 5202 drivers/pci/pci.c list_for_each_entry_continue_reverse(dev, &bus->devices, bus_list) { bus 5215 drivers/pci/pci.c if (slot->bus->self && bus 5216 drivers/pci/pci.c (slot->bus->self->dev_flags & PCI_DEV_FLAGS_NO_BUS_RESET)) bus 5219 drivers/pci/pci.c list_for_each_entry(dev, &slot->bus->devices, bus_list) { bus 5235 drivers/pci/pci.c list_for_each_entry(dev, &slot->bus->devices, bus_list) { bus 5249 drivers/pci/pci.c list_for_each_entry(dev, &slot->bus->devices, bus_list) { bus 5263 drivers/pci/pci.c list_for_each_entry(dev, &slot->bus->devices, bus_list) { bus 5279 drivers/pci/pci.c &slot->bus->devices, bus_list) { bus 5293 drivers/pci/pci.c static void pci_bus_save_and_disable_locked(struct pci_bus *bus) bus 5297 drivers/pci/pci.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 5309 drivers/pci/pci.c static void pci_bus_restore_locked(struct pci_bus *bus) bus 5313 drivers/pci/pci.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 5328 drivers/pci/pci.c list_for_each_entry(dev, &slot->bus->devices, bus_list) { bus 5346 drivers/pci/pci.c list_for_each_entry(dev, &slot->bus->devices, bus_list) { bus 5422 drivers/pci/pci.c static int pci_bus_reset(struct pci_bus *bus, int probe) bus 5426 drivers/pci/pci.c if (!bus->self || !pci_bus_resetable(bus)) bus 5432 drivers/pci/pci.c pci_bus_lock(bus); bus 5436 drivers/pci/pci.c ret = pci_bridge_secondary_bus_reset(bus->self); bus 5438 drivers/pci/pci.c pci_bus_unlock(bus); bus 5453 drivers/pci/pci.c struct pci_bus *bus = bridge->subordinate; bus 5456 drivers/pci/pci.c if (!bus) bus 5460 drivers/pci/pci.c if (list_empty(&bus->slots)) bus 5463 drivers/pci/pci.c list_for_each_entry(slot, &bus->slots, list) bus 5467 drivers/pci/pci.c list_for_each_entry(slot, &bus->slots, list) bus 5484 drivers/pci/pci.c int pci_probe_reset_bus(struct pci_bus *bus) bus 5486 drivers/pci/pci.c return pci_bus_reset(bus, 1); bus 5496 drivers/pci/pci.c static int __pci_reset_bus(struct pci_bus *bus) bus 5500 drivers/pci/pci.c rc = pci_bus_reset(bus, 1); bus 5504 drivers/pci/pci.c if (pci_bus_trylock(bus)) { bus 5505 drivers/pci/pci.c pci_bus_save_and_disable_locked(bus); bus 5507 drivers/pci/pci.c rc = pci_bridge_secondary_bus_reset(bus->self); bus 5508 drivers/pci/pci.c pci_bus_restore_locked(bus); bus 5509 drivers/pci/pci.c pci_bus_unlock(bus); bus 5525 drivers/pci/pci.c __pci_reset_slot(pdev->slot) : __pci_reset_bus(pdev->bus); bus 5610 drivers/pci/pci.c if (v > o && (dev->bus->bus_flags & PCI_BUS_FLAGS_NO_MMRBC)) bus 5947 drivers/pci/pci.c struct pci_bus *bus; bus 5971 drivers/pci/pci.c bus = dev->bus; bus 5972 drivers/pci/pci.c while (bus) { bus 5973 drivers/pci/pci.c bridge = bus->self; bus 5984 drivers/pci/pci.c bus = bus->parent; bus 6066 drivers/pci/pci.c return pci_bus_read_dev_vendor_id(pdev->bus, pdev->devfn, &v, 0); bus 6072 drivers/pci/pci.c struct pci_dev *bridge = dev->bus->self; bus 6283 drivers/pci/pci.c static ssize_t resource_alignment_show(struct bus_type *bus, char *buf) bus 6305 drivers/pci/pci.c static ssize_t resource_alignment_store(struct bus_type *bus, bus 6393 drivers/pci/pci.c int pci_bus_find_domain_nr(struct pci_bus *bus, struct device *parent) bus 6396 drivers/pci/pci.c acpi_pci_bus_find_domain_nr(bus); bus 6412 drivers/pci/pci.c void __weak pci_fixup_cardbus(struct pci_bus *bus) bus 96 drivers/pci/pci.h void pci_pme_wakeup_bus(struct pci_bus *bus); bus 155 drivers/pci/pci.h int pci_proc_detach_bus(struct pci_bus *bus); bus 159 drivers/pci/pci.h static inline int pci_proc_detach_bus(struct pci_bus *bus) { return 0; } bus 166 drivers/pci/pci.h void pci_create_legacy_files(struct pci_bus *bus); bus 167 drivers/pci/pci.h void pci_remove_legacy_files(struct pci_bus *bus); bus 169 drivers/pci/pci.h static inline void pci_create_legacy_files(struct pci_bus *bus) { return; } bus 170 drivers/pci/pci.h static inline void pci_remove_legacy_files(struct pci_bus *bus) { return; } bus 214 drivers/pci/pci.h if (dev->bus->self) bus 215 drivers/pci/pci.h parent_dstates = dev->bus->self->no_d1d2; bus 271 drivers/pci/pci.h bool pci_bus_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *pl, bus 273 drivers/pci/pci.h bool pci_bus_generic_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *pl, bus 275 drivers/pci/pci.h int pci_idt_bus_quirk(struct pci_bus *bus, int devfn, u32 *pl, int crs_timeout); bus 281 drivers/pci/pci.h void __pci_bus_size_bridges(struct pci_bus *bus, bus 283 drivers/pci/pci.h void __pci_bus_assign_resources(const struct pci_bus *bus, bus 290 drivers/pci/pci.h struct pci_bus *pci_bus_get(struct pci_bus *bus); bus 291 drivers/pci/pci.h void pci_bus_put(struct pci_bus *bus); bus 315 drivers/pci/pci.h void pcie_update_link_speed(struct pci_bus *bus, u16 link_status); bus 470 drivers/pci/pci.h int pci_iov_bus_range(struct pci_bus *bus); bus 487 drivers/pci/pci.h static inline int pci_iov_bus_range(struct pci_bus *bus) bus 609 drivers/pci/pci.h void pci_set_bus_of_node(struct pci_bus *bus); bus 610 drivers/pci/pci.h void pci_release_bus_of_node(struct pci_bus *bus); bus 633 drivers/pci/pci.h static inline void pci_set_bus_of_node(struct pci_bus *bus) { } bus 634 drivers/pci/pci.h static inline void pci_release_bus_of_node(struct pci_bus *bus) { } bus 221 drivers/pci/pcie/aer.c return ACPI_HEST_SEGMENT(p->bus) == pci_domain_nr(pci->bus) && bus 222 drivers/pci/pcie/aer.c ACPI_HEST_BUS(p->bus) == pci->bus->number && bus 748 drivers/pci/pcie/aer.c int id = ((dev->bus->number << 8) | dev->devfn); bus 782 drivers/pci/pcie/aer.c u8 bus = info->id >> 8; bus 788 drivers/pci/pcie/aer.c pci_domain_nr(dev->bus), bus, PCI_SLOT(devfn), bus 879 drivers/pci/pcie/aer.c !(dev->bus->bus_flags & PCI_BUS_FLAGS_NO_AERSID)) { bus 881 drivers/pci/pcie/aer.c if (e_info->id == ((dev->bus->number << 8) | dev->devfn)) bus 1013 drivers/pci/pcie/aer.c u8 bus; bus 1029 drivers/pci/pcie/aer.c pdev = pci_get_domain_bus_and_slot(entry.domain, entry.bus, bus 1033 drivers/pci/pcie/aer.c entry.domain, entry.bus, bus 1056 drivers/pci/pcie/aer.c void aer_recover_queue(int domain, unsigned int bus, unsigned int devfn, bus 1060 drivers/pci/pcie/aer.c .bus = bus, bus 1072 drivers/pci/pcie/aer.c domain, bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); bus 35 drivers/pci/pcie/aer_inject.c u8 bus; bus 50 drivers/pci/pcie/aer_inject.c unsigned int bus; bus 66 drivers/pci/pcie/aer_inject.c struct pci_bus *bus; bus 78 drivers/pci/pcie/aer_inject.c unsigned int bus, unsigned int devfn, bus 83 drivers/pci/pcie/aer_inject.c err->bus = bus; bus 89 drivers/pci/pcie/aer_inject.c static struct aer_error *__find_aer_error(u32 domain, unsigned int bus, bus 96 drivers/pci/pcie/aer_inject.c bus == err->bus && bus 106 drivers/pci/pcie/aer_inject.c int domain = pci_domain_nr(dev->bus); bus 109 drivers/pci/pcie/aer_inject.c return __find_aer_error(domain, dev->bus->number, dev->devfn); bus 113 drivers/pci/pcie/aer_inject.c static struct pci_ops *__find_pci_bus_ops(struct pci_bus *bus) bus 118 drivers/pci/pcie/aer_inject.c if (bus_ops->bus == bus) bus 181 drivers/pci/pcie/aer_inject.c static int aer_inj_read(struct pci_bus *bus, unsigned int devfn, int where, bus 187 drivers/pci/pcie/aer_inject.c ops = __find_pci_bus_ops(bus); bus 191 drivers/pci/pcie/aer_inject.c my_ops = bus->ops; bus 192 drivers/pci/pcie/aer_inject.c bus->ops = ops; bus 193 drivers/pci/pcie/aer_inject.c rv = ops->read(bus, devfn, where, size, val); bus 194 drivers/pci/pcie/aer_inject.c bus->ops = my_ops; bus 199 drivers/pci/pcie/aer_inject.c static int aer_inj_write(struct pci_bus *bus, unsigned int devfn, int where, bus 205 drivers/pci/pcie/aer_inject.c ops = __find_pci_bus_ops(bus); bus 209 drivers/pci/pcie/aer_inject.c my_ops = bus->ops; bus 210 drivers/pci/pcie/aer_inject.c bus->ops = ops; bus 211 drivers/pci/pcie/aer_inject.c rv = ops->write(bus, devfn, where, size, val); bus 212 drivers/pci/pcie/aer_inject.c bus->ops = my_ops; bus 217 drivers/pci/pcie/aer_inject.c static int aer_inj_read_config(struct pci_bus *bus, unsigned int devfn, bus 229 drivers/pci/pcie/aer_inject.c domain = pci_domain_nr(bus); bus 232 drivers/pci/pcie/aer_inject.c err = __find_aer_error(domain, bus->number, devfn); bus 243 drivers/pci/pcie/aer_inject.c rv = aer_inj_read(bus, devfn, where, size, val); bus 248 drivers/pci/pcie/aer_inject.c static int aer_inj_write_config(struct pci_bus *bus, unsigned int devfn, bus 261 drivers/pci/pcie/aer_inject.c domain = pci_domain_nr(bus); bus 264 drivers/pci/pcie/aer_inject.c err = __find_aer_error(domain, bus->number, devfn); bus 278 drivers/pci/pcie/aer_inject.c rv = aer_inj_write(bus, devfn, where, size, val); bus 289 drivers/pci/pcie/aer_inject.c struct pci_bus *bus, bus 293 drivers/pci/pcie/aer_inject.c bus_ops->bus = bus; bus 297 drivers/pci/pcie/aer_inject.c static int pci_bus_set_aer_ops(struct pci_bus *bus) bus 306 drivers/pci/pcie/aer_inject.c ops = pci_bus_set_ops(bus, &aer_inj_pci_ops); bus 310 drivers/pci/pcie/aer_inject.c pci_bus_ops_init(bus_ops, bus, ops); bus 332 drivers/pci/pcie/aer_inject.c dev = pci_get_domain_bus_and_slot(einj->domain, einj->bus, devfn); bus 389 drivers/pci/pcie/aer_inject.c aer_error_init(err, einj->domain, einj->bus, devfn, bus 419 drivers/pci/pcie/aer_inject.c aer_error_init(rperr, pci_domain_nr(rpdev->bus), bus 420 drivers/pci/pcie/aer_inject.c rpdev->bus->number, rpdev->devfn, bus 430 drivers/pci/pcie/aer_inject.c rperr->source_id |= (einj->bus << 8) | devfn; bus 443 drivers/pci/pcie/aer_inject.c rperr->source_id |= ((einj->bus << 8) | devfn) << 16; bus 454 drivers/pci/pcie/aer_inject.c ret = pci_bus_set_aer_ops(dev->bus); bus 457 drivers/pci/pcie/aer_inject.c ret = pci_bus_set_aer_ops(rpdev->bus); bus 531 drivers/pci/pcie/aer_inject.c pci_bus_set_ops(bus_ops->bus, bus_ops->ops); bus 446 drivers/pci/pcie/aspm.c link = endpoint->bus->self->link_state; bus 882 drivers/pci/pcie/aspm.c !pdev->bus->parent->self) { bus 887 drivers/pci/pcie/aspm.c parent = pdev->bus->parent->self->link_state; bus 928 drivers/pci/pcie/aspm.c pdev->bus->self) bus 996 drivers/pci/pcie/aspm.c struct pci_dev *parent = pdev->bus->self; bus 1071 drivers/pci/pcie/aspm.c struct pci_dev *parent = pdev->bus->self; bus 190 drivers/pci/pcie/err.c struct pci_bus *bus; bus 198 drivers/pci/pcie/err.c dev = dev->bus->self; bus 199 drivers/pci/pcie/err.c bus = dev->subordinate; bus 203 drivers/pci/pcie/err.c pci_walk_bus(bus, report_frozen_detected, &status); bus 205 drivers/pci/pcie/err.c pci_walk_bus(bus, report_normal_detected, &status); bus 214 drivers/pci/pcie/err.c pci_walk_bus(bus, report_mmio_enabled, &status); bus 225 drivers/pci/pcie/err.c pci_walk_bus(bus, report_slot_reset, &status); bus 232 drivers/pci/pcie/err.c pci_walk_bus(bus, report_resume, &status); bus 69 drivers/pci/pcie/pme.c static bool pcie_pme_walk_bus(struct pci_bus *bus) bus 74 drivers/pci/pcie/pme.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 101 drivers/pci/pcie/pme.c static bool pcie_pme_from_pci_bridge(struct pci_bus *bus, u8 devfn) bus 109 drivers/pci/pcie/pme.c dev = pci_dev_get(bus->self); bus 115 drivers/pci/pcie/pme.c if (pcie_pme_walk_bus(bus)) bus 132 drivers/pci/pcie/pme.c struct pci_bus *bus; bus 137 drivers/pci/pcie/pme.c if (port->devfn == devfn && port->bus->number == busnr) { bus 161 drivers/pci/pcie/pme.c bus = pci_find_bus(pci_domain_nr(port->bus), busnr); bus 162 drivers/pci/pcie/pme.c if (!bus) bus 166 drivers/pci/pcie/pme.c found = pcie_pme_from_pci_bridge(bus, devfn); bus 172 drivers/pci/pcie/pme.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 201 drivers/pci/pcie/pme.c found = pcie_pme_from_pci_bridge(bus, 0); bus 353 drivers/pci/pcie/pme.c static bool pcie_pme_check_wakeup(struct pci_bus *bus) bus 357 drivers/pci/pcie/pme.c if (!bus) bus 360 drivers/pci/pcie/pme.c list_for_each_entry(dev, &bus->devices, bus_list) bus 208 drivers/pci/pcie/portdrv_core.c struct pci_host_bridge *host = pci_find_host_bridge(dev->bus); bus 285 drivers/pci/pcie/portdrv_core.c device->bus = &pcie_port_bus_type; bus 372 drivers/pci/pcie/portdrv_core.c if ((dev->bus == &pcie_port_bus_type) && dev->driver) { bus 430 drivers/pci/pcie/portdrv_core.c if (dev->bus == &pcie_port_bus_type) bus 444 drivers/pci/pcie/portdrv_core.c if (device->bus == &pcie_port_bus_type && device->driver) { bus 590 drivers/pci/pcie/portdrv_core.c new->driver.bus = &pcie_port_bus_type; bus 164 drivers/pci/pcie/portdrv_pci.c if (device->bus == &pcie_port_bus_type && device->driver) { bus 286 drivers/pci/probe.c pcibios_bus_to_resource(dev->bus, res, ®ion); bus 287 drivers/pci/probe.c pcibios_resource_to_bus(dev->bus, &inverted_region, res); bus 432 drivers/pci/probe.c pcibios_bus_to_resource(dev->bus, res, ®ion); bus 454 drivers/pci/probe.c pcibios_bus_to_resource(dev->bus, res, ®ion); bus 507 drivers/pci/probe.c pcibios_bus_to_resource(dev->bus, res, ®ion); bus 680 drivers/pci/probe.c void pcie_update_link_speed(struct pci_bus *bus, u16 linksta) bus 682 drivers/pci/probe.c bus->cur_bus_speed = pcie_link_speed[linksta & PCI_EXP_LNKSTA_CLS]; bus 717 drivers/pci/probe.c static void pci_set_bus_speed(struct pci_bus *bus) bus 719 drivers/pci/probe.c struct pci_dev *bridge = bus->self; bus 729 drivers/pci/probe.c bus->max_bus_speed = agp_speed(agpstat & 8, agpstat & 7); bus 732 drivers/pci/probe.c bus->cur_bus_speed = agp_speed(agpstat & 8, agpcmd & 7); bus 756 drivers/pci/probe.c bus->max_bus_speed = max; bus 757 drivers/pci/probe.c bus->cur_bus_speed = pcix_bus_speed[ bus 768 drivers/pci/probe.c bus->max_bus_speed = pcie_link_speed[linkcap & PCI_EXP_LNKCAP_SLS]; bus 772 drivers/pci/probe.c pcie_update_link_speed(bus, linksta); bus 776 drivers/pci/probe.c static struct irq_domain *pci_host_bridge_msi_domain(struct pci_bus *bus) bus 784 drivers/pci/probe.c d = pci_host_bridge_of_msi_domain(bus); bus 786 drivers/pci/probe.c d = pci_host_bridge_acpi_msi_domain(bus); bus 794 drivers/pci/probe.c struct fwnode_handle *fwnode = pci_root_bus_fwnode(bus); bus 805 drivers/pci/probe.c static void pci_set_bus_msi_domain(struct pci_bus *bus) bus 815 drivers/pci/probe.c for (b = bus, d = NULL; !d && !pci_is_root_bus(b); b = b->parent) { bus 823 drivers/pci/probe.c dev_set_msi_domain(&bus->dev, d); bus 830 drivers/pci/probe.c struct pci_bus *bus, *b; bus 838 drivers/pci/probe.c bus = pci_alloc_bus(NULL); bus 839 drivers/pci/probe.c if (!bus) bus 842 drivers/pci/probe.c bridge->bus = bus; bus 846 drivers/pci/probe.c bus->sysdata = bridge->sysdata; bus 847 drivers/pci/probe.c bus->msi = bridge->msi; bus 848 drivers/pci/probe.c bus->ops = bridge->ops; bus 849 drivers/pci/probe.c bus->number = bus->busn_res.start = bridge->busnr; bus 851 drivers/pci/probe.c bus->domain_nr = pci_bus_find_domain_nr(bus, parent); bus 854 drivers/pci/probe.c b = pci_find_bus(pci_domain_nr(bus), bridge->busnr); bus 862 drivers/pci/probe.c dev_set_name(&bridge->dev, "pci%04x:%02x", pci_domain_nr(bus), bus 873 drivers/pci/probe.c bus->bridge = get_device(&bridge->dev); bus 874 drivers/pci/probe.c device_enable_async_suspend(bus->bridge); bus 875 drivers/pci/probe.c pci_set_bus_of_node(bus); bus 876 drivers/pci/probe.c pci_set_bus_msi_domain(bus); bus 879 drivers/pci/probe.c set_dev_node(bus->bridge, pcibus_to_node(bus)); bus 881 drivers/pci/probe.c bus->dev.class = &pcibus_class; bus 882 drivers/pci/probe.c bus->dev.parent = bus->bridge; bus 884 drivers/pci/probe.c dev_set_name(&bus->dev, "%04x:%02x", pci_domain_nr(bus), bus->number); bus 885 drivers/pci/probe.c name = dev_name(&bus->dev); bus 887 drivers/pci/probe.c err = device_register(&bus->dev); bus 891 drivers/pci/probe.c pcibios_add_bus(bus); bus 894 drivers/pci/probe.c pci_create_legacy_files(bus); bus 908 drivers/pci/probe.c pci_bus_insert_busn_res(bus, bus->number, res->end); bus 910 drivers/pci/probe.c pci_bus_add_resource(bus, res, 0); bus 924 drivers/pci/probe.c dev_info(&bus->dev, "root bus resource %pR%s\n", res, addr); bus 928 drivers/pci/probe.c list_add_tail(&bus->node, &pci_root_buses); bus 938 drivers/pci/probe.c kfree(bus); bus 951 drivers/pci/probe.c if (bridge->bus->bus_flags & PCI_BUS_FLAGS_NO_EXTCFG) bus 1084 drivers/pci/probe.c static unsigned int pci_scan_child_bus_extend(struct pci_bus *bus, bus 1146 drivers/pci/probe.c static int pci_scan_bridge_extend(struct pci_bus *bus, struct pci_dev *dev, bus 1174 drivers/pci/probe.c if (!primary && (primary != bus->number) && secondary && subordinate) { bus 1176 drivers/pci/probe.c primary = bus->number; bus 1181 drivers/pci/probe.c (primary != bus->number || secondary <= bus->number || bus 1215 drivers/pci/probe.c child = pci_find_bus(pci_domain_nr(bus), secondary); bus 1217 drivers/pci/probe.c child = pci_add_new_bus(bus, dev, secondary); bus 1270 drivers/pci/probe.c child = pci_find_bus(pci_domain_nr(bus), next_busnr); bus 1272 drivers/pci/probe.c child = pci_add_new_bus(bus, dev, next_busnr); bus 1276 drivers/pci/probe.c bus->busn_res.end); bus 1310 drivers/pci/probe.c struct pci_bus *parent = bus; bus 1311 drivers/pci/probe.c if (pci_find_bus(pci_domain_nr(bus), bus 1349 drivers/pci/probe.c pci_domain_nr(bus), child->number); bus 1352 drivers/pci/probe.c while (bus->parent) { bus 1353 drivers/pci/probe.c if ((child->busn_res.end > bus->busn_res.end) || bus 1354 drivers/pci/probe.c (child->number > bus->busn_res.end) || bus 1355 drivers/pci/probe.c (child->number < bus->number) || bus 1356 drivers/pci/probe.c (child->busn_res.end < bus->number)) { bus 1361 drivers/pci/probe.c bus = bus->parent; bus 1391 drivers/pci/probe.c int pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max, int pass) bus 1393 drivers/pci/probe.c return pci_scan_bridge_extend(bus, dev, max, 0, pass); bus 1593 drivers/pci/probe.c if (dev->bus->bus_flags & PCI_BUS_FLAGS_NO_EXTCFG) bus 1732 drivers/pci/probe.c dev->sysdata = dev->bus->sysdata; bus 1733 drivers/pci/probe.c dev->dev.parent = dev->bus->bridge; bus 1734 drivers/pci/probe.c dev->dev.bus = &pci_bus_type; bus 1748 drivers/pci/probe.c dev_set_name(&dev->dev, "%04x:%02x:%02x.%d", pci_domain_nr(dev->bus), bus 1749 drivers/pci/probe.c dev->bus->number, PCI_SLOT(dev->devfn), bus 1815 drivers/pci/probe.c pcibios_bus_to_resource(dev->bus, res, ®ion); bus 1822 drivers/pci/probe.c pcibios_bus_to_resource(dev->bus, res, ®ion); bus 1831 drivers/pci/probe.c pcibios_bus_to_resource(dev->bus, res, ®ion); bus 1838 drivers/pci/probe.c pcibios_bus_to_resource(dev->bus, res, ®ion); bus 1958 drivers/pci/probe.c host = pci_find_host_bridge(dev->bus); bus 2028 drivers/pci/probe.c struct pci_host_bridge *host = pci_find_host_bridge(dev->bus); bus 2151 drivers/pci/probe.c pci_bus_put(pci_dev->bus); bus 2157 drivers/pci/probe.c struct pci_dev *pci_alloc_dev(struct pci_bus *bus) bus 2167 drivers/pci/probe.c dev->bus = pci_bus_get(bus); bus 2178 drivers/pci/probe.c static bool pci_bus_wait_crs(struct pci_bus *bus, int devfn, u32 *l, bus 2197 drivers/pci/probe.c pci_domain_nr(bus), bus->number, bus 2204 drivers/pci/probe.c pci_domain_nr(bus), bus->number, bus 2210 drivers/pci/probe.c if (pci_bus_read_config_dword(bus, devfn, PCI_VENDOR_ID, l)) bus 2216 drivers/pci/probe.c pci_domain_nr(bus), bus->number, bus 2222 drivers/pci/probe.c bool pci_bus_generic_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *l, bus 2225 drivers/pci/probe.c if (pci_bus_read_config_dword(bus, devfn, PCI_VENDOR_ID, l)) bus 2234 drivers/pci/probe.c return pci_bus_wait_crs(bus, devfn, l, timeout); bus 2239 drivers/pci/probe.c bool pci_bus_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *l, bus 2243 drivers/pci/probe.c struct pci_dev *bridge = bus->self; bus 2251 drivers/pci/probe.c return pci_idt_bus_quirk(bus, devfn, l, timeout); bus 2254 drivers/pci/probe.c return pci_bus_generic_read_dev_vendor_id(bus, devfn, l, timeout); bus 2262 drivers/pci/probe.c static struct pci_dev *pci_scan_device(struct pci_bus *bus, int devfn) bus 2267 drivers/pci/probe.c if (!pci_bus_read_dev_vendor_id(bus, devfn, &l, 60*1000)) bus 2270 drivers/pci/probe.c dev = pci_alloc_dev(bus); bus 2281 drivers/pci/probe.c pci_bus_put(dev->bus); bus 2388 drivers/pci/probe.c d = dev_get_msi_domain(&dev->bus->dev); bus 2393 drivers/pci/probe.c void pci_device_add(struct pci_dev *dev, struct pci_bus *bus) bus 2402 drivers/pci/probe.c set_dev_node(&dev->dev, pcibus_to_node(bus)); bus 2427 drivers/pci/probe.c list_add_tail(&dev->bus_list, &bus->devices); bus 2442 drivers/pci/probe.c struct pci_dev *pci_scan_single_device(struct pci_bus *bus, int devfn) bus 2446 drivers/pci/probe.c dev = pci_get_slot(bus, devfn); bus 2452 drivers/pci/probe.c dev = pci_scan_device(bus, devfn); bus 2456 drivers/pci/probe.c pci_device_add(dev, bus); bus 2462 drivers/pci/probe.c static unsigned next_fn(struct pci_bus *bus, struct pci_dev *dev, unsigned fn) bus 2468 drivers/pci/probe.c if (pci_ari_enabled(bus)) { bus 2490 drivers/pci/probe.c static int only_one_child(struct pci_bus *bus) bus 2492 drivers/pci/probe.c struct pci_dev *bridge = bus->self; bus 2523 drivers/pci/probe.c int pci_scan_slot(struct pci_bus *bus, int devfn) bus 2528 drivers/pci/probe.c if (only_one_child(bus) && (devfn > 0)) bus 2531 drivers/pci/probe.c dev = pci_scan_single_device(bus, devfn); bus 2537 drivers/pci/probe.c for (fn = next_fn(bus, dev, 0); fn > 0; fn = next_fn(bus, dev, fn)) { bus 2538 drivers/pci/probe.c dev = pci_scan_single_device(bus, devfn + fn); bus 2547 drivers/pci/probe.c if (bus->self && nr) bus 2548 drivers/pci/probe.c pcie_aspm_init_link_state(bus->self); bus 2594 drivers/pci/probe.c dev->bus->self) bus 2609 drivers/pci/probe.c mps = min(mps, pcie_get_mps(dev->bus->self)); bus 2684 drivers/pci/probe.c void pcie_bus_configure_settings(struct pci_bus *bus) bus 2688 drivers/pci/probe.c if (!bus->self) bus 2691 drivers/pci/probe.c if (!pci_is_pcie(bus->self)) bus 2703 drivers/pci/probe.c smpss = bus->self->pcie_mpss; bus 2705 drivers/pci/probe.c pcie_find_smpss(bus->self, &smpss); bus 2706 drivers/pci/probe.c pci_walk_bus(bus, pcie_find_smpss, &smpss); bus 2709 drivers/pci/probe.c pcie_bus_configure_set(bus->self, &smpss); bus 2710 drivers/pci/probe.c pci_walk_bus(bus, pcie_bus_configure_set, &smpss); bus 2718 drivers/pci/probe.c void __weak pcibios_fixup_bus(struct pci_bus *bus) bus 2735 drivers/pci/probe.c static unsigned int pci_scan_child_bus_extend(struct pci_bus *bus, bus 2739 drivers/pci/probe.c unsigned int start = bus->busn_res.start; bus 2744 drivers/pci/probe.c dev_dbg(&bus->dev, "scanning bus\n"); bus 2748 drivers/pci/probe.c nr_devs = pci_scan_slot(bus, devfn); bus 2757 drivers/pci/probe.c dev = pci_scan_single_device(bus, devfn + fn); bus 2765 drivers/pci/probe.c used_buses = pci_iov_bus_range(bus); bus 2772 drivers/pci/probe.c if (!bus->is_added) { bus 2773 drivers/pci/probe.c dev_dbg(&bus->dev, "fixups for bus\n"); bus 2774 drivers/pci/probe.c pcibios_fixup_bus(bus); bus 2775 drivers/pci/probe.c bus->is_added = 1; bus 2783 drivers/pci/probe.c for_each_pci_bridge(dev, bus) { bus 2795 drivers/pci/probe.c for_each_pci_bridge(dev, bus) { bus 2797 drivers/pci/probe.c max = pci_scan_bridge_extend(bus, dev, max, 0, 0); bus 2809 drivers/pci/probe.c for_each_pci_bridge(dev, bus) { bus 2832 drivers/pci/probe.c max = pci_scan_bridge_extend(bus, dev, cmax, buses, 1); bus 2843 drivers/pci/probe.c if (bus->self && bus->self->is_hotplug_bridge) { bus 2850 drivers/pci/probe.c if (max > bus->busn_res.end) bus 2851 drivers/pci/probe.c max = bus->busn_res.end; bus 2853 drivers/pci/probe.c dev_dbg(&bus->dev, "%pR extended by %#02x\n", bus 2854 drivers/pci/probe.c &bus->busn_res, max - start); bus 2865 drivers/pci/probe.c dev_dbg(&bus->dev, "bus scan returning with max=%02x\n", max); bus 2876 drivers/pci/probe.c unsigned int pci_scan_child_bus(struct pci_bus *bus) bus 2878 drivers/pci/probe.c return pci_scan_child_bus_extend(bus, 0); bus 2894 drivers/pci/probe.c void __weak pcibios_add_bus(struct pci_bus *bus) bus 2898 drivers/pci/probe.c void __weak pcibios_remove_bus(struct pci_bus *bus) bus 2902 drivers/pci/probe.c struct pci_bus *pci_create_root_bus(struct device *parent, int bus, bus 2916 drivers/pci/probe.c bridge->busnr = bus; bus 2923 drivers/pci/probe.c return bridge->bus; bus 2933 drivers/pci/probe.c struct pci_bus *bus, *child; bus 2942 drivers/pci/probe.c bus = bridge->bus; bus 2950 drivers/pci/probe.c pci_bus_claim_resources(bus); bus 2952 drivers/pci/probe.c pci_bus_size_bridges(bus); bus 2953 drivers/pci/probe.c pci_bus_assign_resources(bus); bus 2955 drivers/pci/probe.c list_for_each_entry(child, &bus->children, node) bus 2959 drivers/pci/probe.c pci_bus_add_devices(bus); bus 2964 drivers/pci/probe.c int pci_bus_insert_busn_res(struct pci_bus *b, int bus, int bus_max) bus 2969 drivers/pci/probe.c res->start = bus; bus 3030 drivers/pci/probe.c int max, bus, ret; bus 3045 drivers/pci/probe.c b = bridge->bus; bus 3046 drivers/pci/probe.c bus = bridge->busnr; bus 3051 drivers/pci/probe.c bus); bus 3052 drivers/pci/probe.c pci_bus_insert_busn_res(b, bus, 255); bus 3064 drivers/pci/probe.c struct pci_bus *pci_scan_root_bus(struct device *parent, int bus, bus 3078 drivers/pci/probe.c b = pci_create_root_bus(parent, bus, ops, sysdata, resources); bus 3085 drivers/pci/probe.c bus); bus 3086 drivers/pci/probe.c pci_bus_insert_busn_res(b, bus, 255); bus 3098 drivers/pci/probe.c struct pci_bus *pci_scan_bus(int bus, struct pci_ops *ops, bus 3107 drivers/pci/probe.c b = pci_create_root_bus(NULL, bus, ops, sysdata, &resources); bus 3131 drivers/pci/probe.c struct pci_bus *bus = bridge->subordinate; bus 3133 drivers/pci/probe.c max = pci_scan_child_bus(bus); bus 3137 drivers/pci/probe.c pci_bus_add_devices(bus); bus 3151 drivers/pci/probe.c unsigned int pci_rescan_bus(struct pci_bus *bus) bus 3155 drivers/pci/probe.c max = pci_scan_child_bus(bus); bus 3156 drivers/pci/probe.c pci_assign_unassigned_bus_resources(bus); bus 3157 drivers/pci/probe.c pci_bus_add_devices(bus); bus 3187 drivers/pci/probe.c if (pci_domain_nr(a->bus) < pci_domain_nr(b->bus)) return -1; bus 3188 drivers/pci/probe.c else if (pci_domain_nr(a->bus) > pci_domain_nr(b->bus)) return 1; bus 3190 drivers/pci/probe.c if (a->bus->number < b->bus->number) return -1; bus 3191 drivers/pci/probe.c else if (a->bus->number > b->bus->number) return 1; bus 3206 drivers/pci/probe.c struct pci_bus *parent = dev->bus; bus 210 drivers/pci/proc.c ret = pci_domain_nr(dev->bus); bus 367 drivers/pci/proc.c dev->bus->number, bus 406 drivers/pci/proc.c struct pci_bus *bus = dev->bus; bus 413 drivers/pci/proc.c if (!bus->procdir) { bus 414 drivers/pci/proc.c if (pci_proc_domain(bus)) { bus 415 drivers/pci/proc.c sprintf(name, "%04x:%02x", pci_domain_nr(bus), bus 416 drivers/pci/proc.c bus->number); bus 418 drivers/pci/proc.c sprintf(name, "%02x", bus->number); bus 420 drivers/pci/proc.c bus->procdir = proc_mkdir(name, proc_bus_pci_dir); bus 421 drivers/pci/proc.c if (!bus->procdir) bus 426 drivers/pci/proc.c e = proc_create_data(name, S_IFREG | S_IRUGO | S_IWUSR, bus->procdir, bus 443 drivers/pci/proc.c int pci_proc_detach_bus(struct pci_bus *bus) bus 445 drivers/pci/proc.c proc_remove(bus->procdir); bus 529 drivers/pci/quirks.c pcibios_bus_to_resource(dev->bus, res, &bus_region); bus 577 drivers/pci/quirks.c pcibios_bus_to_resource(dev->bus, res, &bus_region); bus 1146 drivers/pci/quirks.c if (dev->bus->number != 0 || PCI_SLOT(dev->devfn) > via_vlink_dev_hi || bus 2535 drivers/pci/quirks.c apc_bridge = pci_get_slot(host_bridge->bus, PCI_DEVFN(1, 0)); bus 2597 drivers/pci/quirks.c pdev = pci_get_slot(dev->bus, 0); bus 2777 drivers/pci/quirks.c dev = pci_get_slot(host_bridge->bus, PCI_DEVFN(i, 0)); bus 2835 drivers/pci/quirks.c host_bridge = pci_get_slot(dev->bus, PCI_DEVFN(i, 0)); bus 2905 drivers/pci/quirks.c host_bridge = pci_get_domain_bus_and_slot(pci_domain_nr(dev->bus), 0, bus 3573 drivers/pci/quirks.c if (!pci_is_root_bus(dev->bus)) bus 3687 drivers/pci/quirks.c sibling = pci_get_slot(dev->bus, 0x0); bus 4111 drivers/pci/quirks.c if (!pci_is_root_bus(pdev->bus) && bus 4113 drivers/pci/quirks.c !pci_is_pcie(pdev) && pci_is_pcie(pdev->bus->self) && bus 4114 drivers/pci/quirks.c pci_pcie_type(pdev->bus->self) != PCI_EXP_TYPE_PCI_BRIDGE) bus 4428 drivers/pci/quirks.c if (!dev->multifunction || !pci_is_root_bus(dev->bus)) bus 4868 drivers/pci/quirks.c pci_bus_read_config_dword(dev->bus, PCI_DEVFN(31, 0), bus 5143 drivers/pci/quirks.c struct pci_host_bridge *bridge = pci_find_host_bridge(pdev->bus); bus 5151 drivers/pci/quirks.c pci_walk_bus(bridge->bus, pci_configure_extended_tags, NULL); bus 5209 drivers/pci/quirks.c supplier_pdev = pci_get_domain_bus_and_slot(pci_domain_nr(pdev->bus), bus 5210 drivers/pci/quirks.c pdev->bus->number, bus 5325 drivers/pci/quirks.c int pci_idt_bus_quirk(struct pci_bus *bus, int devfn, u32 *l, int timeout) bus 5330 drivers/pci/quirks.c struct pci_dev *bridge = bus->self; bus 5342 drivers/pci/quirks.c found = pci_bus_generic_read_dev_vendor_id(bus, devfn, l, timeout); bus 5346 drivers/pci/quirks.c pci_bus_write_config_word(bus, devfn, PCI_VENDOR_ID, 0); bus 47 drivers/pci/remove.c void pci_remove_bus(struct pci_bus *bus) bus 49 drivers/pci/remove.c pci_proc_detach_bus(bus); bus 52 drivers/pci/remove.c list_del(&bus->node); bus 53 drivers/pci/remove.c pci_bus_release_busn_res(bus); bus 55 drivers/pci/remove.c pci_remove_legacy_files(bus); bus 57 drivers/pci/remove.c if (bus->ops->remove_bus) bus 58 drivers/pci/remove.c bus->ops->remove_bus(bus); bus 60 drivers/pci/remove.c pcibios_remove_bus(bus); bus 61 drivers/pci/remove.c device_unregister(&bus->dev); bus 67 drivers/pci/remove.c struct pci_bus *bus = dev->subordinate; bus 76 drivers/pci/remove.c if (bus) { bus 78 drivers/pci/remove.c &bus->devices, bus_list) bus 87 drivers/pci/remove.c struct pci_bus *bus = dev->subordinate; bus 90 drivers/pci/remove.c if (bus) { bus 92 drivers/pci/remove.c &bus->devices, bus_list) bus 95 drivers/pci/remove.c pci_remove_bus(bus); bus 129 drivers/pci/remove.c void pci_stop_root_bus(struct pci_bus *bus) bus 134 drivers/pci/remove.c if (!pci_is_root_bus(bus)) bus 137 drivers/pci/remove.c host_bridge = to_pci_host_bridge(bus->bridge); bus 139 drivers/pci/remove.c &bus->devices, bus_list) bus 147 drivers/pci/remove.c void pci_remove_root_bus(struct pci_bus *bus) bus 152 drivers/pci/remove.c if (!pci_is_root_bus(bus)) bus 155 drivers/pci/remove.c host_bridge = to_pci_host_bridge(bus->bridge); bus 157 drivers/pci/remove.c &bus->devices, bus_list) bus 159 drivers/pci/remove.c pci_remove_bus(bus); bus 160 drivers/pci/remove.c host_bridge->bus = NULL; bus 42 drivers/pci/rom.c pcibios_resource_to_bus(pdev->bus, ®ion, res); bus 32 drivers/pci/search.c struct pci_bus *bus; bus 47 drivers/pci/search.c ret = fn(pdev, PCI_DEVID(pdev->bus->number, devfn), bus 54 drivers/pci/search.c for (bus = pdev->bus; !pci_is_root_bus(bus); bus = bus->parent) { bus 58 drivers/pci/search.c if (!bus->self) bus 61 drivers/pci/search.c tmp = bus->self; bus 110 drivers/pci/search.c static struct pci_bus *pci_do_find_bus(struct pci_bus *bus, unsigned char busnr) bus 115 drivers/pci/search.c if (bus->number == busnr) bus 116 drivers/pci/search.c return bus; bus 118 drivers/pci/search.c list_for_each_entry(tmp, &bus->children, node) { bus 137 drivers/pci/search.c struct pci_bus *bus = NULL; bus 140 drivers/pci/search.c while ((bus = pci_find_next_bus(bus)) != NULL) { bus 141 drivers/pci/search.c if (pci_domain_nr(bus) != domain) bus 143 drivers/pci/search.c tmp_bus = pci_do_find_bus(bus, busnr); bus 189 drivers/pci/search.c struct pci_dev *pci_get_slot(struct pci_bus *bus, unsigned int devfn) bus 196 drivers/pci/search.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 224 drivers/pci/search.c struct pci_dev *pci_get_domain_bus_and_slot(int domain, unsigned int bus, bus 230 drivers/pci/search.c if (pci_domain_nr(dev->bus) == domain && bus 231 drivers/pci/search.c (dev->bus->number == bus && dev->devfn == devfn)) bus 491 drivers/pci/setup-bus.c static void pbus_assign_resources_sorted(const struct pci_bus *bus, bus 498 drivers/pci/setup-bus.c list_for_each_entry(dev, &bus->devices, bus_list) bus 504 drivers/pci/setup-bus.c void pci_setup_cardbus(struct pci_bus *bus) bus 506 drivers/pci/setup-bus.c struct pci_dev *bridge = bus->self; bus 511 drivers/pci/setup-bus.c &bus->busn_res); bus 513 drivers/pci/setup-bus.c res = bus->resource[0]; bus 514 drivers/pci/setup-bus.c pcibios_resource_to_bus(bridge->bus, ®ion, res); bus 527 drivers/pci/setup-bus.c res = bus->resource[1]; bus 528 drivers/pci/setup-bus.c pcibios_resource_to_bus(bridge->bus, ®ion, res); bus 537 drivers/pci/setup-bus.c res = bus->resource[2]; bus 538 drivers/pci/setup-bus.c pcibios_resource_to_bus(bridge->bus, ®ion, res); bus 547 drivers/pci/setup-bus.c res = bus->resource[3]; bus 548 drivers/pci/setup-bus.c pcibios_resource_to_bus(bridge->bus, ®ion, res); bus 587 drivers/pci/setup-bus.c pcibios_resource_to_bus(bridge->bus, ®ion, res); bus 617 drivers/pci/setup-bus.c pcibios_resource_to_bus(bridge->bus, ®ion, res); bus 644 drivers/pci/setup-bus.c pcibios_resource_to_bus(bridge->bus, ®ion, res); bus 663 drivers/pci/setup-bus.c static void __pci_setup_bridge(struct pci_bus *bus, unsigned long type) bus 665 drivers/pci/setup-bus.c struct pci_dev *bridge = bus->self; bus 668 drivers/pci/setup-bus.c &bus->busn_res); bus 679 drivers/pci/setup-bus.c pci_write_config_word(bridge, PCI_BRIDGE_CONTROL, bus->bridge_ctl); bus 682 drivers/pci/setup-bus.c void __weak pcibios_setup_bridge(struct pci_bus *bus, unsigned long type) bus 686 drivers/pci/setup-bus.c void pci_setup_bridge(struct pci_bus *bus) bus 691 drivers/pci/setup-bus.c pcibios_setup_bridge(bus, type); bus 692 drivers/pci/setup-bus.c __pci_setup_bridge(bus, type); bus 735 drivers/pci/setup-bus.c static void pci_bridge_check_ranges(struct pci_bus *bus) bus 737 drivers/pci/setup-bus.c struct pci_dev *bridge = bus->self; bus 759 drivers/pci/setup-bus.c static struct resource *find_free_bus_resource(struct pci_bus *bus, bus 766 drivers/pci/setup-bus.c pci_bus_for_each_resource(bus, r, i) { bus 820 drivers/pci/setup-bus.c resource_size_t __weak pcibios_window_alignment(struct pci_bus *bus, bus 830 drivers/pci/setup-bus.c static resource_size_t window_alignment(struct pci_bus *bus, unsigned long type) bus 841 drivers/pci/setup-bus.c if (bus->self->io_window_1k) bus 847 drivers/pci/setup-bus.c arch_align = pcibios_window_alignment(bus, type); bus 864 drivers/pci/setup-bus.c static void pbus_size_io(struct pci_bus *bus, resource_size_t min_size, bus 869 drivers/pci/setup-bus.c struct resource *b_res = find_free_bus_resource(bus, IORESOURCE_IO, bus 878 drivers/pci/setup-bus.c min_align = window_alignment(bus, IORESOURCE_IO); bus 879 drivers/pci/setup-bus.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 912 drivers/pci/setup-bus.c pci_info(bus->self, "disabling bridge window %pR to %pR (unused)\n", bus 913 drivers/pci/setup-bus.c b_res, &bus->busn_res); bus 922 drivers/pci/setup-bus.c add_to_list(realloc_head, bus->self, b_res, size1-size0, bus 924 drivers/pci/setup-bus.c pci_info(bus->self, "bridge window %pR to %pR add_size %llx\n", bus 925 drivers/pci/setup-bus.c b_res, &bus->busn_res, bus 971 drivers/pci/setup-bus.c static int pbus_size_mem(struct pci_bus *bus, unsigned long mask, bus 981 drivers/pci/setup-bus.c struct resource *b_res = find_free_bus_resource(bus, bus 994 drivers/pci/setup-bus.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 1053 drivers/pci/setup-bus.c min_align = max(min_align, window_alignment(bus, b_res->flags)); bus 1061 drivers/pci/setup-bus.c pci_info(bus->self, "disabling bridge window %pR to %pR (unused)\n", bus 1062 drivers/pci/setup-bus.c b_res, &bus->busn_res); bus 1070 drivers/pci/setup-bus.c add_to_list(realloc_head, bus->self, b_res, size1-size0, add_align); bus 1071 drivers/pci/setup-bus.c pci_info(bus->self, "bridge window %pR to %pR add_size %llx add_align %llx\n", bus 1072 drivers/pci/setup-bus.c b_res, &bus->busn_res, bus 1088 drivers/pci/setup-bus.c static void pci_bus_size_cardbus(struct pci_bus *bus, bus 1091 drivers/pci/setup-bus.c struct pci_dev *bridge = bus->self; bus 1177 drivers/pci/setup-bus.c void __pci_bus_size_bridges(struct pci_bus *bus, struct list_head *realloc_head) bus 1185 drivers/pci/setup-bus.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 1203 drivers/pci/setup-bus.c if (pci_is_root_bus(bus)) bus 1206 drivers/pci/setup-bus.c switch (bus->self->hdr_type) { bus 1212 drivers/pci/setup-bus.c pci_bridge_check_ranges(bus); bus 1213 drivers/pci/setup-bus.c if (bus->self->is_hotplug_bridge) { bus 1219 drivers/pci/setup-bus.c pbus_size_io(bus, realloc_head ? 0 : additional_io_size, bus 1227 drivers/pci/setup-bus.c b_res = &bus->self->resource[PCI_BRIDGE_RESOURCES]; bus 1232 drivers/pci/setup-bus.c ret = pbus_size_mem(bus, prefmask, prefmask, bus 1256 drivers/pci/setup-bus.c ret = pbus_size_mem(bus, prefmask, prefmask, bus 1287 drivers/pci/setup-bus.c pbus_size_mem(bus, mask, IORESOURCE_MEM, type2, type3, bus 1294 drivers/pci/setup-bus.c void pci_bus_size_bridges(struct pci_bus *bus) bus 1296 drivers/pci/setup-bus.c __pci_bus_size_bridges(bus, NULL); bus 1333 drivers/pci/setup-bus.c b = dev->bus; bus 1341 drivers/pci/setup-bus.c void __pci_bus_assign_resources(const struct pci_bus *bus, bus 1348 drivers/pci/setup-bus.c pbus_assign_resources_sorted(bus, realloc_head, fail_head); bus 1350 drivers/pci/setup-bus.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 1377 drivers/pci/setup-bus.c void pci_bus_assign_resources(const struct pci_bus *bus) bus 1379 drivers/pci/setup-bus.c __pci_bus_assign_resources(bus, NULL, NULL); bus 1485 drivers/pci/setup-bus.c static void pci_bridge_release_resources(struct pci_bus *bus, bus 1488 drivers/pci/setup-bus.c struct pci_dev *dev = bus->self; bus 1538 drivers/pci/setup-bus.c __pci_setup_bridge(bus, type); bus 1553 drivers/pci/setup-bus.c static void pci_bus_release_bridge_resources(struct pci_bus *bus, bus 1560 drivers/pci/setup-bus.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 1575 drivers/pci/setup-bus.c if (pci_is_root_bus(bus)) bus 1578 drivers/pci/setup-bus.c if ((bus->self->class >> 8) != PCI_CLASS_BRIDGE_PCI) bus 1582 drivers/pci/setup-bus.c pci_bridge_release_resources(bus, type); bus 1585 drivers/pci/setup-bus.c static void pci_bus_dump_res(struct pci_bus *bus) bus 1590 drivers/pci/setup-bus.c pci_bus_for_each_resource(bus, res, i) { bus 1594 drivers/pci/setup-bus.c dev_info(&bus->dev, "resource %d %pR\n", i, res); bus 1598 drivers/pci/setup-bus.c static void pci_bus_dump_resources(struct pci_bus *bus) bus 1604 drivers/pci/setup-bus.c pci_bus_dump_res(bus); bus 1606 drivers/pci/setup-bus.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 1615 drivers/pci/setup-bus.c static int pci_bus_get_depth(struct pci_bus *bus) bus 1620 drivers/pci/setup-bus.c list_for_each_entry(child_bus, &bus->children, node) { bus 1673 drivers/pci/setup-bus.c pcibios_resource_to_bus(dev->bus, ®ion, r); bus 1683 drivers/pci/setup-bus.c static enum enable_type pci_realloc_detect(struct pci_bus *bus, bus 1692 drivers/pci/setup-bus.c host = pci_find_host_bridge(bus); bus 1696 drivers/pci/setup-bus.c pci_walk_bus(bus, iov_resources_unassigned, &unassigned); bus 1703 drivers/pci/setup-bus.c static enum enable_type pci_realloc_detect(struct pci_bus *bus, bus 1715 drivers/pci/setup-bus.c void pci_assign_unassigned_root_bus_resources(struct pci_bus *bus) bus 1728 drivers/pci/setup-bus.c enable_local = pci_realloc_detect(bus, pci_realloc_enable); bus 1730 drivers/pci/setup-bus.c int max_depth = pci_bus_get_depth(bus); bus 1733 drivers/pci/setup-bus.c dev_info(&bus->dev, "max bus depth: %d pci_try_num: %d\n", bus 1747 drivers/pci/setup-bus.c __pci_bus_size_bridges(bus, add_list); bus 1750 drivers/pci/setup-bus.c __pci_bus_assign_resources(bus, add_list, &fail_head); bus 1761 drivers/pci/setup-bus.c dev_info(&bus->dev, "Some PCI device resources are unassigned, try booting with pci=realloc\n"); bus 1763 drivers/pci/setup-bus.c dev_info(&bus->dev, "Automatically enabled pci realloc, if you have problem, try booting with pci=realloc=off\n"); bus 1769 drivers/pci/setup-bus.c dev_info(&bus->dev, "No. %d try to assign unassigned res\n", bus 1781 drivers/pci/setup-bus.c pci_bus_release_bridge_resources(fail_res->dev->bus, bus 1807 drivers/pci/setup-bus.c pci_bus_dump_resources(bus); bus 1848 drivers/pci/setup-bus.c static void pci_bus_distribute_available_resources(struct pci_bus *bus, bus 1857 drivers/pci/setup-bus.c struct pci_dev *dev, *bridge = bus->self; bus 1879 drivers/pci/setup-bus.c for_each_pci_bridge(dev, bus) { bus 1892 drivers/pci/setup-bus.c dev = list_first_entry(&bus->devices, struct pci_dev, bus_list); bus 1914 drivers/pci/setup-bus.c for_each_pci_bridge(dev, bus) { bus 1941 drivers/pci/setup-bus.c for_each_pci_bridge(dev, bus) { bus 2039 drivers/pci/setup-bus.c pci_bus_release_bridge_resources(fail_res->dev->bus, bus 2112 drivers/pci/setup-bus.c next = bridge->bus ? bridge->bus->self : NULL; bus 2169 drivers/pci/setup-bus.c void pci_assign_unassigned_bus_resources(struct pci_bus *bus) bus 2176 drivers/pci/setup-bus.c for_each_pci_bridge(dev, bus) bus 2180 drivers/pci/setup-bus.c __pci_bus_assign_resources(bus, &add_list, NULL); bus 24 drivers/pci/setup-irq.c struct pci_host_bridge *hbrg = pci_find_host_bridge(dev->bus); bus 56 drivers/pci/setup-res.c pcibios_resource_to_bus(dev->bus, ®ion, res); bus 245 drivers/pci/setup-res.c static int __pci_assign_resource(struct pci_bus *bus, struct pci_dev *dev, bus 261 drivers/pci/setup-res.c ret = pci_bus_alloc_resource(bus, res, size, align, min, bus 273 drivers/pci/setup-res.c ret = pci_bus_alloc_resource(bus, res, size, align, min, bus 287 drivers/pci/setup-res.c ret = pci_bus_alloc_resource(bus, res, size, align, min, 0, bus 296 drivers/pci/setup-res.c struct pci_bus *bus; bus 299 drivers/pci/setup-res.c bus = dev->bus; bus 300 drivers/pci/setup-res.c while ((ret = __pci_assign_resource(bus, dev, resno, size, min_align))) { bus 301 drivers/pci/setup-res.c if (!bus->parent || !bus->self->transparent) bus 303 drivers/pci/setup-res.c bus = bus->parent; bus 442 drivers/pci/setup-res.c ret = pci_reassign_bridge_resources(dev->bus->self, res->flags); bus 43 drivers/pci/slot.c pci_domain_nr(slot->bus), bus 44 drivers/pci/slot.c slot->bus->number); bus 47 drivers/pci/slot.c pci_domain_nr(slot->bus), bus 48 drivers/pci/slot.c slot->bus->number, bus 95 drivers/pci/slot.c return bus_speed_read(slot->bus->max_bus_speed, buf); bus 100 drivers/pci/slot.c return bus_speed_read(slot->bus->cur_bus_speed, buf); bus 108 drivers/pci/slot.c dev_dbg(&slot->bus->dev, "dev %02x, released physical slot %s\n", bus 112 drivers/pci/slot.c list_for_each_entry(dev, &slot->bus->devices, bus_list) bus 203 drivers/pci/slot.c list_for_each_entry(slot, &dev->bus->slots, list) bus 299 drivers/pci/slot.c slot->bus = parent; bus 348 drivers/pci/slot.c dev_dbg(&slot->bus->dev, "dev %02x, dec refcount to %d\n", bus 379 drivers/pci/slot.c dev_err(&pci_slot->bus->dev, "Error creating sysfs link (%d)\n", bus 15 drivers/pci/syscall.c SYSCALL_DEFINE5(pciconfig_read, unsigned long, bus, unsigned long, dfn, bus 29 drivers/pci/syscall.c dev = pci_get_domain_bus_and_slot(0, bus, dfn); bus 85 drivers/pci/syscall.c SYSCALL_DEFINE5(pciconfig_write, unsigned long, bus, unsigned long, dfn, bus 98 drivers/pci/syscall.c dev = pci_get_domain_bus_and_slot(0, bus, dfn); bus 123 drivers/pci/vc.c pci_is_root_bus(dev->bus)) bus 126 drivers/pci/vc.c pos2 = pci_find_ext_capability(dev->bus->self, PCI_EXT_CAP_ID_VC); bus 130 drivers/pci/vc.c pci_read_config_dword(dev->bus->self, pos2 + PCI_VC_PORT_CAP1, &cap1); bus 139 drivers/pci/vc.c pci_read_config_dword(dev->bus->self, ctrl_pos2, &ctrl2); bus 141 drivers/pci/vc.c link = dev->bus->self; bus 322 drivers/pci/vpd.c struct pci_dev *tdev = pci_get_slot(dev->bus, bus 337 drivers/pci/vpd.c struct pci_dev *tdev = pci_get_slot(dev->bus, bus 351 drivers/pci/vpd.c struct pci_dev *tdev = pci_get_slot(dev->bus, bus 533 drivers/pci/vpd.c f0 = pci_get_slot(dev->bus, PCI_DEVFN(PCI_SLOT(dev->devfn), 0)); bus 33 drivers/pci/xen-pcifront.c struct pci_bus *bus; bus 68 drivers/pci/xen-pcifront.c unsigned int domain, unsigned int bus, bus 178 drivers/pci/xen-pcifront.c static int pcifront_bus_read(struct pci_bus *bus, unsigned int devfn, bus 184 drivers/pci/xen-pcifront.c .domain = pci_domain_nr(bus), bus 185 drivers/pci/xen-pcifront.c .bus = bus->number, bus 190 drivers/pci/xen-pcifront.c struct pcifront_sd *sd = bus->sysdata; bus 196 drivers/pci/xen-pcifront.c pci_domain_nr(bus), bus->number, PCI_SLOT(devfn), bus 217 drivers/pci/xen-pcifront.c static int pcifront_bus_write(struct pci_bus *bus, unsigned int devfn, bus 222 drivers/pci/xen-pcifront.c .domain = pci_domain_nr(bus), bus 223 drivers/pci/xen-pcifront.c .bus = bus->number, bus 229 drivers/pci/xen-pcifront.c struct pcifront_sd *sd = bus->sysdata; bus 236 drivers/pci/xen-pcifront.c pci_domain_nr(bus), bus->number, bus 255 drivers/pci/xen-pcifront.c .domain = pci_domain_nr(dev->bus), bus 256 drivers/pci/xen-pcifront.c .bus = dev->bus->number, bus 260 drivers/pci/xen-pcifront.c struct pcifront_sd *sd = dev->bus->sysdata; bus 308 drivers/pci/xen-pcifront.c .domain = pci_domain_nr(dev->bus), bus 309 drivers/pci/xen-pcifront.c .bus = dev->bus->number, bus 312 drivers/pci/xen-pcifront.c struct pcifront_sd *sd = dev->bus->sysdata; bus 327 drivers/pci/xen-pcifront.c .domain = pci_domain_nr(dev->bus), bus 328 drivers/pci/xen-pcifront.c .bus = dev->bus->number, bus 331 drivers/pci/xen-pcifront.c struct pcifront_sd *sd = dev->bus->sysdata; bus 345 drivers/pci/xen-pcifront.c "%x:%x\n", op.bus, op.devfn); bus 356 drivers/pci/xen-pcifront.c .domain = pci_domain_nr(dev->bus), bus 357 drivers/pci/xen-pcifront.c .bus = dev->bus->number, bus 360 drivers/pci/xen-pcifront.c struct pcifront_sd *sd = dev->bus->sysdata; bus 417 drivers/pci/xen-pcifront.c unsigned int domain, unsigned int bus, bus 438 drivers/pci/xen-pcifront.c "%04x:%02x:%02x.%d found.\n", domain, bus, bus 446 drivers/pci/xen-pcifront.c unsigned int domain, unsigned int bus) bus 471 drivers/pci/xen-pcifront.c domain, bus); bus 482 drivers/pci/xen-pcifront.c pcifront_init_sd(sd, domain, bus, pdev); bus 486 drivers/pci/xen-pcifront.c b = pci_scan_root_bus(&pdev->xdev->dev, bus, bus 497 drivers/pci/xen-pcifront.c bus_entry->bus = b; bus 503 drivers/pci/xen-pcifront.c err = pcifront_scan_bus(pdev, domain, bus, b); bus 522 drivers/pci/xen-pcifront.c unsigned int domain, unsigned int bus) bus 538 drivers/pci/xen-pcifront.c domain, bus); bus 540 drivers/pci/xen-pcifront.c b = pci_find_bus(domain, bus); bus 543 drivers/pci/xen-pcifront.c return pcifront_scan_root(pdev, domain, bus); bus 545 drivers/pci/xen-pcifront.c err = pcifront_scan_bus(pdev, domain, bus, b); bus 556 drivers/pci/xen-pcifront.c static void free_root_bus_devs(struct pci_bus *bus) bus 560 drivers/pci/xen-pcifront.c while (!list_empty(&bus->devices)) { bus 561 drivers/pci/xen-pcifront.c dev = container_of(bus->devices.next, struct pci_dev, bus 578 drivers/pci/xen-pcifront.c free_root_bus_devs(bus_entry->bus); bus 580 drivers/pci/xen-pcifront.c kfree(bus_entry->bus->sysdata); bus 582 drivers/pci/xen-pcifront.c device_unregister(bus_entry->bus->bridge); bus 583 drivers/pci/xen-pcifront.c pci_remove_bus(bus_entry->bus); bus 596 drivers/pci/xen-pcifront.c int bus = pdev->sh_info->aer_op.bus; bus 604 drivers/pci/xen-pcifront.c cmd, bus, devfn); bus 607 drivers/pci/xen-pcifront.c pcidev = pci_get_domain_bus_and_slot(domain, bus, devfn); bus 664 drivers/pci/xen-pcifront.c pdev->sh_info->aer_op.bus, pdev->sh_info->aer_op.devfn); bus 858 drivers/pci/xen-pcifront.c unsigned int domain, bus; bus 901 drivers/pci/xen-pcifront.c "%x:%x", &domain, &bus); bus 910 drivers/pci/xen-pcifront.c err = pcifront_scan_root(pdev, domain, bus); bus 914 drivers/pci/xen-pcifront.c domain, bus); bus 952 drivers/pci/xen-pcifront.c unsigned int domain, bus; bus 987 drivers/pci/xen-pcifront.c "%x:%x", &domain, &bus); bus 996 drivers/pci/xen-pcifront.c err = pcifront_rescan_root(pdev, domain, bus); bus 1000 drivers/pci/xen-pcifront.c domain, bus); bus 1015 drivers/pci/xen-pcifront.c unsigned int domain, bus, slot, func; bus 1054 drivers/pci/xen-pcifront.c "%x:%x:%x.%x", &domain, &bus, &slot, &func); bus 1063 drivers/pci/xen-pcifront.c pci_dev = pci_get_domain_bus_and_slot(domain, bus, bus 1068 drivers/pci/xen-pcifront.c domain, bus, slot, func); bus 1078 drivers/pci/xen-pcifront.c domain, bus, slot, func); bus 27 drivers/pcmcia/cardbus.c static void cardbus_config_irq_and_cls(struct pci_bus *bus, int irq) bus 31 drivers/pcmcia/cardbus.c list_for_each_entry(dev, &bus->devices, bus_list) { bus 66 drivers/pcmcia/cardbus.c struct pci_bus *bus = s->cb_dev->subordinate; bus 72 drivers/pcmcia/cardbus.c s->functions = pci_scan_slot(bus, PCI_DEVFN(0, 0)); bus 73 drivers/pcmcia/cardbus.c pci_fixup_cardbus(bus); bus 75 drivers/pcmcia/cardbus.c max = bus->busn_res.start; bus 77 drivers/pcmcia/cardbus.c for_each_pci_bridge(dev, bus) bus 78 drivers/pcmcia/cardbus.c max = pci_scan_bridge(bus, dev, max, pass); bus 83 drivers/pcmcia/cardbus.c pci_bus_size_bridges(bus); bus 84 drivers/pcmcia/cardbus.c pci_bus_assign_resources(bus); bus 85 drivers/pcmcia/cardbus.c cardbus_config_irq_and_cls(bus, s->pci_irq); bus 89 drivers/pcmcia/cardbus.c s->tune_bridge(s, bus); bus 91 drivers/pcmcia/cardbus.c pci_bus_add_devices(bus); bus 106 drivers/pcmcia/cardbus.c struct pci_bus *bus; bus 112 drivers/pcmcia/cardbus.c bus = bridge->subordinate; bus 113 drivers/pcmcia/cardbus.c if (!bus) bus 118 drivers/pcmcia/cardbus.c list_for_each_entry_safe(dev, tmp, &bus->devices, bus_list) bus 179 drivers/pcmcia/ds.c driver->drv.bus = &pcmcia_bus_type; bus 515 drivers/pcmcia/ds.c p_dev->dev.bus = &pcmcia_bus_type; bus 612 drivers/pcmcia/i82092.c pcibios_resource_to_bus(sock_info->dev->bus, ®ion, mem->res); bus 70 drivers/pcmcia/rsrc_iodyn.c ret = pci_bus_alloc_resource(s->cb_dev->bus, res, num, 1, bus 699 drivers/pcmcia/rsrc_nonstatic.c ret = pci_bus_alloc_resource(s->cb_dev->bus, res, num, 1, bus 830 drivers/pcmcia/rsrc_nonstatic.c ret = pci_bus_alloc_resource(s->cb_dev->bus, bus 933 drivers/pcmcia/rsrc_nonstatic.c if (!s->cb_dev || !s->cb_dev->bus) bus 955 drivers/pcmcia/rsrc_nonstatic.c if (s->cb_dev->bus->number == 0) bus 959 drivers/pcmcia/rsrc_nonstatic.c res = s->cb_dev->bus->resource[i]; bus 961 drivers/pcmcia/rsrc_nonstatic.c pci_bus_for_each_resource(s->cb_dev->bus, res, i) { bus 487 drivers/pcmcia/ti113x.h func0 = pci_get_slot(socket->dev->bus, socket->dev->devfn & ~0x07); bus 707 drivers/pcmcia/ti113x.h func = pci_get_slot(socket->dev->bus, bus 936 drivers/pcmcia/ti113x.h static void ene_tune_bridge(struct pcmcia_socket *sock, struct pci_bus *bus) bus 943 drivers/pcmcia/ti113x.h list_for_each_entry(dev, &bus->devices, bus_list) { bus 450 drivers/pcmcia/yenta_socket.c pcibios_resource_to_bus(socket->dev->bus, ®ion, mem->res); bus 677 drivers/pcmcia/yenta_socket.c pci_bus_for_each_resource(socket->dev->bus, root, i) { bus 714 drivers/pcmcia/yenta_socket.c pcibios_bus_to_resource(dev->bus, res, ®ion); bus 1036 drivers/pcmcia/yenta_socket.c pcibios_resource_to_bus(socket->dev->bus, ®ion, &dev->resource[0]); bus 237 drivers/perf/arm-ccn.c static CCN_FORMAT_ATTR(bus, "config:24-25"); bus 194 drivers/phy/broadcom/phy-bcm-ns-usb3.c return mdiobus_write(mdiodev->bus, mdiodev->addr, reg, value); bus 32 drivers/phy/broadcom/phy-bcm-ns2-pcie.c rc = mdiobus_write(mdiodev->bus, mdiodev->addr, bus 38 drivers/phy/broadcom/phy-bcm-ns2-pcie.c rc = mdiobus_write(mdiodev->bus, mdiodev->addr, bus 772 drivers/platform/x86/asus-wmi.c struct pci_bus *bus; bus 788 drivers/platform/x86/asus-wmi.c bus = pci_find_bus(0, 1); bus 789 drivers/platform/x86/asus-wmi.c if (!bus) { bus 794 drivers/platform/x86/asus-wmi.c if (pci_bus_read_config_dword(bus, 0, PCI_VENDOR_ID, &l)) { bus 811 drivers/platform/x86/asus-wmi.c dev = pci_get_slot(bus, 0); bus 817 drivers/platform/x86/asus-wmi.c dev = pci_scan_single_device(bus, 0); bus 819 drivers/platform/x86/asus-wmi.c pci_bus_assign_resources(bus); bus 823 drivers/platform/x86/asus-wmi.c dev = pci_get_slot(bus, 0); bus 915 drivers/platform/x86/asus-wmi.c struct pci_bus *bus = pci_find_bus(0, 1); bus 917 drivers/platform/x86/asus-wmi.c if (!bus) { bus 931 drivers/platform/x86/asus-wmi.c ret = pci_hp_register(&asus->hotplug_slot, bus, 0, "asus-wifi"); bus 565 drivers/platform/x86/eeepc-laptop.c struct pci_bus *bus; bus 585 drivers/platform/x86/eeepc-laptop.c bus = port->subordinate; bus 587 drivers/platform/x86/eeepc-laptop.c if (!bus) { bus 592 drivers/platform/x86/eeepc-laptop.c if (pci_bus_read_config_dword(bus, 0, PCI_VENDOR_ID, &l)) { bus 608 drivers/platform/x86/eeepc-laptop.c dev = pci_get_slot(bus, 0); bus 614 drivers/platform/x86/eeepc-laptop.c dev = pci_scan_single_device(bus, 0); bus 616 drivers/platform/x86/eeepc-laptop.c pci_bus_assign_resources(bus); bus 620 drivers/platform/x86/eeepc-laptop.c dev = pci_get_slot(bus, 0); bus 731 drivers/platform/x86/eeepc-laptop.c struct pci_bus *bus = pci_find_bus(0, 1); bus 733 drivers/platform/x86/eeepc-laptop.c if (!bus) { bus 740 drivers/platform/x86/eeepc-laptop.c ret = pci_hp_register(&eeepc->hotplug_slot, bus, 0, "eeepc-wifi"); bus 63 drivers/platform/x86/intel_speed_select_if/isst_if_common.h struct pci_dev *isst_if_get_pci_dev(int cpu, int bus, int dev, int fn); bus 1095 drivers/platform/x86/wmi.c wblock->dev.dev.bus = &wmi_bus_type; bus 1422 drivers/platform/x86/wmi.c driver->driver.bus = &wmi_bus_type; bus 239 drivers/pnp/card.c card->dev.bus = NULL; bus 158 drivers/pnp/core.c dev->dev.bus = &pnp_bus_type; bus 270 drivers/pnp/driver.c drv->driver.bus = &pnp_bus_type; bus 60 drivers/pnp/isapnp/proc.c struct pnp_card *bus = dev->card; bus 64 drivers/pnp/isapnp/proc.c if (!(de = bus->procdir)) { bus 65 drivers/pnp/isapnp/proc.c sprintf(name, "%02x", bus->number); bus 66 drivers/pnp/isapnp/proc.c de = bus->procdir = proc_mkdir(name, isapnp_proc_bus_dir); bus 398 drivers/pnp/quirks.c pcibios_bus_to_resource(host->bus, &mch, ®ion); bus 54 drivers/power/reset/piix4-poweroff.c pci_bus_write_config_dword(pm_dev->bus, spec_devid, 0, bus 920 drivers/power/supply/bq27xxx_battery.c ret = di->bus.read(di, di->regs[reg_index], single); bus 936 drivers/power/supply/bq27xxx_battery.c if (!di->bus.write) bus 939 drivers/power/supply/bq27xxx_battery.c ret = di->bus.write(di, di->regs[reg_index], value, single); bus 955 drivers/power/supply/bq27xxx_battery.c if (!di->bus.read_bulk) bus 958 drivers/power/supply/bq27xxx_battery.c ret = di->bus.read_bulk(di, di->regs[reg_index], data, len); bus 974 drivers/power/supply/bq27xxx_battery.c if (!di->bus.write_bulk) bus 977 drivers/power/supply/bq27xxx_battery.c ret = di->bus.write_bulk(di, di->regs[reg_index], data, len); bus 95 drivers/power/supply/bq27xxx_battery_hdq.c di->bus.read = bq27xxx_battery_hdq_read; bus 175 drivers/power/supply/bq27xxx_battery_i2c.c di->bus.read = bq27xxx_battery_i2c_read; bus 176 drivers/power/supply/bq27xxx_battery_i2c.c di->bus.write = bq27xxx_battery_i2c_write; bus 177 drivers/power/supply/bq27xxx_battery_i2c.c di->bus.read_bulk = bq27xxx_battery_i2c_bulk_read; bus 178 drivers/power/supply/bq27xxx_battery_i2c.c di->bus.write_bulk = bq27xxx_battery_i2c_bulk_write; bus 1193 drivers/pwm/core.c chip->dev->bus ? chip->dev->bus->name : "no-bus", bus 154 drivers/rapidio/rio-driver.c rdrv->driver.bus = &rio_bus_type; bus 176 drivers/rapidio/rio-driver.c rdev->dev.bus = &rio_bus_type; bus 289 drivers/rapidio/rio-sysfs.c static ssize_t scan_store(struct bus_type *bus, const char *buf, size_t count) bus 2284 drivers/rapidio/rio.c if (dev->bus == &rio_bus_type) bus 109 drivers/remoteproc/remoteproc_core.c domain = iommu_domain_alloc(dev->bus); bus 524 drivers/rpmsg/rpmsg_core.c rpdev->dev.bus = &rpmsg_bus; bus 566 drivers/rpmsg/rpmsg_core.c rpdrv->drv.bus = &rpmsg_bus; bus 542 drivers/s390/char/monreader.c .bus = &iucv_bus, bus 580 drivers/s390/char/monreader.c monreader_device->bus = &iucv_bus; bus 708 drivers/s390/char/vmlogrdr.c .bus = &iucv_bus, bus 760 drivers/s390/char/vmlogrdr.c dev->bus = &iucv_bus; bus 338 drivers/s390/cio/ccwgroup.c gdev->dev.bus = &ccwgroup_bus_type; bus 565 drivers/s390/cio/ccwgroup.c return dev->bus == &ccwgroup_bus_type; bus 578 drivers/s390/cio/ccwgroup.c cdriver->driver.bus = &ccwgroup_bus_type; bus 446 drivers/s390/cio/css.c sch->dev.bus = &css_bus_type; bus 1551 drivers/s390/cio/css.c cdrv->drv.bus = &css_bus_type; bus 642 drivers/s390/cio/device.c dev->bus = &ccw_bus_type; bus 2052 drivers/s390/cio/device.c drv->bus = &ccw_bus_type; bus 59 drivers/s390/cio/scm.c drv->bus = &scm_bus_type; bus 148 drivers/s390/cio/scm.c scmdev->dev.bus = &scm_bus_type; bus 859 drivers/s390/crypto/ap_bus.c drv->bus = &ap_bus_type; bus 1022 drivers/s390/crypto/ap_bus.c static ssize_t ap_domain_show(struct bus_type *bus, char *buf) bus 1027 drivers/s390/crypto/ap_bus.c static ssize_t ap_domain_store(struct bus_type *bus, bus 1047 drivers/s390/crypto/ap_bus.c static ssize_t ap_control_domain_mask_show(struct bus_type *bus, char *buf) bus 1062 drivers/s390/crypto/ap_bus.c static ssize_t ap_usage_domain_mask_show(struct bus_type *bus, char *buf) bus 1077 drivers/s390/crypto/ap_bus.c static ssize_t ap_adapter_mask_show(struct bus_type *bus, char *buf) bus 1092 drivers/s390/crypto/ap_bus.c static ssize_t ap_interrupts_show(struct bus_type *bus, char *buf) bus 1100 drivers/s390/crypto/ap_bus.c static ssize_t config_time_show(struct bus_type *bus, char *buf) bus 1105 drivers/s390/crypto/ap_bus.c static ssize_t config_time_store(struct bus_type *bus, bus 1119 drivers/s390/crypto/ap_bus.c static ssize_t poll_thread_show(struct bus_type *bus, char *buf) bus 1124 drivers/s390/crypto/ap_bus.c static ssize_t poll_thread_store(struct bus_type *bus, bus 1142 drivers/s390/crypto/ap_bus.c static ssize_t poll_timeout_show(struct bus_type *bus, char *buf) bus 1147 drivers/s390/crypto/ap_bus.c static ssize_t poll_timeout_store(struct bus_type *bus, const char *buf, bus 1171 drivers/s390/crypto/ap_bus.c static ssize_t ap_max_domain_id_show(struct bus_type *bus, char *buf) bus 1184 drivers/s390/crypto/ap_bus.c static ssize_t apmask_show(struct bus_type *bus, char *buf) bus 1199 drivers/s390/crypto/ap_bus.c static ssize_t apmask_store(struct bus_type *bus, const char *buf, bus 1215 drivers/s390/crypto/ap_bus.c static ssize_t aqmask_show(struct bus_type *bus, char *buf) bus 1230 drivers/s390/crypto/ap_bus.c static ssize_t aqmask_store(struct bus_type *bus, const char *buf, bus 1501 drivers/s390/crypto/ap_bus.c ac->ap_dev.device.bus = &ap_bus_type; bus 1519 drivers/s390/crypto/ap_bus.c aq->ap_dev.device.bus = &ap_bus_type; bus 106 drivers/s390/crypto/vfio_ap_drv.c .bus = &matrix_bus, bus 141 drivers/s390/crypto/vfio_ap_drv.c matrix_dev->device.bus = &matrix_bus; bus 134 drivers/s390/net/netiucv.c .bus = &iucv_bus, bus 1809 drivers/s390/net/netiucv.c dev->bus = &iucv_bus; bus 2192 drivers/s390/net/netiucv.c netiucv_dev->bus = &iucv_bus; bus 173 drivers/s390/net/smsgiucv.c .bus = &iucv_bus, bus 216 drivers/s390/net/smsgiucv.c smsg_dev->bus = &iucv_bus; bus 174 drivers/s390/net/smsgiucv_app.c smsg_app_dev->bus = &iucv_bus; bus 106 drivers/sbus/char/bbc_i2c.c client->bus = reg[0]; bus 158 drivers/sbus/char/bbc_i2c.c writeb(client->bus, bp->i2c_bussel_reg); bus 188 drivers/sbus/char/bbc_i2c.c writeb(client->bus, bp->i2c_bussel_reg); bus 12 drivers/sbus/char/bbc_i2c.h int bus; bus 635 drivers/scsi/BusLogic.c if (probeinfo1->bus > probeinfo2->bus || bus 636 drivers/scsi/BusLogic.c (probeinfo1->bus == probeinfo2->bus && bus 698 drivers/scsi/BusLogic.c unsigned char bus; bus 712 drivers/scsi/BusLogic.c bus = pci_device->bus->number; bus 720 drivers/scsi/BusLogic.c blogic_err("at PCI Bus %d Device %d I/O Address 0x%X\n", NULL, bus, device, io_addr); bus 725 drivers/scsi/BusLogic.c blogic_err("at PCI Bus %d Device %d PCI Address 0x%X\n", NULL, bus, device, pci_addr); bus 730 drivers/scsi/BusLogic.c blogic_err("at PCI Bus %d Device %d I/O Address 0x%X\n", NULL, bus, device, io_addr); bus 735 drivers/scsi/BusLogic.c blogic_notice("BusLogic: PCI Bus %d Device %d I/O Address " "0x%X PCI Address 0x%X\n", NULL, bus, device, io_addr, pci_addr); bus 802 drivers/scsi/BusLogic.c pr_probeinfo->bus = bus; bus 814 drivers/scsi/BusLogic.c probeinfo->bus = bus; bus 884 drivers/scsi/BusLogic.c unsigned char bus; bus 895 drivers/scsi/BusLogic.c bus = pci_device->bus->number; bus 909 drivers/scsi/BusLogic.c probeinfo->bus = bus; bus 938 drivers/scsi/BusLogic.c unsigned char bus; bus 952 drivers/scsi/BusLogic.c bus = pci_device->bus->number; bus 960 drivers/scsi/BusLogic.c blogic_err("at PCI Bus %d Device %d I/O Address 0x%X\n", NULL, bus, device, io_addr); bus 965 drivers/scsi/BusLogic.c blogic_err("at PCI Bus %d Device %d PCI Address 0x%X\n", NULL, bus, device, pci_addr); bus 970 drivers/scsi/BusLogic.c blogic_err("at PCI Bus %d Device %d I/O Address 0x%X\n", NULL, bus, device, io_addr); bus 975 drivers/scsi/BusLogic.c blogic_notice("BusLogic: PCI Bus %d Device %d I/O Address " "0x%X PCI Address 0x%X\n", NULL, bus, device, io_addr, pci_addr); bus 984 drivers/scsi/BusLogic.c probeinfo->bus = bus; bus 992 drivers/scsi/BusLogic.c blogic_err("BusLogic: FlashPoint Host Adapter detected at " "PCI Bus %d Device %d\n", NULL, bus, device); bus 1102 drivers/scsi/BusLogic.c blogic_err("Bus %d Device %d I/O Address 0x%X PCI Address 0x%X:\n", adapter, adapter->bus, adapter->dev, adapter->io_addr, adapter->pci_addr); bus 1132 drivers/scsi/BusLogic.c blogic_err("BusLogic: FlashPoint Host Adapter detected at " "PCI Bus %d Device %d\n", adapter, adapter->bus, adapter->dev); bus 1853 drivers/scsi/BusLogic.c adapter->bus, adapter->dev); bus 2397 drivers/scsi/BusLogic.c myadapter->bus = probeinfo->bus; bus 229 drivers/scsi/BusLogic.h unsigned char bus; bus 997 drivers/scsi/BusLogic.h unsigned char bus; bus 1518 drivers/scsi/aacraid/aachba.c int bus, target; bus 1540 drivers/scsi/aacraid/aachba.c bus = aac_logical_to_phys(scmd_channel(cmd)); bus 1542 drivers/scsi/aacraid/aachba.c hbacmd->it_nexus = dev->hba_map[bus][target].rmw_nexus; bus 1739 drivers/scsi/aacraid/aachba.c static void aac_set_safw_target_qd(struct aac_dev *dev, int bus, int target) bus 1744 drivers/scsi/aacraid/aachba.c if (dev->hba_map[bus][target].devtype != AAC_DEVTYPE_NATIVE_RAW) bus 1747 drivers/scsi/aacraid/aachba.c identify_resp = dev->hba_map[bus][target].safw_identify_resp; bus 1749 drivers/scsi/aacraid/aachba.c dev->hba_map[bus][target].qd_limit = 32; bus 1755 drivers/scsi/aacraid/aachba.c dev->hba_map[bus][target].qd_limit = 32; bus 1757 drivers/scsi/aacraid/aachba.c dev->hba_map[bus][target].qd_limit = bus 1762 drivers/scsi/aacraid/aachba.c struct aac_ciss_identify_pd **identify_resp, u32 bus, u32 target) bus 1867 drivers/scsi/aacraid/aachba.c return dev->safw_phys_luns->lun[lun].bus >> 6; bus 1886 drivers/scsi/aacraid/aachba.c int bus, int target) bus 1888 drivers/scsi/aacraid/aachba.c kfree(dev->hba_map[bus][target].safw_identify_resp); bus 1889 drivers/scsi/aacraid/aachba.c dev->hba_map[bus][target].safw_identify_resp = NULL; bus 1897 drivers/scsi/aacraid/aachba.c u32 bus; bus 1908 drivers/scsi/aacraid/aachba.c bus = aac_get_safw_phys_bus(dev, i); bus 1911 drivers/scsi/aacraid/aachba.c aac_free_safw_identify_resp(dev, bus, target); bus 1920 drivers/scsi/aacraid/aachba.c u32 bus; bus 1928 drivers/scsi/aacraid/aachba.c bus = aac_get_safw_phys_bus(dev, i); bus 1932 drivers/scsi/aacraid/aachba.c &identify_resp, bus, target); bus 1937 drivers/scsi/aacraid/aachba.c dev->hba_map[bus][target].safw_identify_resp = identify_resp; bus 1959 drivers/scsi/aacraid/aachba.c u32 i, bus, target; bus 1968 drivers/scsi/aacraid/aachba.c bus = aac_get_safw_phys_bus(dev, i); bus 1974 drivers/scsi/aacraid/aachba.c if (bus >= AAC_MAX_BUSES || target >= AAC_MAX_TARGETS) bus 1978 drivers/scsi/aacraid/aachba.c dev->hba_map[bus][target].devtype = bus 1984 drivers/scsi/aacraid/aachba.c dev->hba_map[bus][target].devtype = bus 1986 drivers/scsi/aacraid/aachba.c dev->hba_map[bus][target].rmw_nexus = bus 1989 drivers/scsi/aacraid/aachba.c dev->hba_map[bus][target].devtype = bus 1992 drivers/scsi/aacraid/aachba.c dev->hba_map[bus][target].scan_counter = dev->scan_counter; bus 1994 drivers/scsi/aacraid/aachba.c aac_set_safw_target_qd(dev, bus, target); bus 2032 drivers/scsi/aacraid/aachba.c u32 tmp, bus, target; bus 2092 drivers/scsi/aacraid/aachba.c for (bus = 0; bus < AAC_MAX_BUSES; bus++) { bus 2094 drivers/scsi/aacraid/aachba.c dev->hba_map[bus][target].devtype = 0; bus 2095 drivers/scsi/aacraid/aachba.c dev->hba_map[bus][target].qd_limit = 0; bus 2847 drivers/scsi/aacraid/aachba.c u32 cid, bus; bus 2894 drivers/scsi/aacraid/aachba.c bus = aac_logical_to_phys(scmd_channel(scsicmd)); bus 2896 drivers/scsi/aacraid/aachba.c if (bus < AAC_MAX_BUSES && cid < AAC_MAX_TARGETS && bus 2897 drivers/scsi/aacraid/aachba.c dev->hba_map[bus][cid].devtype bus 3363 drivers/scsi/aacraid/aachba.c } else if ((qd.bus == -1) && (qd.id == -1) && (qd.lun == -1)) { bus 3367 drivers/scsi/aacraid/aachba.c qd.bus = 0; bus 3720 drivers/scsi/aacraid/aachba.c u32 bus, cid; bus 3722 drivers/scsi/aacraid/aachba.c bus = aac_logical_to_phys(scmd_channel(scsicmd)); bus 3724 drivers/scsi/aacraid/aachba.c if (dev->hba_map[bus][cid].devtype == AAC_DEVTYPE_NATIVE_RAW) { bus 3725 drivers/scsi/aacraid/aachba.c dev->hba_map[bus][cid].devtype = AAC_DEVTYPE_ARC_RAW; bus 3726 drivers/scsi/aacraid/aachba.c dev->hba_map[bus][cid].rmw_nexus = 0xffffffff; bus 318 drivers/scsi/aacraid/aacraid.h u8 bus; /* Bus, flag (bits 6,7) */ bus 2314 drivers/scsi/aacraid/aacraid.h s32 bus; bus 986 drivers/scsi/aacraid/commctrl.c u32 bus; bus 995 drivers/scsi/aacraid/commctrl.c pci_info.bus = dev->pdev->bus->number; bus 1011 drivers/scsi/aacraid/commctrl.c hbainfo.system_io_bus_number = dev->pdev->bus->number; bus 1842 drivers/scsi/aacraid/commsup.c static inline int is_safw_raid_volume(struct aac_dev *aac, int bus, int target) bus 1844 drivers/scsi/aacraid/commsup.c return bus == CONTAINER_CHANNEL && target < aac->maximum_num_containers; bus 1848 drivers/scsi/aacraid/commsup.c int bus, bus 1851 drivers/scsi/aacraid/commsup.c if (bus != CONTAINER_CHANNEL) bus 1852 drivers/scsi/aacraid/commsup.c bus = aac_phys_to_logical(bus); bus 1854 drivers/scsi/aacraid/commsup.c return scsi_device_lookup(dev->scsi_host_ptr, bus, target, 0); bus 1857 drivers/scsi/aacraid/commsup.c static int aac_add_safw_device(struct aac_dev *dev, int bus, int target) bus 1859 drivers/scsi/aacraid/commsup.c if (bus != CONTAINER_CHANNEL) bus 1860 drivers/scsi/aacraid/commsup.c bus = aac_phys_to_logical(bus); bus 1862 drivers/scsi/aacraid/commsup.c return scsi_add_device(dev->scsi_host_ptr, bus, target, 0); bus 1871 drivers/scsi/aacraid/commsup.c static void aac_remove_safw_device(struct aac_dev *dev, int bus, int target) bus 1875 drivers/scsi/aacraid/commsup.c sdev = aac_lookup_safw_scsi_device(dev, bus, target); bus 1881 drivers/scsi/aacraid/commsup.c int bus, int target) bus 1883 drivers/scsi/aacraid/commsup.c return dev->hba_map[bus][target].scan_counter == dev->scan_counter; bus 1886 drivers/scsi/aacraid/commsup.c static int aac_is_safw_target_valid(struct aac_dev *dev, int bus, int target) bus 1888 drivers/scsi/aacraid/commsup.c if (is_safw_raid_volume(dev, bus, target)) bus 1891 drivers/scsi/aacraid/commsup.c return aac_is_safw_scan_count_equal(dev, bus, target); bus 1894 drivers/scsi/aacraid/commsup.c static int aac_is_safw_device_exposed(struct aac_dev *dev, int bus, int target) bus 1899 drivers/scsi/aacraid/commsup.c sdev = aac_lookup_safw_scsi_device(dev, bus, target); bus 1910 drivers/scsi/aacraid/commsup.c int bus; bus 1922 drivers/scsi/aacraid/commsup.c bus = get_bus_number(i); bus 1925 drivers/scsi/aacraid/commsup.c is_exposed = aac_is_safw_device_exposed(dev, bus, target); bus 1927 drivers/scsi/aacraid/commsup.c if (aac_is_safw_target_valid(dev, bus, target) && !is_exposed) bus 1928 drivers/scsi/aacraid/commsup.c aac_add_safw_device(dev, bus, target); bus 1929 drivers/scsi/aacraid/commsup.c else if (!aac_is_safw_target_valid(dev, bus, target) && bus 1931 drivers/scsi/aacraid/commsup.c aac_remove_safw_device(dev, bus, target); bus 673 drivers/scsi/aacraid/linit.c u32 bus, cid; bus 679 drivers/scsi/aacraid/linit.c bus = aac_logical_to_phys(scmd_channel(cmd)); bus 681 drivers/scsi/aacraid/linit.c if (aac->hba_map[bus][cid].devtype == AAC_DEVTYPE_NATIVE_RAW) { bus 712 drivers/scsi/aacraid/linit.c tmf->it_nexus = aac->hba_map[bus][cid].rmw_nexus; bus 891 drivers/scsi/aacraid/linit.c u32 bus, cid; bus 897 drivers/scsi/aacraid/linit.c bus = aac_logical_to_phys(scmd_channel(cmd)); bus 900 drivers/scsi/aacraid/linit.c if (bus >= AAC_MAX_BUSES || cid >= AAC_MAX_TARGETS) bus 903 drivers/scsi/aacraid/linit.c info = &aac->hba_map[bus][cid]; bus 949 drivers/scsi/aacraid/linit.c u32 bus, cid; bus 955 drivers/scsi/aacraid/linit.c bus = aac_logical_to_phys(scmd_channel(cmd)); bus 958 drivers/scsi/aacraid/linit.c if (bus >= AAC_MAX_BUSES || cid >= AAC_MAX_TARGETS) bus 961 drivers/scsi/aacraid/linit.c info = &aac->hba_map[bus][cid]; bus 1020 drivers/scsi/aacraid/linit.c u32 bus, cid; bus 1023 drivers/scsi/aacraid/linit.c bus = aac_logical_to_phys(scmd_channel(cmd)); bus 1024 drivers/scsi/aacraid/linit.c if (bus != cmd_bus) bus 1027 drivers/scsi/aacraid/linit.c info = &aac->hba_map[bus][cid]; bus 1028 drivers/scsi/aacraid/linit.c if (bus >= AAC_MAX_BUSES || cid >= AAC_MAX_TARGETS || bus 1088 drivers/scsi/aacraid/linit.c int bus, cid; bus 1091 drivers/scsi/aacraid/linit.c for (bus = 0; bus < AAC_MAX_BUSES; bus++) { bus 1093 drivers/scsi/aacraid/linit.c info = &aac->hba_map[bus][cid]; bus 484 drivers/scsi/aic7xxx/aic79xx_osm.h return (pci->bus->number); bus 144 drivers/scsi/aic7xxx/aic79xx_osm_pci.c master_pdev = pci_get_slot(pdev->bus, master_devfn); bus 494 drivers/scsi/aic7xxx/aic7xxx_osm.h return (pci->bus->number); bus 187 drivers/scsi/aic7xxx/aic7xxx_osm_pci.c master_pdev = pci_get_slot(pdev->bus, master_devfn); bus 959 drivers/scsi/arcmsr/arcmsr_hba.c uint8_t bus,dev_fun; bus 970 drivers/scsi/arcmsr/arcmsr_hba.c bus = pdev->bus->number; bus 989 drivers/scsi/arcmsr/arcmsr_hba.c host->unique_id = (bus << 8) | dev_fun; bus 1016 drivers/scsi/bfa/bfa_defs_svc.h u32 bus; bus 672 drivers/scsi/bfa/bfad_bsg.c iocmd->bus = 0; bus 350 drivers/scsi/bfa/bfad_bsg.h u32 bus; bus 1335 drivers/scsi/bnx2fc/bnx2fc_hwi.c (u8)hba->pcidev->bus->number); bus 2501 drivers/scsi/bnx2i/bnx2i_hwi.c (u8)hba->pcidev->bus->number, bus 597 drivers/scsi/csiostor/csio_hw.h #define CSIO_PCI_BUS(hw) ((hw)->pdev->bus->number) bus 1996 drivers/scsi/dpt_i2o.c HbaInfo.pciBusNum = pHba->pDev->bus->number; bus 1372 drivers/scsi/esas2r/esas2r_flash.c n->sas_addr[6] = a->pcid->bus->number; bus 452 drivers/scsi/esas2r/esas2r_ioctl.c gcc->pci_addr.bus_num = a->pcid->bus->number; bus 782 drivers/scsi/esas2r/esas2r_ioctl.c gai->pci.bus_num = a->pcid->bus->number; bus 1430 drivers/scsi/esas2r/esas2r_ioctl.c ioctl->data.chaninfo.pci_bus = a->pcid->bus->number; bus 148 drivers/scsi/esas2r/esas2r_log.c (dev->bus ? dev->bus->name : "unknown"), bus 428 drivers/scsi/esas2r/esas2r_main.c pcid->bus->number, bus 746 drivers/scsi/esas2r/esas2r_main.c a->pcid->bus->number, a->pcid->devfn, a->pcid->irq, bus 1840 drivers/scsi/esas2r/esas2r_main.c ae->bus_number = a->pcid->bus->number; bus 621 drivers/scsi/fcoe/fcoe_sysfs.c if (dev->bus == &fcoe_bus_type) bus 662 drivers/scsi/fcoe/fcoe_sysfs.c static ssize_t ctlr_create_store(struct bus_type *bus, const char *buf, bus 665 drivers/scsi/fcoe/fcoe_sysfs.c return fcoe_ctlr_create_store(bus, buf, count); bus 669 drivers/scsi/fcoe/fcoe_sysfs.c static ssize_t ctlr_destroy_store(struct bus_type *bus, const char *buf, bus 672 drivers/scsi/fcoe/fcoe_sysfs.c return fcoe_ctlr_destroy_store(bus, buf, count); bus 811 drivers/scsi/fcoe/fcoe_sysfs.c ctlr->dev.bus = &fcoe_bus_type; bus 1020 drivers/scsi/fcoe/fcoe_sysfs.c fcf->dev.bus = &fcoe_bus_type; bus 745 drivers/scsi/fcoe/fcoe_transport.c ssize_t fcoe_ctlr_create_store(struct bus_type *bus, bus 808 drivers/scsi/fcoe/fcoe_transport.c ssize_t fcoe_ctlr_destroy_store(struct bus_type *bus, bus 545 drivers/scsi/fdomain.c if (dev_is_pci(dev) || !strcmp(dev->bus->name, "pcmcia")) bus 767 drivers/scsi/fnic/fcpio.h u8 bus; bus 495 drivers/scsi/gdth.c gdth_pcistr.pdev->bus->number, bus 524 drivers/scsi/gdth.c ha->brd_phys = (pdev->bus->number << 8) | (pdev->devfn & 0xf8); bus 1124 drivers/scsi/gdth.c cmd_ptr->u.raw64.bus = (u8)p2; bus 1129 drivers/scsi/gdth.c cmd_ptr->u.raw.bus = (u8)p2; bus 2198 drivers/scsi/gdth.c cmdp->u.raw64.bus = b; bus 2214 drivers/scsi/gdth.c cmdp->u.raw.bus = b; bus 3591 drivers/scsi/gdth.c gen->command.u.raw64.bus = gen->command.u.raw.bus; bus 3717 drivers/scsi/gdth.c rsc->hdr_list[i].bus = 0xff; bus 3720 drivers/scsi/gdth.c rsc->hdr_list[i].bus = ha->virt_bus; bus 3800 drivers/scsi/gdth.c rsc->hdr_list[i].bus = ha->virt_bus; bus 4111 drivers/scsi/gdth.c pdev->bus->number, bus 93 drivers/scsi/gdth_ioctl.h u8 bus; /* SCSI bus number */ bus 112 drivers/scsi/gdth_ioctl.h u8 bus; /* SCSI bus number */ bus 237 drivers/scsi/gdth_ioctl.h u8 bus; /* SCSI bus */ bus 470 drivers/scsi/hosts.c shost->shost_gendev.bus = &scsi_bus_type; bus 834 drivers/scsi/hpsa.c hdev->bus, hdev->target, hdev->lun, bus 1186 drivers/scsi/hpsa.c unsigned char scsi3addr[], int bus, int *target, int *lun) bus 1197 drivers/scsi/hpsa.c if (h->dev[i]->bus == bus && h->dev[i]->target != -1) bus 1255 drivers/scsi/hpsa.c h->scsi_host->host_no, dev->bus, dev->target, dev->lun, bus 1295 drivers/scsi/hpsa.c device->bus, &device->target, &device->lun) != 0) bus 1316 drivers/scsi/hpsa.c device->bus = sd->bus; bus 1495 drivers/scsi/hpsa.c if (dev1->bus != dev2->bus) bus 1607 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); bus 1615 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); bus 1621 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); bus 1627 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); bus 1633 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); bus 1639 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); bus 1645 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); bus 1651 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); bus 1657 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); bus 1663 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); bus 1669 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); bus 1675 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); bus 1739 drivers/scsi/hpsa.c h->scsi_host->host_no, logical_drive->bus, bus 1806 drivers/scsi/hpsa.c rc = scsi_add_device(h->scsi_host, device->bus, bus 1865 drivers/scsi/hpsa.c device->bus, device->target, device->lun, cmds); bus 1884 drivers/scsi/hpsa.c sdev = scsi_device_lookup(h->scsi_host, device->bus, bus 2081 drivers/scsi/hpsa.c int bus, int target, int lun) bus 2088 drivers/scsi/hpsa.c if (sd->bus == bus && sd->target == target && sd->lun == lun) bus 3798 drivers/scsi/hpsa.c int bus, int target, int lun) bus 3800 drivers/scsi/hpsa.c device->bus = bus; bus 3961 drivers/scsi/hpsa.c this_device->bus, this_device->target, bus 4040 drivers/scsi/hpsa.c int bus = HPSA_HBA_BUS; bus 4043 drivers/scsi/hpsa.c bus = HPSA_LEGACY_HBA_BUS; bus 4045 drivers/scsi/hpsa.c bus, 0, lunid & 0x3fff); bus 6308 drivers/scsi/hpsa.c pciinfo.domain = pci_domain_nr(h->pdev->bus); bus 6309 drivers/scsi/hpsa.c pciinfo.bus = h->pdev->bus->number; bus 63 drivers/scsi/hpsa.h int bus, target, lun; /* as presented to the OS */ bus 691 drivers/scsi/hpsa_cmd.h unsigned char bus; bus 1297 drivers/scsi/hptiop.c pcidev->bus->number, pcidev->devfn >> 3, pcidev->devfn & 7, bus 1205 drivers/scsi/ipr.c res->bus = 0; bus 1224 drivers/scsi/ipr.c res->bus = IPR_IOAFP_VIRTUAL_BUS; bus 1227 drivers/scsi/ipr.c res->bus = IPR_ARRAY_VIRTUAL_BUS; bus 1232 drivers/scsi/ipr.c res->bus = IPR_VSET_VIRTUAL_BUS; bus 1250 drivers/scsi/ipr.c res->bus = cfgtew->u.cfgte->res_addr.bus; bus 1278 drivers/scsi/ipr.c if (res->bus == cfgtew->u.cfgte->res_addr.bus && bus 1407 drivers/scsi/ipr.c if (res->bus == IPR_ARRAY_VIRTUAL_BUS) bus 1409 drivers/scsi/ipr.c else if (res->bus == IPR_VSET_VIRTUAL_BUS) bus 1411 drivers/scsi/ipr.c else if (res->bus == 0 && res->type == IPR_RES_TYPE_GENERIC_SCSI) { bus 1417 drivers/scsi/ipr.c } else if (res->bus == 0) bus 1841 drivers/scsi/ipr.c error->last_func_vset_res_addr.bus, bus 1892 drivers/scsi/ipr.c error->last_func_vset_res_addr.bus, bus 2527 drivers/scsi/ipr.c hostrcb->hcam.u.error.fd_res_addr.bus); bus 2782 drivers/scsi/ipr.c static u32 ipr_get_max_scsi_speed(struct ipr_ioa_cfg *ioa_cfg, u8 bus, u8 bus_width) bus 2793 drivers/scsi/ipr.c if (bus != res->bus) bus 3331 drivers/scsi/ipr.c u8 bus, target, lun; bus 3366 drivers/scsi/ipr.c bus = res->bus; bus 3371 drivers/scsi/ipr.c scsi_add_device(ioa_cfg->host, bus, target, lun); bus 4565 drivers/scsi/ipr.c res->bus, res->target, res->lun); bus 4779 drivers/scsi/ipr.c if ((res->bus == starget->channel) && bus 4884 drivers/scsi/ipr.c if ((res->bus == sdev->channel) && bus 5423 drivers/scsi/ipr.c scsi_report_bus_reset(ioa_cfg->host, res->bus); bus 6881 drivers/scsi/ipr.c scsi_report_device_reset(ioa_cfg->host, res->bus, res->target); bus 7433 drivers/scsi/ipr.c struct ipr_dev_bus_entry *bus; bus 7441 drivers/scsi/ipr.c bus = mode_page->bus; bus 7444 drivers/scsi/ipr.c if (bus->flags & IPR_SCSI_ATTR_NO_TERM_PWR) { bus 7447 drivers/scsi/ipr.c bus->res_addr.bus); bus 7450 drivers/scsi/ipr.c bus = (struct ipr_dev_bus_entry *)((char *)bus + entry_length); bus 7493 drivers/scsi/ipr.c struct ipr_dev_bus_entry *bus; bus 7503 drivers/scsi/ipr.c for (i = 0, bus = mode_page->bus; bus 7505 drivers/scsi/ipr.c i++, bus = (struct ipr_dev_bus_entry *)((u8 *)bus + entry_length)) { bus 7506 drivers/scsi/ipr.c if (bus->res_addr.bus > IPR_MAX_NUM_BUSES) { bus 7509 drivers/scsi/ipr.c IPR_GET_PHYS_LOC(bus->res_addr)); bus 7514 drivers/scsi/ipr.c bus->extended_reset_delay = IPR_EXTENDED_RESET_DELAY; bus 7515 drivers/scsi/ipr.c bus->bus_width = bus_attr->bus_width; bus 7516 drivers/scsi/ipr.c bus->max_xfer_rate = cpu_to_be32(bus_attr->max_xfer_rate); bus 7517 drivers/scsi/ipr.c bus->flags &= ~IPR_SCSI_ATTR_QAS_MASK; bus 7519 drivers/scsi/ipr.c bus->flags |= IPR_SCSI_ATTR_ENABLE_QAS; bus 7521 drivers/scsi/ipr.c bus->flags |= IPR_SCSI_ATTR_DISABLE_QAS; bus 9857 drivers/scsi/ipr.c ioa_cfg->bus_attr[i].bus = i; bus 331 drivers/scsi/ipr.h u8 bus; bus 335 drivers/scsi/ipr.h (((res_addr).bus << 16) | ((res_addr).target << 8) | (res_addr).lun) bus 795 drivers/scsi/ipr.h struct ipr_dev_bus_entry bus[0]; bus 1274 drivers/scsi/ipr.h u8 bus; bus 1297 drivers/scsi/ipr.h u32 bus; /* AKA channel */ bus 1306 drivers/scsi/ipr.h (((res)->bus << 24) | ((res)->target << 8) | (res)->lun) bus 1782 drivers/scsi/ipr.h #define ipr_res_printk(level, ioa_cfg, bus, target, lun, fmt, ...) \ bus 1784 drivers/scsi/ipr.h bus, target, lun, ##__VA_ARGS__) bus 1787 drivers/scsi/ipr.h ipr_res_printk(KERN_ERR, ioa_cfg, (res)->bus, (res)->target, (res)->lun, fmt, ##__VA_ARGS__) bus 1791 drivers/scsi/ipr.h (ra).bus, (ra).target, (ra).lun, ##__VA_ARGS__) bus 1798 drivers/scsi/ipr.h if ((res).bus >= IPR_MAX_NUM_BUSES) { \ bus 1803 drivers/scsi/ipr.h (res).bus, (res).target, (res).lun); \ bus 1952 drivers/scsi/ipr.h if ((res_addr->bus < IPR_MAX_NUM_BUSES) && bus 1848 drivers/scsi/ips.c scb->bus = scb->scsi_cmd->device->channel; bus 1917 drivers/scsi/ips.c scb->bus = scb->scsi_cmd->device->channel; bus 2649 drivers/scsi/ips.c scb->bus = SC->device->channel; bus 2713 drivers/scsi/ips.c if (scb->bus) bus 2714 drivers/scsi/ips.c ha->dcdb_active[scb->bus - 1] &= bus 2723 drivers/scsi/ips.c if (scb->bus) bus 2724 drivers/scsi/ips.c ha->dcdb_active[scb->bus - 1] &= bus 3225 drivers/scsi/ips.c if (scb->bus) { bus 3226 drivers/scsi/ips.c ha->dcdb_active[scb->bus - 1] &= ~(1 << scb->target_id); bus 3254 drivers/scsi/ips.c if (scb->bus) { bus 3288 drivers/scsi/ips.c if (scb->bus) bus 3304 drivers/scsi/ips.c if ((scb->bus) && (transfer_len < scb->data_len)) { bus 3324 drivers/scsi/ips.c if (scb->bus) bus 3335 drivers/scsi/ips.c if (scb->bus) { bus 3462 drivers/scsi/ips.c if (scb->bus > 0) { bus 3472 drivers/scsi/ips.c } else if ((scb->bus == 0) && (!ips_is_passthru(scb->scsi_cmd))) { bus 3710 drivers/scsi/ips.c if (scb->bus > 0) { bus 3714 drivers/scsi/ips.c if (ha->conf->dev[scb->bus - 1][scb->target_id].ucState == 0) { bus 3719 drivers/scsi/ips.c ha->dcdb_active[scb->bus - 1] |= (1 << scb->target_id); bus 3745 drivers/scsi/ips.c ((scb->bus - 1) << 4) | scb->target_id; bus 3783 drivers/scsi/ips.c ((scb->bus - 1) << 4) | scb->target_id; bus 3862 drivers/scsi/ips.c scb->bus, scb->target_id, scb->lun); bus 3873 drivers/scsi/ips.c if (scb->bus == 0) { bus 3966 drivers/scsi/ips.c if (scb->bus == 0) { bus 5285 drivers/scsi/ips.c scb->bus, scb->target_id, scb->lun); bus 5339 drivers/scsi/ips.c scb->bus, scb->target_id, scb->lun); bus 5390 drivers/scsi/ips.c scb->bus, scb->target_id, scb->lun); bus 5422 drivers/scsi/ips.c scb->bus, scb->target_id, scb->lun); bus 6838 drivers/scsi/ips.c uint8_t bus; bus 6860 drivers/scsi/ips.c bus = pci_dev->bus->number; bus 1068 drivers/scsi/ips.h uint8_t bus; bus 1095 drivers/scsi/ips.h uint8_t bus; bus 1331 drivers/scsi/lpfc/lpfc_attr.c list_for_each_entry(ptr, &pdev->bus->devices, bus_list) { bus 2290 drivers/scsi/lpfc/lpfc_init.c char *bus; bus 2527 drivers/scsi/lpfc/lpfc_init.c m.name, m.bus, m.function); bus 2532 drivers/scsi/lpfc/lpfc_init.c m.bus, m.function); bus 4332 drivers/scsi/lpfc/lpfc_scsi.c list_for_each_entry(ptr, &pdev->bus->devices, bus_list) { bus 4399 drivers/scsi/lpfc/lpfc_scsi.c phba->pcidev->bus->number, phba->pcidev->devfn, bus 4171 drivers/scsi/megaraid.c pci_bus = pdev->bus->number; bus 414 drivers/scsi/megaraid/megaraid_mbox.c con_log(CL_ANN, ("bus %d:slot %d:func %d\n", pdev->bus->number, bus 439 drivers/scsi/megaraid/megaraid_mbox.c adapter->unique_id = pdev->bus->number << 8 | pdev->devfn; bus 3737 drivers/scsi/megaraid/megaraid_mbox.c hinfo->pci_bus = adapter->pdev->bus->number; bus 7333 drivers/scsi/megaraid/megaraid_sas_base.c instance->unique_id = pdev->bus->number << 8 | pdev->devfn; bus 1856 drivers/scsi/mesh.c switch (mdev->bus->chip->type) { bus 1149 drivers/scsi/mpt3sas/mpt3sas_ctl.c karg.pci_information.u.bits.bus = ioc->pdev->bus->number; bus 1152 drivers/scsi/mpt3sas/mpt3sas_ctl.c karg.pci_information.segment_id = pci_domain_nr(ioc->pdev->bus); bus 1343 drivers/scsi/mpt3sas/mpt3sas_ctl.c if (btdh->bus == 0xFFFFFFFF && btdh->id == 0xFFFFFFFF && bus 1345 drivers/scsi/mpt3sas/mpt3sas_ctl.c btdh->bus = sas_device->channel; bus 1349 drivers/scsi/mpt3sas/mpt3sas_ctl.c } else if (btdh->bus == sas_device->channel && btdh->id == bus 1379 drivers/scsi/mpt3sas/mpt3sas_ctl.c if (btdh->bus == 0xFFFFFFFF && btdh->id == 0xFFFFFFFF && bus 1381 drivers/scsi/mpt3sas/mpt3sas_ctl.c btdh->bus = pcie_device->channel; bus 1385 drivers/scsi/mpt3sas/mpt3sas_ctl.c } else if (btdh->bus == pcie_device->channel && btdh->id == bus 1415 drivers/scsi/mpt3sas/mpt3sas_ctl.c if (btdh->bus == 0xFFFFFFFF && btdh->id == 0xFFFFFFFF && bus 1417 drivers/scsi/mpt3sas/mpt3sas_ctl.c btdh->bus = raid_device->channel; bus 1421 drivers/scsi/mpt3sas/mpt3sas_ctl.c } else if (btdh->bus == raid_device->channel && btdh->id == bus 131 drivers/scsi/mpt3sas/mpt3sas_ctl.h uint32_t bus:24; bus 302 drivers/scsi/mpt3sas/mpt3sas_ctl.h uint32_t bus; bus 2495 drivers/scsi/mvumi.c mhba->unique_id = pdev->bus->number << 8 | pdev->devfn; bus 137 drivers/scsi/myrs.h } __packed bus; /* Byte 1 */ bus 2457 drivers/scsi/nsp32.c unsigned char bus, req_bit; bus 2466 drivers/scsi/nsp32.c bus = nsp32_read1(base, SCSI_BUS_MONITOR); bus 2467 drivers/scsi/nsp32.c if ((bus & BUSMON_REQ) == req_bit) { bus 2486 drivers/scsi/nsp32.c unsigned char bus, ack_bit; bus 2495 drivers/scsi/nsp32.c bus = nsp32_read1(base, SCSI_BUS_MONITOR); bus 2496 drivers/scsi/nsp32.c if ((bus & BUSMON_ACK) == ack_bit) { bus 141 drivers/scsi/pmcraid.c u8 target, bus, lun; bus 167 drivers/scsi/pmcraid.c bus = PMCRAID_VSET_BUS_ID; bus 171 drivers/scsi/pmcraid.c bus = PMCRAID_PHYS_BUS_ID; bus 177 drivers/scsi/pmcraid.c if (bus == scsi_dev->channel && bus 4089 drivers/scsi/pmcraid.c u32 adapter_id = (pinstance->pdev->bus->number << 8) | bus 4298 drivers/scsi/pmcraid.c u8 bus, target, lun; bus 4351 drivers/scsi/pmcraid.c bus = PMCRAID_VSET_BUS_ID; bus 4358 drivers/scsi/pmcraid.c bus = PMCRAID_PHYS_BUS_ID; bus 4368 drivers/scsi/pmcraid.c scsi_add_device(pinstance->host, bus, target, lun); bus 648 drivers/scsi/qla1280.c nv->bus[i].selection_timeout = cpu_to_le16(nv->bus[i].selection_timeout); bus 649 drivers/scsi/qla1280.c nv->bus[i].max_queue_depth = cpu_to_le16(nv->bus[i].max_queue_depth); bus 774 drivers/scsi/qla1280.c qla1280_wait_for_pending_commands(struct scsi_qla_host *ha, int bus, int target) bus 792 drivers/scsi/qla1280.c if (bus >= 0 && SCSI_BUS_32(cmd) != bus) bus 823 drivers/scsi/qla1280.c int bus, target, lun; bus 835 drivers/scsi/qla1280.c bus = SCSI_BUS_32(cmd); bus 871 drivers/scsi/qla1280.c "already completed.\n", ha->host_no, bus, bus 893 drivers/scsi/qla1280.c "command.\n", ha->host_no, bus, target, lun); bus 894 drivers/scsi/qla1280.c if (qla1280_device_reset(ha, bus, target) == 0) { bus 896 drivers/scsi/qla1280.c wait_for_bus = bus; bus 904 drivers/scsi/qla1280.c "reset.\n", ha->host_no, bus); bus 905 drivers/scsi/qla1280.c if (qla1280_bus_reset(ha, bus) == 0) { bus 907 drivers/scsi/qla1280.c wait_for_bus = bus; bus 945 drivers/scsi/qla1280.c ha->host_no, bus, target, lun); bus 1115 drivers/scsi/qla1280.c qla1280_set_target_parameters(struct scsi_qla_host *ha, int bus, int target) bus 1128 drivers/scsi/qla1280.c mb[1] = (uint16_t)((bus ? target | BIT_7 : target) << 8); bus 1129 drivers/scsi/qla1280.c mb[2] = nv->bus[bus].target[target].parameter.renegotiate_on_error << 8; bus 1130 drivers/scsi/qla1280.c mb[2] |= nv->bus[bus].target[target].parameter.stop_queue_on_check << 9; bus 1131 drivers/scsi/qla1280.c mb[2] |= nv->bus[bus].target[target].parameter.auto_request_sense << 10; bus 1132 drivers/scsi/qla1280.c mb[2] |= nv->bus[bus].target[target].parameter.tag_queuing << 11; bus 1133 drivers/scsi/qla1280.c mb[2] |= nv->bus[bus].target[target].parameter.enable_sync << 12; bus 1134 drivers/scsi/qla1280.c mb[2] |= nv->bus[bus].target[target].parameter.enable_wide << 13; bus 1135 drivers/scsi/qla1280.c mb[2] |= nv->bus[bus].target[target].parameter.parity_checking << 14; bus 1136 drivers/scsi/qla1280.c mb[2] |= nv->bus[bus].target[target].parameter.disconnect_allowed << 15; bus 1139 drivers/scsi/qla1280.c mb[2] |= nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr << 5; bus 1140 drivers/scsi/qla1280.c mb[3] = (nv->bus[bus].target[target].flags.flags1x160.sync_offset << 8); bus 1141 drivers/scsi/qla1280.c mb[6] = (nv->bus[bus].target[target].ppr_1x160.flags.ppr_options << 8) | bus 1142 drivers/scsi/qla1280.c nv->bus[bus].target[target].ppr_1x160.flags.ppr_bus_width; bus 1145 drivers/scsi/qla1280.c mb[3] = (nv->bus[bus].target[target].flags.flags1x80.sync_offset << 8); bus 1147 drivers/scsi/qla1280.c mb[3] |= nv->bus[bus].target[target].sync_period; bus 1154 drivers/scsi/qla1280.c mb[1] = (uint16_t)((bus ? target | BIT_7 : target) << 8); bus 1156 drivers/scsi/qla1280.c mb[2] = nv->bus[bus].max_queue_depth; bus 1157 drivers/scsi/qla1280.c mb[3] = nv->bus[bus].target[target].execution_throttle; bus 1164 drivers/scsi/qla1280.c ha->host_no, bus, target); bus 1185 drivers/scsi/qla1280.c int bus = device->channel; bus 1194 drivers/scsi/qla1280.c if (qla1280_check_for_dead_scsi_bus(ha, bus)) bus 1198 drivers/scsi/qla1280.c (ha->bus_settings[bus].qtag_enables & (BIT_0 << target))) { bus 1199 drivers/scsi/qla1280.c scsi_change_queue_depth(device, ha->bus_settings[bus].hiwat); bus 1204 drivers/scsi/qla1280.c nv->bus[bus].target[target].parameter.enable_sync = device->sdtr; bus 1205 drivers/scsi/qla1280.c nv->bus[bus].target[target].parameter.enable_wide = device->wdtr; bus 1206 drivers/scsi/qla1280.c nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr = device->ppr; bus 1211 drivers/scsi/qla1280.c nv->bus[bus].target[target].parameter.enable_sync = 0; bus 1215 drivers/scsi/qla1280.c nv->bus[bus].target[target].parameter.enable_wide = 0; bus 1220 drivers/scsi/qla1280.c nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr = 0; bus 1224 drivers/scsi/qla1280.c if (nv->bus[bus].target[target].parameter.enable_sync) bus 1225 drivers/scsi/qla1280.c status = qla1280_set_target_parameters(ha, bus, target); bus 1244 drivers/scsi/qla1280.c int bus, target, lun; bus 1257 drivers/scsi/qla1280.c bus = SCSI_BUS_32(cmd); bus 1265 drivers/scsi/qla1280.c qla1280_marker(ha, bus, target, 0, MK_SYNC_ID); bus 1410 drivers/scsi/qla1280.c int bus; bus 1468 drivers/scsi/qla1280.c for (bus = 0; bus < ha->ports; bus++) { bus 1469 drivers/scsi/qla1280.c if (!ha->bus_settings[bus].disable_scsi_reset && bus 1470 drivers/scsi/qla1280.c qla1280_bus_reset(ha, bus) && bus 1471 drivers/scsi/qla1280.c qla1280_bus_reset(ha, bus)) bus 1472 drivers/scsi/qla1280.c ha->bus_settings[bus].scsi_bus_dead = 1; bus 1931 drivers/scsi/qla1280.c nv->bus[0].config_1.initiator_id); bus 1933 drivers/scsi/qla1280.c nv->bus[1].config_1.initiator_id); bus 1936 drivers/scsi/qla1280.c nv->bus[0].bus_reset_delay); bus 1938 drivers/scsi/qla1280.c nv->bus[1].bus_reset_delay); bus 1940 drivers/scsi/qla1280.c dprintk(1, "qla1280 : retry count[0]=%d\n", nv->bus[0].retry_count); bus 1941 drivers/scsi/qla1280.c dprintk(1, "qla1280 : retry delay[0]=%d\n", nv->bus[0].retry_delay); bus 1942 drivers/scsi/qla1280.c dprintk(1, "qla1280 : retry count[1]=%d\n", nv->bus[1].retry_count); bus 1943 drivers/scsi/qla1280.c dprintk(1, "qla1280 : retry delay[1]=%d\n", nv->bus[1].retry_delay); bus 1946 drivers/scsi/qla1280.c nv->bus[0].config_2.async_data_setup_time); bus 1948 drivers/scsi/qla1280.c nv->bus[1].config_2.async_data_setup_time); bus 1951 drivers/scsi/qla1280.c nv->bus[0].config_2.req_ack_active_negation); bus 1953 drivers/scsi/qla1280.c nv->bus[1].config_2.req_ack_active_negation); bus 1956 drivers/scsi/qla1280.c nv->bus[0].config_2.data_line_active_negation); bus 1958 drivers/scsi/qla1280.c nv->bus[1].config_2.data_line_active_negation); bus 1967 drivers/scsi/qla1280.c nv->bus[0].selection_timeout); bus 1969 drivers/scsi/qla1280.c nv->bus[1].selection_timeout); bus 1972 drivers/scsi/qla1280.c nv->bus[0].max_queue_depth); bus 1974 drivers/scsi/qla1280.c nv->bus[1].max_queue_depth); bus 1978 drivers/scsi/qla1280.c qla1280_set_target_defaults(struct scsi_qla_host *ha, int bus, int target) bus 1982 drivers/scsi/qla1280.c nv->bus[bus].target[target].parameter.renegotiate_on_error = 1; bus 1983 drivers/scsi/qla1280.c nv->bus[bus].target[target].parameter.auto_request_sense = 1; bus 1984 drivers/scsi/qla1280.c nv->bus[bus].target[target].parameter.tag_queuing = 1; bus 1985 drivers/scsi/qla1280.c nv->bus[bus].target[target].parameter.enable_sync = 1; bus 1987 drivers/scsi/qla1280.c nv->bus[bus].target[target].parameter.enable_wide = 1; bus 1989 drivers/scsi/qla1280.c nv->bus[bus].target[target].execution_throttle = bus 1990 drivers/scsi/qla1280.c nv->bus[bus].max_queue_depth - 1; bus 1991 drivers/scsi/qla1280.c nv->bus[bus].target[target].parameter.parity_checking = 1; bus 1992 drivers/scsi/qla1280.c nv->bus[bus].target[target].parameter.disconnect_allowed = 1; bus 1995 drivers/scsi/qla1280.c nv->bus[bus].target[target].flags.flags1x160.device_enable = 1; bus 1996 drivers/scsi/qla1280.c nv->bus[bus].target[target].flags.flags1x160.sync_offset = 0x0e; bus 1997 drivers/scsi/qla1280.c nv->bus[bus].target[target].sync_period = 9; bus 1998 drivers/scsi/qla1280.c nv->bus[bus].target[target].ppr_1x160.flags.enable_ppr = 1; bus 1999 drivers/scsi/qla1280.c nv->bus[bus].target[target].ppr_1x160.flags.ppr_options = 2; bus 2000 drivers/scsi/qla1280.c nv->bus[bus].target[target].ppr_1x160.flags.ppr_bus_width = 1; bus 2002 drivers/scsi/qla1280.c nv->bus[bus].target[target].flags.flags1x80.device_enable = 1; bus 2003 drivers/scsi/qla1280.c nv->bus[bus].target[target].flags.flags1x80.sync_offset = 12; bus 2004 drivers/scsi/qla1280.c nv->bus[bus].target[target].sync_period = 10; bus 2012 drivers/scsi/qla1280.c int bus, target; bus 2041 drivers/scsi/qla1280.c for (bus = 0; bus < MAX_BUSES; bus++) { bus 2042 drivers/scsi/qla1280.c nv->bus[bus].config_1.initiator_id = 7; bus 2043 drivers/scsi/qla1280.c nv->bus[bus].config_2.req_ack_active_negation = 1; bus 2044 drivers/scsi/qla1280.c nv->bus[bus].config_2.data_line_active_negation = 1; bus 2045 drivers/scsi/qla1280.c nv->bus[bus].selection_timeout = 250; bus 2046 drivers/scsi/qla1280.c nv->bus[bus].max_queue_depth = 32; bus 2049 drivers/scsi/qla1280.c nv->bus[bus].bus_reset_delay = 3; bus 2050 drivers/scsi/qla1280.c nv->bus[bus].config_2.async_data_setup_time = 6; bus 2051 drivers/scsi/qla1280.c nv->bus[bus].retry_delay = 1; bus 2053 drivers/scsi/qla1280.c nv->bus[bus].bus_reset_delay = 5; bus 2054 drivers/scsi/qla1280.c nv->bus[bus].config_2.async_data_setup_time = 8; bus 2058 drivers/scsi/qla1280.c qla1280_set_target_defaults(ha, bus, target); bus 2063 drivers/scsi/qla1280.c qla1280_config_target(struct scsi_qla_host *ha, int bus, int target) bus 2072 drivers/scsi/qla1280.c mb[1] = (uint16_t)((bus ? target | BIT_7 : target) << 8); bus 2083 drivers/scsi/qla1280.c mb[3] = nv->bus[bus].target[target].flags.flags1x160.sync_offset << 8; bus 2085 drivers/scsi/qla1280.c mb[3] = nv->bus[bus].target[target].flags.flags1x80.sync_offset << 8; bus 2086 drivers/scsi/qla1280.c mb[3] |= nv->bus[bus].target[target].sync_period; bus 2091 drivers/scsi/qla1280.c if (nv->bus[bus].target[target].parameter.tag_queuing) bus 2092 drivers/scsi/qla1280.c ha->bus_settings[bus].qtag_enables |= flag; bus 2096 drivers/scsi/qla1280.c if (nv->bus[bus].target[target].flags.flags1x160.device_enable) bus 2097 drivers/scsi/qla1280.c ha->bus_settings[bus].device_enables |= flag; bus 2098 drivers/scsi/qla1280.c ha->bus_settings[bus].lun_disables |= 0; bus 2100 drivers/scsi/qla1280.c if (nv->bus[bus].target[target].flags.flags1x80.device_enable) bus 2101 drivers/scsi/qla1280.c ha->bus_settings[bus].device_enables |= flag; bus 2103 drivers/scsi/qla1280.c if (nv->bus[bus].target[target].flags.flags1x80.lun_disable) bus 2104 drivers/scsi/qla1280.c ha->bus_settings[bus].lun_disables |= flag; bus 2110 drivers/scsi/qla1280.c mb[1] = (uint16_t)((bus ? target | BIT_7 : target) << 8); bus 2112 drivers/scsi/qla1280.c mb[2] = nv->bus[bus].max_queue_depth; bus 2113 drivers/scsi/qla1280.c mb[3] = nv->bus[bus].target[target].execution_throttle; bus 2121 drivers/scsi/qla1280.c qla1280_config_bus(struct scsi_qla_host *ha, int bus) bus 2128 drivers/scsi/qla1280.c ha->bus_settings[bus].disable_scsi_reset = bus 2129 drivers/scsi/qla1280.c nv->bus[bus].config_1.scsi_reset_disable; bus 2132 drivers/scsi/qla1280.c ha->bus_settings[bus].id = nv->bus[bus].config_1.initiator_id; bus 2134 drivers/scsi/qla1280.c mb[1] = bus ? ha->bus_settings[bus].id | BIT_7 : bus 2135 drivers/scsi/qla1280.c ha->bus_settings[bus].id; bus 2139 drivers/scsi/qla1280.c ha->bus_settings[bus].bus_reset_delay = bus 2140 drivers/scsi/qla1280.c nv->bus[bus].bus_reset_delay; bus 2143 drivers/scsi/qla1280.c ha->bus_settings[bus].hiwat = nv->bus[bus].max_queue_depth - 1; bus 2147 drivers/scsi/qla1280.c status |= qla1280_config_target(ha, bus, target); bus 2157 drivers/scsi/qla1280.c int bus, target, status = 0; bus 2164 drivers/scsi/qla1280.c for (bus = 0; bus < MAX_BUSES; bus++) bus 2166 drivers/scsi/qla1280.c nv->bus[bus].target[target].parameter. bus 2240 drivers/scsi/qla1280.c mb[1] = nv->bus[0].retry_count; bus 2241 drivers/scsi/qla1280.c mb[2] = nv->bus[0].retry_delay; bus 2242 drivers/scsi/qla1280.c mb[6] = nv->bus[1].retry_count; bus 2243 drivers/scsi/qla1280.c mb[7] = nv->bus[1].retry_delay; bus 2249 drivers/scsi/qla1280.c mb[1] = nv->bus[0].config_2.async_data_setup_time; bus 2250 drivers/scsi/qla1280.c mb[2] = nv->bus[1].config_2.async_data_setup_time; bus 2256 drivers/scsi/qla1280.c if (nv->bus[0].config_2.req_ack_active_negation) bus 2258 drivers/scsi/qla1280.c if (nv->bus[0].config_2.data_line_active_negation) bus 2261 drivers/scsi/qla1280.c if (nv->bus[1].config_2.req_ack_active_negation) bus 2263 drivers/scsi/qla1280.c if (nv->bus[1].config_2.data_line_active_negation) bus 2283 drivers/scsi/qla1280.c mb[1] = nv->bus[0].selection_timeout; bus 2284 drivers/scsi/qla1280.c mb[2] = nv->bus[1].selection_timeout; bus 2287 drivers/scsi/qla1280.c for (bus = 0; bus < ha->ports; bus++) bus 2288 drivers/scsi/qla1280.c status |= qla1280_config_bus(ha, bus); bus 2542 drivers/scsi/qla1280.c qla1280_bus_reset(struct scsi_qla_host *ha, int bus) bus 2552 drivers/scsi/qla1280.c ha->host_no, bus); bus 2554 drivers/scsi/qla1280.c reset_delay = ha->bus_settings[bus].bus_reset_delay; bus 2557 drivers/scsi/qla1280.c mb[2] = (uint16_t) bus; bus 2561 drivers/scsi/qla1280.c if (ha->bus_settings[bus].failed_reset_count > 2) bus 2562 drivers/scsi/qla1280.c ha->bus_settings[bus].scsi_bus_dead = 1; bus 2563 drivers/scsi/qla1280.c ha->bus_settings[bus].failed_reset_count++; bus 2569 drivers/scsi/qla1280.c ha->bus_settings[bus].scsi_bus_dead = 0; bus 2570 drivers/scsi/qla1280.c ha->bus_settings[bus].failed_reset_count = 0; bus 2571 drivers/scsi/qla1280.c ha->bus_settings[bus].reset_marker = 0; bus 2573 drivers/scsi/qla1280.c qla1280_marker(ha, bus, 0, 0, MK_SYNC_ALL); bus 2602 drivers/scsi/qla1280.c qla1280_device_reset(struct scsi_qla_host *ha, int bus, int target) bus 2610 drivers/scsi/qla1280.c mb[1] = (bus ? (target | BIT_7) : target) << 8; bus 2615 drivers/scsi/qla1280.c qla1280_marker(ha, bus, target, 0, MK_SYNC_ID); bus 2639 drivers/scsi/qla1280.c unsigned int bus, target, lun; bus 2644 drivers/scsi/qla1280.c bus = SCSI_BUS_32(sp->cmd); bus 2651 drivers/scsi/qla1280.c mb[1] = (bus ? target | BIT_7 : target) << 8 | lun; bus 2702 drivers/scsi/qla1280.c qla1280_marker(struct scsi_qla_host *ha, int bus, int id, int lun, u8 type) bus 2712 drivers/scsi/qla1280.c pkt->target = (uint8_t) (bus ? (id | BIT_7) : id); bus 3561 drivers/scsi/qla1280.c uint8_t bus; bus 3571 drivers/scsi/qla1280.c for (bus = 0; bus < ha->ports && bus 3572 drivers/scsi/qla1280.c !ha->flags.reset_marker; bus++) { bus 3573 drivers/scsi/qla1280.c if (ha->bus_settings[bus].reset_marker) { bus 3574 drivers/scsi/qla1280.c ha->bus_settings[bus].reset_marker = 0; bus 3575 drivers/scsi/qla1280.c qla1280_marker(ha, bus, 0, 0, bus 3599 drivers/scsi/qla1280.c unsigned int bus, target, lun; bus 3626 drivers/scsi/qla1280.c bus = SCSI_BUS_32(cmd); bus 3668 drivers/scsi/qla1280.c "l %i\n", bus, target, lun); bus 3764 drivers/scsi/qla1280.c int bus; bus 3807 drivers/scsi/qla1280.c for (bus = 0; bus < ha->ports; bus++) bus 3808 drivers/scsi/qla1280.c qla1280_bus_reset(ha, bus); bus 3864 drivers/scsi/qla1280.c qla1280_check_for_dead_scsi_bus(struct scsi_qla_host *ha, unsigned int bus) bus 3869 drivers/scsi/qla1280.c if (ha->bus_settings[bus].scsi_bus_dead) { bus 3878 drivers/scsi/qla1280.c ha->bus_settings[bus].scsi_bus_dead = 1; bus 3881 drivers/scsi/qla1280.c ha->bus_settings[bus].scsi_bus_dead = 0; bus 3882 drivers/scsi/qla1280.c ha->bus_settings[bus].failed_reset_count = 0; bus 3893 drivers/scsi/qla1280.c int bus, target, lun; bus 3895 drivers/scsi/qla1280.c bus = device->channel; bus 3901 drivers/scsi/qla1280.c mb[1] = (uint16_t) (bus ? target | BIT_7 : target); bus 3906 drivers/scsi/qla1280.c printk(KERN_INFO "scsi(%li:%d:%d:%d):", ha->host_no, bus, target, lun); bus 4165 drivers/scsi/qla1280.c bdp->name, pdev->bus->number, PCI_SLOT(pdev->devfn)); bus 487 drivers/scsi/qla1280.h } bus[MAX_BUSES]; bus 162 drivers/scsi/qla2xxx/qla_bsg.h uint16_t bus; bus 3351 drivers/scsi/qla2xxx/qla_def.h void *bus; bus 8194 drivers/scsi/qla2xxx/qla_init.c if (cs84xx->bus == ha->pdev->bus) { bus 8207 drivers/scsi/qla2xxx/qla_init.c cs84xx->bus = ha->pdev->bus; bus 8887 drivers/scsi/qla4xxx/ql4_os.c pci_get_domain_bus_and_slot(pci_domain_nr(ha->pdev->bus), bus 8888 drivers/scsi/qla4xxx/ql4_os.c ha->pdev->bus->number, PCI_DEVFN(PCI_SLOT(ha->pdev->devfn), bus 9656 drivers/scsi/qla4xxx/ql4_os.c pci_domain_nr(ha->pdev->bus), bus 9657 drivers/scsi/qla4xxx/ql4_os.c ha->pdev->bus->number, bus 707 drivers/scsi/scsi_debug.c .bus = &pseudo_lld_bus, bus 5498 drivers/scsi/scsi_debug.c sdbg_host->dev.bus = &pseudo_lld_bus; bus 432 drivers/scsi/scsi_scan.c dev->bus = &scsi_bus_type; bus 1522 drivers/scsi/scsi_sysfs.c drv->bus = &scsi_bus_type; bus 1572 drivers/scsi/scsi_sysfs.c sdev->sdev_gendev.bus = &scsi_bus_type; bus 1216 drivers/scsi/scsi_transport_iscsi.c if (dev->bus == &iscsi_flashnode_bus) bus 1255 drivers/scsi/scsi_transport_iscsi.c fnode_sess->dev.bus = &iscsi_flashnode_bus; bus 1303 drivers/scsi/scsi_transport_iscsi.c fnode_conn->dev.bus = &iscsi_flashnode_bus; bus 1336 drivers/scsi/scsi_transport_iscsi.c return dev->bus == &iscsi_flashnode_bus; bus 904 drivers/scsi/smartpqi/smartpqi.h int bus; bus 1037 drivers/scsi/smartpqi/smartpqi_init.c int bus, int target, int lun) bus 1039 drivers/scsi/smartpqi/smartpqi_init.c device->bus = bus; bus 1048 drivers/scsi/smartpqi/smartpqi_init.c int bus; bus 1064 drivers/scsi/smartpqi/smartpqi_init.c bus = PQI_EXTERNAL_RAID_VOLUME_BUS; bus 1068 drivers/scsi/smartpqi/smartpqi_init.c bus = PQI_RAID_VOLUME_BUS; bus 1072 drivers/scsi/smartpqi/smartpqi_init.c pqi_set_bus_target_lun(device, bus, target, lun); bus 1472 drivers/scsi/smartpqi/smartpqi_init.c device->bus, device->target, device->lun, status); bus 1491 drivers/scsi/smartpqi/smartpqi_init.c rc = scsi_add_device(ctrl_info->scsi_host, device->bus, bus 1513 drivers/scsi/smartpqi/smartpqi_init.c ctrl_info->scsi_host->host_no, device->bus, bus 1526 drivers/scsi/smartpqi/smartpqi_init.c int bus, int target, int lun) bus 1532 drivers/scsi/smartpqi/smartpqi_init.c if (device->bus == bus && device->target == target && bus 1598 drivers/scsi/smartpqi/smartpqi_init.c "%d:%d:", ctrl_info->scsi_host->host_no, device->bus); bus 1657 drivers/scsi/smartpqi/smartpqi_init.c existing_device->bus = new_device->bus; bus 1865 drivers/scsi/smartpqi/smartpqi_init.c device->bus, device->target, bus 2677 drivers/scsi/smartpqi/smartpqi_init.c path, ctrl_info->scsi_host->host_no, device->bus, bus 2759 drivers/scsi/smartpqi/smartpqi_init.c ctrl_info->scsi_host->host_no, device->bus, device->target, device->lun); bus 2767 drivers/scsi/smartpqi/smartpqi_init.c sshdr.ascq, ctrl_info->scsi_host->host_no, device->bus, device->target, device->lun); bus 5741 drivers/scsi/smartpqi/smartpqi_init.c shost->host_no, device->bus, device->target, device->lun); bus 5759 drivers/scsi/smartpqi/smartpqi_init.c shost->host_no, device->bus, device->target, device->lun, bus 5831 drivers/scsi/smartpqi/smartpqi_init.c pciinfo.domain = pci_domain_nr(pci_dev->bus); bus 5832 drivers/scsi/smartpqi/smartpqi_init.c pciinfo.bus = pci_dev->bus->number; bus 6341 drivers/scsi/smartpqi/smartpqi_init.c device->bus, device->target, bus 375 drivers/scsi/snic/snic_main.c pdev->bus->number, PCI_SLOT(pdev->devfn), bus 396 drivers/scsi/snic/snic_main.c shost->host_no, snic, shost, pdev->bus->number, bus 746 drivers/scsi/snic/snic_main.c pdev->bus->number, PCI_SLOT(pdev->devfn), bus 765 drivers/scsi/snic/snic_main.c pdev->bus->number, PCI_SLOT(pdev->devfn), bus 268 drivers/scsi/stex.c u32 bus; bus 506 drivers/scsi/stex.c p->bus = hba->pdev->bus->number; bus 1309 drivers/scsi/stex.c struct pci_bus *bus; bus 1320 drivers/scsi/stex.c bus = hba->pdev->bus; bus 1321 drivers/scsi/stex.c pci_read_config_byte(bus->self, PCI_BRIDGE_CONTROL, &pci_bctl); bus 1323 drivers/scsi/stex.c pci_write_config_byte(bus->self, PCI_BRIDGE_CONTROL, pci_bctl); bus 1331 drivers/scsi/stex.c pci_write_config_byte(bus->self, PCI_BRIDGE_CONTROL, pci_bctl); bus 1517 drivers/scsi/sym53c8xx_2/sym_glue.c pcibios_resource_to_bus(pdev->bus, &bus_addr, &pdev->resource[1]); bus 1527 drivers/scsi/sym53c8xx_2/sym_glue.c pcibios_resource_to_bus(pdev->bus, &bus_addr, bus 1576 drivers/scsi/sym53c8xx_2/sym_glue.c struct pci_dev *memc = pci_get_slot(pdev->bus, slot); bus 705 drivers/scsi/vmw_pvscsi.c e->bus = sdev->channel; bus 1037 drivers/scsi/vmw_pvscsi.c desc->bus, desc->target, desc->lun[1]); bus 1042 drivers/scsi/vmw_pvscsi.c sdev = scsi_device_lookup(host, desc->bus, desc->target, bus 1048 drivers/scsi/vmw_pvscsi.c scsi_add_device(adapter->host, desc->bus, bus 1058 drivers/scsi/vmw_pvscsi.c desc->bus, desc->target, desc->lun[1]); bus 1063 drivers/scsi/vmw_pvscsi.c sdev = scsi_device_lookup(host, desc->bus, desc->target, bus 1071 drivers/scsi/vmw_pvscsi.c desc->bus, desc->target, desc->lun[1]); bus 245 drivers/scsi/vmw_pvscsi.h u32 bus; bus 334 drivers/scsi/vmw_pvscsi.h u8 bus; bus 497 drivers/sh/intc/core.c d->dev.bus = &intc_subsys; bus 76 drivers/sh/maple/maple.c drv->drv.bus = &maple_bus_type; bus 231 drivers/sh/maple/maple.c mdev->dev.bus = &maple_bus_type; bus 777 drivers/sh/maple/maple.c .bus = &maple_bus_type, bus 54 drivers/sh/superhyway/superhyway.c struct superhyway_bus *bus) bus 65 drivers/sh/superhyway/superhyway.c dev->bus = bus; bus 81 drivers/sh/superhyway/superhyway.c dev->dev.bus = &superhyway_bus_type; bus 93 drivers/sh/superhyway/superhyway.c int superhyway_add_devices(struct superhyway_bus *bus, bus 101 drivers/sh/superhyway/superhyway.c ret |= superhyway_add_device(dev->resource[0].start, dev, bus); bus 109 drivers/sh/superhyway/superhyway.c struct superhyway_bus *bus; bus 116 drivers/sh/superhyway/superhyway.c for (bus = superhyway_channels; bus->ops; bus++) bus 117 drivers/sh/superhyway/superhyway.c ret |= superhyway_scan_bus(bus); bus 177 drivers/sh/superhyway/superhyway.c drv->drv.bus = &superhyway_bus_type; bus 695 drivers/siox/siox-core.c smaster->dev.bus = &siox_bus_type; bus 786 drivers/siox/siox-core.c sdevice->dev.bus = &siox_bus_type; bus 892 drivers/siox/siox-core.c sdriver->driver.bus = &siox_bus_type; bus 129 drivers/slimbus/core.c drv->driver.bus = &slimbus_bus; bus 158 drivers/slimbus/core.c sbdev->dev.bus = &slimbus_bus; bus 486 drivers/soc/fsl/qe/qe_ic.c .bus = &qe_ic_subsys, bus 281 drivers/soc/qcom/apr.c adev->dev.bus = &aprbus; bus 384 drivers/soc/qcom/apr.c drv->driver.bus = &aprbus; bus 18 drivers/soundwire/bus.c int sdw_add_bus_master(struct sdw_bus *bus) bus 23 drivers/soundwire/bus.c if (!bus->dev) { bus 28 drivers/soundwire/bus.c if (!bus->ops) { bus 29 drivers/soundwire/bus.c dev_err(bus->dev, "SoundWire Bus ops are not set\n"); bus 33 drivers/soundwire/bus.c mutex_init(&bus->msg_lock); bus 34 drivers/soundwire/bus.c mutex_init(&bus->bus_lock); bus 35 drivers/soundwire/bus.c INIT_LIST_HEAD(&bus->slaves); bus 36 drivers/soundwire/bus.c INIT_LIST_HEAD(&bus->m_rt_list); bus 42 drivers/soundwire/bus.c bus->multi_link = false; bus 43 drivers/soundwire/bus.c if (bus->ops->read_prop) { bus 44 drivers/soundwire/bus.c ret = bus->ops->read_prop(bus); bus 46 drivers/soundwire/bus.c dev_err(bus->dev, bus 52 drivers/soundwire/bus.c sdw_bus_debugfs_init(bus); bus 62 drivers/soundwire/bus.c *bus->assigned = ~GENMASK(SDW_BROADCAST_DEV_NUM, SDW_ENUM_DEV_NUM); bus 65 drivers/soundwire/bus.c set_bit(SDW_ENUM_DEV_NUM, bus->assigned); bus 66 drivers/soundwire/bus.c set_bit(SDW_BROADCAST_DEV_NUM, bus->assigned); bus 69 drivers/soundwire/bus.c set_bit(SDW_GROUP12_DEV_NUM, bus->assigned); bus 70 drivers/soundwire/bus.c set_bit(SDW_GROUP13_DEV_NUM, bus->assigned); bus 71 drivers/soundwire/bus.c set_bit(SDW_MASTER_DEV_NUM, bus->assigned); bus 80 drivers/soundwire/bus.c if (IS_ENABLED(CONFIG_ACPI) && ACPI_HANDLE(bus->dev)) bus 81 drivers/soundwire/bus.c ret = sdw_acpi_find_slaves(bus); bus 82 drivers/soundwire/bus.c else if (IS_ENABLED(CONFIG_OF) && bus->dev->of_node) bus 83 drivers/soundwire/bus.c ret = sdw_of_find_slaves(bus); bus 88 drivers/soundwire/bus.c dev_err(bus->dev, "Finding slaves failed:%d\n", ret); bus 101 drivers/soundwire/bus.c prop = &bus->prop; bus 102 drivers/soundwire/bus.c bus->params.max_dr_freq = prop->max_clk_freq * SDW_DOUBLE_RATE_FACTOR; bus 103 drivers/soundwire/bus.c bus->params.curr_dr_freq = bus->params.max_dr_freq; bus 104 drivers/soundwire/bus.c bus->params.curr_bank = SDW_BANK0; bus 105 drivers/soundwire/bus.c bus->params.next_bank = SDW_BANK1; bus 114 drivers/soundwire/bus.c struct sdw_bus *bus = slave->bus; bus 118 drivers/soundwire/bus.c mutex_lock(&bus->bus_lock); bus 121 drivers/soundwire/bus.c clear_bit(slave->dev_num, bus->assigned); bus 124 drivers/soundwire/bus.c mutex_unlock(&bus->bus_lock); bus 136 drivers/soundwire/bus.c void sdw_delete_bus_master(struct sdw_bus *bus) bus 138 drivers/soundwire/bus.c device_for_each_child(bus->dev, NULL, sdw_delete_slave); bus 140 drivers/soundwire/bus.c sdw_bus_debugfs_exit(bus); bus 165 drivers/soundwire/bus.c static inline int do_transfer(struct sdw_bus *bus, struct sdw_msg *msg) bus 167 drivers/soundwire/bus.c int retry = bus->prop.err_threshold; bus 172 drivers/soundwire/bus.c resp = bus->ops->xfer_msg(bus, msg); bus 183 drivers/soundwire/bus.c static inline int do_transfer_defer(struct sdw_bus *bus, bus 187 drivers/soundwire/bus.c int retry = bus->prop.err_threshold; bus 196 drivers/soundwire/bus.c resp = bus->ops->xfer_msg_defer(bus, msg, defer); bus 206 drivers/soundwire/bus.c static int sdw_reset_page(struct sdw_bus *bus, u16 dev_num) bus 208 drivers/soundwire/bus.c int retry = bus->prop.err_threshold; bus 213 drivers/soundwire/bus.c resp = bus->ops->reset_page_addr(bus, dev_num); bus 228 drivers/soundwire/bus.c int sdw_transfer(struct sdw_bus *bus, struct sdw_msg *msg) bus 232 drivers/soundwire/bus.c mutex_lock(&bus->msg_lock); bus 234 drivers/soundwire/bus.c ret = do_transfer(bus, msg); bus 236 drivers/soundwire/bus.c dev_err(bus->dev, "trf on Slave %d failed:%d\n", bus 240 drivers/soundwire/bus.c sdw_reset_page(bus, msg->dev_num); bus 242 drivers/soundwire/bus.c mutex_unlock(&bus->msg_lock); bus 255 drivers/soundwire/bus.c int sdw_transfer_defer(struct sdw_bus *bus, struct sdw_msg *msg, bus 260 drivers/soundwire/bus.c if (!bus->ops->xfer_msg_defer) bus 263 drivers/soundwire/bus.c ret = do_transfer_defer(bus, msg, defer); bus 265 drivers/soundwire/bus.c dev_err(bus->dev, "Defer trf on Slave %d failed:%d\n", bus 269 drivers/soundwire/bus.c sdw_reset_page(bus, msg->dev_num); bus 337 drivers/soundwire/bus.c ret = pm_runtime_get_sync(slave->bus->dev); bus 341 drivers/soundwire/bus.c ret = sdw_transfer(slave->bus, &msg); bus 342 drivers/soundwire/bus.c pm_runtime_put(slave->bus->dev); bus 365 drivers/soundwire/bus.c ret = pm_runtime_get_sync(slave->bus->dev); bus 369 drivers/soundwire/bus.c ret = sdw_transfer(slave->bus, &msg); bus 370 drivers/soundwire/bus.c pm_runtime_put(slave->bus->dev); bus 411 drivers/soundwire/bus.c static struct sdw_slave *sdw_get_slave(struct sdw_bus *bus, int i) bus 415 drivers/soundwire/bus.c list_for_each_entry(slave, &bus->slaves, node) { bus 439 drivers/soundwire/bus.c bit = find_first_zero_bit(slave->bus->assigned, SDW_MAX_DEVICES); bus 449 drivers/soundwire/bus.c set_bit(bit, slave->bus->assigned); bus 461 drivers/soundwire/bus.c mutex_lock(&slave->bus->bus_lock); bus 463 drivers/soundwire/bus.c mutex_unlock(&slave->bus->bus_lock); bus 465 drivers/soundwire/bus.c dev_err(slave->bus->dev, "Get dev_num failed: %d\n", bus 470 drivers/soundwire/bus.c dev_info(slave->bus->dev, bus 492 drivers/soundwire/bus.c void sdw_extract_slave_id(struct sdw_bus *bus, bus 495 drivers/soundwire/bus.c dev_dbg(bus->dev, "SDW Slave Addr: %llx\n", addr); bus 514 drivers/soundwire/bus.c dev_dbg(bus->dev, bus 520 drivers/soundwire/bus.c static int sdw_program_device_num(struct sdw_bus *bus) bus 537 drivers/soundwire/bus.c ret = sdw_transfer(bus, &msg); bus 539 drivers/soundwire/bus.c dev_dbg(bus->dev, "No more devices to enumerate\n"); bus 544 drivers/soundwire/bus.c dev_err(bus->dev, "DEVID read fail:%d\n", ret); bus 556 drivers/soundwire/bus.c sdw_extract_slave_id(bus, addr, &id); bus 559 drivers/soundwire/bus.c list_for_each_entry_safe(slave, _s, &bus->slaves, node) { bus 571 drivers/soundwire/bus.c dev_err(slave->bus->dev, bus 583 drivers/soundwire/bus.c dev_err(bus->dev, "Slave Entry not found\n"); bus 602 drivers/soundwire/bus.c mutex_lock(&slave->bus->bus_lock); bus 604 drivers/soundwire/bus.c mutex_unlock(&slave->bus->bus_lock); bus 627 drivers/soundwire/bus.c dev_err(slave->bus->dev, bus 651 drivers/soundwire/bus.c dev_err(slave->bus->dev, bus 666 drivers/soundwire/bus.c dev_err(slave->bus->dev, bus 681 drivers/soundwire/bus.c dev_err(slave->bus->dev, bus 718 drivers/soundwire/bus.c dev_err(slave->bus->dev, bus 726 drivers/soundwire/bus.c dev_err(slave->bus->dev, bus 738 drivers/soundwire/bus.c dev_warn(slave->bus->dev, "Reached MAX_RETRY on DP0 read\n"); bus 756 drivers/soundwire/bus.c dev_err(slave->bus->dev, bus 788 drivers/soundwire/bus.c dev_err(slave->bus->dev, bus 796 drivers/soundwire/bus.c dev_err(slave->bus->dev, bus 808 drivers/soundwire/bus.c dev_warn(slave->bus->dev, "Reached MAX_RETRY on port read"); bus 827 drivers/soundwire/bus.c dev_err(slave->bus->dev, bus 835 drivers/soundwire/bus.c dev_err(slave->bus->dev, bus 915 drivers/soundwire/bus.c dev_err(slave->bus->dev, bus 926 drivers/soundwire/bus.c dev_err(slave->bus->dev, bus 934 drivers/soundwire/bus.c dev_err(slave->bus->dev, bus 955 drivers/soundwire/bus.c dev_warn(slave->bus->dev, "Reached MAX_RETRY on alert read\n"); bus 974 drivers/soundwire/bus.c int sdw_handle_slave_status(struct sdw_bus *bus, bus 982 drivers/soundwire/bus.c dev_dbg(bus->dev, "Slave attached, programming device number\n"); bus 983 drivers/soundwire/bus.c ret = sdw_program_device_num(bus); bus 985 drivers/soundwire/bus.c dev_err(bus->dev, "Slave attach failed: %d\n", ret); bus 995 drivers/soundwire/bus.c mutex_lock(&bus->bus_lock); bus 996 drivers/soundwire/bus.c if (test_bit(i, bus->assigned) == false) { bus 997 drivers/soundwire/bus.c mutex_unlock(&bus->bus_lock); bus 1000 drivers/soundwire/bus.c mutex_unlock(&bus->bus_lock); bus 1002 drivers/soundwire/bus.c slave = sdw_get_slave(bus, i); bus 1017 drivers/soundwire/bus.c dev_err(bus->dev, bus 1034 drivers/soundwire/bus.c dev_err(bus->dev, bus 1041 drivers/soundwire/bus.c dev_err(bus->dev, "Invalid slave %d status:%d\n", bus 1048 drivers/soundwire/bus.c dev_err(slave->bus->dev, bus 10 drivers/soundwire/bus.h int sdw_acpi_find_slaves(struct sdw_bus *bus); bus 12 drivers/soundwire/bus.h static inline int sdw_acpi_find_slaves(struct sdw_bus *bus) bus 18 drivers/soundwire/bus.h int sdw_of_find_slaves(struct sdw_bus *bus); bus 19 drivers/soundwire/bus.h void sdw_extract_slave_id(struct sdw_bus *bus, bus 23 drivers/soundwire/bus.h void sdw_bus_debugfs_init(struct sdw_bus *bus); bus 24 drivers/soundwire/bus.h void sdw_bus_debugfs_exit(struct sdw_bus *bus); bus 30 drivers/soundwire/bus.h static inline void sdw_bus_debugfs_init(struct sdw_bus *bus) {} bus 31 drivers/soundwire/bus.h static inline void sdw_bus_debugfs_exit(struct sdw_bus *bus) {} bus 128 drivers/soundwire/bus.h struct sdw_bus *bus; bus 144 drivers/soundwire/bus.h int sdw_transfer(struct sdw_bus *bus, struct sdw_msg *msg); bus 145 drivers/soundwire/bus.h int sdw_transfer_defer(struct sdw_bus *bus, struct sdw_msg *msg, bus 110 drivers/soundwire/bus_type.c slave->bus->clk_stop_timeout = max_t(u32, slave->bus->clk_stop_timeout, bus 148 drivers/soundwire/bus_type.c drv->driver.bus = &sdw_bus_type; bus 516 drivers/soundwire/cadence_master.c cdns_xfer_msg(struct sdw_bus *bus, struct sdw_msg *msg) bus 518 drivers/soundwire/cadence_master.c struct sdw_cdns *cdns = bus_to_cdns(bus); bus 544 drivers/soundwire/cadence_master.c cdns_xfer_msg_defer(struct sdw_bus *bus, bus 547 drivers/soundwire/cadence_master.c struct sdw_cdns *cdns = bus_to_cdns(bus); bus 566 drivers/soundwire/cadence_master.c cdns_reset_page_addr(struct sdw_bus *bus, unsigned int dev_num) bus 568 drivers/soundwire/cadence_master.c struct sdw_cdns *cdns = bus_to_cdns(bus); bus 654 drivers/soundwire/cadence_master.c return sdw_handle_slave_status(&cdns->bus, status); bus 944 drivers/soundwire/cadence_master.c struct sdw_bus *bus = &cdns->bus; bus 945 drivers/soundwire/cadence_master.c struct sdw_master_prop *prop = &bus->prop; bus 1010 drivers/soundwire/cadence_master.c int cdns_bus_conf(struct sdw_bus *bus, struct sdw_bus_params *params) bus 1012 drivers/soundwire/cadence_master.c struct sdw_master_prop *prop = &bus->prop; bus 1013 drivers/soundwire/cadence_master.c struct sdw_cdns *cdns = bus_to_cdns(bus); bus 1037 drivers/soundwire/cadence_master.c static int cdns_port_params(struct sdw_bus *bus, bus 1040 drivers/soundwire/cadence_master.c struct sdw_cdns *cdns = bus_to_cdns(bus); bus 1062 drivers/soundwire/cadence_master.c static int cdns_transport_params(struct sdw_bus *bus, bus 1066 drivers/soundwire/cadence_master.c struct sdw_cdns *cdns = bus_to_cdns(bus); bus 1116 drivers/soundwire/cadence_master.c static int cdns_port_enable(struct sdw_bus *bus, bus 1119 drivers/soundwire/cadence_master.c struct sdw_cdns *cdns = bus_to_cdns(bus); bus 1146 drivers/soundwire/cadence_master.c cdns->bus.port_ops = &cdns_port_ops; bus 1167 drivers/soundwire/cadence_master.c dma->bus = &cdns->bus; bus 109 drivers/soundwire/cadence_master.h struct sdw_bus *bus; bus 132 drivers/soundwire/cadence_master.h struct sdw_bus bus; bus 151 drivers/soundwire/cadence_master.h #define bus_to_cdns(_bus) container_of(_bus, struct sdw_cdns, bus) bus 185 drivers/soundwire/cadence_master.h cdns_reset_page_addr(struct sdw_bus *bus, unsigned int dev_num); bus 188 drivers/soundwire/cadence_master.h cdns_xfer_msg(struct sdw_bus *bus, struct sdw_msg *msg); bus 191 drivers/soundwire/cadence_master.h cdns_xfer_msg_defer(struct sdw_bus *bus, bus 195 drivers/soundwire/cadence_master.h cdns_reset_page_addr(struct sdw_bus *bus, unsigned int dev_num); bus 197 drivers/soundwire/cadence_master.h int cdns_bus_conf(struct sdw_bus *bus, struct sdw_bus_params *params); bus 14 drivers/soundwire/debugfs.c void sdw_bus_debugfs_init(struct sdw_bus *bus) bus 22 drivers/soundwire/debugfs.c snprintf(name, sizeof(name), "master-%d", bus->link_id); bus 23 drivers/soundwire/debugfs.c bus->debugfs = debugfs_create_dir(name, sdw_debugfs_root); bus 26 drivers/soundwire/debugfs.c void sdw_bus_debugfs_exit(struct sdw_bus *bus) bus 28 drivers/soundwire/debugfs.c debugfs_remove_recursive(bus->debugfs); bus 127 drivers/soundwire/debugfs.c master = slave->bus->debugfs; bus 262 drivers/soundwire/intel.c struct dentry *root = sdw->cdns.bus.debugfs; bus 549 drivers/soundwire/intel.c static int intel_pre_bank_switch(struct sdw_bus *bus) bus 551 drivers/soundwire/intel.c struct sdw_cdns *cdns = bus_to_cdns(bus); bus 557 drivers/soundwire/intel.c if (!bus->multi_link) bus 568 drivers/soundwire/intel.c static int intel_post_bank_switch(struct sdw_bus *bus) bus 570 drivers/soundwire/intel.c struct sdw_cdns *cdns = bus_to_cdns(bus); bus 576 drivers/soundwire/intel.c if (!bus->multi_link) bus 751 drivers/soundwire/intel.c ret = sdw_stream_add_master(&cdns->bus, &sconfig, bus 780 drivers/soundwire/intel.c ret = sdw_stream_remove_master(&cdns->bus, dma->stream); bus 950 drivers/soundwire/intel.c static int sdw_master_read_intel_prop(struct sdw_bus *bus) bus 952 drivers/soundwire/intel.c struct sdw_master_prop *prop = &bus->prop; bus 959 drivers/soundwire/intel.c "mipi-sdw-link-%d-subproperties", bus->link_id); bus 961 drivers/soundwire/intel.c link = device_get_named_child_node(bus->dev, name); bus 963 drivers/soundwire/intel.c dev_err(bus->dev, "Master node %s not found\n", name); bus 981 drivers/soundwire/intel.c static int intel_prop_read(struct sdw_bus *bus) bus 984 drivers/soundwire/intel.c sdw_master_read_prop(bus); bus 987 drivers/soundwire/intel.c sdw_master_read_intel_prop(bus); bus 1021 drivers/soundwire/intel.c sdw->cdns.bus.dev = &pdev->dev; bus 1022 drivers/soundwire/intel.c sdw->cdns.bus.link_id = pdev->id; bus 1028 drivers/soundwire/intel.c sdw->cdns.bus.ops = &sdw_intel_ops; bus 1032 drivers/soundwire/intel.c ret = sdw_add_bus_master(&sdw->cdns.bus); bus 1038 drivers/soundwire/intel.c if (sdw->cdns.bus.prop.hw_disabled) { bus 1040 drivers/soundwire/intel.c sdw->cdns.bus.link_id); bus 1086 drivers/soundwire/intel.c sdw_delete_bus_master(&sdw->cdns.bus); bus 1097 drivers/soundwire/intel.c if (!sdw->cdns.bus.prop.hw_disabled) { bus 1102 drivers/soundwire/intel.c sdw_delete_bus_master(&sdw->cdns.bus); bus 30 drivers/soundwire/mipi_disco.c int sdw_master_read_prop(struct sdw_bus *bus) bus 32 drivers/soundwire/mipi_disco.c struct sdw_master_prop *prop = &bus->prop; bus 37 drivers/soundwire/mipi_disco.c device_property_read_u32(bus->dev, bus 43 drivers/soundwire/mipi_disco.c "mipi-sdw-link-%d-subproperties", bus->link_id); bus 45 drivers/soundwire/mipi_disco.c link = device_get_named_child_node(bus->dev, name); bus 47 drivers/soundwire/mipi_disco.c dev_err(bus->dev, "Master node %s not found\n", name); bus 66 drivers/soundwire/mipi_disco.c prop->clk_freq = devm_kcalloc(bus->dev, prop->num_clk_freq, bus 92 drivers/soundwire/mipi_disco.c prop->clk_gears = devm_kcalloc(bus->dev, prop->num_clk_gears, bus 17 drivers/soundwire/slave.c static int sdw_slave_add(struct sdw_bus *bus, bus 29 drivers/soundwire/slave.c slave->dev.parent = bus->dev; bus 34 drivers/soundwire/slave.c bus->link_id, id->mfg_id, id->part_id, bus 38 drivers/soundwire/slave.c slave->dev.bus = &sdw_bus_type; bus 40 drivers/soundwire/slave.c slave->bus = bus; bus 44 drivers/soundwire/slave.c mutex_lock(&bus->bus_lock); bus 45 drivers/soundwire/slave.c list_add_tail(&slave->node, &bus->slaves); bus 46 drivers/soundwire/slave.c mutex_unlock(&bus->bus_lock); bus 50 drivers/soundwire/slave.c dev_err(bus->dev, "Failed to add slave: ret %d\n", ret); bus 56 drivers/soundwire/slave.c mutex_lock(&bus->bus_lock); bus 58 drivers/soundwire/slave.c mutex_unlock(&bus->bus_lock); bus 73 drivers/soundwire/slave.c int sdw_acpi_find_slaves(struct sdw_bus *bus) bus 77 drivers/soundwire/slave.c parent = ACPI_COMPANION(bus->dev); bus 79 drivers/soundwire/slave.c dev_err(bus->dev, "Can't find parent for acpi bind\n"); bus 93 drivers/soundwire/slave.c dev_err(bus->dev, "_ADR resolution failed: %x\n", bus 102 drivers/soundwire/slave.c if (link_id != bus->link_id) bus 105 drivers/soundwire/slave.c sdw_extract_slave_id(bus, addr, &id); bus 111 drivers/soundwire/slave.c sdw_slave_add(bus, &id, acpi_fwnode_handle(adev)); bus 125 drivers/soundwire/slave.c int sdw_of_find_slaves(struct sdw_bus *bus) bus 127 drivers/soundwire/slave.c struct device *dev = bus->dev; bus 130 drivers/soundwire/slave.c for_each_child_of_node(bus->dev->of_node, node) { bus 161 drivers/soundwire/slave.c if (link_id != bus->link_id) bus 164 drivers/soundwire/slave.c sdw_slave_add(bus, &id, of_fwnode_handle(node)); bus 58 drivers/soundwire/stream.c static int _sdw_program_slave_port_params(struct sdw_bus *bus, bus 67 drivers/soundwire/stream.c if (bus->params.next_bank) { bus 82 drivers/soundwire/stream.c dev_err(bus->dev, "DPN_OffsetCtrl2 register write failed\n"); bus 89 drivers/soundwire/stream.c dev_err(bus->dev, "DPN_BlockCtrl3 register write failed\n"); bus 108 drivers/soundwire/stream.c dev_err(bus->dev, "DPN_SampleCtrl2 register write failed\n"); bus 119 drivers/soundwire/stream.c dev_err(bus->dev, "DPN_HCtrl register write failed\n"); bus 124 drivers/soundwire/stream.c static int sdw_program_slave_port_params(struct sdw_bus *bus, bus 145 drivers/soundwire/stream.c if (bus->params.next_bank) { bus 221 drivers/soundwire/stream.c ret = _sdw_program_slave_port_params(bus, s_rt->slave, bus 232 drivers/soundwire/stream.c static int sdw_program_master_port_params(struct sdw_bus *bus, bus 243 drivers/soundwire/stream.c ret = bus->port_ops->dpn_set_port_transport_params(bus, bus 245 drivers/soundwire/stream.c bus->params.next_bank); bus 249 drivers/soundwire/stream.c return bus->port_ops->dpn_set_port_params(bus, bus 251 drivers/soundwire/stream.c bus->params.next_bank); bus 263 drivers/soundwire/stream.c struct sdw_bus *bus = m_rt->bus; bus 270 drivers/soundwire/stream.c ret = sdw_program_slave_port_params(bus, s_rt, p_rt); bus 278 drivers/soundwire/stream.c ret = sdw_program_master_port_params(bus, p_rt); bus 297 drivers/soundwire/stream.c static int sdw_enable_disable_slave_ports(struct sdw_bus *bus, bus 306 drivers/soundwire/stream.c if (bus->params.next_bank) bus 333 drivers/soundwire/stream.c struct sdw_bus *bus = m_rt->bus; bus 342 drivers/soundwire/stream.c if (bus->port_ops->dpn_port_enable_ch) { bus 343 drivers/soundwire/stream.c ret = bus->port_ops->dpn_port_enable_ch(bus, bus 345 drivers/soundwire/stream.c bus->params.next_bank); bus 347 drivers/soundwire/stream.c dev_err(bus->dev, bus 353 drivers/soundwire/stream.c dev_err(bus->dev, bus 378 drivers/soundwire/stream.c ret = sdw_enable_disable_slave_ports(m_rt->bus, s_rt, bus 415 drivers/soundwire/stream.c static int sdw_prep_deprep_slave_ports(struct sdw_bus *bus, bus 435 drivers/soundwire/stream.c dev_err(bus->dev, bus 442 drivers/soundwire/stream.c prep_ch.bank = bus->params.next_bank; bus 508 drivers/soundwire/stream.c struct sdw_bus *bus = m_rt->bus; bus 509 drivers/soundwire/stream.c const struct sdw_master_port_ops *ops = bus->port_ops; bus 516 drivers/soundwire/stream.c prep_ch.bank = bus->params.next_bank; bus 520 drivers/soundwire/stream.c ret = ops->dpn_port_prep(bus, &prep_ch); bus 522 drivers/soundwire/stream.c dev_err(bus->dev, "Port prepare failed for port:%d\n", bus 547 drivers/soundwire/stream.c ret = sdw_prep_deprep_slave_ports(m_rt->bus, s_rt, bus 575 drivers/soundwire/stream.c struct sdw_bus *bus = m_rt->bus; bus 579 drivers/soundwire/stream.c if (bus->ops->set_bus_conf) { bus 580 drivers/soundwire/stream.c ret = bus->ops->set_bus_conf(bus, &bus->params); bus 589 drivers/soundwire/stream.c ret = slave->ops->bus_config(slave, &bus->params); bus 591 drivers/soundwire/stream.c dev_err(bus->dev, "Notify Slave: %d failed\n", bus 606 drivers/soundwire/stream.c static int sdw_program_params(struct sdw_bus *bus) bus 611 drivers/soundwire/stream.c list_for_each_entry(m_rt, &bus->m_rt_list, bus_node) { bus 614 drivers/soundwire/stream.c dev_err(bus->dev, bus 621 drivers/soundwire/stream.c dev_err(bus->dev, bus 632 drivers/soundwire/stream.c dev_err(bus->dev, "Enable channel failed: %d\n", ret); bus 640 drivers/soundwire/stream.c static int sdw_bank_switch(struct sdw_bus *bus, int m_rt_count) bus 653 drivers/soundwire/stream.c bus->defer_msg.msg = wr_msg; bus 662 drivers/soundwire/stream.c col_index = sdw_find_col_index(bus->params.col); bus 663 drivers/soundwire/stream.c row_index = sdw_find_row_index(bus->params.row); bus 666 drivers/soundwire/stream.c if (bus->params.next_bank) bus 679 drivers/soundwire/stream.c multi_link = bus->multi_link && (m_rt_count > 1); bus 682 drivers/soundwire/stream.c ret = sdw_transfer_defer(bus, wr_msg, &bus->defer_msg); bus 684 drivers/soundwire/stream.c ret = sdw_transfer(bus, wr_msg); bus 687 drivers/soundwire/stream.c dev_err(bus->dev, "Slave frame_ctrl reg write failed\n"); bus 694 drivers/soundwire/stream.c bus->defer_msg.msg = NULL; bus 695 drivers/soundwire/stream.c bus->params.curr_bank = !bus->params.curr_bank; bus 696 drivers/soundwire/stream.c bus->params.next_bank = !bus->params.next_bank; bus 715 drivers/soundwire/stream.c static int sdw_ml_sync_bank_switch(struct sdw_bus *bus) bus 719 drivers/soundwire/stream.c if (!bus->multi_link) bus 723 drivers/soundwire/stream.c time_left = wait_for_completion_timeout(&bus->defer_msg.complete, bus 724 drivers/soundwire/stream.c bus->bank_switch_timeout); bus 727 drivers/soundwire/stream.c dev_err(bus->dev, "Controller Timed out on bank switch\n"); bus 731 drivers/soundwire/stream.c bus->params.curr_bank = !bus->params.curr_bank; bus 732 drivers/soundwire/stream.c bus->params.next_bank = !bus->params.next_bank; bus 734 drivers/soundwire/stream.c if (bus->defer_msg.msg) { bus 735 drivers/soundwire/stream.c kfree(bus->defer_msg.msg->buf); bus 736 drivers/soundwire/stream.c kfree(bus->defer_msg.msg); bus 746 drivers/soundwire/stream.c struct sdw_bus *bus; bus 751 drivers/soundwire/stream.c bus = m_rt->bus; bus 752 drivers/soundwire/stream.c ops = bus->ops; bus 754 drivers/soundwire/stream.c if (bus->multi_link) { bus 756 drivers/soundwire/stream.c mutex_lock(&bus->msg_lock); bus 761 drivers/soundwire/stream.c ret = ops->pre_bank_switch(bus); bus 763 drivers/soundwire/stream.c dev_err(bus->dev, bus 775 drivers/soundwire/stream.c ret = sdw_bank_switch(bus, stream->m_rt_count); bus 777 drivers/soundwire/stream.c dev_err(bus->dev, "Bank switch failed: %d\n", ret); bus 789 drivers/soundwire/stream.c bus = m_rt->bus; bus 790 drivers/soundwire/stream.c ops = bus->ops; bus 794 drivers/soundwire/stream.c ret = ops->post_bank_switch(bus); bus 796 drivers/soundwire/stream.c dev_err(bus->dev, bus 801 drivers/soundwire/stream.c } else if (bus->multi_link && stream->m_rt_count > 1) { bus 802 drivers/soundwire/stream.c dev_err(bus->dev, bus 808 drivers/soundwire/stream.c if (!bus->bank_switch_timeout) bus 809 drivers/soundwire/stream.c bus->bank_switch_timeout = DEFAULT_BANK_SWITCH_TIMEOUT; bus 812 drivers/soundwire/stream.c ret = sdw_ml_sync_bank_switch(bus); bus 814 drivers/soundwire/stream.c dev_err(bus->dev, bus 819 drivers/soundwire/stream.c if (bus->multi_link) bus 820 drivers/soundwire/stream.c mutex_unlock(&bus->msg_lock); bus 827 drivers/soundwire/stream.c bus = m_rt->bus; bus 829 drivers/soundwire/stream.c kfree(bus->defer_msg.msg->buf); bus 830 drivers/soundwire/stream.c kfree(bus->defer_msg.msg); bus 837 drivers/soundwire/stream.c bus = m_rt->bus; bus 838 drivers/soundwire/stream.c if (mutex_is_locked(&bus->msg_lock)) bus 839 drivers/soundwire/stream.c mutex_unlock(&bus->msg_lock); bus 886 drivers/soundwire/stream.c *sdw_find_master_rt(struct sdw_bus *bus, bus 893 drivers/soundwire/stream.c if (m_rt->bus == bus) bus 910 drivers/soundwire/stream.c *sdw_alloc_master_rt(struct sdw_bus *bus, bus 920 drivers/soundwire/stream.c m_rt = sdw_find_master_rt(bus, stream); bus 933 drivers/soundwire/stream.c list_add_tail(&m_rt->bus_node, &bus->m_rt_list); bus 937 drivers/soundwire/stream.c m_rt->bus = bus; bus 972 drivers/soundwire/stream.c static void sdw_master_port_release(struct sdw_bus *bus, bus 983 drivers/soundwire/stream.c static void sdw_slave_port_release(struct sdw_bus *bus, bus 1049 drivers/soundwire/stream.c sdw_slave_port_release(s_rt->slave->bus, s_rt->slave, stream); bus 1066 drivers/soundwire/stream.c int sdw_stream_remove_master(struct sdw_bus *bus, bus 1071 drivers/soundwire/stream.c mutex_lock(&bus->bus_lock); bus 1075 drivers/soundwire/stream.c if (m_rt->bus != bus) bus 1078 drivers/soundwire/stream.c sdw_master_port_release(bus, m_rt); bus 1086 drivers/soundwire/stream.c mutex_unlock(&bus->bus_lock); bus 1103 drivers/soundwire/stream.c mutex_lock(&slave->bus->bus_lock); bus 1105 drivers/soundwire/stream.c sdw_slave_port_release(slave->bus, slave, stream); bus 1108 drivers/soundwire/stream.c mutex_unlock(&slave->bus->bus_lock); bus 1189 drivers/soundwire/stream.c static int sdw_master_port_config(struct sdw_bus *bus, bus 1199 drivers/soundwire/stream.c p_rt = sdw_port_alloc(bus->dev, port_config, i); bus 1258 drivers/soundwire/stream.c int sdw_stream_add_master(struct sdw_bus *bus, bus 1267 drivers/soundwire/stream.c mutex_lock(&bus->bus_lock); bus 1274 drivers/soundwire/stream.c if (!bus->multi_link && stream->m_rt_count > 0) { bus 1275 drivers/soundwire/stream.c dev_err(bus->dev, bus 1276 drivers/soundwire/stream.c "Multilink not supported, link %d\n", bus->link_id); bus 1281 drivers/soundwire/stream.c m_rt = sdw_alloc_master_rt(bus, stream_config, stream); bus 1283 drivers/soundwire/stream.c dev_err(bus->dev, bus 1290 drivers/soundwire/stream.c ret = sdw_config_stream(bus->dev, stream, stream_config, false); bus 1294 drivers/soundwire/stream.c ret = sdw_master_port_config(bus, m_rt, port_config, num_ports); bus 1305 drivers/soundwire/stream.c mutex_unlock(&bus->bus_lock); bus 1333 drivers/soundwire/stream.c mutex_lock(&slave->bus->bus_lock); bus 1339 drivers/soundwire/stream.c m_rt = sdw_alloc_master_rt(slave->bus, stream_config, stream); bus 1383 drivers/soundwire/stream.c mutex_unlock(&slave->bus->bus_lock); bus 1432 drivers/soundwire/stream.c struct sdw_bus *bus = NULL; bus 1436 drivers/soundwire/stream.c bus = m_rt->bus; bus 1438 drivers/soundwire/stream.c mutex_lock(&bus->bus_lock); bus 1454 drivers/soundwire/stream.c struct sdw_bus *bus = NULL; bus 1458 drivers/soundwire/stream.c bus = m_rt->bus; bus 1459 drivers/soundwire/stream.c mutex_unlock(&bus->bus_lock); bus 1466 drivers/soundwire/stream.c struct sdw_bus *bus = NULL; bus 1473 drivers/soundwire/stream.c bus = m_rt->bus; bus 1474 drivers/soundwire/stream.c prop = &bus->prop; bus 1475 drivers/soundwire/stream.c memcpy(¶ms, &bus->params, sizeof(params)); bus 1479 drivers/soundwire/stream.c dev_err(bus->dev, "Async mode not supported\n"); bus 1485 drivers/soundwire/stream.c bus->params.bandwidth += m_rt->stream->params.rate * bus 1489 drivers/soundwire/stream.c if (bus->compute_params) { bus 1490 drivers/soundwire/stream.c ret = bus->compute_params(bus); bus 1492 drivers/soundwire/stream.c dev_err(bus->dev, "Compute params failed: %d", bus 1499 drivers/soundwire/stream.c ret = sdw_program_params(bus); bus 1501 drivers/soundwire/stream.c dev_err(bus->dev, "Program params failed: %d\n", ret); bus 1506 drivers/soundwire/stream.c if (!bus) { bus 1513 drivers/soundwire/stream.c dev_err(bus->dev, "Bank switch failed: %d\n", ret); bus 1518 drivers/soundwire/stream.c bus = m_rt->bus; bus 1523 drivers/soundwire/stream.c dev_err(bus->dev, "Prepare port(s) failed ret = %d\n", bus 1534 drivers/soundwire/stream.c memcpy(&bus->params, ¶ms, sizeof(params)); bus 1568 drivers/soundwire/stream.c struct sdw_bus *bus = NULL; bus 1573 drivers/soundwire/stream.c bus = m_rt->bus; bus 1576 drivers/soundwire/stream.c ret = sdw_program_params(bus); bus 1578 drivers/soundwire/stream.c dev_err(bus->dev, "Program params failed: %d\n", ret); bus 1585 drivers/soundwire/stream.c dev_err(bus->dev, bus 1591 drivers/soundwire/stream.c if (!bus) { bus 1598 drivers/soundwire/stream.c dev_err(bus->dev, "Bank switch failed: %d\n", ret); bus 1639 drivers/soundwire/stream.c struct sdw_bus *bus = m_rt->bus; bus 1644 drivers/soundwire/stream.c dev_err(bus->dev, "Disable port(s) failed: %d\n", ret); bus 1651 drivers/soundwire/stream.c struct sdw_bus *bus = m_rt->bus; bus 1654 drivers/soundwire/stream.c ret = sdw_program_params(bus); bus 1656 drivers/soundwire/stream.c dev_err(bus->dev, "Program params failed: %d\n", ret); bus 1669 drivers/soundwire/stream.c struct sdw_bus *bus = m_rt->bus; bus 1674 drivers/soundwire/stream.c dev_err(bus->dev, "Disable port(s) failed: %d\n", ret); bus 1712 drivers/soundwire/stream.c struct sdw_bus *bus; bus 1716 drivers/soundwire/stream.c bus = m_rt->bus; bus 1720 drivers/soundwire/stream.c dev_err(bus->dev, bus 1726 drivers/soundwire/stream.c bus->params.bandwidth -= m_rt->stream->params.rate * bus 1730 drivers/soundwire/stream.c ret = sdw_program_params(bus); bus 1732 drivers/soundwire/stream.c dev_err(bus->dev, "Program params failed: %d\n", ret); bus 759 drivers/spi/spi-npcm-fiu.c .bus = &platform_bus_type, bus 81 drivers/spi/spi-pxa2xx-pci.c dma_dev = pci_get_slot(dev->bus, PCI_DEVFN(PCI_SLOT(dev->devfn), 0)); bus 105 drivers/spi/spi-pxa2xx-pci.c struct pci_dev *dma_dev = pci_get_slot(dev->bus, PCI_DEVFN(21, 0)); bus 860 drivers/spi/spi-topcliff-pch.c dma_dev = pci_get_slot(data->board_dat->pdev->bus, bus 444 drivers/spi/spi.c sdrv->driver.bus = &spi_bus_type; bus 510 drivers/spi/spi.c spi->dev.bus = &spi_bus_type; bus 397 drivers/spmi/spmi.c sdev->dev.bus = &spmi_bus_type; bus 428 drivers/spmi/spmi.c ctrl->dev.bus = &spmi_bus_type; bus 568 drivers/spmi/spmi.c sdrv->driver.bus = &spmi_bus_type; bus 46 drivers/ssb/driver_chipcommon.c struct ssb_bus *bus; bus 51 drivers/ssb/driver_chipcommon.c bus = ccdev->bus; bus 80 drivers/ssb/driver_chipcommon.c ssb_pci_xtal(bus, SSB_GPIO_XTAL, 1); /* Force crystal on */ bus 106 drivers/ssb/driver_chipcommon.c ssb_pci_xtal(bus, SSB_GPIO_XTAL, 0); bus 121 drivers/ssb/driver_chipcommon.c struct ssb_bus *bus = cc->dev->bus; bus 125 drivers/ssb/driver_chipcommon.c if (bus->bustype == SSB_BUSTYPE_SSB || bus 126 drivers/ssb/driver_chipcommon.c bus->bustype == SSB_BUSTYPE_PCMCIA) bus 128 drivers/ssb/driver_chipcommon.c if (bus->bustype == SSB_BUSTYPE_PCI) { bus 129 drivers/ssb/driver_chipcommon.c pci_read_config_dword(bus->host_pci, SSB_GPIO_OUT, &tmp); bus 213 drivers/ssb/driver_chipcommon.c struct ssb_bus *bus = cc->dev->bus; bus 215 drivers/ssb/driver_chipcommon.c if (bus->chip_id == 0x4321) { bus 216 drivers/ssb/driver_chipcommon.c if (bus->chip_rev == 0) bus 218 drivers/ssb/driver_chipcommon.c else if (bus->chip_rev == 1) bus 244 drivers/ssb/driver_chipcommon.c struct ssb_bus *bus = cc->dev->bus; bus 246 drivers/ssb/driver_chipcommon.c switch (bus->chip_id) { bus 261 drivers/ssb/driver_chipcommon.c struct ssb_bus *bus = cc->dev->bus; bus 266 drivers/ssb/driver_chipcommon.c if (bus->bustype != SSB_BUSTYPE_PCI) bus 315 drivers/ssb/driver_chipcommon.c if (cc->dev->bus->bustype != SSB_BUSTYPE_SSB) bus 326 drivers/ssb/driver_chipcommon.c if (cc->dev->bus->bustype != SSB_BUSTYPE_SSB) bus 335 drivers/ssb/driver_chipcommon.c struct ssb_bus *bus = cc->dev->bus; bus 342 drivers/ssb/driver_chipcommon.c return ssb_clockspeed(bus) / 1000; bus 369 drivers/ssb/driver_chipcommon.c if (cc->dev->bus->bustype == SSB_BUSTYPE_SSB) { bus 424 drivers/ssb/driver_chipcommon.c if (cc->dev->bus->chip_id != 0x5365) { bus 438 drivers/ssb/driver_chipcommon.c struct ssb_bus *bus = dev->bus; bus 452 drivers/ssb/driver_chipcommon.c if ((bus->chip_id == 0x5365) || bus 455 drivers/ssb/driver_chipcommon.c if ((bus->chip_id == 0x5365) || bus 457 drivers/ssb/driver_chipcommon.c ((bus->chip_id == 0x5350) && (bus->chip_rev == 0))) bus 460 drivers/ssb/driver_chipcommon.c if (bus->chip_id == 0x5350) { bus 604 drivers/ssb/driver_chipcommon.c struct ssb_bus *bus = cc->dev->bus; bus 651 drivers/ssb/driver_chipcommon.c baud_base = ssb_clockspeed(bus); bus 680 drivers/ssb/driver_chipcommon.c cc_mmio = cc->dev->bus->mmio + (cc->dev->core_index * SSB_CORE_SIZE); bus 93 drivers/ssb/driver_chipcommon_pmu.c struct ssb_bus *bus = cc->dev->bus; bus 117 drivers/ssb/driver_chipcommon_pmu.c switch (bus->chip_id) { bus 224 drivers/ssb/driver_chipcommon_pmu.c struct ssb_bus *bus = cc->dev->bus; bus 230 drivers/ssb/driver_chipcommon_pmu.c if (bus->chip_id == 0x4312) { bus 256 drivers/ssb/driver_chipcommon_pmu.c switch (bus->chip_id) { bus 319 drivers/ssb/driver_chipcommon_pmu.c struct ssb_bus *bus = cc->dev->bus; bus 322 drivers/ssb/driver_chipcommon_pmu.c if (bus->bustype == SSB_BUSTYPE_SSB) { bus 330 drivers/ssb/driver_chipcommon_pmu.c switch (bus->chip_id) { bus 353 drivers/ssb/driver_chipcommon_pmu.c bus->chip_id); bus 425 drivers/ssb/driver_chipcommon_pmu.c struct ssb_bus *bus = cc->dev->bus; bus 433 drivers/ssb/driver_chipcommon_pmu.c switch (bus->chip_id) { bus 475 drivers/ssb/driver_chipcommon_pmu.c bus->chip_id); bus 543 drivers/ssb/driver_chipcommon_pmu.c struct ssb_bus *bus = cc->dev->bus; bus 546 drivers/ssb/driver_chipcommon_pmu.c switch (bus->chip_id) { bus 592 drivers/ssb/driver_chipcommon_pmu.c struct ssb_bus *bus = cc->dev->bus; bus 595 drivers/ssb/driver_chipcommon_pmu.c switch (bus->chip_id) { bus 633 drivers/ssb/driver_chipcommon_pmu.c struct ssb_bus *bus = cc->dev->bus; bus 635 drivers/ssb/driver_chipcommon_pmu.c switch (bus->chip_id) { bus 640 drivers/ssb/driver_chipcommon_pmu.c bus->chip_id); bus 647 drivers/ssb/driver_chipcommon_pmu.c struct ssb_bus *bus = cc->dev->bus; bus 649 drivers/ssb/driver_chipcommon_pmu.c switch (bus->chip_id) { bus 655 drivers/ssb/driver_chipcommon_pmu.c bus->chip_id); bus 662 drivers/ssb/driver_chipcommon_pmu.c struct ssb_bus *bus = cc->dev->bus; bus 664 drivers/ssb/driver_chipcommon_pmu.c switch (bus->chip_id) { bus 669 drivers/ssb/driver_chipcommon_pmu.c bus->chip_id); bus 678 drivers/ssb/driver_chipcommon_pmu.c switch (cc->dev->bus->chip_id) { bus 710 drivers/ssb/driver_chipcommon_pmu.c cc->dev->bus->chip_id); bus 89 drivers/ssb/driver_chipcommon_sflash.c struct ssb_sflash *sflash = &cc->dev->bus->mipscore.sflash; bus 110 drivers/ssb/driver_gige.c static int ssb_gige_pci_read_config(struct pci_bus *bus, unsigned int devfn, bus 113 drivers/ssb/driver_gige.c struct ssb_gige *dev = container_of(bus->ops, struct ssb_gige, pci_ops); bus 140 drivers/ssb/driver_gige.c static int ssb_gige_pci_write_config(struct pci_bus *bus, unsigned int devfn, bus 143 drivers/ssb/driver_gige.c struct ssb_gige *dev = container_of(bus->ops, struct ssb_gige, pci_ops); bus 256 drivers/ssb/driver_gige.c if (pdev->bus->ops != &dev->pci_ops) { bus 280 drivers/ssb/driver_gige.c if (pdev->bus->ops != &dev->pci_ops) { bus 28 drivers/ssb/driver_gpio.c struct ssb_bus *bus = gpiochip_get_data(chip); bus 30 drivers/ssb/driver_gpio.c if (bus->bustype == SSB_BUSTYPE_SSB) bus 31 drivers/ssb/driver_gpio.c return irq_find_mapping(bus->irq_domain, gpio); bus 43 drivers/ssb/driver_gpio.c struct ssb_bus *bus = gpiochip_get_data(chip); bus 45 drivers/ssb/driver_gpio.c return !!ssb_chipco_gpio_in(&bus->chipco, 1 << gpio); bus 51 drivers/ssb/driver_gpio.c struct ssb_bus *bus = gpiochip_get_data(chip); bus 53 drivers/ssb/driver_gpio.c ssb_chipco_gpio_out(&bus->chipco, 1 << gpio, value ? 1 << gpio : 0); bus 59 drivers/ssb/driver_gpio.c struct ssb_bus *bus = gpiochip_get_data(chip); bus 61 drivers/ssb/driver_gpio.c ssb_chipco_gpio_outen(&bus->chipco, 1 << gpio, 0); bus 68 drivers/ssb/driver_gpio.c struct ssb_bus *bus = gpiochip_get_data(chip); bus 70 drivers/ssb/driver_gpio.c ssb_chipco_gpio_outen(&bus->chipco, 1 << gpio, 1 << gpio); bus 71 drivers/ssb/driver_gpio.c ssb_chipco_gpio_out(&bus->chipco, 1 << gpio, value ? 1 << gpio : 0); bus 77 drivers/ssb/driver_gpio.c struct ssb_bus *bus = gpiochip_get_data(chip); bus 79 drivers/ssb/driver_gpio.c ssb_chipco_gpio_control(&bus->chipco, 1 << gpio, 0); bus 81 drivers/ssb/driver_gpio.c ssb_chipco_gpio_pulldown(&bus->chipco, 1 << gpio, 0); bus 83 drivers/ssb/driver_gpio.c ssb_chipco_gpio_pullup(&bus->chipco, 1 << gpio, 1 << gpio); bus 90 drivers/ssb/driver_gpio.c struct ssb_bus *bus = gpiochip_get_data(chip); bus 93 drivers/ssb/driver_gpio.c ssb_chipco_gpio_pullup(&bus->chipco, 1 << gpio, 0); bus 99 drivers/ssb/driver_gpio.c struct ssb_bus *bus = irq_data_get_irq_chip_data(d); bus 102 drivers/ssb/driver_gpio.c ssb_chipco_gpio_intmask(&bus->chipco, BIT(gpio), 0); bus 107 drivers/ssb/driver_gpio.c struct ssb_bus *bus = irq_data_get_irq_chip_data(d); bus 109 drivers/ssb/driver_gpio.c u32 val = ssb_chipco_gpio_in(&bus->chipco, BIT(gpio)); bus 111 drivers/ssb/driver_gpio.c ssb_chipco_gpio_polarity(&bus->chipco, BIT(gpio), val); bus 112 drivers/ssb/driver_gpio.c ssb_chipco_gpio_intmask(&bus->chipco, BIT(gpio), BIT(gpio)); bus 123 drivers/ssb/driver_gpio.c struct ssb_bus *bus = dev_id; bus 124 drivers/ssb/driver_gpio.c struct ssb_chipcommon *chipco = &bus->chipco; bus 134 drivers/ssb/driver_gpio.c for_each_set_bit(gpio, &irqs, bus->gpio.ngpio) bus 135 drivers/ssb/driver_gpio.c generic_handle_irq(ssb_gpio_to_irq(&bus->gpio, gpio)); bus 141 drivers/ssb/driver_gpio.c static int ssb_gpio_irq_chipco_domain_init(struct ssb_bus *bus) bus 143 drivers/ssb/driver_gpio.c struct ssb_chipcommon *chipco = &bus->chipco; bus 144 drivers/ssb/driver_gpio.c struct gpio_chip *chip = &bus->gpio; bus 147 drivers/ssb/driver_gpio.c if (bus->bustype != SSB_BUSTYPE_SSB) bus 150 drivers/ssb/driver_gpio.c bus->irq_domain = irq_domain_add_linear(NULL, chip->ngpio, bus 152 drivers/ssb/driver_gpio.c if (!bus->irq_domain) { bus 157 drivers/ssb/driver_gpio.c int irq = irq_create_mapping(bus->irq_domain, gpio); bus 159 drivers/ssb/driver_gpio.c irq_set_chip_data(irq, bus); bus 164 drivers/ssb/driver_gpio.c hwirq = ssb_mips_irq(bus->chipco.dev) + 2; bus 166 drivers/ssb/driver_gpio.c "gpio", bus); bus 170 drivers/ssb/driver_gpio.c ssb_chipco_gpio_intmask(&bus->chipco, ~0, 0); bus 177 drivers/ssb/driver_gpio.c int irq = irq_find_mapping(bus->irq_domain, gpio); bus 181 drivers/ssb/driver_gpio.c irq_domain_remove(bus->irq_domain); bus 186 drivers/ssb/driver_gpio.c static void ssb_gpio_irq_chipco_domain_exit(struct ssb_bus *bus) bus 188 drivers/ssb/driver_gpio.c struct ssb_chipcommon *chipco = &bus->chipco; bus 189 drivers/ssb/driver_gpio.c struct gpio_chip *chip = &bus->gpio; bus 192 drivers/ssb/driver_gpio.c if (bus->bustype != SSB_BUSTYPE_SSB) bus 196 drivers/ssb/driver_gpio.c free_irq(ssb_mips_irq(bus->chipco.dev) + 2, chipco); bus 198 drivers/ssb/driver_gpio.c int irq = irq_find_mapping(bus->irq_domain, gpio); bus 202 drivers/ssb/driver_gpio.c irq_domain_remove(bus->irq_domain); bus 205 drivers/ssb/driver_gpio.c static int ssb_gpio_irq_chipco_domain_init(struct ssb_bus *bus) bus 210 drivers/ssb/driver_gpio.c static void ssb_gpio_irq_chipco_domain_exit(struct ssb_bus *bus) bus 215 drivers/ssb/driver_gpio.c static int ssb_gpio_chipco_init(struct ssb_bus *bus) bus 217 drivers/ssb/driver_gpio.c struct gpio_chip *chip = &bus->gpio; bus 235 drivers/ssb/driver_gpio.c if (bus->bustype == SSB_BUSTYPE_SSB) bus 240 drivers/ssb/driver_gpio.c err = ssb_gpio_irq_chipco_domain_init(bus); bus 244 drivers/ssb/driver_gpio.c err = gpiochip_add_data(chip, bus); bus 246 drivers/ssb/driver_gpio.c ssb_gpio_irq_chipco_domain_exit(bus); bus 261 drivers/ssb/driver_gpio.c struct ssb_bus *bus = gpiochip_get_data(chip); bus 263 drivers/ssb/driver_gpio.c return !!ssb_extif_gpio_in(&bus->extif, 1 << gpio); bus 269 drivers/ssb/driver_gpio.c struct ssb_bus *bus = gpiochip_get_data(chip); bus 271 drivers/ssb/driver_gpio.c ssb_extif_gpio_out(&bus->extif, 1 << gpio, value ? 1 << gpio : 0); bus 277 drivers/ssb/driver_gpio.c struct ssb_bus *bus = gpiochip_get_data(chip); bus 279 drivers/ssb/driver_gpio.c ssb_extif_gpio_outen(&bus->extif, 1 << gpio, 0); bus 286 drivers/ssb/driver_gpio.c struct ssb_bus *bus = gpiochip_get_data(chip); bus 288 drivers/ssb/driver_gpio.c ssb_extif_gpio_outen(&bus->extif, 1 << gpio, 1 << gpio); bus 289 drivers/ssb/driver_gpio.c ssb_extif_gpio_out(&bus->extif, 1 << gpio, value ? 1 << gpio : 0); bus 296 drivers/ssb/driver_gpio.c struct ssb_bus *bus = irq_data_get_irq_chip_data(d); bus 299 drivers/ssb/driver_gpio.c ssb_extif_gpio_intmask(&bus->extif, BIT(gpio), 0); bus 304 drivers/ssb/driver_gpio.c struct ssb_bus *bus = irq_data_get_irq_chip_data(d); bus 306 drivers/ssb/driver_gpio.c u32 val = ssb_extif_gpio_in(&bus->extif, BIT(gpio)); bus 308 drivers/ssb/driver_gpio.c ssb_extif_gpio_polarity(&bus->extif, BIT(gpio), val); bus 309 drivers/ssb/driver_gpio.c ssb_extif_gpio_intmask(&bus->extif, BIT(gpio), BIT(gpio)); bus 320 drivers/ssb/driver_gpio.c struct ssb_bus *bus = dev_id; bus 321 drivers/ssb/driver_gpio.c struct ssb_extif *extif = &bus->extif; bus 331 drivers/ssb/driver_gpio.c for_each_set_bit(gpio, &irqs, bus->gpio.ngpio) bus 332 drivers/ssb/driver_gpio.c generic_handle_irq(ssb_gpio_to_irq(&bus->gpio, gpio)); bus 338 drivers/ssb/driver_gpio.c static int ssb_gpio_irq_extif_domain_init(struct ssb_bus *bus) bus 340 drivers/ssb/driver_gpio.c struct ssb_extif *extif = &bus->extif; bus 341 drivers/ssb/driver_gpio.c struct gpio_chip *chip = &bus->gpio; bus 344 drivers/ssb/driver_gpio.c if (bus->bustype != SSB_BUSTYPE_SSB) bus 347 drivers/ssb/driver_gpio.c bus->irq_domain = irq_domain_add_linear(NULL, chip->ngpio, bus 349 drivers/ssb/driver_gpio.c if (!bus->irq_domain) { bus 354 drivers/ssb/driver_gpio.c int irq = irq_create_mapping(bus->irq_domain, gpio); bus 356 drivers/ssb/driver_gpio.c irq_set_chip_data(irq, bus); bus 361 drivers/ssb/driver_gpio.c hwirq = ssb_mips_irq(bus->extif.dev) + 2; bus 363 drivers/ssb/driver_gpio.c "gpio", bus); bus 367 drivers/ssb/driver_gpio.c ssb_extif_gpio_intmask(&bus->extif, ~0, 0); bus 373 drivers/ssb/driver_gpio.c int irq = irq_find_mapping(bus->irq_domain, gpio); bus 377 drivers/ssb/driver_gpio.c irq_domain_remove(bus->irq_domain); bus 382 drivers/ssb/driver_gpio.c static void ssb_gpio_irq_extif_domain_exit(struct ssb_bus *bus) bus 384 drivers/ssb/driver_gpio.c struct ssb_extif *extif = &bus->extif; bus 385 drivers/ssb/driver_gpio.c struct gpio_chip *chip = &bus->gpio; bus 388 drivers/ssb/driver_gpio.c if (bus->bustype != SSB_BUSTYPE_SSB) bus 391 drivers/ssb/driver_gpio.c free_irq(ssb_mips_irq(bus->extif.dev) + 2, extif); bus 393 drivers/ssb/driver_gpio.c int irq = irq_find_mapping(bus->irq_domain, gpio); bus 397 drivers/ssb/driver_gpio.c irq_domain_remove(bus->irq_domain); bus 400 drivers/ssb/driver_gpio.c static int ssb_gpio_irq_extif_domain_init(struct ssb_bus *bus) bus 405 drivers/ssb/driver_gpio.c static void ssb_gpio_irq_extif_domain_exit(struct ssb_bus *bus) bus 410 drivers/ssb/driver_gpio.c static int ssb_gpio_extif_init(struct ssb_bus *bus) bus 412 drivers/ssb/driver_gpio.c struct gpio_chip *chip = &bus->gpio; bus 428 drivers/ssb/driver_gpio.c if (bus->bustype == SSB_BUSTYPE_SSB) bus 433 drivers/ssb/driver_gpio.c err = ssb_gpio_irq_extif_domain_init(bus); bus 437 drivers/ssb/driver_gpio.c err = gpiochip_add_data(chip, bus); bus 439 drivers/ssb/driver_gpio.c ssb_gpio_irq_extif_domain_exit(bus); bus 447 drivers/ssb/driver_gpio.c static int ssb_gpio_extif_init(struct ssb_bus *bus) bus 457 drivers/ssb/driver_gpio.c int ssb_gpio_init(struct ssb_bus *bus) bus 459 drivers/ssb/driver_gpio.c if (ssb_chipco_available(&bus->chipco)) bus 460 drivers/ssb/driver_gpio.c return ssb_gpio_chipco_init(bus); bus 461 drivers/ssb/driver_gpio.c else if (ssb_extif_available(&bus->extif)) bus 462 drivers/ssb/driver_gpio.c return ssb_gpio_extif_init(bus); bus 466 drivers/ssb/driver_gpio.c int ssb_gpio_unregister(struct ssb_bus *bus) bus 468 drivers/ssb/driver_gpio.c if (ssb_chipco_available(&bus->chipco) || bus 469 drivers/ssb/driver_gpio.c ssb_extif_available(&bus->extif)) { bus 470 drivers/ssb/driver_gpio.c gpiochip_remove(&bus->gpio); bus 85 drivers/ssb/driver_mipscore.c struct ssb_bus *bus = rdev->bus; bus 87 drivers/ssb/driver_mipscore.c for (i = 0; i < bus->nr_devices; i++) { bus 89 drivers/ssb/driver_mipscore.c dev = &(bus->devices[i]); bus 103 drivers/ssb/driver_mipscore.c struct ssb_bus *bus = dev->bus; bus 104 drivers/ssb/driver_mipscore.c struct ssb_device *mdev = bus->mipscore.dev; bus 113 drivers/ssb/driver_mipscore.c ipsflag = ssb_read32(bus->mipscore.dev, SSB_IPSFLAG); bus 127 drivers/ssb/driver_mipscore.c static void clear_irq(struct ssb_bus *bus, unsigned int irq) bus 129 drivers/ssb/driver_mipscore.c struct ssb_device *dev = bus->mipscore.dev; bus 144 drivers/ssb/driver_mipscore.c struct ssb_bus *bus = dev->bus; bus 145 drivers/ssb/driver_mipscore.c struct ssb_device *mdev = bus->mipscore.dev; bus 156 drivers/ssb/driver_mipscore.c clear_irq(bus, oldirq); bus 192 drivers/ssb/driver_mipscore.c static void dump_irq(struct ssb_bus *bus) bus 195 drivers/ssb/driver_mipscore.c for (i = 0; i < bus->nr_devices; i++) { bus 197 drivers/ssb/driver_mipscore.c dev = &(bus->devices[i]); bus 204 drivers/ssb/driver_mipscore.c struct ssb_bus *bus = mcore->dev->bus; bus 206 drivers/ssb/driver_mipscore.c if (ssb_extif_available(&bus->extif)) bus 207 drivers/ssb/driver_mipscore.c mcore->nr_serial_ports = ssb_extif_serial_init(&bus->extif, mcore->serial_ports); bus 208 drivers/ssb/driver_mipscore.c else if (ssb_chipco_available(&bus->chipco)) bus 209 drivers/ssb/driver_mipscore.c mcore->nr_serial_ports = ssb_chipco_serial_init(&bus->chipco, mcore->serial_ports); bus 216 drivers/ssb/driver_mipscore.c struct ssb_bus *bus = mcore->dev->bus; bus 221 drivers/ssb/driver_mipscore.c if (!ssb_chipco_available(&bus->chipco)) { bus 230 drivers/ssb/driver_mipscore.c switch (bus->chipco.capabilities & SSB_CHIPCO_CAP_FLASHT) { bus 234 drivers/ssb/driver_mipscore.c ssb_sflash_init(&bus->chipco); bus 241 drivers/ssb/driver_mipscore.c if ((ssb_read32(bus->chipco.dev, SSB_CHIPCO_FLASH_CFG) bus 267 drivers/ssb/driver_mipscore.c struct ssb_bus *bus = mcore->dev->bus; bus 270 drivers/ssb/driver_mipscore.c if (bus->chipco.capabilities & SSB_CHIPCO_CAP_PMU) bus 271 drivers/ssb/driver_mipscore.c return ssb_pmu_get_cpu_clock(&bus->chipco); bus 273 drivers/ssb/driver_mipscore.c if (ssb_extif_available(&bus->extif)) { bus 274 drivers/ssb/driver_mipscore.c ssb_extif_get_clockcontrol(&bus->extif, &pll_type, &n, &m); bus 275 drivers/ssb/driver_mipscore.c } else if (ssb_chipco_available(&bus->chipco)) { bus 276 drivers/ssb/driver_mipscore.c ssb_chipco_get_clockcpu(&bus->chipco, &pll_type, &n, &m); bus 280 drivers/ssb/driver_mipscore.c if ((pll_type == SSB_PLLTYPE_5) || (bus->chip_id == 0x5365)) { bus 295 drivers/ssb/driver_mipscore.c struct ssb_bus *bus; bus 305 drivers/ssb/driver_mipscore.c bus = mcore->dev->bus; bus 306 drivers/ssb/driver_mipscore.c hz = ssb_clockspeed(bus); bus 311 drivers/ssb/driver_mipscore.c if (ssb_extif_available(&bus->extif)) bus 312 drivers/ssb/driver_mipscore.c ssb_extif_timing_init(&bus->extif, ns); bus 313 drivers/ssb/driver_mipscore.c else if (ssb_chipco_available(&bus->chipco)) bus 314 drivers/ssb/driver_mipscore.c ssb_chipco_timing_init(&bus->chipco, ns); bus 317 drivers/ssb/driver_mipscore.c for (irq = 2, i = 0; i < bus->nr_devices; i++) { bus 319 drivers/ssb/driver_mipscore.c dev = &(bus->devices[i]); bus 331 drivers/ssb/driver_mipscore.c if ((bus->chip_id == 0x4710) && (irq <= 4)) { bus 352 drivers/ssb/driver_mipscore.c dump_irq(bus); bus 71 drivers/ssb/driver_pcicore.c unsigned int bus, unsigned int dev, bus 81 drivers/ssb/driver_pcicore.c if (bus == 0) { bus 100 drivers/ssb/driver_pcicore.c addr |= (bus << 16); bus 110 drivers/ssb/driver_pcicore.c unsigned int bus, unsigned int dev, bus 121 drivers/ssb/driver_pcicore.c addr = get_cfgspace_addr(pc, bus, dev, func, off); bus 156 drivers/ssb/driver_pcicore.c unsigned int bus, unsigned int dev, bus 167 drivers/ssb/driver_pcicore.c addr = get_cfgspace_addr(pc, bus, dev, func, off); bus 204 drivers/ssb/driver_pcicore.c static int ssb_pcicore_read_config(struct pci_bus *bus, unsigned int devfn, bus 211 drivers/ssb/driver_pcicore.c err = ssb_extpci_read_config(extpci_core, bus->number, PCI_SLOT(devfn), bus 218 drivers/ssb/driver_pcicore.c static int ssb_pcicore_write_config(struct pci_bus *bus, unsigned int devfn, bus 225 drivers/ssb/driver_pcicore.c err = ssb_extpci_write_config(extpci_core, bus->number, PCI_SLOT(devfn), bus 261 drivers/ssb/driver_pcicore.c if (d->bus->ops != &ssb_pcicore_pciops) { bus 280 drivers/ssb/driver_pcicore.c if (dev->bus->ops != &ssb_pcicore_pciops) { bus 284 drivers/ssb/driver_pcicore.c if (dev->bus->number != 0 || PCI_SLOT(dev->devfn) != 0) bus 311 drivers/ssb/driver_pcicore.c if (dev->bus->ops != &ssb_pcicore_pciops) { bus 340 drivers/ssb/driver_pcicore.c if (pc->dev->bus->has_cardbus_slot) { bus 344 drivers/ssb/driver_pcicore.c ssb_gpio_out(pc->dev->bus, 1, 1); bus 345 drivers/ssb/driver_pcicore.c ssb_gpio_outen(pc->dev->bus, 1, 1); bus 395 drivers/ssb/driver_pcicore.c struct ssb_bus *bus = pc->dev->bus; bus 399 drivers/ssb/driver_pcicore.c chipid_top = (bus->chip_id & 0xFF00); bus 404 drivers/ssb/driver_pcicore.c if (bus->sprom.boardflags_lo & SSB_PCICORE_BFL_NOPCI) bus 409 drivers/ssb/driver_pcicore.c if (bus->chip_id == 0x4712) { bus 410 drivers/ssb/driver_pcicore.c if (bus->chip_package == SSB_CHIPPACK_BCM4712S) bus 412 drivers/ssb/driver_pcicore.c if (bus->chip_package == SSB_CHIPPACK_BCM4712M) bus 415 drivers/ssb/driver_pcicore.c if (bus->chip_id == 0x5350) bus 418 drivers/ssb/driver_pcicore.c return !mips_busprobe32(tmp, (bus->mmio + (pc->dev->core_index * SSB_CORE_SIZE))); bus 457 drivers/ssb/driver_pcicore.c struct ssb_bus *bus = pdev->bus; bus 472 drivers/ssb/driver_pcicore.c ssb_commit_settings(bus); bus 531 drivers/ssb/driver_pcicore.c struct ssb_bus *bus = pdev->bus; bus 533 drivers/ssb/driver_pcicore.c if (bus->bustype == SSB_BUSTYPE_PCI) bus 681 drivers/ssb/driver_pcicore.c struct ssb_bus *bus; bus 685 drivers/ssb/driver_pcicore.c if (dev->bus->bustype != SSB_BUSTYPE_PCI) { bus 694 drivers/ssb/driver_pcicore.c bus = pdev->bus; bus 705 drivers/ssb/driver_pcicore.c WARN_ON(bus->bustype != SSB_BUSTYPE_PCI); bus 706 drivers/ssb/driver_pcicore.c err = pci_read_config_dword(bus->host_pci, SSB_PCI_IRQMASK, &tmp); bus 710 drivers/ssb/driver_pcicore.c err = pci_write_config_dword(bus->host_pci, SSB_PCI_IRQMASK, tmp); bus 23 drivers/ssb/embedded.c int ssb_watchdog_timer_set(struct ssb_bus *bus, u32 ticks) bus 25 drivers/ssb/embedded.c if (ssb_chipco_available(&bus->chipco)) { bus 26 drivers/ssb/embedded.c ssb_chipco_watchdog_timer_set(&bus->chipco, ticks); bus 29 drivers/ssb/embedded.c if (ssb_extif_available(&bus->extif)) { bus 30 drivers/ssb/embedded.c ssb_extif_watchdog_timer_set(&bus->extif, ticks); bus 37 drivers/ssb/embedded.c int ssb_watchdog_register(struct ssb_bus *bus) bus 42 drivers/ssb/embedded.c if (ssb_chipco_available(&bus->chipco)) { bus 43 drivers/ssb/embedded.c wdt.driver_data = &bus->chipco; bus 46 drivers/ssb/embedded.c wdt.max_timer_ms = bus->chipco.max_timer_ms; bus 47 drivers/ssb/embedded.c } else if (ssb_extif_available(&bus->extif)) { bus 48 drivers/ssb/embedded.c wdt.driver_data = &bus->extif; bus 57 drivers/ssb/embedded.c bus->busnumber, &wdt, bus 65 drivers/ssb/embedded.c bus->watchdog = pdev; bus 69 drivers/ssb/embedded.c u32 ssb_gpio_in(struct ssb_bus *bus, u32 mask) bus 74 drivers/ssb/embedded.c spin_lock_irqsave(&bus->gpio_lock, flags); bus 75 drivers/ssb/embedded.c if (ssb_chipco_available(&bus->chipco)) bus 76 drivers/ssb/embedded.c res = ssb_chipco_gpio_in(&bus->chipco, mask); bus 77 drivers/ssb/embedded.c else if (ssb_extif_available(&bus->extif)) bus 78 drivers/ssb/embedded.c res = ssb_extif_gpio_in(&bus->extif, mask); bus 81 drivers/ssb/embedded.c spin_unlock_irqrestore(&bus->gpio_lock, flags); bus 87 drivers/ssb/embedded.c u32 ssb_gpio_out(struct ssb_bus *bus, u32 mask, u32 value) bus 92 drivers/ssb/embedded.c spin_lock_irqsave(&bus->gpio_lock, flags); bus 93 drivers/ssb/embedded.c if (ssb_chipco_available(&bus->chipco)) bus 94 drivers/ssb/embedded.c res = ssb_chipco_gpio_out(&bus->chipco, mask, value); bus 95 drivers/ssb/embedded.c else if (ssb_extif_available(&bus->extif)) bus 96 drivers/ssb/embedded.c res = ssb_extif_gpio_out(&bus->extif, mask, value); bus 99 drivers/ssb/embedded.c spin_unlock_irqrestore(&bus->gpio_lock, flags); bus 105 drivers/ssb/embedded.c u32 ssb_gpio_outen(struct ssb_bus *bus, u32 mask, u32 value) bus 110 drivers/ssb/embedded.c spin_lock_irqsave(&bus->gpio_lock, flags); bus 111 drivers/ssb/embedded.c if (ssb_chipco_available(&bus->chipco)) bus 112 drivers/ssb/embedded.c res = ssb_chipco_gpio_outen(&bus->chipco, mask, value); bus 113 drivers/ssb/embedded.c else if (ssb_extif_available(&bus->extif)) bus 114 drivers/ssb/embedded.c res = ssb_extif_gpio_outen(&bus->extif, mask, value); bus 117 drivers/ssb/embedded.c spin_unlock_irqrestore(&bus->gpio_lock, flags); bus 123 drivers/ssb/embedded.c u32 ssb_gpio_control(struct ssb_bus *bus, u32 mask, u32 value) bus 128 drivers/ssb/embedded.c spin_lock_irqsave(&bus->gpio_lock, flags); bus 129 drivers/ssb/embedded.c if (ssb_chipco_available(&bus->chipco)) bus 130 drivers/ssb/embedded.c res = ssb_chipco_gpio_control(&bus->chipco, mask, value); bus 131 drivers/ssb/embedded.c spin_unlock_irqrestore(&bus->gpio_lock, flags); bus 137 drivers/ssb/embedded.c u32 ssb_gpio_intmask(struct ssb_bus *bus, u32 mask, u32 value) bus 142 drivers/ssb/embedded.c spin_lock_irqsave(&bus->gpio_lock, flags); bus 143 drivers/ssb/embedded.c if (ssb_chipco_available(&bus->chipco)) bus 144 drivers/ssb/embedded.c res = ssb_chipco_gpio_intmask(&bus->chipco, mask, value); bus 145 drivers/ssb/embedded.c else if (ssb_extif_available(&bus->extif)) bus 146 drivers/ssb/embedded.c res = ssb_extif_gpio_intmask(&bus->extif, mask, value); bus 149 drivers/ssb/embedded.c spin_unlock_irqrestore(&bus->gpio_lock, flags); bus 155 drivers/ssb/embedded.c u32 ssb_gpio_polarity(struct ssb_bus *bus, u32 mask, u32 value) bus 160 drivers/ssb/embedded.c spin_lock_irqsave(&bus->gpio_lock, flags); bus 161 drivers/ssb/embedded.c if (ssb_chipco_available(&bus->chipco)) bus 162 drivers/ssb/embedded.c res = ssb_chipco_gpio_polarity(&bus->chipco, mask, value); bus 163 drivers/ssb/embedded.c else if (ssb_extif_available(&bus->extif)) bus 164 drivers/ssb/embedded.c res = ssb_extif_gpio_polarity(&bus->extif, mask, value); bus 167 drivers/ssb/embedded.c spin_unlock_irqrestore(&bus->gpio_lock, flags); bus 174 drivers/ssb/embedded.c static int gige_pci_init_callback(struct ssb_bus *bus, unsigned long data) bus 181 drivers/ssb/embedded.c for (i = 0; i < bus->nr_devices; i++) { bus 182 drivers/ssb/embedded.c dev = &(bus->devices[i]); bus 216 drivers/ssb/embedded.c static int gige_map_irq_callback(struct ssb_bus *bus, unsigned long data) bus 223 drivers/ssb/embedded.c for (i = 0; i < bus->nr_devices; i++) { bus 224 drivers/ssb/embedded.c dev = &(bus->devices[i]); bus 18 drivers/ssb/host_soc.c struct ssb_bus *bus = dev->bus; bus 21 drivers/ssb/host_soc.c return readb(bus->mmio + offset); bus 26 drivers/ssb/host_soc.c struct ssb_bus *bus = dev->bus; bus 29 drivers/ssb/host_soc.c return readw(bus->mmio + offset); bus 34 drivers/ssb/host_soc.c struct ssb_bus *bus = dev->bus; bus 37 drivers/ssb/host_soc.c return readl(bus->mmio + offset); bus 44 drivers/ssb/host_soc.c struct ssb_bus *bus = dev->bus; bus 48 drivers/ssb/host_soc.c addr = bus->mmio + offset; bus 91 drivers/ssb/host_soc.c struct ssb_bus *bus = dev->bus; bus 94 drivers/ssb/host_soc.c writeb(value, bus->mmio + offset); bus 99 drivers/ssb/host_soc.c struct ssb_bus *bus = dev->bus; bus 102 drivers/ssb/host_soc.c writew(value, bus->mmio + offset); bus 107 drivers/ssb/host_soc.c struct ssb_bus *bus = dev->bus; bus 110 drivers/ssb/host_soc.c writel(value, bus->mmio + offset); bus 117 drivers/ssb/host_soc.c struct ssb_bus *bus = dev->bus; bus 121 drivers/ssb/host_soc.c addr = bus->mmio + offset; bus 176 drivers/ssb/host_soc.c int ssb_host_soc_get_invariants(struct ssb_bus *bus, bus 204 drivers/ssb/host_soc.c ssb_fill_sprom_with_fallback(bus, &iv->sprom); bus 58 drivers/ssb/main.c struct ssb_bus *bus; bus 61 drivers/ssb/main.c list_for_each_entry(bus, &buses, list) { bus 62 drivers/ssb/main.c if (bus->bustype == SSB_BUSTYPE_PCI && bus 63 drivers/ssb/main.c bus->host_pci == pdev) bus 66 drivers/ssb/main.c bus = NULL; bus 70 drivers/ssb/main.c return bus; bus 77 drivers/ssb/main.c struct ssb_bus *bus; bus 80 drivers/ssb/main.c list_for_each_entry(bus, &buses, list) { bus 81 drivers/ssb/main.c if (bus->bustype == SSB_BUSTYPE_PCMCIA && bus 82 drivers/ssb/main.c bus->host_pcmcia == pdev) bus 85 drivers/ssb/main.c bus = NULL; bus 89 drivers/ssb/main.c return bus; bus 94 drivers/ssb/main.c int (*func)(struct ssb_bus *bus, unsigned long data)) bus 96 drivers/ssb/main.c struct ssb_bus *bus; bus 100 drivers/ssb/main.c list_for_each_entry(bus, &buses, list) { bus 101 drivers/ssb/main.c res = func(bus, data); bus 159 drivers/ssb/main.c int ssb_bus_resume(struct ssb_bus *bus) bus 165 drivers/ssb/main.c bus->mapped_device = NULL; bus 167 drivers/ssb/main.c bus->pcicore.setup_done = 0; bus 170 drivers/ssb/main.c err = ssb_bus_powerup(bus, 0); bus 173 drivers/ssb/main.c err = ssb_pcmcia_hardware_setup(bus); bus 175 drivers/ssb/main.c ssb_bus_may_powerdown(bus); bus 178 drivers/ssb/main.c ssb_chipco_resume(&bus->chipco); bus 179 drivers/ssb/main.c ssb_bus_may_powerdown(bus); bus 185 drivers/ssb/main.c int ssb_bus_suspend(struct ssb_bus *bus) bus 187 drivers/ssb/main.c ssb_chipco_suspend(&bus->chipco); bus 188 drivers/ssb/main.c ssb_pci_xtal(bus, SSB_GPIO_XTAL | SSB_GPIO_PLL, 0); bus 204 drivers/ssb/main.c int ssb_devices_freeze(struct ssb_bus *bus, struct ssb_freeze_context *ctx) bus 211 drivers/ssb/main.c ctx->bus = bus; bus 212 drivers/ssb/main.c WARN_ON(bus->nr_devices > ARRAY_SIZE(ctx->device_frozen)); bus 214 drivers/ssb/main.c for (i = 0; i < bus->nr_devices; i++) { bus 215 drivers/ssb/main.c sdev = ssb_device_get(&bus->devices[i]); bus 240 drivers/ssb/main.c struct ssb_bus *bus = ctx->bus; bus 246 drivers/ssb/main.c for (i = 0; i < bus->nr_devices; i++) { bus 249 drivers/ssb/main.c sdev = &bus->devices[i]; bus 412 drivers/ssb/main.c static void ssb_devices_unregister(struct ssb_bus *bus) bus 417 drivers/ssb/main.c for (i = bus->nr_devices - 1; i >= 0; i--) { bus 418 drivers/ssb/main.c sdev = &(bus->devices[i]); bus 424 drivers/ssb/main.c if (bus->bustype == SSB_BUSTYPE_SSB) bus 425 drivers/ssb/main.c platform_device_unregister(bus->watchdog); bus 429 drivers/ssb/main.c void ssb_bus_unregister(struct ssb_bus *bus) bus 433 drivers/ssb/main.c err = ssb_gpio_unregister(bus); bus 440 drivers/ssb/main.c ssb_devices_unregister(bus); bus 441 drivers/ssb/main.c list_del(&bus->list); bus 444 drivers/ssb/main.c ssb_pcmcia_exit(bus); bus 445 drivers/ssb/main.c ssb_pci_exit(bus); bus 446 drivers/ssb/main.c ssb_iounmap(bus); bus 458 drivers/ssb/main.c static int ssb_devices_register(struct ssb_bus *bus) bus 466 drivers/ssb/main.c for (i = 0; i < bus->nr_devices; i++) { bus 467 drivers/ssb/main.c sdev = &(bus->devices[i]); bus 491 drivers/ssb/main.c dev->bus = &ssb_bustype; bus 492 drivers/ssb/main.c dev_set_name(dev, "ssb%u:%d", bus->busnumber, dev_idx); bus 494 drivers/ssb/main.c switch (bus->bustype) { bus 497 drivers/ssb/main.c sdev->irq = bus->host_pci->irq; bus 498 drivers/ssb/main.c dev->parent = &bus->host_pci->dev; bus 504 drivers/ssb/main.c sdev->irq = bus->host_pcmcia->irq; bus 505 drivers/ssb/main.c dev->parent = &bus->host_pcmcia->dev; bus 510 drivers/ssb/main.c dev->parent = &bus->host_sdio->dev; bus 533 drivers/ssb/main.c if (bus->mipscore.pflash.present) { bus 541 drivers/ssb/main.c if (bus->mipscore.sflash.present) { bus 551 drivers/ssb/main.c ssb_devices_unregister(bus); bus 558 drivers/ssb/main.c struct ssb_bus *bus, *n; bus 562 drivers/ssb/main.c list_for_each_entry_safe(bus, n, &attach_queue, list) { bus 564 drivers/ssb/main.c list_del(&bus->list); bus 571 drivers/ssb/main.c err = ssb_bus_powerup(bus, 0); bus 574 drivers/ssb/main.c ssb_pcicore_init(&bus->pcicore); bus 575 drivers/ssb/main.c if (bus->bustype == SSB_BUSTYPE_SSB) bus 576 drivers/ssb/main.c ssb_watchdog_register(bus); bus 578 drivers/ssb/main.c err = ssb_gpio_init(bus); bus 584 drivers/ssb/main.c ssb_bus_may_powerdown(bus); bus 586 drivers/ssb/main.c err = ssb_devices_register(bus); bus 590 drivers/ssb/main.c list_del(&bus->list); bus 593 drivers/ssb/main.c list_move_tail(&bus->list, &buses); bus 599 drivers/ssb/main.c static int ssb_fetch_invariants(struct ssb_bus *bus, bus 606 drivers/ssb/main.c err = get_invariants(bus, &iv); bus 609 drivers/ssb/main.c memcpy(&bus->boardinfo, &iv.boardinfo, sizeof(iv.boardinfo)); bus 610 drivers/ssb/main.c memcpy(&bus->sprom, &iv.sprom, sizeof(iv.sprom)); bus 611 drivers/ssb/main.c bus->has_cardbus_slot = iv.has_cardbus_slot; bus 617 drivers/ssb/main.c ssb_bus_register(struct ssb_bus *bus, bus 623 drivers/ssb/main.c spin_lock_init(&bus->bar_lock); bus 624 drivers/ssb/main.c INIT_LIST_HEAD(&bus->list); bus 626 drivers/ssb/main.c spin_lock_init(&bus->gpio_lock); bus 630 drivers/ssb/main.c err = ssb_pci_xtal(bus, SSB_GPIO_XTAL | SSB_GPIO_PLL, 1); bus 635 drivers/ssb/main.c err = ssb_sdio_init(bus); bus 640 drivers/ssb/main.c bus->busnumber = next_busnumber; bus 642 drivers/ssb/main.c err = ssb_bus_scan(bus, baseaddr); bus 647 drivers/ssb/main.c err = ssb_pci_init(bus); bus 651 drivers/ssb/main.c err = ssb_pcmcia_init(bus); bus 656 drivers/ssb/main.c err = ssb_bus_powerup(bus, 0); bus 659 drivers/ssb/main.c ssb_chipcommon_init(&bus->chipco); bus 660 drivers/ssb/main.c ssb_extif_init(&bus->extif); bus 661 drivers/ssb/main.c ssb_mipscore_init(&bus->mipscore); bus 662 drivers/ssb/main.c err = ssb_fetch_invariants(bus, get_invariants); bus 664 drivers/ssb/main.c ssb_bus_may_powerdown(bus); bus 667 drivers/ssb/main.c ssb_bus_may_powerdown(bus); bus 671 drivers/ssb/main.c list_add_tail(&bus->list, &attach_queue); bus 685 drivers/ssb/main.c list_del(&bus->list); bus 687 drivers/ssb/main.c ssb_pcmcia_exit(bus); bus 689 drivers/ssb/main.c ssb_pci_exit(bus); bus 691 drivers/ssb/main.c ssb_iounmap(bus); bus 693 drivers/ssb/main.c ssb_sdio_exit(bus); bus 696 drivers/ssb/main.c ssb_pci_xtal(bus, SSB_GPIO_XTAL | SSB_GPIO_PLL, 0); bus 701 drivers/ssb/main.c int ssb_bus_pcibus_register(struct ssb_bus *bus, struct pci_dev *host_pci) bus 705 drivers/ssb/main.c bus->bustype = SSB_BUSTYPE_PCI; bus 706 drivers/ssb/main.c bus->host_pci = host_pci; bus 707 drivers/ssb/main.c bus->ops = &ssb_pci_ops; bus 709 drivers/ssb/main.c err = ssb_bus_register(bus, ssb_pci_get_invariants, 0); bus 725 drivers/ssb/main.c int ssb_bus_pcmciabus_register(struct ssb_bus *bus, bus 731 drivers/ssb/main.c bus->bustype = SSB_BUSTYPE_PCMCIA; bus 732 drivers/ssb/main.c bus->host_pcmcia = pcmcia_dev; bus 733 drivers/ssb/main.c bus->ops = &ssb_pcmcia_ops; bus 735 drivers/ssb/main.c err = ssb_bus_register(bus, ssb_pcmcia_get_invariants, baseaddr); bus 747 drivers/ssb/main.c int ssb_bus_sdiobus_register(struct ssb_bus *bus, struct sdio_func *func, bus 752 drivers/ssb/main.c bus->bustype = SSB_BUSTYPE_SDIO; bus 753 drivers/ssb/main.c bus->host_sdio = func; bus 754 drivers/ssb/main.c bus->ops = &ssb_sdio_ops; bus 755 drivers/ssb/main.c bus->quirks = quirks; bus 757 drivers/ssb/main.c err = ssb_bus_register(bus, ssb_sdio_get_invariants, ~0); bus 770 drivers/ssb/main.c int ssb_bus_host_soc_register(struct ssb_bus *bus, unsigned long baseaddr) bus 774 drivers/ssb/main.c bus->bustype = SSB_BUSTYPE_SSB; bus 775 drivers/ssb/main.c bus->ops = &ssb_host_soc_ops; bus 777 drivers/ssb/main.c err = ssb_bus_register(bus, ssb_host_soc_get_invariants, baseaddr); bus 790 drivers/ssb/main.c drv->drv.bus = &ssb_bustype; bus 805 drivers/ssb/main.c struct ssb_bus *bus = dev->bus; bus 809 drivers/ssb/main.c for (i = 0; i < bus->nr_devices; i++) { bus 810 drivers/ssb/main.c ent = &(bus->devices[i]); bus 937 drivers/ssb/main.c u32 ssb_clockspeed(struct ssb_bus *bus) bus 943 drivers/ssb/main.c if (bus->chipco.capabilities & SSB_CHIPCO_CAP_PMU) bus 944 drivers/ssb/main.c return ssb_pmu_get_controlclock(&bus->chipco); bus 946 drivers/ssb/main.c if (ssb_extif_available(&bus->extif)) bus 947 drivers/ssb/main.c ssb_extif_get_clockcontrol(&bus->extif, &plltype, bus 949 drivers/ssb/main.c else if (bus->chipco.dev) bus 950 drivers/ssb/main.c ssb_chipco_get_clockcontrol(&bus->chipco, &plltype, bus 955 drivers/ssb/main.c if (bus->chip_id == 0x5365) { bus 1117 drivers/ssb/main.c u16 chip_id = dev->bus->chip_id; bus 1129 drivers/ssb/main.c switch (dev->bus->bustype) { bus 1133 drivers/ssb/main.c if (pci_is_pcie(dev->bus->host_pci) && bus 1149 drivers/ssb/main.c int ssb_bus_may_powerdown(struct ssb_bus *bus) bus 1157 drivers/ssb/main.c if (bus->bustype == SSB_BUSTYPE_SSB) bus 1160 drivers/ssb/main.c cc = &bus->chipco; bus 1168 drivers/ssb/main.c err = ssb_pci_xtal(bus, SSB_GPIO_XTAL | SSB_GPIO_PLL, 0); bus 1172 drivers/ssb/main.c bus->powered_up = 0; bus 1180 drivers/ssb/main.c int ssb_bus_powerup(struct ssb_bus *bus, bool dynamic_pctl) bus 1185 drivers/ssb/main.c err = ssb_pci_xtal(bus, SSB_GPIO_XTAL | SSB_GPIO_PLL, 1); bus 1189 drivers/ssb/main.c bus->powered_up = 1; bus 1192 drivers/ssb/main.c ssb_chipco_set_clockmode(&bus->chipco, mode); bus 1216 drivers/ssb/main.c void ssb_commit_settings(struct ssb_bus *bus) bus 1221 drivers/ssb/main.c dev = bus->chipco.dev ? bus->chipco.dev : bus->pcicore.dev; bus 1223 drivers/ssb/main.c dev = bus->chipco.dev; bus 32 drivers/ssb/pci.c int ssb_pci_switch_coreidx(struct ssb_bus *bus, u8 coreidx) bus 39 drivers/ssb/pci.c err = pci_write_config_dword(bus->host_pci, SSB_BAR0_WIN, bus 44 drivers/ssb/pci.c err = pci_read_config_dword(bus->host_pci, SSB_BAR0_WIN, bus 63 drivers/ssb/pci.c int ssb_pci_switch_core(struct ssb_bus *bus, bus 74 drivers/ssb/pci.c spin_lock_irqsave(&bus->bar_lock, flags); bus 75 drivers/ssb/pci.c err = ssb_pci_switch_coreidx(bus, dev->core_index); bus 77 drivers/ssb/pci.c bus->mapped_device = dev; bus 78 drivers/ssb/pci.c spin_unlock_irqrestore(&bus->bar_lock, flags); bus 84 drivers/ssb/pci.c int ssb_pci_xtal(struct ssb_bus *bus, u32 what, int turn_on) bus 90 drivers/ssb/pci.c if (bus->bustype != SSB_BUSTYPE_PCI) bus 93 drivers/ssb/pci.c err = pci_read_config_dword(bus->host_pci, SSB_GPIO_IN, &in); bus 96 drivers/ssb/pci.c err = pci_read_config_dword(bus->host_pci, SSB_GPIO_OUT, &out); bus 99 drivers/ssb/pci.c err = pci_read_config_dword(bus->host_pci, SSB_GPIO_OUT_ENABLE, &outenable); bus 116 drivers/ssb/pci.c err = pci_write_config_dword(bus->host_pci, SSB_GPIO_OUT, out); bus 119 drivers/ssb/pci.c err = pci_write_config_dword(bus->host_pci, SSB_GPIO_OUT_ENABLE, bus 128 drivers/ssb/pci.c err = pci_write_config_dword(bus->host_pci, SSB_GPIO_OUT, out); bus 135 drivers/ssb/pci.c err = pci_read_config_word(bus->host_pci, PCI_STATUS, &pci_status); bus 139 drivers/ssb/pci.c err = pci_write_config_word(bus->host_pci, PCI_STATUS, pci_status); bus 151 drivers/ssb/pci.c err = pci_write_config_dword(bus->host_pci, SSB_GPIO_OUT, out); bus 154 drivers/ssb/pci.c err = pci_write_config_dword(bus->host_pci, SSB_GPIO_OUT_ENABLE, outenable); bus 271 drivers/ssb/pci.c static int sprom_do_read(struct ssb_bus *bus, u16 *sprom) bus 275 drivers/ssb/pci.c for (i = 0; i < bus->sprom_size; i++) bus 276 drivers/ssb/pci.c sprom[i] = ioread16(bus->mmio + bus->sprom_offset + (i * 2)); bus 281 drivers/ssb/pci.c static int sprom_do_write(struct ssb_bus *bus, const u16 *sprom) bus 283 drivers/ssb/pci.c struct pci_dev *pdev = bus->host_pci; bus 286 drivers/ssb/pci.c u16 size = bus->sprom_size; bus 307 drivers/ssb/pci.c writew(sprom[i], bus->mmio + bus->sprom_offset + (i * 2)); bus 811 drivers/ssb/pci.c static int sprom_extract(struct ssb_bus *bus, struct ssb_sprom *out, bus 821 drivers/ssb/pci.c if ((bus->chip_id & 0xFF00) == 0x4400) { bus 857 drivers/ssb/pci.c static int ssb_pci_sprom_get(struct ssb_bus *bus, bus 863 drivers/ssb/pci.c if (!ssb_is_sprom_available(bus)) { bus 867 drivers/ssb/pci.c if (bus->chipco.dev) { /* can be unavailable! */ bus 873 drivers/ssb/pci.c if (bus->chipco.dev->id.revision >= 31) bus 874 drivers/ssb/pci.c bus->sprom_offset = SSB_SPROM_BASE31; bus 875 drivers/ssb/pci.c else if (bus->chip_id == 0x4312 && bus 876 drivers/ssb/pci.c (bus->chipco.status & 0x03) == 2) bus 877 drivers/ssb/pci.c bus->sprom_offset = SSB_SPROM_BASE31; bus 879 drivers/ssb/pci.c bus->sprom_offset = SSB_SPROM_BASE1; bus 881 drivers/ssb/pci.c bus->sprom_offset = SSB_SPROM_BASE1; bus 883 drivers/ssb/pci.c pr_debug("SPROM offset is 0x%x\n", bus->sprom_offset); bus 888 drivers/ssb/pci.c bus->sprom_size = SSB_SPROMSIZE_WORDS_R123; bus 889 drivers/ssb/pci.c sprom_do_read(bus, buf); bus 890 drivers/ssb/pci.c err = sprom_check_crc(buf, bus->sprom_size); bus 898 drivers/ssb/pci.c bus->sprom_size = SSB_SPROMSIZE_WORDS_R4; bus 899 drivers/ssb/pci.c sprom_do_read(bus, buf); bus 900 drivers/ssb/pci.c err = sprom_check_crc(buf, bus->sprom_size); bus 906 drivers/ssb/pci.c err = ssb_fill_sprom_with_fallback(bus, sprom); bus 920 drivers/ssb/pci.c err = sprom_extract(bus, sprom, buf, bus->sprom_size); bus 927 drivers/ssb/pci.c static void ssb_pci_get_boardinfo(struct ssb_bus *bus, bus 930 drivers/ssb/pci.c bi->vendor = bus->host_pci->subsystem_vendor; bus 931 drivers/ssb/pci.c bi->type = bus->host_pci->subsystem_device; bus 934 drivers/ssb/pci.c int ssb_pci_get_invariants(struct ssb_bus *bus, bus 939 drivers/ssb/pci.c err = ssb_pci_sprom_get(bus, &iv->sprom); bus 942 drivers/ssb/pci.c ssb_pci_get_boardinfo(bus, &iv->boardinfo); bus 948 drivers/ssb/pci.c static int ssb_pci_assert_buspower(struct ssb_bus *bus) bus 950 drivers/ssb/pci.c if (likely(bus->powered_up)) bus 954 drivers/ssb/pci.c if (bus->power_warn_count <= 10) { bus 955 drivers/ssb/pci.c bus->power_warn_count++; bus 964 drivers/ssb/pci.c struct ssb_bus *bus = dev->bus; bus 966 drivers/ssb/pci.c if (unlikely(ssb_pci_assert_buspower(bus))) bus 968 drivers/ssb/pci.c if (unlikely(bus->mapped_device != dev)) { bus 969 drivers/ssb/pci.c if (unlikely(ssb_pci_switch_core(bus, dev))) bus 972 drivers/ssb/pci.c return ioread8(bus->mmio + offset); bus 977 drivers/ssb/pci.c struct ssb_bus *bus = dev->bus; bus 979 drivers/ssb/pci.c if (unlikely(ssb_pci_assert_buspower(bus))) bus 981 drivers/ssb/pci.c if (unlikely(bus->mapped_device != dev)) { bus 982 drivers/ssb/pci.c if (unlikely(ssb_pci_switch_core(bus, dev))) bus 985 drivers/ssb/pci.c return ioread16(bus->mmio + offset); bus 990 drivers/ssb/pci.c struct ssb_bus *bus = dev->bus; bus 992 drivers/ssb/pci.c if (unlikely(ssb_pci_assert_buspower(bus))) bus 994 drivers/ssb/pci.c if (unlikely(bus->mapped_device != dev)) { bus 995 drivers/ssb/pci.c if (unlikely(ssb_pci_switch_core(bus, dev))) bus 998 drivers/ssb/pci.c return ioread32(bus->mmio + offset); bus 1005 drivers/ssb/pci.c struct ssb_bus *bus = dev->bus; bus 1006 drivers/ssb/pci.c void __iomem *addr = bus->mmio + offset; bus 1008 drivers/ssb/pci.c if (unlikely(ssb_pci_assert_buspower(bus))) bus 1010 drivers/ssb/pci.c if (unlikely(bus->mapped_device != dev)) { bus 1011 drivers/ssb/pci.c if (unlikely(ssb_pci_switch_core(bus, dev))) bus 1038 drivers/ssb/pci.c struct ssb_bus *bus = dev->bus; bus 1040 drivers/ssb/pci.c if (unlikely(ssb_pci_assert_buspower(bus))) bus 1042 drivers/ssb/pci.c if (unlikely(bus->mapped_device != dev)) { bus 1043 drivers/ssb/pci.c if (unlikely(ssb_pci_switch_core(bus, dev))) bus 1046 drivers/ssb/pci.c iowrite8(value, bus->mmio + offset); bus 1051 drivers/ssb/pci.c struct ssb_bus *bus = dev->bus; bus 1053 drivers/ssb/pci.c if (unlikely(ssb_pci_assert_buspower(bus))) bus 1055 drivers/ssb/pci.c if (unlikely(bus->mapped_device != dev)) { bus 1056 drivers/ssb/pci.c if (unlikely(ssb_pci_switch_core(bus, dev))) bus 1059 drivers/ssb/pci.c iowrite16(value, bus->mmio + offset); bus 1064 drivers/ssb/pci.c struct ssb_bus *bus = dev->bus; bus 1066 drivers/ssb/pci.c if (unlikely(ssb_pci_assert_buspower(bus))) bus 1068 drivers/ssb/pci.c if (unlikely(bus->mapped_device != dev)) { bus 1069 drivers/ssb/pci.c if (unlikely(ssb_pci_switch_core(bus, dev))) bus 1072 drivers/ssb/pci.c iowrite32(value, bus->mmio + offset); bus 1079 drivers/ssb/pci.c struct ssb_bus *bus = dev->bus; bus 1080 drivers/ssb/pci.c void __iomem *addr = bus->mmio + offset; bus 1082 drivers/ssb/pci.c if (unlikely(ssb_pci_assert_buspower(bus))) bus 1084 drivers/ssb/pci.c if (unlikely(bus->mapped_device != dev)) { bus 1085 drivers/ssb/pci.c if (unlikely(ssb_pci_switch_core(bus, dev))) bus 1125 drivers/ssb/pci.c struct ssb_bus *bus; bus 1127 drivers/ssb/pci.c bus = ssb_pci_dev_to_bus(pdev); bus 1128 drivers/ssb/pci.c if (!bus) bus 1131 drivers/ssb/pci.c return ssb_attr_sprom_show(bus, buf, sprom_do_read); bus 1139 drivers/ssb/pci.c struct ssb_bus *bus; bus 1141 drivers/ssb/pci.c bus = ssb_pci_dev_to_bus(pdev); bus 1142 drivers/ssb/pci.c if (!bus) bus 1145 drivers/ssb/pci.c return ssb_attr_sprom_store(bus, buf, count, bus 1153 drivers/ssb/pci.c void ssb_pci_exit(struct ssb_bus *bus) bus 1157 drivers/ssb/pci.c if (bus->bustype != SSB_BUSTYPE_PCI) bus 1160 drivers/ssb/pci.c pdev = bus->host_pci; bus 1164 drivers/ssb/pci.c int ssb_pci_init(struct ssb_bus *bus) bus 1169 drivers/ssb/pci.c if (bus->bustype != SSB_BUSTYPE_PCI) bus 1172 drivers/ssb/pci.c pdev = bus->host_pci; bus 1173 drivers/ssb/pci.c mutex_init(&bus->sprom_mutex); bus 71 drivers/ssb/pcmcia.c static int ssb_pcmcia_cfg_write(struct ssb_bus *bus, u8 offset, u8 value) bus 75 drivers/ssb/pcmcia.c res = pcmcia_write_config_byte(bus->host_pcmcia, offset, value); bus 83 drivers/ssb/pcmcia.c static int ssb_pcmcia_cfg_read(struct ssb_bus *bus, u8 offset, u8 *value) bus 87 drivers/ssb/pcmcia.c res = pcmcia_read_config_byte(bus->host_pcmcia, offset, value); bus 94 drivers/ssb/pcmcia.c int ssb_pcmcia_switch_coreidx(struct ssb_bus *bus, bus 106 drivers/ssb/pcmcia.c err = ssb_pcmcia_cfg_write(bus, SSB_PCMCIA_ADDRESS0, bus 110 drivers/ssb/pcmcia.c err = ssb_pcmcia_cfg_write(bus, SSB_PCMCIA_ADDRESS1, bus 114 drivers/ssb/pcmcia.c err = ssb_pcmcia_cfg_write(bus, SSB_PCMCIA_ADDRESS2, bus 121 drivers/ssb/pcmcia.c err = ssb_pcmcia_cfg_read(bus, SSB_PCMCIA_ADDRESS0, &val); bus 125 drivers/ssb/pcmcia.c err = ssb_pcmcia_cfg_read(bus, SSB_PCMCIA_ADDRESS1, &val); bus 129 drivers/ssb/pcmcia.c err = ssb_pcmcia_cfg_read(bus, SSB_PCMCIA_ADDRESS2, &val); bus 150 drivers/ssb/pcmcia.c static int ssb_pcmcia_switch_core(struct ssb_bus *bus, struct ssb_device *dev) bus 159 drivers/ssb/pcmcia.c err = ssb_pcmcia_switch_coreidx(bus, dev->core_index); bus 161 drivers/ssb/pcmcia.c bus->mapped_device = dev; bus 166 drivers/ssb/pcmcia.c int ssb_pcmcia_switch_segment(struct ssb_bus *bus, u8 seg) bus 174 drivers/ssb/pcmcia.c err = ssb_pcmcia_cfg_write(bus, SSB_PCMCIA_MEMSEG, seg); bus 177 drivers/ssb/pcmcia.c err = ssb_pcmcia_cfg_read(bus, SSB_PCMCIA_MEMSEG, &val); bus 188 drivers/ssb/pcmcia.c bus->mapped_pcmcia_seg = seg; bus 199 drivers/ssb/pcmcia.c struct ssb_bus *bus = dev->bus; bus 209 drivers/ssb/pcmcia.c if (unlikely(dev != bus->mapped_device)) { bus 210 drivers/ssb/pcmcia.c err = ssb_pcmcia_switch_core(bus, dev); bus 214 drivers/ssb/pcmcia.c if (unlikely(need_segment != bus->mapped_pcmcia_seg)) { bus 215 drivers/ssb/pcmcia.c err = ssb_pcmcia_switch_segment(bus, need_segment); bus 225 drivers/ssb/pcmcia.c struct ssb_bus *bus = dev->bus; bus 230 drivers/ssb/pcmcia.c spin_lock_irqsave(&bus->bar_lock, flags); bus 233 drivers/ssb/pcmcia.c value = readb(bus->mmio + offset); bus 234 drivers/ssb/pcmcia.c spin_unlock_irqrestore(&bus->bar_lock, flags); bus 241 drivers/ssb/pcmcia.c struct ssb_bus *bus = dev->bus; bus 246 drivers/ssb/pcmcia.c spin_lock_irqsave(&bus->bar_lock, flags); bus 249 drivers/ssb/pcmcia.c value = readw(bus->mmio + offset); bus 250 drivers/ssb/pcmcia.c spin_unlock_irqrestore(&bus->bar_lock, flags); bus 257 drivers/ssb/pcmcia.c struct ssb_bus *bus = dev->bus; bus 262 drivers/ssb/pcmcia.c spin_lock_irqsave(&bus->bar_lock, flags); bus 265 drivers/ssb/pcmcia.c lo = readw(bus->mmio + offset); bus 266 drivers/ssb/pcmcia.c hi = readw(bus->mmio + offset + 2); bus 268 drivers/ssb/pcmcia.c spin_unlock_irqrestore(&bus->bar_lock, flags); bus 277 drivers/ssb/pcmcia.c struct ssb_bus *bus = dev->bus; bus 279 drivers/ssb/pcmcia.c void __iomem *addr = bus->mmio + offset; bus 282 drivers/ssb/pcmcia.c spin_lock_irqsave(&bus->bar_lock, flags); bus 327 drivers/ssb/pcmcia.c spin_unlock_irqrestore(&bus->bar_lock, flags); bus 333 drivers/ssb/pcmcia.c struct ssb_bus *bus = dev->bus; bus 337 drivers/ssb/pcmcia.c spin_lock_irqsave(&bus->bar_lock, flags); bus 340 drivers/ssb/pcmcia.c writeb(value, bus->mmio + offset); bus 341 drivers/ssb/pcmcia.c spin_unlock_irqrestore(&bus->bar_lock, flags); bus 346 drivers/ssb/pcmcia.c struct ssb_bus *bus = dev->bus; bus 350 drivers/ssb/pcmcia.c spin_lock_irqsave(&bus->bar_lock, flags); bus 353 drivers/ssb/pcmcia.c writew(value, bus->mmio + offset); bus 354 drivers/ssb/pcmcia.c spin_unlock_irqrestore(&bus->bar_lock, flags); bus 359 drivers/ssb/pcmcia.c struct ssb_bus *bus = dev->bus; bus 363 drivers/ssb/pcmcia.c spin_lock_irqsave(&bus->bar_lock, flags); bus 366 drivers/ssb/pcmcia.c writew((value & 0x0000FFFF), bus->mmio + offset); bus 367 drivers/ssb/pcmcia.c writew(((value & 0xFFFF0000) >> 16), bus->mmio + offset + 2); bus 369 drivers/ssb/pcmcia.c spin_unlock_irqrestore(&bus->bar_lock, flags); bus 376 drivers/ssb/pcmcia.c struct ssb_bus *bus = dev->bus; bus 378 drivers/ssb/pcmcia.c void __iomem *addr = bus->mmio + offset; bus 381 drivers/ssb/pcmcia.c spin_lock_irqsave(&bus->bar_lock, flags); bus 424 drivers/ssb/pcmcia.c spin_unlock_irqrestore(&bus->bar_lock, flags); bus 442 drivers/ssb/pcmcia.c static int ssb_pcmcia_sprom_command(struct ssb_bus *bus, u8 command) bus 448 drivers/ssb/pcmcia.c err = ssb_pcmcia_cfg_write(bus, SSB_PCMCIA_SPROMCTL, command); bus 452 drivers/ssb/pcmcia.c err = ssb_pcmcia_cfg_read(bus, SSB_PCMCIA_SPROMCTL, &value); bus 464 drivers/ssb/pcmcia.c static int ssb_pcmcia_sprom_read(struct ssb_bus *bus, u16 offset, u16 *value) bus 471 drivers/ssb/pcmcia.c err = ssb_pcmcia_cfg_write(bus, SSB_PCMCIA_SPROM_ADDRLO, bus 475 drivers/ssb/pcmcia.c err = ssb_pcmcia_cfg_write(bus, SSB_PCMCIA_SPROM_ADDRHI, bus 479 drivers/ssb/pcmcia.c err = ssb_pcmcia_sprom_command(bus, SSB_PCMCIA_SPROMCTL_READ); bus 482 drivers/ssb/pcmcia.c err = ssb_pcmcia_cfg_read(bus, SSB_PCMCIA_SPROM_DATALO, &lo); bus 485 drivers/ssb/pcmcia.c err = ssb_pcmcia_cfg_read(bus, SSB_PCMCIA_SPROM_DATAHI, &hi); bus 494 drivers/ssb/pcmcia.c static int ssb_pcmcia_sprom_write(struct ssb_bus *bus, u16 offset, u16 value) bus 500 drivers/ssb/pcmcia.c err = ssb_pcmcia_cfg_write(bus, SSB_PCMCIA_SPROM_ADDRLO, bus 504 drivers/ssb/pcmcia.c err = ssb_pcmcia_cfg_write(bus, SSB_PCMCIA_SPROM_ADDRHI, bus 508 drivers/ssb/pcmcia.c err = ssb_pcmcia_cfg_write(bus, SSB_PCMCIA_SPROM_DATALO, bus 512 drivers/ssb/pcmcia.c err = ssb_pcmcia_cfg_write(bus, SSB_PCMCIA_SPROM_DATAHI, bus 516 drivers/ssb/pcmcia.c err = ssb_pcmcia_sprom_command(bus, SSB_PCMCIA_SPROMCTL_WRITE); bus 525 drivers/ssb/pcmcia.c static int ssb_pcmcia_sprom_read_all(struct ssb_bus *bus, u16 *sprom) bus 530 drivers/ssb/pcmcia.c err = ssb_pcmcia_sprom_read(bus, i, &sprom[i]); bus 539 drivers/ssb/pcmcia.c static int ssb_pcmcia_sprom_write_all(struct ssb_bus *bus, const u16 *sprom) bus 546 drivers/ssb/pcmcia.c err = ssb_pcmcia_sprom_command(bus, SSB_PCMCIA_SPROMCTL_WRITEEN); bus 562 drivers/ssb/pcmcia.c err = ssb_pcmcia_sprom_write(bus, i, sprom[i]); bus 569 drivers/ssb/pcmcia.c err = ssb_pcmcia_sprom_command(bus, SSB_PCMCIA_SPROMCTL_WRITEDIS); bus 697 drivers/ssb/pcmcia.c int ssb_pcmcia_get_invariants(struct ssb_bus *bus, bus 709 drivers/ssb/pcmcia.c res = pcmcia_loop_tuple(bus->host_pcmcia, CISTPL_FUNCE, bus 717 drivers/ssb/pcmcia.c res = pcmcia_loop_tuple(bus->host_pcmcia, SSB_PCMCIA_CIS, bus 732 drivers/ssb/pcmcia.c struct ssb_bus *bus; bus 734 drivers/ssb/pcmcia.c bus = ssb_pcmcia_dev_to_bus(pdev); bus 735 drivers/ssb/pcmcia.c if (!bus) bus 738 drivers/ssb/pcmcia.c return ssb_attr_sprom_show(bus, buf, bus 748 drivers/ssb/pcmcia.c struct ssb_bus *bus; bus 750 drivers/ssb/pcmcia.c bus = ssb_pcmcia_dev_to_bus(pdev); bus 751 drivers/ssb/pcmcia.c if (!bus) bus 754 drivers/ssb/pcmcia.c return ssb_attr_sprom_store(bus, buf, count, bus 763 drivers/ssb/pcmcia.c static int ssb_pcmcia_cor_setup(struct ssb_bus *bus, u8 cor) bus 768 drivers/ssb/pcmcia.c err = ssb_pcmcia_cfg_read(bus, cor, &val); bus 773 drivers/ssb/pcmcia.c err = ssb_pcmcia_cfg_write(bus, cor, val); bus 782 drivers/ssb/pcmcia.c int ssb_pcmcia_hardware_setup(struct ssb_bus *bus) bus 786 drivers/ssb/pcmcia.c if (bus->bustype != SSB_BUSTYPE_PCMCIA) bus 791 drivers/ssb/pcmcia.c ssb_pcmcia_switch_segment(bus, 0); bus 793 drivers/ssb/pcmcia.c err = ssb_pcmcia_cor_setup(bus, CISREG_COR); bus 797 drivers/ssb/pcmcia.c err = ssb_pcmcia_cor_setup(bus, CISREG_COR + 0x80); bus 804 drivers/ssb/pcmcia.c void ssb_pcmcia_exit(struct ssb_bus *bus) bus 806 drivers/ssb/pcmcia.c if (bus->bustype != SSB_BUSTYPE_PCMCIA) bus 809 drivers/ssb/pcmcia.c device_remove_file(&bus->host_pcmcia->dev, &dev_attr_ssb_sprom); bus 812 drivers/ssb/pcmcia.c int ssb_pcmcia_init(struct ssb_bus *bus) bus 816 drivers/ssb/pcmcia.c if (bus->bustype != SSB_BUSTYPE_PCMCIA) bus 819 drivers/ssb/pcmcia.c err = ssb_pcmcia_hardware_setup(bus); bus 823 drivers/ssb/pcmcia.c bus->sprom_size = SSB_PCMCIA_SPROM_SIZE; bus 824 drivers/ssb/pcmcia.c mutex_init(&bus->sprom_mutex); bus 825 drivers/ssb/pcmcia.c err = device_create_file(&bus->host_pcmcia->dev, &dev_attr_ssb_sprom); bus 160 drivers/ssb/scan.c static u32 scan_read32(struct ssb_bus *bus, u8 current_coreidx, bus 165 drivers/ssb/scan.c switch (bus->bustype) { bus 173 drivers/ssb/scan.c ssb_pcmcia_switch_segment(bus, 1); bus 176 drivers/ssb/scan.c ssb_pcmcia_switch_segment(bus, 0); bus 177 drivers/ssb/scan.c lo = readw(bus->mmio + offset); bus 178 drivers/ssb/scan.c hi = readw(bus->mmio + offset + 2); bus 182 drivers/ssb/scan.c return ssb_sdio_scan_read32(bus, offset); bus 184 drivers/ssb/scan.c return readl(bus->mmio + offset); bus 187 drivers/ssb/scan.c static int scan_switchcore(struct ssb_bus *bus, u8 coreidx) bus 189 drivers/ssb/scan.c switch (bus->bustype) { bus 193 drivers/ssb/scan.c return ssb_pci_switch_coreidx(bus, coreidx); bus 195 drivers/ssb/scan.c return ssb_pcmcia_switch_coreidx(bus, coreidx); bus 197 drivers/ssb/scan.c return ssb_sdio_scan_switch_coreidx(bus, coreidx); bus 202 drivers/ssb/scan.c void ssb_iounmap(struct ssb_bus *bus) bus 204 drivers/ssb/scan.c switch (bus->bustype) { bus 207 drivers/ssb/scan.c iounmap(bus->mmio); bus 211 drivers/ssb/scan.c pci_iounmap(bus->host_pci, bus->mmio); bus 219 drivers/ssb/scan.c bus->mmio = NULL; bus 220 drivers/ssb/scan.c bus->mapped_device = NULL; bus 223 drivers/ssb/scan.c static void __iomem *ssb_ioremap(struct ssb_bus *bus, bus 228 drivers/ssb/scan.c switch (bus->bustype) { bus 237 drivers/ssb/scan.c mmio = pci_iomap(bus->host_pci, 0, ~0UL); bus 251 drivers/ssb/scan.c static int we_support_multiple_80211_cores(struct ssb_bus *bus) bus 259 drivers/ssb/scan.c if (bus->bustype == SSB_BUSTYPE_PCI) { bus 260 drivers/ssb/scan.c if (bus->host_pci->vendor == PCI_VENDOR_ID_BROADCOM && bus 261 drivers/ssb/scan.c ((bus->host_pci->device == 0x4313) || bus 262 drivers/ssb/scan.c (bus->host_pci->device == 0x431A) || bus 263 drivers/ssb/scan.c (bus->host_pci->device == 0x4321) || bus 264 drivers/ssb/scan.c (bus->host_pci->device == 0x4324))) bus 271 drivers/ssb/scan.c int ssb_bus_scan(struct ssb_bus *bus, bus 281 drivers/ssb/scan.c mmio = ssb_ioremap(bus, baseaddr); bus 284 drivers/ssb/scan.c bus->mmio = mmio; bus 286 drivers/ssb/scan.c err = scan_switchcore(bus, 0); /* Switch to first core */ bus 290 drivers/ssb/scan.c idhi = scan_read32(bus, 0, SSB_IDHIGH); bus 295 drivers/ssb/scan.c bus->nr_devices = 0; bus 297 drivers/ssb/scan.c tmp = scan_read32(bus, 0, SSB_CHIPCO_CHIPID); bus 299 drivers/ssb/scan.c bus->chip_id = (tmp & SSB_CHIPCO_IDMASK); bus 300 drivers/ssb/scan.c bus->chip_rev = (tmp & SSB_CHIPCO_REVMASK) >> bus 302 drivers/ssb/scan.c bus->chip_package = (tmp & SSB_CHIPCO_PACKMASK) >> bus 305 drivers/ssb/scan.c bus->nr_devices = (tmp & SSB_CHIPCO_NRCORESMASK) >> bus 308 drivers/ssb/scan.c tmp = scan_read32(bus, 0, SSB_CHIPCO_CAP); bus 309 drivers/ssb/scan.c bus->chipco.capabilities = tmp; bus 311 drivers/ssb/scan.c if (bus->bustype == SSB_BUSTYPE_PCI) { bus 312 drivers/ssb/scan.c bus->chip_id = pcidev_to_chipid(bus->host_pci); bus 313 drivers/ssb/scan.c bus->chip_rev = bus->host_pci->revision; bus 314 drivers/ssb/scan.c bus->chip_package = 0; bus 316 drivers/ssb/scan.c bus->chip_id = 0x4710; bus 317 drivers/ssb/scan.c bus->chip_rev = 0; bus 318 drivers/ssb/scan.c bus->chip_package = 0; bus 322 drivers/ssb/scan.c bus->chip_id, bus->chip_rev, bus->chip_package); bus 323 drivers/ssb/scan.c if (!bus->nr_devices) bus 324 drivers/ssb/scan.c bus->nr_devices = chipid_to_nrcores(bus->chip_id); bus 325 drivers/ssb/scan.c if (bus->nr_devices > ARRAY_SIZE(bus->devices)) { bus 327 drivers/ssb/scan.c SSB_MAX_NR_CORES, bus->nr_devices); bus 330 drivers/ssb/scan.c if (bus->bustype == SSB_BUSTYPE_SSB) { bus 336 drivers/ssb/scan.c mmio = ioremap(baseaddr, SSB_CORE_SIZE * bus->nr_devices); bus 339 drivers/ssb/scan.c bus->mmio = mmio; bus 343 drivers/ssb/scan.c for (i = 0, dev_i = 0; i < bus->nr_devices; i++) { bus 344 drivers/ssb/scan.c err = scan_switchcore(bus, i); bus 347 drivers/ssb/scan.c dev = &(bus->devices[dev_i]); bus 349 drivers/ssb/scan.c idhi = scan_read32(bus, i, SSB_IDHIGH); bus 355 drivers/ssb/scan.c dev->bus = bus; bus 356 drivers/ssb/scan.c dev->ops = bus->ops; bus 366 drivers/ssb/scan.c if (!we_support_multiple_80211_cores(bus)) { bus 374 drivers/ssb/scan.c if (bus->extif.dev) { bus 378 drivers/ssb/scan.c bus->extif.dev = dev; bus 382 drivers/ssb/scan.c if (bus->chipco.dev) { bus 386 drivers/ssb/scan.c bus->chipco.dev = dev; bus 391 drivers/ssb/scan.c if (bus->mipscore.dev) { bus 395 drivers/ssb/scan.c bus->mipscore.dev = dev; bus 401 drivers/ssb/scan.c if (bus->bustype == SSB_BUSTYPE_PCI) { bus 405 drivers/ssb/scan.c if (pci_is_pcie(bus->host_pci)) bus 408 drivers/ssb/scan.c if (!pci_is_pcie(bus->host_pci)) bus 412 drivers/ssb/scan.c if (bus->pcicore.dev) { bus 416 drivers/ssb/scan.c bus->pcicore.dev = dev; bus 420 drivers/ssb/scan.c if (bus->bustype == SSB_BUSTYPE_PCI) { bus 421 drivers/ssb/scan.c if (bus->host_pci->vendor == PCI_VENDOR_ID_BROADCOM && bus 422 drivers/ssb/scan.c (bus->host_pci->device & 0xFF00) == 0x4300) { bus 435 drivers/ssb/scan.c bus->nr_devices = dev_i; bus 441 drivers/ssb/scan.c ssb_iounmap(bus); bus 104 drivers/ssb/sdio.c static inline struct device *ssb_sdio_dev(struct ssb_bus *bus) bus 106 drivers/ssb/sdio.c return &bus->host_sdio->dev; bus 110 drivers/ssb/sdio.c static int ssb_sdio_writeb(struct ssb_bus *bus, unsigned int addr, u8 val) bus 114 drivers/ssb/sdio.c sdio_writeb(bus->host_sdio, val, addr, &error); bus 116 drivers/ssb/sdio.c dev_dbg(ssb_sdio_dev(bus), "%08X <- %02x, error %d\n", bus 124 drivers/ssb/sdio.c static u8 ssb_sdio_readb(struct ssb_bus *bus, unsigned int addr) bus 129 drivers/ssb/sdio.c val = sdio_readb(bus->host_sdio, addr, &error); bus 131 drivers/ssb/sdio.c dev_dbg(ssb_sdio_dev(bus), "%08X -> %02x, error %d\n", bus 140 drivers/ssb/sdio.c static int ssb_sdio_set_sbaddr_window(struct ssb_bus *bus, u32 address) bus 144 drivers/ssb/sdio.c error = ssb_sdio_writeb(bus, SBSDIO_FUNC1_SBADDRLOW, bus 148 drivers/ssb/sdio.c error = ssb_sdio_writeb(bus, SBSDIO_FUNC1_SBADDRMID, bus 152 drivers/ssb/sdio.c error = ssb_sdio_writeb(bus, SBSDIO_FUNC1_SBADDRHIGH, bus 156 drivers/ssb/sdio.c bus->sdio_sbaddr = address; bus 159 drivers/ssb/sdio.c dev_dbg(ssb_sdio_dev(bus), "failed to set address window" bus 167 drivers/ssb/sdio.c u32 ssb_sdio_scan_read32(struct ssb_bus *bus, u16 offset) bus 172 drivers/ssb/sdio.c sdio_claim_host(bus->host_sdio); bus 173 drivers/ssb/sdio.c val = sdio_readl(bus->host_sdio, offset, &error); bus 174 drivers/ssb/sdio.c sdio_release_host(bus->host_sdio); bus 176 drivers/ssb/sdio.c dev_dbg(ssb_sdio_dev(bus), "%04X:%04X > %08x, error %d\n", bus 177 drivers/ssb/sdio.c bus->sdio_sbaddr >> 16, offset, val, error); bus 184 drivers/ssb/sdio.c int ssb_sdio_scan_switch_coreidx(struct ssb_bus *bus, u8 coreidx) bus 190 drivers/ssb/sdio.c sdio_claim_host(bus->host_sdio); bus 191 drivers/ssb/sdio.c error = ssb_sdio_set_sbaddr_window(bus, sbaddr); bus 192 drivers/ssb/sdio.c sdio_release_host(bus->host_sdio); bus 194 drivers/ssb/sdio.c dev_err(ssb_sdio_dev(bus), "failed to switch to core %u," bus 203 drivers/ssb/sdio.c static int ssb_sdio_switch_core(struct ssb_bus *bus, struct ssb_device *dev) bus 210 drivers/ssb/sdio.c if (unlikely(bus->sdio_sbaddr != sbaddr)) { bus 212 drivers/ssb/sdio.c dev_info(ssb_sdio_dev(bus), bus 216 drivers/ssb/sdio.c error = ssb_sdio_set_sbaddr_window(bus, sbaddr); bus 218 drivers/ssb/sdio.c dev_dbg(ssb_sdio_dev(bus), "failed to switch to" bus 222 drivers/ssb/sdio.c bus->mapped_device = dev; bus 231 drivers/ssb/sdio.c struct ssb_bus *bus = dev->bus; bus 235 drivers/ssb/sdio.c sdio_claim_host(bus->host_sdio); bus 236 drivers/ssb/sdio.c if (unlikely(ssb_sdio_switch_core(bus, dev))) bus 238 drivers/ssb/sdio.c offset |= bus->sdio_sbaddr & 0xffff; bus 240 drivers/ssb/sdio.c val = sdio_readb(bus->host_sdio, offset, &error); bus 242 drivers/ssb/sdio.c dev_dbg(ssb_sdio_dev(bus), "%04X:%04X > %02x, error %d\n", bus 243 drivers/ssb/sdio.c bus->sdio_sbaddr >> 16, offset, val, error); bus 246 drivers/ssb/sdio.c sdio_release_host(bus->host_sdio); bus 253 drivers/ssb/sdio.c struct ssb_bus *bus = dev->bus; bus 257 drivers/ssb/sdio.c sdio_claim_host(bus->host_sdio); bus 258 drivers/ssb/sdio.c if (unlikely(ssb_sdio_switch_core(bus, dev))) bus 260 drivers/ssb/sdio.c offset |= bus->sdio_sbaddr & 0xffff; bus 262 drivers/ssb/sdio.c val = sdio_readw(bus->host_sdio, offset, &error); bus 264 drivers/ssb/sdio.c dev_dbg(ssb_sdio_dev(bus), "%04X:%04X > %04x, error %d\n", bus 265 drivers/ssb/sdio.c bus->sdio_sbaddr >> 16, offset, val, error); bus 268 drivers/ssb/sdio.c sdio_release_host(bus->host_sdio); bus 275 drivers/ssb/sdio.c struct ssb_bus *bus = dev->bus; bus 279 drivers/ssb/sdio.c sdio_claim_host(bus->host_sdio); bus 280 drivers/ssb/sdio.c if (unlikely(ssb_sdio_switch_core(bus, dev))) bus 282 drivers/ssb/sdio.c offset |= bus->sdio_sbaddr & 0xffff; bus 285 drivers/ssb/sdio.c val = sdio_readl(bus->host_sdio, offset, &error); bus 287 drivers/ssb/sdio.c dev_dbg(ssb_sdio_dev(bus), "%04X:%04X > %08x, error %d\n", bus 288 drivers/ssb/sdio.c bus->sdio_sbaddr >> 16, offset, val, error); bus 291 drivers/ssb/sdio.c sdio_release_host(bus->host_sdio); bus 301 drivers/ssb/sdio.c struct ssb_bus *bus = dev->bus; bus 304 drivers/ssb/sdio.c sdio_claim_host(bus->host_sdio); bus 305 drivers/ssb/sdio.c if (unlikely(ssb_sdio_switch_core(bus, dev))) { bus 310 drivers/ssb/sdio.c offset |= bus->sdio_sbaddr & 0xffff; bus 315 drivers/ssb/sdio.c error = sdio_readsb(bus->host_sdio, buffer, offset, count); bus 320 drivers/ssb/sdio.c error = sdio_readsb(bus->host_sdio, buffer, offset, count); bus 326 drivers/ssb/sdio.c error = sdio_readsb(bus->host_sdio, buffer, offset, count); bus 336 drivers/ssb/sdio.c dev_dbg(ssb_sdio_dev(bus), "%04X:%04X (width=%u, len=%zu), error %d\n", bus 337 drivers/ssb/sdio.c bus->sdio_sbaddr >> 16, offset, reg_width, saved_count, error); bus 339 drivers/ssb/sdio.c sdio_release_host(bus->host_sdio); bus 345 drivers/ssb/sdio.c struct ssb_bus *bus = dev->bus; bus 348 drivers/ssb/sdio.c sdio_claim_host(bus->host_sdio); bus 349 drivers/ssb/sdio.c if (unlikely(ssb_sdio_switch_core(bus, dev))) bus 351 drivers/ssb/sdio.c offset |= bus->sdio_sbaddr & 0xffff; bus 353 drivers/ssb/sdio.c sdio_writeb(bus->host_sdio, val, offset, &error); bus 355 drivers/ssb/sdio.c dev_dbg(ssb_sdio_dev(bus), "%04X:%04X < %02x, error %d\n", bus 356 drivers/ssb/sdio.c bus->sdio_sbaddr >> 16, offset, val, error); bus 359 drivers/ssb/sdio.c sdio_release_host(bus->host_sdio); bus 364 drivers/ssb/sdio.c struct ssb_bus *bus = dev->bus; bus 367 drivers/ssb/sdio.c sdio_claim_host(bus->host_sdio); bus 368 drivers/ssb/sdio.c if (unlikely(ssb_sdio_switch_core(bus, dev))) bus 370 drivers/ssb/sdio.c offset |= bus->sdio_sbaddr & 0xffff; bus 372 drivers/ssb/sdio.c sdio_writew(bus->host_sdio, val, offset, &error); bus 374 drivers/ssb/sdio.c dev_dbg(ssb_sdio_dev(bus), "%04X:%04X < %04x, error %d\n", bus 375 drivers/ssb/sdio.c bus->sdio_sbaddr >> 16, offset, val, error); bus 378 drivers/ssb/sdio.c sdio_release_host(bus->host_sdio); bus 383 drivers/ssb/sdio.c struct ssb_bus *bus = dev->bus; bus 386 drivers/ssb/sdio.c sdio_claim_host(bus->host_sdio); bus 387 drivers/ssb/sdio.c if (unlikely(ssb_sdio_switch_core(bus, dev))) bus 389 drivers/ssb/sdio.c offset |= bus->sdio_sbaddr & 0xffff; bus 392 drivers/ssb/sdio.c sdio_writel(bus->host_sdio, val, offset, &error); bus 394 drivers/ssb/sdio.c dev_dbg(ssb_sdio_dev(bus), "%04X:%04X < %08x, error %d\n", bus 395 drivers/ssb/sdio.c bus->sdio_sbaddr >> 16, offset, val, error); bus 397 drivers/ssb/sdio.c if (bus->quirks & SSB_QUIRK_SDIO_READ_AFTER_WRITE32) bus 398 drivers/ssb/sdio.c sdio_readl(bus->host_sdio, 0, &error); bus 400 drivers/ssb/sdio.c sdio_release_host(bus->host_sdio); bus 408 drivers/ssb/sdio.c struct ssb_bus *bus = dev->bus; bus 411 drivers/ssb/sdio.c sdio_claim_host(bus->host_sdio); bus 412 drivers/ssb/sdio.c if (unlikely(ssb_sdio_switch_core(bus, dev))) { bus 417 drivers/ssb/sdio.c offset |= bus->sdio_sbaddr & 0xffff; bus 422 drivers/ssb/sdio.c error = sdio_writesb(bus->host_sdio, offset, bus 427 drivers/ssb/sdio.c error = sdio_writesb(bus->host_sdio, offset, bus 433 drivers/ssb/sdio.c error = sdio_writesb(bus->host_sdio, offset, bus 443 drivers/ssb/sdio.c dev_dbg(ssb_sdio_dev(bus), "%04X:%04X (width=%u, len=%zu), error %d\n", bus 444 drivers/ssb/sdio.c bus->sdio_sbaddr >> 16, offset, reg_width, saved_count, error); bus 446 drivers/ssb/sdio.c sdio_release_host(bus->host_sdio); bus 472 drivers/ssb/sdio.c int ssb_sdio_get_invariants(struct ssb_bus *bus, bus 485 drivers/ssb/sdio.c tuple = bus->host_sdio->tuples; bus 586 drivers/ssb/sdio.c dev_err(ssb_sdio_dev(bus), "failed to fetch device invariants: %s\n", bus 591 drivers/ssb/sdio.c void ssb_sdio_exit(struct ssb_bus *bus) bus 593 drivers/ssb/sdio.c if (bus->bustype != SSB_BUSTYPE_SDIO) bus 598 drivers/ssb/sdio.c int ssb_sdio_init(struct ssb_bus *bus) bus 600 drivers/ssb/sdio.c if (bus->bustype != SSB_BUSTYPE_SDIO) bus 603 drivers/ssb/sdio.c bus->sdio_sbaddr = ~0; bus 67 drivers/ssb/sprom.c ssize_t ssb_attr_sprom_show(struct ssb_bus *bus, char *buf, bus 68 drivers/ssb/sprom.c int (*sprom_read)(struct ssb_bus *bus, u16 *sprom)) bus 73 drivers/ssb/sprom.c size_t sprom_size_words = bus->sprom_size; bus 83 drivers/ssb/sprom.c if (mutex_lock_interruptible(&bus->sprom_mutex)) bus 85 drivers/ssb/sprom.c err = sprom_read(bus, sprom); bus 86 drivers/ssb/sprom.c mutex_unlock(&bus->sprom_mutex); bus 98 drivers/ssb/sprom.c ssize_t ssb_attr_sprom_store(struct ssb_bus *bus, bus 101 drivers/ssb/sprom.c int (*sprom_write)(struct ssb_bus *bus, const u16 *sprom)) bus 105 drivers/ssb/sprom.c size_t sprom_size_words = bus->sprom_size; bus 108 drivers/ssb/sprom.c sprom = kcalloc(bus->sprom_size, sizeof(u16), GFP_KERNEL); bus 126 drivers/ssb/sprom.c if (mutex_lock_interruptible(&bus->sprom_mutex)) bus 128 drivers/ssb/sprom.c err = ssb_devices_freeze(bus, &freeze); bus 133 drivers/ssb/sprom.c res = sprom_write(bus, sprom); bus 138 drivers/ssb/sprom.c mutex_unlock(&bus->sprom_mutex); bus 169 drivers/ssb/sprom.c int ssb_arch_register_fallback_sprom(int (*sprom_callback)(struct ssb_bus *bus, bus 179 drivers/ssb/sprom.c int ssb_fill_sprom_with_fallback(struct ssb_bus *bus, struct ssb_sprom *out) bus 184 drivers/ssb/sprom.c return get_fallback_sprom(bus, out); bus 188 drivers/ssb/sprom.c bool ssb_is_sprom_available(struct ssb_bus *bus) bus 194 drivers/ssb/sprom.c if (bus->bustype == SSB_BUSTYPE_PCI && bus 195 drivers/ssb/sprom.c bus->chipco.dev && /* can be unavailable! */ bus 196 drivers/ssb/sprom.c bus->chipco.dev->id.revision >= 31) bus 197 drivers/ssb/sprom.c return bus->chipco.capabilities & SSB_CHIPCO_CAP_SPROM; bus 15 drivers/ssb/ssb_private.h extern int ssb_pci_switch_core(struct ssb_bus *bus, bus 17 drivers/ssb/ssb_private.h extern int ssb_pci_switch_coreidx(struct ssb_bus *bus, bus 19 drivers/ssb/ssb_private.h extern int ssb_pci_xtal(struct ssb_bus *bus, u32 what, bus 21 drivers/ssb/ssb_private.h extern int ssb_pci_get_invariants(struct ssb_bus *bus, bus 23 drivers/ssb/ssb_private.h extern void ssb_pci_exit(struct ssb_bus *bus); bus 24 drivers/ssb/ssb_private.h extern int ssb_pci_init(struct ssb_bus *bus); bus 29 drivers/ssb/ssb_private.h static inline int ssb_pci_switch_core(struct ssb_bus *bus, bus 34 drivers/ssb/ssb_private.h static inline int ssb_pci_switch_coreidx(struct ssb_bus *bus, bus 39 drivers/ssb/ssb_private.h static inline int ssb_pci_xtal(struct ssb_bus *bus, u32 what, bus 44 drivers/ssb/ssb_private.h static inline void ssb_pci_exit(struct ssb_bus *bus) bus 47 drivers/ssb/ssb_private.h static inline int ssb_pci_init(struct ssb_bus *bus) bus 56 drivers/ssb/ssb_private.h extern int ssb_pcmcia_switch_coreidx(struct ssb_bus *bus, bus 58 drivers/ssb/ssb_private.h extern int ssb_pcmcia_switch_segment(struct ssb_bus *bus, bus 60 drivers/ssb/ssb_private.h extern int ssb_pcmcia_get_invariants(struct ssb_bus *bus, bus 62 drivers/ssb/ssb_private.h extern int ssb_pcmcia_hardware_setup(struct ssb_bus *bus); bus 63 drivers/ssb/ssb_private.h extern void ssb_pcmcia_exit(struct ssb_bus *bus); bus 64 drivers/ssb/ssb_private.h extern int ssb_pcmcia_init(struct ssb_bus *bus); bus 69 drivers/ssb/ssb_private.h static inline int ssb_pcmcia_switch_coreidx(struct ssb_bus *bus, bus 74 drivers/ssb/ssb_private.h static inline int ssb_pcmcia_switch_segment(struct ssb_bus *bus, bus 79 drivers/ssb/ssb_private.h static inline int ssb_pcmcia_hardware_setup(struct ssb_bus *bus) bus 83 drivers/ssb/ssb_private.h static inline void ssb_pcmcia_exit(struct ssb_bus *bus) bus 86 drivers/ssb/ssb_private.h static inline int ssb_pcmcia_init(struct ssb_bus *bus) bus 101 drivers/ssb/ssb_private.h extern int ssb_sdio_get_invariants(struct ssb_bus *bus, bus 104 drivers/ssb/ssb_private.h extern u32 ssb_sdio_scan_read32(struct ssb_bus *bus, u16 offset); bus 105 drivers/ssb/ssb_private.h extern int ssb_sdio_scan_switch_coreidx(struct ssb_bus *bus, u8 coreidx); bus 106 drivers/ssb/ssb_private.h extern void ssb_sdio_exit(struct ssb_bus *bus); bus 107 drivers/ssb/ssb_private.h extern int ssb_sdio_init(struct ssb_bus *bus); bus 111 drivers/ssb/ssb_private.h static inline u32 ssb_sdio_scan_read32(struct ssb_bus *bus, u16 offset) bus 115 drivers/ssb/ssb_private.h static inline int ssb_sdio_scan_switch_coreidx(struct ssb_bus *bus, u8 coreidx) bus 119 drivers/ssb/ssb_private.h static inline void ssb_sdio_exit(struct ssb_bus *bus) bus 122 drivers/ssb/ssb_private.h static inline int ssb_sdio_init(struct ssb_bus *bus) bus 135 drivers/ssb/ssb_private.h extern int ssb_host_soc_get_invariants(struct ssb_bus *bus, bus 141 drivers/ssb/ssb_private.h extern int ssb_bus_scan(struct ssb_bus *bus, bus 148 drivers/ssb/ssb_private.h ssize_t ssb_attr_sprom_show(struct ssb_bus *bus, char *buf, bus 149 drivers/ssb/ssb_private.h int (*sprom_read)(struct ssb_bus *bus, u16 *sprom)); bus 151 drivers/ssb/ssb_private.h ssize_t ssb_attr_sprom_store(struct ssb_bus *bus, bus 154 drivers/ssb/ssb_private.h int (*sprom_write)(struct ssb_bus *bus, const u16 *sprom)); bus 155 drivers/ssb/ssb_private.h extern int ssb_fill_sprom_with_fallback(struct ssb_bus *bus, bus 163 drivers/ssb/ssb_private.h int (*func)(struct ssb_bus *bus, unsigned long data)); bus 168 drivers/ssb/ssb_private.h struct ssb_bus *bus; bus 172 drivers/ssb/ssb_private.h extern int ssb_devices_freeze(struct ssb_bus *bus, struct ssb_freeze_context *ctx); bus 236 drivers/ssb/ssb_private.h extern int ssb_watchdog_register(struct ssb_bus *bus); bus 238 drivers/ssb/ssb_private.h static inline int ssb_watchdog_register(struct ssb_bus *bus) bus 253 drivers/ssb/ssb_private.h extern int ssb_gpio_init(struct ssb_bus *bus); bus 254 drivers/ssb/ssb_private.h extern int ssb_gpio_unregister(struct ssb_bus *bus); bus 256 drivers/ssb/ssb_private.h static inline int ssb_gpio_init(struct ssb_bus *bus) bus 260 drivers/ssb/ssb_private.h static inline int ssb_gpio_unregister(struct ssb_bus *bus) bus 1438 drivers/staging/comedi/drivers/adl_pci9118.c int bus = it->options[0]; bus 1446 drivers/staging/comedi/drivers/adl_pci9118.c if (bus || slot) { bus 1448 drivers/staging/comedi/drivers/adl_pci9118.c if (pcidev->bus->number != bus || bus 1456 drivers/staging/comedi/drivers/adl_pci9118.c bus, slot); bus 1210 drivers/staging/fieldbus/anybuss/host.c drv->driver.bus = &anybus_bus; bus 1376 drivers/staging/fieldbus/anybuss/host.c cd->client->dev.bus = &anybus_bus; bus 2406 drivers/staging/fwserial/fwserial.c .bus = &fw_bus_type, bus 203 drivers/staging/greybus/gbphy.c driver->driver.bus = &gbphy_bus_type; bus 244 drivers/staging/greybus/gbphy.c gbphy_dev->dev.bus = &gbphy_bus_type; bus 61 drivers/staging/greybus/usb.c struct usb_bus *bus = hcd_to_bus(hcd); bus 73 drivers/staging/greybus/usb.c if (bus->root_hub) bus 99 drivers/staging/iio/addac/adt7316-i2c.c struct adt7316_bus bus = { bus 108 drivers/staging/iio/addac/adt7316-i2c.c return adt7316_probe(&client->dev, &bus, id->name); bus 93 drivers/staging/iio/addac/adt7316-spi.c struct adt7316_bus bus = { bus 114 drivers/staging/iio/addac/adt7316-spi.c return adt7316_probe(&spi_dev->dev, &bus, spi_dev->modalias); bus 181 drivers/staging/iio/addac/adt7316.c struct adt7316_bus bus; bus 242 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_CONFIG1, config1); bus 306 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_CONFIG1, config1); bus 347 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_CONFIG2, config2); bus 440 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_CONFIG2, config2); bus 500 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_CONFIG2, config2); bus 539 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_CONFIG2, config2); bus 577 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_CONFIG1, config1); bus 615 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_CONFIG3, config3); bus 661 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_CONFIG3, config3); bus 707 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_CONFIG3, config3); bus 746 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_CONFIG3, config3); bus 785 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_CONFIG3, config3); bus 828 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_DAC_CONFIG, dac_config); bus 888 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_DAC_CONFIG, dac_config); bus 943 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_LDAC_CONFIG, bus 985 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_DAC_CONFIG, dac_config); bus 1024 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_DAC_CONFIG, dac_config); bus 1084 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_LDAC_CONFIG, bus 1113 drivers/staging/iio/addac/adt7316.c ret = chip->bus.read(chip->bus.client, bus 1118 drivers/staging/iio/addac/adt7316.c ret = chip->bus.read(chip->bus.client, bus 1127 drivers/staging/iio/addac/adt7316.c ret = chip->bus.read(chip->bus.client, bus 1132 drivers/staging/iio/addac/adt7316.c ret = chip->bus.read(chip->bus.client, bus 1142 drivers/staging/iio/addac/adt7316.c ret = chip->bus.read(chip->bus.client, bus 1147 drivers/staging/iio/addac/adt7316.c ret = chip->bus.read(chip->bus.client, bus 1251 drivers/staging/iio/addac/adt7316.c ret = chip->bus.read(chip->bus.client, offset_addr, &val); bus 1280 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, offset_addr, val); bus 1410 drivers/staging/iio/addac/adt7316.c ret = chip->bus.read(chip->bus.client, bus 1416 drivers/staging/iio/addac/adt7316.c ret = chip->bus.read(chip->bus.client, bus 1456 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, bus 1463 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, bus 1576 drivers/staging/iio/addac/adt7316.c ret = chip->bus.read(chip->bus.client, ADT7316_DEVICE_ID, &id); bus 1594 drivers/staging/iio/addac/adt7316.c ret = chip->bus.read(chip->bus.client, ADT7316_MANUFACTURE_ID, &id); bus 1613 drivers/staging/iio/addac/adt7316.c ret = chip->bus.read(chip->bus.client, ADT7316_DEVICE_REV, &rev); bus 1631 drivers/staging/iio/addac/adt7316.c ret = chip->bus.read(chip->bus.client, ADT7316_SPI_LOCK_STAT, &stat); bus 1738 drivers/staging/iio/addac/adt7316.c ret = chip->bus.read(chip->bus.client, ADT7316_INT_STAT1, &stat1); bus 1787 drivers/staging/iio/addac/adt7316.c ret = chip->bus.read(chip->bus.client, ADT7316_INT_STAT2, &stat2); bus 1806 drivers/staging/iio/addac/adt7316.c irq_type = irqd_get_trigger_type(irq_get_irq_data(chip->bus.irq)); bus 1822 drivers/staging/iio/addac/adt7316.c ret = devm_request_threaded_irq(&indio_dev->dev, chip->bus.irq, bus 1828 drivers/staging/iio/addac/adt7316.c chip->bus.irq); bus 1874 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_INT_MASK2, mask); bus 1888 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_INT_MASK1, mask); bus 1910 drivers/staging/iio/addac/adt7316.c ret = chip->bus.read(chip->bus.client, this_attr->address, &val); bus 1959 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, this_attr->address, val); bus 1990 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_CONFIG1, config1); bus 2127 drivers/staging/iio/addac/adt7316.c int adt7316_probe(struct device *dev, struct adt7316_bus *bus, bus 2141 drivers/staging/iio/addac/adt7316.c chip->bus = *bus; bus 2182 drivers/staging/iio/addac/adt7316.c if (chip->bus.irq > 0) { bus 2188 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_CONFIG1, chip->config1); bus 2192 drivers/staging/iio/addac/adt7316.c ret = chip->bus.write(chip->bus.client, ADT7316_CONFIG3, chip->config3); bus 31 drivers/staging/iio/addac/adt7316.h int adt7316_probe(struct device *dev, struct adt7316_bus *bus, bus 141 drivers/staging/isdn/hysdn/hysdn_defs.h unsigned char bus; /* pci bus the card is connected to */ bus 75 drivers/staging/isdn/hysdn/hysdn_init.c card->bus = akt_pcidev->bus->number; bus 276 drivers/staging/isdn/hysdn/hysdn_procconf.c card->bus, bus 128 drivers/staging/media/imx/imx-media-csi.c return is_parallel_bus(ep) && ep->bus.parallel.bus_width >= 16; bus 720 drivers/staging/media/imx/imx-media-csi.c priv->upstream_ep.bus.parallel.flags : bus 721 drivers/staging/media/imx/imx-media-csi.c priv->upstream_ep.bus.mipi_csi2.flags; bus 43 drivers/staging/media/imx/imx6-mipi-csi2.c struct v4l2_fwnode_bus_mipi_csi2 bus; bus 136 drivers/staging/media/imx/imx6-mipi-csi2.c int lanes = csi2->bus.num_data_lanes; bus 251 drivers/staging/media/imx/imx6-mipi-csi2.c mask = PHY_STOPSTATECLK | (((1 << csi2->bus.num_data_lanes) - 1) << bus 563 drivers/staging/media/imx/imx6-mipi-csi2.c csi2->bus = vep->bus.mipi_csi2; bus 565 drivers/staging/media/imx/imx6-mipi-csi2.c dev_dbg(csi2->dev, "data lanes: %d\n", csi2->bus.num_data_lanes); bus 566 drivers/staging/media/imx/imx6-mipi-csi2.c dev_dbg(csi2->dev, "flags: 0x%08x\n", csi2->bus.flags); bus 250 drivers/staging/media/imx/imx7-mipi-csis.c struct v4l2_fwnode_bus_mipi_csi2 bus; bus 383 drivers/staging/media/imx/imx7-mipi-csis.c mask = (1 << (state->bus.num_data_lanes + 1)) - 1; bus 416 drivers/staging/media/imx/imx7-mipi-csis.c int lanes = state->bus.num_data_lanes; bus 859 drivers/staging/media/imx/imx7-mipi-csis.c state->bus = ep->bus.mipi_csi2; bus 861 drivers/staging/media/imx/imx7-mipi-csis.c dev_dbg(state->dev, "data lanes: %d\n", state->bus.num_data_lanes); bus 862 drivers/staging/media/imx/imx7-mipi-csis.c dev_dbg(state->dev, "flags: 0x%08x\n", state->bus.flags); bus 1022 drivers/staging/media/imx/imx7-mipi-csis.c state->bus.num_data_lanes, state->hs_settle, bus 548 drivers/staging/media/omap4iss/iss_csi2.c csi2->ctrl.vp_out_ctrl = pdata->bus.csi2.vpclk_div; bus 550 drivers/staging/media/omap4iss/iss_csi2.c csi2->ctrl.ecc_enable = pdata->bus.csi2.crc; bus 128 drivers/staging/media/omap4iss/iss_csiphy.c lanes = &subdevs->bus.csi2.lanecfg; bus 35 drivers/staging/most/core.c struct bus_type bus; bus 507 drivers/staging/most/core.c bus_for_each_dev(&mc.bus, NULL, &d, print_links); bus 576 drivers/staging/most/core.c dev = bus_find_device_by_name(&mc.bus, NULL, mdev); bus 1345 drivers/staging/most/core.c bus_for_each_dev(&mc.bus, NULL, comp, disconnect_channels); bus 1397 drivers/staging/most/core.c iface->dev.bus = &mc.bus; bus 1564 drivers/staging/most/core.c mc.bus.name = "most", bus 1565 drivers/staging/most/core.c mc.bus.match = most_match, bus 1567 drivers/staging/most/core.c mc.drv.bus = &mc.bus, bus 1570 drivers/staging/most/core.c err = bus_register(&mc.bus); bus 1592 drivers/staging/most/core.c bus_unregister(&mc.bus); bus 1601 drivers/staging/most/core.c bus_unregister(&mc.bus); bus 101 drivers/staging/most/dim2/dim2.c struct medialb_bus bus; bus 1076 drivers/staging/most/usb/usb.c usb_dev->bus->busnum, bus 1128 drivers/staging/most/usb/usb.c usb_dev->bus->busnum, bus 1132 drivers/staging/most/usb/usb.c usb_dev->bus->busnum, bus 168 drivers/staging/mt7621-pci/pci-mt7621.c static inline u32 mt7621_pci_get_cfgaddr(unsigned int bus, unsigned int slot, bus 171 drivers/staging/mt7621-pci/pci-mt7621.c return (((where & 0xF00) >> 8) << 24) | (bus << 16) | (slot << 11) | bus 175 drivers/staging/mt7621-pci/pci-mt7621.c static void __iomem *mt7621_pcie_map_bus(struct pci_bus *bus, bus 178 drivers/staging/mt7621-pci/pci-mt7621.c struct mt7621_pcie *pcie = bus->sysdata; bus 179 drivers/staging/mt7621-pci/pci-mt7621.c u32 address = mt7621_pci_get_cfgaddr(bus->number, PCI_SLOT(devfn), bus 664 drivers/staging/netlogic/xlr_net.c static int xlr_mii_write(struct mii_bus *bus, int phy_addr, int regnum, u16 val) bus 666 drivers/staging/netlogic/xlr_net.c struct xlr_net_priv *priv = bus->priv; bus 675 drivers/staging/netlogic/xlr_net.c static int xlr_mii_read(struct mii_bus *bus, int phy_addr, int regnum) bus 677 drivers/staging/netlogic/xlr_net.c struct xlr_net_priv *priv = bus->priv; bus 349 drivers/staging/uwb/lc-dev.c uwb_dev->dev.bus->name, bus 412 drivers/staging/uwb/lc-dev.c uwb_dev->dev.bus = &uwb_bus_type; bus 430 drivers/staging/uwb/lc-dev.c macbuf, devbuf, uwb_dev->dev.bus->name, bus 372 drivers/staging/uwb/lc-rc.c macbuf, devbuf, parent_dev->bus->name, dev_name(parent_dev)); bus 35 drivers/staging/uwb/umc-dev.c umc->dev.bus = &umc_bus_type; bus 17 drivers/staging/uwb/umc-drv.c umc_drv->driver.bus = &umc_bus_type; bus 42 drivers/staging/vme/devices/vme_user.c static int bus[VME_USER_BUS_MAX]; bus 509 drivers/staging/vme/devices/vme_user.c if ((cur_bus == bus[i]) && (cur_slot == vdev->num)) bus 774 drivers/staging/vme/devices/vme_user.c MODULE_PARM_DESC(bus, "Enumeration of VMEbus to which the driver is connected"); bus 775 drivers/staging/vme/devices/vme_user.c module_param_array(bus, int, &bus_num, 0000); bus 325 drivers/staging/wusbcore/wusbhc.h usb_hcd = bus_to_hcd(usb_dev->bus); bus 89 drivers/target/loopback/tcm_loop.c .bus = &tcm_loop_lld_bus, bus 389 drivers/target/loopback/tcm_loop.c tl_hba->dev.bus = &tcm_loop_lld_bus; bus 91 drivers/tc/tc.c tdev->bus = tbus; bus 93 drivers/tc/tc.c tdev->dev.bus = &tc_bus_type; bus 77 drivers/tee/optee/device.c optee_device->dev.bus = &tee_bus_type; bus 368 drivers/thunderbolt/domain.c tb->dev.bus = &tb_bus_type; bus 1588 drivers/thunderbolt/switch.c sw->dev.bus = &tb_bus_type; bus 1633 drivers/thunderbolt/switch.c sw->dev.bus = &tb_bus_type; bus 613 drivers/thunderbolt/xdomain.c drv->driver.bus = &tb_bus_type; bus 837 drivers/thunderbolt/xdomain.c svc->dev.bus = &tb_bus_type; bus 1253 drivers/thunderbolt/xdomain.c xd->dev.bus = &tb_bus_type; bus 1064 drivers/tty/hvc/hvc_iucv.c .bus = &iucv_bus, bus 1145 drivers/tty/hvc/hvc_iucv.c priv->dev->bus = &iucv_bus; bus 2579 drivers/tty/mxser.c pdev->bus->number, PCI_SLOT(pdev->devfn)); bus 459 drivers/tty/serdev/core.c serdev->dev.bus = &serdev_bus_type; bus 501 drivers/tty/serdev/core.c ctrl->dev.bus = &serdev_bus_type; bus 713 drivers/tty/serdev/core.c sdrv->driver.bus = &serdev_bus_type; bus 125 drivers/tty/serial/8250/8250_lpss.c struct pci_dev *dma_dev = pci_get_slot(pdev->bus, dma_devfn); bus 36 drivers/tty/serial/8250/8250_men_mcb.c mdev->bus->name); bus 37 drivers/tty/serial/8250/8250_men_mcb.c if (strncmp(mdev->bus->name, "F075", 4) == 0) bus 39 drivers/tty/serial/8250/8250_men_mcb.c else if (strncmp(mdev->bus->name, "F216", 4) == 0) bus 41 drivers/tty/serial/8250/8250_men_mcb.c else if (strncmp(mdev->bus->name, "G215", 4) == 0) bus 43 drivers/tty/serial/8250/8250_men_mcb.c else if (strncmp(mdev->bus->name, "F210", 4) == 0) bus 71 drivers/tty/serial/8250/8250_mid.c mid->dma_dev = pci_get_slot(pdev->bus, bus 121 drivers/tty/serial/8250/8250_mid.c mid->dma_dev = pci_get_slot(pdev->bus, PCI_DEVFN(5, 0)); bus 728 drivers/tty/serial/8250/8250_pci.c pcibios_resource_to_bus(dev->bus, ®ion, &dev->resource[bar]); bus 724 drivers/tty/serial/pch_uart.c dma_dev = pci_get_slot(priv->pdev->bus, bus 256 drivers/tty/synclink.c unsigned char bus; /* expansion bus number (zero based) */ bus 615 drivers/usb/class/usblp.c twoints[0] = usblp->dev->bus->busnum; bus 155 drivers/usb/common/ulpi.c drv->driver.bus = &ulpi_bus; bus 237 drivers/usb/common/ulpi.c ulpi->dev.bus = &ulpi_bus; bus 114 drivers/usb/core/buffer.c struct usb_bus *bus, bus 120 drivers/usb/core/buffer.c struct usb_hcd *hcd = bus_to_hcd(bus); bus 143 drivers/usb/core/buffer.c struct usb_bus *bus, bus 149 drivers/usb/core/buffer.c struct usb_hcd *hcd = bus_to_hcd(bus); bus 471 drivers/usb/core/devices.c struct usb_device *usbdev, struct usb_bus *bus, bus 517 drivers/usb/core/devices.c bus->busnum, level, parent_devnum, bus 542 drivers/usb/core/devices.c bus->bandwidth_allocated, max, bus 543 drivers/usb/core/devices.c (100 * bus->bandwidth_allocated + max / 2) bus 545 drivers/usb/core/devices.c bus->bandwidth_int_reqs, bus 546 drivers/usb/core/devices.c bus->bandwidth_isoc_reqs); bus 579 drivers/usb/core/devices.c file_offset, childdev, bus, bus 592 drivers/usb/core/devices.c struct usb_bus *bus; bus 606 drivers/usb/core/devices.c idr_for_each_entry(&usb_bus_idr, bus, id) { bus 608 drivers/usb/core/devices.c if (!bus_to_hcd(bus)->rh_registered) bus 610 drivers/usb/core/devices.c usb_lock_device(bus->root_hub); bus 612 drivers/usb/core/devices.c bus->root_hub, bus, 0, 0, 0); bus 613 drivers/usb/core/devices.c usb_unlock_device(bus->root_hub); bus 220 drivers/usb/core/devio.c struct usb_hcd *hcd = bus_to_hcd(ps->dev->bus); bus 1364 drivers/usb/core/devio.c ci.busnum = udev->bus->busnum; bus 1608 drivers/usb/core/devio.c if (num_sgs == 1 || num_sgs > ps->dev->bus->sg_tablesize) bus 2338 drivers/usb/core/devio.c if (!ps->dev->bus->no_stop_on_short) bus 2340 drivers/usb/core/devio.c if (ps->dev->bus->sg_tablesize) bus 848 drivers/usb/core/driver.c if (!usb_dev->bus) { bus 891 drivers/usb/core/driver.c new_udriver->drvwrap.driver.bus = &usb_bus_type; bus 953 drivers/usb/core/driver.c new_driver->drvwrap.driver.bus = &usb_bus_type; bus 1176 drivers/usb/core/driver.c if (!PMSG_IS_AUTO(msg) && udev->parent && udev->bus->hs_companion) bus 1178 drivers/usb/core/driver.c &udev->bus->hs_companion->root_hub->dev); bus 1824 drivers/usb/core/driver.c if (w && udev->parent == udev->bus->root_hub && bus 1825 drivers/usb/core/driver.c bus_to_hcd(udev->bus)->cant_recv_wakeups) { bus 1890 drivers/usb/core/driver.c struct usb_hcd *hcd = bus_to_hcd(udev->bus); bus 60 drivers/usb/core/hcd-pci.c if (companion->bus != pdev->bus || bus 887 drivers/usb/core/hcd.c static void usb_bus_init (struct usb_bus *bus) bus 889 drivers/usb/core/hcd.c memset (&bus->devmap, 0, sizeof(struct usb_devmap)); bus 891 drivers/usb/core/hcd.c bus->devnum_next = 1; bus 893 drivers/usb/core/hcd.c bus->root_hub = NULL; bus 894 drivers/usb/core/hcd.c bus->busnum = -1; bus 895 drivers/usb/core/hcd.c bus->bandwidth_allocated = 0; bus 896 drivers/usb/core/hcd.c bus->bandwidth_int_reqs = 0; bus 897 drivers/usb/core/hcd.c bus->bandwidth_isoc_reqs = 0; bus 898 drivers/usb/core/hcd.c mutex_init(&bus->devnum_next_mutex); bus 913 drivers/usb/core/hcd.c static int usb_register_bus(struct usb_bus *bus) bus 919 drivers/usb/core/hcd.c busnum = idr_alloc(&usb_bus_idr, bus, 1, USB_MAXBUS, GFP_KERNEL); bus 924 drivers/usb/core/hcd.c bus->busnum = busnum; bus 927 drivers/usb/core/hcd.c usb_notify_add_bus(bus); bus 929 drivers/usb/core/hcd.c dev_info (bus->controller, "new USB bus registered, assigned bus " bus 930 drivers/usb/core/hcd.c "number %d\n", bus->busnum); bus 946 drivers/usb/core/hcd.c static void usb_deregister_bus (struct usb_bus *bus) bus 948 drivers/usb/core/hcd.c dev_info (bus->controller, "USB bus %d deregistered\n", bus->busnum); bus 956 drivers/usb/core/hcd.c idr_remove(&usb_bus_idr, bus->busnum); bus 959 drivers/usb/core/hcd.c usb_notify_remove_bus(bus); bus 981 drivers/usb/core/hcd.c usb_dev->bus->devnum_next = devnum + 1; bus 982 drivers/usb/core/hcd.c set_bit (devnum, usb_dev->bus->devmap.devicemap); bus 1037 drivers/usb/core/hcd.c void usb_hcd_start_port_resume(struct usb_bus *bus, int portnum) bus 1041 drivers/usb/core/hcd.c if (!(bus->resuming_ports & bit)) { bus 1042 drivers/usb/core/hcd.c bus->resuming_ports |= bit; bus 1043 drivers/usb/core/hcd.c pm_runtime_get_noresume(&bus->root_hub->dev); bus 1059 drivers/usb/core/hcd.c void usb_hcd_end_port_resume(struct usb_bus *bus, int portnum) bus 1063 drivers/usb/core/hcd.c if (bus->resuming_ports & bit) { bus 1064 drivers/usb/core/hcd.c bus->resuming_ports &= ~bit; bus 1065 drivers/usb/core/hcd.c pm_runtime_put_noidle(&bus->root_hub->dev); bus 1270 drivers/usb/core/hcd.c static int hcd_alloc_coherent(struct usb_bus *bus, bus 1282 drivers/usb/core/hcd.c vaddr = hcd_buffer_alloc(bus, size + sizeof(vaddr), bus 1305 drivers/usb/core/hcd.c static void hcd_free_coherent(struct usb_bus *bus, dma_addr_t *dma_handle, bus 1316 drivers/usb/core/hcd.c hcd_buffer_free(bus, size + sizeof(vaddr), *vaddr_handle, *dma_handle); bus 1331 drivers/usb/core/hcd.c hcd_free_coherent(urb->dev->bus, bus 1376 drivers/usb/core/hcd.c hcd_free_coherent(urb->dev->bus, bus 1414 drivers/usb/core/hcd.c urb->dev->bus, mem_flags, bus 1448 drivers/usb/core/hcd.c urb->dev->bus, mem_flags, bus 1528 drivers/usb/core/hcd.c struct usb_hcd *hcd = bus_to_hcd(urb->dev->bus); bus 1619 drivers/usb/core/hcd.c hcd = bus_to_hcd(urb->dev->bus); bus 1635 drivers/usb/core/hcd.c struct usb_hcd *hcd = bus_to_hcd(urb->dev->bus); bus 1760 drivers/usb/core/hcd.c hcd = bus_to_hcd(udev->bus); bus 1841 drivers/usb/core/hcd.c hcd = bus_to_hcd(udev->bus); bus 1958 drivers/usb/core/hcd.c hcd = bus_to_hcd(udev->bus); bus 1974 drivers/usb/core/hcd.c struct usb_hcd *hcd = bus_to_hcd(udev->bus); bus 2013 drivers/usb/core/hcd.c hcd = bus_to_hcd(dev->bus); bus 2063 drivers/usb/core/hcd.c hcd = bus_to_hcd(dev->bus); bus 2099 drivers/usb/core/hcd.c struct usb_hcd *hcd = bus_to_hcd(udev->bus); bus 2112 drivers/usb/core/hcd.c struct usb_hcd *hcd = bus_to_hcd(rhdev->bus); bus 2165 drivers/usb/core/hcd.c struct usb_hcd *hcd = bus_to_hcd(rhdev->bus); bus 2283 drivers/usb/core/hcd.c int usb_bus_start_enum(struct usb_bus *bus, unsigned port_num) bus 2292 drivers/usb/core/hcd.c hcd = bus_to_hcd(bus); bus 887 drivers/usb/core/hub.c clear->hcd = bus_to_hcd(udev->bus); bus 1090 drivers/usb/core/hub.c hcd = bus_to_hcd(hdev->bus); bus 1569 drivers/usb/core/hub.c hcd = bus_to_hcd(hdev->bus); bus 1570 drivers/usb/core/hub.c if (hdev == hdev->bus->root_hub) { bus 1824 drivers/usb/core/hub.c const struct hc_driver *drv = bus_to_hcd(hdev->bus)->driver; bus 2108 drivers/usb/core/hub.c struct usb_bus *bus = udev->bus; bus 2111 drivers/usb/core/hub.c mutex_lock(&bus->devnum_next_mutex); bus 2114 drivers/usb/core/hub.c BUG_ON(test_bit(devnum, bus->devmap.devicemap)); bus 2118 drivers/usb/core/hub.c devnum = find_next_zero_bit(bus->devmap.devicemap, 128, bus 2119 drivers/usb/core/hub.c bus->devnum_next); bus 2121 drivers/usb/core/hub.c devnum = find_next_zero_bit(bus->devmap.devicemap, bus 2123 drivers/usb/core/hub.c bus->devnum_next = (devnum >= 127 ? 1 : devnum + 1); bus 2126 drivers/usb/core/hub.c set_bit(devnum, bus->devmap.devicemap); bus 2129 drivers/usb/core/hub.c mutex_unlock(&bus->devnum_next_mutex); bus 2135 drivers/usb/core/hub.c clear_bit(udev->devnum, udev->bus->devmap.devicemap); bus 2151 drivers/usb/core/hub.c struct usb_hcd *hcd = bus_to_hcd(udev->bus); bus 2311 drivers/usb/core/hub.c if (!udev->bus->is_b_host bus 2313 drivers/usb/core/hub.c && udev->parent == udev->bus->root_hub) { bus 2315 drivers/usb/core/hub.c struct usb_bus *bus = udev->bus; bus 2326 drivers/usb/core/hub.c (port1 == bus->otg_port) ? "" : "non-"); bus 2329 drivers/usb/core/hub.c if (port1 == bus->otg_port) { bus 2330 drivers/usb/core/hub.c bus->b_hnp_enable = 1; bus 2344 drivers/usb/core/hub.c bus->b_hnp_enable = 0; bus 2383 drivers/usb/core/hub.c struct usb_hcd *hcd = bus_to_hcd(udev->bus); bus 2410 drivers/usb/core/hub.c if (IS_ENABLED(CONFIG_USB_OTG) && (udev->bus->b_hnp_enable bus 2411 drivers/usb/core/hub.c || udev->bus->is_b_host)) { bus 2526 drivers/usb/core/hub.c udev->devnum, udev->bus->busnum, bus 2527 drivers/usb/core/hub.c (((udev->bus->busnum-1) * 128) + (udev->devnum-1))); bus 2530 drivers/usb/core/hub.c (((udev->bus->busnum-1) * 128) + (udev->devnum-1))); bus 2702 drivers/usb/core/hub.c hcd = bus_to_hcd(hub->hdev->bus); bus 2970 drivers/usb/core/hub.c struct usb_hcd *hcd = bus_to_hcd(udev->bus); bus 3110 drivers/usb/core/hub.c struct usb_hcd *hcd = bus_to_hcd(udev->bus); bus 3132 drivers/usb/core/hub.c struct usb_hcd *hcd = bus_to_hcd(udev->bus); bus 3762 drivers/usb/core/hub.c hcd = bus_to_hcd(hdev->bus); bus 4178 drivers/usb/core/hub.c hcd = bus_to_hcd(udev->bus); bus 4203 drivers/usb/core/hub.c struct usb_hcd *hcd = bus_to_hcd(udev->bus); bus 4238 drivers/usb/core/hub.c hcd = bus_to_hcd(udev->bus); bus 4266 drivers/usb/core/hub.c struct usb_hcd *hcd = bus_to_hcd(udev->bus); bus 4456 drivers/usb/core/hub.c struct usb_hcd *hcd = bus_to_hcd(udev->bus); bus 4512 drivers/usb/core/hub.c struct usb_hcd *hcd = bus_to_hcd(udev->bus); bus 4539 drivers/usb/core/hub.c struct usb_hcd *hcd = bus_to_hcd(hdev->bus); bus 4553 drivers/usb/core/hub.c if (port1 == hdev->bus->otg_port) bus 4554 drivers/usb/core/hub.c hdev->bus->b_hnp_enable = 0; bus 4621 drivers/usb/core/hub.c if (udev->bus->controller->driver) bus 4622 drivers/usb/core/hub.c driver_name = udev->bus->controller->driver->name; bus 4624 drivers/usb/core/hub.c driver_name = udev->bus->sysdev->driver->name; bus 4940 drivers/usb/core/hub.c else if (port1 != udev->bus->otg_port || hdev->parent) bus 4964 drivers/usb/core/hub.c struct usb_hcd *hcd = bus_to_hcd(hdev->bus); bus 5028 drivers/usb/core/hub.c udev = usb_alloc_dev(hdev, hdev->bus, port1); bus 5206 drivers/usb/core/hub.c if (hub->hdev->bus->is_b_host) bus 5706 drivers/usb/core/hub.c struct usb_hcd *hcd = bus_to_hcd(udev->bus); bus 292 drivers/usb/core/message.c dev_err(io->dev->bus->controller, bus 385 drivers/usb/core/message.c if (dev->bus->sg_tablesize > 0) { bus 1220 drivers/usb/core/message.c struct usb_hcd *hcd = bus_to_hcd(dev->bus); bus 1369 drivers/usb/core/message.c struct usb_hcd *hcd = bus_to_hcd(dev->bus); bus 1529 drivers/usb/core/message.c struct usb_hcd *hcd = bus_to_hcd(dev->bus); bus 1817 drivers/usb/core/message.c struct usb_hcd *hcd = bus_to_hcd(dev->bus); bus 1952 drivers/usb/core/message.c intf->dev.bus = &usb_bus_type; bus 1965 drivers/usb/core/message.c dev_set_name(&intf->dev, "%d-%s:%d.%d", dev->bus->busnum, bus 135 drivers/usb/core/port.c hcd = bus_to_hcd(udev->bus); bus 456 drivers/usb/core/port.c hcd = bus_to_hcd(hdev->bus); bus 457 drivers/usb/core/port.c peer_hcd = bus_to_hcd(peer_hdev->bus); bus 496 drivers/usb/core/port.c struct usb_hcd *hcd = bus_to_hcd(hdev->bus); bus 558 drivers/usb/core/quirks.c hcd = bus_to_hcd(udev->bus); bus 205 drivers/usb/core/sysfs.c return sprintf(buf, "%d\n", udev->bus->busnum); bus 933 drivers/usb/core/sysfs.c struct usb_bus *usb_bus = rh_usb_dev->bus; bus 947 drivers/usb/core/sysfs.c struct usb_bus *usb_bus = rh_usb_dev->bus; bus 974 drivers/usb/core/sysfs.c struct usb_hcd *hcd = bus_to_hcd(usb_dev->bus); bus 990 drivers/usb/core/sysfs.c struct usb_hcd *hcd = bus_to_hcd(usb_dev->bus); bus 457 drivers/usb/core/urb.c } else if (urb->num_sgs && !urb->dev->bus->no_sg_constraint && bus 160 drivers/usb/core/usb-acpi.c port1 = usb_hcd_find_raw_port_number(bus_to_hcd(udev->bus), bus 416 drivers/usb/core/usb.c hcd = bus_to_hcd(udev->bus); bus 434 drivers/usb/core/usb.c if (add_uevent_var(env, "BUSNUM=%03d", usb_dev->bus->busnum)) bus 517 drivers/usb/core/usb.c usb_dev->bus->busnum, usb_dev->devnum); bus 532 drivers/usb/core/usb.c static unsigned usb_bus_is_wusb(struct usb_bus *bus) bus 534 drivers/usb/core/usb.c struct usb_hcd *hcd = bus_to_hcd(bus); bus 576 drivers/usb/core/usb.c struct usb_bus *bus, unsigned port1) bus 579 drivers/usb/core/usb.c struct usb_hcd *usb_hcd = bus_to_hcd(bus); bus 594 drivers/usb/core/usb.c usb_put_hcd(bus_to_hcd(bus)); bus 600 drivers/usb/core/usb.c dev->dev.bus = &usb_bus_type; bus 613 drivers/usb/core/usb.c dev->dev.dma_mask = bus->sysdev->dma_mask; bus 614 drivers/usb/core/usb.c dev->dev.dma_pfn_offset = bus->sysdev->dma_pfn_offset; bus 615 drivers/usb/core/usb.c set_dev_node(&dev->dev, dev_to_node(bus->sysdev)); bus 639 drivers/usb/core/usb.c dev->dev.parent = bus->controller; bus 640 drivers/usb/core/usb.c device_set_of_node_from_dev(&dev->dev, bus->sysdev); bus 641 drivers/usb/core/usb.c dev_set_name(&dev->dev, "usb%d", bus->busnum); bus 663 drivers/usb/core/usb.c dev_set_name(&dev->dev, "%d-%s", bus->busnum, dev->devpath); bus 676 drivers/usb/core/usb.c dev->bus = bus; bus 689 drivers/usb/core/usb.c dev->wusb = usb_bus_is_wusb(bus) ? 1 : 0; bus 908 drivers/usb/core/usb.c if (!dev || !dev->bus) bus 910 drivers/usb/core/usb.c return hcd_buffer_alloc(dev->bus, size, mem_flags, dma); bus 928 drivers/usb/core/usb.c if (!dev || !dev->bus) bus 932 drivers/usb/core/usb.c hcd_buffer_free(dev->bus, size, addr, dma); bus 4434 drivers/usb/dwc2/gadget.c driver->driver.bus = NULL; bus 4065 drivers/usb/dwc2/hcd.c struct usb_bus *bus = hcd_to_bus(hcd); bus 4068 drivers/usb/dwc2/hcd.c bus->bandwidth_allocated += bw / urb->interval; bus 4070 drivers/usb/dwc2/hcd.c bus->bandwidth_isoc_reqs++; bus 4072 drivers/usb/dwc2/hcd.c bus->bandwidth_int_reqs++; bus 4078 drivers/usb/dwc2/hcd.c struct usb_bus *bus = hcd_to_bus(hcd); bus 4081 drivers/usb/dwc2/hcd.c bus->bandwidth_allocated -= bw / urb->interval; bus 4083 drivers/usb/dwc2/hcd.c bus->bandwidth_isoc_reqs--; bus 4085 drivers/usb/dwc2/hcd.c bus->bandwidth_int_reqs--; bus 4227 drivers/usb/dwc2/hcd.c struct usb_bus *bus = hcd_to_bus(hcd); bus 4258 drivers/usb/dwc2/hcd.c if (bus->root_hub) { bus 65 drivers/usb/early/ehci-dbgp.c u32 bus; bus 395 drivers/usb/early/ehci-dbgp.c static u32 __init __find_dbgp(u32 bus, u32 slot, u32 func) bus 399 drivers/usb/early/ehci-dbgp.c class = read_pci_config(bus, slot, func, PCI_CLASS_REVISION); bus 403 drivers/usb/early/ehci-dbgp.c return find_cap(bus, slot, func, PCI_CAP_ID_EHCI_DEBUG); bus 408 drivers/usb/early/ehci-dbgp.c u32 bus, slot, func; bus 410 drivers/usb/early/ehci-dbgp.c for (bus = 0; bus < 256; bus++) { bus 415 drivers/usb/early/ehci-dbgp.c cap = __find_dbgp(bus, slot, func); bus 421 drivers/usb/early/ehci-dbgp.c *rbus = bus; bus 687 drivers/usb/early/ehci-dbgp.c dword = read_pci_config(ehci_dev.bus, ehci_dev.slot, ehci_dev.func, bus 691 drivers/usb/early/ehci-dbgp.c write_pci_config(ehci_dev.bus, ehci_dev.slot, ehci_dev.func, 0x74, bus 700 drivers/usb/early/ehci-dbgp.c vendorid = read_pci_config(ehci_dev.bus, ehci_dev.slot, ehci_dev.func, bus 724 drivers/usb/early/ehci-dbgp.c cap = read_pci_config(ehci_dev.bus, ehci_dev.slot, bus 730 drivers/usb/early/ehci-dbgp.c write_pci_config_byte(ehci_dev.bus, ehci_dev.slot, bus 739 drivers/usb/early/ehci-dbgp.c cap = read_pci_config(ehci_dev.bus, ehci_dev.slot, bus 747 drivers/usb/early/ehci-dbgp.c write_pci_config_byte(ehci_dev.bus, ehci_dev.slot, bus 752 drivers/usb/early/ehci-dbgp.c write_pci_config_byte(ehci_dev.bus, ehci_dev.slot, ehci_dev.func, bus 833 drivers/usb/early/ehci-dbgp.c u32 bus, slot, func, cap; bus 849 drivers/usb/early/ehci-dbgp.c cap = find_dbgp(dbgp_num, &bus, &slot, &func); bus 853 drivers/usb/early/ehci-dbgp.c dbgp_printk("Found EHCI debug port on %02x:%02x.%1x\n", bus, slot, bus 856 drivers/usb/early/ehci-dbgp.c debug_port = read_pci_config(bus, slot, func, cap); bus 867 drivers/usb/early/ehci-dbgp.c bar_val = read_pci_config(bus, slot, func, PCI_BASE_ADDRESS_0); bus 876 drivers/usb/early/ehci-dbgp.c byte = read_pci_config_byte(bus, slot, func, 0x04); bus 879 drivers/usb/early/ehci-dbgp.c write_pci_config_byte(bus, slot, func, 0x04, byte); bus 895 drivers/usb/early/ehci-dbgp.c ehci_dev.bus = bus; bus 38 drivers/usb/early/xhci-dbc.c static void __iomem * __init xdbc_map_pci_mmio(u32 bus, u32 dev, u32 func) bus 45 drivers/usb/early/xhci-dbc.c val = read_pci_config(bus, dev, func, PCI_BASE_ADDRESS_0); bus 46 drivers/usb/early/xhci-dbc.c write_pci_config(bus, dev, func, PCI_BASE_ADDRESS_0, ~0); bus 47 drivers/usb/early/xhci-dbc.c sz = read_pci_config(bus, dev, func, PCI_BASE_ADDRESS_0); bus 48 drivers/usb/early/xhci-dbc.c write_pci_config(bus, dev, func, PCI_BASE_ADDRESS_0, val); bus 60 drivers/usb/early/xhci-dbc.c val = read_pci_config(bus, dev, func, PCI_BASE_ADDRESS_0 + 4); bus 61 drivers/usb/early/xhci-dbc.c write_pci_config(bus, dev, func, PCI_BASE_ADDRESS_0 + 4, ~0); bus 62 drivers/usb/early/xhci-dbc.c sz = read_pci_config(bus, dev, func, PCI_BASE_ADDRESS_0 + 4); bus 63 drivers/usb/early/xhci-dbc.c write_pci_config(bus, dev, func, PCI_BASE_ADDRESS_0 + 4, val); bus 80 drivers/usb/early/xhci-dbc.c byte = read_pci_config_byte(bus, dev, func, PCI_COMMAND); bus 83 drivers/usb/early/xhci-dbc.c write_pci_config_byte(bus, dev, func, PCI_COMMAND, byte); bus 109 drivers/usb/early/xhci-dbc.c u32 bus, dev, func, class; bus 111 drivers/usb/early/xhci-dbc.c for (bus = 0; bus < XDBC_PCI_MAX_BUSES; bus++) { bus 115 drivers/usb/early/xhci-dbc.c class = read_pci_config(bus, dev, func, PCI_CLASS_REVISION); bus 122 drivers/usb/early/xhci-dbc.c *b = bus; bus 604 drivers/usb/early/xhci-dbc.c u32 bus, dev, func, offset; bus 622 drivers/usb/early/xhci-dbc.c ret = xdbc_find_dbgp(dbgp_num, &bus, &dev, &func); bus 628 drivers/usb/early/xhci-dbc.c xdbc.vendor = read_pci_config_16(bus, dev, func, PCI_VENDOR_ID); bus 629 drivers/usb/early/xhci-dbc.c xdbc.device = read_pci_config_16(bus, dev, func, PCI_DEVICE_ID); bus 630 drivers/usb/early/xhci-dbc.c xdbc.bus = bus; bus 635 drivers/usb/early/xhci-dbc.c xdbc.xhci_base = xdbc_map_pci_mmio(bus, dev, func); bus 757 drivers/usb/early/xhci-dbc.c cmd = read_pci_config_byte(xdbc.bus, xdbc.dev, xdbc.func, PCI_COMMAND); bus 760 drivers/usb/early/xhci-dbc.c write_pci_config_byte(xdbc.bus, xdbc.dev, xdbc.func, PCI_COMMAND, cmd); bus 143 drivers/usb/early/xhci-dbc.h u32 bus; bus 1835 drivers/usb/gadget/udc/bcm63xx_udc.c driver->driver.bus = NULL; bus 1006 drivers/usb/gadget/udc/fotg210-udc.c driver->driver.bus = NULL; bus 2279 drivers/usb/gadget/udc/fsl_qe_udc.c driver->driver.bus = NULL; bus 1949 drivers/usb/gadget/udc/fsl_udc_core.c driver->driver.bus = NULL; bus 1314 drivers/usb/gadget/udc/fusb300_udc.c driver->driver.bus = NULL; bus 1373 drivers/usb/gadget/udc/goku_udc.c driver->driver.bus = NULL; bus 1906 drivers/usb/gadget/udc/gr_udc.c driver->driver.bus = NULL; bus 1457 drivers/usb/gadget/udc/m66592-udc.c driver->driver.bus = NULL; bus 1245 drivers/usb/gadget/udc/mv_u3d_core.c driver->driver.bus = NULL; bus 1361 drivers/usb/gadget/udc/mv_udc_core.c driver->driver.bus = NULL; bus 1451 drivers/usb/gadget/udc/net2272.c driver->driver.bus = NULL; bus 2430 drivers/usb/gadget/udc/net2280.c driver->driver.bus = NULL; bus 2064 drivers/usb/gadget/udc/omap_udc.c driver->driver.bus = NULL; bus 2967 drivers/usb/gadget/udc/pch_udc.c driver->driver.bus = NULL; bus 1962 drivers/usb/gadget/udc/snps_udc_core.c driver->driver.bus = NULL; bus 70 drivers/usb/host/bcma-hcd.c if (dev->bus->chipinfo.id == 0x4716) { bus 73 drivers/usb/host/bcma-hcd.c tmp = bcma_cpu_clock(&dev->bus->drv_mips); bus 189 drivers/usb/host/bcma-hcd.c pmu_core = bcma_find_core(core->bus, BCMA_CORE_PMU); bus 270 drivers/usb/host/bcma-hcd.c struct bcma_chipinfo *ci = &core->bus->chipinfo; bus 347 drivers/usb/host/bcma-hcd.c struct bcma_chipinfo *chipinfo = &dev->bus->chipinfo; bus 335 drivers/usb/host/ehci-dbg.c struct usb_bus *bus; bus 479 drivers/usb/host/ehci-dbg.c hcd = bus_to_hcd(buf->bus); bus 522 drivers/usb/host/ehci-dbg.c ehci = hcd_to_ehci(bus_to_hcd(buf->bus)); bus 637 drivers/usb/host/ehci-dbg.c hcd = bus_to_hcd(buf->bus); bus 765 drivers/usb/host/ehci-dbg.c hcd = bus_to_hcd(buf->bus); bus 777 drivers/usb/host/ehci-dbg.c hcd->self.controller->bus->name, bus 789 drivers/usb/host/ehci-dbg.c hcd->self.controller->bus->name, bus 915 drivers/usb/host/ehci-dbg.c static struct debug_buffer *alloc_buffer(struct usb_bus *bus, bus 923 drivers/usb/host/ehci-dbg.c buf->bus = bus; bus 1028 drivers/usb/host/ehci-dbg.c struct usb_bus *bus = &ehci_to_hcd(ehci)->self; bus 1030 drivers/usb/host/ehci-dbg.c ehci->debug_dir = debugfs_create_dir(bus->bus_name, ehci_debug_root); bus 1032 drivers/usb/host/ehci-dbg.c debugfs_create_file("async", S_IRUGO, ehci->debug_dir, bus, bus 1034 drivers/usb/host/ehci-dbg.c debugfs_create_file("bandwidth", S_IRUGO, ehci->debug_dir, bus, bus 1036 drivers/usb/host/ehci-dbg.c debugfs_create_file("periodic", S_IRUGO, ehci->debug_dir, bus, bus 1038 drivers/usb/host/ehci-dbg.c debugfs_create_file("registers", S_IRUGO, ehci->debug_dir, bus, bus 1078 drivers/usb/host/ehci-dbg.c static inline void create_debug_files(struct ehci_hcd *bus) { } bus 1079 drivers/usb/host/ehci-dbg.c static inline void remove_debug_files(struct ehci_hcd *bus) { } bus 28 drivers/usb/host/ehci-hub.c udev->bus->root_hub->speed < USB_SPEED_HIGH; bus 757 drivers/usb/host/ehci-hub.c struct usb_hcd *hcd = bus_to_hcd(udev->bus); bus 278 drivers/usb/host/ehci-mv.c .bus = &platform_bus_type, bus 185 drivers/usb/host/ehci-npcm7xx.c .bus = &platform_bus_type, bus 138 drivers/usb/host/ehci-sched.c hcd_to_ehci(bus_to_hcd(udev->bus)); bus 157 drivers/usb/host/ehci-spear.c .bus = &platform_bus_type, bus 471 drivers/usb/host/fhci-hcd.c if (!urb || !urb->dev || !urb->dev->bus) bus 315 drivers/usb/host/fotg210-hcd.c struct usb_bus *bus; bus 456 drivers/usb/host/fotg210-hcd.c hcd = bus_to_hcd(buf->bus); bus 531 drivers/usb/host/fotg210-hcd.c hcd = bus_to_hcd(buf->bus); bus 649 drivers/usb/host/fotg210-hcd.c hcd = bus_to_hcd(buf->bus); bus 661 drivers/usb/host/fotg210-hcd.c hcd->self.controller->bus->name, bus 674 drivers/usb/host/fotg210-hcd.c hcd->self.controller->bus->name, bus 744 drivers/usb/host/fotg210-hcd.c *alloc_buffer(struct usb_bus *bus, ssize_t (*fill_func)(struct debug_buffer *)) bus 751 drivers/usb/host/fotg210-hcd.c buf->bus = bus; bus 848 drivers/usb/host/fotg210-hcd.c struct usb_bus *bus = &fotg210_to_hcd(fotg210)->self; bus 851 drivers/usb/host/fotg210-hcd.c root = debugfs_create_dir(bus->bus_name, fotg210_debug_root); bus 854 drivers/usb/host/fotg210-hcd.c debugfs_create_file("async", S_IRUGO, root, bus, &debug_async_fops); bus 855 drivers/usb/host/fotg210-hcd.c debugfs_create_file("periodic", S_IRUGO, root, bus, bus 857 drivers/usb/host/fotg210-hcd.c debugfs_create_file("registers", S_IRUGO, root, bus, bus 605 drivers/usb/host/ohci-dbg.c hcd->self.controller->bus->name, bus 764 drivers/usb/host/ohci-dbg.c struct usb_bus *bus = &ohci_to_hcd(ohci)->self; bus 767 drivers/usb/host/ohci-dbg.c root = debugfs_create_dir(bus->bus_name, ohci_debug_root); bus 77 drivers/usb/host/ohci-pci.c b = pci_get_slot (pdev->bus, PCI_DEVFN (PCI_SLOT (pdev->devfn), 1)); bus 4323 drivers/usb/host/oxu210hp-hcd.c .bus = &platform_bus_type bus 2091 drivers/usb/host/r8a66597-hcd.c struct usb_bus *bus; bus 2097 drivers/usb/host/r8a66597-hcd.c bus = idr_find(&usb_bus_idr, hcd->self.busnum); bus 2098 drivers/usb/host/r8a66597-hcd.c if (bus && bus->root_hub) { bus 2099 drivers/usb/host/r8a66597-hcd.c collect_usb_address_map(bus->root_hub, now_map); bus 2100 drivers/usb/host/r8a66597-hcd.c update_usb_address_map(r8a66597, bus->root_hub, now_map); bus 45 drivers/usb/host/ssb-hcd.c if (dev->id.revision == 2 && dev->bus->chip_id == 0x5354) { bus 159 drivers/usb/host/ssb-hcd.c chipid_top = (dev->bus->chip_id & 0xFF00); bus 263 drivers/usb/host/xhci-debugfs.c xhci = hcd_to_xhci(bus_to_hcd(dev->udev->bus)); bus 283 drivers/usb/host/xhci-debugfs.c xhci = hcd_to_xhci(bus_to_hcd(dev->udev->bus)); bus 188 drivers/usb/host/xhci-plat.c else if (sysdev->bus == &pci_bus_type) bus 661 drivers/usb/host/xhci-ring.c struct usb_hcd *hcd = bus_to_hcd(urb->dev->bus); bus 3044 drivers/usb/host/xhci-ring.c ret = usb_hcd_link_urb_to_ep(bus_to_hcd(urb->dev->bus), urb); bus 3912 drivers/usb/host/xhci-ring.c usb_hcd_unlink_urb_from_ep(bus_to_hcd(urb->dev->bus), urb); bus 98 drivers/usb/misc/ehset.c if (hub_udev != dev->bus->root_hub) { bus 52 drivers/usb/misc/lvstest.c hcd = bus_to_hcd(hdev->bus); bus 54 drivers/usb/misc/lvstest.c udev = usb_alloc_dev(hdev, hdev->bus, lvs->portnum); bus 77 drivers/usb/misc/lvstest.c struct usb_hcd *hcd = bus_to_hcd(hdev->bus); bus 331 drivers/usb/misc/lvstest.c struct usb_hcd *hcd = bus_to_hcd(hdev->bus); bus 571 drivers/usb/mon/mon_bin.c ep->busnum = urb->dev->bus->busnum; bus 659 drivers/usb/mon/mon_bin.c ep->busnum = urb->dev->bus->busnum; bus 212 drivers/usb/mon/mon_text.c ep->busnum = urb->dev->bus->busnum; bus 284 drivers/usb/mon/mon_text.c ep->busnum = urb->dev->bus->busnum; bus 2800 drivers/usb/musb/musb_core.c .bus = &platform_bus_type, bus 176 drivers/usb/serial/bus.c driver->driver.bus = &usb_serial_bus_type; bus 981 drivers/usb/serial/usb-serial.c port->dev.bus = &usb_serial_bus_type; bus 115 drivers/usb/storage/onetouch.c "retval %d\n", onetouch->udev->bus->bus_name, bus 95 drivers/usb/storage/scsiglue.c struct device *dev = us->pusb_dev->bus->sysdev; bus 138 drivers/usb/storage/scsiglue.c if (!hcd_uses_dma(bus_to_hcd(us->pusb_dev->bus)) || bus 139 drivers/usb/storage/scsiglue.c (bus_to_hcd(us->pusb_dev->bus)->localmem_pool != NULL)) bus 61 drivers/usb/storage/uas-detect.h struct usb_hcd *hcd = bus_to_hcd(udev->bus); bus 127 drivers/usb/storage/uas-detect.h if (udev->bus->sg_tablesize == 0) { bus 461 drivers/usb/storage/uas.c urb->num_sgs = udev->bus->sg_tablesize ? sdb->table.nents : 0; bus 1001 drivers/usb/storage/uas.c shost->sg_tablesize = udev->bus->sg_tablesize; bus 926 drivers/usb/storage/usb.c if (usb_dev->bus->sg_tablesize) { bus 927 drivers/usb/storage/usb.c return usb_dev->bus->sg_tablesize; bus 245 drivers/usb/typec/bus.c drv->driver.bus = &typec_bus; bus 526 drivers/usb/typec/class.c alt->adev.dev.bus = &typec_bus; bus 224 drivers/usb/usbip/stub_dev.c int busnum = udev->bus->busnum; bus 317 drivers/usb/usbip/stub_dev.c if (!strcmp(udev->bus->bus_name, "vhci_hcd")) { bus 329 drivers/usb/usbip/stub_dev.c udev->bus->busnum, udev->devnum); bus 497 drivers/usb/usbip/stub_rx.c if (!udev->bus->sg_tablesize) { bus 128 drivers/usb/usbip/usbip_common.c udev->bus->bus_name); bus 330 drivers/usb/usbip/usbip_common.h return udev->bus->busnum; bus 317 drivers/vfio/mdev/mdev_core.c mdev->dev.bus = &mdev_bus_type; bus 90 drivers/vfio/mdev/mdev_driver.c drv->driver.bus = &mdev_bus_type; bus 39 drivers/vfio/mdev/mdev_private.h #define dev_is_mdev(d) ((d)->bus == &mdev_bus_type) bus 81 drivers/vfio/pci/vfio_pci.c if (single_vga || !vfio_vga_disabled() || pci_is_root_bus(pdev->bus)) bus 85 drivers/vfio/pci/vfio_pci.c max_busnr = pci_bus_max_busnr(pdev->bus); bus 90 drivers/vfio/pci/vfio_pci.c pci_domain_nr(tmp->bus) != pci_domain_nr(pdev->bus) || bus 91 drivers/vfio/pci/vfio_pci.c pci_is_root_bus(tmp->bus)) bus 94 drivers/vfio/pci/vfio_pci.c if (tmp->bus->number >= pdev->bus->number && bus 95 drivers/vfio/pci/vfio_pci.c tmp->bus->number <= max_busnr) { bus 575 drivers/vfio/pci/vfio_pci.c fill->devices[fill->cur].segment = pci_domain_nr(pdev->bus); bus 576 drivers/vfio/pci/vfio_pci.c fill->devices[fill->cur].bus = pdev->bus->number; bus 616 drivers/vfio/pci/vfio_pci.c for (; pdev; pdev = pdev->bus->self) bus 617 drivers/vfio/pci/vfio_pci.c if (pdev->bus == slot->bus) bus 649 drivers/vfio/pci/vfio_pci.c pci_walk_bus(pdev->bus, vfio_pci_walk_wrapper, &walk); bus 962 drivers/vfio/pci/vfio_pci.c else if (pci_probe_reset_bus(vdev->pdev->bus)) bus 1034 drivers/vfio/pci/vfio_pci.c else if (pci_probe_reset_bus(vdev->pdev->bus)) bus 1494 drivers/vfio/pci/vfio_pci.c if (pci_is_root_bus(vdev->pdev->bus) || bus 1580 drivers/vfio/pci/vfio_pci.c else if (pci_probe_reset_bus(vdev->pdev->bus)) bus 399 drivers/vfio/pci/vfio_pci_nvlink2.c struct pci_controller *hose = pci_bus_to_host(npdev->bus); bus 130 drivers/vfio/vfio.c if (group || !noiommu || iommu_present(dev->bus)) bus 1177 drivers/vfio/vfio_iommu_type1.c struct bus_type **bus = data; bus 1179 drivers/vfio/vfio_iommu_type1.c if (*bus && *bus != dev->bus) bus 1182 drivers/vfio/vfio_iommu_type1.c *bus = dev->bus; bus 1403 drivers/vfio/vfio_iommu_type1.c static bool vfio_bus_is_mdev(struct bus_type *bus) bus 1410 drivers/vfio/vfio_iommu_type1.c ret = (bus == mdev_bus); bus 1658 drivers/vfio/vfio_iommu_type1.c struct bus_type *bus = NULL; bus 1692 drivers/vfio/vfio_iommu_type1.c ret = iommu_group_for_each_dev(iommu_group, &bus, vfio_bus_type); bus 1696 drivers/vfio/vfio_iommu_type1.c if (vfio_bus_is_mdev(bus)) { bus 1719 drivers/vfio/vfio_iommu_type1.c bus = iommu_device->bus; bus 1722 drivers/vfio/vfio_iommu_type1.c domain->domain = iommu_domain_alloc(bus); bus 1783 drivers/vfio/vfio_iommu_type1.c iommu_capable(bus, IOMMU_CAP_INTR_REMAP); bus 1792 drivers/vfio/vfio_iommu_type1.c if (iommu_capable(bus, IOMMU_CAP_CACHE_COHERENCY)) bus 1002 drivers/video/fbdev/arkfb.c pcibios_bus_to_resource(dev->bus, &vga_res, &bus_reg); bus 581 drivers/video/fbdev/intelfb/intelfbdrv.c pdev->bus->number, PCI_SLOT(pdev->devfn), bus 184 drivers/video/fbdev/intelfb/intelfbhw.c bridge_dev = pci_get_domain_bus_and_slot(pci_domain_nr(pdev->bus), 0, bus 993 drivers/video/fbdev/matrox/matroxfb_DAC1064.c if (b == minfo->pcidev->bus->number) { bus 686 drivers/video/fbdev/nvidia/nv_hw.c int domain = pci_domain_nr(par->pci_dev->bus); bus 243 drivers/video/fbdev/nvidia/nv_setup.c dev = pci_get_domain_bus_and_slot(pci_domain_nr(par->pci_dev->bus), bus 279 drivers/video/fbdev/pmag-aa-fb.c .bus = &tc_bus_type, bus 269 drivers/video/fbdev/pmag-ba-fb.c .bus = &tc_bus_type, bus 189 drivers/video/fbdev/pmagb-b-fb.c struct tc_bus *tbus = to_tc_dev(info->device)->bus; bus 387 drivers/video/fbdev/pmagb-b-fb.c .bus = &tc_bus_type, bus 162 drivers/video/fbdev/riva/nv_driver.c int domain = pci_domain_nr(par->pdev->bus); bus 1120 drivers/video/fbdev/riva/riva_hw.c int domain = pci_domain_nr(pdev->bus); bus 2113 drivers/video/fbdev/riva/riva_hw.c int domain = pci_domain_nr(pdev->bus); bus 1170 drivers/video/fbdev/s3fb.c pcibios_bus_to_resource(dev->bus, &vga_res, &bus_reg); bus 5880 drivers/video/fbdev/sis/sis_main.c ivideo->pcibus = pdev->bus->number; bus 6067 drivers/video/fbdev/sis/sis_main.c ivideo->lpcdev = pci_get_slot(ivideo->nbridge->bus, (2 << 3)); bus 36 drivers/video/fbdev/tgafb.c #define TGA_BUS_TC(dev) (dev->bus == &tc_bus_type) bus 136 drivers/video/fbdev/tgafb.c .bus = &tc_bus_type, bus 1506 drivers/video/fbdev/tgafb.c to_pci_dev(dev)->bus->number, bus 15 drivers/video/fbdev/via/via_aux.c struct via_aux_bus *bus; bus 20 drivers/video/fbdev/via/via_aux.c bus = kmalloc(sizeof(*bus), GFP_KERNEL); bus 21 drivers/video/fbdev/via/via_aux.c if (!bus) bus 24 drivers/video/fbdev/via/via_aux.c bus->adap = adap; bus 25 drivers/video/fbdev/via/via_aux.c INIT_LIST_HEAD(&bus->drivers); bus 27 drivers/video/fbdev/via/via_aux.c via_aux_edid_probe(bus); bus 28 drivers/video/fbdev/via/via_aux.c via_aux_vt1636_probe(bus); bus 29 drivers/video/fbdev/via/via_aux.c via_aux_vt1632_probe(bus); bus 30 drivers/video/fbdev/via/via_aux.c via_aux_vt1631_probe(bus); bus 31 drivers/video/fbdev/via/via_aux.c via_aux_vt1625_probe(bus); bus 32 drivers/video/fbdev/via/via_aux.c via_aux_vt1622_probe(bus); bus 33 drivers/video/fbdev/via/via_aux.c via_aux_vt1621_probe(bus); bus 34 drivers/video/fbdev/via/via_aux.c via_aux_sii164_probe(bus); bus 35 drivers/video/fbdev/via/via_aux.c via_aux_ch7301_probe(bus); bus 37 drivers/video/fbdev/via/via_aux.c return bus; bus 40 drivers/video/fbdev/via/via_aux.c void via_aux_free(struct via_aux_bus *bus) bus 44 drivers/video/fbdev/via/via_aux.c if (!bus) bus 47 drivers/video/fbdev/via/via_aux.c list_for_each_entry_safe(pos, n, &bus->drivers, chain) { bus 56 drivers/video/fbdev/via/via_aux.c kfree(bus); bus 59 drivers/video/fbdev/via/via_aux.c const struct fb_videomode *via_aux_get_preferred_mode(struct via_aux_bus *bus) bus 64 drivers/video/fbdev/via/via_aux.c if (!bus) bus 67 drivers/video/fbdev/via/via_aux.c list_for_each_entry(pos, &bus->drivers, chain) { bus 26 drivers/video/fbdev/via/via_aux.h struct via_aux_bus *bus; /* the I2C bus used */ bus 39 drivers/video/fbdev/via/via_aux.h void via_aux_free(struct via_aux_bus *bus); bus 40 drivers/video/fbdev/via/via_aux.h const struct fb_videomode *via_aux_get_preferred_mode(struct via_aux_bus *bus); bus 51 drivers/video/fbdev/via/via_aux.h list_add_tail(&data->chain, &data->bus->drivers); bus 62 drivers/video/fbdev/via/via_aux.h return i2c_transfer(drv->bus->adap, msg, 2) == 2; bus 67 drivers/video/fbdev/via/via_aux.h void via_aux_ch7301_probe(struct via_aux_bus *bus); bus 68 drivers/video/fbdev/via/via_aux.h void via_aux_edid_probe(struct via_aux_bus *bus); bus 69 drivers/video/fbdev/via/via_aux.h void via_aux_sii164_probe(struct via_aux_bus *bus); bus 70 drivers/video/fbdev/via/via_aux.h void via_aux_vt1636_probe(struct via_aux_bus *bus); bus 71 drivers/video/fbdev/via/via_aux.h void via_aux_vt1632_probe(struct via_aux_bus *bus); bus 72 drivers/video/fbdev/via/via_aux.h void via_aux_vt1631_probe(struct via_aux_bus *bus); bus 73 drivers/video/fbdev/via/via_aux.h void via_aux_vt1625_probe(struct via_aux_bus *bus); bus 74 drivers/video/fbdev/via/via_aux.h void via_aux_vt1622_probe(struct via_aux_bus *bus); bus 75 drivers/video/fbdev/via/via_aux.h void via_aux_vt1621_probe(struct via_aux_bus *bus); bus 16 drivers/video/fbdev/via/via_aux_ch7301.c static void probe(struct via_aux_bus *bus, u8 addr) bus 19 drivers/video/fbdev/via/via_aux_ch7301.c .bus = bus, bus 31 drivers/video/fbdev/via/via_aux_ch7301.c void via_aux_ch7301_probe(struct via_aux_bus *bus) bus 33 drivers/video/fbdev/via/via_aux_ch7301.c probe(bus, 0x75); bus 34 drivers/video/fbdev/via/via_aux_ch7301.c probe(bus, 0x76); bus 72 drivers/video/fbdev/via/via_aux_edid.c void via_aux_edid_probe(struct via_aux_bus *bus) bus 75 drivers/video/fbdev/via/via_aux_edid.c .bus = bus, bus 16 drivers/video/fbdev/via/via_aux_sii164.c static void probe(struct via_aux_bus *bus, u8 addr) bus 19 drivers/video/fbdev/via/via_aux_sii164.c .bus = bus, bus 33 drivers/video/fbdev/via/via_aux_sii164.c void via_aux_sii164_probe(struct via_aux_bus *bus) bus 38 drivers/video/fbdev/via/via_aux_sii164.c probe(bus, i); bus 16 drivers/video/fbdev/via/via_aux_vt1621.c void via_aux_vt1621_probe(struct via_aux_bus *bus) bus 19 drivers/video/fbdev/via/via_aux_vt1621.c .bus = bus, bus 16 drivers/video/fbdev/via/via_aux_vt1622.c static void probe(struct via_aux_bus *bus, u8 addr) bus 19 drivers/video/fbdev/via/via_aux_vt1622.c .bus = bus, bus 31 drivers/video/fbdev/via/via_aux_vt1622.c void via_aux_vt1622_probe(struct via_aux_bus *bus) bus 33 drivers/video/fbdev/via/via_aux_vt1622.c probe(bus, 0x20); bus 34 drivers/video/fbdev/via/via_aux_vt1622.c probe(bus, 0x21); bus 16 drivers/video/fbdev/via/via_aux_vt1625.c static void probe(struct via_aux_bus *bus, u8 addr) bus 19 drivers/video/fbdev/via/via_aux_vt1625.c .bus = bus, bus 31 drivers/video/fbdev/via/via_aux_vt1625.c void via_aux_vt1625_probe(struct via_aux_bus *bus) bus 33 drivers/video/fbdev/via/via_aux_vt1625.c probe(bus, 0x20); bus 34 drivers/video/fbdev/via/via_aux_vt1625.c probe(bus, 0x21); bus 16 drivers/video/fbdev/via/via_aux_vt1631.c void via_aux_vt1631_probe(struct via_aux_bus *bus) bus 19 drivers/video/fbdev/via/via_aux_vt1631.c .bus = bus, bus 16 drivers/video/fbdev/via/via_aux_vt1632.c static void probe(struct via_aux_bus *bus, u8 addr) bus 19 drivers/video/fbdev/via/via_aux_vt1632.c .bus = bus, bus 33 drivers/video/fbdev/via/via_aux_vt1632.c void via_aux_vt1632_probe(struct via_aux_bus *bus) bus 38 drivers/video/fbdev/via/via_aux_vt1632.c probe(bus, i); bus 16 drivers/video/fbdev/via/via_aux_vt1636.c void via_aux_vt1636_probe(struct via_aux_bus *bus) bus 19 drivers/video/fbdev/via/via_aux_vt1636.c .bus = bus, bus 720 drivers/video/fbdev/vt8623fb.c pcibios_bus_to_resource(dev->bus, &vga_res, &bus_reg); bus 298 drivers/virtio/virtio.c driver->driver.bus = &virtio_bus; bus 322 drivers/virtio/virtio.c dev->dev.bus = &virtio_bus; bus 294 drivers/visorbus/visorbus_main.c struct bus_type *xbus = dev->bus; bus 655 drivers/visorbus/visorbus_main.c dev->device.bus = &visorbus_type; bus 981 drivers/visorbus/visorbus_main.c drv->driver.bus = &visorbus_type; bus 1018 drivers/visorbus/visorbus_main.c dev->device.bus = &visorbus_type; bus 358 drivers/vlynq/vlynq.c driver->driver.bus = &vlynq_bus_type; bus 681 drivers/vlynq/vlynq.c dev->dev.bus = &vlynq_bus_type; bus 546 drivers/vme/bridges/vme_ca91cx42.c retval = pci_bus_alloc_resource(pdev->bus, bus 762 drivers/vme/bridges/vme_tsi148.c retval = pci_bus_alloc_resource(pdev->bus, bus 863 drivers/vme/bridges/vme_tsi148.c pcibios_resource_to_bus(pdev->bus, ®ion, bus 1871 drivers/vme/vme.c vdev->dev.bus = &vme_bus_type; bus 1934 drivers/vme/vme.c drv->driver.bus = &vme_bus_type; bus 181 drivers/w1/w1.c .bus = &w1_bus_type, bus 187 drivers/w1/w1.c .bus = &w1_bus_type, bus 195 drivers/w1/w1.c .bus = &w1_bus_type, bus 201 drivers/w1/w1.c .bus = &w1_bus_type, bus 678 drivers/w1/w1.c sl->dev.bus = &w1_bus_type; bus 26 drivers/xen/dbgp.c dbgp.u.pci.seg = pci_domain_nr(pdev->bus); bus 27 drivers/xen/dbgp.c dbgp.u.pci.bus = pdev->bus->number; bus 29 drivers/xen/dbgp.c dbgp.bus = PHYSDEVOP_DBGP_BUS_PCI; bus 32 drivers/xen/dbgp.c dbgp.bus = PHYSDEVOP_DBGP_BUS_UNKNOWN; bus 50 drivers/xen/pci.c .add.seg = pci_domain_nr(pci_dev->bus), bus 51 drivers/xen/pci.c .add.bus = pci_dev->bus->number, bus 63 drivers/xen/pci.c add->physfn.bus = physfn->bus->number; bus 67 drivers/xen/pci.c if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) bus 74 drivers/xen/pci.c handle = ACPI_HANDLE(physfn->bus->bridge); bus 82 drivers/xen/pci.c for (pbus = pci_dev->bus; pbus; pbus = pbus->parent) { bus 112 drivers/xen/pci.c if (pci_domain_nr(pci_dev->bus)) bus 117 drivers/xen/pci.c .bus = pci_dev->bus->number, bus 120 drivers/xen/pci.c .physfn.bus = physfn->bus->number, bus 128 drivers/xen/pci.c else if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) { bus 130 drivers/xen/pci.c .bus = pci_dev->bus->number, bus 139 drivers/xen/pci.c .bus = pci_dev->bus->number, bus 157 drivers/xen/pci.c .seg = pci_domain_nr(pci_dev->bus), bus 158 drivers/xen/pci.c .bus = pci_dev->bus->number, bus 164 drivers/xen/pci.c } else if (pci_domain_nr(pci_dev->bus)) bus 168 drivers/xen/pci.c .bus = pci_dev->bus->number, bus 224 drivers/xen/pcpu.c dev->bus = &xen_pcpu_subsys; bus 58 drivers/xen/platform-pci.c ((uint64_t)pci_domain_nr(pdev->bus) << 32) | bus 59 drivers/xen/platform-pci.c ((uint64_t)pdev->bus->number << 16) | bus 260 drivers/xen/xen-balloon.c dev->bus = &balloon_subsys; bus 22 drivers/xen/xen-pciback/passthrough.c unsigned int bus, bus 32 drivers/xen/xen-pciback/passthrough.c if (domain == (unsigned int)pci_domain_nr(dev_entry->dev->bus) bus 33 drivers/xen/xen-pciback/passthrough.c && bus == (unsigned int)dev_entry->dev->bus->number bus 51 drivers/xen/xen-pciback/passthrough.c unsigned int domain, bus, devfn; bus 64 drivers/xen/xen-pciback/passthrough.c domain = (unsigned int)pci_domain_nr(dev->bus); bus 65 drivers/xen/xen-pciback/passthrough.c bus = (unsigned int)dev->bus->number; bus 67 drivers/xen/xen-pciback/passthrough.c err = publish_cb(pdev, domain, bus, devfn, devid); bus 125 drivers/xen/xen-pciback/passthrough.c unsigned int domain, bus; bus 134 drivers/xen/xen-pciback/passthrough.c dev = dev_entry->dev->bus->self; bus 135 drivers/xen/xen-pciback/passthrough.c for (; !found && dev != NULL; dev = dev->bus->self) { bus 144 drivers/xen/xen-pciback/passthrough.c domain = (unsigned int)pci_domain_nr(dev_entry->dev->bus); bus 145 drivers/xen/xen-pciback/passthrough.c bus = (unsigned int)dev_entry->dev->bus->number; bus 148 drivers/xen/xen-pciback/passthrough.c err = publish_root_cb(pdev, domain, bus); bus 179 drivers/xen/xen-pciback/passthrough.c unsigned int *domain, unsigned int *bus, bus 182 drivers/xen/xen-pciback/passthrough.c *domain = pci_domain_nr(pcidev->bus); bus 183 drivers/xen/xen-pciback/passthrough.c *bus = pcidev->bus->number; bus 41 drivers/xen/xen-pciback/pci_stub.c unsigned char bus; bus 117 drivers/xen/xen-pciback/pci_stub.c .seg = pci_domain_nr(dev->bus), bus 118 drivers/xen/xen-pciback/pci_stub.c .bus = dev->bus->number, bus 155 drivers/xen/xen-pciback/pci_stub.c static struct pcistub_device *pcistub_device_find_locked(int domain, int bus, bus 162 drivers/xen/xen-pciback/pci_stub.c && domain == pci_domain_nr(psdev->dev->bus) bus 163 drivers/xen/xen-pciback/pci_stub.c && bus == psdev->dev->bus->number bus 173 drivers/xen/xen-pciback/pci_stub.c static struct pcistub_device *pcistub_device_find(int domain, int bus, bus 181 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find_locked(domain, bus, slot, func); bus 211 drivers/xen/xen-pciback/pci_stub.c int domain, int bus, bus 220 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find_locked(domain, bus, slot, func); bus 323 drivers/xen/xen-pciback/pci_stub.c for (; dev != NULL; dev = dev->bus->self) { bus 324 drivers/xen/xen-pciback/pci_stub.c if (pci_domain_nr(dev->bus) == pdev_id->domain bus 325 drivers/xen/xen-pciback/pci_stub.c && dev->bus->number == pdev_id->bus bus 330 drivers/xen/xen-pciback/pci_stub.c if (dev == dev->bus->self) bus 402 drivers/xen/xen-pciback/pci_stub.c .seg = pci_domain_nr(dev->bus), bus 403 drivers/xen/xen-pciback/pci_stub.c .bus = dev->bus->number, bus 485 drivers/xen/xen-pciback/pci_stub.c int domain, int bus, unsigned int devfn) bus 494 drivers/xen/xen-pciback/pci_stub.c if (pci_dev_id->domain == domain && pci_dev_id->bus == bus && bus 503 drivers/xen/xen-pciback/pci_stub.c new->bus = bus; bus 550 drivers/xen/xen-pciback/pci_stub.c pcistub_device_id_add_list(pci_dev_id, pci_domain_nr(dev->bus), bus 551 drivers/xen/xen-pciback/pci_stub.c dev->bus->number, dev->devfn); bus 710 drivers/xen/xen-pciback/pci_stub.c &aer_op->domain, &aer_op->bus, &aer_op->devfn); bus 720 drivers/xen/xen-pciback/pci_stub.c aer_cmd, aer_op->domain, aer_op->bus, aer_op->devfn); bus 778 drivers/xen/xen-pciback/pci_stub.c dev->bus->number, dev->devfn); bus 781 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find(pci_domain_nr(dev->bus), bus 782 drivers/xen/xen-pciback/pci_stub.c dev->bus->number, bus 836 drivers/xen/xen-pciback/pci_stub.c dev->bus->number, dev->devfn); bus 839 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find(pci_domain_nr(dev->bus), bus 840 drivers/xen/xen-pciback/pci_stub.c dev->bus->number, bus 894 drivers/xen/xen-pciback/pci_stub.c dev->bus->number, dev->devfn); bus 897 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find(pci_domain_nr(dev->bus), bus 898 drivers/xen/xen-pciback/pci_stub.c dev->bus->number, bus 948 drivers/xen/xen-pciback/pci_stub.c dev->bus->number, dev->devfn); bus 951 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find(pci_domain_nr(dev->bus), bus 952 drivers/xen/xen-pciback/pci_stub.c dev->bus->number, bus 1008 drivers/xen/xen-pciback/pci_stub.c static inline int str_to_slot(const char *buf, int *domain, int *bus, bus 1013 drivers/xen/xen-pciback/pci_stub.c switch (sscanf(buf, " %x:%x:%x.%x %n", domain, bus, slot, func, bus 1017 drivers/xen/xen-pciback/pci_stub.c sscanf(buf, " %x:%x:%x.* %n", domain, bus, slot, &parsed); bus 1021 drivers/xen/xen-pciback/pci_stub.c sscanf(buf, " %x:%x:*.* %n", domain, bus, &parsed); bus 1029 drivers/xen/xen-pciback/pci_stub.c switch (sscanf(buf, " %x:%x.%x %n", bus, slot, func, &parsed)) { bus 1032 drivers/xen/xen-pciback/pci_stub.c sscanf(buf, " %x:%x.* %n", bus, slot, &parsed); bus 1036 drivers/xen/xen-pciback/pci_stub.c sscanf(buf, " %x:*.* %n", bus, &parsed); bus 1045 drivers/xen/xen-pciback/pci_stub.c static inline int str_to_quirk(const char *buf, int *domain, int *bus, int bus 1050 drivers/xen/xen-pciback/pci_stub.c sscanf(buf, " %x:%x:%x.%x-%x:%x:%x %n", domain, bus, slot, func, bus 1057 drivers/xen/xen-pciback/pci_stub.c sscanf(buf, " %x:%x.%x-%x:%x:%x %n", bus, slot, func, reg, size, bus 1065 drivers/xen/xen-pciback/pci_stub.c static int pcistub_device_id_add(int domain, int bus, int slot, int func) bus 1072 drivers/xen/xen-pciback/pci_stub.c rc = pcistub_device_id_add(domain, bus, slot, func); bus 1078 drivers/xen/xen-pciback/pci_stub.c rc = pcistub_device_id_add(domain, bus, slot, func); bus 1088 drivers/xen/xen-pciback/pci_stub.c || bus < 0 || bus > 0xff bus 1098 drivers/xen/xen-pciback/pci_stub.c domain, bus, slot, func); bus 1100 drivers/xen/xen-pciback/pci_stub.c pcistub_device_id_add_list(pci_dev_id, domain, bus, devfn); bus 1105 drivers/xen/xen-pciback/pci_stub.c static int pcistub_device_id_remove(int domain, int bus, int slot, int func) bus 1114 drivers/xen/xen-pciback/pci_stub.c if (pci_dev_id->domain == domain && pci_dev_id->bus == bus bus 1126 drivers/xen/xen-pciback/pci_stub.c domain, bus, slot, func); bus 1134 drivers/xen/xen-pciback/pci_stub.c static int pcistub_reg_add(int domain, int bus, int slot, int func, bus 1146 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find(domain, bus, slot, func); bus 1179 drivers/xen/xen-pciback/pci_stub.c int domain, bus, slot, func; bus 1182 drivers/xen/xen-pciback/pci_stub.c err = str_to_slot(buf, &domain, &bus, &slot, &func); bus 1186 drivers/xen/xen-pciback/pci_stub.c err = pcistub_device_id_add(domain, bus, slot, func); bus 1198 drivers/xen/xen-pciback/pci_stub.c int domain, bus, slot, func; bus 1201 drivers/xen/xen-pciback/pci_stub.c err = str_to_slot(buf, &domain, &bus, &slot, &func); bus 1205 drivers/xen/xen-pciback/pci_stub.c err = pcistub_device_id_remove(domain, bus, slot, func); bus 1227 drivers/xen/xen-pciback/pci_stub.c pci_dev_id->domain, pci_dev_id->bus, bus 1271 drivers/xen/xen-pciback/pci_stub.c int domain, bus, slot, func; bus 1274 drivers/xen/xen-pciback/pci_stub.c err = str_to_slot(buf, &domain, &bus, &slot, &func); bus 1278 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find(domain, bus, slot, func); bus 1309 drivers/xen/xen-pciback/pci_stub.c int domain, bus, slot, func, reg, size, mask; bus 1312 drivers/xen/xen-pciback/pci_stub.c err = str_to_quirk(buf, &domain, &bus, &slot, &func, ®, &size, bus 1317 drivers/xen/xen-pciback/pci_stub.c err = pcistub_reg_add(domain, bus, slot, func, reg, size, mask); bus 1341 drivers/xen/xen-pciback/pci_stub.c quirk->pdev->bus->number, bus 1373 drivers/xen/xen-pciback/pci_stub.c int domain, bus, slot, func; bus 1378 drivers/xen/xen-pciback/pci_stub.c err = str_to_slot(buf, &domain, &bus, &slot, &func); bus 1382 drivers/xen/xen-pciback/pci_stub.c psdev = pcistub_device_find(domain, bus, slot, func); bus 1454 drivers/xen/xen-pciback/pci_stub.c int domain, bus, slot, func; bus 1463 drivers/xen/xen-pciback/pci_stub.c &domain, &bus, &slot, &func, &parsed); bus 1469 drivers/xen/xen-pciback/pci_stub.c &domain, &bus, &slot, &parsed); bus 1475 drivers/xen/xen-pciback/pci_stub.c &domain, &bus, &parsed); bus 1483 drivers/xen/xen-pciback/pci_stub.c &bus, &slot, &func, &parsed); bus 1489 drivers/xen/xen-pciback/pci_stub.c &bus, &slot, &parsed); bus 1495 drivers/xen/xen-pciback/pci_stub.c &bus, &parsed); bus 1503 drivers/xen/xen-pciback/pci_stub.c err = pcistub_device_id_add(domain, bus, slot, func); bus 64 drivers/xen/xen-pciback/pciback.h int domain, int bus, bus 86 drivers/xen/xen-pciback/pciback.h unsigned int domain, unsigned int bus, bus 89 drivers/xen/xen-pciback/pciback.h unsigned int domain, unsigned int bus); bus 100 drivers/xen/xen-pciback/pciback.h unsigned int *domain, unsigned int *bus, bus 108 drivers/xen/xen-pciback/pciback.h unsigned int domain, unsigned int bus, bus 135 drivers/xen/xen-pciback/pciback.h unsigned int bus, unsigned int devfn) bus 138 drivers/xen/xen-pciback/pciback.h return xen_pcibk_backend->get(pdev, domain, bus, devfn); bus 151 drivers/xen/xen-pciback/pciback.h unsigned int *bus, bus 155 drivers/xen/xen-pciback/pciback.h return xen_pcibk_backend->find(pcidev, pdev, domain, bus, bus 341 drivers/xen/xen-pciback/pciback_ops.c dev = xen_pcibk_get_pci_dev(pdev, op->domain, op->bus, op->devfn); bus 32 drivers/xen/xen-pciback/vpci.c unsigned int bus, bus 39 drivers/xen/xen-pciback/vpci.c if (domain != 0 || bus != 0) bus 61 drivers/xen/xen-pciback/vpci.c if (pci_domain_nr(l->bus) == pci_domain_nr(r->bus) bus 62 drivers/xen/xen-pciback/vpci.c && l->bus == r->bus && PCI_SLOT(l->devfn) == PCI_SLOT(r->devfn)) bus 232 drivers/xen/xen-pciback/vpci.c unsigned int *domain, unsigned int *bus, bus 246 drivers/xen/xen-pciback/vpci.c if (dev && dev->bus->number == pcidev->bus->number bus 247 drivers/xen/xen-pciback/vpci.c && pci_domain_nr(dev->bus) == bus 248 drivers/xen/xen-pciback/vpci.c pci_domain_nr(pcidev->bus) bus 252 drivers/xen/xen-pciback/vpci.c *bus = 0; bus 203 drivers/xen/xen-pciback/xenbus.c unsigned int domain, unsigned int bus, bus 218 drivers/xen/xen-pciback/xenbus.c "%04x:%02x:%02x.%02x", domain, bus, bus 226 drivers/xen/xen-pciback/xenbus.c int domain, int bus, int slot, int func, bus 233 drivers/xen/xen-pciback/xenbus.c domain, bus, slot, func); bus 235 drivers/xen/xen-pciback/xenbus.c dev = pcistub_get_pci_dev_by_slot(pdev, domain, bus, slot, func); bus 242 drivers/xen/xen-pciback/xenbus.c domain, bus, slot, func); bus 273 drivers/xen/xen-pciback/xenbus.c int domain, int bus, int slot, int func) bus 279 drivers/xen/xen-pciback/xenbus.c domain, bus, slot, func); bus 281 drivers/xen/xen-pciback/xenbus.c dev = xen_pcibk_get_pci_dev(pdev, domain, bus, PCI_DEVFN(slot, func)); bus 286 drivers/xen/xen-pciback/xenbus.c domain, bus, slot, func); bus 302 drivers/xen/xen-pciback/xenbus.c unsigned int domain, unsigned int bus) bus 334 drivers/xen/xen-pciback/xenbus.c if (d == domain && b == bus) { bus 347 drivers/xen/xen-pciback/xenbus.c root_num, domain, bus); bus 350 drivers/xen/xen-pciback/xenbus.c "%04x:%02x", domain, bus); bus 365 drivers/xen/xen-pciback/xenbus.c int domain, bus, slot, func; bus 416 drivers/xen/xen-pciback/xenbus.c &domain, &bus, &slot, &func); bus 431 drivers/xen/xen-pciback/xenbus.c err = xen_pcibk_export_device(pdev, domain, bus, slot, bus 470 drivers/xen/xen-pciback/xenbus.c &domain, &bus, &slot, &func); bus 485 drivers/xen/xen-pciback/xenbus.c err = xen_pcibk_remove_device(pdev, domain, bus, slot, bus 561 drivers/xen/xen-pciback/xenbus.c int domain, bus, slot, func; bus 598 drivers/xen/xen-pciback/xenbus.c "%x:%x:%x.%x", &domain, &bus, &slot, &func); bus 612 drivers/xen/xen-pciback/xenbus.c err = xen_pcibk_export_device(pdev, domain, bus, slot, func, i); bus 45 drivers/xen/xenbus/xenbus.h int (*probe)(struct xen_bus_type *bus, const char *type, bus 49 drivers/xen/xenbus/xenbus.h struct bus_type bus; bus 109 drivers/xen/xenbus/xenbus.h struct xen_bus_type *bus, bus 112 drivers/xen/xenbus/xenbus.h int xenbus_probe_node(struct xen_bus_type *bus, bus 115 drivers/xen/xenbus/xenbus.h int xenbus_probe_devices(struct xen_bus_type *bus); bus 117 drivers/xen/xenbus/xenbus.h void xenbus_dev_changed(const char *node, struct xen_bus_type *bus); bus 135 drivers/xen/xenbus/xenbus_probe.c struct xen_bus_type *bus = bus 136 drivers/xen/xenbus/xenbus_probe.c container_of(dev->dev.bus, struct xen_bus_type, bus); bus 139 drivers/xen/xenbus/xenbus_probe.c bus->otherend_changed, bus 297 drivers/xen/xenbus/xenbus_probe.c struct xen_bus_type *bus, bus 301 drivers/xen/xenbus/xenbus_probe.c drv->driver.bus = &bus->bus; bus 334 drivers/xen/xenbus/xenbus_probe.c struct bus_type *bus) bus 338 drivers/xen/xenbus/xenbus_probe.c bus_for_each_dev(bus, NULL, &info, cmp_dev); bus 363 drivers/xen/xenbus/xenbus_probe.c static void xenbus_cleanup_devices(const char *path, struct bus_type *bus) bus 369 drivers/xen/xenbus/xenbus_probe.c bus_for_each_dev(bus, NULL, &info, cleanup_dev); bus 400 drivers/xen/xenbus/xenbus_probe.c return sprintf(buf, "%s:%s\n", dev->bus->name, bus 431 drivers/xen/xenbus/xenbus_probe.c int xenbus_probe_node(struct xen_bus_type *bus, bus 467 drivers/xen/xenbus/xenbus_probe.c xendev->dev.bus = &bus->bus; bus 470 drivers/xen/xenbus/xenbus_probe.c err = bus->get_bus_id(devname, xendev->nodename); bus 491 drivers/xen/xenbus/xenbus_probe.c static int xenbus_probe_device_type(struct xen_bus_type *bus, const char *type) bus 498 drivers/xen/xenbus/xenbus_probe.c dir = xenbus_directory(XBT_NIL, bus->root, type, &dir_n); bus 503 drivers/xen/xenbus/xenbus_probe.c err = bus->probe(bus, type, dir[i]); bus 512 drivers/xen/xenbus/xenbus_probe.c int xenbus_probe_devices(struct xen_bus_type *bus) bus 518 drivers/xen/xenbus/xenbus_probe.c dir = xenbus_directory(XBT_NIL, bus->root, "", &dir_n); bus 523 drivers/xen/xenbus/xenbus_probe.c err = xenbus_probe_device_type(bus, dir[i]); bus 556 drivers/xen/xenbus/xenbus_probe.c void xenbus_dev_changed(const char *node, struct xen_bus_type *bus) bus 568 drivers/xen/xenbus/xenbus_probe.c xenbus_cleanup_devices(node, &bus->bus); bus 577 drivers/xen/xenbus/xenbus_probe.c rootlen = strsep_len(node, '/', bus->levels); bus 584 drivers/xen/xenbus/xenbus_probe.c dev = xenbus_device_find(root, &bus->bus); bus 586 drivers/xen/xenbus/xenbus_probe.c xenbus_probe_node(bus, type, root); bus 100 drivers/xen/xenbus/xenbus_probe_backend.c struct xen_bus_type *bus; bus 108 drivers/xen/xenbus/xenbus_probe_backend.c bus = container_of(xdev->dev.bus, struct xen_bus_type, bus); bus 120 drivers/xen/xenbus/xenbus_probe_backend.c if (add_uevent_var(env, "XENBUS_BASE_PATH=%s", bus->root)) bus 133 drivers/xen/xenbus/xenbus_probe_backend.c static int xenbus_probe_backend_unit(struct xen_bus_type *bus, bus 147 drivers/xen/xenbus/xenbus_probe_backend.c err = xenbus_probe_node(bus, type, nodename); bus 153 drivers/xen/xenbus/xenbus_probe_backend.c static int xenbus_probe_backend(struct xen_bus_type *bus, const char *type, bus 163 drivers/xen/xenbus/xenbus_probe_backend.c nodename = kasprintf(GFP_KERNEL, "%s/%s/%s", bus->root, type, domid); bus 174 drivers/xen/xenbus/xenbus_probe_backend.c err = xenbus_probe_backend_unit(bus, nodename, type, dir[i]); bus 195 drivers/xen/xenbus/xenbus_probe_backend.c .bus = { bus 261 drivers/xen/xenbus/xenbus_probe_backend.c err = bus_register(&xenbus_backend.bus); bus 54 drivers/xen/xenbus/xenbus_probe_frontend.c static int xenbus_probe_frontend(struct xen_bus_type *bus, const char *type, bus 66 drivers/xen/xenbus/xenbus_probe_frontend.c nodename = kasprintf(GFP_KERNEL, "%s/%s/%s", bus->root, type, name); bus 72 drivers/xen/xenbus/xenbus_probe_frontend.c err = xenbus_probe_node(bus, type, nodename); bus 143 drivers/xen/xenbus/xenbus_probe_frontend.c .bus = { bus 221 drivers/xen/xenbus/xenbus_probe_frontend.c return bus_for_each_dev(&xenbus_frontend.bus, NULL, drv, bus 226 drivers/xen/xenbus/xenbus_probe_frontend.c return bus_for_each_dev(&xenbus_frontend.bus, NULL, drv, bus 309 drivers/xen/xenbus/xenbus_probe_frontend.c bus_for_each_dev(&xenbus_frontend.bus, NULL, drv, bus 479 drivers/xen/xenbus/xenbus_probe_frontend.c err = bus_register(&xenbus_frontend.bus); bus 92 drivers/zorro/zorro-driver.c drv->driver.bus = &zorro_bus_type; bus 133 drivers/zorro/zorro.c struct zorro_bus *bus; bus 141 drivers/zorro/zorro.c bus = kzalloc(struct_size(bus, devices, zorro_num_autocon), bus 143 drivers/zorro/zorro.c if (!bus) bus 146 drivers/zorro/zorro.c zorro_autocon = bus->devices; bus 147 drivers/zorro/zorro.c bus->dev.parent = &pdev->dev; bus 148 drivers/zorro/zorro.c dev_set_name(&bus->dev, zorro_bus_type.name); bus 149 drivers/zorro/zorro.c error = device_register(&bus->dev); bus 152 drivers/zorro/zorro.c put_device(&bus->dev); bus 153 drivers/zorro/zorro.c kfree(bus); bus 156 drivers/zorro/zorro.c platform_set_drvdata(pdev, bus); bus 185 drivers/zorro/zorro.c dev_err(&bus->dev, bus 188 drivers/zorro/zorro.c z->dev.parent = &bus->dev; bus 189 drivers/zorro/zorro.c z->dev.bus = &zorro_bus_type; bus 209 drivers/zorro/zorro.c dev_err(&bus->dev, "Error registering device %s\n", bus 575 include/acpi/acpi_bus.h struct pci_bus *bus; bus 692 include/acpi/acpi_bus.h static inline int register_acpi_bus_type(void *bus) { return 0; } bus 693 include/acpi/acpi_bus.h static inline int unregister_acpi_bus_type(void *bus) { return 0; } bus 527 include/acpi/actbl1.h u8 bus; bus 1142 include/acpi/actbl1.h u32 bus; /* Bus and Segment numbers */ bus 1164 include/acpi/actbl1.h #define ACPI_HEST_BUS(bus) ((bus) & 0xFF) bus 1165 include/acpi/actbl1.h #define ACPI_HEST_SEGMENT(bus) (((bus) >> 8) & 0xFFFF) bus 535 include/acpi/actbl2.h u8 bus; /* 0 - ISA */ bus 354 include/acpi/actbl3.h u8 bus; /* PCI Bus/Segment/Function numbers */ bus 1198 include/acpi/actypes.h u16 bus; bus 5 include/asm-generic/dma-mapping.h static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) bus 55 include/asm-generic/topology.h #define pcibus_to_node(bus) ((void)(bus), -1) bus 59 include/asm-generic/topology.h #define cpumask_of_pcibus(bus) (pcibus_to_node(bus) == -1 ? \ bus 61 include/asm-generic/topology.h cpumask_of_node(pcibus_to_node(bus))) bus 103 include/drm/ttm/ttm_bo_api.h struct ttm_bus_placement bus; bus 71 include/linux/aer.h void aer_recover_queue(int domain, unsigned int bus, unsigned int devfn, bus 268 include/linux/bcma/bcma.h struct bcma_bus *bus; bus 331 include/linux/bcma/bcma.h int (*sprom_callback)(struct bcma_bus *bus, bus 369 include/linux/bcma/bcma.h return core->bus->ops->read8(core, offset); bus 373 include/linux/bcma/bcma.h return core->bus->ops->read16(core, offset); bus 377 include/linux/bcma/bcma.h return core->bus->ops->read32(core, offset); bus 382 include/linux/bcma/bcma.h core->bus->ops->write8(core, offset, value); bus 387 include/linux/bcma/bcma.h core->bus->ops->write16(core, offset, value); bus 392 include/linux/bcma/bcma.h core->bus->ops->write32(core, offset, value); bus 398 include/linux/bcma/bcma.h core->bus->ops->block_read(core, buffer, count, offset, reg_width); bus 404 include/linux/bcma/bcma.h core->bus->ops->block_write(core, buffer, count, offset, reg_width); bus 409 include/linux/bcma/bcma.h return core->bus->ops->aread32(core, offset); bus 414 include/linux/bcma/bcma.h core->bus->ops->awrite32(core, offset, value); bus 444 include/linux/bcma/bcma.h extern struct bcma_device *bcma_find_core_unit(struct bcma_bus *bus, u16 coreid, bus 446 include/linux/bcma/bcma.h static inline struct bcma_device *bcma_find_core(struct bcma_bus *bus, bus 449 include/linux/bcma/bcma.h return bcma_find_core_unit(bus, coreid, 0); bus 453 include/linux/bcma/bcma.h extern void bcma_host_pci_up(struct bcma_bus *bus); bus 454 include/linux/bcma/bcma.h extern void bcma_host_pci_down(struct bcma_bus *bus); bus 455 include/linux/bcma/bcma.h extern int bcma_host_pci_irq_ctl(struct bcma_bus *bus, bus 458 include/linux/bcma/bcma.h static inline void bcma_host_pci_up(struct bcma_bus *bus) bus 461 include/linux/bcma/bcma.h static inline void bcma_host_pci_down(struct bcma_bus *bus) bus 464 include/linux/bcma/bcma.h static inline int bcma_host_pci_irq_ctl(struct bcma_bus *bus, bus 467 include/linux/bcma/bcma.h if (bus->hosttype == BCMA_HOSTTYPE_PCI) bus 243 include/linux/bcma/bcma_driver_pci.h extern void bcma_core_pci_power_save(struct bcma_bus *bus, bool up); bus 245 include/linux/bcma/bcma_driver_pci.h static inline void bcma_core_pci_power_save(struct bcma_bus *bus, bool up) bus 8 include/linux/bcma/bcma_soc.h struct bcma_bus bus; bus 15 include/linux/bcma/bcma_soc.h int bcma_bus_register(struct bcma_bus *bus); bus 507 include/linux/cper.h u8 bus; bus 49 include/linux/device.h ssize_t (*show)(struct bus_type *bus, char *buf); bus 50 include/linux/device.h ssize_t (*store)(struct bus_type *bus, const char *buf, size_t count); bus 149 include/linux/device.h extern int __must_check bus_register(struct bus_type *bus); bus 151 include/linux/device.h extern void bus_unregister(struct bus_type *bus); bus 153 include/linux/device.h extern int __must_check bus_rescan_devices(struct bus_type *bus); bus 174 include/linux/device.h int bus_for_each_dev(struct bus_type *bus, struct device *start, void *data, bus 176 include/linux/device.h struct device *bus_find_device(struct bus_type *bus, struct device *start, bus 186 include/linux/device.h static inline struct device *bus_find_device_by_name(struct bus_type *bus, bus 190 include/linux/device.h return bus_find_device(bus, start, name, device_match_name); bus 200 include/linux/device.h bus_find_device_by_of_node(struct bus_type *bus, const struct device_node *np) bus 202 include/linux/device.h return bus_find_device(bus, NULL, np, device_match_of_node); bus 212 include/linux/device.h bus_find_device_by_fwnode(struct bus_type *bus, const struct fwnode_handle *fwnode) bus 214 include/linux/device.h return bus_find_device(bus, NULL, fwnode, device_match_fwnode); bus 223 include/linux/device.h static inline struct device *bus_find_device_by_devt(struct bus_type *bus, bus 226 include/linux/device.h return bus_find_device(bus, NULL, &devt, device_match_devt); bus 236 include/linux/device.h bus_find_next_device(struct bus_type *bus,struct device *cur) bus 238 include/linux/device.h return bus_find_device(bus, cur, NULL, device_match_any); bus 251 include/linux/device.h bus_find_device_by_acpi_dev(struct bus_type *bus, const struct acpi_device *adev) bus 253 include/linux/device.h return bus_find_device(bus, NULL, adev, device_match_acpi_dev); bus 257 include/linux/device.h bus_find_device_by_acpi_dev(struct bus_type *bus, const void *adev) bus 263 include/linux/device.h struct device *subsys_find_device_by_id(struct bus_type *bus, unsigned int id, bus 265 include/linux/device.h int bus_for_each_drv(struct bus_type *bus, struct device_driver *start, bus 267 include/linux/device.h void bus_sort_breadthfirst(struct bus_type *bus, bus 278 include/linux/device.h extern int bus_register_notifier(struct bus_type *bus, bus 280 include/linux/device.h extern int bus_unregister_notifier(struct bus_type *bus, bus 299 include/linux/device.h extern struct kset *bus_get_kset(struct bus_type *bus); bus 300 include/linux/device.h extern struct klist *bus_get_device_klist(struct bus_type *bus); bus 370 include/linux/device.h struct bus_type *bus; bus 400 include/linux/device.h struct bus_type *bus); bus 1238 include/linux/device.h struct bus_type *bus; /* type of bus device is on */ bus 1519 include/linux/device.h return dev->bus && dev->bus->offline && dev->bus->online; bus 1533 include/linux/device.h if (dev->bus && dev->bus->num_vf) bus 1534 include/linux/device.h return dev->bus->num_vf(dev); bus 46 include/linux/dio.h struct dio_bus *bus; bus 19 include/linux/dma-debug.h extern void dma_debug_add_bus(struct bus_type *bus); bus 74 include/linux/dma-debug.h static inline void dma_debug_add_bus(struct bus_type *bus) bus 268 include/linux/dma-mapping.h return get_arch_dma_ops(dev->bus); bus 36 include/linux/dmar.h u8 bus; bus 55 include/linux/dmar.h u8 bus; bus 63 include/linux/dmar.h int bus; bus 95 include/linux/dmi.h int bus; bus 556 include/linux/edac.h struct bus_type *bus; bus 349 include/linux/fsl/mc.h #define dev_is_fsl_mc(_dev) ((_dev)->bus == &fsl_mc_bus_type) bus 554 include/linux/hid.h __u16 bus; /* BUS ID */ bus 671 include/linux/hid.h .bus = (b), .group = (g), .vendor = (ven), .product = (prod) bus 673 include/linux/hid.h .bus = BUS_USB, .vendor = (ven), .product = (prod) bus 675 include/linux/hid.h .bus = BUS_BLUETOOTH, .vendor = (ven), .product = (prod) bus 677 include/linux/hid.h .bus = BUS_I2C, .vendor = (ven), .product = (prod) bus 1148 include/linux/hid.h int hid_quirks_init(char **quirks_param, __u16 bus, int count); bus 1149 include/linux/hid.h void hid_quirks_exit(__u16 bus); bus 232 include/linux/i3c/master.h struct i3c_bus *bus; bus 494 include/linux/i3c/master.h struct i3c_bus bus; bus 506 include/linux/i3c/master.h #define i3c_bus_for_each_i2cdev(bus, dev) \ bus 507 include/linux/i3c/master.h list_for_each_entry(dev, &(bus)->devs.i2c, common.node) bus 517 include/linux/i3c/master.h #define i3c_bus_for_each_i3cdev(bus, dev) \ bus 518 include/linux/i3c/master.h list_for_each_entry(dev, &(bus)->devs.i3c, common.node) bus 636 include/linux/i3c/master.h return &master->bus; bus 569 include/linux/intel-iommu.h u8 bus; /* PCI bus number */ bus 701 include/linux/intel-iommu.h struct context_entry *iommu_context_addr(struct intel_iommu *iommu, u8 bus, bus 410 include/linux/iommu.h extern int bus_set_iommu(struct bus_type *bus, const struct iommu_ops *ops); bus 411 include/linux/iommu.h extern bool iommu_present(struct bus_type *bus); bus 412 include/linux/iommu.h extern bool iommu_capable(struct bus_type *bus, enum iommu_cap cap); bus 413 include/linux/iommu.h extern struct iommu_domain *iommu_domain_alloc(struct bus_type *bus); bus 619 include/linux/iommu.h static inline bool iommu_present(struct bus_type *bus) bus 624 include/linux/iommu.h static inline bool iommu_capable(struct bus_type *bus, enum iommu_cap cap) bus 629 include/linux/iommu.h static inline struct iommu_domain *iommu_domain_alloc(struct bus_type *bus) bus 96 include/linux/ipack.h struct ipack_bus_device *bus; bus 196 include/linux/ipack.h int ipack_bus_unregister(struct ipack_bus_device *bus); bus 275 include/linux/ipack.h return try_module_get(dev->bus->owner); bus 285 include/linux/ipack.h module_put(dev->bus->owner); bus 65 include/linux/mcb.h struct mcb_bus *bus; bus 124 include/linux/mcb.h extern void mcb_bus_add_devices(const struct mcb_bus *bus); bus 125 include/linux/mcb.h extern int mcb_device_register(struct mcb_bus *bus, struct mcb_device *dev); bus 127 include/linux/mcb.h extern struct mcb_bus *mcb_bus_get(struct mcb_bus *bus); bus 128 include/linux/mcb.h extern void mcb_bus_put(struct mcb_bus *bus); bus 129 include/linux/mcb.h extern struct mcb_device *mcb_alloc_dev(struct mcb_bus *bus); bus 131 include/linux/mcb.h extern void mcb_release_bus(struct mcb_bus *bus); bus 42 include/linux/mdio-bitbang.h void free_mdio_bitbang(struct mii_bus *bus); bus 29 include/linux/mdio.h struct mii_bus *bus; bus 83 include/linux/mdio.h struct mdio_device *mdio_device_create(struct mii_bus *bus, int addr); bus 317 include/linux/mdio.h int __mdiobus_read(struct mii_bus *bus, int addr, u32 regnum); bus 318 include/linux/mdio.h int __mdiobus_write(struct mii_bus *bus, int addr, u32 regnum, u16 val); bus 320 include/linux/mdio.h int mdiobus_read(struct mii_bus *bus, int addr, u32 regnum); bus 321 include/linux/mdio.h int mdiobus_read_nested(struct mii_bus *bus, int addr, u32 regnum); bus 322 include/linux/mdio.h int mdiobus_write(struct mii_bus *bus, int addr, u32 regnum, u16 val); bus 323 include/linux/mdio.h int mdiobus_write_nested(struct mii_bus *bus, int addr, u32 regnum, u16 val); bus 327 include/linux/mdio.h bool mdiobus_is_registered_device(struct mii_bus *bus, int addr); bus 328 include/linux/mdio.h struct phy_device *mdiobus_get_phy(struct mii_bus *bus, int addr); bus 43 include/linux/mei_cl_bus.h struct mei_device *bus; bus 167 include/linux/mod_devicetable.h __u16 bus; bus 34 include/linux/pci-acpi.h struct pci_bus *pbus = pdev->bus; bus 84 include/linux/pci-acpi.h void acpi_pci_add_bus(struct pci_bus *bus); bus 85 include/linux/pci-acpi.h void acpi_pci_remove_bus(struct pci_bus *bus); bus 89 include/linux/pci-acpi.h void acpi_pci_slot_enumerate(struct pci_bus *bus); bus 90 include/linux/pci-acpi.h void acpi_pci_slot_remove(struct pci_bus *bus); bus 93 include/linux/pci-acpi.h static inline void acpi_pci_slot_enumerate(struct pci_bus *bus) { } bus 94 include/linux/pci-acpi.h static inline void acpi_pci_slot_remove(struct pci_bus *bus) { } bus 99 include/linux/pci-acpi.h void acpiphp_enumerate_slots(struct pci_bus *bus); bus 100 include/linux/pci-acpi.h void acpiphp_remove_slots(struct pci_bus *bus); bus 104 include/linux/pci-acpi.h static inline void acpiphp_enumerate_slots(struct pci_bus *bus) { } bus 105 include/linux/pci-acpi.h static inline void acpiphp_remove_slots(struct pci_bus *bus) { } bus 116 include/linux/pci-acpi.h static inline void acpi_pci_add_bus(struct pci_bus *bus) { } bus 117 include/linux/pci-acpi.h static inline void acpi_pci_remove_bus(struct pci_bus *bus) { } bus 47 include/linux/pci-ecam.h void __iomem *pci_ecam_map_bus(struct pci_bus *bus, unsigned int devfn, bus 57 include/linux/pci.h #define PCI_DEVID(bus, devfn) ((((u16)(bus)) << 8) | (devfn)) bus 63 include/linux/pci.h struct pci_bus *bus; /* Bus this slot is on */ bus 293 include/linux/pci.h struct pci_bus *bus; /* Bus this device is on */ bus 482 include/linux/pci.h struct pci_dev *pci_alloc_dev(struct pci_bus *bus); bus 494 include/linux/pci.h struct pci_bus *bus; /* Root bus */ bus 539 include/linux/pci.h struct pci_host_bridge *pci_find_host_bridge(struct pci_bus *bus); bus 610 include/linux/pci.h return PCI_DEVID(dev->bus->number, dev->devfn); bus 639 include/linux/pci.h #define for_each_pci_bridge(dev, bus) \ bus 640 include/linux/pci.h list_for_each_entry(dev, &bus->devices, bus_list) \ bus 646 include/linux/pci.h if (pci_is_root_bus(dev->bus)) bus 649 include/linux/pci.h return dev->bus->self; bus 697 include/linux/pci.h int (*add_bus)(struct pci_bus *bus); bus 698 include/linux/pci.h void (*remove_bus)(struct pci_bus *bus); bus 699 include/linux/pci.h void __iomem *(*map_bus)(struct pci_bus *bus, unsigned int devfn, int where); bus 700 include/linux/pci.h int (*read)(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val); bus 701 include/linux/pci.h int (*write)(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val); bus 708 include/linux/pci.h int raw_pci_read(unsigned int domain, unsigned int bus, unsigned int devfn, bus 710 include/linux/pci.h int raw_pci_write(unsigned int domain, unsigned int bus, unsigned int devfn, bus 940 include/linux/pci.h void pcie_bus_configure_settings(struct pci_bus *bus); bus 960 include/linux/pci.h void pcibios_resource_survey_bus(struct pci_bus *bus); bus 962 include/linux/pci.h void pcibios_add_bus(struct pci_bus *bus); bus 963 include/linux/pci.h void pcibios_remove_bus(struct pci_bus *bus); bus 979 include/linux/pci.h void pcibios_resource_to_bus(struct pci_bus *bus, struct pci_bus_region *region, bus 981 include/linux/pci.h void pcibios_bus_to_resource(struct pci_bus *bus, struct resource *res, bus 985 include/linux/pci.h void pci_bus_add_devices(const struct pci_bus *bus); bus 986 include/linux/pci.h struct pci_bus *pci_scan_bus(int bus, struct pci_ops *ops, void *sysdata); bus 987 include/linux/pci.h struct pci_bus *pci_create_root_bus(struct device *parent, int bus, bus 991 include/linux/pci.h int pci_bus_insert_busn_res(struct pci_bus *b, int bus, int busmax); bus 994 include/linux/pci.h struct pci_bus *pci_scan_root_bus(struct device *parent, int bus, bus 1009 include/linux/pci.h int pci_scan_slot(struct pci_bus *bus, int devfn); bus 1010 include/linux/pci.h struct pci_dev *pci_scan_single_device(struct pci_bus *bus, int devfn); bus 1011 include/linux/pci.h void pci_device_add(struct pci_dev *dev, struct pci_bus *bus); bus 1012 include/linux/pci.h unsigned int pci_scan_child_bus(struct pci_bus *bus); bus 1026 include/linux/pci.h void pci_stop_root_bus(struct pci_bus *bus); bus 1027 include/linux/pci.h void pci_remove_root_bus(struct pci_bus *bus); bus 1028 include/linux/pci.h void pci_setup_cardbus(struct pci_bus *bus); bus 1029 include/linux/pci.h void pcibios_setup_bridge(struct pci_bus *bus, unsigned long type); bus 1031 include/linux/pci.h #define dev_is_pci(d) ((d)->bus == &pci_bus_type) bus 1056 include/linux/pci.h struct pci_dev *pci_get_slot(struct pci_bus *bus, unsigned int devfn); bus 1057 include/linux/pci.h struct pci_dev *pci_get_domain_bus_and_slot(int domain, unsigned int bus, bus 1062 include/linux/pci.h int pci_bus_read_config_byte(struct pci_bus *bus, unsigned int devfn, bus 1064 include/linux/pci.h int pci_bus_read_config_word(struct pci_bus *bus, unsigned int devfn, bus 1066 include/linux/pci.h int pci_bus_read_config_dword(struct pci_bus *bus, unsigned int devfn, bus 1068 include/linux/pci.h int pci_bus_write_config_byte(struct pci_bus *bus, unsigned int devfn, bus 1070 include/linux/pci.h int pci_bus_write_config_word(struct pci_bus *bus, unsigned int devfn, bus 1072 include/linux/pci.h int pci_bus_write_config_dword(struct pci_bus *bus, unsigned int devfn, bus 1075 include/linux/pci.h int pci_generic_config_read(struct pci_bus *bus, unsigned int devfn, bus 1077 include/linux/pci.h int pci_generic_config_write(struct pci_bus *bus, unsigned int devfn, bus 1079 include/linux/pci.h int pci_generic_config_read32(struct pci_bus *bus, unsigned int devfn, bus 1081 include/linux/pci.h int pci_generic_config_write32(struct pci_bus *bus, unsigned int devfn, bus 1084 include/linux/pci.h struct pci_ops *pci_bus_set_ops(struct pci_bus *bus, struct pci_ops *ops); bus 1196 include/linux/pci.h int pci_probe_reset_bus(struct pci_bus *bus); bus 1248 include/linux/pci.h void pci_wakeup_bus(struct pci_bus *bus); bus 1249 include/linux/pci.h void pci_bus_set_current_state(struct pci_bus *bus, pci_power_t state); bus 1256 include/linux/pci.h int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap); bus 1258 include/linux/pci.h unsigned int pci_rescan_bus(struct pci_bus *bus); bus 1269 include/linux/pci.h void pci_bus_assign_resources(const struct pci_bus *bus); bus 1270 include/linux/pci.h void pci_bus_claim_resources(struct pci_bus *bus); bus 1271 include/linux/pci.h void pci_bus_size_bridges(struct pci_bus *bus); bus 1276 include/linux/pci.h void pci_assign_unassigned_bus_resources(struct pci_bus *bus); bus 1277 include/linux/pci.h void pci_assign_unassigned_root_bus_resources(struct pci_bus *bus); bus 1298 include/linux/pci.h void pci_bus_add_resource(struct pci_bus *bus, struct resource *res, bus 1300 include/linux/pci.h struct resource *pci_bus_resource_n(const struct pci_bus *bus, int n); bus 1301 include/linux/pci.h void pci_bus_remove_resources(struct pci_bus *bus); bus 1308 include/linux/pci.h #define pci_bus_for_each_resource(bus, res, i) \ bus 1310 include/linux/pci.h (res = pci_bus_resource_n(bus, i)) || i < PCI_BRIDGE_RESOURCE_NUM; \ bus 1313 include/linux/pci.h int __must_check pci_bus_alloc_resource(struct pci_bus *bus, bus 1342 include/linux/pci.h pcibios_resource_to_bus(pdev->bus, ®ion, &pdev->resource[bar]); bus 1386 include/linux/pci.h int pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max, bus 1392 include/linux/pci.h unsigned char pci_bus_max_busnr(struct pci_bus *bus); bus 1393 include/linux/pci.h void pci_setup_bridge(struct pci_bus *bus); bus 1394 include/linux/pci.h resource_size_t pcibios_window_alignment(struct pci_bus *bus, bus 1588 include/linux/pci.h static inline int pci_domain_nr(struct pci_bus *bus) { return 0; } bus 1589 include/linux/pci.h static inline int pci_proc_domain(struct pci_bus *bus) { return 0; } bus 1598 include/linux/pci.h static inline int pci_domain_nr(struct pci_bus *bus) bus 1600 include/linux/pci.h return bus->domain_nr; bus 1603 include/linux/pci.h int acpi_pci_bus_find_domain_nr(struct pci_bus *bus); bus 1605 include/linux/pci.h static inline int acpi_pci_bus_find_domain_nr(struct pci_bus *bus) bus 1608 include/linux/pci.h int pci_bus_find_domain_nr(struct pci_bus *bus, struct device *parent); bus 1730 include/linux/pci.h static inline struct pci_dev *pci_get_slot(struct pci_bus *bus, bus 1734 include/linux/pci.h unsigned int bus, unsigned int devfn) bus 1737 include/linux/pci.h static inline int pci_domain_nr(struct pci_bus *bus) { return 0; } bus 1827 include/linux/pci.h #define pci_root_bus_fwnode(bus) NULL bus 2150 include/linux/pci.h if (!dev->bus->self) bus 2152 include/linux/pci.h dev = dev->bus->self; bus 2278 include/linux/pci.h struct irq_domain *pci_host_bridge_of_msi_domain(struct pci_bus *bus); bus 2284 include/linux/pci.h struct device_node *pcibios_get_phb_of_node(struct pci_bus *bus); bus 2288 include/linux/pci.h pci_host_bridge_of_msi_domain(struct pci_bus *bus) { return NULL; } bus 2303 include/linux/pci.h static inline struct device_node *pci_bus_to_OF_node(struct pci_bus *bus) bus 2305 include/linux/pci.h return bus ? bus->dev.of_node : NULL; bus 2309 include/linux/pci.h struct irq_domain *pci_host_bridge_acpi_msi_domain(struct pci_bus *bus); bus 2316 include/linux/pci.h pci_host_bridge_acpi_msi_domain(struct pci_bus *bus) { return NULL; } bus 2353 include/linux/pci.h static inline bool pci_ari_enabled(struct pci_bus *bus) bus 2355 include/linux/pci.h return bus->self && bus->self->ari_enabled; bus 74 include/linux/pci_hotplug.h int __pci_hp_initialize(struct hotplug_slot *slot, struct pci_bus *bus, int nr, bus 86 include/linux/pci_hotplug.h #define pci_hp_initialize(slot, bus, nr, name) \ bus 87 include/linux/pci_hotplug.h __pci_hp_initialize(slot, bus, nr, name, THIS_MODULE, KBUILD_MODNAME) bus 217 include/linux/phy.h int (*read)(struct mii_bus *bus, int addr, int regnum); bus 218 include/linux/phy.h int (*write)(struct mii_bus *bus, int addr, int regnum, u16 val); bus 219 include/linux/phy.h int (*reset)(struct mii_bus *bus); bus 264 include/linux/phy.h int __mdiobus_register(struct mii_bus *bus, struct module *owner); bus 265 include/linux/phy.h #define mdiobus_register(bus) __mdiobus_register(bus, THIS_MODULE) bus 266 include/linux/phy.h void mdiobus_unregister(struct mii_bus *bus); bus 267 include/linux/phy.h void mdiobus_free(struct mii_bus *bus); bus 274 include/linux/phy.h void devm_mdiobus_free(struct device *dev, struct mii_bus *bus); bus 275 include/linux/phy.h struct phy_device *mdiobus_scan(struct mii_bus *bus, int addr); bus 698 include/linux/phy.h return mdiobus_read(phydev->mdio.bus, phydev->mdio.addr, regnum); bus 710 include/linux/phy.h return __mdiobus_read(phydev->mdio.bus, phydev->mdio.addr, regnum); bus 725 include/linux/phy.h return mdiobus_write(phydev->mdio.bus, phydev->mdio.addr, regnum, val); bus 738 include/linux/phy.h return __mdiobus_write(phydev->mdio.bus, phydev->mdio.addr, regnum, bus 999 include/linux/phy.h struct phy_device *phy_device_create(struct mii_bus *bus, int addr, u32 phy_id, bus 1003 include/linux/phy.h struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45); bus 1008 include/linux/phy.h struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45) bus 1028 include/linux/phy.h struct phy_device *phy_find_first(struct mii_bus *bus); bus 157 include/linux/platform_data/brcmfmac.h } bus; bus 24 include/linux/platform_data/dma-s3c24xx.h enum s3c24xx_dma_bus bus; bus 58 include/linux/platform_data/media/omap4iss.h } bus; /* gcc < 4.6.0 chokes on anonymous union initializers */ bus 43 include/linux/platform_device.h #define dev_is_platform(dev) ((dev)->bus == &platform_bus_type) bus 89 include/linux/pm_clock.h extern void pm_clk_add_notifier(struct bus_type *bus, bus 92 include/linux/pm_clock.h static inline void pm_clk_add_notifier(struct bus_type *bus, bus 65 include/linux/power/bq27xxx_battery.h struct bq27xxx_access_methods bus; bus 530 include/linux/regmap.h const struct regmap_bus *bus, bus 578 include/linux/regmap.h const struct regmap_bus *bus, bus 663 include/linux/regmap.h #define regmap_init(dev, bus, bus_context, config) \ bus 665 include/linux/regmap.h dev, bus, bus_context, config) bus 829 include/linux/regmap.h #define devm_regmap_init(dev, bus, bus_context, config) \ bus 831 include/linux/regmap.h dev, bus, bus_context, config) bus 487 include/linux/sfp.h void (*attach)(void *priv, struct sfp_bus *bus); bus 488 include/linux/sfp.h void (*detach)(void *priv, struct sfp_bus *bus); bus 498 include/linux/sfp.h int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id, bus 500 include/linux/sfp.h void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id, bus 502 include/linux/sfp.h phy_interface_t sfp_select_interface(struct sfp_bus *bus, bus 506 include/linux/sfp.h int sfp_get_module_info(struct sfp_bus *bus, struct ethtool_modinfo *modinfo); bus 507 include/linux/sfp.h int sfp_get_module_eeprom(struct sfp_bus *bus, struct ethtool_eeprom *ee, bus 509 include/linux/sfp.h void sfp_upstream_start(struct sfp_bus *bus); bus 510 include/linux/sfp.h void sfp_upstream_stop(struct sfp_bus *bus); bus 514 include/linux/sfp.h void sfp_unregister_upstream(struct sfp_bus *bus); bus 516 include/linux/sfp.h static inline int sfp_parse_port(struct sfp_bus *bus, bus 523 include/linux/sfp.h static inline void sfp_parse_support(struct sfp_bus *bus, bus 529 include/linux/sfp.h static inline phy_interface_t sfp_select_interface(struct sfp_bus *bus, bus 536 include/linux/sfp.h static inline int sfp_get_module_info(struct sfp_bus *bus, bus 542 include/linux/sfp.h static inline int sfp_get_module_eeprom(struct sfp_bus *bus, bus 548 include/linux/sfp.h static inline void sfp_upstream_start(struct sfp_bus *bus) bus 552 include/linux/sfp.h static inline void sfp_upstream_stop(struct sfp_bus *bus) bus 563 include/linux/sfp.h static inline void sfp_unregister_upstream(struct sfp_bus *bus) bus 402 include/linux/soundwire/sdw.h int sdw_master_read_prop(struct sdw_bus *bus); bus 556 include/linux/soundwire/sdw.h struct sdw_bus *bus; bus 587 include/linux/soundwire/sdw.h int sdw_handle_slave_status(struct sdw_bus *bus, bus 669 include/linux/soundwire/sdw.h int (*dpn_set_port_params)(struct sdw_bus *bus, bus 672 include/linux/soundwire/sdw.h int (*dpn_set_port_transport_params)(struct sdw_bus *bus, bus 675 include/linux/soundwire/sdw.h int (*dpn_port_prep)(struct sdw_bus *bus, bus 677 include/linux/soundwire/sdw.h int (*dpn_port_enable_ch)(struct sdw_bus *bus, bus 706 include/linux/soundwire/sdw.h int (*read_prop)(struct sdw_bus *bus); bus 709 include/linux/soundwire/sdw.h (struct sdw_bus *bus, struct sdw_msg *msg); bus 711 include/linux/soundwire/sdw.h (struct sdw_bus *bus, struct sdw_msg *msg, bus 714 include/linux/soundwire/sdw.h (struct sdw_bus *bus, unsigned int dev_num); bus 715 include/linux/soundwire/sdw.h int (*set_bus_conf)(struct sdw_bus *bus, bus 717 include/linux/soundwire/sdw.h int (*pre_bank_switch)(struct sdw_bus *bus); bus 718 include/linux/soundwire/sdw.h int (*post_bank_switch)(struct sdw_bus *bus); bus 754 include/linux/soundwire/sdw.h int (*compute_params)(struct sdw_bus *bus); bus 769 include/linux/soundwire/sdw.h int sdw_add_bus_master(struct sdw_bus *bus); bus 770 include/linux/soundwire/sdw.h void sdw_delete_bus_master(struct sdw_bus *bus); bus 857 include/linux/soundwire/sdw.h int sdw_stream_add_master(struct sdw_bus *bus, bus 867 include/linux/soundwire/sdw.h int sdw_stream_remove_master(struct sdw_bus *bus, bus 275 include/linux/ssb/ssb.h struct ssb_bus *bus; bus 523 include/linux/ssb/ssb.h typedef int (*ssb_invariants_func_t)(struct ssb_bus *bus, bus 527 include/linux/ssb/ssb.h extern int ssb_bus_host_soc_register(struct ssb_bus *bus, bus 530 include/linux/ssb/ssb.h extern int ssb_bus_pcibus_register(struct ssb_bus *bus, bus 534 include/linux/ssb/ssb.h extern int ssb_bus_pcmciabus_register(struct ssb_bus *bus, bus 539 include/linux/ssb/ssb.h extern int ssb_bus_sdiobus_register(struct ssb_bus *bus, bus 545 include/linux/ssb/ssb.h extern void ssb_bus_unregister(struct ssb_bus *bus); bus 548 include/linux/ssb/ssb.h extern bool ssb_is_sprom_available(struct ssb_bus *bus); bus 553 include/linux/ssb/ssb.h int (*sprom_callback)(struct ssb_bus *bus, bus 558 include/linux/ssb/ssb.h extern int ssb_bus_suspend(struct ssb_bus *bus); bus 561 include/linux/ssb/ssb.h extern int ssb_bus_resume(struct ssb_bus *bus); bus 563 include/linux/ssb/ssb.h extern u32 ssb_clockspeed(struct ssb_bus *bus); bus 628 include/linux/ssb/ssb.h "unsupported bustype %d\n", dev->bus->bustype); bus 643 include/linux/ssb/ssb.h if (sdev->bus->bustype == SSB_BUSTYPE_PCI) bus 644 include/linux/ssb/ssb.h pci_set_power_state(sdev->bus->host_pci, state); bus 662 include/linux/ssb/ssb.h extern int ssb_bus_may_powerdown(struct ssb_bus *bus); bus 666 include/linux/ssb/ssb.h extern int ssb_bus_powerup(struct ssb_bus *bus, bool dynamic_pctl); bus 668 include/linux/ssb/ssb.h extern void ssb_commit_settings(struct ssb_bus *bus); bus 62 include/linux/ssb/ssb_driver_gige.h return container_of(pdev->bus->ops, struct ssb_gige, pci_ops); bus 77 include/linux/ssb/ssb_driver_gige.h return !!(dev->dev->bus->sprom.boardflags_lo & bus 87 include/linux/ssb/ssb_driver_gige.h return ((dev->dev->bus->chip_id == 0x4785) && bus 88 include/linux/ssb/ssb_driver_gige.h (dev->dev->bus->chip_rev < 2)); bus 97 include/linux/ssb/ssb_driver_gige.h return (dev->dev->bus->chip_id == 0x4785); bus 108 include/linux/ssb/ssb_driver_gige.h memcpy(macaddr, dev->dev->bus->sprom.et0mac, 6); bus 119 include/linux/ssb/ssb_driver_gige.h return dev->dev->bus->sprom.et0phyaddr; bus 9 include/linux/ssb/ssb_embedded.h extern int ssb_watchdog_timer_set(struct ssb_bus *bus, u32 ticks); bus 12 include/linux/ssb/ssb_embedded.h u32 ssb_gpio_in(struct ssb_bus *bus, u32 mask); bus 13 include/linux/ssb/ssb_embedded.h u32 ssb_gpio_out(struct ssb_bus *bus, u32 mask, u32 value); bus 14 include/linux/ssb/ssb_embedded.h u32 ssb_gpio_outen(struct ssb_bus *bus, u32 mask, u32 value); bus 15 include/linux/ssb/ssb_embedded.h u32 ssb_gpio_control(struct ssb_bus *bus, u32 mask, u32 value); bus 16 include/linux/ssb/ssb_embedded.h u32 ssb_gpio_intmask(struct ssb_bus *bus, u32 mask, u32 value); bus 17 include/linux/ssb/ssb_embedded.h u32 ssb_gpio_polarity(struct ssb_bus *bus, u32 mask, u32 value); bus 69 include/linux/superhyway.h struct superhyway_bus *bus; bus 85 include/linux/superhyway.h return dev->bus->ops->read_vcr(base, vcr); bus 92 include/linux/superhyway.h return dev->bus->ops->write_vcr(base, vcr); bus 101 include/linux/superhyway.h int superhyway_add_devices(struct superhyway_bus *bus, struct superhyway_device **devices, int nr_devices); bus 1012 include/linux/syscalls.h asmlinkage long sys_pciconfig_read(unsigned long bus, unsigned long dfn, bus 1015 include/linux/syscalls.h asmlinkage long sys_pciconfig_write(unsigned long bus, unsigned long dfn, bus 1018 include/linux/syscalls.h asmlinkage long sys_pciconfig_iobase(long which, unsigned long bus, unsigned long devfn); bus 82 include/linux/tc.h struct tc_bus *bus; /* Bus this device is on. */ bus 114 include/linux/ucb1400.h return ac97->bus->ops->read(ac97, reg); bus 119 include/linux/ucb1400.h ac97->bus->ops->write(ac97, reg, val); bus 646 include/linux/usb.h struct usb_bus *bus; bus 820 include/linux/usb.h return udev && udev->bus && udev->bus->no_sg_constraint; bus 914 include/linux/usb.h actual = snprintf(buf, size, "usb-%s-%s", dev->bus->bus_name, bus 241 include/linux/usb/hcd.h static inline struct usb_hcd *bus_to_hcd(struct usb_bus *bus) bus 243 include/linux/usb/hcd.h return container_of(bus, struct usb_hcd, self); bus 498 include/linux/usb/hcd.h void *hcd_buffer_alloc(struct usb_bus *bus, size_t size, bus 500 include/linux/usb/hcd.h void hcd_buffer_free(struct usb_bus *bus, size_t size, bus 511 include/linux/usb/hcd.h extern void usb_hcd_start_port_resume(struct usb_bus *bus, int portnum); bus 512 include/linux/usb/hcd.h extern void usb_hcd_end_port_resume(struct usb_bus *bus, int portnum); bus 691 include/linux/usb/hcd.h void (*urb_submit)(struct usb_bus *bus, struct urb *urb); bus 692 include/linux/usb/hcd.h void (*urb_submit_error)(struct usb_bus *bus, struct urb *urb, int err); bus 693 include/linux/usb/hcd.h void (*urb_complete)(struct usb_bus *bus, struct urb *urb, int status); bus 699 include/linux/usb/hcd.h static inline void usbmon_urb_submit(struct usb_bus *bus, struct urb *urb) bus 701 include/linux/usb/hcd.h if (bus->monitored) bus 702 include/linux/usb/hcd.h (*mon_ops->urb_submit)(bus, urb); bus 705 include/linux/usb/hcd.h static inline void usbmon_urb_submit_error(struct usb_bus *bus, struct urb *urb, bus 708 include/linux/usb/hcd.h if (bus->monitored) bus 709 include/linux/usb/hcd.h (*mon_ops->urb_submit_error)(bus, urb, error); bus 712 include/linux/usb/hcd.h static inline void usbmon_urb_complete(struct usb_bus *bus, struct urb *urb, bus 715 include/linux/usb/hcd.h if (bus->monitored) bus 716 include/linux/usb/hcd.h (*mon_ops->urb_complete)(bus, urb, status); bus 724 include/linux/usb/hcd.h static inline void usbmon_urb_submit(struct usb_bus *bus, struct urb *urb) {} bus 725 include/linux/usb/hcd.h static inline void usbmon_urb_submit_error(struct usb_bus *bus, struct urb *urb, bus 727 include/linux/usb/hcd.h static inline void usbmon_urb_complete(struct usb_bus *bus, struct urb *urb, bus 114 include/linux/usb/otg.h extern int usb_bus_start_enum(struct usb_bus *bus, unsigned port_num); bus 107 include/media/v4l2-fwnode.h } bus; bus 222 include/net/bluetooth/hci_core.h __u8 bus; bus 55 include/net/bluetooth/hci_mon.h __u8 bus; bus 528 include/net/bluetooth/mgmt.h __u8 bus; bus 848 include/net/bluetooth/mgmt.h __u8 bus; bus 492 include/net/iucv/iucv.h struct bus_type *bus; bus 180 include/pcmcia/ss.h void (*tune_bridge)(struct pcmcia_socket *sock, struct pci_bus *bus); bus 397 include/scsi/libfcoe.h ssize_t fcoe_ctlr_create_store(struct bus_type *bus, bus 399 include/scsi/libfcoe.h ssize_t fcoe_ctlr_destroy_store(struct bus_type *bus, bus 202 include/sound/ac97_codec.h void (*private_free) (struct snd_ac97_bus *bus); bus 240 include/sound/ac97_codec.h struct snd_ac97_bus *bus; bus 316 include/sound/ac97_codec.h int snd_ac97_mixer(struct snd_ac97_bus *bus, struct snd_ac97_template *template, bus 383 include/sound/ac97_codec.h struct snd_ac97_bus *bus; bus 176 include/sound/cs8427.h int snd_cs8427_init(struct snd_i2c_bus *bus, struct snd_i2c_device *device); bus 177 include/sound/cs8427.h int snd_cs8427_create(struct snd_i2c_bus *bus, unsigned char addr, bus 69 include/sound/hda_codec.h #define to_hda_bus(bus) container_of(bus, struct hda_bus, core) bus 178 include/sound/hda_codec.h struct hda_bus *bus; bus 291 include/sound/hda_codec.h #define list_for_each_codec(c, bus) \ bus 292 include/sound/hda_codec.h list_for_each_entry(c, &(bus)->core.codec_list, core.list) bus 293 include/sound/hda_codec.h #define list_for_each_codec_safe(c, n, bus) \ bus 294 include/sound/hda_codec.h list_for_each_entry_safe(c, n, &(bus)->core.codec_list, core.list) bus 302 include/sound/hda_codec.h int snd_hda_codec_new(struct hda_bus *bus, struct snd_card *card, bus 304 include/sound/hda_codec.h int snd_hda_codec_device_new(struct hda_bus *bus, struct snd_card *card, bus 367 include/sound/hda_codec.h snd_hda_queue_unsol_event(struct hda_bus *bus, u32 res, u32 res_ex) bus 369 include/sound/hda_codec.h snd_hdac_bus_queue_event(&bus->core, res, res_ex); bus 461 include/sound/hda_codec.h int snd_hda_lock_devices(struct hda_bus *bus); bus 462 include/sound/hda_codec.h void snd_hda_unlock_devices(struct hda_bus *bus); bus 463 include/sound/hda_codec.h void snd_hda_bus_reset(struct hda_bus *bus); bus 464 include/sound/hda_codec.h void snd_hda_bus_reset_codecs(struct hda_bus *bus); bus 491 include/sound/hda_codec.h void snd_hda_set_power_save(struct hda_bus *bus, int delay); bus 494 include/sound/hda_codec.h static inline void snd_hda_set_power_save(struct hda_bus *bus, int delay) {} bus 501 include/sound/hda_codec.h int snd_hda_load_patch(struct hda_bus *bus, size_t size, const void *buf); bus 14 include/sound/hda_component.h int snd_hdac_set_codec_wakeup(struct hdac_bus *bus, bool enable); bus 15 include/sound/hda_component.h void snd_hdac_display_power(struct hdac_bus *bus, unsigned int idx, bus 21 include/sound/hda_component.h int snd_hdac_acomp_init(struct hdac_bus *bus, bus 25 include/sound/hda_component.h int snd_hdac_acomp_exit(struct hdac_bus *bus); bus 26 include/sound/hda_component.h int snd_hdac_acomp_register_notifier(struct hdac_bus *bus, bus 29 include/sound/hda_component.h static inline int snd_hdac_set_codec_wakeup(struct hdac_bus *bus, bool enable) bus 33 include/sound/hda_component.h static inline void snd_hdac_display_power(struct hdac_bus *bus, bus 48 include/sound/hda_component.h static inline int snd_hdac_acomp_init(struct hdac_bus *bus, bus 56 include/sound/hda_component.h static inline int snd_hdac_acomp_exit(struct hdac_bus *bus) bus 60 include/sound/hda_component.h static inline int snd_hdac_acomp_register_notifier(struct hdac_bus *bus, bus 11 include/sound/hda_i915.h void snd_hdac_i915_set_bclk(struct hdac_bus *bus); bus 12 include/sound/hda_i915.h int snd_hdac_i915_init(struct hdac_bus *bus); bus 14 include/sound/hda_i915.h static inline void snd_hdac_i915_set_bclk(struct hdac_bus *bus) bus 17 include/sound/hda_i915.h static inline int snd_hdac_i915_init(struct hdac_bus *bus) bus 22 include/sound/hda_i915.h static inline int snd_hdac_i915_exit(struct hdac_bus *bus) bus 24 include/sound/hda_i915.h return snd_hdac_acomp_exit(bus); bus 52 include/sound/hdaudio.h struct hdac_bus *bus; bus 117 include/sound/hdaudio.h int snd_hdac_device_init(struct hdac_device *dev, struct hdac_bus *bus, bus 240 include/sound/hdaudio.h int (*command)(struct hdac_bus *bus, unsigned int cmd); bus 242 include/sound/hdaudio.h int (*get_response)(struct hdac_bus *bus, unsigned int addr, bus 367 include/sound/hdaudio.h int snd_hdac_bus_init(struct hdac_bus *bus, struct device *dev, bus 369 include/sound/hdaudio.h void snd_hdac_bus_exit(struct hdac_bus *bus); bus 370 include/sound/hdaudio.h int snd_hdac_bus_exec_verb(struct hdac_bus *bus, unsigned int addr, bus 372 include/sound/hdaudio.h int snd_hdac_bus_exec_verb_unlocked(struct hdac_bus *bus, unsigned int addr, bus 374 include/sound/hdaudio.h void snd_hdac_bus_queue_event(struct hdac_bus *bus, u32 res, u32 res_ex); bus 378 include/sound/hdaudio.h set_bit(codec->addr, &codec->bus->codec_powered); bus 383 include/sound/hdaudio.h clear_bit(codec->addr, &codec->bus->codec_powered); bus 386 include/sound/hdaudio.h int snd_hdac_bus_send_cmd(struct hdac_bus *bus, unsigned int val); bus 387 include/sound/hdaudio.h int snd_hdac_bus_get_response(struct hdac_bus *bus, unsigned int addr, bus 389 include/sound/hdaudio.h int snd_hdac_bus_parse_capabilities(struct hdac_bus *bus); bus 391 include/sound/hdaudio.h bool snd_hdac_bus_init_chip(struct hdac_bus *bus, bool full_reset); bus 392 include/sound/hdaudio.h void snd_hdac_bus_stop_chip(struct hdac_bus *bus); bus 393 include/sound/hdaudio.h void snd_hdac_bus_init_cmd_io(struct hdac_bus *bus); bus 394 include/sound/hdaudio.h void snd_hdac_bus_stop_cmd_io(struct hdac_bus *bus); bus 395 include/sound/hdaudio.h void snd_hdac_bus_enter_link_reset(struct hdac_bus *bus); bus 396 include/sound/hdaudio.h void snd_hdac_bus_exit_link_reset(struct hdac_bus *bus); bus 397 include/sound/hdaudio.h int snd_hdac_bus_reset_link(struct hdac_bus *bus, bool full_reset); bus 399 include/sound/hdaudio.h void snd_hdac_bus_update_rirb(struct hdac_bus *bus); bus 400 include/sound/hdaudio.h int snd_hdac_bus_handle_stream_irq(struct hdac_bus *bus, unsigned int status, bus 404 include/sound/hdaudio.h int snd_hdac_bus_alloc_stream_pages(struct hdac_bus *bus); bus 405 include/sound/hdaudio.h void snd_hdac_bus_free_stream_pages(struct hdac_bus *bus); bus 411 include/sound/hdaudio.h #define snd_hdac_aligned_mmio(bus) (bus)->aligned_mmio bus 413 include/sound/hdaudio.h #define snd_hdac_aligned_mmio(bus) false bus 418 include/sound/hdaudio.h static inline void snd_hdac_reg_writeb(struct hdac_bus *bus, void __iomem *addr, bus 421 include/sound/hdaudio.h if (snd_hdac_aligned_mmio(bus)) bus 427 include/sound/hdaudio.h static inline void snd_hdac_reg_writew(struct hdac_bus *bus, void __iomem *addr, bus 430 include/sound/hdaudio.h if (snd_hdac_aligned_mmio(bus)) bus 436 include/sound/hdaudio.h static inline u8 snd_hdac_reg_readb(struct hdac_bus *bus, void __iomem *addr) bus 438 include/sound/hdaudio.h return snd_hdac_aligned_mmio(bus) ? bus 442 include/sound/hdaudio.h static inline u16 snd_hdac_reg_readw(struct hdac_bus *bus, void __iomem *addr) bus 444 include/sound/hdaudio.h return snd_hdac_aligned_mmio(bus) ? bus 448 include/sound/hdaudio.h #define snd_hdac_reg_writel(bus, addr, val) writel(val, addr) bus 449 include/sound/hdaudio.h #define snd_hdac_reg_readl(bus, addr) readl(addr) bus 496 include/sound/hdaudio.h struct hdac_bus *bus; bus 542 include/sound/hdaudio.h void snd_hdac_stream_init(struct hdac_bus *bus, struct hdac_stream *azx_dev, bus 544 include/sound/hdaudio.h struct hdac_stream *snd_hdac_stream_assign(struct hdac_bus *bus, bus 547 include/sound/hdaudio.h struct hdac_stream *snd_hdac_get_stream(struct hdac_bus *bus, bus 565 include/sound/hdaudio.h int snd_hdac_get_stream_stripe_ctl(struct hdac_bus *bus, bus 573 include/sound/hdaudio.h snd_hdac_reg_writel((dev)->bus, (dev)->sd_addr + AZX_REG_ ## reg, value) bus 575 include/sound/hdaudio.h snd_hdac_reg_writew((dev)->bus, (dev)->sd_addr + AZX_REG_ ## reg, value) bus 577 include/sound/hdaudio.h snd_hdac_reg_writeb((dev)->bus, (dev)->sd_addr + AZX_REG_ ## reg, value) bus 579 include/sound/hdaudio.h snd_hdac_reg_readl((dev)->bus, (dev)->sd_addr + AZX_REG_ ## reg) bus 581 include/sound/hdaudio.h snd_hdac_reg_readw((dev)->bus, (dev)->sd_addr + AZX_REG_ ## reg) bus 583 include/sound/hdaudio.h snd_hdac_reg_readb((dev)->bus, (dev)->sd_addr + AZX_REG_ ## reg) bus 7 include/sound/hdaudio_ext.h int snd_hdac_ext_bus_init(struct hdac_bus *bus, struct device *dev, bus 11 include/sound/hdaudio_ext.h void snd_hdac_ext_bus_exit(struct hdac_bus *bus); bus 12 include/sound/hdaudio_ext.h int snd_hdac_ext_bus_device_init(struct hdac_bus *bus, int addr, bus 15 include/sound/hdaudio_ext.h void snd_hdac_ext_bus_device_remove(struct hdac_bus *bus); bus 30 include/sound/hdaudio_ext.h int snd_hdac_ext_bus_get_ml_capabilities(struct hdac_bus *bus); bus 31 include/sound/hdaudio_ext.h struct hdac_ext_link *snd_hdac_ext_bus_get_link(struct hdac_bus *bus, bus 80 include/sound/hdaudio_ext.h void snd_hdac_ext_stream_init(struct hdac_bus *bus, bus 83 include/sound/hdaudio_ext.h int snd_hdac_ext_stream_init_all(struct hdac_bus *bus, int start_idx, bus 85 include/sound/hdaudio_ext.h void snd_hdac_stream_free_all(struct hdac_bus *bus); bus 86 include/sound/hdaudio_ext.h void snd_hdac_link_free_all(struct hdac_bus *bus); bus 87 include/sound/hdaudio_ext.h struct hdac_ext_stream *snd_hdac_ext_stream_assign(struct hdac_bus *bus, bus 91 include/sound/hdaudio_ext.h void snd_hdac_ext_stream_decouple(struct hdac_bus *bus, bus 93 include/sound/hdaudio_ext.h void snd_hdac_ext_stop_streams(struct hdac_bus *bus); bus 95 include/sound/hdaudio_ext.h int snd_hdac_ext_stream_set_spib(struct hdac_bus *bus, bus 97 include/sound/hdaudio_ext.h int snd_hdac_ext_stream_get_spbmaxfifo(struct hdac_bus *bus, bus 99 include/sound/hdaudio_ext.h void snd_hdac_ext_stream_drsm_enable(struct hdac_bus *bus, bus 101 include/sound/hdaudio_ext.h int snd_hdac_ext_stream_set_dpibr(struct hdac_bus *bus, bus 111 include/sound/hdaudio_ext.h struct hdac_bus *bus; bus 124 include/sound/hdaudio_ext.h int snd_hdac_ext_bus_link_power_up_all(struct hdac_bus *bus); bus 125 include/sound/hdaudio_ext.h int snd_hdac_ext_bus_link_power_down_all(struct hdac_bus *bus); bus 131 include/sound/hdaudio_ext.h int snd_hdac_ext_bus_link_get(struct hdac_bus *bus, struct hdac_ext_link *link); bus 132 include/sound/hdaudio_ext.h int snd_hdac_ext_bus_link_put(struct hdac_bus *bus, struct hdac_ext_link *link); bus 12 include/sound/i2c.h struct snd_i2c_bus *bus; /* I2C bus */ bus 24 include/sound/i2c.h void (*start)(struct snd_i2c_bus *bus); /* transfer start */ bus 25 include/sound/i2c.h void (*stop)(struct snd_i2c_bus *bus); /* transfer stop */ bus 26 include/sound/i2c.h void (*direction)(struct snd_i2c_bus *bus, int clock, int data); /* set line direction (0 = write, 1 = read) */ bus 27 include/sound/i2c.h void (*setlines)(struct snd_i2c_bus *bus, int clock, int data); bus 28 include/sound/i2c.h int (*getclock)(struct snd_i2c_bus *bus); bus 29 include/sound/i2c.h int (*getdata)(struct snd_i2c_bus *bus, int ack); bus 35 include/sound/i2c.h int (*probeaddr)(struct snd_i2c_bus *bus, unsigned short addr); bus 57 include/sound/i2c.h void (*private_free)(struct snd_i2c_bus *bus); bus 64 include/sound/i2c.h int snd_i2c_device_create(struct snd_i2c_bus *bus, const char *name, bus 68 include/sound/i2c.h static inline void snd_i2c_lock(struct snd_i2c_bus *bus) bus 70 include/sound/i2c.h if (bus->master) bus 71 include/sound/i2c.h mutex_lock(&bus->master->lock_mutex); bus 73 include/sound/i2c.h mutex_lock(&bus->lock_mutex); bus 76 include/sound/i2c.h static inline void snd_i2c_unlock(struct snd_i2c_bus *bus) bus 78 include/sound/i2c.h if (bus->master) bus 79 include/sound/i2c.h mutex_unlock(&bus->master->lock_mutex); bus 81 include/sound/i2c.h mutex_unlock(&bus->lock_mutex); bus 86 include/sound/i2c.h int snd_i2c_probeaddr(struct snd_i2c_bus *bus, unsigned short addr); bus 12 include/sound/tea6330t.h int snd_tea6330t_detect(struct snd_i2c_bus *bus, int equalizer); bus 13 include/sound/tea6330t.h int snd_tea6330t_update_mixer(struct snd_card *card, struct snd_i2c_bus *bus, bus 24 include/trace/events/devlink.h __string(bus_name, devlink->dev->bus->name) bus 34 include/trace/events/devlink.h __assign_str(bus_name, devlink->dev->bus->name); bus 58 include/trace/events/devlink.h __string(bus_name, devlink->dev->bus->name) bus 66 include/trace/events/devlink.h __assign_str(bus_name, devlink->dev->bus->name); bus 88 include/trace/events/devlink.h __string(bus_name, devlink->dev->bus->name) bus 96 include/trace/events/devlink.h __assign_str(bus_name, devlink->dev->bus->name); bus 119 include/trace/events/devlink.h __string(bus_name, devlink->dev->bus->name) bus 128 include/trace/events/devlink.h __assign_str(bus_name, devlink->dev->bus->name); bus 153 include/trace/events/devlink.h __string(bus_name, devlink->dev->bus->name) bus 161 include/trace/events/devlink.h __assign_str(bus_name, devlink->dev->bus->name); bus 12 include/trace/events/mdio.h TP_PROTO(struct mii_bus *bus, char read, bus 15 include/trace/events/mdio.h TP_ARGS(bus, read, addr, regnum, val, err), bus 28 include/trace/events/mdio.h strncpy(__entry->busid, bus->id, MII_BUS_ID_SIZE); bus 14 include/uapi/linux/cciss_ioctl.h unsigned char bus; bus 94 include/uapi/linux/edd.h __u8 bus; bus 190 include/uapi/linux/i2o-dev.h } bus; bus 50 include/uapi/linux/uhid.h __u16 bus; bus 136 include/uapi/linux/uhid.h __u16 bus; bus 593 include/uapi/linux/vfio.h __u8 bus; bus 78 include/xen/interface/io/pciif.h uint32_t bus; bus 102 include/xen/interface/io/pciif.h uint32_t bus; bus 146 include/xen/interface/physdev.h int bus; bus 171 include/xen/interface/physdev.h uint8_t bus; bus 178 include/xen/interface/physdev.h uint8_t bus; bus 185 include/xen/interface/physdev.h uint8_t bus; bus 190 include/xen/interface/physdev.h uint8_t bus; bus 255 include/xen/interface/physdev.h uint8_t bus; bus 259 include/xen/interface/physdev.h uint8_t bus; bus 280 include/xen/interface/physdev.h uint8_t bus; bus 294 include/xen/interface/physdev.h uint8_t bus; bus 914 kernel/dma/debug.c void dma_debug_add_bus(struct bus_type *bus) bus 929 kernel/dma/debug.c bus_register_notifier(bus, nb); bus 10023 kernel/events/core.c pmu->dev->bus = &pmu_bus; bus 165 kernel/irq/internals.h __irq_get_desc_lock(unsigned int irq, unsigned long *flags, bool bus, bus 167 kernel/irq/internals.h void __irq_put_desc_unlock(struct irq_desc *desc, unsigned long flags, bool bus); bus 870 kernel/irq/irqdesc.c __irq_get_desc_lock(unsigned int irq, unsigned long *flags, bool bus, bus 886 kernel/irq/irqdesc.c if (bus) bus 893 kernel/irq/irqdesc.c void __irq_put_desc_unlock(struct irq_desc *desc, unsigned long flags, bool bus) bus 896 kernel/irq/irqdesc.c if (bus) bus 723 kernel/time/clockevents.c .bus = &clockevents_subsys, bus 757 kernel/time/clockevents.c dev->bus = &clockevents_subsys; bus 1185 kernel/time/clocksource.c .bus = &clocksource_subsys, bus 70 kernel/trace/trace_mmiotrace.c dev->bus->number, dev->devfn, bus 5638 kernel/workqueue.c wq_dev->dev.bus = &wq_subsys; bus 2120 net/bluetooth/hci_core.c di.type = (hdev->bus & 0x0f) | ((hdev->dev_type & 0x03) << 4); bus 3309 net/bluetooth/hci_core.c BT_DBG("%p name %s bus %d", hdev, hdev->name, hdev->bus); bus 3391 net/bluetooth/hci_core.c BT_DBG("%p name %s bus %d", hdev, hdev->name, hdev->bus); bus 420 net/bluetooth/hci_sock.c ni->bus = hdev->bus; bus 777 net/bluetooth/hidp/core.c hid->bus = BUS_BLUETOOTH; bus 520 net/bluetooth/mgmt.c rp->entry[count].bus = d->bus; bus 6945 net/bluetooth/mgmt.c ev.bus = hdev->bus; bus 6980 net/bluetooth/mgmt.c ev.bus = hdev->bus; bus 124 net/core/devlink.c if (strcmp(devlink->dev->bus->name, busname) == 0 && bus 455 net/core/devlink.c if (nla_put_string(msg, DEVLINK_ATTR_BUS_NAME, devlink->dev->bus->name)) bus 28 net/dsa/slave.c static int dsa_slave_phy_read(struct mii_bus *bus, int addr, int reg) bus 30 net/dsa/slave.c struct dsa_switch *ds = bus->priv; bus 38 net/dsa/slave.c static int dsa_slave_phy_write(struct mii_bus *bus, int addr, int reg, u16 val) bus 40 net/dsa/slave.c struct dsa_switch *ds = bus->priv; bus 227 net/iucv/af_iucv.c .bus = NULL, bus 2418 net/iucv/af_iucv.c af_iucv_driver.bus = pr_iucv->bus; bus 2428 net/iucv/af_iucv.c af_iucv_dev->bus = pr_iucv->bus; bus 1993 net/iucv/iucv.c .bus = NULL, bus 2046 net/iucv/iucv.c iucv_if.bus = &iucv_bus; bus 41 samples/hidraw/hid-example.c const char *bus_str(int bus); bus 163 samples/hidraw/hid-example.c bus_str(int bus) bus 165 samples/hidraw/hid-example.c switch (bus) { bus 185 samples/uhid/uhid-example.c ev.u.create.bus = BUS_USB; bus 1489 samples/vfio-mdev/mbochs.c mbochs_dev.bus = NULL; bus 796 samples/vfio-mdev/mdpy.c mdpy_dev.bus = NULL; bus 1473 samples/vfio-mdev/mtty.c mtty_dev.dev.bus = NULL; bus 812 scripts/dtc/checks.c node->bus = &pci_bus; bus 850 scripts/dtc/checks.c if (!node->parent || (node->parent->bus != &pci_bus)) bus 882 scripts/dtc/checks.c if (!node->parent || (node->parent->bus != &pci_bus)) bus 943 scripts/dtc/checks.c node->bus = &simple_bus; bus 957 scripts/dtc/checks.c if (!node->parent || (node->parent->bus != &simple_bus)) bus 971 scripts/dtc/checks.c if (node->parent->parent && !(node->bus == &simple_bus)) bus 995 scripts/dtc/checks.c node->bus = &i2c_bus; bus 1002 scripts/dtc/checks.c node->bus = &i2c_bus; bus 1026 scripts/dtc/checks.c if (!node->parent || (node->parent->bus != &i2c_bus)) bus 1063 scripts/dtc/checks.c node->bus = &spi_bus; bus 1075 scripts/dtc/checks.c node->bus = &spi_bus; bus 1079 scripts/dtc/checks.c if (node->bus == &spi_bus) bus 1083 scripts/dtc/checks.c if (node->bus == &spi_bus && get_property(node, "reg")) bus 1086 scripts/dtc/checks.c if (node->bus != &spi_bus || !node->children) bus 1107 scripts/dtc/checks.c if (!node->parent || (node->parent->bus != &spi_bus)) bus 1135 scripts/dtc/checks.c if (node->parent && node->parent->bus) bus 1630 scripts/dtc/checks.c node->bus = &graph_port_bus; bus 1633 scripts/dtc/checks.c if (!node->parent->bus && bus 1635 scripts/dtc/checks.c node->parent->bus = &graph_ports_bus; bus 1649 scripts/dtc/checks.c if (node->bus != &graph_ports_bus && node->bus != &graph_port_bus) bus 1702 scripts/dtc/checks.c if (node->bus != &graph_port_bus) bus 1740 scripts/dtc/checks.c if (!node->parent || node->parent->bus != &graph_port_bus) bus 166 scripts/dtc/dtc.h const struct bus_type *bus; bus 26 scripts/mod/devicetable-offsets.c DEVID_FIELD(hid_device_id, bus); bus 391 scripts/mod/file2alias.c DEF_FIELD(symval, hid_device_id, bus); bus 397 scripts/mod/file2alias.c ADD(alias, "b", bus != HID_BUS_ANY, bus); bus 114 sound/ac97/bus.c codec->dev.bus = &ac97_bus_type; bus 193 sound/ac97/bus.c drv->driver.bus = &ac97_bus_type; bus 77 sound/ac97/snd_ac97_compat.c ac97->bus = &compat_soc_ac97_bus; bus 29 sound/ac97_bus.c ac97->id = ac97->bus->ops->read(ac97, AC97_VENDOR_ID1) << 16; bus 30 sound/ac97_bus.c ac97->id |= ac97->bus->ops->read(ac97, AC97_VENDOR_ID2); bus 58 sound/ac97_bus.c struct snd_ac97_bus_ops *ops = ac97->bus->ops; bus 153 sound/aoa/soundbus/core.c dev->ofdev.dev.bus = &soundbus_bus_type; bus 168 sound/aoa/soundbus/core.c drv->driver.bus = &soundbus_bus_type; bus 29 sound/aoa/soundbus/i2sbus/control.c (*c)->macio = dev->bus->chip; bus 220 sound/core/seq_device.c dev->dev.bus = &snd_seq_bus_type; bus 245 sound/core/seq_device.c drv->driver.bus = &snd_seq_bus_type; bus 1195 sound/drivers/ml403-ac97cr.c struct snd_ac97_bus *bus; bus 1203 sound/drivers/ml403-ac97cr.c err = snd_ac97_bus(ml403_ac97cr->card, 0, &ops, NULL, &bus); bus 1218 sound/drivers/ml403-ac97cr.c err = snd_ac97_mixer(bus, &ac97, &ml403_ac97cr->ac97); bus 513 sound/firewire/bebob/bebob.c .bus = &fw_bus_type, bus 395 sound/firewire/dice/dice.c .bus = &fw_bus_type, bus 196 sound/firewire/digi00x/digi00x.c .bus = &fw_bus_type, bus 228 sound/firewire/fireface/ff.c .bus = &fw_bus_type, bus 366 sound/firewire/fireworks/fireworks.c .bus = &fw_bus_type, bus 726 sound/firewire/isight.c .bus = &fw_bus_type, bus 288 sound/firewire/motu/motu.c .bus = &fw_bus_type, bus 402 sound/firewire/oxfw/oxfw.c .bus = &fw_bus_type, bus 228 sound/firewire/tascam/tascam.c .bus = &fw_bus_type, bus 29 sound/hda/ext/hdac_ext_bus.c int snd_hdac_ext_bus_init(struct hdac_bus *bus, struct device *dev, bus 35 sound/hda/ext/hdac_ext_bus.c ret = snd_hdac_bus_init(bus, dev, ops); bus 39 sound/hda/ext/hdac_ext_bus.c bus->ext_ops = ext_ops; bus 45 sound/hda/ext/hdac_ext_bus.c bus->idx = 0; bus 46 sound/hda/ext/hdac_ext_bus.c bus->cmd_dma_state = true; bus 56 sound/hda/ext/hdac_ext_bus.c void snd_hdac_ext_bus_exit(struct hdac_bus *bus) bus 58 sound/hda/ext/hdac_ext_bus.c snd_hdac_bus_exit(bus); bus 59 sound/hda/ext/hdac_ext_bus.c WARN_ON(!list_empty(&bus->hlink_list)); bus 75 sound/hda/ext/hdac_ext_bus.c int snd_hdac_ext_bus_device_init(struct hdac_bus *bus, int addr, bus 81 sound/hda/ext/hdac_ext_bus.c hdev->bus = bus; bus 83 sound/hda/ext/hdac_ext_bus.c snprintf(name, sizeof(name), "ehdaudio%dD%d", bus->idx, addr); bus 85 sound/hda/ext/hdac_ext_bus.c ret = snd_hdac_device_init(hdev, bus, name, addr); bus 87 sound/hda/ext/hdac_ext_bus.c dev_err(bus->dev, "device init failed for hdac device\n"); bus 95 sound/hda/ext/hdac_ext_bus.c dev_err(bus->dev, "failed to register hdac device\n"); bus 119 sound/hda/ext/hdac_ext_bus.c void snd_hdac_ext_bus_device_remove(struct hdac_bus *bus) bus 126 sound/hda/ext/hdac_ext_bus.c list_for_each_entry_safe(codec, __codec, &bus->codec_list, list) { bus 170 sound/hda/ext/hdac_ext_bus.c drv->driver.bus = &snd_hda_bus_type; bus 34 sound/hda/ext/hdac_ext_controller.c void snd_hdac_ext_bus_ppcap_enable(struct hdac_bus *bus, bool enable) bus 37 sound/hda/ext/hdac_ext_controller.c if (!bus->ppcap) { bus 38 sound/hda/ext/hdac_ext_controller.c dev_err(bus->dev, "Address of PP capability is NULL"); bus 43 sound/hda/ext/hdac_ext_controller.c snd_hdac_updatel(bus->ppcap, AZX_REG_PP_PPCTL, bus 46 sound/hda/ext/hdac_ext_controller.c snd_hdac_updatel(bus->ppcap, AZX_REG_PP_PPCTL, bus 56 sound/hda/ext/hdac_ext_controller.c void snd_hdac_ext_bus_ppcap_int_enable(struct hdac_bus *bus, bool enable) bus 59 sound/hda/ext/hdac_ext_controller.c if (!bus->ppcap) { bus 60 sound/hda/ext/hdac_ext_controller.c dev_err(bus->dev, "Address of PP capability is NULL\n"); bus 65 sound/hda/ext/hdac_ext_controller.c snd_hdac_updatel(bus->ppcap, AZX_REG_PP_PPCTL, bus 68 sound/hda/ext/hdac_ext_controller.c snd_hdac_updatel(bus->ppcap, AZX_REG_PP_PPCTL, bus 86 sound/hda/ext/hdac_ext_controller.c int snd_hdac_ext_bus_get_ml_capabilities(struct hdac_bus *bus) bus 92 sound/hda/ext/hdac_ext_controller.c link_count = readl(bus->mlcap + AZX_REG_ML_MLCD) + 1; bus 94 sound/hda/ext/hdac_ext_controller.c dev_dbg(bus->dev, "In %s Link count: %d\n", __func__, link_count); bus 101 sound/hda/ext/hdac_ext_controller.c hlink->bus = bus; bus 102 sound/hda/ext/hdac_ext_controller.c hlink->ml_addr = bus->mlcap + AZX_ML_BASE + bus 110 sound/hda/ext/hdac_ext_controller.c list_add_tail(&hlink->list, &bus->hlink_list); bus 123 sound/hda/ext/hdac_ext_controller.c void snd_hdac_link_free_all(struct hdac_bus *bus) bus 127 sound/hda/ext/hdac_ext_controller.c while (!list_empty(&bus->hlink_list)) { bus 128 sound/hda/ext/hdac_ext_controller.c l = list_first_entry(&bus->hlink_list, struct hdac_ext_link, list); bus 140 sound/hda/ext/hdac_ext_controller.c struct hdac_ext_link *snd_hdac_ext_bus_get_link(struct hdac_bus *bus, bus 149 sound/hda/ext/hdac_ext_controller.c if (bus->idx != bus_idx) bus 152 sound/hda/ext/hdac_ext_controller.c list_for_each_entry(hlink, &bus->hlink_list, list) { bus 216 sound/hda/ext/hdac_ext_controller.c int snd_hdac_ext_bus_link_power_up_all(struct hdac_bus *bus) bus 221 sound/hda/ext/hdac_ext_controller.c list_for_each_entry(hlink, &bus->hlink_list, list) { bus 237 sound/hda/ext/hdac_ext_controller.c int snd_hdac_ext_bus_link_power_down_all(struct hdac_bus *bus) bus 242 sound/hda/ext/hdac_ext_controller.c list_for_each_entry(hlink, &bus->hlink_list, list) { bus 254 sound/hda/ext/hdac_ext_controller.c int snd_hdac_ext_bus_link_get(struct hdac_bus *bus, bus 260 sound/hda/ext/hdac_ext_controller.c mutex_lock(&bus->lock); bus 267 sound/hda/ext/hdac_ext_controller.c if (!bus->cmd_dma_state) { bus 268 sound/hda/ext/hdac_ext_controller.c snd_hdac_bus_init_cmd_io(bus); bus 269 sound/hda/ext/hdac_ext_controller.c bus->cmd_dma_state = true; bus 284 sound/hda/ext/hdac_ext_controller.c codec_mask = snd_hdac_chip_readw(bus, STATESTS); bus 285 sound/hda/ext/hdac_ext_controller.c dev_dbg(bus->dev, "codec_mask = 0x%lx\n", codec_mask); bus 286 sound/hda/ext/hdac_ext_controller.c snd_hdac_chip_writew(bus, STATESTS, codec_mask); bus 287 sound/hda/ext/hdac_ext_controller.c if (!bus->codec_mask) bus 288 sound/hda/ext/hdac_ext_controller.c bus->codec_mask = codec_mask; bus 291 sound/hda/ext/hdac_ext_controller.c mutex_unlock(&bus->lock); bus 296 sound/hda/ext/hdac_ext_controller.c int snd_hdac_ext_bus_link_put(struct hdac_bus *bus, bus 303 sound/hda/ext/hdac_ext_controller.c mutex_lock(&bus->lock); bus 316 sound/hda/ext/hdac_ext_controller.c list_for_each_entry(hlink, &bus->hlink_list, list) { bus 324 sound/hda/ext/hdac_ext_controller.c snd_hdac_bus_stop_cmd_io(bus); bus 325 sound/hda/ext/hdac_ext_controller.c bus->cmd_dma_state = false; bus 329 sound/hda/ext/hdac_ext_controller.c mutex_unlock(&bus->lock); bus 29 sound/hda/ext/hdac_ext_stream.c void snd_hdac_ext_stream_init(struct hdac_bus *bus, bus 33 sound/hda/ext/hdac_ext_stream.c if (bus->ppcap) { bus 34 sound/hda/ext/hdac_ext_stream.c stream->pphc_addr = bus->ppcap + AZX_PPHC_BASE + bus 37 sound/hda/ext/hdac_ext_stream.c stream->pplc_addr = bus->ppcap + AZX_PPLC_BASE + bus 38 sound/hda/ext/hdac_ext_stream.c AZX_PPLC_MULTI * bus->num_streams + bus 42 sound/hda/ext/hdac_ext_stream.c if (bus->spbcap) { bus 43 sound/hda/ext/hdac_ext_stream.c stream->spib_addr = bus->spbcap + AZX_SPB_BASE + bus 47 sound/hda/ext/hdac_ext_stream.c stream->fifo_addr = bus->spbcap + AZX_SPB_BASE + bus 52 sound/hda/ext/hdac_ext_stream.c if (bus->drsmcap) bus 53 sound/hda/ext/hdac_ext_stream.c stream->dpibr_addr = bus->drsmcap + AZX_DRSM_BASE + bus 57 sound/hda/ext/hdac_ext_stream.c snd_hdac_stream_init(bus, &stream->hstream, idx, direction, tag); bus 69 sound/hda/ext/hdac_ext_stream.c int snd_hdac_ext_stream_init_all(struct hdac_bus *bus, int start_idx, bus 81 sound/hda/ext/hdac_ext_stream.c snd_hdac_ext_stream_init(bus, stream, idx, dir, tag); bus 95 sound/hda/ext/hdac_ext_stream.c void snd_hdac_stream_free_all(struct hdac_bus *bus) bus 100 sound/hda/ext/hdac_ext_stream.c list_for_each_entry_safe(s, _s, &bus->stream_list, list) { bus 102 sound/hda/ext/hdac_ext_stream.c snd_hdac_ext_stream_decouple(bus, stream, false); bus 115 sound/hda/ext/hdac_ext_stream.c void snd_hdac_ext_stream_decouple(struct hdac_bus *bus, bus 122 sound/hda/ext/hdac_ext_stream.c spin_lock_irq(&bus->reg_lock); bus 123 sound/hda/ext/hdac_ext_stream.c val = readw(bus->ppcap + AZX_REG_PP_PPCTL) & mask; bus 126 sound/hda/ext/hdac_ext_stream.c snd_hdac_updatel(bus->ppcap, AZX_REG_PP_PPCTL, mask, mask); bus 128 sound/hda/ext/hdac_ext_stream.c snd_hdac_updatel(bus->ppcap, AZX_REG_PP_PPCTL, mask, 0); bus 131 sound/hda/ext/hdac_ext_stream.c spin_unlock_irq(&bus->reg_lock); bus 244 sound/hda/ext/hdac_ext_stream.c hdac_ext_link_stream_assign(struct hdac_bus *bus, bus 250 sound/hda/ext/hdac_ext_stream.c if (!bus->ppcap) { bus 251 sound/hda/ext/hdac_ext_stream.c dev_err(bus->dev, "stream type not supported\n"); bus 255 sound/hda/ext/hdac_ext_stream.c list_for_each_entry(stream, &bus->stream_list, list) { bus 269 sound/hda/ext/hdac_ext_stream.c snd_hdac_ext_stream_decouple(bus, hstream, true); bus 275 sound/hda/ext/hdac_ext_stream.c spin_lock_irq(&bus->reg_lock); bus 278 sound/hda/ext/hdac_ext_stream.c spin_unlock_irq(&bus->reg_lock); bus 284 sound/hda/ext/hdac_ext_stream.c hdac_ext_host_stream_assign(struct hdac_bus *bus, bus 290 sound/hda/ext/hdac_ext_stream.c if (!bus->ppcap) { bus 291 sound/hda/ext/hdac_ext_stream.c dev_err(bus->dev, "stream type not supported\n"); bus 295 sound/hda/ext/hdac_ext_stream.c list_for_each_entry(stream, &bus->stream_list, list) { bus 304 sound/hda/ext/hdac_ext_stream.c snd_hdac_ext_stream_decouple(bus, hstream, true); bus 310 sound/hda/ext/hdac_ext_stream.c spin_lock_irq(&bus->reg_lock); bus 314 sound/hda/ext/hdac_ext_stream.c spin_unlock_irq(&bus->reg_lock); bus 337 sound/hda/ext/hdac_ext_stream.c struct hdac_ext_stream *snd_hdac_ext_stream_assign(struct hdac_bus *bus, bus 346 sound/hda/ext/hdac_ext_stream.c stream = snd_hdac_stream_assign(bus, substream); bus 353 sound/hda/ext/hdac_ext_stream.c return hdac_ext_host_stream_assign(bus, substream); bus 356 sound/hda/ext/hdac_ext_stream.c return hdac_ext_link_stream_assign(bus, substream); bus 373 sound/hda/ext/hdac_ext_stream.c struct hdac_bus *bus = stream->hstream.bus; bus 382 sound/hda/ext/hdac_ext_stream.c snd_hdac_ext_stream_decouple(bus, stream, false); bus 388 sound/hda/ext/hdac_ext_stream.c snd_hdac_ext_stream_decouple(bus, stream, false); bus 389 sound/hda/ext/hdac_ext_stream.c spin_lock_irq(&bus->reg_lock); bus 392 sound/hda/ext/hdac_ext_stream.c spin_unlock_irq(&bus->reg_lock); bus 396 sound/hda/ext/hdac_ext_stream.c dev_dbg(bus->dev, "Invalid type %d\n", type); bus 408 sound/hda/ext/hdac_ext_stream.c void snd_hdac_ext_stream_spbcap_enable(struct hdac_bus *bus, bus 413 sound/hda/ext/hdac_ext_stream.c if (!bus->spbcap) { bus 414 sound/hda/ext/hdac_ext_stream.c dev_err(bus->dev, "Address of SPB capability is NULL\n"); bus 421 sound/hda/ext/hdac_ext_stream.c snd_hdac_updatel(bus->spbcap, AZX_REG_SPB_SPBFCCTL, mask, mask); bus 423 sound/hda/ext/hdac_ext_stream.c snd_hdac_updatel(bus->spbcap, AZX_REG_SPB_SPBFCCTL, mask, 0); bus 433 sound/hda/ext/hdac_ext_stream.c int snd_hdac_ext_stream_set_spib(struct hdac_bus *bus, bus 437 sound/hda/ext/hdac_ext_stream.c if (!bus->spbcap) { bus 438 sound/hda/ext/hdac_ext_stream.c dev_err(bus->dev, "Address of SPB capability is NULL\n"); bus 455 sound/hda/ext/hdac_ext_stream.c int snd_hdac_ext_stream_get_spbmaxfifo(struct hdac_bus *bus, bus 459 sound/hda/ext/hdac_ext_stream.c if (!bus->spbcap) { bus 460 sound/hda/ext/hdac_ext_stream.c dev_err(bus->dev, "Address of SPB capability is NULL\n"); bus 473 sound/hda/ext/hdac_ext_stream.c void snd_hdac_ext_stop_streams(struct hdac_bus *bus) bus 477 sound/hda/ext/hdac_ext_stream.c if (bus->chip_init) { bus 478 sound/hda/ext/hdac_ext_stream.c list_for_each_entry(stream, &bus->stream_list, list) bus 480 sound/hda/ext/hdac_ext_stream.c snd_hdac_bus_stop_chip(bus); bus 491 sound/hda/ext/hdac_ext_stream.c void snd_hdac_ext_stream_drsm_enable(struct hdac_bus *bus, bus 496 sound/hda/ext/hdac_ext_stream.c if (!bus->drsmcap) { bus 497 sound/hda/ext/hdac_ext_stream.c dev_err(bus->dev, "Address of DRSM capability is NULL\n"); bus 504 sound/hda/ext/hdac_ext_stream.c snd_hdac_updatel(bus->drsmcap, AZX_REG_DRSM_CTL, mask, mask); bus 506 sound/hda/ext/hdac_ext_stream.c snd_hdac_updatel(bus->drsmcap, AZX_REG_DRSM_CTL, mask, 0); bus 516 sound/hda/ext/hdac_ext_stream.c int snd_hdac_ext_stream_set_dpibr(struct hdac_bus *bus, bus 520 sound/hda/ext/hdac_ext_stream.c if (!bus->drsmcap) { bus 521 sound/hda/ext/hdac_ext_stream.c dev_err(bus->dev, "Address of DRSM capability is NULL\n"); bus 29 sound/hda/hdac_bus.c int snd_hdac_bus_init(struct hdac_bus *bus, struct device *dev, bus 32 sound/hda/hdac_bus.c memset(bus, 0, sizeof(*bus)); bus 33 sound/hda/hdac_bus.c bus->dev = dev; bus 35 sound/hda/hdac_bus.c bus->ops = ops; bus 37 sound/hda/hdac_bus.c bus->ops = &default_ops; bus 38 sound/hda/hdac_bus.c bus->dma_type = SNDRV_DMA_TYPE_DEV; bus 39 sound/hda/hdac_bus.c INIT_LIST_HEAD(&bus->stream_list); bus 40 sound/hda/hdac_bus.c INIT_LIST_HEAD(&bus->codec_list); bus 41 sound/hda/hdac_bus.c INIT_WORK(&bus->unsol_work, snd_hdac_bus_process_unsol_events); bus 42 sound/hda/hdac_bus.c spin_lock_init(&bus->reg_lock); bus 43 sound/hda/hdac_bus.c mutex_init(&bus->cmd_mutex); bus 44 sound/hda/hdac_bus.c mutex_init(&bus->lock); bus 45 sound/hda/hdac_bus.c INIT_LIST_HEAD(&bus->hlink_list); bus 46 sound/hda/hdac_bus.c bus->irq = -1; bus 55 sound/hda/hdac_bus.c void snd_hdac_bus_exit(struct hdac_bus *bus) bus 57 sound/hda/hdac_bus.c WARN_ON(!list_empty(&bus->stream_list)); bus 58 sound/hda/hdac_bus.c WARN_ON(!list_empty(&bus->codec_list)); bus 59 sound/hda/hdac_bus.c cancel_work_sync(&bus->unsol_work); bus 71 sound/hda/hdac_bus.c int snd_hdac_bus_exec_verb(struct hdac_bus *bus, unsigned int addr, bus 76 sound/hda/hdac_bus.c mutex_lock(&bus->cmd_mutex); bus 77 sound/hda/hdac_bus.c err = snd_hdac_bus_exec_verb_unlocked(bus, addr, cmd, res); bus 78 sound/hda/hdac_bus.c mutex_unlock(&bus->cmd_mutex); bus 91 sound/hda/hdac_bus.c int snd_hdac_bus_exec_verb_unlocked(struct hdac_bus *bus, unsigned int addr, bus 102 sound/hda/hdac_bus.c else if (bus->sync_write) bus 105 sound/hda/hdac_bus.c trace_hda_send_cmd(bus, cmd); bus 106 sound/hda/hdac_bus.c err = bus->ops->command(bus, cmd); bus 110 sound/hda/hdac_bus.c err = bus->ops->get_response(bus, addr, &tmp); bus 115 sound/hda/hdac_bus.c err = bus->ops->get_response(bus, addr, res); bus 116 sound/hda/hdac_bus.c trace_hda_get_response(bus, addr, *res); bus 132 sound/hda/hdac_bus.c void snd_hdac_bus_queue_event(struct hdac_bus *bus, u32 res, u32 res_ex) bus 136 sound/hda/hdac_bus.c if (!bus) bus 139 sound/hda/hdac_bus.c trace_hda_unsol_event(bus, res, res_ex); bus 140 sound/hda/hdac_bus.c wp = (bus->unsol_wp + 1) % HDA_UNSOL_QUEUE_SIZE; bus 141 sound/hda/hdac_bus.c bus->unsol_wp = wp; bus 144 sound/hda/hdac_bus.c bus->unsol_queue[wp] = res; bus 145 sound/hda/hdac_bus.c bus->unsol_queue[wp + 1] = res_ex; bus 147 sound/hda/hdac_bus.c schedule_work(&bus->unsol_work); bus 156 sound/hda/hdac_bus.c struct hdac_bus *bus = container_of(work, struct hdac_bus, unsol_work); bus 161 sound/hda/hdac_bus.c while (bus->unsol_rp != bus->unsol_wp) { bus 162 sound/hda/hdac_bus.c rp = (bus->unsol_rp + 1) % HDA_UNSOL_QUEUE_SIZE; bus 163 sound/hda/hdac_bus.c bus->unsol_rp = rp; bus 165 sound/hda/hdac_bus.c res = bus->unsol_queue[rp]; bus 166 sound/hda/hdac_bus.c caddr = bus->unsol_queue[rp + 1]; bus 169 sound/hda/hdac_bus.c codec = bus->caddr_tbl[caddr & 0x0f]; bus 187 sound/hda/hdac_bus.c int snd_hdac_bus_add_device(struct hdac_bus *bus, struct hdac_device *codec) bus 189 sound/hda/hdac_bus.c if (bus->caddr_tbl[codec->addr]) { bus 190 sound/hda/hdac_bus.c dev_err(bus->dev, "address 0x%x is already occupied\n", bus 195 sound/hda/hdac_bus.c list_add_tail(&codec->list, &bus->codec_list); bus 196 sound/hda/hdac_bus.c bus->caddr_tbl[codec->addr] = codec; bus 197 sound/hda/hdac_bus.c set_bit(codec->addr, &bus->codec_powered); bus 198 sound/hda/hdac_bus.c bus->num_codecs++; bus 207 sound/hda/hdac_bus.c void snd_hdac_bus_remove_device(struct hdac_bus *bus, bus 210 sound/hda/hdac_bus.c WARN_ON(bus != codec->bus); bus 214 sound/hda/hdac_bus.c bus->caddr_tbl[codec->addr] = NULL; bus 215 sound/hda/hdac_bus.c clear_bit(codec->addr, &bus->codec_powered); bus 216 sound/hda/hdac_bus.c bus->num_codecs--; bus 217 sound/hda/hdac_bus.c flush_work(&bus->unsol_work); bus 35 sound/hda/hdac_component.c int snd_hdac_set_codec_wakeup(struct hdac_bus *bus, bool enable) bus 37 sound/hda/hdac_component.c struct drm_audio_component *acomp = bus->audio_component; bus 45 sound/hda/hdac_component.c dev_dbg(bus->dev, "%s codec wakeup\n", bus 66 sound/hda/hdac_component.c void snd_hdac_display_power(struct hdac_bus *bus, unsigned int idx, bool enable) bus 68 sound/hda/hdac_component.c struct drm_audio_component *acomp = bus->audio_component; bus 70 sound/hda/hdac_component.c dev_dbg(bus->dev, "display power %s\n", bus 73 sound/hda/hdac_component.c mutex_lock(&bus->lock); bus 75 sound/hda/hdac_component.c set_bit(idx, &bus->display_power_status); bus 77 sound/hda/hdac_component.c clear_bit(idx, &bus->display_power_status); bus 82 sound/hda/hdac_component.c if (bus->display_power_status) { bus 83 sound/hda/hdac_component.c if (!bus->display_power_active) { bus 89 sound/hda/hdac_component.c snd_hdac_set_codec_wakeup(bus, true); bus 90 sound/hda/hdac_component.c snd_hdac_set_codec_wakeup(bus, false); bus 91 sound/hda/hdac_component.c bus->display_power_active = cookie; bus 94 sound/hda/hdac_component.c if (bus->display_power_active) { bus 95 sound/hda/hdac_component.c unsigned long cookie = bus->display_power_active; bus 100 sound/hda/hdac_component.c bus->display_power_active = 0; bus 104 sound/hda/hdac_component.c mutex_unlock(&bus->lock); bus 124 sound/hda/hdac_component.c struct hdac_bus *bus = codec->bus; bus 125 sound/hda/hdac_component.c struct drm_audio_component *acomp = bus->audio_component; bus 165 sound/hda/hdac_component.c struct hdac_bus *bus = codec->bus; bus 166 sound/hda/hdac_component.c struct drm_audio_component *acomp = bus->audio_component; bus 251 sound/hda/hdac_component.c int snd_hdac_acomp_register_notifier(struct hdac_bus *bus, bus 254 sound/hda/hdac_component.c if (!bus->audio_component) bus 257 sound/hda/hdac_component.c bus->audio_component->audio_ops = aops; bus 280 sound/hda/hdac_component.c int snd_hdac_acomp_init(struct hdac_bus *bus, bus 286 sound/hda/hdac_component.c struct device *dev = bus->dev; bus 298 sound/hda/hdac_component.c bus->audio_component = acomp; bus 301 sound/hda/hdac_component.c component_match_add_typed(dev, &match, match_master, bus); bus 310 sound/hda/hdac_component.c bus->audio_component = NULL; bus 329 sound/hda/hdac_component.c int snd_hdac_acomp_exit(struct hdac_bus *bus) bus 331 sound/hda/hdac_component.c struct device *dev = bus->dev; bus 332 sound/hda/hdac_component.c struct drm_audio_component *acomp = bus->audio_component; bus 337 sound/hda/hdac_component.c if (WARN_ON(bus->display_power_active) && acomp->ops) bus 338 sound/hda/hdac_component.c acomp->ops->put_power(acomp->dev, bus->display_power_active); bus 340 sound/hda/hdac_component.c bus->display_power_active = 0; bus 341 sound/hda/hdac_component.c bus->display_power_status = 0; bus 345 sound/hda/hdac_component.c bus->audio_component = NULL; bus 14 sound/hda/hdac_controller.c static void azx_clear_corbrp(struct hdac_bus *bus) bus 19 sound/hda/hdac_controller.c if (snd_hdac_chip_readw(bus, CORBRP) & AZX_CORBRP_RST) bus 24 sound/hda/hdac_controller.c dev_err(bus->dev, "CORB reset timeout#1, CORBRP = %d\n", bus 25 sound/hda/hdac_controller.c snd_hdac_chip_readw(bus, CORBRP)); bus 27 sound/hda/hdac_controller.c snd_hdac_chip_writew(bus, CORBRP, 0); bus 29 sound/hda/hdac_controller.c if (snd_hdac_chip_readw(bus, CORBRP) == 0) bus 34 sound/hda/hdac_controller.c dev_err(bus->dev, "CORB reset timeout#2, CORBRP = %d\n", bus 35 sound/hda/hdac_controller.c snd_hdac_chip_readw(bus, CORBRP)); bus 42 sound/hda/hdac_controller.c void snd_hdac_bus_init_cmd_io(struct hdac_bus *bus) bus 44 sound/hda/hdac_controller.c WARN_ON_ONCE(!bus->rb.area); bus 46 sound/hda/hdac_controller.c spin_lock_irq(&bus->reg_lock); bus 48 sound/hda/hdac_controller.c bus->corb.addr = bus->rb.addr; bus 49 sound/hda/hdac_controller.c bus->corb.buf = (__le32 *)bus->rb.area; bus 50 sound/hda/hdac_controller.c snd_hdac_chip_writel(bus, CORBLBASE, (u32)bus->corb.addr); bus 51 sound/hda/hdac_controller.c snd_hdac_chip_writel(bus, CORBUBASE, upper_32_bits(bus->corb.addr)); bus 54 sound/hda/hdac_controller.c snd_hdac_chip_writeb(bus, CORBSIZE, 0x02); bus 56 sound/hda/hdac_controller.c snd_hdac_chip_writew(bus, CORBWP, 0); bus 59 sound/hda/hdac_controller.c snd_hdac_chip_writew(bus, CORBRP, AZX_CORBRP_RST); bus 60 sound/hda/hdac_controller.c if (!bus->corbrp_self_clear) bus 61 sound/hda/hdac_controller.c azx_clear_corbrp(bus); bus 64 sound/hda/hdac_controller.c snd_hdac_chip_writeb(bus, CORBCTL, AZX_CORBCTL_RUN); bus 67 sound/hda/hdac_controller.c bus->rirb.addr = bus->rb.addr + 2048; bus 68 sound/hda/hdac_controller.c bus->rirb.buf = (__le32 *)(bus->rb.area + 2048); bus 69 sound/hda/hdac_controller.c bus->rirb.wp = bus->rirb.rp = 0; bus 70 sound/hda/hdac_controller.c memset(bus->rirb.cmds, 0, sizeof(bus->rirb.cmds)); bus 71 sound/hda/hdac_controller.c snd_hdac_chip_writel(bus, RIRBLBASE, (u32)bus->rirb.addr); bus 72 sound/hda/hdac_controller.c snd_hdac_chip_writel(bus, RIRBUBASE, upper_32_bits(bus->rirb.addr)); bus 75 sound/hda/hdac_controller.c snd_hdac_chip_writeb(bus, RIRBSIZE, 0x02); bus 77 sound/hda/hdac_controller.c snd_hdac_chip_writew(bus, RIRBWP, AZX_RIRBWP_RST); bus 79 sound/hda/hdac_controller.c snd_hdac_chip_writew(bus, RINTCNT, 1); bus 81 sound/hda/hdac_controller.c snd_hdac_chip_writeb(bus, RIRBCTL, AZX_RBCTL_DMA_EN | AZX_RBCTL_IRQ_EN); bus 83 sound/hda/hdac_controller.c snd_hdac_chip_updatel(bus, GCTL, AZX_GCTL_UNSOL, AZX_GCTL_UNSOL); bus 84 sound/hda/hdac_controller.c spin_unlock_irq(&bus->reg_lock); bus 89 sound/hda/hdac_controller.c static void hdac_wait_for_cmd_dmas(struct hdac_bus *bus) bus 94 sound/hda/hdac_controller.c while ((snd_hdac_chip_readb(bus, RIRBCTL) & AZX_RBCTL_DMA_EN) bus 99 sound/hda/hdac_controller.c while ((snd_hdac_chip_readb(bus, CORBCTL) & AZX_CORBCTL_RUN) bus 108 sound/hda/hdac_controller.c void snd_hdac_bus_stop_cmd_io(struct hdac_bus *bus) bus 110 sound/hda/hdac_controller.c spin_lock_irq(&bus->reg_lock); bus 112 sound/hda/hdac_controller.c snd_hdac_chip_writeb(bus, RIRBCTL, 0); bus 113 sound/hda/hdac_controller.c snd_hdac_chip_writeb(bus, CORBCTL, 0); bus 114 sound/hda/hdac_controller.c spin_unlock_irq(&bus->reg_lock); bus 116 sound/hda/hdac_controller.c hdac_wait_for_cmd_dmas(bus); bus 118 sound/hda/hdac_controller.c spin_lock_irq(&bus->reg_lock); bus 120 sound/hda/hdac_controller.c snd_hdac_chip_updatel(bus, GCTL, AZX_GCTL_UNSOL, 0); bus 121 sound/hda/hdac_controller.c spin_unlock_irq(&bus->reg_lock); bus 141 sound/hda/hdac_controller.c int snd_hdac_bus_send_cmd(struct hdac_bus *bus, unsigned int val) bus 146 sound/hda/hdac_controller.c spin_lock_irq(&bus->reg_lock); bus 148 sound/hda/hdac_controller.c bus->last_cmd[azx_command_addr(val)] = val; bus 151 sound/hda/hdac_controller.c wp = snd_hdac_chip_readw(bus, CORBWP); bus 154 sound/hda/hdac_controller.c spin_unlock_irq(&bus->reg_lock); bus 160 sound/hda/hdac_controller.c rp = snd_hdac_chip_readw(bus, CORBRP); bus 163 sound/hda/hdac_controller.c spin_unlock_irq(&bus->reg_lock); bus 167 sound/hda/hdac_controller.c bus->rirb.cmds[addr]++; bus 168 sound/hda/hdac_controller.c bus->corb.buf[wp] = cpu_to_le32(val); bus 169 sound/hda/hdac_controller.c snd_hdac_chip_writew(bus, CORBWP, wp); bus 171 sound/hda/hdac_controller.c spin_unlock_irq(&bus->reg_lock); bus 185 sound/hda/hdac_controller.c void snd_hdac_bus_update_rirb(struct hdac_bus *bus) bus 191 sound/hda/hdac_controller.c wp = snd_hdac_chip_readw(bus, RIRBWP); bus 197 sound/hda/hdac_controller.c if (wp == bus->rirb.wp) bus 199 sound/hda/hdac_controller.c bus->rirb.wp = wp; bus 201 sound/hda/hdac_controller.c while (bus->rirb.rp != wp) { bus 202 sound/hda/hdac_controller.c bus->rirb.rp++; bus 203 sound/hda/hdac_controller.c bus->rirb.rp %= AZX_MAX_RIRB_ENTRIES; bus 205 sound/hda/hdac_controller.c rp = bus->rirb.rp << 1; /* an RIRB entry is 8-bytes */ bus 206 sound/hda/hdac_controller.c res_ex = le32_to_cpu(bus->rirb.buf[rp + 1]); bus 207 sound/hda/hdac_controller.c res = le32_to_cpu(bus->rirb.buf[rp]); bus 210 sound/hda/hdac_controller.c dev_err(bus->dev, bus 212 sound/hda/hdac_controller.c res, res_ex, bus->rirb.rp, wp); bus 215 sound/hda/hdac_controller.c snd_hdac_bus_queue_event(bus, res, res_ex); bus 216 sound/hda/hdac_controller.c else if (bus->rirb.cmds[addr]) { bus 217 sound/hda/hdac_controller.c bus->rirb.res[addr] = res; bus 218 sound/hda/hdac_controller.c bus->rirb.cmds[addr]--; bus 220 sound/hda/hdac_controller.c dev_err_ratelimited(bus->dev, bus 222 sound/hda/hdac_controller.c res, res_ex, bus->last_cmd[addr]); bus 236 sound/hda/hdac_controller.c int snd_hdac_bus_get_response(struct hdac_bus *bus, unsigned int addr, bus 245 sound/hda/hdac_controller.c spin_lock_irq(&bus->reg_lock); bus 246 sound/hda/hdac_controller.c if (bus->polling_mode) bus 247 sound/hda/hdac_controller.c snd_hdac_bus_update_rirb(bus); bus 248 sound/hda/hdac_controller.c if (!bus->rirb.cmds[addr]) { bus 250 sound/hda/hdac_controller.c *res = bus->rirb.res[addr]; /* the last value */ bus 251 sound/hda/hdac_controller.c spin_unlock_irq(&bus->reg_lock); bus 254 sound/hda/hdac_controller.c spin_unlock_irq(&bus->reg_lock); bus 276 sound/hda/hdac_controller.c int snd_hdac_bus_parse_capabilities(struct hdac_bus *bus) bus 282 sound/hda/hdac_controller.c offset = snd_hdac_chip_readw(bus, LLCH); bus 286 sound/hda/hdac_controller.c cur_cap = _snd_hdac_chip_readl(bus, offset); bus 288 sound/hda/hdac_controller.c dev_dbg(bus->dev, "Capability version: 0x%x\n", bus 291 sound/hda/hdac_controller.c dev_dbg(bus->dev, "HDA capability ID: 0x%x\n", bus 295 sound/hda/hdac_controller.c dev_dbg(bus->dev, "Invalid capability reg read\n"); bus 301 sound/hda/hdac_controller.c dev_dbg(bus->dev, "Found ML capability\n"); bus 302 sound/hda/hdac_controller.c bus->mlcap = bus->remap_addr + offset; bus 306 sound/hda/hdac_controller.c dev_dbg(bus->dev, "Found GTS capability offset=%x\n", offset); bus 307 sound/hda/hdac_controller.c bus->gtscap = bus->remap_addr + offset; bus 312 sound/hda/hdac_controller.c dev_dbg(bus->dev, "Found PP capability offset=%x\n", offset); bus 313 sound/hda/hdac_controller.c bus->ppcap = bus->remap_addr + offset; bus 318 sound/hda/hdac_controller.c dev_dbg(bus->dev, "Found SPB capability\n"); bus 319 sound/hda/hdac_controller.c bus->spbcap = bus->remap_addr + offset; bus 324 sound/hda/hdac_controller.c dev_dbg(bus->dev, "Found DRSM capability\n"); bus 325 sound/hda/hdac_controller.c bus->drsmcap = bus->remap_addr + offset; bus 329 sound/hda/hdac_controller.c dev_err(bus->dev, "Unknown capability %d\n", cur_cap); bus 337 sound/hda/hdac_controller.c dev_err(bus->dev, "We exceeded HDAC capabilities!!!\n"); bus 360 sound/hda/hdac_controller.c void snd_hdac_bus_enter_link_reset(struct hdac_bus *bus) bus 365 sound/hda/hdac_controller.c snd_hdac_chip_updatel(bus, GCTL, AZX_GCTL_RESET, 0); bus 368 sound/hda/hdac_controller.c while ((snd_hdac_chip_readb(bus, GCTL) & AZX_GCTL_RESET) && bus 380 sound/hda/hdac_controller.c void snd_hdac_bus_exit_link_reset(struct hdac_bus *bus) bus 384 sound/hda/hdac_controller.c snd_hdac_chip_updateb(bus, GCTL, AZX_GCTL_RESET, AZX_GCTL_RESET); bus 387 sound/hda/hdac_controller.c while (!snd_hdac_chip_readb(bus, GCTL) && time_before(jiffies, timeout)) bus 393 sound/hda/hdac_controller.c int snd_hdac_bus_reset_link(struct hdac_bus *bus, bool full_reset) bus 399 sound/hda/hdac_controller.c snd_hdac_chip_writew(bus, STATESTS, STATESTS_INT_MASK); bus 402 sound/hda/hdac_controller.c snd_hdac_bus_enter_link_reset(bus); bus 410 sound/hda/hdac_controller.c snd_hdac_bus_exit_link_reset(bus); bus 417 sound/hda/hdac_controller.c if (!snd_hdac_chip_readb(bus, GCTL)) { bus 418 sound/hda/hdac_controller.c dev_dbg(bus->dev, "controller not ready!\n"); bus 423 sound/hda/hdac_controller.c if (!bus->codec_mask) { bus 424 sound/hda/hdac_controller.c bus->codec_mask = snd_hdac_chip_readw(bus, STATESTS); bus 425 sound/hda/hdac_controller.c dev_dbg(bus->dev, "codec_mask = 0x%lx\n", bus->codec_mask); bus 433 sound/hda/hdac_controller.c static void azx_int_enable(struct hdac_bus *bus) bus 436 sound/hda/hdac_controller.c snd_hdac_chip_updatel(bus, INTCTL, bus 442 sound/hda/hdac_controller.c static void azx_int_disable(struct hdac_bus *bus) bus 447 sound/hda/hdac_controller.c list_for_each_entry(azx_dev, &bus->stream_list, list) bus 451 sound/hda/hdac_controller.c snd_hdac_chip_writeb(bus, INTCTL, 0); bus 454 sound/hda/hdac_controller.c snd_hdac_chip_updatel(bus, INTCTL, AZX_INT_CTRL_EN | AZX_INT_GLOBAL_EN, 0); bus 458 sound/hda/hdac_controller.c static void azx_int_clear(struct hdac_bus *bus) bus 463 sound/hda/hdac_controller.c list_for_each_entry(azx_dev, &bus->stream_list, list) bus 467 sound/hda/hdac_controller.c snd_hdac_chip_writew(bus, STATESTS, STATESTS_INT_MASK); bus 470 sound/hda/hdac_controller.c snd_hdac_chip_writeb(bus, RIRBSTS, RIRB_INT_MASK); bus 473 sound/hda/hdac_controller.c snd_hdac_chip_writel(bus, INTSTS, AZX_INT_CTRL_EN | AZX_INT_ALL_STREAM); bus 481 sound/hda/hdac_controller.c bool snd_hdac_bus_init_chip(struct hdac_bus *bus, bool full_reset) bus 483 sound/hda/hdac_controller.c if (bus->chip_init) bus 487 sound/hda/hdac_controller.c snd_hdac_bus_reset_link(bus, full_reset); bus 490 sound/hda/hdac_controller.c azx_int_clear(bus); bus 493 sound/hda/hdac_controller.c snd_hdac_bus_init_cmd_io(bus); bus 496 sound/hda/hdac_controller.c azx_int_enable(bus); bus 499 sound/hda/hdac_controller.c if (bus->use_posbuf && bus->posbuf.addr) { bus 500 sound/hda/hdac_controller.c snd_hdac_chip_writel(bus, DPLBASE, (u32)bus->posbuf.addr); bus 501 sound/hda/hdac_controller.c snd_hdac_chip_writel(bus, DPUBASE, upper_32_bits(bus->posbuf.addr)); bus 504 sound/hda/hdac_controller.c bus->chip_init = true; bus 513 sound/hda/hdac_controller.c void snd_hdac_bus_stop_chip(struct hdac_bus *bus) bus 515 sound/hda/hdac_controller.c if (!bus->chip_init) bus 519 sound/hda/hdac_controller.c azx_int_disable(bus); bus 520 sound/hda/hdac_controller.c azx_int_clear(bus); bus 523 sound/hda/hdac_controller.c snd_hdac_bus_stop_cmd_io(bus); bus 526 sound/hda/hdac_controller.c if (bus->posbuf.addr) { bus 527 sound/hda/hdac_controller.c snd_hdac_chip_writel(bus, DPLBASE, 0); bus 528 sound/hda/hdac_controller.c snd_hdac_chip_writel(bus, DPUBASE, 0); bus 531 sound/hda/hdac_controller.c bus->chip_init = false; bus 543 sound/hda/hdac_controller.c int snd_hdac_bus_handle_stream_irq(struct hdac_bus *bus, unsigned int status, bus 551 sound/hda/hdac_controller.c list_for_each_entry(azx_dev, &bus->stream_list, list) { bus 560 sound/hda/hdac_controller.c ack(bus, azx_dev); bus 574 sound/hda/hdac_controller.c int snd_hdac_bus_alloc_stream_pages(struct hdac_bus *bus) bus 578 sound/hda/hdac_controller.c int dma_type = bus->dma_type ? bus->dma_type : SNDRV_DMA_TYPE_DEV; bus 581 sound/hda/hdac_controller.c list_for_each_entry(s, &bus->stream_list, list) { bus 583 sound/hda/hdac_controller.c err = snd_dma_alloc_pages(dma_type, bus->dev, bus 593 sound/hda/hdac_controller.c err = snd_dma_alloc_pages(dma_type, bus->dev, bus 594 sound/hda/hdac_controller.c num_streams * 8, &bus->posbuf); bus 597 sound/hda/hdac_controller.c list_for_each_entry(s, &bus->stream_list, list) bus 598 sound/hda/hdac_controller.c s->posbuf = (__le32 *)(bus->posbuf.area + s->index * 8); bus 601 sound/hda/hdac_controller.c return snd_dma_alloc_pages(dma_type, bus->dev, PAGE_SIZE, &bus->rb); bus 609 sound/hda/hdac_controller.c void snd_hdac_bus_free_stream_pages(struct hdac_bus *bus) bus 613 sound/hda/hdac_controller.c list_for_each_entry(s, &bus->stream_list, list) { bus 618 sound/hda/hdac_controller.c if (bus->rb.area) bus 619 sound/hda/hdac_controller.c snd_dma_free_pages(&bus->rb); bus 620 sound/hda/hdac_controller.c if (bus->posbuf.area) bus 621 sound/hda/hdac_controller.c snd_dma_free_pages(&bus->posbuf); bus 40 sound/hda/hdac_device.c int snd_hdac_device_init(struct hdac_device *codec, struct hdac_bus *bus, bus 49 sound/hda/hdac_device.c dev->parent = bus->dev; bus 50 sound/hda/hdac_device.c dev->bus = &snd_hda_bus_type; bus 56 sound/hda/hdac_device.c codec->bus = bus; bus 65 sound/hda/hdac_device.c err = snd_hdac_bus_add_device(bus, codec); bus 130 sound/hda/hdac_device.c snd_hdac_bus_remove_device(codec->bus, codec); bus 170 sound/hda/hdac_device.c snd_hdac_bus_remove_device(codec->bus, codec); bus 259 sound/hda/hdac_device.c return snd_hdac_bus_exec_verb(codec->bus, codec->addr, cmd, res); bus 35 sound/hda/hdac_i915.c void snd_hdac_i915_set_bclk(struct hdac_bus *bus) bus 37 sound/hda/hdac_i915.c struct drm_audio_component *acomp = bus->audio_component; bus 38 sound/hda/hdac_i915.c struct pci_dev *pci = to_pci_dev(bus->dev); bus 71 sound/hda/hdac_i915.c snd_hdac_chip_writew(bus, HSW_EM4, bclk_m); bus 72 sound/hda/hdac_i915.c snd_hdac_chip_writew(bus, HSW_EM5, bclk_n); bus 120 sound/hda/hdac_i915.c int snd_hdac_i915_init(struct hdac_bus *bus) bus 130 sound/hda/hdac_i915.c err = snd_hdac_acomp_init(bus, &i915_init_ops, bus 135 sound/hda/hdac_i915.c acomp = bus->audio_component; bus 147 sound/hda/hdac_i915.c dev_info(bus->dev, "couldn't bind with audio component\n"); bus 148 sound/hda/hdac_i915.c snd_hdac_acomp_exit(bus); bus 21 sound/hda/hdac_stream.c int snd_hdac_get_stream_stripe_ctl(struct hdac_bus *bus, bus 31 sound/hda/hdac_stream.c max_sdo_lines = snd_hdac_chip_readl(bus, GCAP) & AZX_GCAP_NSDO; bus 60 sound/hda/hdac_stream.c void snd_hdac_stream_init(struct hdac_bus *bus, struct hdac_stream *azx_dev, bus 63 sound/hda/hdac_stream.c azx_dev->bus = bus; bus 65 sound/hda/hdac_stream.c azx_dev->sd_addr = bus->remap_addr + (0x20 * idx + 0x80); bus 72 sound/hda/hdac_stream.c list_add_tail(&azx_dev->list, &bus->stream_list); bus 85 sound/hda/hdac_stream.c struct hdac_bus *bus = azx_dev->bus; bus 88 sound/hda/hdac_stream.c trace_snd_hdac_stream_start(bus, azx_dev); bus 90 sound/hda/hdac_stream.c azx_dev->start_wallclk = snd_hdac_chip_readl(bus, WALLCLK); bus 95 sound/hda/hdac_stream.c snd_hdac_chip_updatel(bus, INTCTL, bus 101 sound/hda/hdac_stream.c stripe_ctl = snd_hdac_get_stream_stripe_ctl(bus, azx_dev->substream); bus 137 sound/hda/hdac_stream.c trace_snd_hdac_stream_stop(azx_dev->bus, azx_dev); bus 141 sound/hda/hdac_stream.c snd_hdac_chip_updatel(azx_dev->bus, INTCTL, 1 << azx_dev->index, 0); bus 190 sound/hda/hdac_stream.c struct hdac_bus *bus = azx_dev->bus; bus 204 sound/hda/hdac_stream.c if (!bus->snoop) bus 226 sound/hda/hdac_stream.c if (bus->use_posbuf && bus->posbuf.addr) { bus 227 sound/hda/hdac_stream.c if (!(snd_hdac_chip_readl(bus, DPLBASE) & AZX_DPLBASE_ENABLE)) bus 228 sound/hda/hdac_stream.c snd_hdac_chip_writel(bus, DPLBASE, bus 229 sound/hda/hdac_stream.c (u32)bus->posbuf.addr | AZX_DPLBASE_ENABLE); bus 282 sound/hda/hdac_stream.c struct hdac_stream *snd_hdac_stream_assign(struct hdac_bus *bus, bus 292 sound/hda/hdac_stream.c list_for_each_entry(azx_dev, &bus->stream_list, list) { bus 301 sound/hda/hdac_stream.c if (!res || bus->reverse_assign) bus 305 sound/hda/hdac_stream.c spin_lock_irq(&bus->reg_lock); bus 310 sound/hda/hdac_stream.c spin_unlock_irq(&bus->reg_lock); bus 324 sound/hda/hdac_stream.c struct hdac_bus *bus = azx_dev->bus; bus 326 sound/hda/hdac_stream.c spin_lock_irq(&bus->reg_lock); bus 330 sound/hda/hdac_stream.c spin_unlock_irq(&bus->reg_lock); bus 342 sound/hda/hdac_stream.c struct hdac_stream *snd_hdac_get_stream(struct hdac_bus *bus, bus 347 sound/hda/hdac_stream.c list_for_each_entry(s, &bus->stream_list, list) { bus 359 sound/hda/hdac_stream.c static int setup_bdle(struct hdac_bus *bus, bus 380 sound/hda/hdac_stream.c if (bus->align_bdle_4k) { bus 409 sound/hda/hdac_stream.c struct hdac_bus *bus = azx_dev->bus; bus 428 sound/hda/hdac_stream.c pos_adj = bus->bdl_pos_adj; bus 439 sound/hda/hdac_stream.c dev_warn(bus->dev, "Too big adjustment %d\n", bus 443 sound/hda/hdac_stream.c ofs = setup_bdle(bus, snd_pcm_get_dma_buf(substream), bus 454 sound/hda/hdac_stream.c ofs = setup_bdle(bus, snd_pcm_get_dma_buf(substream), bus 458 sound/hda/hdac_stream.c ofs = setup_bdle(bus, snd_pcm_get_dma_buf(substream), bus 468 sound/hda/hdac_stream.c dev_err(bus->dev, "Too many BDL entries: buffer=%d, period=%d\n", bus 517 sound/hda/hdac_stream.c return snd_hdac_chip_readl(azx_dev->bus, WALLCLK); bus 567 sound/hda/hdac_stream.c struct hdac_bus *bus = azx_dev->bus; bus 574 sound/hda/hdac_stream.c list_for_each_entry(s, &bus->stream_list, list) { bus 598 sound/hda/hdac_stream.c struct hdac_bus *bus = azx_dev->bus; bus 603 sound/hda/hdac_stream.c val = _snd_hdac_chip_readl(bus, reg); bus 608 sound/hda/hdac_stream.c _snd_hdac_chip_writel(bus, reg, val); bus 624 sound/hda/hdac_stream.c struct hdac_bus *bus = azx_dev->bus; bus 631 sound/hda/hdac_stream.c list_for_each_entry(s, &bus->stream_list, list) { bus 668 sound/hda/hdac_stream.c struct hdac_bus *bus = azx_dev->bus; bus 673 sound/hda/hdac_stream.c spin_lock_irq(&bus->reg_lock); bus 675 sound/hda/hdac_stream.c spin_unlock_irq(&bus->reg_lock); bus 680 sound/hda/hdac_stream.c spin_unlock_irq(&bus->reg_lock); bus 682 sound/hda/hdac_stream.c err = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV_SG, bus->dev, bus 700 sound/hda/hdac_stream.c err = setup_bdle(bus, bufp, azx_dev, &bdl, 0, byte_size, 0); bus 711 sound/hda/hdac_stream.c spin_lock_irq(&bus->reg_lock); bus 713 sound/hda/hdac_stream.c spin_unlock_irq(&bus->reg_lock); bus 742 sound/hda/hdac_stream.c struct hdac_bus *bus = azx_dev->bus; bus 759 sound/hda/hdac_stream.c spin_lock_irq(&bus->reg_lock); bus 761 sound/hda/hdac_stream.c spin_unlock_irq(&bus->reg_lock); bus 36 sound/hda/local.h int snd_hdac_bus_add_device(struct hdac_bus *bus, struct hdac_device *codec); bus 37 sound/hda/local.h void snd_hdac_bus_remove_device(struct hdac_bus *bus, bus 20 sound/hda/trace.h TP_PROTO(struct hdac_bus *bus, unsigned int cmd), bus 21 sound/hda/trace.h TP_ARGS(bus, cmd), bus 26 sound/hda/trace.h dev_name((bus)->dev), (cmd) >> 28, cmd); bus 32 sound/hda/trace.h TP_PROTO(struct hdac_bus *bus, unsigned int addr, unsigned int res), bus 33 sound/hda/trace.h TP_ARGS(bus, addr, res), bus 38 sound/hda/trace.h dev_name((bus)->dev), addr, res); bus 44 sound/hda/trace.h TP_PROTO(struct hdac_bus *bus, u32 res, u32 res_ex), bus 45 sound/hda/trace.h TP_ARGS(bus, res, res_ex), bus 50 sound/hda/trace.h dev_name((bus)->dev), res_ex & 0x0f, res, res_ex); bus 56 sound/hda/trace.h TP_PROTO(struct hdac_bus *bus, struct hdac_stream *azx_dev), bus 58 sound/hda/trace.h TP_ARGS(bus, azx_dev), bus 72 sound/hda/trace.h TP_PROTO(struct hdac_bus *bus, struct hdac_stream *azx_dev), bus 73 sound/hda/trace.h TP_ARGS(bus, azx_dev) bus 77 sound/hda/trace.h TP_PROTO(struct hdac_bus *bus, struct hdac_stream *azx_dev), bus 78 sound/hda/trace.h TP_ARGS(bus, azx_dev) bus 138 sound/i2c/cs8427.c int snd_cs8427_init(struct snd_i2c_bus *bus, bus 190 sound/i2c/cs8427.c snd_i2c_lock(bus); bus 199 sound/i2c/cs8427.c snd_i2c_unlock(bus); bus 235 sound/i2c/cs8427.c snd_i2c_unlock(bus); bus 243 sound/i2c/cs8427.c snd_i2c_unlock(bus); bus 249 sound/i2c/cs8427.c int snd_cs8427_create(struct snd_i2c_bus *bus, bus 258 sound/i2c/cs8427.c err = snd_i2c_device_create(bus, "CS8427", CS8427_ADDR | (addr & 7), bus 273 sound/i2c/cs8427.c err = snd_cs8427_init(bus, device); bus 314 sound/i2c/cs8427.c snd_i2c_lock(cs8427->bus); bus 326 sound/i2c/cs8427.c snd_i2c_unlock(cs8427->bus); bus 329 sound/i2c/cs8427.c snd_i2c_lock(cs8427->bus); bus 331 sound/i2c/cs8427.c snd_i2c_unlock(cs8427->bus); bus 336 sound/i2c/cs8427.c snd_i2c_lock(cs8427->bus); bus 342 sound/i2c/cs8427.c snd_i2c_unlock(cs8427->bus); bus 361 sound/i2c/cs8427.c snd_i2c_lock(device->bus); bus 363 sound/i2c/cs8427.c snd_i2c_unlock(device->bus); bus 385 sound/i2c/cs8427.c snd_i2c_lock(device->bus); bus 389 sound/i2c/cs8427.c snd_i2c_unlock(device->bus); bus 396 sound/i2c/cs8427.c snd_i2c_unlock(device->bus); bus 399 sound/i2c/cs8427.c snd_i2c_unlock(device->bus); bus 417 sound/i2c/cs8427.c snd_i2c_lock(device->bus); bus 419 sound/i2c/cs8427.c snd_i2c_unlock(device->bus); bus 434 sound/i2c/cs8427.c snd_i2c_lock(device->bus); bus 443 sound/i2c/cs8427.c snd_i2c_unlock(device->bus); bus 532 sound/i2c/cs8427.c err = snd_ctl_add(cs8427->bus->card, kctl); bus 560 sound/i2c/cs8427.c snd_ctl_notify(cs8427->bus->card, bus 578 sound/i2c/cs8427.c snd_i2c_lock(cs8427->bus); bus 597 sound/i2c/cs8427.c snd_ctl_notify(cs8427->bus->card, bus 602 sound/i2c/cs8427.c snd_i2c_unlock(cs8427->bus); bus 25 sound/i2c/i2c.c static int snd_i2c_bit_probeaddr(struct snd_i2c_bus *bus, bus 34 sound/i2c/i2c.c static int snd_i2c_bus_free(struct snd_i2c_bus *bus) bus 39 sound/i2c/i2c.c if (snd_BUG_ON(!bus)) bus 41 sound/i2c/i2c.c while (!list_empty(&bus->devices)) { bus 42 sound/i2c/i2c.c device = snd_i2c_device(bus->devices.next); bus 45 sound/i2c/i2c.c if (bus->master) bus 46 sound/i2c/i2c.c list_del(&bus->buses); bus 48 sound/i2c/i2c.c while (!list_empty(&bus->buses)) { bus 49 sound/i2c/i2c.c slave = snd_i2c_slave_bus(bus->buses.next); bus 50 sound/i2c/i2c.c snd_device_free(bus->card, slave); bus 53 sound/i2c/i2c.c if (bus->private_free) bus 54 sound/i2c/i2c.c bus->private_free(bus); bus 55 sound/i2c/i2c.c kfree(bus); bus 61 sound/i2c/i2c.c struct snd_i2c_bus *bus = device->device_data; bus 62 sound/i2c/i2c.c return snd_i2c_bus_free(bus); bus 68 sound/i2c/i2c.c struct snd_i2c_bus *bus; bus 75 sound/i2c/i2c.c bus = kzalloc(sizeof(*bus), GFP_KERNEL); bus 76 sound/i2c/i2c.c if (bus == NULL) bus 78 sound/i2c/i2c.c mutex_init(&bus->lock_mutex); bus 79 sound/i2c/i2c.c INIT_LIST_HEAD(&bus->devices); bus 80 sound/i2c/i2c.c INIT_LIST_HEAD(&bus->buses); bus 81 sound/i2c/i2c.c bus->card = card; bus 82 sound/i2c/i2c.c bus->ops = &snd_i2c_bit_ops; bus 84 sound/i2c/i2c.c list_add_tail(&bus->buses, &master->buses); bus 85 sound/i2c/i2c.c bus->master = master; bus 87 sound/i2c/i2c.c strlcpy(bus->name, name, sizeof(bus->name)); bus 88 sound/i2c/i2c.c err = snd_device_new(card, SNDRV_DEV_BUS, bus, &ops); bus 90 sound/i2c/i2c.c snd_i2c_bus_free(bus); bus 93 sound/i2c/i2c.c *ri2c = bus; bus 99 sound/i2c/i2c.c int snd_i2c_device_create(struct snd_i2c_bus *bus, const char *name, bus 105 sound/i2c/i2c.c if (snd_BUG_ON(!bus)) bus 112 sound/i2c/i2c.c list_add_tail(&device->list, &bus->devices); bus 113 sound/i2c/i2c.c device->bus = bus; bus 122 sound/i2c/i2c.c if (device->bus) bus 134 sound/i2c/i2c.c return device->bus->ops->sendbytes(device, bytes, count); bus 141 sound/i2c/i2c.c return device->bus->ops->readbytes(device, bytes, count); bus 146 sound/i2c/i2c.c int snd_i2c_probeaddr(struct snd_i2c_bus *bus, unsigned short addr) bus 148 sound/i2c/i2c.c return bus->ops->probeaddr(bus, addr); bus 157 sound/i2c/i2c.c static inline void snd_i2c_bit_hw_start(struct snd_i2c_bus *bus) bus 159 sound/i2c/i2c.c if (bus->hw_ops.bit->start) bus 160 sound/i2c/i2c.c bus->hw_ops.bit->start(bus); bus 163 sound/i2c/i2c.c static inline void snd_i2c_bit_hw_stop(struct snd_i2c_bus *bus) bus 165 sound/i2c/i2c.c if (bus->hw_ops.bit->stop) bus 166 sound/i2c/i2c.c bus->hw_ops.bit->stop(bus); bus 169 sound/i2c/i2c.c static void snd_i2c_bit_direction(struct snd_i2c_bus *bus, int clock, int data) bus 171 sound/i2c/i2c.c if (bus->hw_ops.bit->direction) bus 172 sound/i2c/i2c.c bus->hw_ops.bit->direction(bus, clock, data); bus 175 sound/i2c/i2c.c static void snd_i2c_bit_set(struct snd_i2c_bus *bus, int clock, int data) bus 177 sound/i2c/i2c.c bus->hw_ops.bit->setlines(bus, clock, data); bus 181 sound/i2c/i2c.c static int snd_i2c_bit_clock(struct snd_i2c_bus *bus) bus 183 sound/i2c/i2c.c if (bus->hw_ops.bit->getclock) bus 184 sound/i2c/i2c.c return bus->hw_ops.bit->getclock(bus); bus 189 sound/i2c/i2c.c static int snd_i2c_bit_data(struct snd_i2c_bus *bus, int ack) bus 191 sound/i2c/i2c.c return bus->hw_ops.bit->getdata(bus, ack); bus 194 sound/i2c/i2c.c static void snd_i2c_bit_start(struct snd_i2c_bus *bus) bus 196 sound/i2c/i2c.c snd_i2c_bit_hw_start(bus); bus 197 sound/i2c/i2c.c snd_i2c_bit_direction(bus, 1, 1); /* SCL - wr, SDA - wr */ bus 198 sound/i2c/i2c.c snd_i2c_bit_set(bus, 1, 1); bus 199 sound/i2c/i2c.c snd_i2c_bit_set(bus, 1, 0); bus 200 sound/i2c/i2c.c snd_i2c_bit_set(bus, 0, 0); bus 203 sound/i2c/i2c.c static void snd_i2c_bit_stop(struct snd_i2c_bus *bus) bus 205 sound/i2c/i2c.c snd_i2c_bit_set(bus, 0, 0); bus 206 sound/i2c/i2c.c snd_i2c_bit_set(bus, 1, 0); bus 207 sound/i2c/i2c.c snd_i2c_bit_set(bus, 1, 1); bus 208 sound/i2c/i2c.c snd_i2c_bit_hw_stop(bus); bus 211 sound/i2c/i2c.c static void snd_i2c_bit_send(struct snd_i2c_bus *bus, int data) bus 213 sound/i2c/i2c.c snd_i2c_bit_set(bus, 0, data); bus 214 sound/i2c/i2c.c snd_i2c_bit_set(bus, 1, data); bus 215 sound/i2c/i2c.c snd_i2c_bit_set(bus, 0, data); bus 218 sound/i2c/i2c.c static int snd_i2c_bit_ack(struct snd_i2c_bus *bus) bus 222 sound/i2c/i2c.c snd_i2c_bit_set(bus, 0, 1); bus 223 sound/i2c/i2c.c snd_i2c_bit_set(bus, 1, 1); bus 224 sound/i2c/i2c.c snd_i2c_bit_direction(bus, 1, 0); /* SCL - wr, SDA - rd */ bus 225 sound/i2c/i2c.c ack = snd_i2c_bit_data(bus, 1); bus 226 sound/i2c/i2c.c snd_i2c_bit_direction(bus, 1, 1); /* SCL - wr, SDA - wr */ bus 227 sound/i2c/i2c.c snd_i2c_bit_set(bus, 0, 1); bus 231 sound/i2c/i2c.c static int snd_i2c_bit_sendbyte(struct snd_i2c_bus *bus, unsigned char data) bus 236 sound/i2c/i2c.c snd_i2c_bit_send(bus, !!(data & (1 << i))); bus 237 sound/i2c/i2c.c err = snd_i2c_bit_ack(bus); bus 243 sound/i2c/i2c.c static int snd_i2c_bit_readbyte(struct snd_i2c_bus *bus, int last) bus 248 sound/i2c/i2c.c snd_i2c_bit_set(bus, 0, 1); bus 249 sound/i2c/i2c.c snd_i2c_bit_direction(bus, 1, 0); /* SCL - wr, SDA - rd */ bus 251 sound/i2c/i2c.c snd_i2c_bit_set(bus, 1, 1); bus 252 sound/i2c/i2c.c if (snd_i2c_bit_data(bus, 0)) bus 254 sound/i2c/i2c.c snd_i2c_bit_set(bus, 0, 1); bus 256 sound/i2c/i2c.c snd_i2c_bit_direction(bus, 1, 1); /* SCL - wr, SDA - wr */ bus 257 sound/i2c/i2c.c snd_i2c_bit_send(bus, !!last); bus 264 sound/i2c/i2c.c struct snd_i2c_bus *bus = device->bus; bus 269 sound/i2c/i2c.c snd_i2c_bit_start(bus); bus 270 sound/i2c/i2c.c err = snd_i2c_bit_sendbyte(bus, device->addr << 1); bus 272 sound/i2c/i2c.c snd_i2c_bit_hw_stop(bus); bus 276 sound/i2c/i2c.c err = snd_i2c_bit_sendbyte(bus, *bytes++); bus 278 sound/i2c/i2c.c snd_i2c_bit_hw_stop(bus); bus 283 sound/i2c/i2c.c snd_i2c_bit_stop(bus); bus 290 sound/i2c/i2c.c struct snd_i2c_bus *bus = device->bus; bus 295 sound/i2c/i2c.c snd_i2c_bit_start(bus); bus 296 sound/i2c/i2c.c err = snd_i2c_bit_sendbyte(bus, (device->addr << 1) | 1); bus 298 sound/i2c/i2c.c snd_i2c_bit_hw_stop(bus); bus 302 sound/i2c/i2c.c err = snd_i2c_bit_readbyte(bus, count == 0); bus 304 sound/i2c/i2c.c snd_i2c_bit_hw_stop(bus); bus 310 sound/i2c/i2c.c snd_i2c_bit_stop(bus); bus 314 sound/i2c/i2c.c static int snd_i2c_bit_probeaddr(struct snd_i2c_bus *bus, unsigned short addr) bus 322 sound/i2c/i2c.c snd_i2c_bit_start(bus); bus 323 sound/i2c/i2c.c err = snd_i2c_bit_sendbyte(bus, addr << 1); bus 324 sound/i2c/i2c.c snd_i2c_bit_stop(bus); bus 35 sound/i2c/tea6330t.c struct snd_i2c_bus *bus; bus 45 sound/i2c/tea6330t.c int snd_tea6330t_detect(struct snd_i2c_bus *bus, int equalizer) bus 49 sound/i2c/tea6330t.c snd_i2c_lock(bus); bus 50 sound/i2c/tea6330t.c res = snd_i2c_probeaddr(bus, TEA6330T_ADDR); bus 51 sound/i2c/tea6330t.c snd_i2c_unlock(bus); bus 62 sound/i2c/tea6330t.c snd_i2c_write(tea->bus, TEA6330T_ADDR, addr, value, 1); bus 86 sound/i2c/tea6330t.c snd_i2c_lock(tea->bus); bus 89 sound/i2c/tea6330t.c snd_i2c_unlock(tea->bus); bus 103 sound/i2c/tea6330t.c snd_i2c_lock(tea->bus); bus 121 sound/i2c/tea6330t.c snd_i2c_unlock(tea->bus); bus 137 sound/i2c/tea6330t.c snd_i2c_lock(tea->bus); bus 140 sound/i2c/tea6330t.c snd_i2c_unlock(tea->bus); bus 154 sound/i2c/tea6330t.c snd_i2c_lock(tea->bus); bus 165 sound/i2c/tea6330t.c snd_i2c_unlock(tea->bus); bus 204 sound/i2c/tea6330t.c snd_i2c_lock(tea->bus); bus 212 sound/i2c/tea6330t.c snd_i2c_unlock(tea->bus); bus 251 sound/i2c/tea6330t.c snd_i2c_lock(tea->bus); bus 259 sound/i2c/tea6330t.c snd_i2c_unlock(tea->bus); bus 276 sound/i2c/tea6330t.c struct snd_i2c_bus *bus, bus 290 sound/i2c/tea6330t.c if ((err = snd_i2c_device_create(bus, "TEA6330T", TEA6330T_ADDR, &device)) < 0) { bus 295 sound/i2c/tea6330t.c tea->bus = bus; bus 301 sound/i2c/tea6330t.c snd_i2c_lock(bus); bus 345 sound/i2c/tea6330t.c snd_i2c_unlock(bus); bus 349 sound/i2c/tea6330t.c snd_i2c_unlock(bus); bus 152 sound/isa/gus/interwave.c static void snd_interwave_i2c_setlines(struct snd_i2c_bus *bus, int ctrl, int data) bus 154 sound/isa/gus/interwave.c unsigned long port = bus->private_value; bus 163 sound/isa/gus/interwave.c static int snd_interwave_i2c_getclockline(struct snd_i2c_bus *bus) bus 165 sound/isa/gus/interwave.c unsigned long port = bus->private_value; bus 175 sound/isa/gus/interwave.c static int snd_interwave_i2c_getdataline(struct snd_i2c_bus *bus, int ack) bus 177 sound/isa/gus/interwave.c unsigned long port = bus->private_value; bus 200 sound/isa/gus/interwave.c struct snd_i2c_bus *bus; bus 226 sound/isa/gus/interwave.c if ((err = snd_i2c_bus_create(card, name, NULL, &bus)) < 0) bus 228 sound/isa/gus/interwave.c bus->private_value = port; bus 229 sound/isa/gus/interwave.c bus->hw_ops.bit = &snd_interwave_i2c_bit_ops; bus 230 sound/isa/gus/interwave.c if ((err = snd_tea6330t_detect(bus, 0)) < 0) bus 232 sound/isa/gus/interwave.c *rbus = bus; bus 204 sound/pci/ac97/ac97_codec.c dev_err((ac97)->bus->card->dev, fmt, ##args) bus 206 sound/pci/ac97/ac97_codec.c dev_warn((ac97)->bus->card->dev, fmt, ##args) bus 208 sound/pci/ac97/ac97_codec.c dev_dbg((ac97)->bus->card->dev, fmt, ##args) bus 279 sound/pci/ac97/ac97_codec.c ac97->bus->ops->write(ac97, AC97_RESET, 0); /* reset audio codec */ bus 281 sound/pci/ac97/ac97_codec.c ac97->bus->ops->write(ac97, reg, value); bus 301 sound/pci/ac97/ac97_codec.c return ac97->bus->ops->read(ac97, reg); bus 308 sound/pci/ac97/ac97_codec.c ac97->regs[reg] = ac97->bus->ops->read(ac97, reg); bus 332 sound/pci/ac97/ac97_codec.c ac97->bus->ops->write(ac97, reg, value); bus 361 sound/pci/ac97/ac97_codec.c ac97->bus->ops->write(ac97, reg, value); bus 409 sound/pci/ac97/ac97_codec.c ac97->bus->ops->write(ac97, reg, new); bus 429 sound/pci/ac97/ac97_codec.c ac97->bus->ops->write(ac97, AC97_AD_SERIAL_CFG, bus 433 sound/pci/ac97/ac97_codec.c ac97->bus->ops->write(ac97, AC97_PCM, new); bus 435 sound/pci/ac97/ac97_codec.c ac97->bus->ops->write(ac97, AC97_AD_SERIAL_CFG, bus 984 sound/pci/ac97/ac97_codec.c static int snd_ac97_bus_free(struct snd_ac97_bus *bus) bus 986 sound/pci/ac97/ac97_codec.c if (bus) { bus 987 sound/pci/ac97/ac97_codec.c snd_ac97_bus_proc_done(bus); bus 988 sound/pci/ac97/ac97_codec.c kfree(bus->pcms); bus 989 sound/pci/ac97/ac97_codec.c if (bus->private_free) bus 990 sound/pci/ac97/ac97_codec.c bus->private_free(bus); bus 991 sound/pci/ac97/ac97_codec.c kfree(bus); bus 998 sound/pci/ac97/ac97_codec.c struct snd_ac97_bus *bus = device->device_data; bus 999 sound/pci/ac97/ac97_codec.c return snd_ac97_bus_free(bus); bus 1009 sound/pci/ac97/ac97_codec.c if (ac97->bus) bus 1010 sound/pci/ac97/ac97_codec.c ac97->bus->codec[ac97->num] = NULL; bus 1312 sound/pci/ac97/ac97_codec.c struct snd_card *card = ac97->bus->card; bus 1684 sound/pci/ac97/ac97_codec.c tmp = ((unsigned int)rate * ac97->bus->clock) / 48000; bus 1697 sound/pci/ac97/ac97_codec.c if (ac97->bus->no_vra) { bus 1901 sound/pci/ac97/ac97_codec.c struct snd_ac97_bus *bus; bus 1908 sound/pci/ac97/ac97_codec.c bus = kzalloc(sizeof(*bus), GFP_KERNEL); bus 1909 sound/pci/ac97/ac97_codec.c if (bus == NULL) bus 1911 sound/pci/ac97/ac97_codec.c bus->card = card; bus 1912 sound/pci/ac97/ac97_codec.c bus->num = num; bus 1913 sound/pci/ac97/ac97_codec.c bus->ops = ops; bus 1914 sound/pci/ac97/ac97_codec.c bus->private_data = private_data; bus 1915 sound/pci/ac97/ac97_codec.c bus->clock = 48000; bus 1916 sound/pci/ac97/ac97_codec.c spin_lock_init(&bus->bus_lock); bus 1917 sound/pci/ac97/ac97_codec.c snd_ac97_bus_proc_init(bus); bus 1918 sound/pci/ac97/ac97_codec.c if ((err = snd_device_new(card, SNDRV_DEV_BUS, bus, &dev_ops)) < 0) { bus 1919 sound/pci/ac97/ac97_codec.c snd_ac97_bus_free(bus); bus 1923 sound/pci/ac97/ac97_codec.c *rbus = bus; bus 1940 sound/pci/ac97/ac97_codec.c ac97->dev.bus = &ac97_bus_type; bus 1941 sound/pci/ac97/ac97_codec.c ac97->dev.parent = ac97->bus->card->dev; bus 1944 sound/pci/ac97/ac97_codec.c ac97->bus->card->number, ac97->num, bus 1948 sound/pci/ac97/ac97_codec.c ac97->dev.bus = NULL; bus 1958 sound/pci/ac97/ac97_codec.c if (ac97->dev.bus) bus 1993 sound/pci/ac97/ac97_codec.c int snd_ac97_mixer(struct snd_ac97_bus *bus, struct snd_ac97_template *template, struct snd_ac97 **rac97) bus 2010 sound/pci/ac97/ac97_codec.c if (snd_BUG_ON(!bus || !template)) bus 2014 sound/pci/ac97/ac97_codec.c if (bus->codec[template->num]) bus 2017 sound/pci/ac97/ac97_codec.c card = bus->card; bus 2023 sound/pci/ac97/ac97_codec.c ac97->bus = bus; bus 2029 sound/pci/ac97/ac97_codec.c bus->codec[ac97->num] = ac97; bus 2042 sound/pci/ac97/ac97_codec.c if (bus->ops->reset) { bus 2043 sound/pci/ac97/ac97_codec.c bus->ops->reset(ac97); bus 2060 sound/pci/ac97/ac97_codec.c if (bus->ops->wait) bus 2061 sound/pci/ac97/ac97_codec.c bus->ops->wait(ac97); bus 2125 sound/pci/ac97/ac97_codec.c if (bus->ops->reset) // FIXME: always skipping? bus 2192 sound/pci/ac97/ac97_codec.c if (! bus->no_vra) bus 2196 sound/pci/ac97/ac97_codec.c if ((ac97->ext_id & AC97_EI_DRA) && bus->dra) { bus 2232 sound/pci/ac97/ac97_codec.c if (bus->ops->init) bus 2233 sound/pci/ac97/ac97_codec.c bus->ops->init(ac97); bus 2530 sound/pci/ac97/ac97_codec.c if (ac97->bus->ops->reset) { bus 2531 sound/pci/ac97/ac97_codec.c ac97->bus->ops->reset(ac97); bus 2548 sound/pci/ac97/ac97_codec.c ac97->bus->ops->write(ac97, AC97_MASTER, 0x8101); bus 2556 sound/pci/ac97/ac97_codec.c ac97->bus->ops->write(ac97, AC97_MASTER, AC97_MUTE_MASK_MONO); bus 2570 sound/pci/ac97/ac97_codec.c if (ac97->bus->ops->init) bus 2571 sound/pci/ac97/ac97_codec.c ac97->bus->ops->init(ac97); bus 2604 sound/pci/ac97/ac97_codec.c return snd_ctl_remove_id(ac97->bus->card, &id); bus 2613 sound/pci/ac97/ac97_codec.c return snd_ctl_find_id(ac97->bus->card, &sid); bus 2740 sound/pci/ac97/ac97_codec.c return snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&snd_ac97_alc_jack_detect, ac97)); bus 33 sound/pci/ac97/ac97_patch.c if ((err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&controls[idx], ac97))) < 0) bus 47 sound/pci/ac97/ac97_patch.c kctl = snd_ctl_find_id(ac97->bus->card, &sid); bus 299 sound/pci/ac97/ac97_patch.c err = snd_ctl_add(ac97->bus->card, kctl); bus 305 sound/pci/ac97/ac97_patch.c err = snd_ctl_add(ac97->bus->card, bus 464 sound/pci/ac97/ac97_patch.c if ((err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&wm97xx_snd_ac97_controls[i], ac97))) < 0) bus 494 sound/pci/ac97/ac97_patch.c if ((err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&wm9704_snd_ac97_controls[i], ac97))) < 0) bus 634 sound/pci/ac97/ac97_patch.c if ((err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&wm9711_snd_ac97_controls[i], ac97))) < 0) bus 801 sound/pci/ac97/ac97_patch.c if ((err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&wm13_snd_ac97_controls_3d[i], ac97))) < 0) bus 812 sound/pci/ac97/ac97_patch.c if ((err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&wm13_snd_ac97_controls[i], ac97))) < 0) bus 886 sound/pci/ac97/ac97_patch.c if ((err = snd_ctl_add(ac97->bus->card, kctl = snd_ac97_cnew(&snd_ac97_controls_3d[0], ac97))) < 0) bus 899 sound/pci/ac97/ac97_patch.c if ((err = snd_ctl_add(ac97->bus->card, kctl = snd_ac97_cnew(&snd_ac97_controls_3d[0], ac97))) < 0) bus 903 sound/pci/ac97/ac97_patch.c if ((err = snd_ctl_add(ac97->bus->card, kctl = snd_ac97_cnew(&snd_ac97_controls_3d[0], ac97))) < 0) bus 1388 sound/pci/ac97/ac97_patch.c ac97->bus->ops->write(ac97, AC97_AD_CODEC_CFG, ac97->spec.ad18xx.codec_cfg[codec]); bus 1407 sound/pci/ac97/ac97_patch.c ac97->bus->ops->write(ac97, AC97_PCM, ac97->spec.ad18xx.pcmreg[codec]); bus 3400 sound/pci/ac97/ac97_patch.c return snd_ctl_find_id(ac97->bus->card, &id); bus 3415 sound/pci/ac97/ac97_patch.c err = snd_ctl_add(ac97->bus->card, kctl); bus 3424 sound/pci/ac97/ac97_patch.c dev_dbg(ac97->bus->card->dev, bus 3849 sound/pci/ac97/ac97_patch.c if ((err = snd_ctl_add(ac97->bus->card, snd_ctl_new1(&snd_ac97_controls_si3036[idx], ac97))) < 0) bus 3916 sound/pci/ac97/ac97_patch.c if ((err = snd_ctl_add(ac97->bus->card, snd_ctl_new1(&snd_ac97_controls_ucb1400[idx], ac97))) < 0) bus 285 sound/pci/ac97/ac97_pcm.c tmp = (rate * ac97->bus->clock) / 48000; bus 431 sound/pci/ac97/ac97_pcm.c int snd_ac97_pcm_assign(struct snd_ac97_bus *bus, bus 452 sound/pci/ac97/ac97_pcm.c codec = bus->codec[i]; bus 459 sound/pci/ac97/ac97_pcm.c if (bus->codec[j]) bus 477 sound/pci/ac97/ac97_pcm.c rpcm->bus = bus; bus 481 sound/pci/ac97/ac97_pcm.c if (!bus->codec[j]) bus 501 sound/pci/ac97/ac97_pcm.c rpcm->r[0].codec[j] = bus->codec[j]; bus 503 sound/pci/ac97/ac97_pcm.c if (bus->no_vra) bus 516 sound/pci/ac97/ac97_pcm.c bus->codec[0] && (bus->codec[0]->flags & AC97_DOUBLE_RATE) && bus 524 sound/pci/ac97/ac97_pcm.c rpcm->r[1].codec[0] = bus->codec[0]; bus 527 sound/pci/ac97/ac97_pcm.c if (bus->no_vra) bus 537 sound/pci/ac97/ac97_pcm.c bus->pcms_count = pcms_count; bus 538 sound/pci/ac97/ac97_pcm.c bus->pcms = rpcms; bus 558 sound/pci/ac97/ac97_pcm.c struct snd_ac97_bus *bus; bus 565 sound/pci/ac97/ac97_pcm.c bus = pcm->bus; bus 568 sound/pci/ac97/ac97_pcm.c if (bus->codec[cidx] && (bus->codec[cidx]->ext_id & AC97_EI_SPDIF)) { bus 569 sound/pci/ac97/ac97_pcm.c err = set_spdif_rate(bus->codec[cidx], rate); bus 574 sound/pci/ac97/ac97_pcm.c spin_lock_irq(&pcm->bus->bus_lock); bus 580 sound/pci/ac97/ac97_pcm.c if (bus->used_slots[pcm->stream][cidx] & (1 << i)) { bus 581 sound/pci/ac97/ac97_pcm.c spin_unlock_irq(&pcm->bus->bus_lock); bus 586 sound/pci/ac97/ac97_pcm.c bus->used_slots[pcm->stream][cidx] |= (1 << i); bus 591 sound/pci/ac97/ac97_pcm.c spin_unlock_irq(&pcm->bus->bus_lock); bus 592 sound/pci/ac97/ac97_pcm.c dev_err(bus->card->dev, bus 600 sound/pci/ac97/ac97_pcm.c spin_unlock_irq(&pcm->bus->bus_lock); bus 608 sound/pci/ac97/ac97_pcm.c dev_err(bus->card->dev, bus 614 sound/pci/ac97/ac97_pcm.c dev_dbg(bus->card->dev, bus 619 sound/pci/ac97/ac97_pcm.c dev_err(bus->card->dev, bus 648 sound/pci/ac97/ac97_pcm.c struct snd_ac97_bus *bus; bus 667 sound/pci/ac97/ac97_pcm.c bus = pcm->bus; bus 668 sound/pci/ac97/ac97_pcm.c spin_lock_irq(&pcm->bus->bus_lock); bus 673 sound/pci/ac97/ac97_pcm.c bus->used_slots[pcm->stream][cidx] &= ~(1 << i); bus 677 sound/pci/ac97/ac97_pcm.c spin_unlock_irq(&pcm->bus->bus_lock); bus 420 sound/pci/ac97/ac97_proc.c if (ac97->bus->proc == NULL) bus 424 sound/pci/ac97/ac97_proc.c entry = snd_info_create_card_entry(ac97->bus->card, name, bus 425 sound/pci/ac97/ac97_proc.c ac97->bus->proc); bus 430 sound/pci/ac97/ac97_proc.c entry = snd_info_create_card_entry(ac97->bus->card, name, bus 431 sound/pci/ac97/ac97_proc.c ac97->bus->proc); bus 450 sound/pci/ac97/ac97_proc.c void snd_ac97_bus_proc_init(struct snd_ac97_bus * bus) bus 455 sound/pci/ac97/ac97_proc.c sprintf(name, "codec97#%d", bus->num); bus 456 sound/pci/ac97/ac97_proc.c entry = snd_info_create_card_entry(bus->card, name, bus 457 sound/pci/ac97/ac97_proc.c bus->card->proc_root); bus 460 sound/pci/ac97/ac97_proc.c bus->proc = entry; bus 463 sound/pci/ac97/ac97_proc.c void snd_ac97_bus_proc_done(struct snd_ac97_bus * bus) bus 465 sound/pci/ac97/ac97_proc.c snd_info_free_entry(bus->proc); bus 466 sound/pci/ac97/ac97_proc.c bus->proc = NULL; bus 767 sound/pci/ad1889.c snd_ad1889_ac97_bus_free(struct snd_ac97_bus *bus) bus 769 sound/pci/ad1889.c struct snd_ad1889 *chip = bus->private_data; bus 294 sound/pci/als300.c struct snd_ac97_bus *bus; bus 302 sound/pci/als300.c if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &bus)) < 0) bus 308 sound/pci/als300.c return snd_ac97_mixer(bus, &ac97, &chip->ac97); bus 758 sound/pci/azt3328.c struct snd_ac97_bus *bus; bus 779 sound/pci/azt3328.c rc = snd_ac97_bus(chip->card, 0, &ops, NULL, &bus); bus 781 sound/pci/azt3328.c rc = snd_ac97_mixer(bus, &ac97, &chip->ac97); bus 1064 sound/pci/cs4281.c static void snd_cs4281_mixer_free_ac97_bus(struct snd_ac97_bus *bus) bus 1066 sound/pci/cs4281.c struct cs4281 *chip = bus->private_data; bus 1867 sound/pci/cs46xx/cs46xx_lib.c static void snd_cs46xx_mixer_free_ac97_bus(struct snd_ac97_bus *bus) bus 1869 sound/pci/cs46xx/cs46xx_lib.c struct snd_cs46xx *chip = bus->private_data; bus 2394 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(ac97->bus->card->dev, "CODEC1 mode %04x\n", 0x0); bus 2397 sound/pci/cs46xx/cs46xx_lib.c dev_dbg(ac97->bus->card->dev, "CODEC2 mode %04x\n", 0x3); bus 2429 sound/pci/cs46xx/cs46xx_lib.c dev_err(ac97->bus->card->dev, bus 35 sound/pci/cs5535audio/cs5535audio_olpc.c dev_err(ac97->bus->card->dev, bus 58 sound/pci/cs5535audio/cs5535audio_olpc.c dev_err(ac97->bus->card->dev, "setting MIC Bias - %d\n", err); bus 1767 sound/pci/emu10k1/emu10k1_main.c if (!iommu_present(emu->card->dev->bus)) bus 1020 sound/pci/fm801.c static void snd_fm801_mixer_free_ac97_bus(struct snd_ac97_bus *bus) bus 1022 sound/pci/fm801.c struct fm801 *chip = bus->private_data; bus 1007 sound/pci/hda/hda_auto_parser.c q = snd_pci_quirk_lookup(codec->bus->pci, quirk); bus 269 sound/pci/hda/hda_beep.c if (!codec->bus->shutdown && codec->beep) bus 47 sound/pci/hda/hda_bind.c if (codec->bus->shutdown) bus 71 sound/pci/hda/hda_bind.c codec->bus->mixer_assigned >= codec->core.addr) { bus 75 sound/pci/hda/hda_bind.c codec->bus->mixer_assigned = codec->core.addr; bus 89 sound/pci/hda/hda_bind.c if (codec->bus->core.ext_ops) { bus 90 sound/pci/hda/hda_bind.c if (WARN_ON(!codec->bus->core.ext_ops->hdev_attach)) bus 92 sound/pci/hda/hda_bind.c return codec->bus->core.ext_ops->hdev_attach(&codec->core); bus 124 sound/pci/hda/hda_bind.c if (!codec->bus->bus_probing && codec->card->registered) { bus 149 sound/pci/hda/hda_bind.c if (codec->bus->core.ext_ops) { bus 150 sound/pci/hda/hda_bind.c if (WARN_ON(!codec->bus->core.ext_ops->hdev_detach)) bus 152 sound/pci/hda/hda_bind.c return codec->bus->core.ext_ops->hdev_detach(&codec->core); bus 175 sound/pci/hda/hda_bind.c drv->core.driver.bus = &snd_hda_bus_type; bus 41 sound/pci/hda/hda_codec.c struct hda_bus *bus = codec->bus; bus 49 sound/pci/hda/hda_codec.c mutex_lock(&bus->core.cmd_mutex); bus 51 sound/pci/hda/hda_codec.c bus->no_response_fallback = 1; bus 52 sound/pci/hda/hda_codec.c err = snd_hdac_bus_exec_verb_unlocked(&bus->core, codec->core.addr, bus 54 sound/pci/hda/hda_codec.c bus->no_response_fallback = 0; bus 55 sound/pci/hda/hda_codec.c mutex_unlock(&bus->core.cmd_mutex); bus 58 sound/pci/hda/hda_codec.c if (bus->response_reset) { bus 61 sound/pci/hda/hda_codec.c snd_hda_bus_reset(bus); bus 67 sound/pci/hda/hda_codec.c bus->response_reset = 0; bus 608 sound/pci/hda/hda_codec.c if (codec->bus->shutdown) bus 628 sound/pci/hda/hda_codec.c if (codec->bus->shutdown) bus 702 sound/pci/hda/hda_codec.c clear_bit(pcm->device, pcm->codec->bus->pcm_dev_bits); bus 793 sound/pci/hda/hda_codec.c snd_hdac_display_power(&codec->bus->core, codec->addr, enable); bus 860 sound/pci/hda/hda_codec.c static int snd_hda_codec_device_init(struct hda_bus *bus, struct snd_card *card, bus 869 sound/pci/hda/hda_codec.c if (snd_BUG_ON(!bus)) bus 879 sound/pci/hda/hda_codec.c err = snd_hdac_device_init(&codec->core, &bus->core, name, codec_addr); bus 899 sound/pci/hda/hda_codec.c int snd_hda_codec_new(struct hda_bus *bus, struct snd_card *card, bus 904 sound/pci/hda/hda_codec.c ret = snd_hda_codec_device_init(bus, card, codec_addr, codecp); bus 908 sound/pci/hda/hda_codec.c return snd_hda_codec_device_new(bus, card, codec_addr, *codecp); bus 912 sound/pci/hda/hda_codec.c int snd_hda_codec_device_new(struct hda_bus *bus, struct snd_card *card, bus 925 sound/pci/hda/hda_codec.c if (snd_BUG_ON(!bus)) bus 933 sound/pci/hda/hda_codec.c codec->bus = bus; bus 959 sound/pci/hda/hda_codec.c if (codec->bus->modelname) { bus 960 sound/pci/hda/hda_codec.c codec->modelname = kstrdup(codec->bus->modelname, GFP_KERNEL); bus 1109 sound/pci/hda/hda_codec.c list_for_each_codec(c, codec->bus) { bus 1176 sound/pci/hda/hda_codec.c list_for_each_codec(c, codec->bus) { bus 1726 sound/pci/hda/hda_codec.c int snd_hda_lock_devices(struct hda_bus *bus) bus 1728 sound/pci/hda/hda_codec.c struct snd_card *card = bus->card; bus 1738 sound/pci/hda/hda_codec.c list_for_each_codec(codec, bus) { bus 1763 sound/pci/hda/hda_codec.c void snd_hda_unlock_devices(struct hda_bus *bus) bus 1765 sound/pci/hda/hda_codec.c struct snd_card *card = bus->card; bus 1785 sound/pci/hda/hda_codec.c struct hda_bus *bus = codec->bus; bus 1787 sound/pci/hda/hda_codec.c if (snd_hda_lock_devices(bus) < 0) bus 1794 sound/pci/hda/hda_codec.c snd_hda_unlock_devices(bus); bus 2080 sound/pci/hda/hda_codec.c if (hook->codec->bus->shutdown) bus 2448 sound/pci/hda/hda_codec.c struct hda_bus *bus = codec->bus; bus 2450 sound/pci/hda/hda_codec.c if (bus->primary_dig_out_type == HDA_PCM_TYPE_HDMI && bus 2453 sound/pci/hda/hda_codec.c } else if (bus->primary_dig_out_type == HDA_PCM_TYPE_SPDIF && bus 2462 sound/pci/hda/hda_codec.c bus->primary_dig_out_type = HDA_PCM_TYPE_HDMI; bus 2464 sound/pci/hda/hda_codec.c if (!bus->primary_dig_out_type) bus 2465 sound/pci/hda/hda_codec.c bus->primary_dig_out_type = type; bus 3160 sound/pci/hda/hda_codec.c mutex_lock(&codec->bus->prepare_mutex); bus 3168 sound/pci/hda/hda_codec.c mutex_unlock(&codec->bus->prepare_mutex); bus 3185 sound/pci/hda/hda_codec.c mutex_lock(&codec->bus->prepare_mutex); bus 3188 sound/pci/hda/hda_codec.c mutex_unlock(&codec->bus->prepare_mutex); bus 3200 sound/pci/hda/hda_codec.c static int get_empty_pcm_device(struct hda_bus *bus, unsigned int type) bus 3215 sound/pci/hda/hda_codec.c dev_err(bus->card->dev, "Invalid PCM type %d\n", type); bus 3224 sound/pci/hda/hda_codec.c if (!test_and_set_bit(audio_idx[type][i], bus->pcm_dev_bits)) bus 3231 sound/pci/hda/hda_codec.c if (!test_and_set_bit(i, bus->pcm_dev_bits)) bus 3236 sound/pci/hda/hda_codec.c dev_warn(bus->card->dev, "Too many %s devices\n", bus 3239 sound/pci/hda/hda_codec.c dev_warn(bus->card->dev, bus 3289 sound/pci/hda/hda_codec.c struct hda_bus *bus = codec->bus; bus 3304 sound/pci/hda/hda_codec.c dev = get_empty_pcm_device(bus, cpcm->pcm_type); bus 3310 sound/pci/hda/hda_codec.c err = snd_hda_attach_pcm_stream(bus, codec, cpcm); bus 3399 sound/pci/hda/hda_codec.c void snd_hda_set_power_save(struct hda_bus *bus, int delay) bus 3403 sound/pci/hda/hda_codec.c list_for_each_codec(c, bus) bus 3992 sound/pci/hda/hda_codec.c void snd_hda_bus_reset_codecs(struct hda_bus *bus) bus 3996 sound/pci/hda/hda_codec.c list_for_each_codec(codec, bus) { bus 209 sound/pci/hda/hda_controller.c struct hdac_bus *bus = azx_bus(chip); bus 252 sound/pci/hda/hda_controller.c spin_lock(&bus->reg_lock); bus 268 sound/pci/hda/hda_controller.c spin_unlock(&bus->reg_lock); bus 272 sound/pci/hda/hda_controller.c spin_lock(&bus->reg_lock); bus 277 sound/pci/hda/hda_controller.c spin_unlock(&bus->reg_lock); bus 722 sound/pci/hda/hda_controller.c struct hdac_bus *bus = &_bus->core; bus 723 sound/pci/hda/hda_controller.c struct azx *chip = bus_to_azx(bus); bus 789 sound/pci/hda/hda_controller.c static int azx_rirb_get_response(struct hdac_bus *bus, unsigned int addr, bus 792 sound/pci/hda/hda_controller.c struct azx *chip = bus_to_azx(bus); bus 793 sound/pci/hda/hda_controller.c struct hda_bus *hbus = &chip->bus; bus 803 sound/pci/hda/hda_controller.c spin_lock_irq(&bus->reg_lock); bus 804 sound/pci/hda/hda_controller.c if (bus->polling_mode || do_poll) bus 805 sound/pci/hda/hda_controller.c snd_hdac_bus_update_rirb(bus); bus 806 sound/pci/hda/hda_controller.c if (!bus->rirb.cmds[addr]) { bus 808 sound/pci/hda/hda_controller.c bus->poll_count = 0; bus 810 sound/pci/hda/hda_controller.c *res = bus->rirb.res[addr]; /* the last value */ bus 811 sound/pci/hda/hda_controller.c spin_unlock_irq(&bus->reg_lock); bus 814 sound/pci/hda/hda_controller.c spin_unlock_irq(&bus->reg_lock); bus 823 sound/pci/hda/hda_controller.c bus->last_cmd[addr]); bus 836 sound/pci/hda/hda_controller.c if (!bus->polling_mode && bus->poll_count < 2) { bus 839 sound/pci/hda/hda_controller.c bus->last_cmd[addr]); bus 841 sound/pci/hda/hda_controller.c bus->poll_count++; bus 846 sound/pci/hda/hda_controller.c if (!bus->polling_mode) { bus 849 sound/pci/hda/hda_controller.c bus->last_cmd[addr]); bus 850 sound/pci/hda/hda_controller.c bus->polling_mode = 1; bus 857 sound/pci/hda/hda_controller.c bus->last_cmd[addr]); bus 883 sound/pci/hda/hda_controller.c bus->last_cmd[addr]); bus 889 sound/pci/hda/hda_controller.c bus->last_cmd[addr]); bus 892 sound/pci/hda/hda_controller.c snd_hdac_bus_stop_cmd_io(bus); bus 928 sound/pci/hda/hda_controller.c static int azx_single_send_cmd(struct hdac_bus *bus, u32 val) bus 930 sound/pci/hda/hda_controller.c struct azx *chip = bus_to_azx(bus); bus 934 sound/pci/hda/hda_controller.c bus->last_cmd[azx_command_addr(val)] = val; bus 956 sound/pci/hda/hda_controller.c static int azx_single_get_response(struct hdac_bus *bus, unsigned int addr, bus 960 sound/pci/hda/hda_controller.c *res = bus->rirb.res[addr]; bus 972 sound/pci/hda/hda_controller.c static int azx_send_cmd(struct hdac_bus *bus, unsigned int val) bus 974 sound/pci/hda/hda_controller.c struct azx *chip = bus_to_azx(bus); bus 979 sound/pci/hda/hda_controller.c return azx_single_send_cmd(bus, val); bus 981 sound/pci/hda/hda_controller.c return snd_hdac_bus_send_cmd(bus, val); bus 985 sound/pci/hda/hda_controller.c static int azx_get_response(struct hdac_bus *bus, unsigned int addr, bus 988 sound/pci/hda/hda_controller.c struct azx *chip = bus_to_azx(bus); bus 993 sound/pci/hda/hda_controller.c return azx_single_get_response(bus, addr, res); bus 995 sound/pci/hda/hda_controller.c return azx_rirb_get_response(bus, addr, res); bus 1012 sound/pci/hda/hda_controller.c struct hdac_bus *bus = azx_bus(chip); bus 1015 sound/pci/hda/hda_controller.c list_for_each_entry(s, &bus->stream_list, list) bus 1026 sound/pci/hda/hda_controller.c struct hdac_bus *bus = &codec->bus->core; bus 1027 sound/pci/hda/hda_controller.c struct azx *chip = bus_to_azx(bus); bus 1035 sound/pci/hda/hda_controller.c spin_lock_irq(&bus->reg_lock); bus 1040 sound/pci/hda/hda_controller.c spin_unlock_irq(&bus->reg_lock); bus 1044 sound/pci/hda/hda_controller.c spin_lock_irq(&bus->reg_lock); bus 1047 sound/pci/hda/hda_controller.c spin_unlock_irq(&bus->reg_lock); bus 1058 sound/pci/hda/hda_controller.c struct hdac_bus *bus = &codec->bus->core; bus 1059 sound/pci/hda/hda_controller.c struct azx *chip = bus_to_azx(bus); bus 1069 sound/pci/hda/hda_controller.c struct hdac_bus *bus = &codec->bus->core; bus 1070 sound/pci/hda/hda_controller.c struct azx *chip = bus_to_azx(bus); bus 1078 sound/pci/hda/hda_controller.c spin_lock_irq(&bus->reg_lock); bus 1082 sound/pci/hda/hda_controller.c spin_unlock_irq(&bus->reg_lock); bus 1102 sound/pci/hda/hda_controller.c struct hdac_bus *bus = azx_bus(chip); bus 1105 sound/pci/hda/hda_controller.c list_for_each_entry(s, &bus->stream_list, list) bus 1119 sound/pci/hda/hda_controller.c static void stream_update(struct hdac_bus *bus, struct hdac_stream *s) bus 1121 sound/pci/hda/hda_controller.c struct azx *chip = bus_to_azx(bus); bus 1127 sound/pci/hda/hda_controller.c spin_unlock(&bus->reg_lock); bus 1129 sound/pci/hda/hda_controller.c spin_lock(&bus->reg_lock); bus 1136 sound/pci/hda/hda_controller.c struct hdac_bus *bus = azx_bus(chip); bus 1147 sound/pci/hda/hda_controller.c spin_lock(&bus->reg_lock); bus 1159 sound/pci/hda/hda_controller.c if (snd_hdac_bus_handle_stream_irq(bus, status, stream_update)) bus 1169 sound/pci/hda/hda_controller.c snd_hdac_bus_update_rirb(bus); bus 1176 sound/pci/hda/hda_controller.c spin_unlock(&bus->reg_lock); bus 1193 sound/pci/hda/hda_controller.c struct hdac_bus *bus = azx_bus(chip); bus 1197 sound/pci/hda/hda_controller.c mutex_lock(&bus->cmd_mutex); bus 1199 sound/pci/hda/hda_controller.c azx_send_cmd(bus, cmd); bus 1200 sound/pci/hda/hda_controller.c err = azx_get_response(bus, addr, &res); bus 1202 sound/pci/hda/hda_controller.c mutex_unlock(&bus->cmd_mutex); bus 1209 sound/pci/hda/hda_controller.c void snd_hda_bus_reset(struct hda_bus *bus) bus 1211 sound/pci/hda/hda_controller.c struct azx *chip = bus_to_azx(&bus->core); bus 1213 sound/pci/hda/hda_controller.c bus->in_reset = 1; bus 1216 sound/pci/hda/hda_controller.c if (bus->core.chip_init) bus 1217 sound/pci/hda/hda_controller.c snd_hda_bus_reset_codecs(bus); bus 1218 sound/pci/hda/hda_controller.c bus->in_reset = 0; bus 1224 sound/pci/hda/hda_controller.c struct hda_bus *bus = &chip->bus; bus 1227 sound/pci/hda/hda_controller.c err = snd_hdac_bus_init(&bus->core, chip->card->dev, &bus_core_ops); bus 1231 sound/pci/hda/hda_controller.c bus->card = chip->card; bus 1232 sound/pci/hda/hda_controller.c mutex_init(&bus->prepare_mutex); bus 1233 sound/pci/hda/hda_controller.c bus->pci = chip->pci; bus 1234 sound/pci/hda/hda_controller.c bus->modelname = model; bus 1235 sound/pci/hda/hda_controller.c bus->mixer_assigned = -1; bus 1236 sound/pci/hda/hda_controller.c bus->core.snoop = azx_snoop(chip); bus 1239 sound/pci/hda/hda_controller.c bus->core.use_posbuf = true; bus 1240 sound/pci/hda/hda_controller.c bus->core.bdl_pos_adj = chip->bdl_pos_adj; bus 1242 sound/pci/hda/hda_controller.c bus->core.corbrp_self_clear = true; bus 1245 sound/pci/hda/hda_controller.c bus->core.align_bdle_4k = true; bus 1253 sound/pci/hda/hda_controller.c bus->core.sync_write = 1; bus 1254 sound/pci/hda/hda_controller.c bus->allow_bus_reset = 1; bus 1264 sound/pci/hda/hda_controller.c struct hdac_bus *bus = azx_bus(chip); bus 1273 sound/pci/hda/hda_controller.c if ((bus->codec_mask & (1 << c)) & chip->codec_probe_mask) { bus 1280 sound/pci/hda/hda_controller.c bus->codec_mask &= ~(1 << c); bus 1296 sound/pci/hda/hda_controller.c if ((bus->codec_mask & (1 << c)) & chip->codec_probe_mask) { bus 1298 sound/pci/hda/hda_controller.c err = snd_hda_codec_new(&chip->bus, chip->card, c, &codec); bus 1322 sound/pci/hda/hda_controller.c list_for_each_codec_safe(codec, next, &chip->bus) { bus 1378 sound/pci/hda/hda_controller.c struct hdac_bus *bus = azx_bus(chip); bus 1381 sound/pci/hda/hda_controller.c while (!list_empty(&bus->stream_list)) { bus 1382 sound/pci/hda/hda_controller.c s = list_first_entry(&bus->stream_list, struct hdac_stream, list); bus 97 sound/pci/hda/hda_controller.h struct hda_bus bus; bus 155 sound/pci/hda/hda_controller.h #define azx_bus(chip) (&(chip)->bus.core) bus 156 sound/pci/hda/hda_controller.h #define bus_to_azx(_bus) container_of(_bus, struct azx, bus.core) bus 4544 sound/pci/hda/hda_generic.c if (spec->auto_mute_via_amp && !codec->bus->shutdown) bus 360 sound/pci/hda/hda_intel.c #define needs_eld_notify_link(chip) ((chip)->bus.keep_power) bus 501 sound/pci/hda/hda_intel.c struct hdac_bus *bus = azx_bus(chip); bus 506 sound/pci/hda/hda_intel.c val = readl(bus->mlcap + AZX_ML_BASE + AZX_REG_ML_LCAP); bus 520 sound/pci/hda/hda_intel.c struct hdac_bus *bus = azx_bus(chip); bus 528 sound/pci/hda/hda_intel.c val = readl(bus->mlcap + AZX_ML_BASE + AZX_REG_ML_LCTL); bus 531 sound/pci/hda/hda_intel.c writel(val, bus->mlcap + AZX_ML_BASE + AZX_REG_ML_LCTL); bus 535 sound/pci/hda/hda_intel.c if (((readl(bus->mlcap + AZX_ML_BASE + AZX_REG_ML_LCTL)) & bus 547 sound/pci/hda/hda_intel.c struct hdac_bus *bus = azx_bus(chip); bus 552 sound/pci/hda/hda_intel.c val = readl(bus->mlcap + AZX_ML_BASE + AZX_REG_ML_LCTL); bus 574 sound/pci/hda/hda_intel.c writel(val, bus->mlcap + AZX_ML_BASE + AZX_REG_ML_LCTL); bus 584 sound/pci/hda/hda_intel.c struct hdac_bus *bus = azx_bus(chip); bus 588 sound/pci/hda/hda_intel.c snd_hdac_set_codec_wakeup(bus, true); bus 601 sound/pci/hda/hda_intel.c snd_hdac_set_codec_wakeup(bus, false); bus 607 sound/pci/hda/hda_intel.c if (bus->mlcap != NULL) bus 727 sound/pci/hda/hda_intel.c struct hdac_bus *bus = azx_bus(chip); bus 740 sound/pci/hda/hda_intel.c spin_lock_irq(&bus->reg_lock); bus 741 sound/pci/hda/hda_intel.c list_for_each_entry(s, &bus->stream_list, list) { bus 750 sound/pci/hda/hda_intel.c spin_unlock(&bus->reg_lock); bus 752 sound/pci/hda/hda_intel.c spin_lock(&bus->reg_lock); bus 758 sound/pci/hda/hda_intel.c spin_unlock_irq(&bus->reg_lock); bus 768 sound/pci/hda/hda_intel.c struct hdac_bus *bus = azx_bus(chip); bus 771 sound/pci/hda/hda_intel.c spin_lock_irq(&bus->reg_lock); bus 772 sound/pci/hda/hda_intel.c list_for_each_entry(s, &bus->stream_list, list) { bus 776 sound/pci/hda/hda_intel.c spin_unlock_irq(&bus->reg_lock); bus 781 sound/pci/hda/hda_intel.c struct hdac_bus *bus = azx_bus(chip); bus 793 sound/pci/hda/hda_intel.c bus->irq = chip->pci->irq; bus 955 sound/pci/hda/hda_intel.c snd_hda_set_power_save(&chip->bus, power_save * 1000); bus 989 sound/pci/hda/hda_intel.c struct hdac_bus *bus = azx_bus(chip); bus 995 sound/pci/hda/hda_intel.c snd_hdac_i915_set_bclk(bus); bus 1004 sound/pci/hda/hda_intel.c list_for_each_codec(codec, &chip->bus) bus 1020 sound/pci/hda/hda_intel.c struct hdac_bus *bus; bus 1026 sound/pci/hda/hda_intel.c bus = azx_bus(chip); bus 1029 sound/pci/hda/hda_intel.c if (bus->irq >= 0) { bus 1030 sound/pci/hda/hda_intel.c free_irq(bus->irq, chip); bus 1031 sound/pci/hda/hda_intel.c bus->irq = -1; bus 1210 sound/pci/hda/hda_intel.c list_for_each_codec(codec, &chip->bus) { bus 1221 sound/pci/hda/hda_intel.c if (snd_hda_lock_devices(&chip->bus)) bus 1225 sound/pci/hda/hda_intel.c snd_hda_unlock_devices(&chip->bus); bus 1228 sound/pci/hda/hda_intel.c list_for_each_codec(codec, &chip->bus) { bus 1247 sound/pci/hda/hda_intel.c if (snd_hda_lock_devices(&chip->bus)) bus 1249 sound/pci/hda/hda_intel.c snd_hda_unlock_devices(&chip->bus); bus 1263 sound/pci/hda/hda_intel.c list_for_each_codec(codec, &chip->bus) bus 1278 sound/pci/hda/hda_intel.c chip->bus.keep_power = 0; bus 1296 sound/pci/hda/hda_intel.c chip->bus.keep_power = parent ? !pci_pr3_present(parent) : 1; bus 1341 sound/pci/hda/hda_intel.c struct hdac_bus *bus = azx_bus(chip); bus 1357 sound/pci/hda/hda_intel.c snd_hda_unlock_devices(&chip->bus); bus 1362 sound/pci/hda/hda_intel.c if (bus->chip_init) { bus 1368 sound/pci/hda/hda_intel.c if (bus->irq >= 0) bus 1369 sound/pci/hda/hda_intel.c free_irq(bus->irq, (void*)chip); bus 1372 sound/pci/hda/hda_intel.c iounmap(bus->remap_addr); bus 1376 sound/pci/hda/hda_intel.c snd_hdac_bus_exit(bus); bus 1388 sound/pci/hda/hda_intel.c snd_hdac_i915_exit(bus); bus 1396 sound/pci/hda/hda_intel.c struct hdac_bus *bus = azx_bus(chip); bus 1398 sound/pci/hda/hda_intel.c chip->bus.shutdown = 1; bus 1399 sound/pci/hda/hda_intel.c cancel_work_sync(&bus->unsol_work); bus 1424 sound/pci/hda/hda_intel.c p = pci_get_domain_bus_and_slot(pci_domain_nr(pci->bus), bus 1425 sound/pci/hda/hda_intel.c pci->bus->number, 0); bus 1776 sound/pci/hda/hda_intel.c chip->bus.needs_damn_long_delay = 1; bus 1799 sound/pci/hda/hda_intel.c struct hdac_bus *bus = azx_bus(chip); bus 1819 sound/pci/hda/hda_intel.c bus->addr = pci_resource_start(pci, 0); bus 1820 sound/pci/hda/hda_intel.c bus->remap_addr = pci_ioremap_bar(pci, 0); bus 1821 sound/pci/hda/hda_intel.c if (bus->remap_addr == NULL) { bus 1827 sound/pci/hda/hda_intel.c snd_hdac_bus_parse_capabilities(bus); bus 1838 sound/pci/hda/hda_intel.c if (bus->ppcap && boot_cpu_has(X86_FEATURE_ART)) bus 1852 sound/pci/hda/hda_intel.c synchronize_irq(bus->irq); bus 1954 sound/pci/hda/hda_intel.c snd_hdac_i915_set_bclk(bus); bus 1972 sound/pci/hda/hda_intel.c card->shortname, bus->addr, bus->irq); bus 1997 sound/pci/hda/hda_intel.c struct hdac_bus *bus = azx_bus(chip); bus 2000 sound/pci/hda/hda_intel.c free_irq(bus->irq, chip); bus 2001 sound/pci/hda/hda_intel.c bus->irq = -1; bus 2212 sound/pci/hda/hda_intel.c snd_hda_set_power_save(&chip->bus, val * 1000); bus 2224 sound/pci/hda/hda_intel.c struct hdac_bus *bus = azx_bus(chip); bus 2229 sound/pci/hda/hda_intel.c to_hda_bus(bus)->bus_probing = 1; bus 2234 sound/pci/hda/hda_intel.c err = snd_hdac_i915_init(bus); bus 2272 sound/pci/hda/hda_intel.c if (bus->codec_mask) { bus 2280 sound/pci/hda/hda_intel.c err = snd_hda_load_patch(&chip->bus, chip->fw->size, bus 2290 sound/pci/hda/hda_intel.c if (bus->codec_mask && !(probe_only[dev] & 1)) { bus 2322 sound/pci/hda/hda_intel.c to_hda_bus(bus)->bus_probing = 0; bus 133 sound/pci/hda/hda_jack.c if (!codec->bus->shutdown && jack->jack) bus 540 sound/pci/hda/hda_sysfs.c static void parse_codec_mode(char *buf, struct hda_bus *bus, bus 548 sound/pci/hda/hda_sysfs.c list_for_each_codec(codec, bus) { bus 563 sound/pci/hda/hda_sysfs.c static void parse_pincfg_mode(char *buf, struct hda_bus *bus, bus 569 sound/pci/hda/hda_sysfs.c static void parse_verb_mode(char *buf, struct hda_bus *bus, bus 575 sound/pci/hda/hda_sysfs.c static void parse_hint_mode(char *buf, struct hda_bus *bus, bus 581 sound/pci/hda/hda_sysfs.c static void parse_model_mode(char *buf, struct hda_bus *bus, bus 588 sound/pci/hda/hda_sysfs.c static void parse_chip_name_mode(char *buf, struct hda_bus *bus, bus 595 sound/pci/hda/hda_sysfs.c static void parse_##name##_mode(char *buf, struct hda_bus *bus, \ bus 611 sound/pci/hda/hda_sysfs.c void (*parser)(char *buf, struct hda_bus *bus, struct hda_codec **retc); bus 657 sound/pci/hda/hda_sysfs.c static int parse_line_mode(char *buf, struct hda_bus *bus) bus 715 sound/pci/hda/hda_sysfs.c int snd_hda_load_patch(struct hda_bus *bus, size_t fw_size, const void *fw_buf) bus 727 sound/pci/hda/hda_sysfs.c line_mode = parse_line_mode(buf, bus); bus 730 sound/pci/hda/hda_sysfs.c patch_items[line_mode].parser(buf, bus, &codec); bus 169 sound/pci/hda/hda_tegra.c struct hdac_bus *bus = azx_bus(chip); bus 173 sound/pci/hda/hda_tegra.c synchronize_irq(bus->irq); bus 210 sound/pci/hda/hda_tegra.c chip->bus.shutdown = 1; bus 238 sound/pci/hda/hda_tegra.c struct hdac_bus *bus = azx_bus(chip); bus 247 sound/pci/hda/hda_tegra.c bus->remap_addr = hda->regs + HDA_BAR0; bus 248 sound/pci/hda/hda_tegra.c bus->addr = res->start + HDA_BAR0; bus 280 sound/pci/hda/hda_tegra.c struct hdac_bus *bus = azx_bus(chip); bus 300 sound/pci/hda/hda_tegra.c bus->irq = irq_id; bus 302 sound/pci/hda/hda_tegra.c synchronize_irq(bus->irq); bus 339 sound/pci/hda/hda_tegra.c if (!bus->codec_mask) { bus 357 sound/pci/hda/hda_tegra.c card->shortname, bus->addr, bus->irq); bus 400 sound/pci/hda/hda_tegra.c chip->bus.needs_damn_long_delay = 1; bus 401 sound/pci/hda/hda_tegra.c chip->bus.core.aligned_mmio = 1; bus 490 sound/pci/hda/hda_tegra.c snd_hda_set_power_save(&chip->bus, power_save * 1000); bus 56 sound/pci/hda/patch_ca0110.c codec->bus->needs_damn_long_delay = 1; bus 8439 sound/pci/hda/patch_ca0132.c pci_iounmap(codec->bus->pci, spec->mem_base); bus 8765 sound/pci/hda/patch_ca0132.c quirk = snd_pci_quirk_lookup(codec->bus->pci, ca0132_quirks); bus 8838 sound/pci/hda/patch_ca0132.c spec->mem_base = pci_iomap(codec->bus->pci, 2, 0xC20); bus 1056 sound/pci/hda/patch_conexant.c if (!codec->bus->core.sync_write) { bus 1059 sound/pci/hda/patch_conexant.c codec->bus->core.sync_write = 1; bus 1060 sound/pci/hda/patch_conexant.c codec->bus->allow_bus_reset = 1; bus 525 sound/pci/hda/patch_hdmi.c if (!per_pin->codec->bus->shutdown) { bus 1935 sound/pci/hda/patch_hdmi.c stripe = snd_hdac_get_stream_stripe_ctl(&codec->bus->core, bus 2330 sound/pci/hda/patch_hdmi.c snd_hdac_acomp_exit(&codec->bus->core); bus 2332 sound/pci/hda/patch_hdmi.c snd_hdac_acomp_register_notifier(&codec->bus->core, NULL); bus 2503 sound/pci/hda/patch_hdmi.c struct hdac_bus *bus = data; bus 2506 sound/pci/hda/patch_hdmi.c if (!dev_is_pci(dev) || !dev_is_pci(bus->dev)) bus 2508 sound/pci/hda/patch_hdmi.c master = to_pci_dev(bus->dev); bus 2510 sound/pci/hda/patch_hdmi.c return master->bus == pci->bus; bus 2568 sound/pci/hda/patch_hdmi.c if (!snd_hdac_acomp_init(&codec->bus->core, &spec->drm_audio_ops, bus 2571 sound/pci/hda/patch_hdmi.c codec->bus->keep_power = 0; bus 2739 sound/pci/hda/patch_hdmi.c snd_hdac_i915_set_bclk(&codec->bus->core); bus 2756 sound/pci/hda/patch_hdmi.c snd_hdac_acomp_register_notifier(&codec->bus->core, bus 2792 sound/pci/hda/patch_hdmi.c if (!codec->bus->core.audio_component) { bus 496 sound/pci/hda/patch_realtek.c if (codec->bus->shutdown) bus 620 sound/pci/hda/patch_realtek.c if (!codec->bus->pci) bus 623 sound/pci/hda/patch_realtek.c if (ass != codec->bus->pci->subsystem_device && (ass & 1)) bus 710 sound/pci/hda/patch_realtek.c if (codec->bus->pci && bus 711 sound/pci/hda/patch_realtek.c ass != codec->bus->pci->subsystem_device && (ass & 1)) bus 1026 sound/pci/hda/patch_realtek.c if (!codec->bus->pci) bus 1031 sound/pci/hda/patch_realtek.c if (q->pci_subvendor != codec->bus->pci->subsystem_vendor) bus 1034 sound/pci/hda/patch_realtek.c q->pci_subdevice == codec->bus->pci->subsystem_device) bus 1091 sound/pci/hda/patch_realtek.c q = snd_pci_quirk_lookup(codec->bus->pci, beep_white_list); bus 8254 sound/pci/hda/patch_realtek.c if (codec->bus->pci && bus 8255 sound/pci/hda/patch_realtek.c codec->bus->pci->subsystem_vendor == 0x1025 && bus 8261 sound/pci/hda/patch_realtek.c if (codec->bus->pci && bus 8262 sound/pci/hda/patch_realtek.c codec->bus->pci->subsystem_vendor == 0x17aa && bus 8263 sound/pci/hda/patch_realtek.c codec->bus->pci->subsystem_device == 0x21f3) bus 9507 sound/pci/hda/patch_realtek.c codec->bus->pci && codec->bus->pci->subsystem_vendor == 0x1025 && bus 4911 sound/pci/hda/patch_sigmatel.c codec->bus->needs_damn_long_delay = 1; bus 125 sound/pci/ice1712/delta.c struct snd_ice1712 *ice = device->bus->private_data; bus 142 sound/pci/ice1712/delta.c struct snd_ice1712 *ice = device->bus->private_data; bus 156 sound/pci/ice1712/delta.c static int ap_cs8427_probeaddr(struct snd_i2c_bus *bus, unsigned short addr) bus 42 sound/pci/ice1712/ews.c static void ewx_i2c_setlines(struct snd_i2c_bus *bus, int clk, int data) bus 44 sound/pci/ice1712/ews.c struct snd_ice1712 *ice = bus->private_data; bus 54 sound/pci/ice1712/ews.c static int ewx_i2c_getclock(struct snd_i2c_bus *bus) bus 56 sound/pci/ice1712/ews.c struct snd_ice1712 *ice = bus->private_data; bus 60 sound/pci/ice1712/ews.c static int ewx_i2c_getdata(struct snd_i2c_bus *bus, int ack) bus 62 sound/pci/ice1712/ews.c struct snd_ice1712 *ice = bus->private_data; bus 77 sound/pci/ice1712/ews.c static void ewx_i2c_start(struct snd_i2c_bus *bus) bus 79 sound/pci/ice1712/ews.c struct snd_ice1712 *ice = bus->private_data; bus 96 sound/pci/ice1712/ews.c static void ewx_i2c_stop(struct snd_i2c_bus *bus) bus 98 sound/pci/ice1712/ews.c struct snd_ice1712 *ice = bus->private_data; bus 102 sound/pci/ice1712/ews.c static void ewx_i2c_direction(struct snd_i2c_bus *bus, int clock, int data) bus 104 sound/pci/ice1712/ews.c struct snd_ice1712 *ice = bus->private_data; bus 81 sound/pci/ice1712/revo.c static void revo_i2c_start(struct snd_i2c_bus *bus) bus 83 sound/pci/ice1712/revo.c struct snd_ice1712 *ice = bus->private_data; bus 87 sound/pci/ice1712/revo.c static void revo_i2c_stop(struct snd_i2c_bus *bus) bus 89 sound/pci/ice1712/revo.c struct snd_ice1712 *ice = bus->private_data; bus 93 sound/pci/ice1712/revo.c static void revo_i2c_direction(struct snd_i2c_bus *bus, int clock, int data) bus 95 sound/pci/ice1712/revo.c struct snd_ice1712 *ice = bus->private_data; bus 110 sound/pci/ice1712/revo.c static void revo_i2c_setlines(struct snd_i2c_bus *bus, int clk, int data) bus 112 sound/pci/ice1712/revo.c struct snd_ice1712 *ice = bus->private_data; bus 125 sound/pci/ice1712/revo.c static int revo_i2c_getdata(struct snd_i2c_bus *bus, int ack) bus 127 sound/pci/ice1712/revo.c struct snd_ice1712 *ice = bus->private_data; bus 1659 sound/pci/intel8x0.c static void snd_intel8x0_mixer_free_ac97_bus(struct snd_ac97_bus *bus) bus 1661 sound/pci/intel8x0.c struct intel8x0 *chip = bus->private_data; bus 801 sound/pci/intel8x0m.c static void snd_intel8x0m_mixer_free_ac97_bus(struct snd_ac97_bus *bus) bus 803 sound/pci/intel8x0m.c struct intel8x0m *chip = bus->private_data; bus 315 sound/pci/oxygen/oxygen_lib.c if (!pci->bus || !pci->bus->self) bus 317 sound/pci/oxygen/oxygen_lib.c bridge = pci->bus->self; bus 1006 sound/pci/sis7019.c struct snd_ac97_bus *bus; bus 1017 sound/pci/sis7019.c rc = snd_ac97_bus(sis->card, 0, &ops, NULL, &bus); bus 1019 sound/pci/sis7019.c rc = snd_ac97_mixer(bus, &ac97, &sis->ac97[0]); bus 1022 sound/pci/sis7019.c rc = snd_ac97_mixer(bus, &ac97, &sis->ac97[1]); bus 1025 sound/pci/sis7019.c rc = snd_ac97_mixer(bus, &ac97, &sis->ac97[2]); bus 1791 sound/pci/via82xx.c static void snd_via82xx_mixer_free_ac97_bus(struct snd_ac97_bus *bus) bus 1793 sound/pci/via82xx.c struct via82xx *chip = bus->private_data; bus 866 sound/pci/via82xx_modem.c static void snd_via82xx_mixer_free_ac97_bus(struct snd_ac97_bus *bus) bus 868 sound/pci/via82xx_modem.c struct via82xx_modem *chip = bus->private_data; bus 1780 sound/pci/ymfpci/ymfpci_main.c static void snd_ymfpci_mixer_free_ac97_bus(struct snd_ac97_bus *bus) bus 1782 sound/pci/ymfpci/ymfpci_main.c struct snd_ymfpci *chip = bus->private_data; bus 60 sound/soc/au1x/psc-ac97.c struct snd_soc_card *c = x->bus->card->private_data; bus 317 sound/soc/codecs/hdac_hda.c hlink = snd_hdac_ext_bus_get_link(hdev->bus, dev_name(&hdev->dev)); bus 323 sound/soc/codecs/hdac_hda.c snd_hdac_ext_bus_link_get(hdev->bus, hlink); bus 325 sound/soc/codecs/hdac_hda.c ret = snd_hda_codec_device_new(hcodec->bus, component->card->snd_card, bus 344 sound/soc/codecs/hdac_hda.c hcodec->bus->card = dapm->card->snd_card; bus 396 sound/soc/codecs/hdac_hda.c snd_hdac_ext_bus_link_put(hdev->bus, hlink); bus 407 sound/soc/codecs/hdac_hda.c hlink = snd_hdac_ext_bus_get_link(hdev->bus, dev_name(&hdev->dev)); bus 414 sound/soc/codecs/hdac_hda.c snd_hdac_ext_bus_link_put(hdev->bus, hlink); bus 470 sound/soc/codecs/hdac_hda.c hlink = snd_hdac_ext_bus_get_link(hdev->bus, dev_name(&hdev->dev)); bus 475 sound/soc/codecs/hdac_hda.c snd_hdac_ext_bus_link_get(hdev->bus, hlink); bus 491 sound/soc/codecs/hdac_hda.c snd_hdac_ext_bus_link_put(hdev->bus, hlink); bus 1869 sound/soc/codecs/hdac_hdmi.c hlink = snd_hdac_ext_bus_get_link(hdev->bus, dev_name(&hdev->dev)); bus 1875 sound/soc/codecs/hdac_hdmi.c snd_hdac_ext_bus_link_get(hdev->bus, hlink); bus 1882 sound/soc/codecs/hdac_hdmi.c ret = snd_hdac_acomp_register_notifier(hdev->bus, &aops); bus 1920 sound/soc/codecs/hdac_hdmi.c ret = snd_hdac_acomp_register_notifier(hdev->bus, NULL); bus 2053 sound/soc/codecs/hdac_hdmi.c hlink = snd_hdac_ext_bus_get_link(hdev->bus, dev_name(&hdev->dev)); bus 2059 sound/soc/codecs/hdac_hdmi.c snd_hdac_ext_bus_link_get(hdev->bus, hlink); bus 2092 sound/soc/codecs/hdac_hdmi.c snd_hdac_display_power(hdev->bus, hdev->addr, true); bus 2106 sound/soc/codecs/hdac_hdmi.c snd_hdac_ext_bus_link_put(hdev->bus, hlink); bus 2125 sound/soc/codecs/hdac_hdmi.c snd_hdac_display_power(hdev->bus, hdev->addr, false); bus 2134 sound/soc/codecs/hdac_hdmi.c struct hdac_bus *bus = hdev->bus; bus 2140 sound/soc/codecs/hdac_hdmi.c if (!bus) bus 2155 sound/soc/codecs/hdac_hdmi.c hlink = snd_hdac_ext_bus_get_link(bus, dev_name(dev)); bus 2162 sound/soc/codecs/hdac_hdmi.c snd_hdac_ext_bus_link_put(bus, hlink); bus 2164 sound/soc/codecs/hdac_hdmi.c snd_hdac_display_power(bus, hdev->addr, false); bus 2172 sound/soc/codecs/hdac_hdmi.c struct hdac_bus *bus = hdev->bus; bus 2178 sound/soc/codecs/hdac_hdmi.c if (!bus) bus 2181 sound/soc/codecs/hdac_hdmi.c hlink = snd_hdac_ext_bus_get_link(bus, dev_name(dev)); bus 2187 sound/soc/codecs/hdac_hdmi.c snd_hdac_ext_bus_link_get(bus, hlink); bus 2190 sound/soc/codecs/hdac_hdmi.c snd_hdac_display_power(bus, hdev->addr, true); bus 53 sound/soc/intel/skylake/skl-messages.c struct hdac_bus *bus = dev_get_drvdata(dev); bus 54 sound/soc/intel/skylake/skl-messages.c struct hdac_stream *stream = snd_hdac_get_stream(bus, bus 63 sound/soc/intel/skylake/skl-messages.c snd_hdac_ext_stream_spbcap_enable(bus, enable, stream->index); bus 66 sound/soc/intel/skylake/skl-messages.c snd_hdac_ext_stream_set_spib(bus, estream, size); bus 74 sound/soc/intel/skylake/skl-messages.c struct hdac_bus *bus = dev_get_drvdata(dev); bus 80 sound/soc/intel/skylake/skl-messages.c if (!bus) bus 86 sound/soc/intel/skylake/skl-messages.c estream = snd_hdac_ext_stream_assign(bus, &substream, bus 105 sound/soc/intel/skylake/skl-messages.c struct hdac_bus *bus = dev_get_drvdata(dev); bus 108 sound/soc/intel/skylake/skl-messages.c if (!bus) bus 111 sound/soc/intel/skylake/skl-messages.c stream = snd_hdac_get_stream(bus, bus 124 sound/soc/intel/skylake/skl-messages.c struct hdac_bus *bus = dev_get_drvdata(dev); bus 128 sound/soc/intel/skylake/skl-messages.c if (!bus) bus 131 sound/soc/intel/skylake/skl-messages.c stream = snd_hdac_get_stream(bus, bus 254 sound/soc/intel/skylake/skl-messages.c struct hdac_bus *bus = skl_to_bus(skl); bus 256 sound/soc/intel/skylake/skl-messages.c int irq = bus->irq; bus 262 sound/soc/intel/skylake/skl-messages.c snd_hdac_ext_bus_ppcap_enable(bus, true); bus 263 sound/soc/intel/skylake/skl-messages.c snd_hdac_ext_bus_ppcap_int_enable(bus, true); bus 268 sound/soc/intel/skylake/skl-messages.c dev_err(bus->dev, "ioremap error\n"); bus 279 sound/soc/intel/skylake/skl-messages.c ret = ops->init(bus->dev, mmio_base, irq, bus 303 sound/soc/intel/skylake/skl-messages.c dev_dbg(bus->dev, "dsp registration status=%d\n", ret); bus 318 sound/soc/intel/skylake/skl-messages.c struct hdac_bus *bus = skl_to_bus(skl); bus 321 sound/soc/intel/skylake/skl-messages.c snd_hdac_ext_bus_ppcap_int_enable(bus, false); bus 323 sound/soc/intel/skylake/skl-messages.c skl->dsp_ops->cleanup(bus->dev, skl); bus 362 sound/soc/intel/skylake/skl-messages.c struct hdac_bus *bus = skl_to_bus(skl); bus 366 sound/soc/intel/skylake/skl-messages.c if (!bus->ppcap) bus 374 sound/soc/intel/skylake/skl-messages.c snd_hdac_ext_bus_ppcap_int_enable(bus, false); bus 375 sound/soc/intel/skylake/skl-messages.c snd_hdac_ext_bus_ppcap_enable(bus, false); bus 382 sound/soc/intel/skylake/skl-messages.c struct hdac_bus *bus = skl_to_bus(skl); bus 386 sound/soc/intel/skylake/skl-messages.c if (!bus->ppcap) bus 390 sound/soc/intel/skylake/skl-messages.c snd_hdac_ext_bus_ppcap_enable(bus, true); bus 391 sound/soc/intel/skylake/skl-messages.c snd_hdac_ext_bus_ppcap_int_enable(bus, true); bus 88 sound/soc/intel/skylake/skl-nhlt.c struct hdac_bus *bus = skl_to_bus(skl); bus 89 sound/soc/intel/skylake/skl-nhlt.c struct device *dev = bus->dev; bus 136 sound/soc/intel/skylake/skl-nhlt.c struct hdac_bus *bus = skl_to_bus(skl); bus 137 sound/soc/intel/skylake/skl-nhlt.c struct device *dev = bus->dev; bus 156 sound/soc/intel/skylake/skl-nhlt.c struct hdac_bus *bus = pci_get_drvdata(pci); bus 157 sound/soc/intel/skylake/skl-nhlt.c struct skl_dev *skl = bus_to_skl(bus); bus 66 sound/soc/intel/skylake/skl-pcm.c struct hdac_bus *bus = hstream->bus; bus 67 sound/soc/intel/skylake/skl-pcm.c return bus; bus 70 sound/soc/intel/skylake/skl-pcm.c static int skl_substream_alloc_pages(struct hdac_bus *bus, bus 83 sound/soc/intel/skylake/skl-pcm.c static int skl_substream_free_pages(struct hdac_bus *bus, bus 89 sound/soc/intel/skylake/skl-pcm.c static void skl_set_pcm_constrains(struct hdac_bus *bus, bus 99 sound/soc/intel/skylake/skl-pcm.c static enum hdac_ext_stream_type skl_get_host_stream_type(struct hdac_bus *bus) bus 101 sound/soc/intel/skylake/skl-pcm.c if (bus->ppcap) bus 117 sound/soc/intel/skylake/skl-pcm.c struct hdac_bus *bus = dev_get_drvdata(dai->dev); bus 119 sound/soc/intel/skylake/skl-pcm.c struct skl_dev *skl = bus_to_skl(bus); bus 134 sound/soc/intel/skylake/skl-pcm.c struct hdac_bus *bus = dev_get_drvdata(dev); bus 135 sound/soc/intel/skylake/skl-pcm.c struct skl_dev *skl = bus_to_skl(bus); bus 141 sound/soc/intel/skylake/skl-pcm.c hstream = snd_hdac_get_stream(bus, params->stream, bus 147 sound/soc/intel/skylake/skl-pcm.c snd_hdac_ext_stream_decouple(bus, stream, true); bus 165 sound/soc/intel/skylake/skl-pcm.c snd_hdac_ext_stream_decouple(bus, stream, false); bus 167 sound/soc/intel/skylake/skl-pcm.c snd_hdac_ext_stream_decouple(bus, stream, true); bus 182 sound/soc/intel/skylake/skl-pcm.c struct hdac_bus *bus = dev_get_drvdata(dev); bus 189 sound/soc/intel/skylake/skl-pcm.c hstream = snd_hdac_get_stream(bus, params->stream, bus 195 sound/soc/intel/skylake/skl-pcm.c snd_hdac_ext_stream_decouple(bus, stream, true); bus 208 sound/soc/intel/skylake/skl-pcm.c list_for_each_entry(link, &bus->hlink_list, list) { bus 223 sound/soc/intel/skylake/skl-pcm.c struct hdac_bus *bus = dev_get_drvdata(dai->dev); bus 232 sound/soc/intel/skylake/skl-pcm.c stream = snd_hdac_ext_stream_assign(bus, substream, bus 233 sound/soc/intel/skylake/skl-pcm.c skl_get_host_stream_type(bus)); bus 237 sound/soc/intel/skylake/skl-pcm.c skl_set_pcm_constrains(bus, runtime); bus 309 sound/soc/intel/skylake/skl-pcm.c struct hdac_bus *bus = dev_get_drvdata(dai->dev); bus 317 sound/soc/intel/skylake/skl-pcm.c ret = skl_substream_alloc_pages(bus, substream, bus 351 sound/soc/intel/skylake/skl-pcm.c struct hdac_bus *bus = dev_get_drvdata(dai->dev); bus 353 sound/soc/intel/skylake/skl-pcm.c struct skl_dev *skl = bus_to_skl(bus); bus 358 sound/soc/intel/skylake/skl-pcm.c snd_hdac_ext_stream_release(stream, skl_get_host_stream_type(bus)); bus 388 sound/soc/intel/skylake/skl-pcm.c struct hdac_bus *bus = dev_get_drvdata(dai->dev); bus 408 sound/soc/intel/skylake/skl-pcm.c return skl_substream_free_pages(bus, substream); bus 428 sound/soc/intel/skylake/skl-pcm.c struct hdac_bus *bus = get_bus_ctx(substream); bus 457 sound/soc/intel/skylake/skl-pcm.c spin_lock_irqsave(&bus->reg_lock, cookie); bus 466 sound/soc/intel/skylake/skl-pcm.c spin_unlock_irqrestore(&bus->reg_lock, cookie); bus 476 sound/soc/intel/skylake/skl-pcm.c struct hdac_bus *bus = get_bus_ctx(substream); bus 498 sound/soc/intel/skylake/skl-pcm.c snd_hdac_ext_stream_drsm_enable(bus, true, bus 500 sound/soc/intel/skylake/skl-pcm.c snd_hdac_ext_stream_set_dpibr(bus, stream, bus 535 sound/soc/intel/skylake/skl-pcm.c stream->dpib = readl(bus->remap_addr + bus 542 sound/soc/intel/skylake/skl-pcm.c snd_hdac_ext_stream_decouple(bus, stream, false); bus 558 sound/soc/intel/skylake/skl-pcm.c struct hdac_bus *bus = dev_get_drvdata(dai->dev); bus 566 sound/soc/intel/skylake/skl-pcm.c link_dev = snd_hdac_ext_stream_assign(bus, substream, bus 573 sound/soc/intel/skylake/skl-pcm.c link = snd_hdac_ext_bus_get_link(bus, codec_dai->component->name); bus 621 sound/soc/intel/skylake/skl-pcm.c struct hdac_bus *bus = get_bus_ctx(substream); bus 637 sound/soc/intel/skylake/skl-pcm.c snd_hdac_ext_stream_decouple(bus, stream, false); bus 649 sound/soc/intel/skylake/skl-pcm.c struct hdac_bus *bus = dev_get_drvdata(dai->dev); bus 660 sound/soc/intel/skylake/skl-pcm.c link = snd_hdac_ext_bus_get_link(bus, rtd->codec_dai->component->name); bus 1100 sound/soc/intel/skylake/skl-pcm.c struct hdac_bus *bus = get_bus_ctx(substream); bus 1111 sound/soc/intel/skylake/skl-pcm.c dev_dbg(bus->dev, "In %s cmd=%d\n", __func__, cmd); bus 1141 sound/soc/intel/skylake/skl-pcm.c spin_lock_irqsave(&bus->reg_lock, cookie); bus 1155 sound/soc/intel/skylake/skl-pcm.c spin_unlock_irqrestore(&bus->reg_lock, cookie); bus 1159 sound/soc/intel/skylake/skl-pcm.c spin_lock_irqsave(&bus->reg_lock, cookie); bus 1165 sound/soc/intel/skylake/skl-pcm.c spin_unlock_irqrestore(&bus->reg_lock, cookie); bus 1173 sound/soc/intel/skylake/skl-pcm.c struct hdac_bus *bus = get_bus_ctx(substream); bus 1175 sound/soc/intel/skylake/skl-pcm.c if (!bus->ppcap) bus 1185 sound/soc/intel/skylake/skl-pcm.c struct hdac_bus *bus = get_bus_ctx(substream); bus 1210 sound/soc/intel/skylake/skl-pcm.c pos = readl(bus->remap_addr + AZX_REG_VS_SDXDPIB_XBASE + bus 1215 sound/soc/intel/skylake/skl-pcm.c readl(bus->remap_addr + bus 1300 sound/soc/intel/skylake/skl-pcm.c struct hdac_bus *bus = dev_get_drvdata(dai->dev); bus 1303 sound/soc/intel/skylake/skl-pcm.c struct skl_dev *skl = bus_to_skl(bus); bus 1409 sound/soc/intel/skylake/skl-pcm.c struct hdac_bus *bus = dev_get_drvdata(component->dev); bus 1410 sound/soc/intel/skylake/skl-pcm.c struct skl_dev *skl = bus_to_skl(bus); bus 1415 sound/soc/intel/skylake/skl-pcm.c if (bus->ppcap) { bus 1421 sound/soc/intel/skylake/skl-pcm.c ret = skl_tplg_init(component, bus); bus 1463 sound/soc/intel/skylake/skl-pcm.c struct hdac_bus *bus = dev_get_drvdata(component->dev); bus 1464 sound/soc/intel/skylake/skl-pcm.c struct skl_dev *skl = bus_to_skl(bus); bus 1466 sound/soc/intel/skylake/skl-pcm.c skl_tplg_exit(component, bus); bus 1486 sound/soc/intel/skylake/skl-pcm.c struct hdac_bus *bus = dev_get_drvdata(dev); bus 1487 sound/soc/intel/skylake/skl-pcm.c struct skl_dev *skl = bus_to_skl(bus); bus 1520 sound/soc/intel/skylake/skl-pcm.c struct hdac_bus *bus = dev_get_drvdata(dev); bus 1521 sound/soc/intel/skylake/skl-pcm.c struct skl_dev *skl = bus_to_skl(bus); bus 818 sound/soc/intel/skylake/skl-topology.c struct hdac_bus *bus = skl_to_bus(skl); bus 825 sound/soc/intel/skylake/skl-topology.c params = devm_kzalloc(bus->dev, size, GFP_KERNEL); bus 835 sound/soc/intel/skylake/skl-topology.c devm_kfree(bus->dev, params); bus 844 sound/soc/intel/skylake/skl-topology.c devm_kfree(bus->dev, bc->params); bus 2890 sound/soc/intel/skylake/skl-topology.c struct hdac_bus *bus = snd_soc_component_get_drvdata(cmpnt); bus 2891 sound/soc/intel/skylake/skl-topology.c struct skl_dev *skl = bus_to_skl(bus); bus 2897 sound/soc/intel/skylake/skl-topology.c mconfig = devm_kzalloc(bus->dev, sizeof(*mconfig), GFP_KERNEL); bus 2903 sound/soc/intel/skylake/skl-topology.c mconfig->module = devm_kzalloc(bus->dev, bus 2918 sound/soc/intel/skylake/skl-topology.c ret = skl_tplg_get_pvt_data(tplg_w, skl, bus->dev, mconfig); bus 2926 sound/soc/intel/skylake/skl-topology.c dev_dbg(bus->dev, "ASoC: No event handler required\n"); bus 2935 sound/soc/intel/skylake/skl-topology.c dev_err(bus->dev, "%s: No matching event handlers found for %d\n", bus 2998 sound/soc/intel/skylake/skl-topology.c struct hdac_bus *bus = snd_soc_component_get_drvdata(cmpnt); bus 3009 sound/soc/intel/skylake/skl-topology.c bus->dev, sb, tplg_bc); bus 3019 sound/soc/intel/skylake/skl-topology.c return skl_init_enum_data(bus->dev, se, bus 3025 sound/soc/intel/skylake/skl-topology.c dev_dbg(bus->dev, "Control load not supported %d:%d:%d\n", bus 3473 sound/soc/intel/skylake/skl-topology.c struct hdac_bus *bus = snd_soc_component_get_drvdata(cmpnt); bus 3474 sound/soc/intel/skylake/skl-topology.c struct skl_dev *skl = bus_to_skl(bus); bus 3480 sound/soc/intel/skylake/skl-topology.c skl_tplg_get_manifest_data(manifest, bus->dev, skl); bus 3483 sound/soc/intel/skylake/skl-topology.c dev_err(bus->dev, "Exceeding max Library count. Got:%d\n", bus 3559 sound/soc/intel/skylake/skl-topology.c int skl_tplg_init(struct snd_soc_component *component, struct hdac_bus *bus) bus 3563 sound/soc/intel/skylake/skl-topology.c struct skl_dev *skl = bus_to_skl(bus); bus 3566 sound/soc/intel/skylake/skl-topology.c ret = request_firmware(&fw, skl->tplg_name, bus->dev); bus 3568 sound/soc/intel/skylake/skl-topology.c dev_info(bus->dev, "tplg fw %s load failed with %d, falling back to dfw_sst.bin", bus 3570 sound/soc/intel/skylake/skl-topology.c ret = request_firmware(&fw, "dfw_sst.bin", bus->dev); bus 3572 sound/soc/intel/skylake/skl-topology.c dev_err(bus->dev, "Fallback tplg fw %s load failed with %d\n", bus 3584 sound/soc/intel/skylake/skl-topology.c dev_err(bus->dev, "tplg component load failed%d\n", ret); bus 3590 sound/soc/intel/skylake/skl-topology.c dev_err(bus->dev, "tplg create pipe widget list failed%d\n", bus 3603 sound/soc/intel/skylake/skl-topology.c void skl_tplg_exit(struct snd_soc_component *component, struct hdac_bus *bus) bus 3605 sound/soc/intel/skylake/skl-topology.c struct skl_dev *skl = bus_to_skl(bus); bus 443 sound/soc/intel/skylake/skl-topology.h struct hdac_bus *bus = dev_get_drvdata(dev); bus 445 sound/soc/intel/skylake/skl-topology.h return bus_to_skl(bus); bus 457 sound/soc/intel/skylake/skl-topology.h struct hdac_bus *bus); bus 57 sound/soc/intel/skylake/skl.c struct hdac_bus *bus = skl_to_bus(skl); bus 66 sound/soc/intel/skylake/skl.c dev_dbg(bus->dev, "Clearing TCSEL\n"); bus 106 sound/soc/intel/skylake/skl.c struct hdac_bus *bus = pci_get_drvdata(pci); bus 115 sound/soc/intel/skylake/skl.c snd_hdac_chip_updatel(bus, VS_EM2, AZX_REG_VS_EM2_L1SEN, val); bus 127 sound/soc/intel/skylake/skl.c static int skl_init_chip(struct hdac_bus *bus, bool full_reset) bus 132 sound/soc/intel/skylake/skl.c skl_enable_miscbdcge(bus->dev, false); bus 133 sound/soc/intel/skylake/skl.c ret = snd_hdac_bus_init_chip(bus, full_reset); bus 136 sound/soc/intel/skylake/skl.c list_for_each_entry(hlink, &bus->hlink_list, list) bus 139 sound/soc/intel/skylake/skl.c skl_enable_miscbdcge(bus->dev, true); bus 147 sound/soc/intel/skylake/skl.c struct hdac_bus *bus = pci_get_drvdata(pci); bus 151 sound/soc/intel/skylake/skl.c reg = snd_hdac_chip_readb(bus, VS_D0I3C); bus 155 sound/soc/intel/skylake/skl.c reg = snd_hdac_chip_readb(bus, VS_D0I3C); bus 160 sound/soc/intel/skylake/skl.c dev_err(bus->dev, "Before D0I3C update: D0I3C CIP timeout\n"); bus 169 sound/soc/intel/skylake/skl.c snd_hdac_chip_writeb(bus, VS_D0I3C, reg); bus 173 sound/soc/intel/skylake/skl.c reg = snd_hdac_chip_readb(bus, VS_D0I3C); bus 176 sound/soc/intel/skylake/skl.c reg = snd_hdac_chip_readb(bus, VS_D0I3C); bus 181 sound/soc/intel/skylake/skl.c dev_err(bus->dev, "After D0I3C update: D0I3C CIP timeout\n"); bus 185 sound/soc/intel/skylake/skl.c dev_dbg(bus->dev, "D0I3C register = 0x%x\n", bus 186 sound/soc/intel/skylake/skl.c snd_hdac_chip_readb(bus, VS_D0I3C)); bus 196 sound/soc/intel/skylake/skl.c static void skl_dum_set(struct hdac_bus *bus) bus 199 sound/soc/intel/skylake/skl.c if (!(snd_hdac_chip_readb(bus, GCTL) & AZX_GCTL_RESET)) { bus 200 sound/soc/intel/skylake/skl.c skl_enable_miscbdcge(bus->dev, false); bus 201 sound/soc/intel/skylake/skl.c snd_hdac_bus_exit_link_reset(bus); bus 202 sound/soc/intel/skylake/skl.c skl_enable_miscbdcge(bus->dev, true); bus 205 sound/soc/intel/skylake/skl.c snd_hdac_chip_updatel(bus, VS_EM2, AZX_VS_EM2_DUM, AZX_VS_EM2_DUM); bus 209 sound/soc/intel/skylake/skl.c static void skl_stream_update(struct hdac_bus *bus, struct hdac_stream *hstr) bus 216 sound/soc/intel/skylake/skl.c struct hdac_bus *bus = dev_id; bus 219 sound/soc/intel/skylake/skl.c if (!pm_runtime_active(bus->dev)) bus 222 sound/soc/intel/skylake/skl.c spin_lock(&bus->reg_lock); bus 224 sound/soc/intel/skylake/skl.c status = snd_hdac_chip_readl(bus, INTSTS); bus 226 sound/soc/intel/skylake/skl.c spin_unlock(&bus->reg_lock); bus 231 sound/soc/intel/skylake/skl.c status = snd_hdac_chip_readb(bus, RIRBSTS); bus 234 sound/soc/intel/skylake/skl.c snd_hdac_bus_update_rirb(bus); bus 235 sound/soc/intel/skylake/skl.c snd_hdac_chip_writeb(bus, RIRBSTS, RIRB_INT_MASK); bus 238 sound/soc/intel/skylake/skl.c spin_unlock(&bus->reg_lock); bus 240 sound/soc/intel/skylake/skl.c return snd_hdac_chip_readl(bus, INTSTS) ? IRQ_WAKE_THREAD : IRQ_HANDLED; bus 245 sound/soc/intel/skylake/skl.c struct hdac_bus *bus = dev_id; bus 248 sound/soc/intel/skylake/skl.c status = snd_hdac_chip_readl(bus, INTSTS); bus 250 sound/soc/intel/skylake/skl.c snd_hdac_bus_handle_stream_irq(bus, status, skl_stream_update); bus 255 sound/soc/intel/skylake/skl.c static int skl_acquire_irq(struct hdac_bus *bus, int do_disconnect) bus 257 sound/soc/intel/skylake/skl.c struct skl_dev *skl = bus_to_skl(bus); bus 263 sound/soc/intel/skylake/skl.c KBUILD_MODNAME, bus); bus 265 sound/soc/intel/skylake/skl.c dev_err(bus->dev, bus 271 sound/soc/intel/skylake/skl.c bus->irq = skl->pci->irq; bus 280 sound/soc/intel/skylake/skl.c struct hdac_bus *bus = pci_get_drvdata(pci); bus 281 sound/soc/intel/skylake/skl.c struct skl_dev *skl = bus_to_skl(bus); bus 287 sound/soc/intel/skylake/skl.c static int _skl_suspend(struct hdac_bus *bus) bus 289 sound/soc/intel/skylake/skl.c struct skl_dev *skl = bus_to_skl(bus); bus 290 sound/soc/intel/skylake/skl.c struct pci_dev *pci = to_pci_dev(bus->dev); bus 293 sound/soc/intel/skylake/skl.c snd_hdac_ext_bus_link_power_down_all(bus); bus 299 sound/soc/intel/skylake/skl.c snd_hdac_bus_stop_chip(bus); bus 302 sound/soc/intel/skylake/skl.c skl_enable_miscbdcge(bus->dev, false); bus 303 sound/soc/intel/skylake/skl.c snd_hdac_bus_enter_link_reset(bus); bus 304 sound/soc/intel/skylake/skl.c skl_enable_miscbdcge(bus->dev, true); bus 310 sound/soc/intel/skylake/skl.c static int _skl_resume(struct hdac_bus *bus) bus 312 sound/soc/intel/skylake/skl.c struct skl_dev *skl = bus_to_skl(bus); bus 315 sound/soc/intel/skylake/skl.c skl_dum_set(bus); bus 316 sound/soc/intel/skylake/skl.c skl_init_chip(bus, true); bus 329 sound/soc/intel/skylake/skl.c struct hdac_bus *bus = pci_get_drvdata(pci); bus 330 sound/soc/intel/skylake/skl.c struct skl_dev *skl = bus_to_skl(bus); bus 339 sound/soc/intel/skylake/skl.c snd_hdac_ext_bus_link_power_down_all(bus); bus 341 sound/soc/intel/skylake/skl.c if (bus->cmd_dma_state) bus 342 sound/soc/intel/skylake/skl.c snd_hdac_bus_stop_cmd_io(bus); bus 344 sound/soc/intel/skylake/skl.c enable_irq_wake(bus->irq); bus 347 sound/soc/intel/skylake/skl.c ret = _skl_suspend(bus); bus 359 sound/soc/intel/skylake/skl.c struct hdac_bus *bus = pci_get_drvdata(pci); bus 360 sound/soc/intel/skylake/skl.c struct skl_dev *skl = bus_to_skl(bus); bus 370 sound/soc/intel/skylake/skl.c snd_hdac_ext_bus_link_power_up_all(bus); bus 371 sound/soc/intel/skylake/skl.c disable_irq_wake(bus->irq); bus 377 sound/soc/intel/skylake/skl.c list_for_each_entry(hlink, &bus->hlink_list, list) { bus 383 sound/soc/intel/skylake/skl.c if (bus->cmd_dma_state) bus 384 sound/soc/intel/skylake/skl.c snd_hdac_bus_init_cmd_io(bus); bus 386 sound/soc/intel/skylake/skl.c ret = _skl_resume(bus); bus 389 sound/soc/intel/skylake/skl.c list_for_each_entry(hlink, &bus->hlink_list, list) { bus 394 sound/soc/intel/skylake/skl.c if (!bus->cmd_dma_state) bus 395 sound/soc/intel/skylake/skl.c snd_hdac_bus_stop_cmd_io(bus); bus 406 sound/soc/intel/skylake/skl.c struct hdac_bus *bus = pci_get_drvdata(pci); bus 408 sound/soc/intel/skylake/skl.c dev_dbg(bus->dev, "in %s\n", __func__); bus 410 sound/soc/intel/skylake/skl.c return _skl_suspend(bus); bus 416 sound/soc/intel/skylake/skl.c struct hdac_bus *bus = pci_get_drvdata(pci); bus 418 sound/soc/intel/skylake/skl.c dev_dbg(bus->dev, "in %s\n", __func__); bus 420 sound/soc/intel/skylake/skl.c return _skl_resume(bus); bus 433 sound/soc/intel/skylake/skl.c static int skl_free(struct hdac_bus *bus) bus 435 sound/soc/intel/skylake/skl.c struct skl_dev *skl = bus_to_skl(bus); bus 439 sound/soc/intel/skylake/skl.c snd_hdac_ext_stop_streams(bus); bus 441 sound/soc/intel/skylake/skl.c if (bus->irq >= 0) bus 442 sound/soc/intel/skylake/skl.c free_irq(bus->irq, (void *)bus); bus 443 sound/soc/intel/skylake/skl.c snd_hdac_bus_free_stream_pages(bus); bus 444 sound/soc/intel/skylake/skl.c snd_hdac_stream_free_all(bus); bus 445 sound/soc/intel/skylake/skl.c snd_hdac_link_free_all(bus); bus 447 sound/soc/intel/skylake/skl.c if (bus->remap_addr) bus 448 sound/soc/intel/skylake/skl.c iounmap(bus->remap_addr); bus 453 sound/soc/intel/skylake/skl.c snd_hdac_ext_bus_exit(bus); bus 456 sound/soc/intel/skylake/skl.c snd_hdac_display_power(bus, HDA_CODEC_IDX_CONTROLLER, false); bus 457 sound/soc/intel/skylake/skl.c snd_hdac_i915_exit(bus); bus 483 sound/soc/intel/skylake/skl.c struct hdac_bus *bus = skl_to_bus(skl); bus 487 sound/soc/intel/skylake/skl.c if (bus->codec_mask == 0) bus 501 sound/soc/intel/skylake/skl.c struct hdac_bus *bus = skl_to_bus(skl); bus 507 sound/soc/intel/skylake/skl.c dev_dbg(bus->dev, "No matching I2S machine driver found\n"); bus 510 sound/soc/intel/skylake/skl.c dev_err(bus->dev, "No matching machine driver found\n"); bus 532 sound/soc/intel/skylake/skl.c struct hdac_bus *bus = skl_to_bus(skl); bus 538 sound/soc/intel/skylake/skl.c dev_err(bus->dev, "platform device alloc failed\n"); bus 542 sound/soc/intel/skylake/skl.c mach->mach_params.platform = dev_name(bus->dev); bus 543 sound/soc/intel/skylake/skl.c mach->mach_params.codec_mask = bus->codec_mask; bus 547 sound/soc/intel/skylake/skl.c dev_err(bus->dev, "failed to add machine device platform data\n"); bus 554 sound/soc/intel/skylake/skl.c dev_err(bus->dev, "failed to add machine device\n"); bus 573 sound/soc/intel/skylake/skl.c struct hdac_bus *bus = skl_to_bus(skl); bus 580 sound/soc/intel/skylake/skl.c dev_err(bus->dev, "failed to allocate dmic device\n"); bus 586 sound/soc/intel/skylake/skl.c dev_err(bus->dev, "failed to add dmic device: %d\n", ret); bus 694 sound/soc/intel/skylake/skl.c static int probe_codec(struct hdac_bus *bus, int addr) bus 699 sound/soc/intel/skylake/skl.c struct skl_dev *skl = bus_to_skl(bus); bus 706 sound/soc/intel/skylake/skl.c mutex_lock(&bus->cmd_mutex); bus 707 sound/soc/intel/skylake/skl.c snd_hdac_bus_send_cmd(bus, cmd); bus 708 sound/soc/intel/skylake/skl.c snd_hdac_bus_get_response(bus, addr, &res); bus 709 sound/soc/intel/skylake/skl.c mutex_unlock(&bus->cmd_mutex); bus 712 sound/soc/intel/skylake/skl.c dev_dbg(bus->dev, "codec #%d probed OK: %x\n", addr, res); bus 720 sound/soc/intel/skylake/skl.c hda_codec->codec.bus = skl_to_hbus(skl); bus 723 sound/soc/intel/skylake/skl.c err = snd_hdac_ext_bus_device_init(bus, addr, hdev); bus 738 sound/soc/intel/skylake/skl.c return snd_hdac_ext_bus_device_init(bus, addr, hdev); bus 743 sound/soc/intel/skylake/skl.c static void skl_codec_create(struct hdac_bus *bus) bus 751 sound/soc/intel/skylake/skl.c if ((bus->codec_mask & (1 << c))) { bus 752 sound/soc/intel/skylake/skl.c if (probe_codec(bus, c) < 0) { bus 757 sound/soc/intel/skylake/skl.c dev_warn(bus->dev, bus 759 sound/soc/intel/skylake/skl.c bus->codec_mask &= ~(1 << c); bus 768 sound/soc/intel/skylake/skl.c snd_hdac_bus_stop_chip(bus); bus 769 sound/soc/intel/skylake/skl.c skl_init_chip(bus, true); bus 780 sound/soc/intel/skylake/skl.c static int skl_i915_init(struct hdac_bus *bus) bus 788 sound/soc/intel/skylake/skl.c err = snd_hdac_i915_init(bus); bus 792 sound/soc/intel/skylake/skl.c snd_hdac_display_power(bus, HDA_CODEC_IDX_CONTROLLER, true); bus 800 sound/soc/intel/skylake/skl.c struct hdac_bus *bus = skl_to_bus(skl); bus 805 sound/soc/intel/skylake/skl.c err = skl_i915_init(bus); bus 810 sound/soc/intel/skylake/skl.c err = skl_init_chip(bus, true); bus 812 sound/soc/intel/skylake/skl.c dev_err(bus->dev, "Init chip failed with err: %d\n", err); bus 817 sound/soc/intel/skylake/skl.c if (!bus->codec_mask) bus 818 sound/soc/intel/skylake/skl.c dev_info(bus->dev, "no hda codecs found!\n"); bus 821 sound/soc/intel/skylake/skl.c skl_codec_create(bus); bus 824 sound/soc/intel/skylake/skl.c err = skl_platform_register(bus->dev); bus 826 sound/soc/intel/skylake/skl.c dev_err(bus->dev, "platform register failed: %d\n", err); bus 832 sound/soc/intel/skylake/skl.c dev_err(bus->dev, "machine register failed: %d\n", err); bus 839 sound/soc/intel/skylake/skl.c list_for_each_entry(hlink, &bus->hlink_list, list) bus 840 sound/soc/intel/skylake/skl.c snd_hdac_ext_bus_link_put(bus, hlink); bus 843 sound/soc/intel/skylake/skl.c snd_hdac_display_power(bus, HDA_CODEC_IDX_CONTROLLER, false); bus 846 sound/soc/intel/skylake/skl.c pm_runtime_put_noidle(bus->dev); bus 847 sound/soc/intel/skylake/skl.c pm_runtime_allow(bus->dev); bus 854 sound/soc/intel/skylake/skl.c snd_hdac_display_power(bus, HDA_CODEC_IDX_CONTROLLER, false); bus 865 sound/soc/intel/skylake/skl.c struct hdac_bus *bus; bus 882 sound/soc/intel/skylake/skl.c bus = skl_to_bus(skl); bus 890 sound/soc/intel/skylake/skl.c snd_hdac_ext_bus_init(bus, &pci->dev, &bus_core_ops, ext_ops); bus 891 sound/soc/intel/skylake/skl.c bus->use_posbuf = 1; bus 894 sound/soc/intel/skylake/skl.c bus->bdl_pos_adj = 0; bus 906 sound/soc/intel/skylake/skl.c static int skl_first_init(struct hdac_bus *bus) bus 908 sound/soc/intel/skylake/skl.c struct skl_dev *skl = bus_to_skl(bus); bus 918 sound/soc/intel/skylake/skl.c bus->addr = pci_resource_start(pci, 0); bus 919 sound/soc/intel/skylake/skl.c bus->remap_addr = pci_ioremap_bar(pci, 0); bus 920 sound/soc/intel/skylake/skl.c if (bus->remap_addr == NULL) { bus 921 sound/soc/intel/skylake/skl.c dev_err(bus->dev, "ioremap error\n"); bus 925 sound/soc/intel/skylake/skl.c snd_hdac_bus_reset_link(bus, true); bus 927 sound/soc/intel/skylake/skl.c snd_hdac_bus_parse_capabilities(bus); bus 930 sound/soc/intel/skylake/skl.c if (!bus->ppcap) { bus 931 sound/soc/intel/skylake/skl.c dev_err(bus->dev, "bus ppcap not set, HDaudio or DSP not present?\n"); bus 935 sound/soc/intel/skylake/skl.c if (skl_acquire_irq(bus, 0) < 0) bus 939 sound/soc/intel/skylake/skl.c synchronize_irq(bus->irq); bus 941 sound/soc/intel/skylake/skl.c gcap = snd_hdac_chip_readw(bus, GCAP); bus 942 sound/soc/intel/skylake/skl.c dev_dbg(bus->dev, "chipset global capabilities = 0x%x\n", gcap); bus 949 sound/soc/intel/skylake/skl.c dev_err(bus->dev, "no streams found in GCAP definitions?\n"); bus 953 sound/soc/intel/skylake/skl.c bus->num_streams = cp_streams + pb_streams; bus 956 sound/soc/intel/skylake/skl.c if (!dma_set_mask(bus->dev, DMA_BIT_MASK(64))) { bus 957 sound/soc/intel/skylake/skl.c dma_set_coherent_mask(bus->dev, DMA_BIT_MASK(64)); bus 959 sound/soc/intel/skylake/skl.c dma_set_mask(bus->dev, DMA_BIT_MASK(32)); bus 960 sound/soc/intel/skylake/skl.c dma_set_coherent_mask(bus->dev, DMA_BIT_MASK(32)); bus 965 sound/soc/intel/skylake/skl.c (bus, 0, cp_streams, SNDRV_PCM_STREAM_CAPTURE); bus 968 sound/soc/intel/skylake/skl.c (bus, start_idx, pb_streams, SNDRV_PCM_STREAM_PLAYBACK); bus 970 sound/soc/intel/skylake/skl.c err = snd_hdac_bus_alloc_stream_pages(bus); bus 976 sound/soc/intel/skylake/skl.c skl_dum_set(bus); bus 978 sound/soc/intel/skylake/skl.c return skl_init_chip(bus, true); bus 985 sound/soc/intel/skylake/skl.c struct hdac_bus *bus = NULL; bus 1023 sound/soc/intel/skylake/skl.c bus = skl_to_bus(skl); bus 1025 sound/soc/intel/skylake/skl.c err = skl_first_init(bus); bus 1027 sound/soc/intel/skylake/skl.c dev_err(bus->dev, "skl_first_init failed with err: %d\n", err); bus 1033 sound/soc/intel/skylake/skl.c device_disable_async_suspend(bus->dev); bus 1035 sound/soc/intel/skylake/skl.c skl->nhlt = intel_nhlt_init(bus->dev); bus 1039 sound/soc/intel/skylake/skl.c dev_err(bus->dev, "no nhlt info found\n"); bus 1043 sound/soc/intel/skylake/skl.c dev_warn(bus->dev, "no nhlt info found, continuing to try to enable HDaudio codec\n"); bus 1049 sound/soc/intel/skylake/skl.c dev_err(bus->dev, "skl_nhlt_create_sysfs failed with err: %d\n", err); bus 1058 sound/soc/intel/skylake/skl.c dev_err(bus->dev, "skl_clock_device_register failed with err: %d\n", err); bus 1063 sound/soc/intel/skylake/skl.c pci_set_drvdata(skl->pci, bus); bus 1068 sound/soc/intel/skylake/skl.c dev_err(bus->dev, "skl_find_machine failed with err: %d\n", err); bus 1074 sound/soc/intel/skylake/skl.c dev_dbg(bus->dev, "error failed to register dsp\n"); bus 1080 sound/soc/intel/skylake/skl.c if (bus->mlcap) bus 1081 sound/soc/intel/skylake/skl.c snd_hdac_ext_bus_get_ml_capabilities(bus); bus 1083 sound/soc/intel/skylake/skl.c snd_hdac_bus_stop_chip(bus); bus 1088 sound/soc/intel/skylake/skl.c dev_err(bus->dev, "skl_dmic_device_register failed with err: %d\n", err); bus 1103 sound/soc/intel/skylake/skl.c skl_free(bus); bus 1110 sound/soc/intel/skylake/skl.c struct hdac_bus *bus = pci_get_drvdata(pci); bus 1115 sound/soc/intel/skylake/skl.c if (!bus) bus 1118 sound/soc/intel/skylake/skl.c skl = bus_to_skl(bus); bus 1123 sound/soc/intel/skylake/skl.c snd_hdac_ext_stop_streams(bus); bus 1124 sound/soc/intel/skylake/skl.c list_for_each_entry(s, &bus->stream_list, list) { bus 1126 sound/soc/intel/skylake/skl.c snd_hdac_ext_stream_decouple(bus, stream, false); bus 1129 sound/soc/intel/skylake/skl.c snd_hdac_bus_stop_chip(bus); bus 1134 sound/soc/intel/skylake/skl.c struct hdac_bus *bus = pci_get_drvdata(pci); bus 1135 sound/soc/intel/skylake/skl.c struct skl_dev *skl = bus_to_skl(bus); bus 1142 sound/soc/intel/skylake/skl.c snd_hdac_ext_bus_device_remove(bus); bus 1151 sound/soc/intel/skylake/skl.c skl_free(bus); bus 138 sound/soc/intel/skylake/skl.h #define bus_to_skl(bus) container_of(bus, struct skl_dev, hbus.core) bus 624 sound/soc/sh/fsi.c u32 bus, struct device *dev) bus 636 sound/soc/sh/fsi.c switch (bus) { bus 185 sound/soc/soc-ac97.c ac97->bus = &soc_ac97_bus; bus 188 sound/soc/soc-ac97.c ac97->dev.bus = &ac97_bus_type; bus 261 sound/soc/soc-ac97.c ac97->bus = NULL; bus 25 sound/soc/sof/intel/hda-bus.c void sof_hda_bus_init(struct hdac_bus *bus, struct device *dev) bus 28 sound/soc/sof/intel/hda-bus.c snd_hdac_ext_bus_init(bus, dev, NULL, sof_hda_ext_ops); bus 30 sound/soc/sof/intel/hda-bus.c memset(bus, 0, sizeof(*bus)); bus 31 sound/soc/sof/intel/hda-bus.c bus->dev = dev; bus 33 sound/soc/sof/intel/hda-bus.c INIT_LIST_HEAD(&bus->stream_list); bus 35 sound/soc/sof/intel/hda-bus.c bus->irq = -1; bus 41 sound/soc/sof/intel/hda-bus.c bus->idx = 0; bus 43 sound/soc/sof/intel/hda-bus.c spin_lock_init(&bus->reg_lock); bus 44 sound/soc/sof/intel/hda-codec.c struct hdac_bus *bus = sof_to_bus(sdev); bus 52 sound/soc/sof/intel/hda-codec.c snd_hdac_chip_updatew(bus, WAKEEN, STATESTS_INT_MASK, mask); bus 59 sound/soc/sof/intel/hda-codec.c struct hdac_bus *bus = sof_to_bus(sdev); bus 63 sound/soc/sof/intel/hda-codec.c snd_hdac_chip_updatew(bus, WAKEEN, STATESTS_INT_MASK, 0); bus 108 sound/soc/sof/intel/hda-codec.c hda_priv->codec.bus = hbus; bus 142 sound/soc/sof/intel/hda-codec.c struct hdac_bus *bus = sof_to_bus(sdev); bus 148 sound/soc/sof/intel/hda-codec.c if (!(bus->codec_mask & (1 << i))) bus 153 sound/soc/sof/intel/hda-codec.c dev_err(bus->dev, "error: codec #%d probe error, ret: %d\n", bus 167 sound/soc/sof/intel/hda-codec.c struct hdac_bus *bus = sof_to_bus(sdev); bus 169 sound/soc/sof/intel/hda-codec.c dev_dbg(bus->dev, "Turning i915 HDAC power on\n"); bus 170 sound/soc/sof/intel/hda-codec.c snd_hdac_display_power(bus, HDA_CODEC_IDX_CONTROLLER, true); bus 176 sound/soc/sof/intel/hda-codec.c struct hdac_bus *bus = sof_to_bus(sdev); bus 178 sound/soc/sof/intel/hda-codec.c dev_dbg(bus->dev, "Turning i915 HDAC power off\n"); bus 179 sound/soc/sof/intel/hda-codec.c snd_hdac_display_power(bus, HDA_CODEC_IDX_CONTROLLER, false); bus 185 sound/soc/sof/intel/hda-codec.c struct hdac_bus *bus = sof_to_bus(sdev); bus 189 sound/soc/sof/intel/hda-codec.c ret = snd_hdac_i915_init(bus); bus 201 sound/soc/sof/intel/hda-codec.c struct hdac_bus *bus = sof_to_bus(sdev); bus 206 sound/soc/sof/intel/hda-codec.c ret = snd_hdac_i915_exit(bus); bus 57 sound/soc/sof/intel/hda-ctrl.c struct hdac_bus *bus = sof_to_bus(sdev); bus 75 sound/soc/sof/intel/hda-ctrl.c bus->ppcap = bus->remap_addr + offset; bus 76 sound/soc/sof/intel/hda-ctrl.c sdev->bar[HDA_DSP_PP_BAR] = bus->ppcap; bus 81 sound/soc/sof/intel/hda-ctrl.c bus->spbcap = bus->remap_addr + offset; bus 82 sound/soc/sof/intel/hda-ctrl.c sdev->bar[HDA_DSP_SPIB_BAR] = bus->spbcap; bus 87 sound/soc/sof/intel/hda-ctrl.c bus->drsmcap = bus->remap_addr + offset; bus 88 sound/soc/sof/intel/hda-ctrl.c sdev->bar[HDA_DSP_DRSM_BAR] = bus->drsmcap; bus 93 sound/soc/sof/intel/hda-ctrl.c bus->gtscap = bus->remap_addr + offset; bus 98 sound/soc/sof/intel/hda-ctrl.c bus->mlcap = bus->remap_addr + offset; bus 162 sound/soc/sof/intel/hda-ctrl.c struct hdac_bus *bus = sof_to_bus(sdev); bus 169 sound/soc/sof/intel/hda-ctrl.c if (bus->chip_init) bus 196 sound/soc/sof/intel/hda-ctrl.c if (!snd_hdac_chip_readb(bus, GCTL)) { bus 197 sound/soc/sof/intel/hda-ctrl.c dev_dbg(bus->dev, "controller not ready!\n"); bus 202 sound/soc/sof/intel/hda-ctrl.c snd_hdac_chip_updatel(bus, GCTL, AZX_GCTL_UNSOL, AZX_GCTL_UNSOL); bus 205 sound/soc/sof/intel/hda-ctrl.c if (!bus->codec_mask) { bus 206 sound/soc/sof/intel/hda-ctrl.c bus->codec_mask = snd_hdac_chip_readw(bus, STATESTS); bus 207 sound/soc/sof/intel/hda-ctrl.c dev_dbg(bus->dev, "codec_mask = 0x%lx\n", bus->codec_mask); bus 212 sound/soc/sof/intel/hda-ctrl.c list_for_each_entry(stream, &bus->stream_list, list) { bus 225 sound/soc/sof/intel/hda-ctrl.c snd_hdac_chip_writeb(bus, RIRBSTS, RIRB_INT_MASK); bus 234 sound/soc/sof/intel/hda-ctrl.c snd_hdac_bus_init_cmd_io(bus); bus 243 sound/soc/sof/intel/hda-ctrl.c if (bus->use_posbuf && bus->posbuf.addr) { bus 245 sound/soc/sof/intel/hda-ctrl.c (u32)bus->posbuf.addr); bus 247 sound/soc/sof/intel/hda-ctrl.c upper_32_bits(bus->posbuf.addr)); bus 252 sound/soc/sof/intel/hda-ctrl.c list_for_each_entry(hlink, &bus->hlink_list, list) bus 256 sound/soc/sof/intel/hda-ctrl.c bus->chip_init = true; bus 265 sound/soc/sof/intel/hda-ctrl.c struct hdac_bus *bus = sof_to_bus(sdev); bus 269 sound/soc/sof/intel/hda-ctrl.c if (!bus->chip_init) bus 273 sound/soc/sof/intel/hda-ctrl.c list_for_each_entry(stream, &bus->stream_list, list) { bus 292 sound/soc/sof/intel/hda-ctrl.c list_for_each_entry(stream, &bus->stream_list, list) { bus 305 sound/soc/sof/intel/hda-ctrl.c snd_hdac_chip_writeb(bus, RIRBSTS, RIRB_INT_MASK); bus 314 sound/soc/sof/intel/hda-ctrl.c snd_hdac_bus_stop_cmd_io(bus); bus 317 sound/soc/sof/intel/hda-ctrl.c if (bus->posbuf.addr) { bus 324 sound/soc/sof/intel/hda-ctrl.c bus->chip_init = false; bus 55 sound/soc/sof/intel/hda-dai.c hda_link_stream_assign(struct hdac_bus *bus, bus 65 sound/soc/sof/intel/hda-dai.c if (!bus->ppcap) { bus 66 sound/soc/sof/intel/hda-dai.c dev_err(bus->dev, "stream type not supported\n"); bus 70 sound/soc/sof/intel/hda-dai.c list_for_each_entry(stream, &bus->stream_list, list) { bus 109 sound/soc/sof/intel/hda-dai.c snd_hdac_ext_stream_decouple(bus, res, true); bus 110 sound/soc/sof/intel/hda-dai.c spin_lock_irq(&bus->reg_lock); bus 113 sound/soc/sof/intel/hda-dai.c spin_unlock_irq(&bus->reg_lock); bus 124 sound/soc/sof/intel/hda-dai.c struct hdac_bus *bus = hstream->bus; bus 128 sound/soc/sof/intel/hda-dai.c snd_hdac_ext_stream_decouple(bus, stream, true); bus 135 sound/soc/sof/intel/hda-dai.c dev_dbg(bus->dev, "format_val=%d, rate=%d, ch=%d, format=%d\n", bus 141 sound/soc/sof/intel/hda-dai.c list_for_each_entry(link, &bus->hlink_list, list) { bus 203 sound/soc/sof/intel/hda-dai.c struct hdac_bus *bus = hstream->bus; bus 216 sound/soc/sof/intel/hda-dai.c link_dev = hda_link_stream_assign(bus, substream); bus 233 sound/soc/sof/intel/hda-dai.c link = snd_hdac_ext_bus_get_link(bus, codec_dai->component->name); bus 287 sound/soc/sof/intel/hda-dai.c struct hdac_bus *bus; bus 292 sound/soc/sof/intel/hda-dai.c bus = hstream->bus; bus 295 sound/soc/sof/intel/hda-dai.c link = snd_hdac_ext_bus_get_link(bus, rtd->codec_dai->component->name); bus 350 sound/soc/sof/intel/hda-dai.c struct hdac_bus *bus; bus 358 sound/soc/sof/intel/hda-dai.c bus = hstream->bus; bus 376 sound/soc/sof/intel/hda-dai.c link = snd_hdac_ext_bus_get_link(bus, rtd->codec_dai->component->name); bus 290 sound/soc/sof/intel/hda-dsp.c struct hdac_bus *bus = sof_to_bus(sdev); bus 302 sound/soc/sof/intel/hda-dsp.c snd_hdac_ext_bus_link_power_down_all(bus); bus 338 sound/soc/sof/intel/hda-dsp.c struct hdac_bus *bus = sof_to_bus(sdev); bus 363 sound/soc/sof/intel/hda-dsp.c list_for_each_entry(hlink, &bus->hlink_list, list) { bus 369 sound/soc/sof/intel/hda-dsp.c if (!bus->cmd_dma_state) bus 370 sound/soc/sof/intel/hda-dsp.c snd_hdac_bus_stop_cmd_io(bus); bus 413 sound/soc/sof/intel/hda-dsp.c struct hdac_bus *bus = sof_to_bus(sdev); bus 419 sound/soc/sof/intel/hda-dsp.c dev_err(bus->dev, "error: suspending dsp\n"); bus 429 sound/soc/sof/intel/hda-dsp.c struct hdac_bus *bus = sof_to_bus(sdev); bus 438 sound/soc/sof/intel/hda-dsp.c list_for_each_entry(s, &bus->stream_list, list) { bus 450 sound/soc/sof/intel/hda-dsp.c link = snd_hdac_ext_bus_get_link(bus, name); bus 195 sound/soc/sof/intel/hda-loader.c struct hdac_bus *bus = sof_to_bus(sdev); bus 199 sound/soc/sof/intel/hda-loader.c list_for_each_entry(s, &bus->stream_list, list) { bus 34 sound/soc/sof/intel/hda-stream.c struct hdac_bus *bus = sof_to_bus(sdev); bus 53 sound/soc/sof/intel/hda-stream.c if (bus->align_bdle_4k) { bus 157 sound/soc/sof/intel/hda-stream.c struct hdac_bus *bus = sof_to_bus(sdev); bus 162 sound/soc/sof/intel/hda-stream.c spin_lock_irq(&bus->reg_lock); bus 165 sound/soc/sof/intel/hda-stream.c list_for_each_entry(s, &bus->stream_list, list) { bus 180 sound/soc/sof/intel/hda-stream.c spin_unlock_irq(&bus->reg_lock); bus 205 sound/soc/sof/intel/hda-stream.c struct hdac_bus *bus = sof_to_bus(sdev); bus 210 sound/soc/sof/intel/hda-stream.c spin_lock_irq(&bus->reg_lock); bus 216 sound/soc/sof/intel/hda-stream.c list_for_each_entry(s, &bus->stream_list, list) { bus 228 sound/soc/sof/intel/hda-stream.c spin_unlock_irq(&bus->reg_lock); bus 325 sound/soc/sof/intel/hda-stream.c struct hdac_bus *bus = sof_to_bus(sdev); bus 490 sound/soc/sof/intel/hda-stream.c upper_32_bits(bus->posbuf.addr)); bus 492 sound/soc/sof/intel/hda-stream.c (u32)bus->posbuf.addr | bus 523 sound/soc/sof/intel/hda-stream.c struct hdac_bus *bus = sof_to_bus(sdev); bus 526 sound/soc/sof/intel/hda-stream.c spin_lock_irq(&bus->reg_lock); bus 531 sound/soc/sof/intel/hda-stream.c spin_unlock_irq(&bus->reg_lock); bus 538 sound/soc/sof/intel/hda-stream.c struct hdac_bus *bus = context; bus 542 sound/soc/sof/intel/hda-stream.c spin_lock(&bus->reg_lock); bus 544 sound/soc/sof/intel/hda-stream.c status = snd_hdac_chip_readl(bus, INTSTS); bus 545 sound/soc/sof/intel/hda-stream.c dev_vdbg(bus->dev, "stream irq, INTSTS status: 0x%x\n", status); bus 551 sound/soc/sof/intel/hda-stream.c spin_unlock(&bus->reg_lock); bus 556 sound/soc/sof/intel/hda-stream.c static bool hda_dsp_stream_check(struct hdac_bus *bus, u32 status) bus 558 sound/soc/sof/intel/hda-stream.c struct sof_intel_hda_dev *sof_hda = bus_to_sof_hda(bus); bus 563 sound/soc/sof/intel/hda-stream.c list_for_each_entry(s, &bus->stream_list, list) { bus 567 sound/soc/sof/intel/hda-stream.c dev_vdbg(bus->dev, "stream %d status 0x%x\n", bus 589 sound/soc/sof/intel/hda-stream.c struct hdac_bus *bus = context; bus 602 sound/soc/sof/intel/hda-stream.c spin_lock_irq(&bus->reg_lock); bus 604 sound/soc/sof/intel/hda-stream.c status = snd_hdac_chip_readl(bus, INTSTS); bus 607 sound/soc/sof/intel/hda-stream.c active = hda_dsp_stream_check(bus, status); bus 612 sound/soc/sof/intel/hda-stream.c rirb_status = snd_hdac_chip_readb(bus, RIRBSTS); bus 616 sound/soc/sof/intel/hda-stream.c snd_hdac_bus_update_rirb(bus); bus 617 sound/soc/sof/intel/hda-stream.c snd_hdac_chip_writeb(bus, RIRBSTS, bus 622 sound/soc/sof/intel/hda-stream.c spin_unlock_irq(&bus->reg_lock); bus 630 sound/soc/sof/intel/hda-stream.c struct hdac_bus *bus = sof_to_bus(sdev); bus 634 sound/soc/sof/intel/hda-stream.c struct sof_intel_hda_dev *sof_hda = bus_to_sof_hda(bus); bus 668 sound/soc/sof/intel/hda-stream.c &bus->posbuf); bus 677 sound/soc/sof/intel/hda-stream.c PAGE_SIZE, &bus->rb); bus 716 sound/soc/sof/intel/hda-stream.c hstream->bus = bus; bus 733 sound/soc/sof/intel/hda-stream.c hstream->posbuf = (__le32 *)(bus->posbuf.area + bus 736 sound/soc/sof/intel/hda-stream.c list_add_tail(&hstream->list, &bus->stream_list); bus 772 sound/soc/sof/intel/hda-stream.c hstream->bus = bus; bus 790 sound/soc/sof/intel/hda-stream.c hstream->posbuf = (__le32 *)(bus->posbuf.area + bus 793 sound/soc/sof/intel/hda-stream.c list_add_tail(&hstream->list, &bus->stream_list); bus 804 sound/soc/sof/intel/hda-stream.c struct hdac_bus *bus = sof_to_bus(sdev); bus 810 sound/soc/sof/intel/hda-stream.c if (bus->posbuf.area) bus 811 sound/soc/sof/intel/hda-stream.c snd_dma_free_pages(&bus->posbuf); bus 815 sound/soc/sof/intel/hda-stream.c if (bus->rb.area) bus 816 sound/soc/sof/intel/hda-stream.c snd_dma_free_pages(&bus->rb); bus 819 sound/soc/sof/intel/hda-stream.c list_for_each_entry_safe(s, _s, &bus->stream_list, list) { bus 210 sound/soc/sof/intel/hda.c struct hdac_bus *bus = sof_to_bus(sdev); bus 222 sound/soc/sof/intel/hda.c rirbsts = snd_hdac_chip_readb(bus, RIRBSTS); bus 255 sound/soc/sof/intel/hda.c struct hdac_bus *bus; bus 260 sound/soc/sof/intel/hda.c bus = sof_to_bus(sdev); bus 263 sound/soc/sof/intel/hda.c sof_hda_bus_init(bus, &pci->dev); bus 267 sound/soc/sof/intel/hda.c bus->polling_mode = 1; bus 269 sound/soc/sof/intel/hda.c bus->use_posbuf = 1; bus 270 sound/soc/sof/intel/hda.c bus->bdl_pos_adj = 0; bus 271 sound/soc/sof/intel/hda.c bus->sync_write = 1; bus 279 sound/soc/sof/intel/hda.c bus->addr = pci_resource_start(pci, 0); bus 281 sound/soc/sof/intel/hda.c bus->remap_addr = pci_ioremap_bar(pci, 0); bus 283 sound/soc/sof/intel/hda.c if (!bus->remap_addr) { bus 284 sound/soc/sof/intel/hda.c dev_err(bus->dev, "error: ioremap error\n"); bus 289 sound/soc/sof/intel/hda.c sdev->bar[HDA_DSP_HDA_BAR] = bus->remap_addr; bus 346 sound/soc/sof/intel/hda.c struct hdac_bus *bus = sof_to_bus(sdev); bus 362 sound/soc/sof/intel/hda.c device_disable_async_suspend(bus->dev); bus 365 sound/soc/sof/intel/hda.c if (bus->ppcap) bus 380 sound/soc/sof/intel/hda.c dev_err(bus->dev, "error: init chip failed with ret: %d\n", bus 389 sound/soc/sof/intel/hda.c if (bus->mlcap) bus 390 sound/soc/sof/intel/hda.c snd_hdac_ext_bus_get_ml_capabilities(bus); bus 393 sound/soc/sof/intel/hda.c if (!bus->codec_mask) { bus 394 sound/soc/sof/intel/hda.c dev_info(bus->dev, "no hda codecs found!\n"); bus 396 sound/soc/sof/intel/hda.c dev_info(bus->dev, "hda codecs found, mask %lx\n", bus 397 sound/soc/sof/intel/hda.c bus->codec_mask); bus 400 sound/soc/sof/intel/hda.c if (bus->codec_mask & (1 << i)) bus 412 sound/soc/sof/intel/hda.c HDA_IDISP_CODEC(bus->codec_mask)) { bus 424 sound/soc/sof/intel/hda.c dev_info(bus->dev, "using HDA machine driver %s now\n", bus 467 sound/soc/sof/intel/hda.c mach_params->codec_mask = bus->codec_mask; bus 479 sound/soc/sof/intel/hda.c list_for_each_entry(hlink, &bus->hlink_list, list) bus 480 sound/soc/sof/intel/hda.c snd_hdac_ext_bus_link_put(bus, hlink); bus 500 sound/soc/sof/intel/hda.c struct hdac_bus *bus; bus 553 sound/soc/sof/intel/hda.c bus = sof_to_bus(sdev); bus 620 sound/soc/sof/intel/hda.c IRQF_SHARED, "AudioHDA", bus); bus 666 sound/soc/sof/intel/hda.c free_irq(hdev->irq, bus); bus 675 sound/soc/sof/intel/hda.c iounmap(bus->remap_addr); bus 683 sound/soc/sof/intel/hda.c struct hdac_bus *bus = sof_to_bus(sdev); bus 689 sound/soc/sof/intel/hda.c snd_hdac_ext_bus_device_remove(bus); bus 712 sound/soc/sof/intel/hda.c free_irq(hda->irq, bus); bus 718 sound/soc/sof/intel/hda.c snd_hdac_link_free_all(bus); bus 722 sound/soc/sof/intel/hda.c iounmap(bus->remap_addr); bus 725 sound/soc/sof/intel/hda.c snd_hdac_ext_bus_exit(bus); bus 430 sound/soc/sof/intel/hda.h #define bus_to_sof_hda(bus) \ bus 431 sound/soc/sof/intel/hda.h container_of(bus, struct sof_intel_hda_dev, hbus.core) bus 556 sound/soc/sof/intel/hda.h void sof_hda_bus_init(struct hdac_bus *bus, struct device *dev); bus 132 sound/usb/6fire/chip.c device->bus->busnum, device->devnum); bus 1861 sound/usb/pcm.c struct device *dev = subs->dev->bus->controller; bus 37 sound/usb/proc.c snd_iprintf(buffer, "%03d/%03d\n", chip->dev->bus->busnum, chip->dev->devnum); bus 456 sound/usb/usx2y/us122l.c dev->bus->busnum, dev->devnum); bus 549 sound/usb/usx2y/us122l.c US122L(card)->dev->bus->busnum, bus 247 sound/usb/usx2y/usX2Yhwdep.c sprintf(hw->name, "/dev/bus/usb/%03d/%03d", device->bus->busnum, device->devnum); bus 357 sound/usb/usx2y/usbusx2y.c usX2Y(card)->dev->bus->busnum, usX2Y(card)->dev->devnum bus 716 sound/usb/usx2y/usx2yhwdeppcm.c sprintf(hw->name, "/dev/bus/usb/%03d/%03d/hwdeppcm", dev->bus->busnum, dev->devnum); bus 116 tools/power/cpupower/utils/helpers/helpers.h int bus, int slot, int func, int vendor, bus 26 tools/power/cpupower/utils/helpers/pci.c struct pci_dev *pci_acc_init(struct pci_access **pacc, int domain, int bus, bus 38 tools/power/cpupower/utils/helpers/pci.c filter_nb_link.bus = bus; bus 660 tools/testing/nvdimm/test/nfit.c static int nfit_test_search_spa(struct nvdimm_bus *bus, bus 673 tools/testing/nvdimm/test/nfit.c ret = device_for_each_child(&bus->dev, &ctx, bus 696 tools/testing/nvdimm/test/nfit.c static int nfit_test_cmd_translate_spa(struct nvdimm_bus *bus, bus 702 tools/testing/nvdimm/test/nfit.c if (nfit_test_search_spa(bus, spa) < 0 || !spa->num_nvdimms) bus 854 virt/kvm/eventfd.c struct kvm_io_bus *bus; bus 877 virt/kvm/eventfd.c bus = kvm_get_bus(kvm, bus_idx); bus 878 virt/kvm/eventfd.c if (bus) bus 879 virt/kvm/eventfd.c bus->ioeventfd_count--; bus 145 virt/kvm/kvm_main.c static void kvm_io_bus_destroy(struct kvm_io_bus *bus); bus 810 virt/kvm/kvm_main.c struct kvm_io_bus *bus = kvm_get_bus(kvm, i); bus 812 virt/kvm/kvm_main.c if (bus) bus 813 virt/kvm/kvm_main.c kvm_io_bus_destroy(bus); bus 3788 virt/kvm/kvm_main.c static void kvm_io_bus_destroy(struct kvm_io_bus *bus) bus 3792 virt/kvm/kvm_main.c for (i = 0; i < bus->dev_count; i++) { bus 3793 virt/kvm/kvm_main.c struct kvm_io_device *pos = bus->range[i].dev; bus 3797 virt/kvm/kvm_main.c kfree(bus); bus 3830 virt/kvm/kvm_main.c static int kvm_io_bus_get_first_dev(struct kvm_io_bus *bus, bus 3841 virt/kvm/kvm_main.c range = bsearch(&key, bus->range, bus->dev_count, bus 3846 virt/kvm/kvm_main.c off = range - bus->range; bus 3848 virt/kvm/kvm_main.c while (off > 0 && kvm_io_bus_cmp(&key, &bus->range[off-1]) == 0) bus 3854 virt/kvm/kvm_main.c static int __kvm_io_bus_write(struct kvm_vcpu *vcpu, struct kvm_io_bus *bus, bus 3859 virt/kvm/kvm_main.c idx = kvm_io_bus_get_first_dev(bus, range->addr, range->len); bus 3863 virt/kvm/kvm_main.c while (idx < bus->dev_count && bus 3864 virt/kvm/kvm_main.c kvm_io_bus_cmp(range, &bus->range[idx]) == 0) { bus 3865 virt/kvm/kvm_main.c if (!kvm_iodevice_write(vcpu, bus->range[idx].dev, range->addr, bus 3878 virt/kvm/kvm_main.c struct kvm_io_bus *bus; bus 3887 virt/kvm/kvm_main.c bus = srcu_dereference(vcpu->kvm->buses[bus_idx], &vcpu->kvm->srcu); bus 3888 virt/kvm/kvm_main.c if (!bus) bus 3890 virt/kvm/kvm_main.c r = __kvm_io_bus_write(vcpu, bus, &range, val); bus 3899 virt/kvm/kvm_main.c struct kvm_io_bus *bus; bus 3907 virt/kvm/kvm_main.c bus = srcu_dereference(vcpu->kvm->buses[bus_idx], &vcpu->kvm->srcu); bus 3908 virt/kvm/kvm_main.c if (!bus) bus 3912 virt/kvm/kvm_main.c if ((cookie >= 0) && (cookie < bus->dev_count) && bus 3913 virt/kvm/kvm_main.c (kvm_io_bus_cmp(&range, &bus->range[cookie]) == 0)) bus 3914 virt/kvm/kvm_main.c if (!kvm_iodevice_write(vcpu, bus->range[cookie].dev, addr, len, bus 3922 virt/kvm/kvm_main.c return __kvm_io_bus_write(vcpu, bus, &range, val); bus 3925 virt/kvm/kvm_main.c static int __kvm_io_bus_read(struct kvm_vcpu *vcpu, struct kvm_io_bus *bus, bus 3930 virt/kvm/kvm_main.c idx = kvm_io_bus_get_first_dev(bus, range->addr, range->len); bus 3934 virt/kvm/kvm_main.c while (idx < bus->dev_count && bus 3935 virt/kvm/kvm_main.c kvm_io_bus_cmp(range, &bus->range[idx]) == 0) { bus 3936 virt/kvm/kvm_main.c if (!kvm_iodevice_read(vcpu, bus->range[idx].dev, range->addr, bus 3949 virt/kvm/kvm_main.c struct kvm_io_bus *bus; bus 3958 virt/kvm/kvm_main.c bus = srcu_dereference(vcpu->kvm->buses[bus_idx], &vcpu->kvm->srcu); bus 3959 virt/kvm/kvm_main.c if (!bus) bus 3961 virt/kvm/kvm_main.c r = __kvm_io_bus_read(vcpu, bus, &range, val); bus 3970 virt/kvm/kvm_main.c struct kvm_io_bus *new_bus, *bus; bus 3973 virt/kvm/kvm_main.c bus = kvm_get_bus(kvm, bus_idx); bus 3974 virt/kvm/kvm_main.c if (!bus) bus 3978 virt/kvm/kvm_main.c if (bus->dev_count - bus->ioeventfd_count > NR_IOBUS_DEVS - 1) bus 3981 virt/kvm/kvm_main.c new_bus = kmalloc(struct_size(bus, range, bus->dev_count + 1), bus 3992 virt/kvm/kvm_main.c for (i = 0; i < bus->dev_count; i++) bus 3993 virt/kvm/kvm_main.c if (kvm_io_bus_cmp(&bus->range[i], &range) > 0) bus 3996 virt/kvm/kvm_main.c memcpy(new_bus, bus, sizeof(*bus) + i * sizeof(struct kvm_io_range)); bus 3999 virt/kvm/kvm_main.c memcpy(new_bus->range + i + 1, bus->range + i, bus 4000 virt/kvm/kvm_main.c (bus->dev_count - i) * sizeof(struct kvm_io_range)); bus 4003 virt/kvm/kvm_main.c kfree(bus); bus 4013 virt/kvm/kvm_main.c struct kvm_io_bus *new_bus, *bus; bus 4015 virt/kvm/kvm_main.c bus = kvm_get_bus(kvm, bus_idx); bus 4016 virt/kvm/kvm_main.c if (!bus) bus 4019 virt/kvm/kvm_main.c for (i = 0; i < bus->dev_count; i++) bus 4020 virt/kvm/kvm_main.c if (bus->range[i].dev == dev) { bus 4024 virt/kvm/kvm_main.c if (i == bus->dev_count) bus 4027 virt/kvm/kvm_main.c new_bus = kmalloc(struct_size(bus, range, bus->dev_count - 1), bus 4034 virt/kvm/kvm_main.c memcpy(new_bus, bus, sizeof(*bus) + i * sizeof(struct kvm_io_range)); bus 4036 virt/kvm/kvm_main.c memcpy(new_bus->range + i, bus->range + i + 1, bus 4042 virt/kvm/kvm_main.c kfree(bus); bus 4049 virt/kvm/kvm_main.c struct kvm_io_bus *bus; bus 4055 virt/kvm/kvm_main.c bus = srcu_dereference(kvm->buses[bus_idx], &kvm->srcu); bus 4056 virt/kvm/kvm_main.c if (!bus) bus 4059 virt/kvm/kvm_main.c dev_idx = kvm_io_bus_get_first_dev(bus, addr, 1); bus 4063 virt/kvm/kvm_main.c iodev = bus->range[dev_idx].dev;