Home
last modified time | relevance | path

Searched refs:pcidev (Results 1 – 25 of 217) sorted by relevance

123456789

/drivers/fpga/
Ddfl-pci.c42 static void __iomem *cci_pci_ioremap_bar0(struct pci_dev *pcidev) in cci_pci_ioremap_bar0() argument
44 if (pcim_iomap_regions(pcidev, BIT(0), DRV_NAME)) in cci_pci_ioremap_bar0()
47 return pcim_iomap_table(pcidev)[0]; in cci_pci_ioremap_bar0()
50 static int cci_pci_alloc_irq(struct pci_dev *pcidev) in cci_pci_alloc_irq() argument
52 int ret, nvec = pci_msix_vec_count(pcidev); in cci_pci_alloc_irq()
55 dev_dbg(&pcidev->dev, "fpga interrupt not supported\n"); in cci_pci_alloc_irq()
59 ret = pci_alloc_irq_vectors(pcidev, nvec, nvec, PCI_IRQ_MSIX); in cci_pci_alloc_irq()
66 static void cci_pci_free_irq(struct pci_dev *pcidev) in cci_pci_free_irq() argument
68 pci_free_irq_vectors(pcidev); in cci_pci_free_irq()
123 static int cci_init_drvdata(struct pci_dev *pcidev) in cci_init_drvdata() argument
[all …]
/drivers/infiniband/hw/qib/
Dqib_pcie.c127 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()
173 pci_set_drvdata(dd->pcidev, NULL); in qib_pcie_ddcleanup()
183 struct pci_dev *pdev = dd->pcidev; in qib_cache_msi_info()
203 if (!pci_is_pcie(dd->pcidev)) { in qib_pcie_params()
215 nvec = pci_alloc_irq_vectors(dd->pcidev, 1, maxvec, flags); in qib_pcie_params()
225 *nent = !dd->pcidev->msix_enabled ? 0 : nvec; in qib_pcie_params()
227 if (dd->pcidev->msi_enabled) in qib_pcie_params()
228 qib_cache_msi_info(dd, dd->pcidev->msi_cap); in qib_pcie_params()
[all …]
/drivers/comedi/
Dcomedi_pci.c50 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()
60 rc = pci_request_regions(pcidev, dev->board_name); 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
[all …]
/drivers/tty/serial/8250/
D8250_exar.c186 void (*exit)(struct pci_dev *pcidev);
273 static int default_setup(struct exar8250 *priv, struct pci_dev *pcidev, in default_setup() argument
282 port->port.mapbase = pci_resource_start(pcidev, bar) + offset; in default_setup()
312 pci_fastcom335_setup(struct exar8250 *priv, struct pci_dev *pcidev, in pci_fastcom335_setup() argument
322 err = default_setup(priv, pcidev, idx, offset, port); in pci_fastcom335_setup()
337 switch (pcidev->device) { in pci_fastcom335_setup()
360 pci_connect_tech_setup(struct exar8250 *priv, struct pci_dev *pcidev, in pci_connect_tech_setup() argument
367 return default_setup(priv, pcidev, idx, offset, port); in pci_connect_tech_setup()
371 pci_xr17c154_setup(struct exar8250 *priv, struct pci_dev *pcidev, in pci_xr17c154_setup() argument
378 return default_setup(priv, pcidev, idx, offset, port); in pci_xr17c154_setup()
[all …]
/drivers/net/ethernet/synopsys/
Ddwc-xlgmac-pci.c25 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 …]
/drivers/infiniband/hw/hfi1/
Dpcie.c27 struct pci_dev *pdev = dd->pcidev; in hfi1_pcie_init()
220 ret = pcie_capability_read_word(dd->pcidev, PCI_EXP_LNKSTA, &linkstat); in update_lbus_info()
239 struct pci_dev *parent = dd->pcidev->bus->self; in pcie_speeds()
242 if (!pci_is_pcie(dd->pcidev)) { in pcie_speeds()
250 ret = pcie_capability_read_dword(dd->pcidev, PCI_EXP_LNKCAP, &linkcap); in pcie_speeds()
267 (dd->pcidev->bus->max_bus_speed == PCIE_SPEED_2_5GT || in pcie_speeds()
268 dd->pcidev->bus->max_bus_speed == PCIE_SPEED_5_0GT)) { in pcie_speeds()
290 ret = pci_write_config_word(dd->pcidev, PCI_COMMAND, dd->pci_command); in restore_pci_variables()
294 ret = pci_write_config_dword(dd->pcidev, PCI_BASE_ADDRESS_0, in restore_pci_variables()
299 ret = pci_write_config_dword(dd->pcidev, PCI_BASE_ADDRESS_1, in restore_pci_variables()
[all …]
Daspm.c25 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, &reg32); 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()
/drivers/scsi/aic94xx/
Daic94xx_init.c73 io_handle->start = pci_resource_start(asd_ha->pcidev, i); in asd_map_memio()
74 io_handle->len = pci_resource_len(asd_ha->pcidev, i); in asd_map_memio()
75 io_handle->flags = pci_resource_flags(asd_ha->pcidev, i); in asd_map_memio()
79 i==0?0:1, pci_name(asd_ha->pcidev)); in asd_map_memio()
82 err = pci_request_region(asd_ha->pcidev, i, ASD_DRIVER_NAME); in asd_map_memio()
85 pci_name(asd_ha->pcidev)); in asd_map_memio()
91 pci_name(asd_ha->pcidev)); in asd_map_memio()
99 pci_release_region(asd_ha->pcidev, i); in asd_map_memio()
104 pci_release_region(asd_ha->pcidev, 0); in asd_map_memio()
115 pci_release_region(asd_ha->pcidev, 2); in asd_unmap_memio()
[all …]
Daic94xx_hwi.c143 struct pci_dev *pcidev = asd_ha->pcidev; in asd_init_sw() local
148 err = pci_read_config_dword(pcidev, PCI_CONF_MBAR_KEY, &v); in asd_init_sw()
151 pci_name(pcidev)); in asd_init_sw()
155 err = pci_write_config_dword(pcidev, PCI_CONF_MBAR_KEY, v); in asd_init_sw()
158 pci_name(pcidev)); in asd_init_sw()
165 pci_write_config_dword(pcidev, PCI_CONF_MBAR0_SWA, REG_BASE_ADDR); in asd_init_sw()
166 pci_write_config_dword(pcidev, PCI_CONF_MBAR0_SWB, in asd_init_sw()
168 pci_write_config_dword(pcidev, PCI_CONF_MBAR0_SWC, REG_BASE_ADDR_EXSI); in asd_init_sw()
175 pci_write_config_dword(pcidev, PCI_CONF_MBAR1, OCM_BASE_ADDR); in asd_init_sw()
450 pci_name(asd_ha->pcidev)); in asd_init_chip()
[all …]
/drivers/parisc/
Diosapic.c451 iosapic_xlate_pin(struct iosapic_info *isi, struct pci_dev *pcidev) in iosapic_xlate_pin() argument
455 pci_read_config_byte(pcidev, PCI_INTERRUPT_PIN, &intr_pin); in iosapic_xlate_pin()
458 pcidev->slot_name, PCI_SLOT(pcidev->devfn), intr_pin); in iosapic_xlate_pin()
466 if (pcidev->bus->parent) { in iosapic_xlate_pin()
481 intr_pin = pci_bridge_funcs->xlate_intr_line(pcidev); in iosapic_xlate_pin()
484 struct pci_bus *p = pcidev->bus; in iosapic_xlate_pin()
498 intr_pin = pci_swizzle_interrupt_pin(pcidev, intr_pin); in iosapic_xlate_pin()
509 intr_slot = PCI_SLOT(pcidev->devfn); in iosapic_xlate_pin()
512 pcidev->bus->busn_res.start, intr_slot, intr_pin); in iosapic_xlate_pin()
697 int iosapic_fixup_irq(void *isi_obj, struct pci_dev *pcidev) in iosapic_fixup_irq() argument
[all …]
Dsuperio.c149 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()
/drivers/net/ethernet/amd/xgbe/
Dxgbe-pci.c135 ret = pci_alloc_irq_vectors(pdata->pcidev, XGBE_MSI_MIN_COUNT, in xgbe_config_multi_msi()
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()
151 pdata->channel_irq[j] = pci_irq_vector(pdata->pcidev, i); 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()
179 pdata->isr_as_tasklet = pdata->pcidev->msi_enabled ? 1 : 0; in xgbe_config_irqs()
183 pdata->dev_irq = pci_irq_vector(pdata->pcidev, 0); in xgbe_config_irqs()
[all …]
/drivers/platform/x86/intel/pmc/
Dcore_ssram.c102 struct pci_dev *pcidev; in pmc_core_ssram_init() local
106 pcidev = pci_get_domain_bus_and_slot(0, 0, PCI_DEVFN(20, 2)); in pmc_core_ssram_init()
107 if (!pcidev) in pmc_core_ssram_init()
110 ret = pcim_enable_device(pcidev); in pmc_core_ssram_init()
114 ssram_base = pcidev->resource[0].start; in pmc_core_ssram_init()
119 pmcdev->ssram_pcidev = pcidev; in pmc_core_ssram_init()
130 pci_disable_device(pcidev); in pmc_core_ssram_init()
132 pci_dev_put(pcidev); in pmc_core_ssram_init()
/drivers/char/hw_random/
Damd-rng.c58 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()
/drivers/comedi/drivers/
Dni_labpc_pci.c47 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()
D8255_pci.c173 static int pci_8255_mite_init(struct pci_dev *pcidev) in pci_8255_mite_init() argument
179 mite_base = pci_ioremap_bar(pcidev, 0); in pci_8255_mite_init()
184 main_phys_addr = pci_resource_start(pcidev, 1); in pci_8255_mite_init()
195 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in pci_8255_auto_attach() local
213 ret = pci_8255_mite_init(pcidev); in pci_8255_auto_attach()
218 if ((pci_resource_flags(pcidev, board->dio_badr) & IORESOURCE_MEM)) { in pci_8255_auto_attach()
219 dev->mmio = pci_ioremap_bar(pcidev, board->dio_badr); in pci_8255_auto_attach()
223 dev->iobase = pci_resource_start(pcidev, board->dio_badr); in pci_8255_auto_attach()
/drivers/scsi/
Dips.c684 IPS_PRINTK(KERN_WARNING, ha->pcidev, "Flushing Cache.\n"); in ips_release()
688 IPS_PRINTK(KERN_WARNING, ha->pcidev, "Incomplete Flush.\n"); in ips_release()
690 IPS_PRINTK(KERN_WARNING, ha->pcidev, "Flushing Complete.\n"); in ips_release()
699 free_irq(ha->pcidev->irq, ha); in ips_release()
751 IPS_PRINTK(KERN_WARNING, ha->pcidev, "Flushing Cache.\n"); in ips_halt()
756 IPS_PRINTK(KERN_WARNING, ha->pcidev, in ips_halt()
759 IPS_PRINTK(KERN_WARNING, ha->pcidev, in ips_halt()
909 IPS_PRINTK(KERN_NOTICE, ha->pcidev, in __ips_eh_reset()
924 IPS_PRINTK(KERN_NOTICE, ha->pcidev, "Resetting controller.\n"); in __ips_eh_reset()
930 IPS_PRINTK(KERN_NOTICE, ha->pcidev, in __ips_eh_reset()
[all …]
Dhptiop.c590 struct pci_dev *pcidev = hba->pcidev; in hptiop_map_pci_bar() local
593 if (!(pci_resource_flags(pcidev, index) & IORESOURCE_MEM)) { in hptiop_map_pci_bar()
599 mem_base_phy = pci_resource_start(pcidev, index); in hptiop_map_pci_bar()
600 length = pci_resource_len(pcidev, index); in hptiop_map_pci_bar()
613 struct pci_dev *pcidev = hba->pcidev; in hptiop_map_pci_bar_itl() local
617 if ((pcidev->device & 0xff00) == 0x4400) { in hptiop_map_pci_bar_itl()
1184 hba->u.mv.internal_req = dma_alloc_coherent(&hba->pcidev->dev, in hptiop_internal_memalloc_mv()
1213 p = dma_alloc_coherent(&hba->pcidev->dev, in hptiop_internal_memalloc_mvfrey()
1252 dma_free_coherent(&hba->pcidev->dev, 0x800, in hptiop_internal_memfree_mv()
1262 dma_free_coherent(&hba->pcidev->dev, in hptiop_internal_memfree_mvfrey()
[all …]
/drivers/misc/cardreader/
Drtsx_pcr.c1496 static int rtsx_pci_probe(struct pci_dev *pcidev, in rtsx_pci_probe() argument
1504 dev_dbg(&(pcidev->dev), in rtsx_pci_probe()
1506 pci_name(pcidev), (int)pcidev->vendor, (int)pcidev->device, in rtsx_pci_probe()
1507 (int)pcidev->revision); in rtsx_pci_probe()
1509 ret = dma_set_mask(&pcidev->dev, DMA_BIT_MASK(32)); in rtsx_pci_probe()
1513 ret = pci_enable_device(pcidev); in rtsx_pci_probe()
1517 ret = pci_request_regions(pcidev, DRV_NAME_RTSX_PCI); in rtsx_pci_probe()
1544 pcr->pci = pcidev; in rtsx_pci_probe()
1545 dev_set_drvdata(&pcidev->dev, handle); in rtsx_pci_probe()
1549 len = pci_resource_len(pcidev, bar); in rtsx_pci_probe()
[all …]
/drivers/video/fbdev/matrox/
Dmatroxfb_DAC1064.c116 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()
697 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, hw->MXoptionReg); in MGA1064_preinit()
720 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, minfo->hw.MXoptionReg | 4); in g450_mclk_init()
721 pci_write_config_dword(minfo->pcidev, PCI_OPTION3_REG, minfo->values.reg.opt3 & ~0x00300C03); in g450_mclk_init()
722 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, minfo->hw.MXoptionReg); in g450_mclk_init()
740 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, minfo->hw.MXoptionReg | 4); in g450_mclk_init()
[all …]
/drivers/char/agp/
Dintel-gtt.c65 struct pci_dev *pcidev; /* device one */ member
114 if (!dma_map_sg(&intel_private.pcidev->dev, st->sgl, st->nents, in intel_gtt_map_memory()
130 dma_unmap_sg(&intel_private.pcidev->dev, sg_list, num_sg, in intel_gtt_unmap_memory()
185 reg_addr = pci_resource_start(intel_private.pcidev, I810_MMADR_BAR); in i810_setup()
198 dev_info(&intel_private.pcidev->dev, in i810_setup()
306 dma_addr = dma_map_page(&intel_private.pcidev->dev, page, 0, in intel_gtt_setup_scratch_page()
308 if (dma_mapping_error(&intel_private.pcidev->dev, dma_addr)) { in intel_gtt_setup_scratch_page()
498 dev_info(&intel_private.pcidev->dev, in i965_gtt_total_entries()
545 aperture_size = pci_resource_len(intel_private.pcidev, 2); in intel_gtt_mappable_entries()
555 dma_unmap_page(&intel_private.pcidev->dev, in intel_gtt_teardown_scratch_page()
[all …]
/drivers/mmc/host/
Dvia-sdmmc.c1077 static int via_sd_probe(struct pci_dev *pcidev, in via_sd_probe() argument
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()
1095 ret = pci_request_regions(pcidev, DRV_NAME); in via_sd_probe()
1099 pci_write_config_byte(pcidev, VIA_CRDR_PCI_WORK_MODE, 0); in via_sd_probe()
1100 pci_write_config_byte(pcidev, VIA_CRDR_PCI_DBG_MODE, 0); in via_sd_probe()
1102 mmc = mmc_alloc_host(sizeof(struct via_crdr_mmc_host), &pcidev->dev); in via_sd_probe()
1110 dev_set_drvdata(&pcidev->dev, sdhost); in via_sd_probe()
1112 len = pci_resource_len(pcidev, 0); in via_sd_probe()
[all …]
/drivers/scsi/bnx2fc/
Dbnx2fc_tgt.c674 tgt->sq = dma_alloc_coherent(&hba->pcidev->dev, tgt->sq_mem_size, in bnx2fc_alloc_session_resc()
687 tgt->cq = dma_alloc_coherent(&hba->pcidev->dev, tgt->cq_mem_size, in bnx2fc_alloc_session_resc()
700 tgt->rq = dma_alloc_coherent(&hba->pcidev->dev, tgt->rq_mem_size, in bnx2fc_alloc_session_resc()
712 tgt->rq_pbl = dma_alloc_coherent(&hba->pcidev->dev, tgt->rq_pbl_size, in bnx2fc_alloc_session_resc()
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()
804 tgt->lcq = dma_alloc_coherent(&hba->pcidev->dev, tgt->lcq_mem_size, in bnx2fc_alloc_session_resc()
841 dma_free_coherent(&hba->pcidev->dev, tgt->lcq_mem_size, in bnx2fc_free_session_resc()
[all …]
/drivers/hwmon/
Di5k_amb.c419 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 …]
/drivers/virt/acrn/
Dhsm.c119 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 …]

123456789