/openbsd-current/sys/dev/pci/drm/include/linux/ |
H A D | aer.h | 7 pci_enable_pcie_error_reporting(struct pci_dev *pdev) argument
|
H A D | vga_switcheroo.h | 17 vga_switcheroo_register_client(struct pci_dev *pdev, argument 24 vga_switcheroo_unregister_client(struct pci_dev *pdev) argument 45 vga_switcheroo_client_fb_set(struct pci_dev *pdev, struct fb_info *fbi) argument 55 vga_switcheroo_lock_ddc(struct pci_dev *pdev) argument 61 vga_switcheroo_unlock_ddc(struct pci_dev *pdev) argument 67 vga_switcheroo_client_probe_defer(struct pci_dev *pdev) argument
|
H A D | aperture.h | 12 int devm_aperture_acquire_for_platform_device(struct platform_device *pdev, 19 int __aperture_remove_legacy_vga_devices(struct pci_dev *pdev); 21 int aperture_remove_conflicting_pci_devices(struct pci_dev *pdev, const char *name); 23 static inline int devm_aperture_acquire_for_platform_device(struct platform_device *pdev, argument 36 static inline int __aperture_remove_legacy_vga_devices(struct pci_dev *pdev) argument 41 static inline int aperture_remove_conflicting_pci_devices(struct pci_dev *pdev, const char *name) argument
|
H A D | pci.h | 134 pci_read_config_dword(struct pci_dev *pdev, int reg, u32 *val) argument 136 *val = pci_conf_read(pdev->pc, pdev->tag, reg); 141 pci_read_config_word(struct pci_dev *pdev, int reg, u16 *val) argument 145 v = pci_conf_read(pdev->pc, pdev->tag, (reg & ~0x2)); 151 pci_read_config_byte(struct pci_dev *pdev, int reg, u8 *val) argument 155 v = pci_conf_read(pdev->pc, pdev->tag, (reg & ~0x3)); 161 pci_write_config_dword(struct pci_dev *pdev, in argument 168 pci_write_config_word(struct pci_dev *pdev, int reg, u16 val) argument 180 pci_write_config_byte(struct pci_dev *pdev, int reg, u8 val) argument 233 pci_pcie_cap(struct pci_dev *pdev) argument 245 pci_is_pcie(struct pci_dev *pdev) argument 257 pci_upstream_bridge(struct pci_dev *pdev) argument 266 pci_pr3_present(struct pci_dev *pdev) argument 272 pcie_capability_read_dword(struct pci_dev *pdev, int off, u32 *val) argument 285 pcie_capability_read_word(struct pci_dev *pdev, int off, u16 *val) argument 298 pcie_capability_write_word(struct pci_dev *pdev, int off, u16 val) argument 309 pcie_capability_set_word(struct pci_dev *pdev, int off, u16 val) argument 319 pcie_capability_clear_and_set_word(struct pci_dev *pdev, int off, u16 c, u16 s) argument 330 pcie_get_readrq(struct pci_dev *pdev) argument 340 pcie_set_readrq(struct pci_dev *pdev, int rrq) argument 351 pci_set_master(struct pci_dev *pdev) argument 356 pci_clear_master(struct pci_dev *pdev) argument 361 pci_save_state(struct pci_dev *pdev) argument 366 pci_restore_state(struct pci_dev *pdev) argument 371 pci_enable_msi(struct pci_dev *pdev) argument 377 pci_disable_msi(struct pci_dev *pdev) argument 421 pcie_bandwidth_available(struct pci_dev *pdev, struct pci_dev **ldev, enum pci_bus_speed *speed, enum pcie_link_width *width) argument 435 pci_enable_device(struct pci_dev *pdev) argument 441 pci_disable_device(struct pci_dev *pdev) argument 446 pci_wait_for_pending_transaction(struct pci_dev *pdev) argument 452 pci_is_thunderbolt_attached(struct pci_dev *pdev) argument 458 pci_set_drvdata(struct pci_dev *pdev, void *data) argument 469 pci_irq_vector(struct pci_dev *pdev, unsigned int num) argument 475 pci_free_irq_vectors(struct pci_dev *pdev) argument 505 pci_match_id(const struct pci_device_id *ids, struct pci_dev *pdev) argument [all...] |
H A D | platform_device.h | 34 platform_set_drvdata(struct platform_device *pdev, void *data) argument 36 dev_set_drvdata(&pdev->dev, data); 40 platform_get_drvdata(struct platform_device *pdev) argument 42 return dev_get_drvdata(&pdev->dev);
|
/openbsd-current/sys/dev/pci/drm/i915/ |
H A D | i915_switcheroo.c | 14 static void i915_switcheroo_set_state(struct pci_dev *pdev, argument 17 struct drm_i915_private *i915 = pdev_to_i915(pdev); 21 dev_err(&pdev->dev, "DRM not initialized, aborting switch.\n"); 25 dev_err(&pdev->dev, "Device state not initialized, aborting switch.\n"); 33 pci_set_power_state(pdev, PCI_D0); 44 static bool i915_switcheroo_can_switch(struct pci_dev *pdev) argument 46 struct drm_i915_private *i915 = pdev_to_i915(pdev); 67 struct pci_dev *pdev = to_pci_dev(i915->drm.dev); local 69 return vga_switcheroo_register_client(pdev, &i915_switcheroo_ops, false); 78 struct pci_dev *pdev local [all...] |
H A D | i915_pci.h | 16 bool i915_pci_resource_valid(struct pci_dev *pdev, int bar);
|
H A D | intel_stolen.c | 35 pci_read_config_word(dev_priv->gmch.pdev, I830_GMCH_CTRL, 56 pci_read_config_word(dev_priv->gmch.pdev, I830_GMCH_CTRL, 95 struct pci_dev *pdev = dev_priv->drm.pdev; local 98 pci_read_config_word(pdev, SNB_GMCH_CTRL, &gmch_ctl); 107 struct pci_dev *pdev = dev_priv->drm.pdev; local 110 pci_read_config_word(pdev, SNB_GMCH_CTRL, &gmch_ctl); 124 struct pci_dev *pdev = dev_priv->drm.pdev; local 136 struct pci_dev *pdev = dev_priv->drm.pdev; local [all...] |
H A D | i915_suspend.c | 88 struct pci_dev *pdev = dev_priv->drm.pdev; local 98 pci_read_config_word(pdev, GCDGMBUS, 106 struct pci_dev *pdev = dev_priv->drm.pdev; local 114 pci_write_config_word(pdev, GCDGMBUS,
|
H A D | i915_driver.h | 24 int i915_driver_probe(struct pci_dev *pdev, const struct pci_device_id *ent);
|
/openbsd-current/sys/dev/pci/drm/amd/amdxcp/ |
H A D | amdgpu_xcp_drv.c | 36 struct platform_device *pdev; member in struct:xcp_device 51 struct platform_device *pdev; local 62 pdev = platform_device_register_simple("amdgpu_xcp", pdev_num, NULL, 0); 63 if (IS_ERR(pdev)) 64 return PTR_ERR(pdev); 66 if (!devres_open_group(&pdev->dev, NULL, GFP_KERNEL)) { 71 pxcp_dev = devm_drm_dev_alloc(&pdev->dev, &amdgpu_xcp_driver, struct xcp_device, drm); 78 xcp_dev[pdev_num]->pdev = pdev; 85 devres_release_group(&pdev [all...] |
/openbsd-current/sys/dev/pci/drm/i915/display/ |
H A D | intel_vga.c | 31 struct pci_dev *pdev = dev_priv->drm.pdev; local 39 vga_get_uninterruptible(pdev, VGA_RSRC_LEGACY_IO); 49 vga_put(pdev, VGA_RSRC_LEGACY_IO); 91 struct pci_dev *pdev = i915->drm.pdev; local 103 vga_get_uninterruptible(pdev, VGA_RSRC_LEGACY_IO); 109 vga_put(pdev, VGA_RSRC_LEGACY_IO); 113 intel_vga_set_decode(struct pci_dev *pdev, bool enable_decode) argument 118 struct drm_i915_private *i915 = pdev_to_i915(pdev); 133 struct pci_dev *pdev = i915->drm.pdev; local 153 struct pci_dev *pdev = i915->drm.pdev; local [all...] |
/openbsd-current/sys/dev/pci/drm/amd/amdgpu/ |
H A D | amdgpu_cgs.c | 256 if ((adev->pdev->revision == 0x81) && 257 ((adev->pdev->device == 0x6810) || 258 (adev->pdev->device == 0x6811))) { 266 if (((adev->pdev->device == 0x6820) && 267 ((adev->pdev->revision == 0x81) || 268 (adev->pdev->revision == 0x83))) || 269 ((adev->pdev->device == 0x6821) && 270 ((adev->pdev->revision == 0x83) || 271 (adev->pdev->revision == 0x87))) || 272 ((adev->pdev [all...] |
/openbsd-current/sys/dev/pci/drm/ |
H A D | drm_aperture.c | 33 * static int remove_conflicting_framebuffers(struct pci_dev *pdev) 38 * base = pci_resource_start(pdev, 0); 39 * size = pci_resource_len(pdev, 0); 45 * static int probe(struct pci_dev *pdev) 50 * ret = remove_conflicting_framebuffers(pdev); 77 * static int acquire_framebuffers(struct drm_device *dev, struct platform_device *pdev) 81 * mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); 90 * static int probe(struct platform_device *pdev) 100 * ret = acquire_framebuffers(dev, pdev); 148 struct platform_device *pdev; local 191 drm_aperture_remove_conflicting_pci_framebuffers(struct pci_dev *pdev, const struct drm_driver *req_driver) argument [all...] |
H A D | drm_pci.c | 59 return pci_domain_nr(dev->pdev->bus); 66 struct pci_dev *pdev = to_pci_dev(dev->dev); local 68 struct pci_dev *pdev = dev->pdev; 73 pdev->bus->number, 74 PCI_SLOT(pdev->devfn), 75 PCI_FUNC(pdev->devfn)); 87 struct pci_dev *pdev = to_pci_dev(dev->dev); local 90 (p->busnum & 0xff) != pdev->bus->number || 91 p->devnum != PCI_SLOT(pdev 155 drm_legacy_get_pci_dev(struct pci_dev *pdev, const struct pci_device_id *ent, const struct drm_driver *driver) argument 210 struct pci_dev *pdev = NULL; local [all...] |
H A D | aperture.c | 34 * static int example_probe(struct platform_device *pdev) 40 * mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); 84 * static int generic_probe(struct platform_device *pdev) 89 * mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); 95 * ret = devm_aperture_acquire_for_platform_device(pdev, base, size); 202 struct platform_device *pdev = to_platform_device(dev); local 216 platform_device_unregister(pdev); 222 * @pdev: the platform device to own the aperture 239 int devm_aperture_acquire_for_platform_device(struct platform_device *pdev, argument 243 return devm_aperture_acquire(&pdev 325 __aperture_remove_legacy_vga_devices(struct pci_dev *pdev) argument 347 aperture_remove_conflicting_pci_devices(struct pci_dev *pdev, const char *name) argument [all...] |
/openbsd-current/sys/dev/pci/drm/i915/soc/ |
H A D | intel_gmch.c | 26 i915->gmch.pdev = pci_get_domain_bus_and_slot(domain, 0, PCI_DEVFN(0, 0)); 27 if (!i915->gmch.pdev) { 33 i915->gmch.pdev); 41 if (i915->gmch.pdev != NULL) 44 i915->gmch.pdev = malloc(sizeof(*i915->gmch.pdev), 46 i915->gmch.pdev->pc = dev->pdev->pc; 47 i915->gmch.pdev->tag = pci_make_tag(dev->pdev [all...] |
/openbsd-current/sys/dev/pci/drm/i915/selftests/ |
H A D | mock_gem_device.c | 93 struct pci_dev *pdev = to_pci_dev(dev); local 95 kfree(pdev); 145 struct pci_dev *pdev; local 148 pdev = kzalloc(sizeof(*pdev), GFP_KERNEL); 149 if (!pdev) 151 device_initialize(&pdev->dev); 152 pdev->class = PCI_BASE_CLASS_DISPLAY << 16; 153 pdev->dev.release = release_dev; 154 dev_set_name(&pdev [all...] |
/openbsd-current/sys/dev/pci/drm/apple/ |
H A D | dcp.h | 45 void dcp_poweroff(struct platform_device *pdev); 46 void dcp_poweron(struct platform_device *pdev); 48 int dcp_get_connector_type(struct platform_device *pdev); 49 void dcp_link(struct platform_device *pdev, struct apple_crtc *apple, 51 int dcp_start(struct platform_device *pdev); 52 int dcp_wait_ready(struct platform_device *pdev, u64 timeout); 54 bool dcp_is_initialized(struct platform_device *pdev);
|
H A D | apldcp.c | 118 struct platform_device *pdev; member in struct:apple_rtkit 134 len = OF_getproplen(rtk->pdev->node, "memory-region"); 135 idx = OF_getindex(rtk->pdev->node, "dcp_data", "memory-region-names"); 140 OF_getpropintarray(rtk->pdev->node, "memory-region", 231 struct platform_device *pdev = (struct platform_device *)dev; local 244 rk->rk_dmat = pdev->dmat; 247 rtk->state = rtkit_init(pdev->node, mbox_name, 0, rk); 249 rtk->pdev = pdev; 258 struct platform_device *pdev local [all...] |
/openbsd-current/sys/dev/pci/drm/i915/gt/ |
H A D | intel_region_lmem.c | 21 static void _release_bars(struct pci_dev *pdev) argument 28 if (pci_resource_len(pdev, resno)) 29 pci_release_resource(pdev, resno); 39 struct pci_dev *pdev = i915->drm.pdev; local 43 _release_bars(pdev); 45 ret = pci_resize_resource(pdev, resno, bar_size); 60 struct pci_dev *pdev = i915->drm.pdev; local 61 struct pci_bus *root = pdev 243 struct pci_dev *pdev = i915->drm.pdev; local [all...] |
/openbsd-current/sys/dev/pci/drm/include/drm/ |
H A D | intel_lpe_audio.h | 47 void (*notify_audio_lpe)(struct platform_device *pdev, int port); /* port: 0==B,1==C,2==D */
|
H A D | drm_aperture.h | 18 int drm_aperture_remove_conflicting_pci_framebuffers(struct pci_dev *pdev,
|
/openbsd-current/sys/dev/pci/drm/i915/gvt/ |
H A D | firmware.c | 73 struct pci_dev *pdev = to_pci_dev(i915->drm.dev); local 113 ret = device_create_bin_file(&pdev->dev, &firmware_attr); 123 struct pci_dev *pdev = to_pci_dev(gvt->gt->i915->drm.dev); local 125 device_remove_bin_file(&pdev->dev, &firmware_attr); 147 struct pci_dev *pdev = to_pci_dev(gvt->gt->i915->drm.dev); local 174 VERIFY("vendor id", id, pdev->vendor); 177 VERIFY("device id", id, pdev->device); 180 VERIFY("revision id", id, pdev->revision); 201 struct pci_dev *pdev = to_pci_dev(gvt->gt->i915->drm.dev); local 231 GVT_FIRMWARE_PATH, pdev [all...] |
/openbsd-current/sys/dev/pci/drm/radeon/ |
H A D | radeon_irq_kms.c | 228 struct pci_dev *pdev = to_pci_dev(dev->dev); local 230 struct pci_dev *pdev = dev->pdev; local 234 free_irq(pdev->irq, dev); 264 rdev->pdev->no_64bit_msi = 1; 275 if ((rdev->pdev->device == 0x791f) && 276 (rdev->pdev->subsystem_vendor == 0x103c) && 277 (rdev->pdev->subsystem_device == 0x30c2)) 281 if ((rdev->pdev->device == 0x791f) && 282 (rdev->pdev [all...] |