| /linux/drivers/fpga/ |
| A D | dfl-pci.c | 47 return pcim_iomap_table(pcidev)[0]; in cci_pci_ioremap_bar0() 68 pci_free_irq_vectors(pcidev); in cci_pci_free_irq() 131 pci_set_drvdata(pcidev, drvdata); in cci_init_drvdata() 142 cci_pci_free_irq(pcidev); in cci_remove_feature_devs() 319 nvec = cci_pci_alloc_irq(pcidev); in cci_enumerate_feature_devs() 356 cci_pci_free_irq(pcidev); in cci_enumerate_feature_devs() 374 pci_set_master(pcidev); in cci_pci_probe() 384 ret = cci_init_drvdata(pcidev); in cci_pci_probe() 409 pci_disable_sriov(pcidev); in cci_pci_sriov_configure() 436 if (dev_is_pf(&pcidev->dev)) in cci_pci_remove() [all …]
|
| /linux/drivers/infiniband/hw/qib/ |
| A D | qib_pcie.c | 127 dd->pcidev = pdev; in qib_pcie_ddinit() 170 pci_disable_device(dd->pcidev); in qib_pcie_ddcleanup() 171 pci_release_regions(dd->pcidev); in qib_pcie_ddcleanup() 203 if (!pci_is_pcie(dd->pcidev)) { in qib_pcie_params() 227 if (dd->pcidev->msi_enabled) in qib_pcie_params() 282 pci_free_irq(dd->pcidev, 0, dd); in qib_free_irq() 304 pos = dd->pcidev->msi_cap; in qib_reinit_intr() 334 pci_set_master(dd->pcidev); in qib_reinit_intr() 393 parent = dd->pcidev->bus->self; in qib_tune_pcie_coalesce() 457 parent = dd->pcidev->bus->self; in qib_tune_pcie_caps() [all …]
|
| /linux/drivers/comedi/ |
| A D | comedi_pci.c | 50 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in comedi_pci_enable() local 53 if (!pcidev) in comedi_pci_enable() 56 rc = pci_enable_device(pcidev); in comedi_pci_enable() 62 pci_disable_device(pcidev); in comedi_pci_enable() 81 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in comedi_pci_disable() local 83 if (pcidev && dev->ioenabled) { in comedi_pci_disable() 84 pci_release_regions(pcidev); in comedi_pci_disable() 85 pci_disable_device(pcidev); in comedi_pci_disable() 107 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in comedi_pci_detach() local 109 if (!pcidev || !dev->ioenabled) in comedi_pci_detach() [all …]
|
| /linux/drivers/tty/serial/8250/ |
| A D | 8250_exar.c | 618 switch (pcidev->device) { in pci_fastcom335_setup() 805 switch (pcidev->device) { in cti_get_port_type_fpga() 883 struct pci_dev *pcidev, in cti_port_setup_common() argument 928 struct pci_dev *pcidev, in cti_port_setup_fpga() argument 967 struct pci_dev *pcidev, in cti_port_setup_xr17v35x() argument 1032 struct pci_dev *pcidev, in cti_port_setup_xr17v25x() argument 1110 struct pci_dev *pcidev, in cti_port_setup_xr17c15x() argument 1431 setup_gpio(pcidev, p); in pci_xr17v35x_setup() 1489 switch (pcidev->device) { in exar_get_nr_ports() 1535 pci_set_master(pcidev); in exar_pci_probe() [all …]
|
| /linux/drivers/net/ethernet/synopsys/ |
| A D | dwc-xlgmac-pci.c | 25 static int xlgmac_probe(struct pci_dev *pcidev, const struct pci_device_id *id) in xlgmac_probe() argument 27 struct device *dev = &pcidev->dev; in xlgmac_probe() 31 ret = pcim_enable_device(pcidev); in xlgmac_probe() 38 if (pci_resource_len(pcidev, i) == 0) in xlgmac_probe() 40 ret = pcim_iomap_regions(pcidev, BIT(i), XLGMAC_DRV_NAME); in xlgmac_probe() 46 pci_set_master(pcidev); in xlgmac_probe() 49 res.irq = pcidev->irq; in xlgmac_probe() 50 res.addr = pcim_iomap_table(pcidev)[i]; in xlgmac_probe() 52 return xlgmac_drv_probe(&pcidev->dev, &res); in xlgmac_probe() 55 static void xlgmac_remove(struct pci_dev *pcidev) in xlgmac_remove() argument [all …]
|
| /linux/drivers/infiniband/hw/hfi1/ |
| A D | pcie.c | 27 struct pci_dev *pdev = dd->pcidev; in hfi1_pcie_init() 242 if (!pci_is_pcie(dd->pcidev)) { in pcie_speeds() 433 parent = dd->pcidev->bus->self; in tune_pcie_caps() 450 if (!pci_is_pcie(dd->pcidev)) { in tune_pcie_caps() 457 ep_mpss = dd->pcidev->pcie_mpss; in tune_pcie_caps() 475 pcie_set_mps(dd->pcidev, 128 << ep_mps); in tune_pcie_caps() 489 ep_mrrs = pcie_get_readrq(dd->pcidev); in tune_pcie_caps() 497 pcie_set_readrq(dd->pcidev, ep_mrrs); in tune_pcie_caps() 721 struct pci_dev *pdev = dd->pcidev; in load_eq_table() 738 ret = pci_read_config_dword(dd->pcidev, in load_eq_table() [all …]
|
| A D | aspm.c | 25 struct pci_dev *parent = dd->pcidev->bus->self; in aspm_hw_l1_supported() 35 pcie_capability_read_dword(dd->pcidev, PCI_EXP_LNKCAP, &dn); in aspm_hw_l1_supported() 51 pci_read_config_dword(dd->pcidev, PCIE_CFG_REG_PL3, ®32); in aspm_hw_set_l1_ent_latency() 54 pci_write_config_dword(dd->pcidev, PCIE_CFG_REG_PL3, reg32); in aspm_hw_set_l1_ent_latency() 59 struct pci_dev *parent = dd->pcidev->bus->self; in aspm_hw_enable_l1() 72 pcie_capability_clear_and_set_word(dd->pcidev, PCI_EXP_LNKCTL, in aspm_hw_enable_l1() 79 struct pci_dev *parent = dd->pcidev->bus->self; in aspm_hw_disable_l1() 82 pcie_capability_clear_and_set_word(dd->pcidev, PCI_EXP_LNKCTL, in aspm_hw_disable_l1()
|
| A D | efivar.c | 120 pci_domain_nr(dd->pcidev->bus), in read_hfi1_efi_var() 121 dd->pcidev->bus->number, in read_hfi1_efi_var() 122 PCI_SLOT(dd->pcidev->devfn), in read_hfi1_efi_var() 123 PCI_FUNC(dd->pcidev->devfn)); in read_hfi1_efi_var()
|
| /linux/drivers/scsi/aic94xx/ |
| A D | aic94xx_init.c | 71 pci_name(asd_ha->pcidev)); in asd_map_memio() 77 pci_name(asd_ha->pcidev)); in asd_map_memio() 120 pci_name(asd_ha->pcidev)); in asd_map_ioport() 126 pci_name(asd_ha->pcidev)); in asd_map_ioport() 192 pci_name(asd_ha->pcidev), in asd_common_setup() 357 &asd_ha->pcidev->dev); in asd_store_update_bios() 379 asd_ha->pcidev->vendor, in asd_store_update_bios() 380 asd_ha->pcidev->device); in asd_store_update_bios() 509 &asd_ha->pcidev->dev, in asd_create_ha_caches() 718 asd_ha->pcidev = dev; in asd_pci_probe() [all …]
|
| A D | aic94xx_hwi.c | 143 struct pci_dev *pcidev = asd_ha->pcidev; in asd_init_sw() local 151 pci_name(pcidev)); in asd_init_sw() 158 pci_name(pcidev)); in asd_init_sw() 459 pci_name(asd_ha->pcidev)); in asd_init_chip() 466 pci_name(asd_ha->pcidev)); in asd_init_chip() 617 pci_name(asd_ha->pcidev)); in asd_init_hw() 624 pci_name(asd_ha->pcidev)); in asd_init_hw() 647 pci_name(asd_ha->pcidev)); in asd_init_hw() 775 pci_name(asd_ha->pcidev)); in asd_com_sas_isr() 782 pci_name(asd_ha->pcidev), in asd_com_sas_isr() [all …]
|
| /linux/drivers/parisc/ |
| A D | iosapic.c | 458 pcidev->slot_name, PCI_SLOT(pcidev->devfn), intr_pin); in iosapic_xlate_pin() 466 if (pcidev->bus->parent) { in iosapic_xlate_pin() 706 pci_name(pcidev)); in iosapic_fixup_irq() 719 if (is_superio_device(pcidev)) { in iosapic_fixup_irq() 721 pcidev->irq = superio_fixup_irq(pcidev); in iosapic_fixup_irq() 725 return pcidev->irq; in iosapic_fixup_irq() 733 pci_name(pcidev)); in iosapic_fixup_irq() 782 pcidev->irq = vi->txn_irq; in iosapic_fixup_irq() 785 PCI_SLOT(pcidev->devfn), PCI_FUNC(pcidev->devfn), in iosapic_fixup_irq() 786 pcidev->vendor, pcidev->device, isi_line, pcidev->irq); in iosapic_fixup_irq() [all …]
|
| A D | superio.c | 149 superio_init(struct pci_dev *pcidev) in superio_init() argument 334 int superio_fixup_irq(struct pci_dev *pcidev) in superio_fixup_irq() argument 340 fn = PCI_FUNC(pcidev->devfn); in superio_fixup_irq() 343 if (expected_device[fn] != pcidev->device) { in superio_fixup_irq() 348 pci_name(pcidev), in superio_fixup_irq() 349 pcidev->vendor, pcidev->device, in superio_fixup_irq() 364 switch(pcidev->device) { in superio_fixup_irq() 369 sio_dev.lio_pdev = pcidev; /* save for superio_init() */ in superio_fixup_irq() 372 sio_dev.usb_pdev = pcidev; /* save for superio_init() */ in superio_fixup_irq()
|
| /linux/drivers/comedi/drivers/ |
| A D | ni_labpc_pci.c | 47 static int labpc_pci_mite_init(struct pci_dev *pcidev) in labpc_pci_mite_init() argument 53 mite_base = pci_ioremap_bar(pcidev, 0); in labpc_pci_mite_init() 58 main_phys_addr = pci_resource_start(pcidev, 1); in labpc_pci_mite_init() 69 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in labpc_pci_auto_attach() local 84 ret = labpc_pci_mite_init(pcidev); in labpc_pci_auto_attach() 88 dev->mmio = pci_ioremap_bar(pcidev, 1); in labpc_pci_auto_attach() 92 return labpc_common_attach(dev, pcidev->irq, IRQF_SHARED); in labpc_pci_auto_attach()
|
| A D | 8255_pci.c | 177 static int pci_8255_mite_init(struct pci_dev *pcidev) in pci_8255_mite_init() argument 183 mite_base = pci_ioremap_bar(pcidev, 0); in pci_8255_mite_init() 188 main_phys_addr = pci_resource_start(pcidev, 1); in pci_8255_mite_init() 199 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in pci_8255_auto_attach() local 217 ret = pci_8255_mite_init(pcidev); in pci_8255_auto_attach() 222 if ((pci_resource_flags(pcidev, board->dio_badr) & IORESOURCE_MEM)) { in pci_8255_auto_attach() 223 dev->mmio = pci_ioremap_bar(pcidev, board->dio_badr); in pci_8255_auto_attach() 227 dev->iobase = pci_resource_start(pcidev, board->dio_badr); in pci_8255_auto_attach()
|
| /linux/drivers/char/hw_random/ |
| A D | amd-rng.c | 58 struct pci_dev *pcidev; member 100 pci_read_config_byte(priv->pcidev, 0x40, &rnen); in amd_rng_init() 102 pci_write_config_byte(priv->pcidev, 0x40, rnen); in amd_rng_init() 104 pci_read_config_byte(priv->pcidev, 0x41, &rnen); in amd_rng_init() 106 pci_write_config_byte(priv->pcidev, 0x41, rnen); in amd_rng_init() 116 pci_read_config_byte(priv->pcidev, 0x40, &rnen); in amd_rng_cleanup() 118 pci_write_config_byte(priv->pcidev, 0x40, rnen); in amd_rng_cleanup() 179 priv->pcidev = pdev; in amd_rng_mod_init() 212 pci_dev_put(priv->pcidev); in amd_rng_mod_exit()
|
| /linux/drivers/net/ethernet/amd/xgbe/ |
| A D | xgbe-pci.c | 145 pdata->dev_irq = pci_irq_vector(pdata->pcidev, 0); in xgbe_config_multi_msi() 146 pdata->ecc_irq = pci_irq_vector(pdata->pcidev, 1); in xgbe_config_multi_msi() 147 pdata->i2c_irq = pci_irq_vector(pdata->pcidev, 2); in xgbe_config_multi_msi() 148 pdata->an_irq = pci_irq_vector(pdata->pcidev, 3); in xgbe_config_multi_msi() 159 pdata->pcidev->msix_enabled ? "MSI-X" : "MSI"); in xgbe_config_multi_msi() 172 ret = pci_alloc_irq_vectors(pdata->pcidev, 1, 1, in xgbe_config_irqs() 183 pdata->dev_irq = pci_irq_vector(pdata->pcidev, 0); in xgbe_config_irqs() 186 pdata->an_irq = pci_irq_vector(pdata->pcidev, 0); in xgbe_config_irqs() 225 pdata->pcidev = pdev; in xgbe_pci_probe() 412 pci_free_irq_vectors(pdata->pcidev); in xgbe_pci_probe() [all …]
|
| /linux/drivers/scsi/ |
| A D | ips.c | 699 free_irq(ha->pcidev->irq, ha); in ips_release() 891 IPS_PRINTK(KERN_NOTICE, ha->pcidev, in __ips_eh_reset() 912 IPS_PRINTK(KERN_NOTICE, ha->pcidev, in __ips_eh_reset() 941 IPS_PRINTK(KERN_NOTICE, ha->pcidev, in __ips_eh_reset() 2132 switch (ha->pcidev->device) { in ips_identify_controller() 4264 dma_free_coherent(&ha->pcidev->dev, in ips_deallocatescbs() 6681 free_irq(ha->pcidev->irq, ha); in ips_register_scsi() 6896 ha->pcidev = pci_dev; in ips_init_phase1() 7055 free_irq(ha->pcidev->irq, ha); in ips_init_phase2() 7062 free_irq(ha->pcidev->irq, ha); in ips_init_phase2() [all …]
|
| A D | hptiop.c | 590 struct pci_dev *pcidev = hba->pcidev; in hptiop_map_pci_bar() local 613 struct pci_dev *pcidev = hba->pcidev; in hptiop_map_pci_bar_itl() local 1292 pcidev->bus->number, pcidev->devfn >> 3, pcidev->devfn & 7, in hptiop_probe() 1293 pcidev->irq); in hptiop_probe() 1295 pci_set_master(pcidev); in hptiop_probe() 1324 hba->pcidev = pcidev; in hptiop_probe() 1339 host->irq = pcidev->irq; in hptiop_probe() 1413 pci_set_drvdata(pcidev, host); in hptiop_probe() 1493 pci_release_regions(pcidev); in hptiop_probe() 1496 pci_disable_device(pcidev); in hptiop_probe() [all …]
|
| /linux/drivers/misc/cardreader/ |
| A D | rtsx_pcr.c | 1526 dev_dbg(&(pcidev->dev), in rtsx_pci_probe() 1528 pci_name(pcidev), (int)pcidev->vendor, (int)pcidev->device, in rtsx_pci_probe() 1529 (int)pcidev->revision); in rtsx_pci_probe() 1566 pcr->pci = pcidev; in rtsx_pci_probe() 1605 pci_set_master(pcidev); in rtsx_pci_probe() 1648 pci_release_regions(pcidev); in rtsx_pci_probe() 1650 pci_disable_device(pcidev); in rtsx_pci_probe() 1683 pci_disable_device(pcidev); in rtsx_pci_remove() 1693 dev_dbg(&(pcidev->dev), in rtsx_pci_remove() 1695 pci_name(pcidev), (int)pcidev->vendor, (int)pcidev->device); in rtsx_pci_remove() [all …]
|
| /linux/drivers/video/fbdev/matrox/ |
| A D | matroxfb_DAC1064.c | 116 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx); in DAC1064_setmclk() 131 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx); in DAC1064_setmclk() 133 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx); in DAC1064_setmclk() 158 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx); in DAC1064_setmclk() 160 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx); in DAC1064_setmclk() 905 pci_read_config_dword(minfo->pcidev, PCI_OPTION2_REG, ®50); in MGAG100_preinit() 907 pci_write_config_dword(minfo->pcidev, PCI_OPTION2_REG, reg50); in MGAG100_preinit() 921 pci_write_config_dword(minfo->pcidev, PCI_OPTION2_REG, reg50); in MGAG100_preinit() 937 pci_read_config_dword(minfo->pcidev, PCI_OPTION2_REG, ®50); in MGAG100_preinit() 939 pci_write_config_dword(minfo->pcidev, PCI_OPTION2_REG, reg50); in MGAG100_preinit() [all …]
|
| /linux/drivers/platform/x86/intel/pmc/ |
| A D | core_ssram.c | 166 struct pci_dev *pcidev = pmcdev->ssram_pcidev; in pmc_add_pmt() local 203 intel_vsec_register(pcidev, &info); in pmc_add_pmt() 297 struct pci_dev *pcidev; in pmc_core_ssram_init() local 300 pcidev = pci_get_domain_bus_and_slot(0, 0, PCI_DEVFN(20, func)); in pmc_core_ssram_init() 301 if (!pcidev) in pmc_core_ssram_init() 304 ret = pcim_enable_device(pcidev); in pmc_core_ssram_init() 308 pmcdev->ssram_pcidev = pcidev; in pmc_core_ssram_init() 321 pci_disable_device(pcidev); in pmc_core_ssram_init() 323 pci_dev_put(pcidev); in pmc_core_ssram_init()
|
| /linux/drivers/char/agp/ |
| A D | intel-gtt.c | 65 struct pci_dev *pcidev; /* device one */ member 198 dev_info(&intel_private.pcidev->dev, in i810_setup() 498 dev_info(&intel_private.pcidev->dev, in i965_gtt_total_entries() 555 dma_unmap_page(&intel_private.pcidev->dev, in intel_gtt_teardown_scratch_page() 760 dev_err(&intel_private.pcidev->dev, in intel_gmch_enable_gtt() 776 dev_err(&intel_private.pcidev->dev, in intel_gmch_enable_gtt() 1093 dev_err(&intel_private.pcidev->dev, in intel_i9xx_setup_flush() 1357 intel_private.pcidev = gmch_device; in find_gmch() 1413 dev_err(&intel_private.pcidev->dev, in intel_gmch_probe() 1455 if (intel_private.pcidev) in intel_gmch_remove() [all …]
|
| /linux/drivers/mmc/host/ |
| A D | via-sdmmc.c | 1089 pci_name(pcidev), (int)pcidev->vendor, (int)pcidev->device, in via_sd_probe() 1090 (int)pcidev->revision); in via_sd_probe() 1092 ret = pci_enable_device(pcidev); in via_sd_probe() 1113 len = pci_resource_len(pcidev, 0); in via_sd_probe() 1114 base = pci_resource_start(pcidev, 0); in via_sd_probe() 1166 pci_release_regions(pcidev); in via_sd_probe() 1168 pci_disable_device(pcidev); in via_sd_probe() 1203 free_irq(pcidev->irq, sdhost); in via_sd_remove() 1216 pci_release_regions(pcidev); in via_sd_remove() 1217 pci_disable_device(pcidev); in via_sd_remove() [all …]
|
| /linux/drivers/scsi/bnx2fc/ |
| A D | bnx2fc_tgt.c | 735 tgt->xferq = dma_alloc_coherent(&hba->pcidev->dev, in bnx2fc_alloc_session_resc() 749 tgt->confq = dma_alloc_coherent(&hba->pcidev->dev, in bnx2fc_alloc_session_resc() 763 tgt->confq_pbl = dma_alloc_coherent(&hba->pcidev->dev, in bnx2fc_alloc_session_resc() 787 tgt->conn_db = dma_alloc_coherent(&hba->pcidev->dev, in bnx2fc_alloc_session_resc() 839 dma_free_coherent(&hba->pcidev->dev, tgt->lcq_mem_size, in bnx2fc_free_session_resc() 851 dma_free_coherent(&hba->pcidev->dev, tgt->confq_pbl_size, in bnx2fc_free_session_resc() 856 dma_free_coherent(&hba->pcidev->dev, tgt->confq_mem_size, in bnx2fc_free_session_resc() 868 dma_free_coherent(&hba->pcidev->dev, tgt->rq_pbl_size, in bnx2fc_free_session_resc() 873 dma_free_coherent(&hba->pcidev->dev, tgt->rq_mem_size, in bnx2fc_free_session_resc() 879 dma_free_coherent(&hba->pcidev->dev, tgt->cq_mem_size, in bnx2fc_free_session_resc() [all …]
|
| /linux/drivers/virt/acrn/ |
| A D | hsm.c | 119 struct acrn_pcidev *pcidev; in acrn_dev_ioctl() local 257 pcidev = memdup_user((void __user *)ioctl_param, in acrn_dev_ioctl() 259 if (IS_ERR(pcidev)) in acrn_dev_ioctl() 260 return PTR_ERR(pcidev); in acrn_dev_ioctl() 262 ret = hcall_assign_pcidev(vm->vmid, virt_to_phys(pcidev)); in acrn_dev_ioctl() 266 kfree(pcidev); in acrn_dev_ioctl() 269 pcidev = memdup_user((void __user *)ioctl_param, in acrn_dev_ioctl() 271 if (IS_ERR(pcidev)) in acrn_dev_ioctl() 272 return PTR_ERR(pcidev); in acrn_dev_ioctl() 274 ret = hcall_deassign_pcidev(vm->vmid, virt_to_phys(pcidev)); in acrn_dev_ioctl() [all …]
|