Home
last modified time | relevance | path

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

1234567891011

/freebsd/lib/libusb/
H A Dlibusb20.c136 error = xfer->pdev->methods->tr_close(xfer); in libusb20_tr_close()
213 error = xfer->pdev->methods->tr_open(xfer, MaxBufSize, in libusb20_tr_open_stream()
216 error = xfer->pdev->methods->tr_open(xfer, MaxBufSize, in libusb20_tr_open_stream()
230 libusb20_tr_get_pointer(struct libusb20_device *pdev, uint16_t trIndex) in libusb20_tr_get_pointer() argument
232 if (trIndex >= pdev->nTransfer) { in libusb20_tr_get_pointer()
235 return (pdev->pTransfer + trIndex); in libusb20_tr_get_pointer()
326 xfer->pdev->methods->tr_cancel_async(xfer); in libusb20_tr_stop()
349 xfer->pdev->methods->tr_clear_stall_sync(xfer); in libusb20_tr_clear_stall_sync()
483 struct libusb20_device *pdev = xfer->pdev; in libusb20_tr_bulk_intr_sync() local
512 while (libusb20_dev_process(pdev) == 0) { in libusb20_tr_bulk_intr_sync()
[all …]
H A Dlibusb20_ugen20.c258 ugen20_enumerate(struct libusb20_device *pdev, const char *id) in ugen20_enumerate() argument
268 pdev->bus_number = ugen20_path_convert_one(&tmp); in ugen20_enumerate()
269 pdev->device_address = ugen20_path_convert_one(&tmp); in ugen20_enumerate()
271 f = ugen20_open_dev(pdev->be_ctx, pdev->bus_number, in ugen20_enumerate()
272 pdev->device_address, O_RDWR); in ugen20_enumerate()
281 pdev->session_data.plugtime = plugtime; in ugen20_enumerate()
287 LIBUSB20_INIT(LIBUSB20_DEVICE_DESC, &(pdev->ddesc)); in ugen20_enumerate()
289 libusb20_me_decode(&ddesc, sizeof(ddesc), &(pdev->ddesc)); in ugen20_enumerate()
291 if (pdev->ddesc.bNumConfigurations == 0) { in ugen20_enumerate()
294 } else if (pdev->ddesc.bNumConfigurations >= 8) { in ugen20_enumerate()
[all …]
H A Dlibusb20.h211 struct libusb20_transfer *libusb20_tr_get_pointer(struct libusb20_device *pdev, uint16_t tr_index);
247 const char *libusb20_dev_get_backend_name(struct libusb20_device *pdev);
248 const char *libusb20_dev_get_desc(struct libusb20_device *pdev);
249 int libusb20_dev_close(struct libusb20_device *pdev);
250 int libusb20_dev_detach_kernel_driver(struct libusb20_device *pdev, uint8_t iface_index);
251 int libusb20_dev_attach_kernel_driver(struct libusb20_device *pdev,
253 int libusb20_dev_set_config_index(struct libusb20_device *pdev, uint8_t configIndex);
254 int libusb20_dev_get_debug(struct libusb20_device *pdev);
255 int libusb20_dev_get_fd(struct libusb20_device *pdev);
256 int libusb20_dev_get_stats(struct libusb20_device *pdev, struct libusb20_device_stats *pstat);
[all …]
H A Dlibusb10.c392 struct libusb20_device *pdev, *parent_dev; in libusb_get_device_list() local
409 pdev = NULL; in libusb_get_device_list()
411 while ((pdev = libusb20_be_device_foreach(usb_backend, pdev))) in libusb_get_device_list()
422 while ((pdev = libusb20_be_device_foreach(usb_backend, NULL))) { in libusb_get_device_list()
436 libusb20_be_dequeue_device(usb_backend, pdev); in libusb_get_device_list()
450 dev->os_priv = pdev; in libusb_get_device_list()
451 pdev->privLuData = dev; in libusb_get_device_list()
460 pdev = (*list)[j]->os_priv; in libusb_get_device_list()
468 if (parent_dev->bus_number != pdev->bus_number) in libusb_get_device_list()
470 if (parent_dev->device_address == pdev->parent_address) { in libusb_get_device_list()
[all …]
H A Dlibusb20_int.h67 typedef int (libusb20_close_device_t)(struct libusb20_device *pdev);
68 typedef int (libusb20_dev_get_info_t)(struct libusb20_device *pdev, struct usb_device_info *pinfo);
69 typedef int (libusb20_dev_get_iface_desc_t)(struct libusb20_device *pdev, uint8_t iface_index, char…
71 typedef int (libusb20_open_device_t)(struct libusb20_device *pdev, uint16_t transfer_count_max);
109 typedef int (libusb20_detach_kernel_driver_t)(struct libusb20_device *pdev, uint8_t iface_index);
110 typedef int (libusb20_attach_kernel_driver_t)(struct libusb20_device *pdev, uint8_t iface_index);
111 typedef int (libusb20_do_request_sync_t)(struct libusb20_device *pdev, struct LIBUSB20_CONTROL_SETU…
112 typedef int (libusb20_get_config_desc_full_t)(struct libusb20_device *pdev, uint8_t **ppbuf, uint16…
113 typedef int (libusb20_get_config_index_t)(struct libusb20_device *pdev, uint8_t *pindex);
114 typedef int (libusb20_kernel_driver_active_t)(struct libusb20_device *pdev, uint8_t iface_index);
[all …]
H A Dlibusb01.c118 struct libusb20_device *pdev = (void *)dev; in usb_get_transfer_by_ep_no() local
131 speed = libusb20_dev_get_speed(pdev); in usb_get_transfer_by_ep_no()
146 xfer = libusb20_tr_get_pointer(pdev, x); in usb_get_transfer_by_ep_no()
549 struct libusb20_device *pdev; in usb_fetch_and_parse_descriptors() local
561 pdev = (void *)udev; in usb_fetch_and_parse_descriptors()
579 error = (pdev->methods->get_config_desc_full) ( in usb_fetch_and_parse_descriptors()
580 pdev, &ptr, &len, x); in usb_fetch_and_parse_descriptors()
775 struct libusb20_device *pdev = (void *)dev; in usb_claim_interface() local
777 pdev->claimed_interface = interface; in usb_claim_interface()
792 struct libusb20_device *pdev = (void *)dev; in usb_set_altinterface() local
[all …]
/freebsd/tools/tools/usbtest/
H A Dusb_control_ep_test.c80 struct libusb20_device *pdev; in usb_control_ep_error_test() local
88 pdev = find_usb_device(uaddr); in usb_control_ep_error_test()
89 if (pdev == NULL) { in usb_control_ep_error_test()
93 error = libusb20_dev_open(pdev, 0); in usb_control_ep_error_test()
96 libusb20_dev_free(pdev); in usb_control_ep_error_test()
100 bus = libusb20_dev_get_bus_number(pdev); in usb_control_ep_error_test()
101 dev = libusb20_dev_get_address(pdev); in usb_control_ep_error_test()
116 error = libusb20_dev_request_sync(pdev, &req, buffer, in usb_control_ep_error_test()
127 error = libusb20_dev_request_sync(pdev, &req, buffer, in usb_control_ep_error_test()
132 error = libusb20_dev_request_sync(pdev, &req, buffer, in usb_control_ep_error_test()
[all …]
/freebsd/sys/dev/xen/pcifront/
H A Dpcifront.c105 struct pcifront_device *pdev; member
112 struct pcifront_device *pdev = NULL; in alloc_pdev() local
119 xenbus_dev_fatal(pdev->xdev, err, "Error scanning pci device instance number"); in alloc_pdev()
123 pdev = (struct pcifront_device *)malloc(sizeof(struct pcifront_device), M_DEVBUF, M_NOWAIT); in alloc_pdev()
124 if (pdev == NULL) { in alloc_pdev()
129 pdev->unit = unit; in alloc_pdev()
130 pdev->xdev = xdev; in alloc_pdev()
131 pdev->ref_cnt = 1; in alloc_pdev()
133 pdev->sh_info = (struct xen_pci_sharedinfo *)malloc(PAGE_SIZE, M_DEVBUF, M_NOWAIT); in alloc_pdev()
134 if (pdev->sh_info == NULL) { in alloc_pdev()
[all …]
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_pci.c90 * we have two ways to create a pci_dev (pdev):
93 * we have no driver (pdev->pdrv).
145 lkpi_pci_reserve_bar(struct pci_dev *pdev, struct resource_list *rl,
154 dev = pdev->pdrv != NULL && pdev->pdrv->isdrm ?
155 device_get_parent(pdev->dev.bsddev) : pdev->dev.bsddev;
164 lkpi_pci_get_rle(struct pci_dev *pdev, int type, int rid, bool reserve_bar) in lkpi_set_pcim_iomap_devres()
170 dinfo = device_get_ivars(pdev->dev.bsddev);
175 rle = lkpi_pci_reserve_bar(pdev, r in lkpi_pci_bar_id_valid()
180 linux_pdev_dma_uninit(struct pci_dev * pdev) linux_pdev_dma_uninit() argument
198 linux_pdev_dma_init(struct pci_dev * pdev) linux_pdev_dma_init() argument
323 struct pci_dev *pdev, *found, *odev0; lkpi_pci_get_device() local
352 struct pci_dev *pdev; lkpi_pci_dev_release() local
431 lkpifill_pci_dev(device_t dev,struct pci_dev * pdev) lkpifill_pci_dev() argument
493 struct pci_dev *pdev; lkpinew_pci_dev_release() local
514 struct pci_dev *pdev; lkpinew_pci_dev() local
533 struct pci_dev *pdev; lkpi_pci_get_class() local
551 struct pci_dev *pdev; lkpi_pci_get_base_class() local
569 struct pci_dev *pdev; lkpi_pci_get_domain_bus_and_slot() local
583 struct pci_dev *pdev; lkpi_pci_get_slot() local
617 struct pci_dev *pdev; linux_pci_attach() local
629 linux_pci_reserve_bar(struct pci_dev * pdev,struct resource_list * rl,int type,int rid) linux_pci_reserve_bar() argument
648 linux_pci_get_rle(struct pci_dev * pdev,int type,int rid,bool reserve_bar) linux_pci_get_rle() argument
665 linux_pci_attach_device(device_t dev,struct pci_driver * pdrv,const struct pci_device_id * id,struct pci_dev * pdev) linux_pci_attach_device() argument
746 struct pci_dev *pdev; linux_pci_detach() local
760 linux_pci_detach_device(struct pci_dev * pdev) linux_pci_detach_device() argument
822 lkpi_pci_devres_get_alloc(struct pci_dev * pdev) lkpi_pci_devres_get_alloc() argument
838 lkpi_pci_devres_find(struct pci_dev * pdev) lkpi_pci_devres_find() argument
850 struct pci_dev *pdev; lkpi_pci_devres_release() local
875 linuxkpi_pcim_enable_device(struct pci_dev * pdev) linuxkpi_pcim_enable_device() argument
900 lkpi_pcim_iomap_devres_find(struct pci_dev * pdev) lkpi_pcim_iomap_devres_find() argument
920 linuxkpi_pcim_iomap_table(struct pci_dev * pdev) linuxkpi_pcim_iomap_table() argument
940 _lkpi_pci_iomap(struct pci_dev * pdev,int bar,unsigned long maxlen __unused) _lkpi_pci_iomap() argument
983 linuxkpi_pci_iomap_range(struct pci_dev * pdev,int bar,unsigned long off,unsigned long maxlen) linuxkpi_pci_iomap_range() argument
1002 linuxkpi_pci_iomap(struct pci_dev * pdev,int bar,unsigned long maxlen) linuxkpi_pci_iomap() argument
1011 linuxkpi_pcim_iomap(struct pci_dev * pdev,int bar,unsigned long maxlen) linuxkpi_pcim_iomap() argument
1040 linuxkpi_pci_iounmap(struct pci_dev * pdev,void * res) linuxkpi_pci_iounmap() argument
1064 linuxkpi_pcim_iomap_regions(struct pci_dev * pdev,uint32_t mask,const char * name) linuxkpi_pcim_iomap_regions() argument
1113 struct pci_dev *pdev; lkpi_pcim_iomap_table_release() local
1132 struct pci_dev *pdev; linux_pci_suspend() local
1156 struct pci_dev *pdev; linux_pci_resume() local
1178 struct pci_dev *pdev; linux_pci_shutdown() local
1190 struct pci_dev *pdev; linux_pci_iov_init() local
1205 struct pci_dev *pdev; linux_pci_iov_uninit() local
1216 struct pci_dev *pdev; linux_pci_iov_add_vf() local
1262 lkpi_pci_get_bar(struct pci_dev * pdev,int bar,bool reserve) lkpi_pci_get_bar() argument
1276 struct pci_dev *pdev; lkpi_pci_find_irq_dev() local
1293 pci_resource_start(struct pci_dev * pdev,int bar) pci_resource_start() argument
1315 pci_resource_len(struct pci_dev * pdev,int bar) pci_resource_len() argument
1325 lkpi_pci_request_region(struct pci_dev * pdev,int bar,const char * res_name,bool managed) lkpi_pci_request_region() argument
1379 linuxkpi_pci_request_region(struct pci_dev * pdev,int bar,const char * res_name) linuxkpi_pci_request_region() argument
1385 linuxkpi_pci_request_regions(struct pci_dev * pdev,const char * res_name) linuxkpi_pci_request_regions() argument
1401 linuxkpi_pcim_request_all_regions(struct pci_dev * pdev,const char * res_name) linuxkpi_pcim_request_all_regions() argument
1419 linuxkpi_pci_release_region(struct pci_dev * pdev,int bar) linuxkpi_pci_release_region() argument
1452 linuxkpi_pci_release_regions(struct pci_dev * pdev) linuxkpi_pci_release_regions() argument
1506 linuxkpi_pci_enable_msix(struct pci_dev * pdev,struct msix_entry * entries,int nreq) linuxkpi_pci_enable_msix() argument
1541 _lkpi_pci_enable_msi_range(struct pci_dev * pdev,int minvec,int maxvec) _lkpi_pci_enable_msi_range() argument
1573 pci_alloc_irq_vectors(struct pci_dev * pdev,int minv,int maxv,unsigned int flags) pci_alloc_irq_vectors() argument
1617 struct pci_dev *pdev; lkpi_pci_msi_desc_alloc() local
1655 pci_device_is_present(struct pci_dev * pdev) pci_device_is_present() argument
1665 linuxkpi_pci_map_rom(struct pci_dev * pdev,size_t * size) linuxkpi_pci_map_rom() argument
1682 linuxkpi_pci_unmap_rom(struct pci_dev * pdev,void * rom) linuxkpi_pci_unmap_rom() argument
2383 struct pci_dev *pdev; linux_backlight_get_status() local
2398 struct pci_dev *pdev; linux_backlight_get_info() local
2411 struct pci_dev *pdev; linux_backlight_update_status() local
[all...]
H A Dlinuxkpi_80211_pm.c23 int (*suspend) (struct pci_dev *pdev, pm_message_t state);
24 int (*resume) (struct pci_dev *pdev);
28 lkpi_80211_pm_suspend(struct pci_dev *pdev, pm_message_t state) in lkpi_80211_pm_suspend() argument
36 dev = device_find_child(pdev->dev.bsddev, "lkpi80211_pm", in lkpi_80211_pm_suspend()
40 device_printf(pdev->dev.bsddev, in lkpi_80211_pm_suspend()
42 __func__, device_get_name(pdev->dev.bsddev)); in lkpi_80211_pm_suspend()
50 ic = ieee80211_find_com(device_get_nameunit(pdev->dev.bsddev)); in lkpi_80211_pm_suspend()
54 device_printf(pdev->dev.bsddev, in lkpi_80211_pm_suspend()
61 pmops = pdev->pdrv->driver.pm; in lkpi_80211_pm_suspend()
63 error = sc->suspend(pdev, state); in lkpi_80211_pm_suspend()
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dpci.h365 int pci_alloc_irq_vectors(struct pci_dev *pdev, int minv, int maxv,
367 bool pci_device_is_present(struct pci_dev *pdev);
369 int linuxkpi_pcim_enable_device(struct pci_dev *pdev);
370 void __iomem **linuxkpi_pcim_iomap_table(struct pci_dev *pdev);
375 void linuxkpi_pci_iounmap(struct pci_dev *pdev, void *res);
376 int linuxkpi_pcim_iomap_regions(struct pci_dev *pdev, uint32_t mask,
379 int linuxkpi_pci_request_regions(struct pci_dev *pdev, const char *res_name);
381 void linuxkpi_pci_release_region(struct pci_dev *pdev, int bar);
382 void linuxkpi_pci_release_regions(struct pci_dev *pdev);
383 int linuxkpi_pci_enable_msix(struct pci_dev *pdev, struc
398 pci_err(pdev,fmt,...) global() argument
400 pci_info(pdev,fmt,...) global() argument
410 pci_dev_id(struct pci_dev * pdev) pci_dev_id() argument
416 pci_resource_type(struct pci_dev * pdev,int bar) pci_resource_type() argument
434 pci_resource_flags(struct pci_dev * pdev,int bar) pci_resource_flags() argument
445 pci_select_bars(struct pci_dev * pdev,unsigned long flags) pci_select_bars() argument
469 pci_get_drvdata(struct pci_dev * pdev) pci_get_drvdata() argument
476 pci_set_drvdata(struct pci_dev * pdev,void * data) pci_set_drvdata() argument
483 pci_dev_get(struct pci_dev * pdev) pci_dev_get() argument
492 pci_dev_put(struct pci_dev * pdev) pci_dev_put() argument
500 pci_enable_device(struct pci_dev * pdev) pci_enable_device() argument
509 pci_disable_device(struct pci_dev * pdev) pci_disable_device() argument
516 pci_set_master(struct pci_dev * pdev) pci_set_master() argument
524 pci_set_power_state(struct pci_dev * pdev,int state) pci_set_power_state() argument
532 pci_clear_master(struct pci_dev * pdev) pci_clear_master() argument
547 pci_upstream_bridge(struct pci_dev * pdev) pci_upstream_bridge() argument
593 pci_request_region(pdev,bar,res_name) global() argument
595 pci_release_region(pdev,bar) global() argument
597 pci_request_regions(pdev,res_name) global() argument
599 pci_release_regions(pdev) global() argument
601 pcim_request_all_regions(pdev,name) global() argument
605 lkpi_pci_disable_msix(struct pci_dev * pdev) lkpi_pci_disable_msix() argument
621 pci_disable_msix(pdev) global() argument
624 lkpi_pci_disable_msi(struct pci_dev * pdev) lkpi_pci_disable_msi() argument
634 pci_disable_msi(pdev) global() argument
635 pci_free_irq_vectors(pdev) global() argument
641 pci_bus_address(struct pci_dev * pdev,int bar) pci_bus_address() argument
659 pci_find_capability(struct pci_dev * pdev,int capid) pci_find_capability() argument
674 pci_find_ext_capability(struct pci_dev * pdev,int capid) pci_find_ext_capability() argument
684 pci_pme_capable(struct pci_dev * pdev,pci_power_t state) pci_pme_capable() argument
690 pci_disable_link_state(struct pci_dev * pdev,uint32_t flags) pci_disable_link_state() argument
700 pci_read_config_byte(const struct pci_dev * pdev,int where,u8 * val) pci_read_config_byte() argument
708 pci_read_config_word(const struct pci_dev * pdev,int where,u16 * val) pci_read_config_word() argument
716 pci_read_config_dword(const struct pci_dev * pdev,int where,u32 * val) pci_read_config_dword() argument
724 pci_write_config_byte(const struct pci_dev * pdev,int where,u8 val) pci_write_config_byte() argument
732 pci_write_config_word(const struct pci_dev * pdev,int where,u16 val) pci_write_config_word() argument
740 pci_write_config_dword(const struct pci_dev * pdev,int where,u32 val) pci_write_config_dword() argument
793 pci_enable_msi(pdev) global() argument
797 pci_enable_msi(struct pci_dev * pdev) pci_enable_msi() argument
804 pci_channel_offline(struct pci_dev * pdev) pci_channel_offline() argument
819 pci_iomap_range(pdev,mmio_bar,mmio_off,mmio_size) global() argument
821 pci_iomap(pdev,mmio_bar,mmio_size) global() argument
823 pcim_iomap(pdev,bar,maxlen) global() argument
825 pci_iounmap(pdev,res) global() argument
829 lkpi_pci_save_state(struct pci_dev * pdev) lkpi_pci_save_state() argument
836 lkpi_pci_restore_state(struct pci_dev * pdev) lkpi_pci_restore_state() argument
846 linuxkpi_pci_enable_wake(struct pci_dev * pdev,pci_power_t state,bool ena) linuxkpi_pci_enable_wake() argument
859 pci_reset_function(struct pci_dev * pdev) pci_reset_function() argument
919 pci_map_rom(pdev,size) global() argument
920 pci_unmap_rom(pdev,rom) global() argument
1247 pcie_bandwidth_available(struct pci_dev * pdev,struct pci_dev ** limiting,enum pci_bus_speed * speed,enum pcie_link_width * width) pcie_bandwidth_available() argument
1264 pcie_aspm_enabled(struct pci_dev * pdev) pcie_aspm_enabled() argument
1270 pcie_find_root_port(struct pci_dev * pdev) pcie_find_root_port() argument
1297 pci_stop_and_remove_bus_device(struct pci_dev * pdev) pci_stop_and_remove_bus_device() argument
1348 pci_dev_is_disconnected(const struct pci_dev * pdev) pci_dev_is_disconnected() argument
1355 pci_match_id(const struct pci_device_id * ids,struct pci_dev * pdev) pci_match_id() argument
1457 pcim_enable_device(pdev) global() argument
1459 pcim_iomap_table(pdev) global() argument
1461 pcim_iomap_regions(pdev,mask,name) global() argument
1465 pcim_iomap_regions_request_all(struct pci_dev * pdev,uint32_t mask,char * name) pcim_iomap_regions_request_all() argument
1514 linuxkpi_pcim_want_to_use_bus_functions(struct pci_dev * pdev) linuxkpi_pcim_want_to_use_bus_functions() argument
1520 pci_is_thunderbolt_attached(struct pci_dev * pdev) pci_is_thunderbolt_attached() argument
1527 pci_platform_rom(struct pci_dev * pdev,size_t * size) pci_platform_rom() argument
1534 pci_ignore_hotplug(struct pci_dev * pdev) pci_ignore_hotplug() argument
1561 pci_is_enabled(struct pci_dev * pdev) pci_is_enabled() argument
1569 pci_wait_for_pending_transaction(struct pci_dev * pdev) pci_wait_for_pending_transaction() argument
1576 pci_assign_resource(struct pci_dev * pdev,int bar) pci_assign_resource() argument
1583 pci_irq_vector(struct pci_dev * pdev,unsigned int vector) pci_irq_vector() argument
1602 pci_msix_vec_count(struct pci_dev * pdev) pci_msix_vec_count() argument
1613 pci_wake_from_d3(struct pci_dev * pdev,bool enable) pci_wake_from_d3() argument
[all...]
H A Dvgaarb.h69 extern void vga_set_legacy_decoding(struct pci_dev *pdev,
72 static inline void vga_set_legacy_decoding(struct pci_dev *pdev, in vga_set_legacy_decoding() argument
105 extern int vga_get(struct pci_dev *pdev, unsigned int rsrc, int interruptible);
107 static inline int vga_get(struct pci_dev *pdev, unsigned int rsrc, int interruptible) { return 0; } in vga_get() argument
116 static inline int vga_get_interruptible(struct pci_dev *pdev, in vga_get_interruptible() argument
119 return vga_get(pdev, rsrc, 1); in vga_get_interruptible()
128 static inline int vga_get_uninterruptible(struct pci_dev *pdev, in vga_get_uninterruptible() argument
131 return vga_get(pdev, rsrc, 0); in vga_get_uninterruptible()
146 extern int vga_tryget(struct pci_dev *pdev, unsigned int rsrc);
148 static inline int vga_tryget(struct pci_dev *pdev, unsigned int rsrc) { return 0; } in vga_tryget() argument
[all …]
/freebsd/sys/dev/ow/
H A Down.h38 own_send_command(device_t pdev, struct ow_cmd *cmd) in own_send_command() argument
40 device_t ndev = device_get_parent(pdev); in own_send_command()
42 return OWN_SEND_COMMAND(ndev, pdev, cmd); in own_send_command()
52 own_acquire_bus(device_t pdev, int how) in own_acquire_bus() argument
54 device_t ndev = device_get_parent(pdev); in own_acquire_bus()
56 return OWN_ACQUIRE_BUS(ndev, pdev, how); in own_acquire_bus()
60 own_release_bus(device_t pdev) in own_release_bus() argument
62 device_t ndev = device_get_parent(pdev); in own_release_bus()
64 OWN_RELEASE_BUS(ndev, pdev); in own_release_bus()
68 own_crc(device_t pdev, uint8_t *buffer, size_t len) in own_crc() argument
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7615/
H A Dpci.c22 static int mt7615_pci_probe(struct pci_dev *pdev, in mt7615_pci_probe() argument
28 ret = pcim_enable_device(pdev); in mt7615_pci_probe()
32 ret = pcim_iomap_regions(pdev, BIT(0), pci_name(pdev)); in mt7615_pci_probe()
36 pci_set_master(pdev); in mt7615_pci_probe()
38 ret = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_ALL_TYPES); in mt7615_pci_probe()
42 ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); in mt7615_pci_probe()
46 mt76_pci_disable_aspm(pdev); in mt7615_pci_probe()
49 ret = mt7615_mmio_probe(&pdev->dev, pcim_iomap_table(pdev)[0], in mt7615_pci_probe()
50 pdev->irq, map); in mt7615_pci_probe()
56 pci_free_irq_vectors(pdev); in mt7615_pci_probe()
[all …]
/freebsd/usr.sbin/usbconfig/
H A Ddump.c54 #define DUMP0(n,type,field,...) dump_field(pdev, " ", #field, n->field);
55 #define DUMP0L(n,type,field,...) dump_fieldl(pdev, " ", #field, n->field);
56 #define DUMP1(n,type,field,...) dump_field(pdev, " ", #field, n->field);
57 #define DUMP2(n,type,field,...) dump_field(pdev, " ", #field, n->field);
58 #define DUMP3(n,type,field,...) dump_field(pdev, " ", #field, n->field);
129 _dump_field(struct libusb20_device *pdev, const char *plevel, in _dump_field() argument
193 if (libusb20_dev_req_string_simple_sync(pdev, value, in _dump_field()
284 dump_field(struct libusb20_device *pdev, const char *plevel, in dump_field() argument
287 _dump_field(pdev, plevel, field, value, false); in dump_field()
291 dump_fieldl(struct libusb20_device *pdev, const char *plevel, in dump_fieldl() argument
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/
H A Dpci.c72 static struct mt7996_hif *mt7996_pci_init_hif2(struct pci_dev *pdev) in mt7996_pci_init_hif2() argument
89 pcim_iomap_table(pdev)[0] + MT_PCIE_RECOG_ID); in mt7996_pci_init_hif2()
91 (u8 *)(pcim_iomap_table(pdev)[0]) + MT_PCIE_RECOG_ID); in mt7996_pci_init_hif2()
97 static int mt7996_pci_hif2_probe(struct pci_dev *pdev) in mt7996_pci_hif2_probe() argument
101 hif = devm_kzalloc(&pdev->dev, sizeof(*hif), GFP_KERNEL); in mt7996_pci_hif2_probe()
105 hif->dev = &pdev->dev; in mt7996_pci_hif2_probe()
106 hif->regs = pcim_iomap_table(pdev)[0]; in mt7996_pci_hif2_probe()
107 hif->irq = pdev->irq; in mt7996_pci_hif2_probe()
108 pcie_bandwidth_available(pdev, NULL, &hif->speed, &hif->width); in mt7996_pci_hif2_probe()
112 pci_set_drvdata(pdev, hif); in mt7996_pci_hif2_probe()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/
H A Dpci.c76 static struct mt7915_hif *mt7915_pci_init_hif2(struct pci_dev *pdev) in mt7915_pci_init_hif2() argument
100 pcim_iomap_table(pdev)[0] + MT_PCIE_RECOG_ID); in mt7915_pci_init_hif2()
102 (u8 *)(pcim_iomap_table(pdev)[0]) + MT_PCIE_RECOG_ID); in mt7915_pci_init_hif2()
108 static int mt7915_pci_hif2_probe(struct pci_dev *pdev) in mt7915_pci_hif2_probe() argument
112 hif = devm_kzalloc(&pdev->dev, sizeof(*hif), GFP_KERNEL); in mt7915_pci_hif2_probe()
116 hif->dev = &pdev->dev; in mt7915_pci_hif2_probe()
117 hif->regs = pcim_iomap_table(pdev)[0]; in mt7915_pci_hif2_probe()
118 hif->irq = pdev->irq; in mt7915_pci_hif2_probe()
122 pci_set_drvdata(pdev, hif); in mt7915_pci_hif2_probe()
127 static int mt7915_pci_probe(struct pci_dev *pdev, in mt7915_pci_probe() argument
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt76x2/
H A Dpci.c20 mt76x2e_probe(struct pci_dev *pdev, const struct pci_device_id *id) in mt76x2e_probe() argument
42 ret = pcim_enable_device(pdev); in mt76x2e_probe()
46 ret = pcim_iomap_regions(pdev, BIT(0), pci_name(pdev)); in mt76x2e_probe()
50 pci_set_master(pdev); in mt76x2e_probe()
52 ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); in mt76x2e_probe()
56 mdev = mt76_alloc_device(&pdev->dev, sizeof(*dev), &mt76x2_ops, in mt76x2e_probe()
62 mt76_mmio_init(mdev, pcim_iomap_table(pdev)[0]); in mt76x2e_probe()
70 ret = devm_request_irq(mdev->dev, pdev->irq, mt76x02_irq_handler, in mt76x2e_probe()
90 mt76_pci_disable_aspm(pdev); in mt76x2e_probe()
101 mt76x2e_remove(struct pci_dev *pdev) in mt76x2e_remove() argument
[all …]
/freebsd/sys/dev/ena/
H A Dena.c210 device_t pdev = adapter->pdev; in ena_dma_alloc() local
234 ena_log(pdev, ERR, "bus_dma_tag_create failed: %d\n", error); in ena_dma_alloc()
240 ena_log(pdev, ERR, "bus_dma_tag_set_domain failed: %d\n", in ena_dma_alloc()
248 ena_log(pdev, ERR, "bus_dmamem_alloc(%ju) failed: %d\n", in ena_dma_alloc()
257 ena_log(pdev, ERR, "bus_dmamap_load failed: %d\n", error); in ena_dma_alloc()
281 device_t pdev = adapter->pdev; in ena_free_pci_resources() local
284 bus_release_resource(pdev, SYS_RES_MEMORY, in ena_free_pci_resources()
289 bus_release_resource(pdev, SYS_RES_MEMORY, in ena_free_pci_resources()
294 bus_release_resource(pdev, SYS_RES_MEMORY, adapter->msix_rid, in ena_free_pci_resources()
330 device_t pdev = adapter->pdev; in ena_change_mtu() local
[all …]
/freebsd/sys/dev/qat/qat_common/
H A Dadf_aer.c73 device_t pdev = accel_to_pci_dev(accel_dev); in adf_reset_sbr() local
74 device_t parent = device_get_parent(device_get_parent(pdev)); in adf_reset_sbr()
81 parent = pdev; in adf_reset_sbr()
83 if (!pcie_wait_for_pending_transactions(pdev, 0)) in adf_reset_sbr()
89 pci_save_state(pdev); in adf_reset_sbr()
97 pci_restore_state(pdev); in adf_reset_sbr()
103 device_t pdev = accel_to_pci_dev(accel_dev); in adf_reset_flr() local
105 pci_save_state(pdev); in adf_reset_flr()
106 if (pcie_flr(pdev, in adf_reset_flr()
107 max(pcie_get_max_completion_timeout(pdev) / 1000, 10), in adf_reset_flr()
[all …]
/freebsd/sys/contrib/dev/iwlwifi/pcie/
H A Dutils.c12 void iwl_trans_pcie_dump_regs(struct iwl_trans *trans, struct pci_dev *pdev) in iwl_trans_pcie_dump_regs() argument
45 sprintf(prefix, "iwlwifi %s: ", pci_name(pdev)); in iwl_trans_pcie_dump_regs()
48 if (pci_read_config_dword(pdev, i, ptr)) in iwl_trans_pcie_dump_regs()
65 pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_ERR); in iwl_trans_pcie_dump_regs()
69 if (pci_read_config_dword(pdev, pos + i, ptr)) in iwl_trans_pcie_dump_regs()
80 if (!pdev->bus->self) in iwl_trans_pcie_dump_regs()
83 pdev = pdev->bus->self; in iwl_trans_pcie_dump_regs()
84 sprintf(prefix, "iwlwifi %s: ", pci_name(pdev)); in iwl_trans_pcie_dump_regs()
87 pci_name(pdev)); in iwl_trans_pcie_dump_regs()
89 if (pci_read_config_dword(pdev, i, ptr)) in iwl_trans_pcie_dump_regs()
[all …]
/freebsd/sys/dev/clk/
H A Dclkdev_if.m38 device_t pdev;
40 pdev = device_get_parent(dev);
41 if (pdev == NULL)
44 return (CLKDEV_WRITE_4(pdev, addr, val));
50 device_t pdev;
52 pdev = device_get_parent(dev);
53 if (pdev == NULL)
56 return (CLKDEV_READ_4(pdev, addr, val));
63 device_t pdev;
65 pdev = device_get_parent(dev);
[all …]
/freebsd/sys/dev/qat/qat_hw/qat_c4xxx/
H A Dadf_c4xxx_reset.c10 device_t pdev = accel_dev->accel_pci_dev.pci_dev; in adf_check_uncorr_status() local
12 uncorr_err = pci_read_config(pdev, PCI_EXP_AERUCS, 4); in adf_check_uncorr_status()
25 device_t pdev = accel_dev->accel_pci_dev.pci_dev; in adf_c4xxx_dev_reset() local
32 device_id1 = pci_read_config(pdev, PCIR_DEVICE, 2); in adf_c4xxx_dev_reset()
38 device_id2 = pci_read_config(pdev, PCIR_DEVICE, 2); in adf_c4xxx_dev_reset()
57 device_t pdev = accel_dev->accel_pci_dev.pci_dev; in adf_c4xxx_dev_restore() local
69 pmisclbar1 = pci_read_config(pdev, ADF_PMISC_L_OFFSET, 4); in adf_c4xxx_dev_restore()
70 pmiscubar1 = pci_read_config(pdev, ADF_PMISC_U_OFFSET, 4); in adf_c4xxx_dev_restore()
73 pci_restore_state(pdev); in adf_c4xxx_dev_restore()
76 pmisclbar2 = pci_read_config(pdev, ADF_PMISC_L_OFFSET, 4); in adf_c4xxx_dev_restore()
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt76x0/
H A Dpci.c154 mt76x0e_probe(struct pci_dev *pdev, const struct pci_device_id *id) in mt76x0e_probe() argument
176 ret = pcim_enable_device(pdev); in mt76x0e_probe()
180 ret = pcim_iomap_regions(pdev, BIT(0), pci_name(pdev)); in mt76x0e_probe()
184 pci_set_master(pdev); in mt76x0e_probe()
186 ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); in mt76x0e_probe()
190 mt76_pci_disable_aspm(pdev); in mt76x0e_probe()
192 mdev = mt76_alloc_device(&pdev->dev, sizeof(*dev), &mt76x0e_ops, in mt76x0e_probe()
200 mt76_mmio_init(mdev, pcim_iomap_table(pdev)[0]); in mt76x0e_probe()
207 ret = devm_request_irq(mdev->dev, pdev->irq, mt76x02_irq_handler, in mt76x0e_probe()
235 mt76x0e_remove(struct pci_dev *pdev) in mt76x0e_remove() argument
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt7603/
H A Dpci.c15 mt76pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) in mt76pci_probe() argument
21 ret = pcim_enable_device(pdev); in mt76pci_probe()
25 ret = pcim_iomap_regions(pdev, BIT(0), pci_name(pdev)); in mt76pci_probe()
29 pci_set_master(pdev); in mt76pci_probe()
31 ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); in mt76pci_probe()
35 mdev = mt76_alloc_device(&pdev->dev, sizeof(*dev), &mt7603_ops, in mt76pci_probe()
41 mt76_mmio_init(mdev, pcim_iomap_table(pdev)[0]); in mt76pci_probe()
49 ret = devm_request_irq(mdev->dev, pdev->irq, mt7603_irq_handler, in mt76pci_probe()
66 mt76pci_remove(struct pci_dev *pdev) in mt76pci_remove() argument
68 struct mt76_dev *mdev = pci_get_drvdata(pdev); in mt76pci_remove()

1234567891011