/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | vgaarb.h | 51 struct pci_dev; 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() 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() 116 static inline int vga_get_interruptible(struct pci_dev *pdev, in vga_get_interruptible() 128 static inline int vga_get_uninterruptible(struct pci_dev *pdev, 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() 165 extern void vga_put(struct pci_dev *pdev, unsigned int rsrc); [all …]
|
H A D | pci.h | 109 #define to_pci_dev(n) container_of(n, struct pci_dev, dev) 253 struct pci_dev; 259 int (*probe)(struct pci_dev *dev, const struct pci_device_id *id); 260 void (*remove)(struct pci_dev *dev); 261 int (*suspend) (struct pci_dev *dev, pm_message_t state); /* Device suspended */ 262 int (*resume) (struct pci_dev *dev); /* Device woken up */ 263 void (*shutdown) (struct pci_dev *dev); /* Device shutdown */ 278 struct pci_dev *self; 325 struct pci_dev { struct 330 struct pci_dev *root; argument [all …]
|
H A D | aperture.h | 10 struct pci_dev; 21 int __aperture_remove_legacy_vga_devices(struct pci_dev *pdev); 23 int aperture_remove_conflicting_pci_devices(struct pci_dev *pdev, const char *name); 38 static inline int __aperture_remove_legacy_vga_devices(struct pci_dev *pdev) in __aperture_remove_legacy_vga_devices() 43 static inline int aperture_remove_conflicting_pci_devices(struct pci_dev *pdev, const char *name) in aperture_remove_conflicting_pci_devices()
|
/freebsd/sys/dev/qlxgbe/ |
H A D | ql_misc.c | 78 device_printf(ha->pci_dev, "%s: [0x%08x, 0x%08x, %d] failed\n", in ql_rdwr_indreg32() 206 device_printf(ha->pci_dev, in ql_rdwr_offchip_mem() 227 device_printf(ha->pci_dev, "%s: Q8_FLASH_LOCK failed\n", in ql_rd_flash32() 235 device_printf(ha->pci_dev, in ql_rd_flash32() 244 device_printf(ha->pci_dev, in ql_rd_flash32() 266 device_printf(ha->pci_dev, in qla_get_fdt() 275 device_printf(ha->pci_dev, "%s: Q8_FLASH_LOCK failed\n", in qla_get_fdt() 283 device_printf(ha->pci_dev, in qla_get_fdt() 292 device_printf(ha->pci_dev, in qla_get_fdt() 313 device_printf(ha->pci_dev, in qla_get_fdt() [all …]
|
H A D | ql_os.c | 160 device_t dev = ha->pci_dev; in qla_add_sysctls() 279 device_printf(ha->pci_dev, in qla_watchdog() 343 ha->pci_dev = dev; in qla_pci_attach() 532 device_get_nameunit(ha->pci_dev)); in qla_pci_attach() 538 device_get_nameunit(ha->pci_dev)); in qla_pci_attach() 544 device_get_nameunit(ha->pci_dev)); in qla_pci_attach() 632 dev = ha->pci_dev; in qla_release() 732 dev = ha->pci_dev; in ql_alloc_dmabuf() 804 dev = ha->pci_dev; in qla_alloc_parent_dma_tag() 949 QL_DPRINT2(ha, (ha->pci_dev, "%s: enter\n", __func__)); in qla_init() [all …]
|
H A D | ql_ioctl.c | 89 device_t pci_dev; in ql_eioctl() local 107 pci_dev= ha->pci_dev; in ql_eioctl() 225 device_printf(pci_dev, "%s: minidump not initialized\n", __func__); in ql_eioctl() 235 device_printf(pci_dev, in ql_eioctl() 244 device_printf(pci_dev, "%s: mindump allowed only on Port0\n", __func__); in ql_eioctl() 259 device_printf(pci_dev, in ql_eioctl() 270 device_printf(pci_dev, "%s: recovery initiated " in ql_eioctl() 276 device_printf(pci_dev, "%s: QLA_LOCK() failed0\n", __func__); in ql_eioctl() 293 device_printf(pci_dev, in ql_eioctl() 304 device_printf(pci_dev, "%s: QLA_LOCK() failed1\n", __func__); in ql_eioctl() [all …]
|
H A D | ql_hw.c | 91 device_printf(ha->pci_dev, "%s PEGS HALTED!!!!!\n", __func__); in qla_stop_pegs() 184 device_printf(ha->pci_dev, "%s: failed\n", __func__); in qla_sysctl_port_cfg() 191 device_printf(ha->pci_dev, "%s: failed\n", __func__); in qla_sysctl_port_cfg() 218 device_printf(ha->pci_dev, "%s: failed\n", __func__); in qla_sysctl_set_cam_search_mode() 222 device_printf(ha->pci_dev, "%s: ret = %d\n", __func__, ret); in qla_sysctl_set_cam_search_mode() 244 device_printf(ha->pci_dev, "%s: failed\n", __func__); in qla_sysctl_get_cam_search_mode() 257 ctx = device_get_sysctl_ctx(ha->pci_dev); in qlnx_add_hw_mac_stats_sysctls() 258 children = SYSCTL_CHILDREN(device_get_sysctl_tree(ha->pci_dev)); in qlnx_add_hw_mac_stats_sysctls() 474 ctx = device_get_sysctl_ctx(ha->pci_dev); in qlnx_add_hw_rcv_stats_sysctls() 475 children = SYSCTL_CHILDREN(device_get_sysctl_tree(ha->pci_dev)); in qlnx_add_hw_rcv_stats_sysctls() [all …]
|
H A D | ql_isr.c | 92 device_printf(ha->pci_dev, in qla_rx_intr() 116 device_printf(ha->pci_dev, in qla_rx_intr() 233 device_printf(ha->pci_dev, in qla_lro_intr() 257 device_printf(ha->pci_dev, in qla_lro_intr() 373 device_printf(ha->pci_dev, "%s: opcode=0 %p %p\n", in qla_rcv_cont_sds() 381 device_printf(ha->pci_dev, "%s: opcode=0 %p %p\n", in qla_rcv_cont_sds() 441 device_printf(ha->pci_dev, in qla_rcv_cont_sds() 477 dev = ha->pci_dev; in ql_rcv_isr() 794 device_printf(ha->pci_dev, in ql_mbx_isr() 817 device_printf(ha->pci_dev, "%s: AEN[0x%08x]\n", __func__, data); in ql_mbx_isr() [all …]
|
/freebsd/sys/dev/qlxge/ |
H A D | qls_os.c | 163 QL_DPRINT2((ha->pci_dev, in qls_sysctl_get_drvr_stats() 168 QL_DPRINT2((ha->pci_dev, in qls_sysctl_get_drvr_stats() 173 QL_DPRINT2((ha->pci_dev, in qls_sysctl_get_drvr_stats() 178 device_printf(ha->pci_dev, in qls_sysctl_get_drvr_stats() 183 device_printf(ha->pci_dev, in qls_sysctl_get_drvr_stats() 188 device_printf(ha->pci_dev, in qls_sysctl_get_drvr_stats() 193 device_printf(ha->pci_dev, in qls_sysctl_get_drvr_stats() 200 QL_DPRINT2((ha->pci_dev, in qls_sysctl_get_drvr_stats() 205 QL_DPRINT2((ha->pci_dev, in qls_sysctl_get_drvr_stats() 210 device_printf(ha->pci_dev, in qls_sysctl_get_drvr_stats() [all …]
|
H A D | qls_hw.c | 141 dev = ha->pci_dev; in qls_hw_add_sysctls() 245 QL_DPRINT1((ha->pci_dev, "%s: semlock failed\n", __func__)); in qls_config_unicast_mac_addr() 311 QL_DPRINT1((ha->pci_dev, "%s: semlock failed\n", __func__)); in qls_config_mcast_mac_addr() 378 device_printf(ha->pci_dev, "%s: [0x%08x, 0x%08x] failed\n", in qls_load_route_idx_reg() 397 QL_DPRINT1((ha->pci_dev, "%s: semlock failed\n", __func__)); in qls_load_route_idx_reg_locked() 415 QL_DPRINT1((ha->pci_dev, "%s: semlock failed\n", __func__)); in qls_clear_routing_table() 482 QL_DPRINT1((ha->pci_dev, "%s: semlock failed\n", __func__)); in qls_init_fw_routing_table() 675 dev = ha->pci_dev; in qls_hw_send() 823 QL_DPRINT2((ha->pci_dev, "%s:enter\n", __func__)); in qls_init_hw_if() 927 QL_DPRINT2((ha->pci_dev, "%s:rxr [0x%08x]\n", __func__, in qls_init_hw_if() [all …]
|
H A D | qls_dbg.c | 54 dev = ha->pci_dev; in qls_dump_buf32() 96 dev = ha->pci_dev; in qls_dump_buf16() 158 dev = ha->pci_dev; in qls_dump_buf8() 277 device_printf(ha->pci_dev, "%s: lbq_addr_tbl_paddr %p\n", __func__, in qls_dump_cq() 283 device_printf(ha->pci_dev, "%s: lbq_paddr %p\n", __func__, in qls_dump_cq() 289 device_printf(ha->pci_dev, "%s: sbq_addr_tbl_paddr %p\n", __func__, in qls_dump_cq() 295 device_printf(ha->pci_dev, "%s: sbq_paddr %p\n", __func__, in qls_dump_cq() 301 device_printf(ha->pci_dev, "%s: lb_paddr %p\n", __func__, in qls_dump_cq()
|
/freebsd/sys/dev/qat/qat_common/ |
H A D | adf_isr.c | 57 error = pci_alloc_msix(info_pci_dev->pci_dev, &count); in adf_enable_msix() 59 pci_release_msi(info_pci_dev->pci_dev); in adf_enable_msix() 71 pci_remap_msix(info_pci_dev->pci_dev, num_vectors, vectors); in adf_enable_msix() 76 pci_release_msi(info_pci_dev->pci_dev); in adf_enable_msix() 87 pci_release_msi(info_pci_dev->pci_dev); in adf_disable_msix() 180 bus_alloc_resource_any(info_pci_dev->pci_dev, in adf_request_irqs() 192 ret = bus_setup_intr(info_pci_dev->pci_dev, in adf_request_irqs() 204 bus_release_resource(info_pci_dev->pci_dev, in adf_request_irqs() 213 bus_describe_intr(info_pci_dev->pci_dev, in adf_request_irqs() 218 bus_bind_intr(info_pci_dev->pci_dev, in adf_request_irqs() [all …]
|
/freebsd/sys/dev/qlxgb/ |
H A D | qla_os.c | 147 device_t dev = ha->pci_dev; in qla_add_sysctls() 255 ha->pci_dev = dev; in qla_pci_attach() 302 device_get_nameunit(ha->pci_dev)); in qla_pci_attach() 334 device_get_nameunit(ha->pci_dev)); in qla_pci_attach() 455 QL_DPRINT2((ha->pci_dev, "%s: called ret %d\n", __func__, ret)); in qla_sysctl_get_stats() 469 dev = ha->pci_dev; in qla_release() 537 dev = ha->pci_dev; in qla_alloc_dmabuf() 609 dev = ha->pci_dev; in qla_alloc_parent_dma_tag() 740 QL_DPRINT2((ha->pci_dev, "%s: enter\n", __func__)); in qla_init() 746 QL_DPRINT2((ha->pci_dev, "%s: exit\n", __func__)); in qla_init() [all …]
|
H A D | qla_ioctl.c | 87 device_t pci_dev; in qla_eioctl() local 92 pci_dev= ha->pci_dev; in qla_eioctl() 133 pci_ids->ven_id = pci_get_vendor(pci_dev); in qla_eioctl() 134 pci_ids->dev_id = pci_get_device(pci_dev); in qla_eioctl() 135 pci_ids->subsys_ven_id = pci_get_subvendor(pci_dev); in qla_eioctl() 136 pci_ids->subsys_dev_id = pci_get_subdevice(pci_dev); in qla_eioctl() 137 pci_ids->rev_id = pci_read_config(pci_dev, PCIR_REVID, 1); in qla_eioctl()
|
H A D | qla_misc.c | 212 device_printf(ha->pci_dev, "%s: invalid addr 0x%08x\n", in qla_rdwr_indreg32() 219 device_printf(ha->pci_dev, "%s: undefined map 0x%08x\n", in qla_rdwr_indreg32() 227 device_printf(ha->pci_dev, "%s: SEM7_LOCK failed\n", __func__); in qla_rdwr_indreg32() 295 device_printf(ha->pci_dev, "%s: failed[0x%08x]\n", __func__, data); in qla_rdwr_offchip_mem() 310 device_printf(ha->pci_dev, "%s: SEM2_LOCK failed\n", __func__); in qla_rd_flash32() 351 device_printf(ha->pci_dev, "%s: SEM2_LOCK failed\n", __func__); in qla_p3p_sem_lock2() 421 QL_DPRINT2((ha->pci_dev, "%s: val[0] = 0x%08x\n", __func__, sig)); in qla_crb_init() 424 QL_DPRINT2((ha->pci_dev, "%s: val[4] = 0x%08x\n", __func__, val)); in qla_crb_init() 430 QL_DPRINT2((ha->pci_dev, "%s: [sig,val]=[0x%08x, 0x%08x] %d pairs\n", in qla_crb_init() 437 device_printf(ha->pci_dev, "%s: malloc failed\n", __func__); in qla_crb_init() [all …]
|
H A D | qla_hw.c | 87 dev = ha->pci_dev; in qla_hw_add_sysctls() 142 dev = ha->pci_dev; in qla_alloc_dma() 390 QL_DPRINT2((ha->pci_dev, "%s: tx_cntxt_req = %p paddr %p\n", in qla_init_cntxt_regions() 392 QL_DPRINT2((ha->pci_dev, "%s: tx_cntxt_rsp = %p paddr %p\n", in qla_init_cntxt_regions() 394 QL_DPRINT2((ha->pci_dev, "%s: rx_cntxt_req = %p paddr %p\n", in qla_init_cntxt_regions() 396 QL_DPRINT2((ha->pci_dev, "%s: rx_cntxt_rsp = %p paddr %p\n", in qla_init_cntxt_regions() 398 QL_DPRINT2((ha->pci_dev, "%s: tx_cons = %p paddr %p\n", in qla_init_cntxt_regions() 415 dev = ha->pci_dev; in qla_issue_cmd() 492 dev = ha->pci_dev; in qla_fw_cmd() 718 dev = ha->pci_dev; in qla_tx_tso() [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() 165 linux_pdev_dma_init(struct pci_dev *pdev) in linux_pdev_dma_init() 287 struct pci_dev * 288 lkpi_pci_get_device(uint16_t vendor, uint16_t device, struct pci_dev *odev) in lkpi_pci_get_device() 290 struct pci_dev *pdev; in lkpi_pci_get_device() 313 lkpifill_pci_dev(device_t dev, struct pci_dev *pdev) in lkpifill_pci_dev() 355 struct pci_dev *pdev; in lkpinew_pci_dev_release() 373 struct pci_dev * 376 struct pci_dev *pdev; in lkpinew_pci_dev() 385 struct pci_dev * [all …]
|
/freebsd/sys/contrib/dev/athk/ath11k/ |
H A D | pci.c | 157 struct pci_dev *pci_dev = to_pci_dev(ab->dev); in ath11k_pci_get_msi_irq() local 159 return pci_irq_vector(pci_dev, vector); in ath11k_pci_get_msi_irq() 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() local 452 num_vectors = pci_alloc_irq_vectors(pci_dev, in ath11k_pci_alloc_msi() 484 pci_read_config_dword(pci_dev, pci_dev->msi_cap + PCI_MSI_ADDRESS_LO, in ath11k_pci_alloc_msi() 488 pci_read_config_dword(pci_dev, pci_dev->msi_cap + PCI_MSI_ADDRESS_HI, in ath11k_pci_alloc_msi() 529 static int ath11k_pci_claim(struct ath11k_pci *ab_pci, struct pci_dev *pdev) in ath11k_pci_claim() 595 struct pci_dev *pci_dev = ab_pci->pdev; in ath11k_pci_free_region() local 597 pci_iounmap(pci_dev, ab->mem); in ath11k_pci_free_region() [all …]
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | qlnx_ioctl.c | 464 pci_cfg_rd_wr->val = pci_read_config(ha->pci_dev, in qlnx_rd_wr_pci_config() 470 pci_write_config(ha->pci_dev, pci_cfg_rd_wr->reg, in qlnx_rd_wr_pci_config() 553 "%d:%d:%d", pci_get_bus(ha->pci_dev), in qlnx_drv_info() 554 pci_get_slot(ha->pci_dev), ha->pci_func); in qlnx_drv_info() 773 device_printf(ha->pci_dev, in qlnx_lldp_configure() 813 device_printf(ha->pci_dev, in qlnx_lldp_configure() 826 device_printf(ha->pci_dev, in qlnx_lldp_configure() 842 device_printf(ha->pci_dev, in qlnx_register_default_lldp_tlvs() 851 device_printf(ha->pci_dev, in qlnx_register_default_lldp_tlvs() 860 device_printf(ha->pci_dev, in qlnx_register_default_lldp_tlvs() [all …]
|
H A D | qlnx_def.h | 367 device_t pci_dev; member 536 device_printf ((ha)->pci_dev, \ 546 device_printf ((ha)->pci_dev, \ 556 device_printf ((ha)->pci_dev, \ 566 device_printf ((ha)->pci_dev, \ 576 device_printf ((ha)->pci_dev, \ 586 device_printf ((ha)->pci_dev, \ 596 device_printf ((ha)->pci_dev, \ 606 device_printf ((ha)->pci_dev, \ 616 device_printf ((ha)->pci_dev, \ [all …]
|
/freebsd/sys/dev/bhnd/bhndb/ |
H A D | bhndb_pci.c | 90 device_t pci_dev, const struct bhndb_regwin *, 92 static int bhndb_pci_fast_setregwin(device_t dev, device_t pci_dev, 162 device_t pci_dev; /**< parent PCI device */ member 896 bhndb_pci_compat_setregwin(device_t dev, device_t pci_dev, in bhndb_pci_compat_setregwin() argument 907 if ((error = bhndb_pci_fast_setregwin(dev, pci_dev, rw, addr))) in bhndb_pci_compat_setregwin() 910 if (pci_read_config(pci_dev, reg, 4) == addr) in bhndb_pci_compat_setregwin() 924 bhndb_pci_fast_setregwin(device_t dev, device_t pci_dev, in bhndb_pci_fast_setregwin() argument 938 pci_write_config(pci_dev, rw->d.dyn.cfg_offset, addr, 4); in bhndb_pci_fast_setregwin() 1047 device_t pci_dev; in bhndb_enable_pci_clocks() local 1052 pci_dev = device_get_parent(dev); in bhndb_enable_pci_clocks() [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() 88 static int mt7996_pci_hif2_probe(struct pci_dev *pdev) in mt7996_pci_hif2_probe() 107 static int mt7996_pci_probe(struct pci_dev *pdev, in mt7996_pci_probe() 110 struct pci_dev *hif2_dev; in mt7996_pci_probe() 159 hif2_dev = container_of(hif2->dev, struct pci_dev, dev); in mt7996_pci_probe() 202 static void mt7996_hif_remove(struct pci_dev *pdev) in mt7996_hif_remove() 209 static void mt7996_pci_remove(struct pci_dev *pdev) in mt7996_pci_remove()
|
/freebsd/sys/contrib/dev/athk/ath12k/ |
H A D | pci.c | 650 struct pci_dev *dev = ab_pci->pdev; in ath12k_pci_msi_config() 723 static int ath12k_pci_claim(struct ath12k_pci *ab_pci, struct pci_dev *pdev) in ath12k_pci_claim() 787 struct pci_dev *pci_dev = ab_pci->pdev; in ath12k_pci_free_region() local 789 pci_iounmap(pci_dev, ab->mem); in ath12k_pci_free_region() 791 pci_release_region(pci_dev, ATH12K_PCI_BAR_NUM); in ath12k_pci_free_region() 792 if (pci_is_enabled(pci_dev)) in ath12k_pci_free_region() 793 pci_disable_device(pci_dev); in ath12k_pci_free_region() 888 struct pci_dev *pci_dev = to_pci_dev(dev); in ath12k_pci_get_msi_irq() local 890 return pci_irq_vector(pci_dev, vector); in ath12k_pci_get_msi_irq() 925 struct pci_dev *pci_dev = to_pci_dev(ab->dev); in ath12k_pci_get_msi_address() local [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() 77 struct pci_dev *tmp_pdev; in mt7915_pci_init_hif2() 107 static int mt7915_pci_hif2_probe(struct pci_dev *pdev) in mt7915_pci_hif2_probe() 126 static int mt7915_pci_probe(struct pci_dev *pdev, in mt7915_pci_probe() 226 static void mt7915_hif_remove(struct pci_dev *pdev) in mt7915_hif_remove() 233 static void mt7915_pci_remove(struct pci_dev *pdev) in mt7915_pci_remove()
|
/freebsd/sys/dev/cxgb/common/ |
H A D | cxgb_ctl_defs.h | 70 struct pci_dev; 79 struct pci_dev *pdev; 101 struct pci_dev *pdev;
|