Home
last modified time | relevance | path

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

123456

/freebsd-13.1/lib/libusb/
H A Dlibusb20.c476 struct libusb20_device *pdev = xfer->pdev; in libusb20_tr_bulk_intr_sync() local
605 error = pdev->beMethods->close_device(pdev); in libusb20_dev_close()
687 xfer->pdev = pdev; in libusb20_dev_open()
716 error = pdev->methods->reset_device(pdev); in libusb20_dev_reset()
725 error = pdev->methods->check_connected(pdev); in libusb20_dev_check_connected()
770 memcpy(buf, pdev->port_path, pdev->port_level); in libusb20_dev_get_port_path()
812 error = pdev->methods->do_request_sync(pdev, in libusb20_dev_request_sync()
1005 pdev = malloc(sizeof(*pdev)); in libusb20_dev_alloc()
1009 memset(pdev, 0, sizeof(*pdev)); in libusb20_dev_alloc()
1089 error = pdev->methods->process(pdev); in libusb20_dev_process()
[all …]
H A Dlibusb20_ugen20.c149 pdev->bus_number, pdev->device_address); in ugen20_enumerate()
218 snprintf(pdev->usb_desc, sizeof(pdev->usb_desc), in ugen20_enumerate()
305 if (pdev == NULL) { in ugen20_init_backend()
388 pdev->bus_number, pdev->device_address); in ugen20_open_device()
414 pdev->file = f; in ugen20_open_device()
415 pdev->file_ctrl = g; in ugen20_open_device()
432 pdev->file = -1; in ugen20_open_device()
452 pdev->nTransfer = 0; in ugen20_close_device()
454 close(pdev->file); in ugen20_close_device()
456 pdev->file = -1; in ugen20_close_device()
[all …]
H A Dlibusb20.h246 const char *libusb20_dev_get_desc(struct libusb20_device *pdev);
247 int libusb20_dev_close(struct libusb20_device *pdev);
250 int libusb20_dev_get_debug(struct libusb20_device *pdev);
251 int libusb20_dev_get_fd(struct libusb20_device *pdev);
255 int libusb20_dev_process(struct libusb20_device *pdev);
259 int libusb20_dev_reset(struct libusb20_device *pdev);
260 int libusb20_dev_check_connected(struct libusb20_device *pdev);
272 uint8_t libusb20_dev_get_address(struct libusb20_device *pdev);
276 uint8_t libusb20_dev_get_mode(struct libusb20_device *pdev);
277 uint8_t libusb20_dev_get_speed(struct libusb20_device *pdev);
[all …]
H A Dlibusb10.c298 pdev = NULL; in libusb_get_device_list()
300 while ((pdev = libusb20_be_device_foreach(usb_backend, pdev))) in libusb_get_device_list()
550 *devh = pdev; in libusb_open()
574 pdev = NULL; in libusb_open_device_with_vid_pid()
594 return (pdev); in libusb_open_device_with_vid_pid()
603 if (pdev == NULL) in libusb_close()
623 if (pdev == NULL) in libusb_get_device()
778 pdev, libusb20_dev_get_fd(pdev), in libusb_set_interface_alt_setting()
849 pdev, libusb20_dev_get_fd(pdev), in libusb_reset_device()
873 if (pdev == NULL) in libusb_kernel_driver_active()
[all …]
H A Dlibusb20_int.h59 typedef int (libusb20_close_device_t)(struct libusb20_device *pdev);
63 typedef int (libusb20_open_device_t)(struct libusb20_device *pdev, uint16_t transfer_count_max);
104 typedef int (libusb20_get_config_index_t)(struct libusb20_device *pdev, uint8_t *pindex);
106 typedef int (libusb20_process_t)(struct libusb20_device *pdev);
107 typedef int (libusb20_reset_device_t)(struct libusb20_device *pdev);
108 typedef int (libusb20_set_power_mode_t)(struct libusb20_device *pdev, uint8_t power_mode);
109 typedef int (libusb20_get_power_mode_t)(struct libusb20_device *pdev, uint8_t *power_mode);
110 typedef int (libusb20_get_power_usage_t)(struct libusb20_device *pdev, uint16_t *power_usage);
113 typedef int (libusb20_set_config_index_t)(struct libusb20_device *pdev, uint8_t index);
114 typedef int (libusb20_check_connected_t)(struct libusb20_device *pdev);
[all …]
H A Dlibusb01.c553 pdev = (void *)udev; in usb_fetch_and_parse_descriptors()
890 udev = pdev->privLuData; in usb_find_devices()
892 libusb20_dev_free(pdev); in usb_find_devices()
911 pdev = NULL; in usb_find_devices()
912 while ((pdev = libusb20_be_device_foreach(usb_backend, pdev))) { in usb_find_devices()
949 udev->dev = pdev; in usb_find_devices()
969 pdev = (void *)dev; in usb_device()
987 pdev = (void *)dev; in usb_get_driver_np()
989 if (pdev == NULL) in usb_get_driver_np()
1014 pdev = (void *)dev; in usb_detach_kernel_driver_np()
[all …]
/freebsd-13.1/tools/tools/usbtest/
H A Dusb_control_ep_test.c90 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 Dusb_msc_test.c875 pdev = NULL; in show_host_device_selection()
880 while ((pdev = libusb20_be_device_foreach(pbe, pdev))) { in show_host_device_selection()
924 while ((pdev = libusb20_be_device_foreach(pbe, pdev))) { in find_usb_device()
944 return (pdev); in find_usb_device()
1025 if (pdev == NULL) { in exec_host_msc_test()
1033 libusb20_dev_free(pdev); in exec_host_msc_test()
1041 libusb20_dev_free(pdev); in exec_host_msc_test()
1051 libusb20_dev_free(pdev); in exec_host_msc_test()
1058 libusb20_dev_free(pdev); in exec_host_msc_test()
1061 usb_pdev = pdev; in exec_host_msc_test()
[all …]
/freebsd-13.1/sys/dev/xen/pcifront/
H A Dpcifront.c139 pdev = NULL; in alloc_pdev()
158 return pdev; in alloc_pdev()
165 pdev->ref_cnt++; in get_pdev()
178 xenbus_free_evtchn(pdev->xdev, pdev->evtchn); in put_pdev()
195 err = xenbus_grant_ring(pdev->xdev, virt_to_mfn(pdev->sh_info)); in pcifront_publish_info()
203 err = xenbus_alloc_evtchn(pdev->xdev, &pdev->evtchn); in pcifront_publish_info()
263 pdev->ndev = BUS_ADD_CHILD(nexus, 0, "xpcife", pdev->unit); in pcifront_connect()
268 get_pdev(pdev); in pcifront_connect()
269 device_set_ivars(pdev->ndev, pdev); in pcifront_connect()
319 put_pdev(pdev); in pcifront_probe()
[all …]
/freebsd-13.1/sys/compat/linuxkpi/common/src/
H A Dlinux_pci.c292 pdev->bus->self = pdev; in lkpifill_pci_dev()
315 if (pdev->bus->self != pdev) in lkpinew_pci_dev_release()
435 pdev->irq = pdev->dev.irq; in linux_pci_attach_device()
485 pdev->pdrv->remove(pdev); in linux_pci_detach_device()
605 error = -pdev->pdrv->suspend(pdev, pm); in linux_pci_suspend()
627 error = -pdev->pdrv->resume(pdev); in linux_pci_resume()
645 pdev->pdrv->shutdown(pdev); in linux_pci_shutdown()
732 dev = pdev->pdrv != NULL && linux_is_drm(pdev->pdrv) ? in linux_pci_reserve_bar()
750 dev = pdev->pdrv != NULL && linux_is_drm(pdev->pdrv) ? in pci_resource_start()
919 return (pdev->dev.irq_end - pdev->dev.irq_start); in pci_alloc_irq_vectors()
[all …]
/freebsd-13.1/sys/compat/linuxkpi/common/include/linux/
H A Dpci.h402 struct pci_dev *pdev; in linux_pci_find_irq_dev() local
409 (irq >= pdev->dev.irq_start && irq < pdev->dev.irq_end)) { in linux_pci_find_irq_dev()
457 if (pdev != NULL) in pci_dev_get()
459 return (pdev); in pci_dev_get()
466 if (pdev != NULL) in pci_dev_put()
529 if (pdev == pdev->bus->self) { in pci_upstream_bridge()
556 if (!pdev->managed) in lkpi_pci_devres_find()
637 #define pci_disable_msix(pdev) lkpi_pci_disable_msix(pdev) argument
647 pdev->irq = pdev->dev.irq; in lkpi_pci_disable_msi()
650 #define pci_disable_msi(pdev) lkpi_pci_disable_msi(pdev) argument
[all …]
/freebsd-13.1/sys/dev/ow/
H A Down.h42 device_t ndev = device_get_parent(pdev); in own_send_command()
54 own_acquire_bus(device_t pdev, int how) in own_acquire_bus() argument
56 device_t ndev = device_get_parent(pdev); in own_acquire_bus()
58 return OWN_ACQUIRE_BUS(ndev, pdev, how); in own_acquire_bus()
62 own_release_bus(device_t pdev) in own_release_bus() argument
64 device_t ndev = device_get_parent(pdev); in own_release_bus()
66 OWN_RELEASE_BUS(ndev, pdev); in own_release_bus()
83 mep = ow_get_romid(pdev); in own_self_command()
96 rv = own_acquire_bus(pdev, OWN_WAIT); in own_command_wait()
99 rv = own_send_command(pdev, cmd); in own_command_wait()
[all …]
/freebsd-13.1/usr.sbin/usbconfig/
H A Ddump.c271 dump_endpoint(struct libusb20_device *pdev, in dump_endpoint() argument
283 dump_iface(struct libusb20_device *pdev, in dump_iface() argument
295 dump_endpoint(pdev, iface->endpoints + z); in dump_iface()
307 usage = libusb20_dev_get_power_usage(pdev); in dump_device_info()
310 libusb20_dev_get_desc(pdev), in dump_device_info()
311 libusb20_dev_get_config_index(pdev), in dump_device_info()
326 libusb20_dev_get_bus_number(pdev), in dump_device_info()
435 dump_iface(pdev, pcfg->interface + x); in dump_config()
439 dump_iface(pdev, in dump_config()
463 if (libusb20_dev_req_string_sync(pdev, in dump_string_by_index()
[all …]
H A Dusbconfig.c378 while ((pdev = libusb20_be_device_foreach(pbe, pdev))) { in flush_command()
412 if (libusb20_dev_open(pdev, 0)) { in flush_command()
462 if (libusb20_dev_reset(pdev)) { in flush_command()
510 dump_device_info(pdev, in flush_command()
515 dump_device_desc(pdev); in flush_command()
519 dump_config(pdev, 1); in flush_command()
522 dump_config(pdev, 0); in flush_command()
525 dump_device_desc(pdev); in flush_command()
526 dump_config(pdev, 1); in flush_command()
530 dump_device_stats(pdev); in flush_command()
[all …]
H A Ddump.h35 void dump_string_by_index(struct libusb20_device *pdev, uint8_t index);
36 void dump_device_info(struct libusb20_device *pdev, uint8_t show_drv);
39 void dump_device_desc(struct libusb20_device *pdev);
40 void dump_device_stats(struct libusb20_device *pdev);
41 void dump_config(struct libusb20_device *pdev, uint8_t all_cfg);
/freebsd-13.1/sys/dev/ena/
H A Dena.c205 device_t pdev = adapter->pdev; in ena_dma_alloc() local
276 device_t pdev = adapter->pdev; in ena_free_pci_resources() local
328 device_t pdev = adapter->pdev; in ena_change_mtu() local
611 device_t pdev = adapter->pdev; in ena_setup_tx_resources() local
847 device_t pdev = adapter->pdev; in ena_setup_rx_resources() local
1001 device_t pdev = adapter->pdev; in ena_alloc_rx_mbuf() local
1087 device_t pdev = adapter->pdev; in ena_refill_rx_bufs() local
1721 device_t pdev = adapter->pdev; in ena_request_mgmnt_irq() local
1766 device_t pdev = adapter->pdev; in ena_request_io_irq() local
3538 adapter->pdev = pdev; in ena_attach()
[all …]
H A Dena_sysctl.c121 dev = adapter->pdev; in ena_sysctl_add_wd()
176 dev = adapter->pdev; in ena_sysctl_add_stats()
361 dev = adapter->pdev; in ena_sysctl_add_eni_metrics()
409 dev = adapter->pdev; in ena_sysctl_add_tuneables()
444 dev = adapter->pdev; in ena_sysctl_add_rss()
493 dev = adapter->pdev; in ena_sysctl_update_queue_node_nb()
532 ena_log(adapter->pdev, ERR, in ena_sysctl_buf_ring_size()
546 ena_log(adapter->pdev, ERR, in ena_sysctl_buf_ring_size()
580 ena_log(adapter->pdev, ERR, in ena_sysctl_rx_queue_size()
589 ena_log(adapter->pdev, ERR, in ena_sysctl_rx_queue_size()
[all …]
H A Dena_datapath.c427 device_t pdev; in ena_rx_mbuf() local
433 pdev = adapter->pdev; in ena_rx_mbuf()
528 device_t pdev = rx_ring->adapter->pdev; in ena_rx_checksum() local
564 device_t pdev; in ena_rx_cleanup() local
584 pdev = adapter->pdev; in ena_rx_cleanup()
597 ena_log_io(pdev, DBG, "rx: qid %d\n", qid); in ena_rx_cleanup()
874 ena_log_io(adapter->pdev, WARN, in ena_tx_map_mbuf()
964 device_t pdev; in ena_xmit_mbuf() local
979 pdev = adapter->pdev; in ena_xmit_mbuf()
1017 ena_log_io(pdev, DBG, in ena_xmit_mbuf()
[all …]
/freebsd-13.1/sys/dev/extres/clk/
H A Dclkdev_if.m39 device_t pdev;
42 if (pdev == NULL)
51 device_t pdev;
54 if (pdev == NULL)
64 device_t pdev;
67 if (pdev == NULL)
76 device_t pdev;
79 if (pdev == NULL)
82 CLKDEV_DEVICE_LOCK(pdev);
88 device_t pdev;
[all …]
/freebsd-13.1/sys/dev/mthca/
H A Dmthca_reset.c77 while ((bridge = pci_get_device(mdev->pdev->vendor, in mthca_reset()
78 mdev->pdev->device + 2, in mthca_reset()
81 bridge->subordinate == mdev->pdev->bus) { in mthca_reset()
95 pci_name(mdev->pdev)); in mthca_reset()
116 if (pci_read_config_dword(mdev->pdev, i * 4, hca_header + i)) { in mthca_reset()
124 hca_pcix_cap = pci_find_capability(mdev->pdev, PCI_CAP_ID_PCIX); in mthca_reset()
125 hca_pcie_cap = pci_find_capability(mdev->pdev, PCI_CAP_ID_EXP); in mthca_reset()
159 void __iomem *reset = ioremap(pci_resource_start(mdev->pdev, 0) + in mthca_reset()
246 if (pci_write_config_dword(mdev->pdev, hca_pcix_cap, in mthca_reset()
278 if (pci_write_config_dword(mdev->pdev, i * 4, hca_header[i])) { in mthca_reset()
[all …]
H A Dmthca_main.c144 if (pcix_set_mmrbc(mdev->pdev, pcix_get_max_mmrbc(mdev->pdev))) { in mthca_tune_pci()
768 dev->pdev->irq); in mthca_setup_hca()
907 pci_name(pdev)); in __mthca_init_one()
941 pci_set_master(pdev); in __mthca_init_one()
975 mdev->pdev = pdev; in __mthca_init_one()
1021 pci_disable_msix(pdev); in __mthca_init_one()
1065 pci_disable_msix(pdev); in __mthca_init_one()
1079 pci_disable_device(pdev); in __mthca_init_one()
1116 pci_disable_msix(pdev); in __mthca_remove_one()
1134 __mthca_remove_one(pdev); in __mthca_restart_one()
[all …]
/freebsd-13.1/sys/dev/extres/syscon/
H A Dsyscon.c132 SYSCON_DEVICE_LOCK(syscon->pdev); in syscon_method_read_4()
134 SYSCON_DEVICE_UNLOCK(syscon->pdev); in syscon_method_read_4()
143 SYSCON_DEVICE_LOCK(syscon->pdev); in syscon_method_write_4()
145 SYSCON_DEVICE_UNLOCK(syscon->pdev); in syscon_method_write_4()
155 SYSCON_DEVICE_LOCK(syscon->pdev); in syscon_method_modify_4()
157 SYSCON_DEVICE_UNLOCK(syscon->pdev); in syscon_method_modify_4()
164 syscon_create(device_t pdev, syscon_class_t syscon_class) in syscon_create() argument
179 syscon->pdev = pdev; in syscon_create()
191 syscon->ofw_node = ofw_bus_get_node(syscon->pdev); in syscon_register()
204 syscon->pdev); in syscon_register()
[all …]
/freebsd-13.1/sys/dev/mlx5/mlx5_core/
H A Dmlx5_main.c257 struct pci_dev *pdev = dev->pdev; in mlx5_pci_enable_device() local
273 struct pci_dev *pdev = dev->pdev; in mlx5_pci_disable_device() local
893 struct pci_dev *pdev = dev->pdev; in mlx5_pci_init() local
897 pdev = dev->pdev; in mlx5_pci_init()
919 pci_set_master(pdev); in mlx5_pci_init()
1384 dev->pdev = pdev; in init_one()
1686 pci_save_state(pdev); in init_one()
1759 pci_set_master(pdev); in mlx5_pci_slot_reset()
1762 pci_save_state(pdev); in mlx5_pci_slot_reset()
1819 wait_vital(pdev); in mlx5_pci_resume()
[all …]
/freebsd-13.1/sys/dev/flash/
H A Dn25q.c148 device_t pdev; in n25q_wait_for_device_ready() local
152 pdev = device_get_parent(dev); in n25q_wait_for_device_ready()
166 device_t pdev; in n25q_get_device_ident() local
170 pdev = device_get_parent(sc->dev); in n25q_get_device_ident()
193 device_t pdev; in n25q_write() local
196 pdev = device_get_parent(dev); in n25q_write()
201 err = QSPI_ERASE(pdev, dev, offset); in n25q_write()
215 device_t pdev; in n25q_read() local
218 pdev = device_get_parent(dev); in n25q_read()
243 device_t pdev; in n25q_set_4b_mode() local
[all …]
/freebsd-13.1/sys/dev/mlx4/mlx4_core/
H A Dmlx4_reset.c79 pcie_cap = pci_pcie_cap(dev->persist->pdev); in mlx4_reset()
84 if (pci_read_config_dword(dev->persist->pdev, i * 4, in mlx4_reset()
92 reset = ioremap(pci_resource_start(dev->persist->pdev, 0) + in mlx4_reset()
127 if (!pci_read_config_word(dev->persist->pdev, PCI_VENDOR_ID, in mlx4_reset()
143 if (pcie_capability_write_word(dev->persist->pdev, in mlx4_reset()
151 if (pcie_capability_write_word(dev->persist->pdev, in mlx4_reset()
164 if (pci_write_config_dword(dev->persist->pdev, i * 4, in mlx4_reset()
173 if (pci_write_config_dword(dev->persist->pdev, PCI_COMMAND, in mlx4_reset()

123456