Home
last modified time | relevance | path

Searched refs:pbus (Results 1 – 25 of 83) sorted by relevance

1234

/openbmc/qemu/hw/core/
H A Dplatform-bus.c41 if (pbus->irqs[i] == sbirq) { in platform_bus_get_irqn()
79 PlatformBusDevice *pbus = opaque; in platform_bus_count_irqs() local
104 bitmap_zero(pbus->used_irqs, pbus->num_irqs); in plaform_bus_refresh_irqs()
111 int max_irqs = pbus->num_irqs; in platform_bus_map_irq()
125 set_bit(irqn, pbus->used_irqs); in platform_bus_map_irq()
183 PlatformBusDevice *pbus; in platform_bus_realize() local
188 pbus = PLATFORM_BUS_DEVICE(dev); in platform_bus_realize()
192 sysbus_init_mmio(d, &pbus->mmio); in platform_bus_realize()
194 pbus->used_irqs = bitmap_new(pbus->num_irqs); in platform_bus_realize()
195 pbus->irqs = g_new0(qemu_irq, pbus->num_irqs); in platform_bus_realize()
[all …]
H A Dsysbus-fdt.c49 PlatformBusDevice *pbus; member
216 PlatformBusDevice *pbus = data->pbus; in add_calxeda_midway_xgmac_fdt_node() local
226 mmio_base = platform_bus_get_mmio_addr(pbus, sbdev, 0); in add_calxeda_midway_xgmac_fdt_node()
249 irq_number = platform_bus_get_irqn(pbus, sbdev , i) in add_calxeda_midway_xgmac_fdt_node()
293 PlatformBusDevice *pbus = data->pbus; in add_amd_xgbe_fdt_node() local
361 mmio_base = platform_bus_get_mmio_addr(pbus, sbdev, 0); in add_amd_xgbe_fdt_node()
387 irq_number = platform_bus_get_irqn(pbus, sbdev , i) in add_amd_xgbe_fdt_node()
452 PlatformBusDevice *pbus = data->pbus; in add_tpm_tis_fdt_node() local
537 PlatformBusDevice *pbus; in platform_bus_add_all_fdt_nodes() local
559 pbus = PLATFORM_BUS_DEVICE(dev); in platform_bus_add_all_fdt_nodes()
[all …]
/openbmc/linux/sound/mips/
H A Dhal2.c358 struct hal2_pbus *pbus = &hal2->dac.pbus; in hal2_setup_dac() local
374 pbus->pbus->pbdma_ctrl = HPC3_PDMACTRL_LD; in hal2_setup_dac()
391 struct hal2_pbus *pbus = &hal2->adc.pbus; in hal2_setup_adc() local
399 pbus->pbus->pbdma_ctrl = HPC3_PDMACTRL_LD; in hal2_setup_adc()
415 struct hal2_pbus *pbus = &hal2->dac.pbus; in hal2_start_dac() local
418 pbus->pbus->pbdma_ctrl = pbus->ctrl | HPC3_PDMACTRL_ACT; in hal2_start_dac()
425 struct hal2_pbus *pbus = &hal2->adc.pbus; in hal2_start_adc() local
428 pbus->pbus->pbdma_ctrl = pbus->ctrl | HPC3_PDMACTRL_ACT; in hal2_start_adc()
570 dac->pbus.pbus->pbdma_bptr); in hal2_playback_pointer()
655 adc->pbus.pbus->pbdma_bptr); in hal2_capture_pointer()
[all …]
/openbmc/linux/include/linux/
H A Dpci-acpi.h34 struct pci_bus *pbus = pdev->bus; in acpi_find_root_bridge_handle() local
37 while (!pci_is_root_bus(pbus)) in acpi_find_root_bridge_handle()
38 pbus = pbus->parent; in acpi_find_root_bridge_handle()
40 return ACPI_HANDLE(pbus->bridge); in acpi_find_root_bridge_handle()
43 static inline acpi_handle acpi_pci_get_bridge_handle(struct pci_bus *pbus) in acpi_pci_get_bridge_handle() argument
47 if (pci_is_root_bus(pbus)) in acpi_pci_get_bridge_handle()
48 dev = pbus->bridge; in acpi_pci_get_bridge_handle()
51 if (!pbus->self) in acpi_pci_get_bridge_handle()
54 dev = &pbus->self->dev; in acpi_pci_get_bridge_handle()
H A Dpci_hotplug.h73 int __pci_hp_register(struct hotplug_slot *slot, struct pci_bus *pbus, int nr,
86 #define pci_hp_register(slot, pbus, devnr, name) \ argument
87 __pci_hp_register(slot, pbus, devnr, name, THIS_MODULE, KBUILD_MODNAME)
96 int acpi_pci_check_ejectable(struct pci_bus *pbus, acpi_handle handle);
/openbmc/linux/drivers/pci/hotplug/
H A Dacpi_pcihp.c111 struct pci_bus *pbus; in acpi_get_hp_hw_control_from_firmware() local
112 for (pbus = pdev->bus; pbus; pbus = pbus->parent) { in acpi_get_hp_hw_control_from_firmware()
113 handle = acpi_pci_get_bridge_handle(pbus); in acpi_get_hp_hw_control_from_firmware()
166 int acpi_pci_check_ejectable(struct pci_bus *pbus, acpi_handle handle) in acpi_pci_check_ejectable() argument
170 bridge_handle = acpi_pci_get_bridge_handle(pbus); in acpi_pci_check_ejectable()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
H A Dbus.c194 nvkm_i2c_bus_del(struct nvkm_i2c_bus **pbus) in nvkm_i2c_bus_del() argument
196 struct nvkm_i2c_bus *bus = *pbus; in nvkm_i2c_bus_del()
202 kfree(*pbus); in nvkm_i2c_bus_del()
203 *pbus = NULL; in nvkm_i2c_bus_del()
259 struct nvkm_i2c_bus **pbus) in nvkm_i2c_bus_new_() argument
261 if (!(*pbus = kzalloc(sizeof(**pbus), GFP_KERNEL))) in nvkm_i2c_bus_new_()
263 return nvkm_i2c_bus_ctor(func, pad, id, *pbus); in nvkm_i2c_bus_new_()
/openbmc/linux/drivers/of/
H A Dfdt_address.c111 const struct of_bus *pbus, __be32 *addr, in fdt_translate_one() argument
150 return pbus->translate(addr, offset, pna); in fdt_translate_one()
166 const struct of_bus *bus, *pbus; in fdt_translate_address() local
215 pbus = &of_busses[0]; in fdt_translate_address()
216 pbus->count_cells(blob, parent, &pna, &pns); in fdt_translate_address()
227 if (fdt_translate_one(blob, node_offset, bus, pbus, in fdt_translate_address()
234 bus = pbus; in fdt_translate_address()
/openbmc/linux/sound/pci/au88x0/
H A Dau88x0_mixer.c25 struct snd_ac97_bus *pbus; in snd_vortex_mixer() local
33 err = snd_ac97_bus(vortex->card, 0, &ops, NULL, &pbus); in snd_vortex_mixer()
40 err = snd_ac97_mixer(pbus, &ac97, &vortex->codec); in snd_vortex_mixer()
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A Daiutils.c470 struct bcma_bus *pbus) in ai_doattach() argument
475 sii->icbus = pbus; in ai_doattach()
476 sii->pcibus = pbus->host_pci; in ai_doattach()
479 cc = pbus->drv_cc.core; in ai_doattach()
481 sih->chip = pbus->chipinfo.id; in ai_doattach()
482 sih->chiprev = pbus->chipinfo.rev; in ai_doattach()
483 sih->chippkg = pbus->chipinfo.pkg; in ai_doattach()
484 sih->boardvendor = pbus->boardinfo.vendor; in ai_doattach()
485 sih->boardtype = pbus->boardinfo.type; in ai_doattach()
510 ai_attach(struct bcma_bus *pbus) in ai_attach() argument
[all …]
/openbmc/u-boot/drivers/core/
H A Dof_addr.c169 struct of_bus *bus, struct of_bus *pbus, in of_translate_one() argument
227 return pbus->translate(addr, offset, pna); in of_translate_one()
244 struct of_bus *bus, *pbus; in __of_translate_address() local
287 pbus = of_match_bus(parent); in __of_translate_address()
288 pbus->count_cells(dev, &pna, &pns); in __of_translate_address()
295 debug("parent bus is %s (na=%d, ns=%d) on %s\n", pbus->name, in __of_translate_address()
299 if (of_translate_one(dev, bus, pbus, addr, na, ns, pna, rprop)) in __of_translate_address()
305 bus = pbus; in __of_translate_address()
/openbmc/linux/arch/sparc/kernel/
H A Dpci.c767 int pcibus_to_node(struct pci_bus *pbus) in pcibus_to_node() argument
769 struct pci_pbm_info *pbm = pbus->sysdata; in pcibus_to_node()
778 int pci_domain_nr(struct pci_bus *pbus) in pci_domain_nr() argument
780 struct pci_pbm_info *pbm = pbus->sysdata; in pci_domain_nr()
978 struct pci_bus *pbus = NULL; in of_pci_slot_init() local
980 while ((pbus = pci_find_next_bus(pbus)) != NULL) { in of_pci_slot_init()
988 pcie_bus_slot_names(pbus); in of_pci_slot_init()
991 if (pbus->self) { in of_pci_slot_init()
994 node = pbus->self->dev.of_node; in of_pci_slot_init()
997 struct pci_pbm_info *pbm = pbus->sysdata; in of_pci_slot_init()
[all …]
H A Dof_device_32.c190 struct of_bus *pbus, in build_one_resource() argument
280 struct of_bus *pbus, *dbus; in build_device_resources() local
309 pbus = of_match_bus(pp); in build_device_resources()
310 pbus->count_cells(dp, &pna, &pns); in build_device_resources()
312 if (build_one_resource(dp, dbus, pbus, addr, in build_device_resources()
316 flags = pbus->get_flags(addr, flags); in build_device_resources()
320 dbus = pbus; in build_device_resources()
H A Dpci_common.c479 struct pci_bus *pbus) in pci_scan_for_target_abort() argument
484 list_for_each_entry(pdev, &pbus->devices, bus_list) { in pci_scan_for_target_abort()
498 list_for_each_entry(bus, &pbus->children, node) in pci_scan_for_target_abort()
503 struct pci_bus *pbus) in pci_scan_for_master_abort() argument
508 list_for_each_entry(pdev, &pbus->devices, bus_list) { in pci_scan_for_master_abort()
521 list_for_each_entry(bus, &pbus->children, node) in pci_scan_for_master_abort()
526 struct pci_bus *pbus) in pci_scan_for_parity_error() argument
531 list_for_each_entry(pdev, &pbus->devices, bus_list) { in pci_scan_for_parity_error()
545 list_for_each_entry(bus, &pbus->children, node) in pci_scan_for_parity_error()
/openbmc/linux/drivers/xen/
H A Dpci.c82 struct pci_bus *pbus; in xen_add_device() local
83 for (pbus = pci_dev->bus; pbus; pbus = pbus->parent) { in xen_add_device()
84 handle = acpi_pci_get_bridge_handle(pbus); in xen_add_device()
/openbmc/linux/arch/powerpc/kernel/
H A Dpci_dn.c32 struct pci_bus *pbus; in pci_bus_to_pdn() local
40 pbus = bus; in pci_bus_to_pdn()
41 while (pbus) { in pci_bus_to_pdn()
42 if (pci_is_root_bus(pbus) || pbus->self) in pci_bus_to_pdn()
45 pbus = pbus->parent; in pci_bus_to_pdn()
52 dn = pci_bus_to_OF_node(pbus); in pci_bus_to_pdn()
/openbmc/qemu/include/hw/
H A Dplatform-bus.h47 hwaddr platform_bus_get_mmio_addr(PlatformBusDevice *pbus, SysBusDevice *sbdev,
50 void platform_bus_link_device(PlatformBusDevice *pbus, SysBusDevice *sbdev);
/openbmc/qemu/hw/virtio/
H A Dvirtio-iommu-pci.c48 PCIBus *pbus = pci_get_bus(&vpci_dev->pci_dev); in virtio_iommu_pci_realize() local
65 if (!pci_bus_is_root(pbus)) { in virtio_iommu_pci_realize()
71 OBJECT(pbus), &error_abort); in virtio_iommu_pci_realize()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bus/
H A Dbase.c56 enum nvkm_subdev_type type, int inst, struct nvkm_bus **pbus) in nvkm_bus_new_() argument
59 if (!(bus = *pbus = kzalloc(sizeof(*bus), GFP_KERNEL))) in nvkm_bus_new_()
H A Dg94.c62 struct nvkm_bus **pbus) in g94_bus_new() argument
64 return nvkm_bus_new_(&g94_bus, device, type, inst, pbus); in g94_bus_new()
H A Dnv04.c72 struct nvkm_bus **pbus) in nv04_bus_new() argument
74 return nvkm_bus_new_(&nv04_bus, device, type, inst, pbus); in nv04_bus_new()
H A Dgf100.c73 struct nvkm_bus **pbus) in gf100_bus_new() argument
75 return nvkm_bus_new_(&gf100_bus, device, type, inst, pbus); in gf100_bus_new()
H A Dnv31.c86 struct nvkm_bus **pbus) in nv31_bus_new() argument
88 return nvkm_bus_new_(&nv31_bus, device, type, inst, pbus); in nv31_bus_new()
/openbmc/linux/arch/sparc/include/asm/
H A Dtopology_64.h20 int pcibus_to_node(struct pci_bus *pbus);
22 static inline int pcibus_to_node(struct pci_bus *pbus) in pcibus_to_node() argument
/openbmc/linux/Documentation/devicetree/bindings/dma/
H A Dqcom,adm.yaml43 - description: phandle to the pbus reset
51 - const: pbus
95 reset-names = "clk", "pbus", "c0", "c1", "c2";

1234