/freebsd/lib/libusb/ |
H A D | libusb20.c | 134 error = xfer->pdev->methods->tr_close(xfer); in libusb20_tr_close() 211 error = xfer->pdev->methods->tr_open(xfer, MaxBufSize, in libusb20_tr_open_stream() 214 error = xfer->pdev->methods->tr_open(xfer, MaxBufSize, in libusb20_tr_open_stream() 228 libusb20_tr_get_pointer(struct libusb20_device *pdev, uint16_t trIndex) in libusb20_tr_get_pointer() argument 230 if (trIndex >= pdev->nTransfer) { in libusb20_tr_get_pointer() 233 return (pdev->pTransfer + trIndex); in libusb20_tr_get_pointer() 324 xfer->pdev->methods->tr_cancel_async(xfer); in libusb20_tr_stop() 347 xfer->pdev->methods->tr_clear_stall_sync(xfer); in libusb20_tr_clear_stall_sync() 475 struct libusb20_device *pdev = xfer->pdev; in libusb20_tr_bulk_intr_sync() local 504 while (libusb20_dev_process(pdev) == 0) { in libusb20_tr_bulk_intr_sync() [all …]
|
H A D | libusb20_ugen20.c | 133 ugen20_enumerate(struct libusb20_device *pdev, const char *id) in ugen20_enumerate() argument 144 pdev->bus_number = ugen20_path_convert_one(&tmp); in ugen20_enumerate() 145 pdev->device_address = ugen20_path_convert_one(&tmp); in ugen20_enumerate() 148 pdev->bus_number, pdev->device_address); in ugen20_enumerate() 159 pdev->session_data.plugtime = plugtime; in ugen20_enumerate() 165 LIBUSB20_INIT(LIBUSB20_DEVICE_DESC, &(pdev->ddesc)); in ugen20_enumerate() 167 libusb20_me_decode(&ddesc, sizeof(ddesc), &(pdev->ddesc)); in ugen20_enumerate() 169 if (pdev->ddesc.bNumConfigurations == 0) { in ugen20_enumerate() 172 } else if (pdev->ddesc.bNumConfigurations >= 8) { in ugen20_enumerate() 182 pdev->usb_mode = LIBUSB20_MODE_DEVICE; in ugen20_enumerate() [all …]
|
H A D | libusb20.h | 209 struct libusb20_transfer *libusb20_tr_get_pointer(struct libusb20_device *pdev, uint16_t tr_index); 244 const char *libusb20_dev_get_backend_name(struct libusb20_device *pdev); 245 const char *libusb20_dev_get_desc(struct libusb20_device *pdev); 246 int libusb20_dev_close(struct libusb20_device *pdev); 247 int libusb20_dev_detach_kernel_driver(struct libusb20_device *pdev, uint8_t iface_index); 248 int libusb20_dev_set_config_index(struct libusb20_device *pdev, uint8_t configIndex); 249 int libusb20_dev_get_debug(struct libusb20_device *pdev); 250 int libusb20_dev_get_fd(struct libusb20_device *pdev); 251 int libusb20_dev_get_stats(struct libusb20_device *pdev, struct libusb20_device_stats *pstat); 252 int libusb20_dev_kernel_driver_active(struct libusb20_device *pdev, uint8_t iface_index); [all …]
|
H A D | libusb10.c | 320 struct libusb20_device *pdev; in libusb_get_device_list() 337 pdev = NULL; in libusb_get_device_list() 339 while ((pdev = libusb20_be_device_foreach(usb_backend, pdev))) in libusb_get_device_list() 350 while ((pdev = libusb20_be_device_foreach(usb_backend, NULL))) { in libusb_get_device_list() 364 libusb20_be_dequeue_device(usb_backend, pdev); in libusb_get_device_list() 375 dev->os_priv = pdev; in libusb_get_device_list() 376 pdev->privLuData = dev; in libusb_get_device_list() 556 struct libusb20_device *pdev = dev->os_priv; in libusb_open() 569 err = libusb20_dev_open(pdev, LIBUSB_NUM_SW_ENDPOINT in libusb_open() 312 struct libusb20_device *pdev; libusb_get_device_list() local 548 struct libusb20_device *pdev = dev->os_priv; libusb_open() local 591 struct libusb20_device *pdev; libusb_open_device_with_vid_pid() local 629 libusb_close(struct libusb20_device * pdev) libusb_close() argument 652 libusb_get_device(struct libusb20_device * pdev) libusb_get_device() argument 660 libusb_get_configuration(struct libusb20_device * pdev,int * config) libusb_get_configuration() argument 679 libusb_set_configuration(struct libusb20_device * pdev,int configuration) libusb_set_configuration() argument 725 libusb_claim_interface(struct libusb20_device * pdev,int interface_number) libusb_claim_interface() argument 751 libusb_release_interface(struct libusb20_device * pdev,int interface_number) libusb_release_interface() argument 780 libusb_set_interface_alt_setting(struct libusb20_device * pdev,int interface_number,int alternate_setting) libusb_set_interface_alt_setting() argument 816 libusb10_get_transfer(struct libusb20_device * pdev,uint8_t endpoint,uint8_t xfer_index) libusb10_get_transfer() argument 831 libusb_clear_halt(struct libusb20_device * pdev,uint8_t endpoint) libusb_clear_halt() argument 864 libusb_reset_device(struct libusb20_device * pdev) libusb_reset_device() argument 887 libusb_check_connected(struct libusb20_device * pdev) libusb_check_connected() argument 902 libusb_kernel_driver_active(struct libusb20_device * pdev,int interface) libusb_kernel_driver_active() argument 914 libusb_get_driver_np(struct libusb20_device * pdev,int interface,char * name,int namelen) libusb_get_driver_np() argument 921 libusb_get_driver(struct libusb20_device * pdev,int interface,char * name,int namelen) libusb_get_driver() argument 949 libusb_detach_kernel_driver_np(struct libusb20_device * pdev,int interface) libusb_detach_kernel_driver_np() argument 955 libusb_detach_kernel_driver(struct libusb20_device * pdev,int interface) libusb_detach_kernel_driver() argument 969 libusb_attach_kernel_driver(struct libusb20_device * pdev,int interface) libusb_attach_kernel_driver() argument 1031 libusb10_get_maxframe(struct libusb20_device * pdev,libusb_transfer * xfer) libusb10_get_maxframe() argument 1050 libusb10_get_buffsize(struct libusb20_device * pdev,libusb_transfer * xfer) libusb10_get_buffsize() argument 1365 libusb10_submit_transfer_sub(struct libusb20_device * pdev,uint8_t endpoint) libusb10_submit_transfer_sub() argument 1635 struct libusb20_device *pdev = dev->os_priv; libusb10_cancel_all_transfer() local 1649 libusb10_cancel_all_transfer_locked(struct libusb20_device * pdev,struct libusb_device * dev) libusb10_cancel_all_transfer_locked() argument [all...] |
H A D | libusb20_int.h | 52 typedef int (libusb20_close_device_t)(struct libusb20_device *pdev); 53 typedef int (libusb20_dev_get_info_t)(struct libusb20_device *pdev, struct usb_device_info *pinfo); 54 typedef int (libusb20_dev_get_iface_desc_t)(struct libusb20_device *pdev, uint8_t iface_index, char… 56 typedef int (libusb20_open_device_t)(struct libusb20_device *pdev, uint16_t transfer_count_max); 94 typedef int (libusb20_detach_kernel_driver_t)(struct libusb20_device *pdev, uint8_t iface_index); 95 typedef int (libusb20_do_request_sync_t)(struct libusb20_device *pdev, struct LIBUSB20_CONTROL_SETU… 96 typedef int (libusb20_get_config_desc_full_t)(struct libusb20_device *pdev, uint8_t **ppbuf, uint16… 97 typedef int (libusb20_get_config_index_t)(struct libusb20_device *pdev, uint8_t *pindex); 98 typedef int (libusb20_kernel_driver_active_t)(struct libusb20_device *pdev, uint8_t iface_index); 99 typedef int (libusb20_process_t)(struct libusb20_device *pdev); [all …]
|
/freebsd/tools/tools/usbtest/ |
H A D | usb_control_ep_test.c | 80 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 D | pcifront.c | 108 struct pcifront_device *pdev; member 115 struct pcifront_device *pdev = NULL; in alloc_pdev() local 122 xenbus_dev_fatal(pdev->xdev, err, "Error scanning pci device instance number"); in alloc_pdev() 126 pdev = (struct pcifront_device *)malloc(sizeof(struct pcifront_device), M_DEVBUF, M_NOWAIT); in alloc_pdev() 127 if (pdev == NULL) { in alloc_pdev() 132 pdev->unit = unit; in alloc_pdev() 133 pdev->xdev = xdev; in alloc_pdev() 134 pdev->ref_cnt = 1; in alloc_pdev() 136 pdev->sh_info = (struct xen_pci_sharedinfo *)malloc(PAGE_SIZE, M_DEVBUF, M_NOWAIT); in alloc_pdev() 137 if (pdev->sh_info == NULL) { in alloc_pdev() [all …]
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_pci.c | 149 linux_pdev_dma_uninit(struct pci_dev *pdev) in linux_pdev_dma_uninit() argument 153 priv = pdev->dev.dma_priv; in linux_pdev_dma_uninit() 159 pdev->dev.dma_priv = NULL; in linux_pdev_dma_uninit() 165 linux_pdev_dma_init(struct pci_dev *pdev) in linux_pdev_dma_init() argument 175 pdev->dev.dma_priv = priv; in linux_pdev_dma_init() 178 error = linux_dma_tag_init(&pdev->dev, DMA_BIT_MASK(64)); in linux_pdev_dma_init() 182 error = linux_dma_tag_init_coherent(&pdev->dev, DMA_BIT_MASK(32)); in linux_pdev_dma_init() 189 linux_pdev_dma_uninit(pdev); in linux_pdev_dma_init() 290 struct pci_dev *pdev; in lkpi_pci_get_device() local 295 list_for_each_entry(pdev, &pci_devices, links) { in lkpi_pci_get_device() [all …]
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | pci.h | 355 int pci_request_region(struct pci_dev *pdev, int bar, const char *res_name); 356 int pci_alloc_irq_vectors(struct pci_dev *pdev, int minv, int maxv, 358 bool pci_device_is_present(struct pci_dev *pdev); 360 int linuxkpi_pcim_enable_device(struct pci_dev *pdev); 361 void __iomem **linuxkpi_pcim_iomap_table(struct pci_dev *pdev); 362 void *linuxkpi_pci_iomap_range(struct pci_dev *pdev, int mmio_bar, 364 void *linuxkpi_pci_iomap(struct pci_dev *pdev, int mmio_bar, int mmio_size); 365 void linuxkpi_pci_iounmap(struct pci_dev *pdev, void *res); 366 int linuxkpi_pcim_iomap_regions(struct pci_dev *pdev, uint32_t mask, 368 int linuxkpi_pci_request_regions(struct pci_dev *pdev, const char *res_name); [all …]
|
H A D | vgaarb.h | 69 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 D | own.h | 38 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 D | pci.c | 22 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 D | dump.c | 59 #define DUMP0(n,type,field,...) dump_field(pdev, " ", #field, n->field); 60 #define DUMP0L(n,type,field,...) dump_fieldl(pdev, " ", #field, n->field); 61 #define DUMP1(n,type,field,...) dump_field(pdev, " ", #field, n->field); 62 #define DUMP2(n,type,field,...) dump_field(pdev, " ", #field, n->field); 63 #define DUMP3(n,type,field,...) dump_field(pdev, " ", #field, n->field); 130 _dump_field(struct libusb20_device *pdev, const char *plevel, in _dump_field() argument 194 if (libusb20_dev_req_string_simple_sync(pdev, value, in _dump_field() 285 dump_field(struct libusb20_device *pdev, const char *plevel, in dump_field() argument 288 _dump_field(pdev, plevel, field, value, false); in dump_field() 292 dump_fieldl(struct libusb20_device *pdev, const char *plevel, in dump_fieldl() argument [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt76x2/ |
H A D | pci.c | 20 mt76x2e_probe(struct pci_dev *pdev, const struct pci_device_id *id) in mt76x2e_probe() argument 40 ret = pcim_enable_device(pdev); in mt76x2e_probe() 44 ret = pcim_iomap_regions(pdev, BIT(0), pci_name(pdev)); in mt76x2e_probe() 48 pci_set_master(pdev); in mt76x2e_probe() 50 ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); in mt76x2e_probe() 54 mdev = mt76_alloc_device(&pdev->dev, sizeof(*dev), &mt76x2_ops, in mt76x2e_probe() 60 mt76_mmio_init(mdev, pcim_iomap_table(pdev)[0]); in mt76x2e_probe() 68 ret = devm_request_irq(mdev->dev, pdev->irq, mt76x02_irq_handler, in mt76x2e_probe() 88 mt76_pci_disable_aspm(pdev); in mt76x2e_probe() 99 mt76x2e_remove(struct pci_dev *pdev) in mt76x2e_remove() argument [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7915/ |
H A D | pci.c | 75 static struct mt7915_hif *mt7915_pci_init_hif2(struct pci_dev *pdev) in mt7915_pci_init_hif2() argument 99 pcim_iomap_table(pdev)[0] + MT_PCIE_RECOG_ID); in mt7915_pci_init_hif2() 101 (u8 *)(pcim_iomap_table(pdev)[0]) + MT_PCIE_RECOG_ID); in mt7915_pci_init_hif2() 107 static int mt7915_pci_hif2_probe(struct pci_dev *pdev) in mt7915_pci_hif2_probe() argument 111 hif = devm_kzalloc(&pdev->dev, sizeof(*hif), GFP_KERNEL); in mt7915_pci_hif2_probe() 115 hif->dev = &pdev->dev; in mt7915_pci_hif2_probe() 116 hif->regs = pcim_iomap_table(pdev)[0]; in mt7915_pci_hif2_probe() 117 hif->irq = pdev->irq; in mt7915_pci_hif2_probe() 121 pci_set_drvdata(pdev, hif); in mt7915_pci_hif2_probe() 126 static int mt7915_pci_probe(struct pci_dev *pdev, in mt7915_pci_probe() argument [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
H A D | pci.c | 68 static struct mt7996_hif *mt7996_pci_init_hif2(struct pci_dev *pdev) in mt7996_pci_init_hif2() argument 80 pcim_iomap_table(pdev)[0] + MT_PCIE_RECOG_ID); in mt7996_pci_init_hif2() 82 (u8 *)(pcim_iomap_table(pdev)[0]) + MT_PCIE_RECOG_ID); in mt7996_pci_init_hif2() 88 static int mt7996_pci_hif2_probe(struct pci_dev *pdev) in mt7996_pci_hif2_probe() argument 92 hif = devm_kzalloc(&pdev->dev, sizeof(*hif), GFP_KERNEL); in mt7996_pci_hif2_probe() 96 hif->dev = &pdev->dev; in mt7996_pci_hif2_probe() 97 hif->regs = pcim_iomap_table(pdev)[0]; in mt7996_pci_hif2_probe() 98 hif->irq = pdev->irq; in mt7996_pci_hif2_probe() 102 pci_set_drvdata(pdev, hif); in mt7996_pci_hif2_probe() 107 static int mt7996_pci_probe(struct pci_dev *pdev, in mt7996_pci_probe() argument [all …]
|
/freebsd/sys/dev/ena/ |
H A D | ena.c | 210 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 D | adf_aer.c | 73 device_t pdev = accel_to_pci_dev(accel_dev); 74 device_t parent = device_get_parent(device_get_parent(pdev)); 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); 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) / 100 in adf_reset_flr() local 77 device_t pdev = accel_to_pci_dev(accel_dev); adf_reset_sbr() local 127 device_t pdev = accel_to_pci_dev(accel_dev); adf_dev_pre_reset() local 153 device_t pdev = accel_to_pci_dev(accel_dev); adf_dev_post_reset() local 171 device_t pdev = accel_to_pci_dev(accel_dev); adf_dev_restore() local [all...] |
/freebsd/sys/dev/clk/ |
H A D | clkdev_if.m | 38 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 D | adf_c4xxx_reset.c | 10 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 D | pci.c | 150 mt76x0e_probe(struct pci_dev *pdev, const struct pci_device_id *id) in mt76x0e_probe() argument 170 ret = pcim_enable_device(pdev); in mt76x0e_probe() 174 ret = pcim_iomap_regions(pdev, BIT(0), pci_name(pdev)); in mt76x0e_probe() 178 pci_set_master(pdev); in mt76x0e_probe() 180 ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); in mt76x0e_probe() 184 mt76_pci_disable_aspm(pdev); in mt76x0e_probe() 186 mdev = mt76_alloc_device(&pdev->dev, sizeof(*dev), &mt76x0e_ops, in mt76x0e_probe() 194 mt76_mmio_init(mdev, pcim_iomap_table(pdev)[0]); in mt76x0e_probe() 201 ret = devm_request_irq(mdev->dev, pdev->irq, mt76x02_irq_handler, in mt76x0e_probe() 229 mt76x0e_remove(struct pci_dev *pdev) in mt76x0e_remove() argument [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7603/ |
H A D | pci.c | 15 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()
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7921/ |
H A D | pci.c | 228 static int mt7921_pci_probe(struct pci_dev *pdev, in mt7921_pci_probe() argument 277 ret = pcim_enable_device(pdev); in mt7921_pci_probe() 281 ret = pcim_iomap_regions(pdev, BIT(0), pci_name(pdev)); in mt7921_pci_probe() 285 pci_read_config_word(pdev, PCI_COMMAND, &cmd); in mt7921_pci_probe() 288 pci_write_config_word(pdev, PCI_COMMAND, cmd); in mt7921_pci_probe() 290 pci_set_master(pdev); in mt7921_pci_probe() 292 ret = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_ALL_TYPES); in mt7921_pci_probe() 296 ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); in mt7921_pci_probe() 301 mt76_pci_disable_aspm(pdev); in mt7921_pci_probe() 303 ops = mt792x_get_mac80211_ops(&pdev->dev, &mt7921_ops, in mt7921_pci_probe() [all …]
|
/freebsd/sys/contrib/dev/athk/ath11k/ |
H A D | pci.c | 420 struct pci_dev *dev = ab_pci->pdev; in ath11k_pci_msi_config() 447 struct pci_dev *pci_dev = ab_pci->pdev; in ath11k_pci_alloc_msi() 459 num_vectors = pci_alloc_irq_vectors(ab_pci->pdev, in ath11k_pci_alloc_msi() 475 msi_desc = irq_get_msi_desc(ab_pci->pdev->irq); in ath11k_pci_alloc_msi() 499 pci_free_irq_vectors(ab_pci->pdev); in ath11k_pci_alloc_msi() 507 pci_free_irq_vectors(ab_pci->pdev); in ath11k_pci_free_msi() 514 msi_desc = irq_get_msi_desc(ab_pci->pdev->irq); in ath11k_pci_config_msi_data() 517 pci_free_irq_vectors(ab_pci->pdev); in ath11k_pci_config_msi_data() 529 static int ath11k_pci_claim(struct ath11k_pci *ab_pci, struct pci_dev *pdev) in ath11k_pci_claim() argument 535 pci_read_config_word(pdev, PCI_DEVICE_ID, &device_id); in ath11k_pci_claim() [all …]
|
/freebsd/sys/contrib/dev/athk/ath12k/ |
H A D | trace.h | 79 __entry->info = ar->pdev->timestamp.info; 80 __entry->sync_tstmp_lo_us = ar->pdev->timestamp.sync_timestamp_hi_us; 81 __entry->sync_tstmp_hi_us = ar->pdev->timestamp.sync_timestamp_lo_us; 82 __entry->mlo_offset_lo = ar->pdev->timestamp.mlo_offset_lo; 83 __entry->mlo_offset_hi = ar->pdev->timestamp.mlo_offset_hi; 84 __entry->mlo_offset_clks = ar->pdev->timestamp.mlo_offset_clks; 85 __entry->mlo_comp_clks = ar->pdev->timestamp.mlo_comp_clks; 86 __entry->mlo_comp_timer = ar->pdev->timestamp.mlo_comp_timer; 124 __entry->info = ar->pdev->timestamp.info; 125 __entry->sync_tstmp_lo_us = ar->pdev->timestamp.sync_timestamp_hi_us; [all …]
|