/dragonfly/lib/libusb/ |
H A D | libusb20.c | 463 struct libusb20_device *pdev = xfer->pdev; in libusb20_tr_bulk_intr_sync() local 592 error = pdev->beMethods->close_device(pdev); in libusb20_dev_close() 663 xfer->pdev = pdev; in libusb20_dev_open() 692 error = pdev->methods->reset_device(pdev); in libusb20_dev_reset() 701 error = pdev->methods->check_connected(pdev); in libusb20_dev_check_connected() 769 error = pdev->methods->do_request_sync(pdev, in libusb20_dev_request_sync() 927 error = pdev->methods->get_config_desc_full(pdev, in libusb20_dev_alloc_config() 951 pdev = malloc(sizeof(*pdev)); in libusb20_dev_alloc() 955 memset(pdev, 0, sizeof(*pdev)); in libusb20_dev_alloc() 1010 error = pdev->methods->process(pdev); in libusb20_dev_process() [all …]
|
H A D | libusb20_ugen20.c | 146 pdev->bus_number, pdev->device_address); in ugen20_enumerate() 215 snprintf(pdev->usb_desc, sizeof(pdev->usb_desc), in ugen20_enumerate() 217 pdev->bus_number, pdev->device_address, in ugen20_enumerate() 295 if (pdev == NULL) { in ugen20_init_backend() 378 pdev->bus_number, pdev->device_address); in ugen20_open_device() 404 pdev->file = f; in ugen20_open_device() 405 pdev->file_ctrl = g; in ugen20_open_device() 422 pdev->file = -1; in ugen20_open_device() 442 pdev->nTransfer = 0; in ugen20_close_device() 444 close(pdev->file); in ugen20_close_device() [all …]
|
H A D | libusb20.h | 238 const char *libusb20_dev_get_desc(struct libusb20_device *pdev); 239 int libusb20_dev_close(struct libusb20_device *pdev); 242 int libusb20_dev_get_debug(struct libusb20_device *pdev); 243 int libusb20_dev_get_fd(struct libusb20_device *pdev); 246 int libusb20_dev_process(struct libusb20_device *pdev); 250 int libusb20_dev_reset(struct libusb20_device *pdev); 251 int libusb20_dev_check_connected(struct libusb20_device *pdev); 263 uint8_t libusb20_dev_get_address(struct libusb20_device *pdev); 267 uint8_t libusb20_dev_get_mode(struct libusb20_device *pdev); 268 uint8_t libusb20_dev_get_speed(struct libusb20_device *pdev); [all …]
|
H A D | libusb10.c | 247 pdev = NULL; in libusb_get_device_list() 249 while ((pdev = libusb20_be_device_foreach(usb_backend, pdev))) in libusb_get_device_list() 487 *devh = pdev; in libusb_open() 511 pdev = NULL; in libusb_open_device_with_vid_pid() 531 return (pdev); in libusb_open_device_with_vid_pid() 542 if (pdev == NULL) in libusb_close() 567 if (pdev == NULL) in libusb_get_device() 709 pdev, libusb20_dev_get_fd(pdev), in libusb_set_interface_alt_setting() 780 pdev, libusb20_dev_get_fd(pdev), in libusb_reset_device() 804 if (pdev == NULL) in libusb_kernel_driver_active() [all …]
|
H A D | libusb20_int.h | 57 typedef int (libusb20_close_device_t)(struct libusb20_device *pdev); 61 typedef int (libusb20_open_device_t)(struct libusb20_device *pdev, uint16_t transfer_count_max); 102 typedef int (libusb20_get_config_index_t)(struct libusb20_device *pdev, uint8_t *pindex); 104 typedef int (libusb20_process_t)(struct libusb20_device *pdev); 105 typedef int (libusb20_reset_device_t)(struct libusb20_device *pdev); 106 typedef int (libusb20_set_power_mode_t)(struct libusb20_device *pdev, uint8_t power_mode); 107 typedef int (libusb20_get_power_mode_t)(struct libusb20_device *pdev, uint8_t *power_mode); 109 typedef int (libusb20_get_power_usage_t)(struct libusb20_device *pdev, uint16_t *power_usage); 111 typedef int (libusb20_set_config_index_t)(struct libusb20_device *pdev, uint8_t index); 112 typedef int (libusb20_check_connected_t)(struct libusb20_device *pdev); [all …]
|
H A D | libusb01.c | 551 pdev = (void *)udev; in usb_fetch_and_parse_descriptors() 888 udev = pdev->privLuData; in usb_find_devices() 890 libusb20_dev_free(pdev); in usb_find_devices() 909 pdev = NULL; in usb_find_devices() 910 while ((pdev = libusb20_be_device_foreach(usb_backend, pdev))) { in usb_find_devices() 947 udev->dev = pdev; in usb_find_devices() 967 pdev = (void *)dev; in usb_device() 985 pdev = (void *)dev; in usb_get_driver_np() 987 if (pdev == NULL) in usb_get_driver_np() 1012 pdev = (void *)dev; in usb_detach_kernel_driver_np() [all …]
|
/dragonfly/tools/tools/usbtest/ |
H A D | usb_control_ep_test.c | 90 if (pdev == NULL) { in usb_control_ep_error_test() 97 libusb20_dev_free(pdev); in usb_control_ep_error_test() 158 libusb20_dev_free(pdev); in usb_control_ep_error_test() 174 if (pdev == NULL) { in usb_get_string_desc_test() 235 libusb20_dev_free(pdev); in usb_get_string_desc_test() 256 if (pdev == NULL) { in usb_port_reset_test() 319 if (pdev == NULL) { in usb_set_config_test() 373 if (pdev == NULL) { in usb_get_descriptor_test() 407 if (pdev == NULL) { in usb_suspend_resume_test() 482 if (pdev == NULL) { in usb_set_and_clear_stall_test() [all …]
|
H A D | usb_msc_test.c | 876 pdev = NULL; in show_host_device_selection() 881 while ((pdev = libusb20_be_device_foreach(pbe, pdev))) { in show_host_device_selection() 925 while ((pdev = libusb20_be_device_foreach(pbe, pdev))) { in find_usb_device() 942 return (pdev); in find_usb_device() 1023 if (pdev == NULL) { in exec_host_msc_test() 1031 libusb20_dev_free(pdev); in exec_host_msc_test() 1039 libusb20_dev_free(pdev); in exec_host_msc_test() 1049 libusb20_dev_free(pdev); in exec_host_msc_test() 1056 libusb20_dev_free(pdev); in exec_host_msc_test() 1059 usb_pdev = pdev; in exec_host_msc_test() [all …]
|
/dragonfly/sys/dev/drm/amd/amdgpu/ |
H A D | amdgpu_cgs.c | 283 (adev->pdev->device == 0x6604) || in amdgpu_cgs_get_firmware_info() 284 (adev->pdev->device == 0x6605) || in amdgpu_cgs_get_firmware_info() 299 (adev->pdev->device == 0x6663) || in amdgpu_cgs_get_firmware_info() 331 if (((adev->pdev->device == 0x6900) && (adev->pdev->revision == 0x81)) || in amdgpu_cgs_get_firmware_info() 332 ((adev->pdev->device == 0x6900) && (adev->pdev->revision == 0x83)) || in amdgpu_cgs_get_firmware_info() 333 ((adev->pdev->device == 0x6907) && (adev->pdev->revision == 0x87)) || in amdgpu_cgs_get_firmware_info() 334 ((adev->pdev->device == 0x6900) && (adev->pdev->revision == 0xD1)) || in amdgpu_cgs_get_firmware_info() 335 ((adev->pdev->device == 0x6900) && (adev->pdev->revision == 0xD3))) { in amdgpu_cgs_get_firmware_info() 342 if (((adev->pdev->device == 0x6939) && (adev->pdev->revision == 0xf1)) || in amdgpu_cgs_get_firmware_info() 343 ((adev->pdev->device == 0x6938) && (adev->pdev->revision == 0xf1))) { in amdgpu_cgs_get_firmware_info() [all …]
|
H A D | amdgpu_drv.c | 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() 904 dev->pdev = pdev; in amdgpu_pci_probe() 921 pci_disable_device(pdev); in amdgpu_pci_probe() 969 drm_print_pdev(pdev); in amdgpu_attach_dfly() 990 pci_disable_device(pdev); 1078 pci_save_state(pdev); 1104 pci_restore_state(pdev); [all …]
|
H A D | amdgpu_bios.c | 100 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); 426 vhdr->VendorID == adev->pdev->vendor && [all …]
|
/dragonfly/sys/dev/drm/ |
H A D | drm_dragonfly.c | 112 pdev->dev.bsddev = dev; in drm_fill_pdev() 126 if (!pdev->_irqr) in drm_fill_pdev() 129 pdev->irq = (int)rman_get_start(pdev->_irqr); in drm_fill_pdev() 138 BUG_ON(*pdev != NULL); in drm_init_pdev() 141 drm_fill_pdev(dev, *pdev); in drm_init_pdev() 152 kfree((*pdev)->bus->self); in drm_fini_pdev() 153 kfree((*pdev)->bus); in drm_fini_pdev() 155 kfree(*pdev); in drm_fini_pdev() 160 if (pdev == NULL) { in drm_print_pdev() 166 pdev->vendor, pdev->device, pdev->revision); in drm_print_pdev() [all …]
|
H A D | drm_pci.c | 151 dev->pdev->bus->number, in drm_pci_set_busid() 168 p->irq = dev->pdev->irq; in drm_pci_irq_by_busid() 196 if (WARN_ON(!dev->pdev)) in drm_irq_by_busid() 258 dev->pdev = pdev; in drm_get_pci_dev() 260 dev->hose = pdev->sysdata; in drm_get_pci_dev() 284 pci_disable_device(pdev); in drm_get_pci_dev() 326 pdev = NULL; in drm_legacy_pci_init() 327 while ((pdev = in drm_legacy_pci_init() 334 pci_dev_get(pdev); in drm_legacy_pci_init() 349 if (!dev->pdev) in drm_pcie_get_speed_cap_mask() [all …]
|
/dragonfly/sys/dev/drm/include/linux/ |
H A D | pci.h | 165 pcie_get_readrq(struct pci_dev *pdev) in pcie_get_readrq() argument 243 device_t dev = pdev->dev.bsddev; in _pci_get_rle() 292 rle = _pci_get_rle(pdev, bar); in pci_resource_len() 334 pci_name(struct pci_dev *pdev) in pci_name() argument 340 pci_get_drvdata(struct pci_dev *pdev) in pci_get_drvdata() argument 342 return pdev->pci_dev_data; in pci_get_drvdata() 348 pdev->pci_dev_data = data; in pci_set_drvdata() 365 pci_clear_master(struct pci_dev *pdev) in pci_clear_master() argument 371 pci_set_master(struct pci_dev *pdev) in pci_set_master() argument 377 pci_pcie_cap(struct pci_dev *pdev) in pci_pcie_cap() argument [all …]
|
H A D | vga_switcheroo.h | 122 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…
|
/dragonfly/usr.sbin/usbconfig/ |
H A D | dump.c | 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() 305 usage = libusb20_dev_get_power_usage(pdev); in dump_device_info() 308 libusb20_dev_get_desc(pdev), in dump_device_info() 309 libusb20_dev_get_config_index(pdev), in dump_device_info() 310 dump_mode(libusb20_dev_get_mode(pdev)), in dump_device_info() 324 libusb20_dev_get_bus_number(pdev), in dump_device_info() 433 dump_iface(pdev, pcfg->interface + x); in dump_config() 437 dump_iface(pdev, in dump_config() [all …]
|
H A D | usbconfig.c | 314 struct libusb20_device *pdev = NULL; in flush_command() local 371 while ((pdev = libusb20_be_device_foreach(pbe, pdev))) { in flush_command() 405 if (libusb20_dev_open(pdev, 0)) { in flush_command() 455 if (libusb20_dev_reset(pdev)) { in flush_command() 460 if (libusb20_dev_set_power_mode(pdev, in flush_command() 466 if (libusb20_dev_set_power_mode(pdev, in flush_command() 496 dump_device_info(pdev, in flush_command() 501 dump_device_desc(pdev); in flush_command() 505 dump_config(pdev, 1); in flush_command() 508 dump_config(pdev, 0); in flush_command() [all …]
|
/dragonfly/sys/dev/drm/radeon/ |
H A D | radeon_drv.c | 410 radeon_pci_remove(pdev); in radeon_pci_shutdown() 465 pci_save_state(pdev); in radeon_pmops_runtime_suspend() 466 pci_disable_device(pdev); in radeon_pmops_runtime_suspend() 467 pci_ignore_hotplug(pdev); in radeon_pmops_runtime_suspend() 490 pci_set_power_state(pdev, PCI_D0); in radeon_pmops_runtime_resume() 491 pci_restore_state(pdev); in radeon_pmops_runtime_resume() 492 ret = pci_enable_device(pdev); in radeon_pmops_runtime_resume() 495 pci_set_master(pdev); in radeon_pmops_runtime_resume() 715 static struct pci_dev *pdev = NULL; in radeon_pci_probe_dfly() local 740 drm_init_pdev(bsddev, &pdev); in radeon_pci_probe_dfly() [all …]
|
H A D | radeon_irq_kms.c | 222 rdev->pdev->no_64bit_msi = 1; 233 if ((rdev->pdev->device == 0x791f) && 235 (rdev->pdev->subsystem_device == 0x30c2)) 239 if ((rdev->pdev->device == 0x791f) && 241 (rdev->pdev->subsystem_device == 0x01fc)) 245 if ((rdev->pdev->device == 0x791f) && 247 (rdev->pdev->subsystem_device == 0x01fd)) 251 if ((rdev->pdev->device == 0x791f) && 253 (rdev->pdev->subsystem_device == 0x0185)) 305 int ret = pci_enable_msi(rdev->pdev); in radeon_irq_kms_init() [all …]
|
H A D | radeon_device.c | 160 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() 1309 struct pci_dev *pdev, in radeon_device_init() argument 1319 rdev->dev = &pdev->dev; in radeon_device_init() 1321 rdev->pdev = pdev; in radeon_device_init() 1336 radeon_family_name[rdev->family], pdev->vendor, pdev->device, in radeon_device_init() 1337 pdev->subsystem_vendor, pdev->subsystem_device, pdev->revision); in radeon_device_init() 1710 pci_restore_state(dev->pdev); in radeon_suspend_kms() 1715 pci_disable_device(dev->pdev); in radeon_suspend_kms() 1761 pci_restore_state(dev->pdev); in radeon_resume_kms() [all …]
|
/dragonfly/sys/dev/video/vga/ |
H A D | vga_switcheroo.c | 129 struct pci_dev *pdev; member 300 register_client(struct pci_dev *pdev, in register_client() argument 312 client->pdev = pdev; in register_client() 358 unit = device_get_unit(pdev->dev.bsddev); in vga_switcheroo_register_client() 399 if (client->pdev == pdev) in find_client_from_pci() 657 pci_name(client->pdev)); 1374 struct pci_dev *pdev = to_pci_dev(dev); 1394 struct pci_dev *pdev = to_pci_dev(dev); 1449 struct pci_dev *pdev = to_pci_dev(dev); 1458 if (PCI_SLOT(client->pdev->devfn) == PCI_SLOT(pdev->devfn) && [all …]
|
/dragonfly/sys/dev/virtual/amazon/ena/ |
H A D | ena.c | 273 device_t pdev = adapter->pdev; in ena_allocate_pci_resources() local 292 device_t pdev = adapter->pdev; in ena_free_pci_resources() local 1188 device_printf(adapter->pdev, in validate_tx_req_id() 2554 if_initname(ifp, device_get_name(pdev), device_get_unit(pdev)); in ena_setup_ifnet() 3222 device_printf(pdev, in ena_device_init() 3239 device_printf(pdev, in ena_device_init() 3628 ena_attach(device_t pdev) in ena_attach() argument 3640 adapter->pdev = pdev; in ena_attach() 3667 ena_dev->dmadev = pdev; in ena_attach() 3754 device_printf(pdev, in ena_attach() [all …]
|
/dragonfly/sys/dev/disk/dm/linear/ |
H A D | dm_target_linear.c | 43 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()
|
/dragonfly/sys/dev/misc/puc/ |
H A D | puc.c | 209 struct puc_device *pdev; in puc_pci_attach() local 334 kfree(pdev, M_DEVBUF); in puc_pci_attach() 357 kfree(pdev, M_DEVBUF); in puc_pci_attach() 608 struct puc_device *pdev; in puc_alloc_resource() local 614 rl = &pdev->resources; in puc_alloc_resource() 618 pdev, type, *rid); in puc_alloc_resource() 648 struct puc_device *pdev; in puc_get_resource() local 653 rl = &pdev->resources; in puc_get_resource() 722 struct puc_device *pdev; in puc_read_ivar() local 725 if (pdev == NULL) in puc_read_ivar() [all …]
|
/dragonfly/sys/dev/drm/i915/ |
H A D | i915_drv.c | 287 struct pci_dev *pdev = dev_priv->drm.pdev; in i915_getparam() local 299 value = pdev->device; in i915_getparam() 771 struct pci_dev *pdev = dev_priv->drm.pdev; in i915_kick_out_firmware_fb() local 1011 struct pci_dev *pdev = dev_priv->drm.pdev; in i915_mmio_setup() local 1044 struct pci_dev *pdev = dev_priv->drm.pdev; in i915_mmio_cleanup() 1143 struct pci_dev *pdev = dev_priv->drm.pdev; in i915_driver_init_hw() local 1261 struct pci_dev *pdev = dev_priv->drm.pdev; in i915_driver_cleanup_hw() 1376 dev_priv->drm.pdev = pdev; in i915_driver_load() 1597 struct pci_dev *pdev = dev_priv->drm.pdev; 1659 struct pci_dev *pdev = dev_priv->drm.pdev; [all …]
|