/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
H A D | nv50.c | 30 nv50_bus_hwsq_exec(struct nvkm_bus *pbus, u32 *data, u32 size) nv50_bus_hwsq_exec() argument 32 struct nv50_bus_priv *priv = (void *)pbus; nv50_bus_hwsq_exec() 35 nv_mask(pbus, 0x001098, 0x00000008, 0x00000000); nv50_bus_hwsq_exec() 36 nv_wr32(pbus, 0x001304, 0x00000000); nv50_bus_hwsq_exec() 39 nv_mask(pbus, 0x001098, 0x00000018, 0x00000018); nv50_bus_hwsq_exec() 40 nv_wr32(pbus, 0x00130c, 0x00000003); nv50_bus_hwsq_exec() 42 return nv_wait(pbus, 0x001308, 0x00000100, 0x00000000) ? 0 : -ETIMEDOUT; nv50_bus_hwsq_exec() 48 struct nvkm_bus *pbus = nvkm_bus(subdev); nv50_bus_intr() local 49 u32 stat = nv_rd32(pbus, 0x001100) & nv_rd32(pbus, 0x001140); nv50_bus_intr() 52 u32 addr = nv_rd32(pbus, 0x009084); nv50_bus_intr() 53 u32 data = nv_rd32(pbus, 0x009088); nv50_bus_intr() 55 nv_error(pbus, "MMIO %s of 0x%08x FAULT at 0x%06x\n", nv50_bus_intr() 60 nv_wr32(pbus, 0x001100, 0x00000008); nv50_bus_intr() 64 subdev = nvkm_subdev(pbus, NVDEV_SUBDEV_THERM); nv50_bus_intr() 68 nv_wr32(pbus, 0x001100, 0x00010000); nv50_bus_intr() 72 nv_error(pbus, "unknown intr 0x%08x\n", stat); nv50_bus_intr() 73 nv_mask(pbus, 0x001140, stat, 0); nv50_bus_intr()
|
H A D | nv31.c | 30 struct nvkm_bus *pbus = nvkm_bus(subdev); nv31_bus_intr() local 31 u32 stat = nv_rd32(pbus, 0x001100) & nv_rd32(pbus, 0x001140); nv31_bus_intr() 32 u32 gpio = nv_rd32(pbus, 0x001104) & nv_rd32(pbus, 0x001144); nv31_bus_intr() 35 subdev = nvkm_subdev(pbus, NVDEV_SUBDEV_GPIO); nv31_bus_intr() 41 u32 addr = nv_rd32(pbus, 0x009084); nv31_bus_intr() 42 u32 data = nv_rd32(pbus, 0x009088); nv31_bus_intr() 44 nv_error(pbus, "MMIO %s of 0x%08x FAULT at 0x%06x\n", nv31_bus_intr() 49 nv_wr32(pbus, 0x001100, 0x00000008); nv31_bus_intr() 53 subdev = nvkm_subdev(pbus, NVDEV_SUBDEV_THERM); nv31_bus_intr() 57 nv_wr32(pbus, 0x001100, 0x00070000); nv31_bus_intr() 61 nv_error(pbus, "unknown intr 0x%08x\n", stat); nv31_bus_intr() 62 nv_mask(pbus, 0x001140, stat, 0x00000000); nv31_bus_intr()
|
H A D | gf100.c | 30 struct nvkm_bus *pbus = nvkm_bus(subdev); gf100_bus_intr() local 31 u32 stat = nv_rd32(pbus, 0x001100) & nv_rd32(pbus, 0x001140); gf100_bus_intr() 34 u32 addr = nv_rd32(pbus, 0x009084); gf100_bus_intr() 35 u32 data = nv_rd32(pbus, 0x009088); gf100_bus_intr() 37 nv_error(pbus, "MMIO %s of 0x%08x FAULT at 0x%06x [ %s%s%s]\n", gf100_bus_intr() 44 nv_wr32(pbus, 0x009084, 0x00000000); gf100_bus_intr() 45 nv_wr32(pbus, 0x001100, (stat & 0x0000000e)); gf100_bus_intr() 50 nv_error(pbus, "unknown intr 0x%08x\n", stat); gf100_bus_intr() 51 nv_mask(pbus, 0x001140, stat, 0x00000000); gf100_bus_intr()
|
H A D | hwsq.c | 27 struct nvkm_bus *pbus; member in struct:nvkm_hwsq 44 nvkm_hwsq_init(struct nvkm_bus *pbus, struct nvkm_hwsq **phwsq) nvkm_hwsq_init() argument 50 hwsq->pbus = pbus; nvkm_hwsq_init() 66 struct nvkm_bus *pbus = hwsq->pbus; nvkm_hwsq_fini() local 68 if (hwsq->c.size <= pbus->hwsq_size) { nvkm_hwsq_fini() 70 ret = pbus->hwsq_exec(pbus, (u32 *)hwsq->c.data, nvkm_hwsq_fini() 73 nv_error(pbus, "hwsq exec failed: %d\n", ret); nvkm_hwsq_fini() 75 nv_error(pbus, "hwsq ucode too large\n"); nvkm_hwsq_fini() 80 nv_error(pbus, "\t0x%08x\n", ((u32 *)hwsq->c.data)[i]); nvkm_hwsq_fini() 91 nv_debug(hwsq->pbus, "R[%06x] = 0x%08x\n", addr, data); nvkm_hwsq_wr32() 116 nv_debug(hwsq->pbus, " FLAG[%02x] = %d\n", flag, data); nvkm_hwsq_setf() 128 nv_debug(hwsq->pbus, " WAIT[%02x] = %d\n", flag, data); nvkm_hwsq_wait() 141 nv_debug(hwsq->pbus, " DELAY = %d ns\n", nsec); nvkm_hwsq_nsec()
|
H A D | g94.c | 30 g94_bus_hwsq_exec(struct nvkm_bus *pbus, u32 *data, u32 size) g94_bus_hwsq_exec() argument 32 struct nv50_bus_priv *priv = (void *)pbus; g94_bus_hwsq_exec() 35 nv_mask(pbus, 0x001098, 0x00000008, 0x00000000); g94_bus_hwsq_exec() 36 nv_wr32(pbus, 0x001304, 0x00000000); g94_bus_hwsq_exec() 37 nv_wr32(pbus, 0x001318, 0x00000000); g94_bus_hwsq_exec() 40 nv_mask(pbus, 0x001098, 0x00000018, 0x00000018); g94_bus_hwsq_exec() 41 nv_wr32(pbus, 0x00130c, 0x00000001); g94_bus_hwsq_exec() 43 return nv_wait(pbus, 0x001308, 0x00000100, 0x00000000) ? 0 : -ETIMEDOUT; g94_bus_hwsq_exec()
|
H A D | nv04.c | 30 struct nvkm_bus *pbus = nvkm_bus(subdev); nv04_bus_intr() local 31 u32 stat = nv_rd32(pbus, 0x001100) & nv_rd32(pbus, 0x001140); nv04_bus_intr() 34 nv_error(pbus, "BUS ERROR\n"); nv04_bus_intr() 36 nv_wr32(pbus, 0x001100, 0x00000001); nv04_bus_intr() 44 nv_wr32(pbus, 0x001100, 0x00000110); nv04_bus_intr() 48 nv_error(pbus, "unknown intr 0x%08x\n", stat); nv04_bus_intr() 49 nv_mask(pbus, 0x001140, stat, 0x00000000); nv04_bus_intr()
|
H A D | hwsq.h | 62 struct nvkm_bus *pbus = nvkm_bus(subdev); hwsq_init() local 65 ret = nvkm_hwsq_init(pbus, &ram->hwsq); hwsq_init()
|
/linux-4.1.27/include/linux/ |
H A D | pci-acpi.h | 29 struct pci_bus *pbus = pdev->bus; acpi_find_root_bridge_handle() local 32 while (!pci_is_root_bus(pbus)) acpi_find_root_bridge_handle() 33 pbus = pbus->parent; acpi_find_root_bridge_handle() 35 return ACPI_HANDLE(pbus->bridge); acpi_find_root_bridge_handle() 38 static inline acpi_handle acpi_pci_get_bridge_handle(struct pci_bus *pbus) acpi_pci_get_bridge_handle() argument 42 if (pci_is_root_bus(pbus)) acpi_pci_get_bridge_handle() 43 dev = pbus->bridge; acpi_pci_get_bridge_handle() 45 /* If pbus is a virtual bus, there is no bridge to it */ acpi_pci_get_bridge_handle() 46 if (!pbus->self) acpi_pci_get_bridge_handle() 49 dev = &pbus->self->dev; acpi_pci_get_bridge_handle()
|
H A D | pci_hotplug.h | 118 int __pci_hp_register(struct hotplug_slot *slot, struct pci_bus *pbus, int nr, 126 #define pci_hp_register(slot, pbus, devnr, name) \ 127 __pci_hp_register(slot, pbus, devnr, name, THIS_MODULE, KBUILD_MODNAME) 180 int acpi_pci_check_ejectable(struct pci_bus *pbus, acpi_handle handle);
|
H A D | pci.h | 491 static inline bool pci_is_root_bus(struct pci_bus *pbus) pci_is_root_bus() argument 493 return !(pbus->parent); pci_is_root_bus()
|
/linux-4.1.27/sound/mips/ |
H A D | hal2.c | 58 struct hpc3_pbus_dmacregs *pbus; member in struct:hal2_pbus 60 unsigned int ctrl; /* Current state of pbus->pbdma_ctrl */ 77 struct hal2_pbus pbus; member in struct:hal2_codec 312 if (hal2->dac.pbus.pbus->pbdma_ctrl & HPC3_PDMACTRL_INT) { hal2_interrupt() 316 if (hal2->adc.pbus.pbus->pbdma_ctrl & HPC3_PDMACTRL_INT) { hal2_interrupt() 367 struct hal2_pbus *pbus = &hal2->dac.pbus; hal2_setup_dac() local 380 pbus->ctrl = HPC3_PDMACTRL_RT | HPC3_PDMACTRL_LD | hal2_setup_dac() 383 pbus->pbus->pbdma_ctrl = HPC3_PDMACTRL_LD; hal2_setup_dac() 390 hal2_i_setbit16(hal2, H2I_DMA_DRV, (1 << pbus->pbusnr)); hal2_setup_dac() 392 hal2_i_write16(hal2, H2I_DAC_C1, (pbus->pbusnr << H2I_C1_DMA_SHIFT) hal2_setup_dac() 400 struct hal2_pbus *pbus = &hal2->adc.pbus; hal2_setup_adc() local 406 pbus->ctrl = HPC3_PDMACTRL_RT | HPC3_PDMACTRL_RCV | HPC3_PDMACTRL_LD | hal2_setup_adc() 408 pbus->pbus->pbdma_ctrl = HPC3_PDMACTRL_LD; hal2_setup_adc() 415 hal2_i_setbit16(hal2, H2I_DMA_DRV, (1 << pbus->pbusnr)); hal2_setup_adc() 417 hal2_i_write16(hal2, H2I_ADC_C1, (pbus->pbusnr << H2I_C1_DMA_SHIFT) hal2_setup_adc() 424 struct hal2_pbus *pbus = &hal2->dac.pbus; hal2_start_dac() local 426 pbus->pbus->pbdma_dptr = hal2->dac.desc_dma; hal2_start_dac() 427 pbus->pbus->pbdma_ctrl = pbus->ctrl | HPC3_PDMACTRL_ACT; hal2_start_dac() 434 struct hal2_pbus *pbus = &hal2->adc.pbus; hal2_start_adc() local 436 pbus->pbus->pbdma_dptr = hal2->adc.desc_dma; hal2_start_adc() 437 pbus->pbus->pbdma_ctrl = pbus->ctrl | HPC3_PDMACTRL_ACT; hal2_start_adc() 444 hal2->dac.pbus.pbus->pbdma_ctrl = HPC3_PDMACTRL_LD; hal2_stop_dac() 450 hal2->adc.pbus.pbus->pbdma_ctrl = HPC3_PDMACTRL_LD; hal2_stop_adc() 595 dac->pbus.pbus->pbdma_bptr); hal2_playback_pointer() 688 adc->pbus.pbus->pbdma_bptr); hal2_capture_pointer() 777 codec->pbus.pbusnr = index; hal2_init_codec() 778 codec->pbus.pbus = &hpc3->pbdma[index]; hal2_init_codec() 864 hpc3->pbus_dmacfg[hal2->dac.pbus.pbusnr][0] = 0x8208844; hal2_create() 865 hpc3->pbus_dmacfg[hal2->adc.pbus.pbusnr][0] = 0x8208844; hal2_create()
|
H A D | au1x00.c | 601 struct snd_ac97_bus *pbus; au1000_ac97_probe() local 687 err = snd_ac97_bus(au1000->card, 0, &ops, au1000, &pbus); au1000_ac97_probe() 693 err = snd_ac97_mixer(pbus, &ac97, &au1000->ac97); au1000_ac97_probe()
|
/linux-4.1.27/sound/pci/au88x0/ |
H A D | au88x0_mixer.c | 24 struct snd_ac97_bus *pbus; snd_vortex_mixer() local 32 if ((err = snd_ac97_bus(vortex->card, 0, &ops, NULL, &pbus)) < 0) snd_vortex_mixer() 38 err = snd_ac97_mixer(pbus, &ac97, &vortex->codec); snd_vortex_mixer()
|
/linux-4.1.27/arch/sparc/include/asm/ |
H A D | topology_64.h | 21 int pcibus_to_node(struct pci_bus *pbus); 23 static inline int pcibus_to_node(struct pci_bus *pbus) pcibus_to_node() argument
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | leon_pci.c | 50 void pcibios_fixup_bus(struct pci_bus *pbus) pcibios_fixup_bus() argument 56 list_for_each_entry(dev, &pbus->devices, bus_list) { pcibios_fixup_bus() 76 pci_bus_read_config_word(pbus, dev->devfn, PCI_COMMAND, &cmd); pcibios_fixup_bus() 83 pci_bus_write_config_word(pbus, dev->devfn, PCI_COMMAND, pcibios_fixup_bus() 92 pci_bus_write_config_word(pbus, dev->devfn, PCI_COMMAND, pcibios_fixup_bus()
|
H A D | of_device_32.c | 188 struct of_bus *pbus, build_one_resource() 278 struct of_bus *pbus, *dbus; build_device_resources() local 307 pbus = of_match_bus(pp); build_device_resources() 308 pbus->count_cells(dp, &pna, &pns); build_device_resources() 310 if (build_one_resource(dp, dbus, pbus, addr, build_device_resources() 314 flags = pbus->get_flags(addr, flags); build_device_resources() 318 dbus = pbus; build_device_resources() 186 build_one_resource(struct device_node *parent, struct of_bus *bus, struct of_bus *pbus, u32 *addr, int na, int ns, int pna) build_one_resource() argument
|
H A D | pci_common.c | 485 struct pci_bus *pbus) pci_scan_for_target_abort() 490 list_for_each_entry(pdev, &pbus->devices, bus_list) { pci_scan_for_target_abort() 504 list_for_each_entry(bus, &pbus->children, node) pci_scan_for_target_abort() 509 struct pci_bus *pbus) pci_scan_for_master_abort() 514 list_for_each_entry(pdev, &pbus->devices, bus_list) { pci_scan_for_master_abort() 527 list_for_each_entry(bus, &pbus->children, node) pci_scan_for_master_abort() 532 struct pci_bus *pbus) pci_scan_for_parity_error() 537 list_for_each_entry(pdev, &pbus->devices, bus_list) { pci_scan_for_parity_error() 551 list_for_each_entry(bus, &pbus->children, node) pci_scan_for_parity_error() 484 pci_scan_for_target_abort(struct pci_pbm_info *pbm, struct pci_bus *pbus) pci_scan_for_target_abort() argument 508 pci_scan_for_master_abort(struct pci_pbm_info *pbm, struct pci_bus *pbus) pci_scan_for_master_abort() argument 531 pci_scan_for_parity_error(struct pci_pbm_info *pbm, struct pci_bus *pbus) pci_scan_for_parity_error() argument
|
H A D | pci.c | 684 void pcibios_fixup_bus(struct pci_bus *pbus) pcibios_fixup_bus() argument 880 int pcibus_to_node(struct pci_bus *pbus) pcibus_to_node() argument 882 struct pci_pbm_info *pbm = pbus->sysdata; pcibus_to_node() 891 int pci_domain_nr(struct pci_bus *pbus) pci_domain_nr() argument 893 struct pci_pbm_info *pbm = pbus->sysdata; pci_domain_nr() 1008 static void pcie_bus_slot_names(struct pci_bus *pbus) pcie_bus_slot_names() argument 1013 list_for_each_entry(pdev, &pbus->devices, bus_list) { pcie_bus_slot_names() 1026 pci_slot = pci_create_slot(pbus, slot_num[0], name, NULL); pcie_bus_slot_names() 1033 list_for_each_entry(bus, &pbus->children, node) pcie_bus_slot_names() 1084 struct pci_bus *pbus = NULL; of_pci_slot_init() local 1086 while ((pbus = pci_find_next_bus(pbus)) != NULL) { of_pci_slot_init() 1090 pdev = list_first_entry(&pbus->devices, struct pci_dev, of_pci_slot_init() 1094 pcie_bus_slot_names(pbus); of_pci_slot_init() 1097 if (pbus->self) { of_pci_slot_init() 1100 node = pbus->self->dev.of_node; of_pci_slot_init() 1103 struct pci_pbm_info *pbm = pbus->sysdata; of_pci_slot_init() 1109 pci_bus_slot_names(node, pbus); of_pci_slot_init()
|
H A D | of_device_64.c | 242 struct of_bus *pbus, build_one_resource() 356 struct of_bus *pbus, *dbus; build_device_resources() local 384 pbus = of_match_bus(pp); build_device_resources() 385 pbus->count_cells(dp, &pna, &pns); build_device_resources() 387 if (build_one_resource(dp, dbus, pbus, addr, build_device_resources() 391 flags = pbus->get_flags(addr, flags); build_device_resources() 395 dbus = pbus; build_device_resources() 240 build_one_resource(struct device_node *parent, struct of_bus *bus, struct of_bus *pbus, u32 *addr, int na, int ns, int pna) build_one_resource() argument
|
/linux-4.1.27/drivers/xen/ |
H A D | pci.c | 80 struct pci_bus *pbus; xen_add_device() local 81 for (pbus = pci_dev->bus; pbus; pbus = pbus->parent) { xen_add_device() 82 handle = acpi_pci_get_bridge_handle(pbus); xen_add_device()
|
/linux-4.1.27/drivers/pci/hotplug/ |
H A D | acpi_pcihp.c | 125 struct pci_bus *pbus; acpi_get_hp_hw_control_from_firmware() local 126 for (pbus = pdev->bus; pbus; pbus = pbus->parent) { acpi_get_hp_hw_control_from_firmware() 127 handle = acpi_pci_get_bridge_handle(pbus); acpi_get_hp_hw_control_from_firmware() 176 * @pbus: the PCI bus of the PCI slot corresponding to 'handle' 181 int acpi_pci_check_ejectable(struct pci_bus *pbus, acpi_handle handle) acpi_pci_check_ejectable() argument 185 bridge_handle = acpi_pci_get_bridge_handle(pbus); acpi_pci_check_ejectable()
|
H A D | acpiphp_glue.c | 272 struct pci_bus *pbus = bridge->pci_bus; acpiphp_add_context() local 336 if ((acpi_pci_check_ejectable(pbus, handle) || is_dock_device(adev)) acpiphp_add_context() 347 sun, pci_domain_nr(pbus), pbus->number, device); acpiphp_add_context() 365 if (pci_bus_read_dev_vendor_id(pbus, PCI_DEVFN(device, function), acpiphp_add_context()
|
/linux-4.1.27/drivers/of/ |
H A D | fdt_address.c | 112 const struct of_bus *pbus, __be32 *addr, fdt_translate_one() 151 return pbus->translate(addr, offset, pna); fdt_translate_one() 167 const struct of_bus *bus, *pbus; fdt_translate_address() local 216 pbus = &of_busses[0]; fdt_translate_address() 217 pbus->count_cells(blob, parent, &pna, &pns); fdt_translate_address() 228 if (fdt_translate_one(blob, node_offset, bus, pbus, fdt_translate_address() 235 bus = pbus; fdt_translate_address() 110 fdt_translate_one(const void *blob, int parent, const struct of_bus *bus, const struct of_bus *pbus, __be32 *addr, int na, int ns, int pna, const char *rprop) fdt_translate_one() argument
|
H A D | address.c | 474 struct of_bus *pbus, __be32 *addr, of_translate_one() 530 return pbus->translate(addr, offset, pna); of_translate_one() 547 struct of_bus *bus, *pbus; __of_translate_address() local 590 pbus = of_match_bus(parent); __of_translate_address() 591 pbus->count_cells(dev, &pna, &pns); __of_translate_address() 599 pbus->name, pna, pns, of_node_full_name(parent)); __of_translate_address() 602 if (of_translate_one(dev, bus, pbus, addr, na, ns, pna, rprop)) __of_translate_address() 608 bus = pbus; __of_translate_address() 473 of_translate_one(struct device_node *parent, struct of_bus *bus, struct of_bus *pbus, __be32 *addr, int na, int ns, int pna, const char *rprop) of_translate_one() argument
|
/linux-4.1.27/arch/powerpc/kernel/ |
H A D | pci_dn.c | 44 struct pci_bus *pbus; pci_bus_to_pdn() local 52 pbus = bus; pci_bus_to_pdn() 53 while (pbus) { pci_bus_to_pdn() 54 if (pci_is_root_bus(pbus) || pbus->self) pci_bus_to_pdn() 57 pbus = pbus->parent; pci_bus_to_pdn() 64 dn = pci_bus_to_OF_node(pbus); pci_bus_to_pdn()
|
/linux-4.1.27/arch/alpha/kernel/ |
H A D | core_polaris.c | 66 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, mk_conf_addr() argument 69 u8 bus = pbus->number; mk_conf_addr()
|
H A D | core_tsunami.c | 91 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, mk_conf_addr() argument 94 struct pci_controller *hose = pbus->sysdata; mk_conf_addr() 96 u8 bus = pbus->number; mk_conf_addr() 102 if (!pbus->parent) /* No parent means peer PCI bus. */ mk_conf_addr()
|
H A D | core_wildfire.c | 355 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, mk_conf_addr() argument 358 struct pci_controller *hose = pbus->sysdata; mk_conf_addr() 360 u8 bus = pbus->number; mk_conf_addr() 366 if (!pbus->parent) /* No parent means peer PCI bus. */ mk_conf_addr()
|
H A D | core_mcpcia.c | 169 mk_conf_addr(struct pci_bus *pbus, unsigned int devfn, int where, mk_conf_addr() argument 173 u8 bus = pbus->number; mk_conf_addr() 183 if (!pbus->parent) /* No parent means peer PCI bus. */ mk_conf_addr()
|
H A D | core_titan.c | 117 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, mk_conf_addr() 120 struct pci_controller *hose = pbus->sysdata; mk_conf_addr() 122 u8 bus = pbus->number; mk_conf_addr() 128 if (!pbus->parent) /* No parent means peer PCI bus. */ mk_conf_addr() 115 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, unsigned long *pci_addr, unsigned char *type1) mk_conf_addr() argument
|
H A D | core_apecs.c | 92 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, mk_conf_addr() argument 96 u8 bus = pbus->number; mk_conf_addr()
|
H A D | core_irongate.c | 82 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, mk_conf_addr() argument 86 u8 bus = pbus->number; mk_conf_addr()
|
H A D | core_lca.c | 101 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, mk_conf_addr() argument 105 u8 bus = pbus->number; mk_conf_addr()
|
H A D | core_t2.c | 140 mk_conf_addr(struct pci_bus *pbus, unsigned int device_fn, int where, mk_conf_addr() argument 144 u8 bus = pbus->number; mk_conf_addr()
|
H A D | core_marvel.c | 510 mk_conf_addr(struct pci_bus *pbus, unsigned int devfn, int where) mk_conf_addr() 512 struct pci_controller *hose = pbus->sysdata; mk_conf_addr() 515 u8 bus = pbus->number; mk_conf_addr() 525 if (!pbus->parent) { /* No parent means peer PCI bus. */ mk_conf_addr() 505 mk_conf_addr(struct pci_bus *pbus, unsigned int devfn, int where) mk_conf_addr() argument
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/ |
H A D | aiutils.c | 470 struct bcma_bus *pbus) ai_doattach() 475 sii->icbus = pbus; ai_doattach() 476 sii->pcibus = pbus->host_pci; ai_doattach() 479 cc = pbus->drv_cc.core; ai_doattach() 481 sih->chip = pbus->chipinfo.id; ai_doattach() 482 sih->chiprev = pbus->chipinfo.rev; ai_doattach() 483 sih->chippkg = pbus->chipinfo.pkg; ai_doattach() 484 sih->boardvendor = pbus->boardinfo.vendor; ai_doattach() 485 sih->boardtype = pbus->boardinfo.type; ai_doattach() 510 ai_attach(struct bcma_bus *pbus) ai_attach() argument 519 if (ai_doattach(sii, pbus) == NULL) { ai_attach() 469 ai_doattach(struct si_info *sii, struct bcma_bus *pbus) ai_doattach() argument
|
H A D | aiutils.h | 178 struct si_pub *ai_attach(struct bcma_bus *pbus);
|
/linux-4.1.27/arch/x86/pci/ |
H A D | fixup.c | 256 struct pci_bus *pbus; pcie_rootport_aspm_quirk() local 259 if ((pbus = pdev->subordinate) == NULL) pcie_rootport_aspm_quirk() 271 if (list_empty(&pbus->devices)) { pcie_rootport_aspm_quirk() 274 * after hot-remove, the pbus->devices is empty and this code pcie_rootport_aspm_quirk() 281 pci_bus_set_ops(pbus, pbus->parent->ops); pcie_rootport_aspm_quirk() 289 list_for_each_entry(dev, &pbus->devices, bus_list) pcie_rootport_aspm_quirk() 294 pci_bus_set_ops(pbus, &quirk_pcie_aspm_ops); pcie_rootport_aspm_quirk() 295 dev_info(&pbus->dev, "writes to ASPM control bits will be ignored\n"); pcie_rootport_aspm_quirk()
|
/linux-4.1.27/drivers/pci/ |
H A D | pci-acpi.c | 258 struct pci_bus *pbus; pci_get_hp_params() local 264 for (pbus = dev->bus; pbus; pbus = pbus->parent) { pci_get_hp_params() 265 handle = acpi_pci_get_bridge_handle(pbus); pci_get_hp_params()
|
/linux-4.1.27/arch/ia64/pci/ |
H A D | pci.c | 428 struct pci_bus *pbus; pci_acpi_scan_root() local 465 pbus = pci_create_root_bus(NULL, bus, &pci_root_ops, controller, pci_acpi_scan_root() 467 if (!pbus) { pci_acpi_scan_root() 473 pci_set_host_bridge_release(to_pci_host_bridge(pbus->bridge), pci_acpi_scan_root() 475 pci_scan_child_bus(pbus); pci_acpi_scan_root() 476 return pbus; pci_acpi_scan_root()
|
/linux-4.1.27/sound/pci/cs5535audio/ |
H A D | cs5535audio.c | 152 struct snd_ac97_bus *pbus; snd_cs5535audio_mixer() local 160 if ((err = snd_ac97_bus(card, 0, &ops, NULL, &pbus)) < 0) snd_cs5535audio_mixer() 172 if ((err = snd_ac97_mixer(pbus, &ac97, &cs5535au->ac97)) < 0) { snd_cs5535audio_mixer()
|
/linux-4.1.27/arch/mips/include/asm/octeon/ |
H A D | cvmx-pescx-defs.h | 219 uint64_t pbus:8; member in struct:cvmx_pescx_ctl_status::cvmx_pescx_ctl_status_s 247 uint64_t pbus:8; 258 uint64_t pbus:8; member in struct:cvmx_pescx_ctl_status::cvmx_pescx_ctl_status_cn56xx 286 uint64_t pbus:8;
|
H A D | cvmx-pemx-defs.h | 265 uint64_t pbus:8; member in struct:cvmx_pemx_ctl_status::cvmx_pemx_ctl_status_s 295 uint64_t pbus:8;
|
/linux-4.1.27/arch/mips/include/asm/sgi/ |
H A D | hpc3.h | 38 volatile u32 pbdma_bptr; /* pbus dma channel buffer ptr */ 39 volatile u32 pbdma_dptr; /* pbus dma channel desc ptr */ 41 volatile u32 pbdma_ctrl; /* pbus dma channel control register has 201 #define HPC3_ISTAT_PBIMASK 0x0ff /* irq bits for pbus devs 0 --> 7 */
|
/linux-4.1.27/arch/powerpc/platforms/powernv/ |
H A D | pci-ioda.c | 66 pci_domain_nr(pe->pbus), pe->pbus->number); pe_level_printk() 642 pdev = pe->pbus->self; pnv_ioda_set_peltv() 675 if (pe->pbus) { pnv_ioda_deconfigure_pe() 680 parent = pe->pbus->self; pnv_ioda_deconfigure_pe() 682 count = pe->pbus->busn_res.end - pe->pbus->busn_res.start + 1; pnv_ioda_deconfigure_pe() 694 dev_err(&pe->pbus->dev, "Number of subordinate buses %d unsupported\n", pnv_ioda_deconfigure_pe() 739 pe->pbus = NULL; pnv_ioda_deconfigure_pe() 754 if (pe->pbus) { pnv_ioda_configure_pe() 759 parent = pe->pbus->self; pnv_ioda_configure_pe() 761 count = pe->pbus->busn_res.end - pe->pbus->busn_res.start + 1; pnv_ioda_configure_pe() 773 dev_err(&pe->pbus->dev, "Number of subordinate buses %d unsupported\n", pnv_ioda_configure_pe() 988 pe->pbus = NULL; 1067 pe->pbus = bus; pnv_ioda_setup_bus_PE() 1085 pe->pbus = NULL; pnv_ioda_setup_bus_PE() 1443 pe->pbus = NULL; pnv_ioda_setup_vf_PE() 1848 pnv_ioda_setup_bus_dma(pe, pe->pbus, true); pnv_pci_ioda_setup_dma_pe() 1895 pnv_ioda_setup_bus_dma(pe, pe->pbus, false); pnv_pci_ioda2_set_bypass() 1987 pnv_ioda_setup_bus_dma(pe, pe->pbus, true); pnv_pci_ioda2_setup_dma_pe() 2440 pci_bus_for_each_resource(pe->pbus, res, i) { pnv_ioda_setup_pe_seg()
|
H A D | pci.h | 36 * is populated, in the later case, pbus is. 42 struct pci_bus *pbus; member in struct:pnv_ioda_pe
|
/linux-4.1.27/drivers/acpi/ |
H A D | pci_root.c | 287 struct pci_bus *pbus; acpi_get_pci_dev() local 315 pbus = root->bus; acpi_get_pci_dev() 330 pdev = pci_get_slot(pbus, PCI_DEVFN(dev, fn)); acpi_get_pci_dev() 334 pbus = pdev->subordinate; acpi_get_pci_dev() 342 if (!pbus) { acpi_get_pci_dev()
|
/linux-4.1.27/sound/pci/ |
H A D | atiixp.c | 1254 struct snd_ac97_bus *pbus = chip->ac97_bus; snd_atiixp_pcm_new() local 1268 err = snd_ac97_pcm_assign(pbus, num_pcms, atiixp_pcm_defs); snd_atiixp_pcm_new() 1272 chip->pcms[i] = &pbus->pcms[i]; snd_atiixp_pcm_new() 1275 if (pbus->pcms[ATI_PCM_OUT].r[0].slots & (1 << AC97_SLOT_PCM_SLEFT)) { snd_atiixp_pcm_new() 1276 if (pbus->pcms[ATI_PCM_OUT].r[0].slots & (1 << AC97_SLOT_LFE)) snd_atiixp_pcm_new() 1418 struct snd_ac97_bus *pbus; snd_atiixp_mixer_new() local 1435 if ((err = snd_ac97_bus(chip->card, 0, &ops, chip, &pbus)) < 0) snd_atiixp_mixer_new() 1437 pbus->clock = clock; snd_atiixp_mixer_new() 1438 chip->ac97_bus = pbus; snd_atiixp_mixer_new() 1451 if ((err = snd_ac97_mixer(pbus, &ac97, &chip->ac97[i])) < 0) { snd_atiixp_mixer_new()
|
H A D | intel8x0.c | 2208 struct snd_ac97_bus *pbus; snd_intel8x0_mixer() local 2281 if ((err = snd_ac97_bus(chip->card, 0, ops, chip, &pbus)) < 0) snd_intel8x0_mixer() 2283 pbus->private_free = snd_intel8x0_mixer_free_ac97_bus; snd_intel8x0_mixer() 2285 pbus->clock = ac97_clock; snd_intel8x0_mixer() 2288 pbus->no_vra = 1; snd_intel8x0_mixer() 2290 pbus->dra = 1; snd_intel8x0_mixer() 2291 chip->ac97_bus = pbus; snd_intel8x0_mixer() 2297 if ((err = snd_ac97_mixer(pbus, &ac97, &chip->ac97[i])) < 0) { snd_intel8x0_mixer() 2309 pbus->isdin = 1; snd_intel8x0_mixer() 2316 err = snd_ac97_pcm_assign(pbus, i, ac97_pcm_defs); snd_intel8x0_mixer() 2319 chip->ichd[ICHD_PCMOUT].pcm = &pbus->pcms[0]; snd_intel8x0_mixer() 2320 chip->ichd[ICHD_PCMIN].pcm = &pbus->pcms[1]; snd_intel8x0_mixer() 2321 chip->ichd[ICHD_MIC].pcm = &pbus->pcms[2]; snd_intel8x0_mixer() 2323 chip->ichd[chip->spdif_idx].pcm = &pbus->pcms[3]; snd_intel8x0_mixer() 2325 chip->ichd[ICHD_PCM2IN].pcm = &pbus->pcms[4]; snd_intel8x0_mixer() 2326 chip->ichd[ICHD_MIC2].pcm = &pbus->pcms[5]; snd_intel8x0_mixer() 2347 if (pbus->pcms[0].r[0].slots & (1 << AC97_SLOT_PCM_SLEFT)) { snd_intel8x0_mixer() 2349 if (pbus->pcms[0].r[0].slots & (1 << AC97_SLOT_LFE)) { snd_intel8x0_mixer() 2355 if (pbus->pcms[0].r[1].rslots[0]) { snd_intel8x0_mixer()
|
H A D | intel8x0m.c | 831 struct snd_ac97_bus *pbus; snd_intel8x0m_mixer() local 850 if ((err = snd_ac97_bus(chip->card, 0, &ops, chip, &pbus)) < 0) snd_intel8x0m_mixer() 852 pbus->private_free = snd_intel8x0m_mixer_free_ac97_bus; snd_intel8x0m_mixer() 854 pbus->clock = ac97_clock; snd_intel8x0m_mixer() 855 chip->ac97_bus = pbus; snd_intel8x0m_mixer() 859 if ((err = snd_ac97_mixer(pbus, &ac97, &x97)) < 0) { snd_intel8x0m_mixer()
|
H A D | atiixp_modem.c | 1066 struct snd_ac97_bus *pbus; snd_atiixp_mixer_new() local 1083 if ((err = snd_ac97_bus(chip->card, 0, &ops, chip, &pbus)) < 0) snd_atiixp_mixer_new() 1085 pbus->clock = clock; snd_atiixp_mixer_new() 1086 chip->ac97_bus = pbus; snd_atiixp_mixer_new() 1097 if ((err = snd_ac97_mixer(pbus, &ac97, &chip->ac97[i])) < 0) { snd_atiixp_mixer_new()
|
H A D | ens1370.c | 1631 struct snd_ac97_bus *pbus; snd_ensoniq_1371_mixer() local 1640 if ((err = snd_ac97_bus(card, 0, &ops, NULL, &pbus)) < 0) snd_ensoniq_1371_mixer() 1648 if ((err = snd_ac97_mixer(pbus, &ac97, &ensoniq->u.es1371.ac97)) < 0) snd_ensoniq_1371_mixer()
|
H A D | maestro3.c | 2037 struct snd_ac97_bus *pbus; snd_m3_mixer() local 2048 if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus)) < 0) snd_m3_mixer() 2053 if ((err = snd_ac97_mixer(pbus, &ac97, &chip->ac97)) < 0) snd_m3_mixer()
|
H A D | es1968.c | 2022 struct snd_ac97_bus *pbus; snd_es1968_mixer() local 2033 if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus)) < 0) snd_es1968_mixer() 2035 pbus->no_vra = 1; /* ES1968 doesn't need VRA */ snd_es1968_mixer() 2039 if ((err = snd_ac97_mixer(pbus, &ac97, &chip->ac97)) < 0) snd_es1968_mixer()
|
/linux-4.1.27/arch/x86/kernel/ |
H A D | pci-calgary_64.c | 321 struct pci_bus *pbus; find_iommu_table() local 327 pbus = pdev->bus; find_iommu_table() 329 tbl = pci_iommu(pbus); find_iommu_table() 330 if (tbl && tbl->it_busno == pbus->number) find_iommu_table() 333 pbus = pbus->parent; find_iommu_table() 334 } while (pbus); find_iommu_table() 336 BUG_ON(tbl && (tbl->it_busno != pbus->number)); find_iommu_table()
|
/linux-4.1.27/arch/powerpc/include/asm/ |
H A D | eeh.h | 344 #define eeh_add_device_tree_late(pbus) 345 #define eeh_add_sysfs_files(pbus)
|
/linux-4.1.27/drivers/media/platform/ |
H A D | via-camera.c | 1281 struct pci_bus *pbus = pci_find_bus(0, 0); viacam_serial_is_enabled() local 1284 if (!pbus) viacam_serial_is_enabled() 1286 pci_bus_read_config_byte(pbus, VIACAM_SERIAL_DEVFN, viacam_serial_is_enabled() 1298 pci_bus_write_config_byte(pbus, VIACAM_SERIAL_DEVFN, viacam_serial_is_enabled()
|
/linux-4.1.27/sound/pci/emu10k1/ |
H A D | emu10k1x.c | 736 struct snd_ac97_bus *pbus; snd_emu10k1x_ac97() local 744 if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus)) < 0) snd_emu10k1x_ac97() 746 pbus->no_vra = 1; /* we don't need VRA */ snd_emu10k1x_ac97() 751 return snd_ac97_mixer(pbus, &ac97, &chip->ac97); snd_emu10k1x_ac97()
|
H A D | emumixer.c | 1908 struct snd_ac97_bus *pbus; snd_emu10k1_mixer() local 1915 if ((err = snd_ac97_bus(emu->card, 0, &ops, NULL, &pbus)) < 0) snd_emu10k1_mixer() 1917 pbus->no_vra = 1; /* we don't need VRA */ snd_emu10k1_mixer() 1923 if ((err = snd_ac97_mixer(pbus, &ac97, &emu->ac97)) < 0) { snd_emu10k1_mixer() 1930 snd_device_free(emu->card, pbus); snd_emu10k1_mixer()
|
/linux-4.1.27/sound/pci/nm256/ |
H A D | nm256.c | 1306 struct snd_ac97_bus *pbus; snd_nm256_mixer() local 1320 if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus)) < 0) snd_nm256_mixer() 1327 pbus->no_vra = 1; snd_nm256_mixer() 1328 err = snd_ac97_mixer(pbus, &ac97, &chip->ac97); snd_nm256_mixer()
|
/linux-4.1.27/sound/pci/ca0106/ |
H A D | ca0106_main.c | 1229 struct snd_ac97_bus *pbus; snd_ca0106_ac97() local 1237 if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus)) < 0) snd_ca0106_ac97() 1239 pbus->no_vra = 1; /* we don't need VRA */ snd_ca0106_ac97() 1244 return snd_ac97_mixer(pbus, &ac97, &chip->ac97); snd_ca0106_ac97()
|
/linux-4.1.27/sound/pci/riptide/ |
H A D | riptide.c | 1985 struct snd_ac97_bus *pbus; snd_riptide_mixer() local 1997 if ((err = snd_ac97_bus(chip->card, 0, &ops, chip, &pbus)) < 0) snd_riptide_mixer() 2000 chip->ac97_bus = pbus; snd_riptide_mixer() 2002 if ((err = snd_ac97_mixer(pbus, &ac97, &chip->ac97)) < 0) snd_riptide_mixer()
|
/linux-4.1.27/drivers/mmc/host/ |
H A D | au1xmmc.c | 602 unsigned int pbus = clk_get_rate(host->clk); au1xmmc_set_clock() local 603 unsigned int divisor = ((pbus / rate) / 2) - 1; au1xmmc_set_clock()
|
/linux-4.1.27/sound/pci/ice1712/ |
H A D | ice1712.c | 1508 struct snd_ac97_bus *pbus; snd_ice1712_ac97_mixer() local 1519 err = snd_ac97_bus(ice->card, bus_num++, &con_ops, NULL, &pbus); snd_ice1712_ac97_mixer() 1525 err = snd_ac97_mixer(pbus, &ac97, &ice->ac97); snd_ice1712_ac97_mixer() 1537 err = snd_ac97_bus(ice->card, bus_num, &pro_ops, NULL, &pbus); snd_ice1712_ac97_mixer() 1543 err = snd_ac97_mixer(pbus, &ac97, &ice->ac97); snd_ice1712_ac97_mixer()
|
H A D | ice1724.c | 1492 struct snd_ac97_bus *pbus; snd_vt1724_ac97_mixer() local 1504 err = snd_ac97_bus(ice->card, 0, &ops, NULL, &pbus); snd_vt1724_ac97_mixer() 1509 err = snd_ac97_mixer(pbus, &ac97, &ice->ac97); snd_vt1724_ac97_mixer()
|
/linux-4.1.27/arch/powerpc/platforms/powermac/ |
H A D | feature.c | 815 u8 pbus, pid; core99_ata100_enable() local 831 if (pci_device_from_OF_node(node, &pbus, &pid) == 0) core99_ata100_enable() 832 pdev = pci_get_bus_and_slot(pbus, pid); core99_ata100_enable()
|
/linux-4.1.27/drivers/net/ethernet/dec/tulip/ |
H A D | de4x5.c | 2197 u_char pb, pbus = 0, dev_num, dnum = 0, timer; de4x5_pci_probe() local 2209 pbus = (u_short)(io >> 8); de4x5_pci_probe() 2211 if ((pbus != pb) || (dnum != dev_num)) de4x5_pci_probe()
|