/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() 110 pci_set_drvdata(pcidev, drvdata); in cci_init_drvdata() 121 cci_pci_free_irq(pcidev); in cci_remove_feature_devs() 296 nvec = cci_pci_alloc_irq(pcidev); in cci_enumerate_feature_devs() 333 cci_pci_free_irq(pcidev); in cci_enumerate_feature_devs() 355 pci_set_master(pcidev); in cci_pci_probe() 371 ret = cci_init_drvdata(pcidev); in cci_pci_probe() 398 pci_disable_sriov(pcidev); in cci_pci_sriov_configure() 425 if (dev_is_pf(&pcidev->dev)) in cci_pci_remove() [all …]
|
/linux/drivers/infiniband/hw/qib/ |
A D | qib_pcie.c | 135 dd->pcidev = pdev; in qib_pcie_ddinit() 178 pci_disable_device(dd->pcidev); in qib_pcie_ddcleanup() 179 pci_release_regions(dd->pcidev); in qib_pcie_ddcleanup() 211 if (!pci_is_pcie(dd->pcidev)) { in qib_pcie_params() 235 if (dd->pcidev->msi_enabled) in qib_pcie_params() 290 pci_free_irq(dd->pcidev, 0, dd); in qib_free_irq() 312 pos = dd->pcidev->msi_cap; in qib_reinit_intr() 342 pci_set_master(dd->pcidev); in qib_reinit_intr() 401 parent = dd->pcidev->bus->self; in qib_tune_pcie_coalesce() 465 parent = dd->pcidev->bus->self; in qib_tune_pcie_caps() [all …]
|
/linux/drivers/comedi/ |
A D | comedi_pci.c | 51 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in comedi_pci_enable() local 54 if (!pcidev) in comedi_pci_enable() 57 rc = pci_enable_device(pcidev); in comedi_pci_enable() 63 pci_disable_device(pcidev); in comedi_pci_enable() 82 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in comedi_pci_disable() local 84 if (pcidev && dev->ioenabled) { in comedi_pci_disable() 85 pci_release_regions(pcidev); in comedi_pci_disable() 86 pci_disable_device(pcidev); in comedi_pci_disable() 108 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in comedi_pci_detach() local 110 if (!pcidev || !dev->ioenabled) in comedi_pci_detach() [all …]
|
/linux/drivers/tty/serial/8250/ |
A D | 8250_exar.c | 132 void (*exit)(struct pci_dev *pcidev); 279 switch (pcidev->device) { in pci_fastcom335_setup() 365 pdev->dev.parent = &pcidev->dev; in __xr17v35x_register_gpio() 564 setup_gpio(pcidev, p); in pci_xr17v35x_setup() 620 rc = pcim_enable_device(pcidev); in exar_pci_probe() 637 pci_set_master(pcidev); in exar_pci_probe() 646 uart.port.dev = &pcidev->dev; in exar_pci_probe() 668 dev_err(&pcidev->dev, in exar_pci_probe() 676 pci_set_drvdata(pcidev, priv); in exar_pci_probe() 689 priv->board->exit(pcidev); in exar_pci_remove() [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() 249 if (!pci_is_pcie(dd->pcidev)) { in pcie_speeds() 440 parent = dd->pcidev->bus->self; in tune_pcie_caps() 457 if (!pci_is_pcie(dd->pcidev)) { in tune_pcie_caps() 464 ep_mpss = dd->pcidev->pcie_mpss; in tune_pcie_caps() 482 pcie_set_mps(dd->pcidev, 128 << ep_mps); in tune_pcie_caps() 496 ep_mrrs = pcie_get_readrq(dd->pcidev); in tune_pcie_caps() 504 pcie_set_readrq(dd->pcidev, ep_mrrs); in tune_pcie_caps() 728 struct pci_dev *pdev = dd->pcidev; in load_eq_table() 745 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()
|
/linux/drivers/scsi/aic94xx/ |
A D | aic94xx_init.c | 85 pci_name(asd_ha->pcidev)); in asd_map_memio() 134 pci_name(asd_ha->pcidev)); in asd_map_ioport() 140 pci_name(asd_ha->pcidev)); in asd_map_ioport() 159 pci_name(asd_ha->pcidev)); in asd_map_ha() 206 pci_name(asd_ha->pcidev), in asd_common_setup() 371 &asd_ha->pcidev->dev); in asd_store_update_bios() 393 asd_ha->pcidev->vendor, in asd_store_update_bios() 394 asd_ha->pcidev->device); in asd_store_update_bios() 523 &asd_ha->pcidev->dev, in asd_create_ha_caches() 733 asd_ha->pcidev = dev; in asd_pci_probe() [all …]
|
A D | aic94xx_hwi.c | 145 struct pci_dev *pcidev = asd_ha->pcidev; in asd_init_sw() local 153 pci_name(pcidev)); in asd_init_sw() 160 pci_name(pcidev)); in asd_init_sw() 461 pci_name(asd_ha->pcidev)); in asd_init_chip() 468 pci_name(asd_ha->pcidev)); in asd_init_chip() 619 pci_name(asd_ha->pcidev)); in asd_init_hw() 626 pci_name(asd_ha->pcidev)); in asd_init_hw() 649 pci_name(asd_ha->pcidev)); in asd_init_hw() 777 pci_name(asd_ha->pcidev)); in asd_com_sas_isr() 784 pci_name(asd_ha->pcidev), in asd_com_sas_isr() [all …]
|
/linux/drivers/parisc/ |
A D | iosapic.c | 467 pcidev->slot_name, PCI_SLOT(pcidev->devfn), intr_pin); in iosapic_xlate_pin() 475 if (pcidev->bus->parent) { in iosapic_xlate_pin() 715 pci_name(pcidev)); in iosapic_fixup_irq() 728 if (is_superio_device(pcidev)) { in iosapic_fixup_irq() 730 pcidev->irq = superio_fixup_irq(pcidev); in iosapic_fixup_irq() 734 return pcidev->irq; in iosapic_fixup_irq() 742 pci_name(pcidev)); in iosapic_fixup_irq() 791 pcidev->irq = vi->txn_irq; in iosapic_fixup_irq() 794 PCI_SLOT(pcidev->devfn), PCI_FUNC(pcidev->devfn), in iosapic_fixup_irq() 795 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 | 48 static int labpc_pci_mite_init(struct pci_dev *pcidev) in labpc_pci_mite_init() argument 54 mite_base = pci_ioremap_bar(pcidev, 0); in labpc_pci_mite_init() 59 main_phys_addr = pci_resource_start(pcidev, 1); in labpc_pci_mite_init() 70 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in labpc_pci_auto_attach() local 85 ret = labpc_pci_mite_init(pcidev); in labpc_pci_auto_attach() 89 dev->mmio = pci_ioremap_bar(pcidev, 1); in labpc_pci_auto_attach() 93 return labpc_common_attach(dev, pcidev->irq, IRQF_SHARED); in labpc_pci_auto_attach()
|
A D | 8255_pci.c | 175 static int pci_8255_mite_init(struct pci_dev *pcidev) in pci_8255_mite_init() argument 181 mite_base = pci_ioremap_bar(pcidev, 0); in pci_8255_mite_init() 186 main_phys_addr = pci_resource_start(pcidev, 1); in pci_8255_mite_init() 197 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in pci_8255_auto_attach() local 215 ret = pci_8255_mite_init(pcidev); in pci_8255_auto_attach() 220 if ((pci_resource_flags(pcidev, board->dio_badr) & IORESOURCE_MEM)) { in pci_8255_auto_attach() 221 dev->mmio = pci_ioremap_bar(pcidev, board->dio_badr); in pci_8255_auto_attach() 225 dev->iobase = pci_resource_start(pcidev, board->dio_badr); in pci_8255_auto_attach()
|
/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() 402 pci_free_irq_vectors(pdata->pcidev); in xgbe_pci_probe() [all …]
|
/linux/drivers/char/hw_random/ |
A D | amd-rng.c | 57 struct pci_dev *pcidev; member 99 pci_read_config_byte(priv->pcidev, 0x40, &rnen); in amd_rng_init() 101 pci_write_config_byte(priv->pcidev, 0x40, rnen); in amd_rng_init() 103 pci_read_config_byte(priv->pcidev, 0x41, &rnen); in amd_rng_init() 105 pci_write_config_byte(priv->pcidev, 0x41, rnen); in amd_rng_init() 115 pci_read_config_byte(priv->pcidev, 0x40, &rnen); in amd_rng_cleanup() 117 pci_write_config_byte(priv->pcidev, 0x40, rnen); in amd_rng_cleanup() 172 priv->pcidev = pdev; in amd_rng_mod_init()
|
/linux/drivers/scsi/ |
A D | ips.c | 697 free_irq(ha->pcidev->irq, ha); in ips_release() 909 IPS_PRINTK(KERN_NOTICE, ha->pcidev, in __ips_eh_reset() 930 IPS_PRINTK(KERN_NOTICE, ha->pcidev, in __ips_eh_reset() 959 IPS_PRINTK(KERN_NOTICE, ha->pcidev, in __ips_eh_reset() 2151 switch (ha->pcidev->device) { in ips_identify_controller() 4285 dma_free_coherent(&ha->pcidev->dev, in ips_deallocatescbs() 6702 free_irq(ha->pcidev->irq, ha); in ips_register_scsi() 6917 ha->pcidev = pci_dev; in ips_init_phase1() 7076 free_irq(ha->pcidev->irq, ha); in ips_init_phase2() 7083 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 1294 pcidev->bus->number, pcidev->devfn >> 3, pcidev->devfn & 7, in hptiop_probe() 1295 pcidev->irq); in hptiop_probe() 1297 pci_set_master(pcidev); in hptiop_probe() 1326 hba->pcidev = pcidev; in hptiop_probe() 1341 host->irq = pcidev->irq; in hptiop_probe() 1415 pci_set_drvdata(pcidev, host); in hptiop_probe() 1495 pci_release_regions(pcidev); in hptiop_probe() 1498 pci_disable_device(pcidev); in hptiop_probe() [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/misc/cardreader/ |
A D | rtsx_pcr.c | 1534 dev_dbg(&(pcidev->dev), in rtsx_pci_probe() 1536 pci_name(pcidev), (int)pcidev->vendor, (int)pcidev->device, in rtsx_pci_probe() 1537 (int)pcidev->revision); in rtsx_pci_probe() 1574 pcr->pci = pcidev; in rtsx_pci_probe() 1614 pci_set_master(pcidev); in rtsx_pci_probe() 1659 pci_release_regions(pcidev); in rtsx_pci_probe() 1661 pci_disable_device(pcidev); in rtsx_pci_probe() 1697 pci_disable_device(pcidev); in rtsx_pci_remove() 1712 dev_dbg(&(pcidev->dev), in rtsx_pci_remove() 1714 pci_name(pcidev), (int)pcidev->vendor, (int)pcidev->device); in rtsx_pci_remove() [all …]
|
/linux/drivers/char/agp/ |
A D | intel-gtt.c | 64 struct pci_dev *pcidev; /* device one */ member 113 if (!pci_map_sg(intel_private.pcidev, in intel_gtt_map_memory() 197 dev_info(&intel_private.pcidev->dev, in i810_setup() 497 dev_info(&intel_private.pcidev->dev, in i965_gtt_total_entries() 554 pci_unmap_page(intel_private.pcidev, in intel_gtt_teardown_scratch_page() 762 dev_err(&intel_private.pcidev->dev, in intel_enable_gtt() 778 dev_err(&intel_private.pcidev->dev, in intel_enable_gtt() 1095 dev_err(&intel_private.pcidev->dev, in intel_i9xx_setup_flush() 1359 intel_private.pcidev = gmch_device; in find_gmch() 1457 if (intel_private.pcidev) in intel_gmch_remove() [all …]
|
/linux/drivers/mmc/host/ |
A D | via-sdmmc.c | 1088 pci_name(pcidev), (int)pcidev->vendor, (int)pcidev->device, in via_sd_probe() 1089 (int)pcidev->revision); in via_sd_probe() 1091 ret = pci_enable_device(pcidev); in via_sd_probe() 1112 len = pci_resource_len(pcidev, 0); in via_sd_probe() 1161 dev_set_drvdata(&pcidev->dev, NULL); in via_sd_probe() 1164 pci_release_regions(pcidev); in via_sd_probe() 1166 pci_disable_device(pcidev); in via_sd_probe() 1201 free_irq(pcidev->irq, sdhost); in via_sd_remove() 1215 pci_release_regions(pcidev); in via_sd_remove() 1216 pci_disable_device(pcidev); in via_sd_remove() [all …]
|
/linux/drivers/scsi/bnx2fc/ |
A D | bnx2fc_tgt.c | 737 tgt->xferq = dma_alloc_coherent(&hba->pcidev->dev, in bnx2fc_alloc_session_resc() 751 tgt->confq = dma_alloc_coherent(&hba->pcidev->dev, in bnx2fc_alloc_session_resc() 765 tgt->confq_pbl = dma_alloc_coherent(&hba->pcidev->dev, in bnx2fc_alloc_session_resc() 789 tgt->conn_db = dma_alloc_coherent(&hba->pcidev->dev, in bnx2fc_alloc_session_resc() 842 dma_free_coherent(&hba->pcidev->dev, tgt->lcq_mem_size, in bnx2fc_free_session_resc() 854 dma_free_coherent(&hba->pcidev->dev, tgt->confq_pbl_size, in bnx2fc_free_session_resc() 859 dma_free_coherent(&hba->pcidev->dev, tgt->confq_mem_size, in bnx2fc_free_session_resc() 871 dma_free_coherent(&hba->pcidev->dev, tgt->rq_pbl_size, in bnx2fc_free_session_resc() 876 dma_free_coherent(&hba->pcidev->dev, tgt->rq_mem_size, in bnx2fc_free_session_resc() 882 dma_free_coherent(&hba->pcidev->dev, tgt->cq_mem_size, in bnx2fc_free_session_resc() [all …]
|
/linux/drivers/hwmon/ |
A D | i5k_amb.c | 419 struct pci_dev *pcidev; in i5k_find_amb_registers() local 424 pcidev = pci_get_device(PCI_VENDOR_ID_INTEL, in i5k_find_amb_registers() 427 if (!pcidev) in i5k_find_amb_registers() 430 pci_read_config_dword(pcidev, I5K_REG_AMB_BASE_ADDR, &val32); in i5k_find_amb_registers() 435 pci_read_config_dword(pcidev, I5K_REG_AMB_LEN_ADDR, &val32); in i5k_find_amb_registers() 442 dev_err(&pcidev->dev, "AMB region too small!\n"); in i5k_find_amb_registers() 448 pci_dev_put(pcidev); in i5k_find_amb_registers() 454 struct pci_dev *pcidev; in i5k_channel_probe() local 459 pcidev = pci_get_device(PCI_VENDOR_ID_INTEL, dev_id, NULL); in i5k_channel_probe() 460 if (!pcidev) in i5k_channel_probe() [all …]
|
/linux/drivers/virt/acrn/ |
A D | hsm.c | 119 struct acrn_pcidev *pcidev; in acrn_dev_ioctl() local 247 pcidev = memdup_user((void __user *)ioctl_param, in acrn_dev_ioctl() 249 if (IS_ERR(pcidev)) in acrn_dev_ioctl() 250 return PTR_ERR(pcidev); in acrn_dev_ioctl() 252 ret = hcall_assign_pcidev(vm->vmid, virt_to_phys(pcidev)); in acrn_dev_ioctl() 256 kfree(pcidev); in acrn_dev_ioctl() 259 pcidev = memdup_user((void __user *)ioctl_param, in acrn_dev_ioctl() 261 if (IS_ERR(pcidev)) in acrn_dev_ioctl() 262 return PTR_ERR(pcidev); in acrn_dev_ioctl() 264 ret = hcall_deassign_pcidev(vm->vmid, virt_to_phys(pcidev)); in acrn_dev_ioctl() [all …]
|
/linux/drivers/scsi/bnx2i/ |
A D | bnx2i_iscsi.c | 477 dma_free_coherent(&hba->pcidev->dev, in bnx2i_destroy_cmd_pool() 803 hba->pcidev = cnic->pcidev; in bnx2i_alloc_hba() 804 pci_dev_get(hba->pcidev); in bnx2i_alloc_hba() 805 hba->pci_did = hba->pcidev->device; in bnx2i_alloc_hba() 806 hba->pci_vid = hba->pcidev->vendor; in bnx2i_alloc_hba() 897 pci_dev_put(hba->pcidev); in bnx2i_alloc_hba() 921 pci_dev_put(hba->pcidev); in bnx2i_free_hba() 952 dma_free_coherent(&hba->pcidev->dev, in bnx2i_conn_free_login_resources() 960 dma_free_coherent(&hba->pcidev->dev, in bnx2i_conn_free_login_resources() 980 dma_alloc_coherent(&hba->pcidev->dev, in bnx2i_conn_alloc_login_resources() [all …]
|