Home
last modified time | relevance | path

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

1234567

/dflybsd-src/lib/libusb/
H A Dlibusb20.c133 error = xfer->pdev->methods->tr_close(xfer); in libusb20_tr_close()
203 error = xfer->pdev->methods->tr_open(xfer, MaxBufSize, in libusb20_tr_open_stream()
216 libusb20_tr_get_pointer(struct libusb20_device *pdev, uint16_t trIndex) in libusb20_tr_get_pointer() argument
218 if (trIndex >= pdev->nTransfer) { in libusb20_tr_get_pointer()
221 return (pdev->pTransfer + trIndex); in libusb20_tr_get_pointer()
312 xfer->pdev->methods->tr_cancel_async(xfer); in libusb20_tr_stop()
335 xfer->pdev->methods->tr_clear_stall_sync(xfer); in libusb20_tr_clear_stall_sync()
463 struct libusb20_device *pdev = xfer->pdev; in libusb20_tr_bulk_intr_sync() local
492 while (libusb20_dev_process(pdev) == 0) { in libusb20_tr_bulk_intr_sync()
497 libusb20_dev_wait_process(pdev, -1); in libusb20_tr_bulk_intr_sync()
[all …]
H A Dlibusb20_ugen20.c132 ugen20_enumerate(struct libusb20_device *pdev, const char *id) in ugen20_enumerate() argument
142 pdev->bus_number = ugen20_path_convert_one(&tmp); in ugen20_enumerate()
143 pdev->device_address = ugen20_path_convert_one(&tmp); in ugen20_enumerate()
146 pdev->bus_number, pdev->device_address); in ugen20_enumerate()
157 pdev->session_data.plugtime = plugtime; in ugen20_enumerate()
163 LIBUSB20_INIT(LIBUSB20_DEVICE_DESC, &(pdev->ddesc)); in ugen20_enumerate()
165 libusb20_me_decode(&ddesc, sizeof(ddesc), &(pdev->ddesc)); in ugen20_enumerate()
167 if (pdev->ddesc.bNumConfigurations == 0) { in ugen20_enumerate()
170 } else if (pdev->ddesc.bNumConfigurations >= 8) { in ugen20_enumerate()
180 pdev->usb_mode = LIBUSB20_MODE_DEVICE; in ugen20_enumerate()
[all …]
H A Dlibusb20.h202 struct libusb20_transfer *libusb20_tr_get_pointer(struct libusb20_device *pdev, uint16_t tr_index);
237 const char *libusb20_dev_get_backend_name(struct libusb20_device *pdev);
238 const char *libusb20_dev_get_desc(struct libusb20_device *pdev);
239 int libusb20_dev_close(struct libusb20_device *pdev);
240 int libusb20_dev_detach_kernel_driver(struct libusb20_device *pdev, uint8_t iface_index);
241 int libusb20_dev_set_config_index(struct libusb20_device *pdev, uint8_t configIndex);
242 int libusb20_dev_get_debug(struct libusb20_device *pdev);
243 int libusb20_dev_get_fd(struct libusb20_device *pdev);
244 int libusb20_dev_kernel_driver_active(struct libusb20_device *pdev, uint8_t iface_index);
245 int libusb20_dev_open(struct libusb20_device *pdev, uint16_t transfer_max);
[all …]
H A Dlibusb10.c230 struct libusb20_device *pdev; in libusb_get_device_list() local
247 pdev = NULL; in libusb_get_device_list()
249 while ((pdev = libusb20_be_device_foreach(usb_backend, pdev))) in libusb_get_device_list()
260 while ((pdev = libusb20_be_device_foreach(usb_backend, NULL))) { in libusb_get_device_list()
274 libusb20_be_dequeue_device(usb_backend, pdev); in libusb_get_device_list()
285 dev->os_priv = pdev; in libusb_get_device_list()
286 pdev->privLuData = dev; in libusb_get_device_list()
458 struct libusb20_device *pdev = dev->os_priv; in libusb_open() local
472 err = libusb20_dev_open(pdev, 16 * 4 /* number of endpoints */ ); in libusb_open()
477 libusb10_add_pollfd(ctx, &dev->dev_poll, pdev, libusb20_dev_get_fd(pdev), POLLIN | in libusb_open()
[all …]
H A Dlibusb20_int.h57 typedef int (libusb20_close_device_t)(struct libusb20_device *pdev);
58 typedef int (libusb20_dev_get_info_t)(struct libusb20_device *pdev, struct usb_device_info *pinfo);
59 typedef int (libusb20_dev_get_iface_desc_t)(struct libusb20_device *pdev, uint8_t iface_index, char…
61 typedef int (libusb20_open_device_t)(struct libusb20_device *pdev, uint16_t transfer_count_max);
99 typedef int (libusb20_detach_kernel_driver_t)(struct libusb20_device *pdev, uint8_t iface_index);
100 typedef int (libusb20_do_request_sync_t)(struct libusb20_device *pdev, struct LIBUSB20_CONTROL_SETU…
101 typedef int (libusb20_get_config_desc_full_t)(struct libusb20_device *pdev, uint8_t **ppbuf, uint16…
102 typedef int (libusb20_get_config_index_t)(struct libusb20_device *pdev, uint8_t *pindex);
103 typedef int (libusb20_kernel_driver_active_t)(struct libusb20_device *pdev, uint8_t iface_index);
104 typedef int (libusb20_process_t)(struct libusb20_device *pdev);
[all …]
H A Dlibusb01.c110 struct libusb20_device *pdev = (void *)dev; in usb_get_transfer_by_ep_no() local
123 speed = libusb20_dev_get_speed(pdev); in usb_get_transfer_by_ep_no()
136 xfer = libusb20_tr_get_pointer(pdev, x); in usb_get_transfer_by_ep_no()
539 struct libusb20_device *pdev; in usb_fetch_and_parse_descriptors() local
551 pdev = (void *)udev; in usb_fetch_and_parse_descriptors()
569 error = (pdev->methods->get_config_desc_full) ( in usb_fetch_and_parse_descriptors()
570 pdev, &ptr, &len, x); in usb_fetch_and_parse_descriptors()
765 struct libusb20_device *pdev = (void *)dev; in usb_claim_interface() local
767 pdev->claimed_interface = interface; in usb_claim_interface()
782 struct libusb20_device *pdev = (void *)dev; in usb_set_altinterface() local
[all …]
/dflybsd-src/tools/tools/usbtest/
H A Dusb_control_ep_test.c81 struct libusb20_device *pdev; in usb_control_ep_error_test() local
89 pdev = find_usb_device(vid, pid); in usb_control_ep_error_test()
90 if (pdev == NULL) { in usb_control_ep_error_test()
94 error = libusb20_dev_open(pdev, 0); in usb_control_ep_error_test()
97 libusb20_dev_free(pdev); in usb_control_ep_error_test()
101 bus = libusb20_dev_get_bus_number(pdev); in usb_control_ep_error_test()
102 dev = libusb20_dev_get_address(pdev); in usb_control_ep_error_test()
117 error = libusb20_dev_request_sync(pdev, &req, buffer, in usb_control_ep_error_test()
128 error = libusb20_dev_request_sync(pdev, &req, buffer, in usb_control_ep_error_test()
133 error = libusb20_dev_request_sync(pdev, &req, buffer, in usb_control_ep_error_test()
[all …]
H A Dusb_msc_test.c863 struct libusb20_device *pdev; in show_host_device_selection() local
876 pdev = NULL; in show_host_device_selection()
881 while ((pdev = libusb20_be_device_foreach(pbe, pdev))) { in show_host_device_selection()
883 if (libusb20_dev_get_mode(pdev) != LIBUSB20_MODE_HOST) in show_host_device_selection()
887 ddesc = libusb20_dev_get_device_desc(pdev); in show_host_device_selection()
888 ptr = libusb20_dev_get_desc(pdev); in show_host_device_selection()
922 struct libusb20_device *pdev = NULL; in find_usb_device() local
925 while ((pdev = libusb20_be_device_foreach(pbe, pdev))) { in find_usb_device()
927 if (libusb20_dev_get_mode(pdev) != LIBUSB20_MODE_HOST) in find_usb_device()
930 ddesc = libusb20_dev_get_device_desc(pdev); in find_usb_device()
[all …]
/dflybsd-src/sys/dev/drm/amd/amdgpu/
H A Damdgpu_cgs.c255 if ((adev->pdev->revision == 0x81) && in amdgpu_cgs_get_firmware_info()
256 ((adev->pdev->device == 0x6810) || in amdgpu_cgs_get_firmware_info()
257 (adev->pdev->device == 0x6811))) { in amdgpu_cgs_get_firmware_info()
265 if (((adev->pdev->device == 0x6820) && in amdgpu_cgs_get_firmware_info()
266 ((adev->pdev->revision == 0x81) || in amdgpu_cgs_get_firmware_info()
267 (adev->pdev->revision == 0x83))) || in amdgpu_cgs_get_firmware_info()
268 ((adev->pdev->device == 0x6821) && in amdgpu_cgs_get_firmware_info()
269 ((adev->pdev->revision == 0x83) || in amdgpu_cgs_get_firmware_info()
270 (adev->pdev->revision == 0x87))) || in amdgpu_cgs_get_firmware_info()
271 ((adev->pdev->revision == 0x87) && in amdgpu_cgs_get_firmware_info()
[all …]
H A Damdgpu_drv.c797 static int amdgpu_kick_out_firmware_fb(struct pci_dev *pdev) in amdgpu_kick_out_firmware_fb() argument
807 ap->ranges[0].base = pci_resource_start(pdev, 0); in amdgpu_kick_out_firmware_fb()
808 ap->ranges[0].size = pci_resource_len(pdev, 0); in amdgpu_kick_out_firmware_fb()
811 primary = pdev->resource[PCI_ROM_RESOURCE].flags & IORESOURCE_ROM_SHADOW; in amdgpu_kick_out_firmware_fb()
821 static int amdgpu_pci_probe(struct pci_dev *pdev, in amdgpu_pci_probe() argument
857 dev_info(&pdev->dev, in amdgpu_pci_probe()
859 dev_info(&pdev->dev, in amdgpu_pci_probe()
874 dev_info(&pdev->dev, in amdgpu_pci_probe()
876 dev_info(&pdev->dev, in amdgpu_pci_probe()
885 ret = amdgpu_kick_out_firmware_fb(pdev); in amdgpu_pci_probe()
[all …]
H A Damdgpu_bios.c100 vram_base = pci_resource_start(adev->pdev, 0); in igp_read_bios_from_vram()
130 bios = pci_map_rom(adev->pdev, &size); in amdgpu_read_bios()
137 pci_unmap_rom(adev->pdev, bios); in amdgpu_read_bios()
142 pci_unmap_rom(adev->pdev, bios); in amdgpu_read_bios()
196 phys_addr_t rom = adev->pdev->rom; in amdgpu_read_platform_bios()
197 size_t romlen = adev->pdev->romlen; in amdgpu_read_platform_bios()
291 while ((pdev = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8, pdev)) != NULL) {
326 while ((pdev = pci_get_class(PCI_CLASS_DISPLAY_OTHER << 8, pdev)) != NULL) {
327 dhandle = ACPI_HANDLE(&pdev->dev);
423 vhdr->PCIBus == adev->pdev->bus->number &&
[all …]
/dflybsd-src/sys/dev/drm/
H A Ddrm_dragonfly.c106 static void drm_fill_pdev(device_t dev, struct pci_dev *pdev) in drm_fill_pdev() argument
112 pdev->dev.bsddev = dev; in drm_fill_pdev()
113 pdev->devfn = PCI_DEVFN(pci_get_slot(dev), pci_get_function(dev)); in drm_fill_pdev()
114 pdev->vendor = pci_get_vendor(dev); in drm_fill_pdev()
115 pdev->device = pci_get_device(dev); in drm_fill_pdev()
116 pdev->subsystem_vendor = pci_get_subvendor(dev); in drm_fill_pdev()
117 pdev->subsystem_device = pci_get_subdevice(dev); in drm_fill_pdev()
119 pdev->revision = pci_get_revid(dev) & 0xff; in drm_fill_pdev()
121 pdev->_irq_type = pci_alloc_1intr(dev, msi_enable, in drm_fill_pdev()
122 &pdev->_irqrid, &irq_flags); in drm_fill_pdev()
[all …]
H A Ddrm_pci.c64 dmah->vaddr = dma_alloc_coherent(&dev->pdev->dev, size, &dmah->busaddr, GFP_KERNEL); in drm_pci_alloc()
106 dma_free_coherent(&dev->pdev->dev, dmah->size, dmah->vaddr, in __drm_legacy_pci_free()
141 return pci_domain_nr(dev->pdev->bus); in drm_get_pci_domain()
151 dev->pdev->bus->number, in drm_pci_set_busid()
152 PCI_SLOT(dev->pdev->devfn), in drm_pci_set_busid()
153 PCI_FUNC(dev->pdev->devfn)); in drm_pci_set_busid()
164 (p->busnum & 0xff) != dev->pdev->bus->number || in drm_pci_irq_by_busid()
165 p->devnum != PCI_SLOT(dev->pdev->devfn) || p->funcnum != PCI_FUNC(dev->pdev->devfn)) in drm_pci_irq_by_busid()
168 p->irq = dev->pdev->irq; in drm_pci_irq_by_busid()
196 if (WARN_ON(!dev->pdev)) in drm_irq_by_busid()
[all …]
/dflybsd-src/sys/dev/drm/include/linux/
H A Dpci.h122 pci_read_config_byte(struct pci_dev *pdev, int where, u8 *val) in pci_read_config_byte() argument
124 *val = (u8)pci_read_config(pdev->dev.bsddev, where, 1); in pci_read_config_byte()
129 pci_read_config_word(struct pci_dev *pdev, int where, u16 *val) in pci_read_config_word() argument
131 *val = (u16)pci_read_config(pdev->dev.bsddev, where, 2); in pci_read_config_word()
136 pci_read_config_dword(struct pci_dev *pdev, int where, u32 *val) in pci_read_config_dword() argument
138 *val = (u32)pci_read_config(pdev->dev.bsddev, where, 4); in pci_read_config_dword()
143 pci_write_config_byte(struct pci_dev *pdev, int where, u8 val) in pci_write_config_byte() argument
145 pci_write_config(pdev->dev.bsddev, where, val, 1); in pci_write_config_byte()
150 pci_write_config_word(struct pci_dev *pdev, int where, u16 val) in pci_write_config_word() argument
152 pci_write_config(pdev->dev.bsddev, where, val, 2); in pci_write_config_word()
[all …]
H A Dvga_switcheroo.h122 enum vga_switcheroo_client_id (*get_client_id)(struct pci_dev *pdev);
152 int vga_switcheroo_register_audio_client(struct pci_dev *pdev,
163 int vga_switcheroo_lock_ddc(struct pci_dev *pdev);
164 int vga_switcheroo_unlock_ddc(struct pci_dev *pdev);
171 void vga_switcheroo_set_dynamic_switch(struct pci_dev *pdev, enum vga_switcheroo_state dynamic);
190 static inline int vga_switcheroo_register_audio_client(struct pci_dev *pdev, in vga_switcheroo_register_audio_client() argument
195 static inline int vga_switcheroo_lock_ddc(struct pci_dev *pdev) { return -ENODEV; } in vga_switcheroo_lock_ddc() argument
196 static inline int vga_switcheroo_unlock_ddc(struct pci_dev *pdev) { return -ENODEV; } in vga_switcheroo_unlock_ddc() argument
198 static inline bool vga_switcheroo_client_probe_defer(struct pci_dev *pdev) { return false; } in vga_switcheroo_client_probe_defer() argument
202 static inline void vga_switcheroo_set_dynamic_switch(struct pci_dev *pdev, enum vga_switcheroo_stat…
/dflybsd-src/usr.sbin/usbconfig/
H A Ddump.c41 #define DUMP0(n,type,field,...) dump_field(pdev, " ", #field, n->field);
42 #define DUMP1(n,type,field,...) dump_field(pdev, " ", #field, n->field);
43 #define DUMP2(n,type,field,...) dump_field(pdev, " ", #field, n->field);
44 #define DUMP3(n,type,field,...) dump_field(pdev, " ", #field, n->field);
96 dump_field(struct libusb20_device *pdev, const char *plevel, in dump_field() argument
150 if (libusb20_dev_req_string_simple_sync(pdev, value, in dump_field()
269 dump_endpoint(struct libusb20_device *pdev, in dump_endpoint() argument
281 dump_iface(struct libusb20_device *pdev, in dump_iface() argument
293 dump_endpoint(pdev, iface->endpoints + z); in dump_iface()
299 dump_device_info(struct libusb20_device *pdev, uint8_t show_ifdrv) in dump_device_info() argument
[all …]
H A Dusbconfig.c314 struct libusb20_device *pdev = NULL; in flush_command() local
371 while ((pdev = libusb20_be_device_foreach(pbe, pdev))) { in flush_command()
374 (libusb20_dev_get_bus_number(pdev) != opt->bus)) { in flush_command()
378 (libusb20_dev_get_address(pdev) != opt->addr)) { in flush_command()
386 ddesc = libusb20_dev_get_device_desc(pdev); in flush_command()
397 ddesc = libusb20_dev_get_device_desc(pdev); in flush_command()
405 if (libusb20_dev_open(pdev, 0)) { in flush_command()
409 dump_string_by_index(pdev, opt->string_index); in flush_command()
415 if (libusb20_dev_request_sync(pdev, &opt->setup, in flush_command()
443 if (libusb20_dev_set_config_index(pdev, in flush_command()
[all …]
/dflybsd-src/sys/dev/drm/radeon/
H A Dradeon_drv.c354 static int radeon_kick_out_firmware_fb(struct pci_dev *pdev) in radeon_kick_out_firmware_fb() argument
363 ap->ranges[0].base = pci_resource_start(pdev, 0); in radeon_kick_out_firmware_fb()
364 ap->ranges[0].size = pci_resource_len(pdev, 0); in radeon_kick_out_firmware_fb()
367 primary = pdev->resource[PCI_ROM_RESOURCE].flags & IORESOURCE_ROM_SHADOW; in radeon_kick_out_firmware_fb()
376 static int radeon_pci_probe(struct pci_dev *pdev, in radeon_pci_probe() argument
382 if (vga_switcheroo_client_probe_defer(pdev)) in radeon_pci_probe()
386 ret = radeon_kick_out_firmware_fb(pdev); in radeon_pci_probe()
391 return drm_get_pci_dev(pdev, ent, &kms_driver); in radeon_pci_probe()
396 radeon_pci_remove(struct pci_dev *pdev) in radeon_pci_remove() argument
398 struct drm_device *dev = pci_get_drvdata(pdev); in radeon_pci_remove()
[all …]
H A Dradeon_irq_kms.c222 rdev->pdev->no_64bit_msi = 1;
233 if ((rdev->pdev->device == 0x791f) &&
234 (rdev->pdev->subsystem_vendor == 0x103c) &&
235 (rdev->pdev->subsystem_device == 0x30c2))
239 if ((rdev->pdev->device == 0x791f) &&
240 (rdev->pdev->subsystem_vendor == 0x1028) &&
241 (rdev->pdev->subsystem_device == 0x01fc))
245 if ((rdev->pdev->device == 0x791f) &&
246 (rdev->pdev->subsystem_vendor == 0x1028) &&
247 (rdev->pdev->subsystem_device == 0x01fd))
[all …]
H A Dradeon_device.c160 if (rdev->pdev->vendor == p->chip_vendor && in radeon_device_handle_px_quirks()
161 rdev->pdev->device == p->chip_device && in radeon_device_handle_px_quirks()
162 rdev->pdev->subsystem_vendor == p->subsys_vendor && in radeon_device_handle_px_quirks()
163 rdev->pdev->subsystem_device == p->subsys_device) { in radeon_device_handle_px_quirks()
217 pci_write_config_dword(rdev->pdev, 0x7c, RADEON_ASIC_RESET_DATA); in radeon_pci_config_reset()
328 rdev->doorbell.base = pci_resource_start(rdev->pdev, 2); in radeon_doorbell_init()
329 rdev->doorbell.size = pci_resource_len(rdev->pdev, 2); in radeon_doorbell_init()
689 (rdev->pdev->subsystem_vendor == PCI_VENDOR_ID_APPLE) && in radeon_card_posted()
1240 static void radeon_switcheroo_set_state(struct pci_dev *pdev, enum vga_switcheroo_state state) in radeon_switcheroo_set_state() argument
1242 struct drm_device *dev = pci_get_drvdata(pdev); in radeon_switcheroo_set_state()
[all …]
/dflybsd-src/sys/dev/video/vga/
H A Dvga_switcheroo.c129 struct pci_dev *pdev; member
216 ret = vgasr_priv->handler->get_client_id(client->pdev); in vga_switcheroo_enable()
300 register_client(struct pci_dev *pdev, in register_client() argument
312 client->pdev = pdev; in register_client()
345 vga_switcheroo_register_client(struct pci_dev *pdev, in vga_switcheroo_register_client() argument
358 unit = device_get_unit(pdev->dev.bsddev); in vga_switcheroo_register_client()
367 return register_client(pdev, ops, VGA_SWITCHEROO_UNKNOWN_ID, in vga_switcheroo_register_client()
385 vga_switcheroo_register_audio_client(struct pci_dev *pdev, in vga_switcheroo_register_audio_client() argument
389 return register_client(pdev, ops, id | ID_BIT_AUDIO, false, false); in vga_switcheroo_register_audio_client()
394 find_client_from_pci(struct list_head *head, struct pci_dev *pdev) in find_client_from_pci() argument
[all …]
/dflybsd-src/sys/dev/virtual/amazon/ena/
H A Dena.c273 device_t pdev = adapter->pdev; in ena_allocate_pci_resources() local
278 adapter->registers = bus_alloc_resource_any(pdev, SYS_RES_MEMORY, in ena_allocate_pci_resources()
281 device_printf(pdev, "Unable to allocate bus resource: " in ena_allocate_pci_resources()
292 device_t pdev = adapter->pdev; in ena_free_pci_resources() local
295 bus_release_resource(pdev, SYS_RES_MEMORY, in ena_free_pci_resources()
300 bus_release_resource(pdev, SYS_RES_MEMORY, in ena_free_pci_resources()
342 device_printf(adapter->pdev, "Invalid MTU setting. " in ena_change_mtu()
353 device_printf(adapter->pdev, "Failed to set MTU to %d\n", in ena_change_mtu()
443 device_get_nameunit(adapter->pdev), i); in ena_init_io_rings()
445 device_get_nameunit(adapter->pdev), i); in ena_init_io_rings()
[all …]
/dflybsd-src/sys/dev/disk/dm/linear/
H A Ddm_target_linear.c43 dm_pdev_t *pdev; member
74 tlc->pdev = dmp; in dm_target_linear_init()
99 tlc->pdev->udev_name, tlc->offset); in dm_target_linear_table()
116 vn_strategy(tlc->pdev->pdev_vnode, &bp->b_bio1); in dm_target_linear_strategy()
130 offset = dm_pdev_correct_dump_offset(tlc->pdev, offset); in dm_target_linear_dump()
132 if (tlc->pdev->pdev_vnode->v_rdev == NULL) in dm_target_linear_dump()
135 return dev_ddump(tlc->pdev->pdev_vnode->v_rdev, data, 0, offset, length); in dm_target_linear_dump()
157 dm_pdev_decr(tlc->pdev); in dm_target_linear_destroy()
/dflybsd-src/sys/dev/misc/puc/
H A Dpuc.c209 struct puc_device *pdev; in puc_pci_attach() local
288 pdev = kmalloc(sizeof(struct puc_device), M_DEVBUF, in puc_pci_attach()
290 resource_list_init(&pdev->resources); in puc_pci_attach()
293 resource_list_add(&pdev->resources, SYS_RES_IRQ, 0, in puc_pci_attach()
297 rle = resource_list_find(&pdev->resources, SYS_RES_IRQ, 0); in puc_pci_attach()
302 resource_list_add(&pdev->resources, SYS_RES_IOPORT, 0, in puc_pci_attach()
306 rle = resource_list_find(&pdev->resources, SYS_RES_IOPORT, 0); in puc_pci_attach()
324 pdev->serialfreq = sc->sc_desc->ports[i].serialfreq; in puc_pci_attach()
334 kfree(pdev, M_DEVBUF); in puc_pci_attach()
338 device_set_ivars(sc->sc_ports[i].dev, pdev); in puc_pci_attach()
[all …]
/dflybsd-src/sys/dev/drm/i915/
H A Di915_drv.c287 struct pci_dev *pdev = dev_priv->drm.pdev; in i915_getparam() local
299 value = pdev->device; in i915_getparam()
302 value = pdev->revision; in i915_getparam()
592 static void i915_switcheroo_set_state(struct pci_dev *pdev, enum vga_switcheroo_state state)
594 struct drm_device *dev = pci_get_drvdata(pdev);
601 pci_set_power_state(pdev, PCI_D0);
612 static bool i915_switcheroo_can_switch(struct pci_dev *pdev)
614 struct drm_device *dev = pci_get_drvdata(pdev);
667 ret = vga_client_register(pdev, dev_priv, NULL, i915_vga_set_decode); in i915_load_modeset_init()
673 ret = vga_switcheroo_register_client(pdev, &i915_switcheroo_ops, false); in i915_load_modeset_init()
[all …]

1234567