Home
last modified time | relevance | path

Searched refs:pdev (Results 1 – 25 of 79) sorted by relevance

1234

/openbmc/qemu/tests/qtest/
H A Dnvme-test.c53 QPCIDevice *pdev = &nvme->dev; in nvmetest_oob_cmb_test() local
56 qpci_device_enable(pdev); in nvmetest_oob_cmb_test()
57 bar = qpci_iomap(pdev, 2, NULL); in nvmetest_oob_cmb_test()
59 qpci_io_writel(pdev, bar, 0, 0xccbbaa99); in nvmetest_oob_cmb_test()
60 g_assert_cmpint(qpci_io_readb(pdev, bar, 0), ==, 0x99); in nvmetest_oob_cmb_test()
61 g_assert_cmpint(qpci_io_readw(pdev, bar, 0), ==, 0xaa99); in nvmetest_oob_cmb_test()
64 qpci_io_writel(pdev, bar, cmb_bar_size - 1, 0x44332211); in nvmetest_oob_cmb_test()
65 g_assert_cmpint(qpci_io_readb(pdev, bar, cmb_bar_size - 1), ==, 0x11); in nvmetest_oob_cmb_test()
66 g_assert_cmpint(qpci_io_readw(pdev, bar, cmb_bar_size - 1), !=, 0x2211); in nvmetest_oob_cmb_test()
67 g_assert_cmpint(qpci_io_readl(pdev, ba in nvmetest_oob_cmb_test()
73 QPCIDevice *pdev = &nvme->dev; nvmetest_reg_read_test() local
97 QPCIDevice *pdev = &nvme->dev; nvmetest_pmr_reg_test() local
[all...]
H A Dvirtio-blk-test.c467 QVirtioPCIDevice *pdev = &blk->pci_vdev; in msix() local
468 QVirtioDevice *dev = &pdev->vdev; in msix()
485 qpci_msix_enable(pdev->pdev); in msix()
486 qvirtio_pci_set_msix_configuration_vector(pdev, t_alloc, 0); in msix()
499 qvirtqueue_pci_msix_setup(pdev, (QVirtQueuePCI *)vq, t_alloc, 1); in msix()
568 qpci_msix_disable(pdev->pdev); in msix()
576 QVirtioPCIDevice *pdev = &blk->pci_vdev; in idx() local
577 QVirtioDevice *dev = &pdev->vdev; in idx()
595 qpci_msix_enable(pdev->pdev); in idx()
596 qvirtio_pci_set_msix_configuration_vector(pdev, t_alloc, 0); in idx()
[all …]
H A Dvirtio-rng-test.c21 QTestState *qts = dev->pdev->bus->qts; in rng_hotplug()
23 if (dev->pdev->bus->not_hotpluggable) { in rng_hotplug()
H A Dvhost-user-blk-test.c546 QVirtioPCIDevice *pdev = &blk->pci_vdev; in idx() local
547 QVirtioDevice *dev = &pdev->vdev; in idx()
565 qpci_msix_enable(pdev->pdev); in idx()
566 qvirtio_pci_set_msix_configuration_vector(pdev, t_alloc, 0); in idx()
579 qvirtqueue_pci_msix_setup(pdev, (QVirtQueuePCI *)vq, t_alloc, 1); in idx()
668 qpci_msix_disable(pdev->pdev); in idx()
677 QTestState *qts = dev1->pdev->bus->qts; in pci_hotplug()
679 if (dev1->pdev->bus->not_hotpluggable) { in pci_hotplug()
689 dev = virtio_pci_new(dev1->pdev->bus, in pci_hotplug()
707 QTestState *qts = pdev1->pdev->bus->qts; in multiqueue()
[all …]
/openbmc/qemu/tests/qtest/libqos/
H A Dvirtio-pci.c40 #define CONFIG_BASE(dev) (VIRTIO_PCI_CONFIG_OFF((dev)->pdev->msix_enabled))
45 return qpci_io_readb(dev->pdev, dev->bar, CONFIG_BASE(dev) + off); in qvirtio_pci_config_readb()
60 value = qpci_io_readw(dev->pdev, dev->bar, CONFIG_BASE(dev) + off); in qvirtio_pci_config_readw()
72 value = qpci_io_readl(dev->pdev, dev->bar, CONFIG_BASE(dev) + off); in qvirtio_pci_config_readl()
84 val = qpci_io_readq(dev->pdev, dev->bar, CONFIG_BASE(dev) + off); in qvirtio_pci_config_readq()
95 return qpci_io_readl(dev->pdev, dev->bar, VIRTIO_PCI_HOST_FEATURES); in qvirtio_pci_get_features()
101 qpci_io_writel(dev->pdev, dev->bar, VIRTIO_PCI_GUEST_FEATURES, features); in qvirtio_pci_set_features()
107 return qpci_io_readl(dev->pdev, dev->bar, VIRTIO_PCI_GUEST_FEATURES); in qvirtio_pci_get_guest_features()
113 return qpci_io_readb(dev->pdev, dev->bar, VIRTIO_PCI_STATUS); in qvirtio_pci_get_status()
119 qpci_io_writeb(dev->pdev, dev->bar, VIRTIO_PCI_STATUS, status); in qvirtio_pci_set_status()
[all …]
H A Dvirtio-pci-modern.c19 return qpci_io_readb(dev->pdev, dev->bar, dev->device_cfg_offset + addr); in config_readb()
25 return qpci_io_readw(dev->pdev, dev->bar, dev->device_cfg_offset + addr); in config_readw()
31 return qpci_io_readl(dev->pdev, dev->bar, dev->device_cfg_offset + addr); in config_readl()
37 return qpci_io_readq(dev->pdev, dev->bar, dev->device_cfg_offset + addr); in config_readq()
45 qpci_io_writel(dev->pdev, dev->bar, dev->common_cfg_offset + in get_features()
49 lo = qpci_io_readl(dev->pdev, dev->bar, dev->common_cfg_offset + in get_features()
52 qpci_io_writel(dev->pdev, dev->bar, dev->common_cfg_offset + in get_features()
56 hi = qpci_io_readl(dev->pdev, dev->bar, dev->common_cfg_offset + in get_features()
69 qpci_io_writel(dev->pdev, dev->bar, dev->common_cfg_offset + in set_features()
73 qpci_io_writel(dev->pdev, dev->bar, dev->common_cfg_offset + in set_features()
[all …]
/openbmc/u-boot/drivers/usb/musb-new/
H A Dmusb_dsps.c152 struct platform_device *pdev = to_platform_device(dev->parent); in dsps_musb_enable() local
153 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_musb_enable()
185 struct platform_device *pdev = to_platform_device(dev->parent); in dsps_musb_disable() local
186 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_musb_disable()
204 struct platform_device *pdev = to_platform_device(dev->parent); in otg_timer() local
205 struct dsps_glue *glue = platform_get_drvdata(pdev); in otg_timer()
258 struct platform_device *pdev = to_platform_device(dev->parent); in dsps_musb_try_idle() local
259 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_musb_try_idle()
298 struct platform_device *pdev = to_platform_device(dev->parent); in dsps_interrupt() local
299 struct dsps_glue *glue = platform_get_drvdata(pdev); in dsps_interrupt()
[all …]
H A Dam35x.c503 static int __devinit am35x_probe(struct platform_device *pdev) in am35x_probe() argument
505 struct musb_hdrc_platform_data *pdata = pdev->dev.platform_data; in am35x_probe()
516 dev_err(&pdev->dev, "failed to allocate glue context\n"); in am35x_probe()
522 dev_err(&pdev->dev, "failed to allocate musb device\n"); in am35x_probe()
526 phy_clk = clk_get(&pdev->dev, "fck"); in am35x_probe()
528 dev_err(&pdev->dev, "failed to get PHY clock\n"); in am35x_probe()
533 clk = clk_get(&pdev->dev, "ick"); in am35x_probe()
535 dev_err(&pdev->dev, "failed to get clock\n"); in am35x_probe()
542 dev_err(&pdev->dev, "failed to enable PHY clock\n"); in am35x_probe()
548 dev_err(&pdev->dev, "failed to enable clock\n"); in am35x_probe()
[all …]
/openbmc/u-boot/drivers/usb/host/
H A Dehci-pci.c68 static void ehci_pci_legacy_init(pci_dev_t pdev, struct ehci_hccr **ret_hccr, in ehci_pci_legacy_init() argument
75 hccr = (struct ehci_hccr *)pci_map_bar(pdev, in ehci_pci_legacy_init()
88 pci_read_config_dword(pdev, PCI_COMMAND, &cmd); in ehci_pci_legacy_init()
90 pci_write_config_dword(pdev, PCI_COMMAND, cmd); in ehci_pci_legacy_init()
100 pci_dev_t pdev; in ehci_hcd_init() local
103 pdev = pci_find_devices(ehci_pci_ids, CONFIG_PCI_EHCI_DEVICE); in ehci_hcd_init()
105 pdev = pci_find_class(PCI_CLASS_SERIAL_USB_EHCI, index); in ehci_hcd_init()
107 if (pdev < 0) { in ehci_hcd_init()
111 ehci_pci_legacy_init(pdev, ret_hccr, ret_hcor); in ehci_hcd_init()
/openbmc/qemu/hw/acpi/
H A Dpcihp.c245 PCIDevice *pdev = PCI_DEVICE(qdev); in acpi_pcihp_update_hotplug_bus() local
246 int slot = PCI_SLOT(pdev->devfn); in acpi_pcihp_update_hotplug_bus()
248 if (acpi_pcihp_pc_no_hotplug(s, pdev)) { in acpi_pcihp_update_hotplug_bus()
272 PCIDevice *pdev = PCI_DEVICE(dev); in acpi_pcihp_device_pre_plug_cb() local
276 acpi_pcihp_get_bsel(pci_get_bus(pdev)) < 0) { in acpi_pcihp_device_pre_plug_cb()
286 PCIDevice *pdev = PCI_DEVICE(dev); in acpi_pcihp_device_plug_cb() local
287 int slot = PCI_SLOT(pdev->devfn); in acpi_pcihp_device_plug_cb()
302 PCIBus *sec = pci_bridge_get_sec_bus(PCI_BRIDGE(pdev)); in acpi_pcihp_device_plug_cb()
312 bus = pci_get_bus(pdev); in acpi_pcihp_device_plug_cb()
328 PCIDevice *pdev = PCI_DEVICE(dev); in acpi_pcihp_device_unplug_cb() local
[all …]
/openbmc/qemu/hw/misc/
H A Dedu.c48 PCIDevice pdev; member
82 return msi_enabled(&edu->pdev); in edu_msi_enabled()
90 msi_notify(&edu->pdev, 0); in edu_raise_irq()
92 pci_set_irq(&edu->pdev, 1); in edu_raise_irq()
102 pci_set_irq(&edu->pdev, 0); in edu_lower_irq()
153 pci_dma_read(&edu->pdev, edu_clamp_addr(edu, edu->dma.src), in edu_dma_timer()
159 pci_dma_write(&edu->pdev, edu_clamp_addr(edu, edu->dma.dst), in edu_dma_timer()
369 static void pci_edu_realize(PCIDevice *pdev, Error **errp) in pci_edu_realize() argument
371 EduState *edu = EDU(pdev); in pci_edu_realize()
372 uint8_t *pci_conf = pdev->config; in pci_edu_realize()
[all …]
/openbmc/u-boot/drivers/video/
H A Dati_radeon_fb.c145 switch (rinfo->pdev.device) { in radeon_identify_vram()
229 if(rinfo->pdev.device == PCI_CHIP_RV370_5B60) return; in radeon_write_pll_regs()
550 pci_dev_t pdev; in radeon_probe() local
553 pdev = pci_find_devices(ati_radeon_pci_ids, 0); in radeon_probe()
555 if (pdev != -1) { in radeon_probe()
556 pci_read_config_word(pdev, PCI_DEVICE_ID, &did); in radeon_probe()
558 PCI_VENDOR_ID_ATI, did, (pdev >> 16) & 0xff, in radeon_probe()
559 (pdev >> 11) & 0x1f, (pdev >> 8) & 0x7); in radeon_probe()
562 rinfo->pdev.vendor = PCI_VENDOR_ID_ATI; in radeon_probe()
563 rinfo->pdev.device = did; in radeon_probe()
[all …]
/openbmc/u-boot/drivers/ata/
H A Ddwc_ahsata.c511 static void dwc_ahsata_print_info(struct blk_desc *pdev) in dwc_ahsata_print_info() argument
517 pdev->product, pdev->vendor, pdev->revision, pdev->lba); in dwc_ahsata_print_info()
521 pdev->product, pdev->vendor, pdev->revision, pdev->lba); in dwc_ahsata_print_info()
752 struct blk_desc *pdev) in dwc_ahsata_scan_common() argument
766 memcpy(pdev->product, serial, sizeof(serial)); in dwc_ahsata_scan_common()
770 memcpy(pdev->revision, firmware, sizeof(firmware)); in dwc_ahsata_scan_common()
774 memcpy(pdev->vendor, product, sizeof(product)); in dwc_ahsata_scan_common()
778 pdev->lba = (u32)n_sectors; in dwc_ahsata_scan_common()
780 pdev->type = DEV_TYPE_HARDDISK; in dwc_ahsata_scan_common()
781 pdev->blksz = ATA_SECT_SIZE; in dwc_ahsata_scan_common()
[all …]
/openbmc/u-boot/drivers/pci/
H A Dpci_sandbox.c83 u8 pdev, pfn, devfn; in sandbox_pci_probe() local
99 pdev = fdt32_to_cpu(cell[0]); in sandbox_pci_probe()
101 if (pdev > 31 || pfn > 7) in sandbox_pci_probe()
103 devfn = SANDBOX_PCI_DEVFN(pdev, pfn); in sandbox_pci_probe()
/openbmc/openbmc/poky/meta-yocto-bsp/recipes-kernel/linux/files/
H A D0001-Revert-serial-8250_omap-Drop-pm_runtime_irq_safe.patch89 @@ -1539,6 +1531,8 @@ static int omap8250_probe(struct platform_device *pdev)
90 if (!of_get_available_child_count(pdev->dev.of_node))
91 pm_runtime_set_autosuspend_delay(&pdev->dev, -1);
93 + pm_runtime_irq_safe(&pdev->dev);
95 pm_runtime_get_sync(&pdev->dev);
/openbmc/u-boot/drivers/reset/
H A Dreset-mediatek.c77 int mediatek_reset_bind(struct udevice *pdev, u32 regofs, u32 num_regs) in mediatek_reset_bind() argument
83 ret = device_bind_driver_to_node(pdev, "mediatek_reset", "reset", in mediatek_reset_bind()
84 dev_ofnode(pdev), &rst_dev); in mediatek_reset_bind()
H A Dreset-rockchip.c106 int rockchip_reset_bind(struct udevice *pdev, u32 reg_offset, u32 reg_number) in rockchip_reset_bind() argument
112 ret = device_bind_driver_to_node(pdev, "rockchip_reset", "reset", in rockchip_reset_bind()
113 dev_ofnode(pdev), &rst_dev); in rockchip_reset_bind()
/openbmc/qemu/hw/remote/
H A Dmpqemu-link.c189 uint64_t mpqemu_msg_send_and_await_reply(MPQemuMsg *msg, PCIProxyDev *pdev, in mpqemu_msg_send_and_await_reply() argument
197 QEMU_LOCK_GUARD(&pdev->io_mutex); in mpqemu_msg_send_and_await_reply()
198 if (!mpqemu_msg_send(msg, pdev->ioc, errp)) { in mpqemu_msg_send_and_await_reply()
202 if (!mpqemu_msg_recv(&msg_reply, pdev->ioc, errp)) { in mpqemu_msg_send_and_await_reply()
/openbmc/u-boot/arch/x86/cpu/
H A Dmp_init.c427 struct udevice *dev, *pdev; in qemu_cpu_fixup() local
432 for (device_find_first_child(dm_root(), &pdev); in qemu_cpu_fixup()
433 pdev; in qemu_cpu_fixup()
434 device_find_next_child(&pdev)) { in qemu_cpu_fixup()
435 if (!strcmp(pdev->name, "cpus")) in qemu_cpu_fixup()
438 if (!pdev) { in qemu_cpu_fixup()
472 ret = device_bind_driver(pdev, "cpu_qemu", cpu, &dev); in qemu_cpu_fixup()
/openbmc/qemu/hw/pci-host/
H A Darticia.c153 static int amigaone_pcihost_bus0_map_irq(PCIDevice *pdev, int pin) in amigaone_pcihost_bus0_map_irq() argument
155 int devfn_slot = PCI_SLOT(pdev->devfn); in amigaone_pcihost_bus0_map_irq()
172 PCIDevice *pdev; in articia_realize() local
188 pdev = pci_create_simple_multifunction(h->bus, PCI_DEVFN(0, 0), in articia_realize()
190 ARTICIA_PCI_HOST(pdev)->as = s; in articia_realize()
/openbmc/qemu/hw/cxl/
H A Dcxl-events.c243 PCIDevice *pdev = &ct3d->parent_obj; in cxl_event_irq_assert() local
254 if (msix_enabled(pdev)) { in cxl_event_irq_assert()
255 msix_notify(pdev, log->irq_vec); in cxl_event_irq_assert()
256 } else if (msi_enabled(pdev)) { in cxl_event_irq_assert()
257 msi_notify(pdev, log->irq_vec); in cxl_event_irq_assert()
H A Dcxl-component-utils.c381 PCIDevice *pdev = cxl->pdev; in cxl_component_create_dvsec() local
383 uint8_t *wmask = pdev->wmask; in cxl_component_create_dvsec()
391 pcie_add_capability(pdev, PCI_EXT_CAP_ID_DVSEC, 1, offset, length); in cxl_component_create_dvsec()
392 pci_set_long(pdev->config + offset + PCIE_DVSEC_HEADER1_OFFSET, in cxl_component_create_dvsec()
394 pci_set_word(pdev->config + offset + PCIE_DVSEC_ID_OFFSET, type); in cxl_component_create_dvsec()
395 memcpy(pdev->config + offset + sizeof(DVSECHeader), in cxl_component_create_dvsec()
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-kernel/linux/files/corstone1000/
H A D0001-remoteproc-Add-Arm-remoteproc-driver.patch363 + * @pdev: the platform device
373 +static int arm_rproc_probe(struct platform_device *pdev)
376 + struct device *dev = &pdev->dev;
407 + res = platform_get_resource_byname(pdev,
409 + priv->reset_cfg.ctrl_reg = devm_ioremap_resource(&pdev->dev, res);
420 + res = platform_get_resource_byname(pdev,
422 + priv->reset_cfg.state_reg = devm_ioremap_resource(&pdev->dev, res);
434 + platform_set_drvdata(pdev, rproc);
455 + * @pdev: the platform device
459 +static void arm_rproc_remove(struct platform_device *pdev)
[all …]
/openbmc/qemu/include/hw/pci/
H A Dpcie_doe.h78 PCIDevice *pdev; member
116 void pcie_doe_init(PCIDevice *pdev, DOECap *doe_cap, uint16_t offset,
/openbmc/u-boot/arch/arm/include/asm/arch-mediatek/
H A Dreset.h11 int mediatek_reset_bind(struct udevice *pdev, u32 regofs, u32 num_regs);

1234