/Linux-v4.19/drivers/fpga/ |
D | dfl-pci.c | 34 static void __iomem *cci_pci_ioremap_bar(struct pci_dev *pcidev, int bar) in cci_pci_ioremap_bar() argument 36 if (pcim_iomap_regions(pcidev, BIT(bar), DRV_NAME)) in cci_pci_ioremap_bar() 39 return pcim_iomap_table(pcidev)[bar]; in cci_pci_ioremap_bar() 62 static int cci_init_drvdata(struct pci_dev *pcidev) in cci_init_drvdata() argument 66 drvdata = devm_kzalloc(&pcidev->dev, sizeof(*drvdata), GFP_KERNEL); in cci_init_drvdata() 70 pci_set_drvdata(pcidev, drvdata); in cci_init_drvdata() 75 static void cci_remove_feature_devs(struct pci_dev *pcidev) in cci_remove_feature_devs() argument 77 struct cci_drvdata *drvdata = pci_get_drvdata(pcidev); in cci_remove_feature_devs() 84 static int cci_enumerate_feature_devs(struct pci_dev *pcidev) in cci_enumerate_feature_devs() argument 86 struct cci_drvdata *drvdata = pci_get_drvdata(pcidev); in cci_enumerate_feature_devs() [all …]
|
/Linux-v4.19/drivers/staging/comedi/ |
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() 61 rc = pci_request_regions(pcidev, dev->board_name); 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 [all …]
|
/Linux-v4.19/drivers/infiniband/hw/qib/ |
D | qib_pcie.c | 142 dd->pcidev = pdev; in qib_pcie_ddinit() 185 pci_disable_device(dd->pcidev); in qib_pcie_ddcleanup() 186 pci_release_regions(dd->pcidev); in qib_pcie_ddcleanup() 188 pci_set_drvdata(dd->pcidev, NULL); in qib_pcie_ddcleanup() 198 struct pci_dev *pdev = dd->pcidev; in qib_cache_msi_info() 218 if (!pci_is_pcie(dd->pcidev)) { in qib_pcie_params() 230 nvec = pci_alloc_irq_vectors(dd->pcidev, 1, maxvec, flags); in qib_pcie_params() 240 *nent = !dd->pcidev->msix_enabled ? 0 : nvec; in qib_pcie_params() 242 if (dd->pcidev->msi_enabled) in qib_pcie_params() 243 qib_cache_msi_info(dd, dd->pcidev->msi_cap); in qib_pcie_params() [all …]
|
/Linux-v4.19/drivers/tty/serial/8250/ |
D | 8250_exar.c | 120 void (*exit)(struct pci_dev *pcidev); 130 static int default_setup(struct exar8250 *priv, struct pci_dev *pcidev, in default_setup() argument 138 port->port.mapbase = pci_resource_start(pcidev, bar) + offset; in default_setup() 146 pci_fastcom335_setup(struct exar8250 *priv, struct pci_dev *pcidev, in pci_fastcom335_setup() argument 156 err = default_setup(priv, pcidev, idx, offset, port); in pci_fastcom335_setup() 171 switch (pcidev->device) { in pci_fastcom335_setup() 194 pci_connect_tech_setup(struct exar8250 *priv, struct pci_dev *pcidev, in pci_connect_tech_setup() argument 201 return default_setup(priv, pcidev, idx, offset, port); in pci_connect_tech_setup() 205 pci_xr17c154_setup(struct exar8250 *priv, struct pci_dev *pcidev, in pci_xr17c154_setup() argument 212 return default_setup(priv, pcidev, idx, offset, port); in pci_xr17c154_setup() [all …]
|
/Linux-v4.19/drivers/net/ethernet/synopsys/ |
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-v4.19/drivers/infiniband/hw/nes/ |
D | nes.c | 161 NES_IDX_DST_IP_ADDR+(0x10*PCI_FUNC(nesdev->pcidev->devfn)), 0); in nes_inetaddr_event() 193 NES_IDX_DST_IP_ADDR+(0x10*PCI_FUNC(nesdev->pcidev->devfn)), in nes_inetaddr_event() 279 pci_free_consistent(nesdev->pcidev, nesqp->qp_mem_size, in nes_cqp_rem_ref_callback() 284 pci_free_consistent(nesdev->pcidev, 256, nesqp->pbl_vbase, nesqp->pbl_pbase); in nes_cqp_rem_ref_callback() 288 pci_free_consistent(nesdev->pcidev, nesqp->qp_mem_size, in nes_cqp_rem_ref_callback() 451 static int nes_probe(struct pci_dev *pcidev, const struct pci_device_id *ent) in nes_probe() argument 459 assert(pcidev != NULL); in nes_probe() 463 DRV_VERSION, pci_name(pcidev)); in nes_probe() 465 ret = pci_enable_device(pcidev); in nes_probe() 467 printk(KERN_ERR PFX "Unable to enable PCI device. (%s)\n", pci_name(pcidev)); in nes_probe() [all …]
|
/Linux-v4.19/drivers/infiniband/hw/hfi1/ |
D | pcie.c | 288 ret = pcie_capability_read_word(dd->pcidev, PCI_EXP_LNKSTA, &linkstat); in update_lbus_info() 307 struct pci_dev *parent = dd->pcidev->bus->self; in pcie_speeds() 310 if (!pci_is_pcie(dd->pcidev)) { in pcie_speeds() 318 ret = pcie_capability_read_dword(dd->pcidev, PCI_EXP_LNKCAP, &linkcap); in pcie_speeds() 334 if (parent && dd->pcidev->bus->max_bus_speed != PCIE_SPEED_8_0GT) { in pcie_speeds() 356 nvec = pci_alloc_irq_vectors(dd->pcidev, msireq, msireq, PCI_IRQ_MSIX); in request_msix() 372 ret = pci_write_config_word(dd->pcidev, PCI_COMMAND, dd->pci_command); in restore_pci_variables() 376 ret = pci_write_config_dword(dd->pcidev, PCI_BASE_ADDRESS_0, in restore_pci_variables() 381 ret = pci_write_config_dword(dd->pcidev, PCI_BASE_ADDRESS_1, in restore_pci_variables() 386 ret = pci_write_config_dword(dd->pcidev, PCI_ROM_ADDRESS, dd->pci_rom); in restore_pci_variables() [all …]
|
D | aspm.h | 72 struct pci_dev *parent = dd->pcidev->bus->self; in aspm_hw_l1_supported() 82 pcie_capability_read_dword(dd->pcidev, PCI_EXP_LNKCAP, &dn); in aspm_hw_l1_supported() 98 pci_read_config_dword(dd->pcidev, PCIE_CFG_REG_PL3, ®32); in aspm_hw_set_l1_ent_latency() 101 pci_write_config_dword(dd->pcidev, PCIE_CFG_REG_PL3, reg32); in aspm_hw_set_l1_ent_latency() 106 struct pci_dev *parent = dd->pcidev->bus->self; in aspm_hw_enable_l1() 119 pcie_capability_clear_and_set_word(dd->pcidev, PCI_EXP_LNKCTL, in aspm_hw_enable_l1() 126 struct pci_dev *parent = dd->pcidev->bus->self; in aspm_hw_disable_l1() 129 pcie_capability_clear_and_set_word(dd->pcidev, PCI_EXP_LNKCTL, in aspm_hw_disable_l1()
|
D | efivar.c | 161 pci_domain_nr(dd->pcidev->bus), in read_hfi1_efi_var() 162 dd->pcidev->bus->number, in read_hfi1_efi_var() 163 PCI_SLOT(dd->pcidev->devfn), in read_hfi1_efi_var() 164 PCI_FUNC(dd->pcidev->devfn)); in read_hfi1_efi_var()
|
/Linux-v4.19/drivers/scsi/aic94xx/ |
D | aic94xx_init.c | 87 io_handle->start = pci_resource_start(asd_ha->pcidev, i); in asd_map_memio() 88 io_handle->len = pci_resource_len(asd_ha->pcidev, i); in asd_map_memio() 89 io_handle->flags = pci_resource_flags(asd_ha->pcidev, i); in asd_map_memio() 93 i==0?0:1, pci_name(asd_ha->pcidev)); in asd_map_memio() 96 err = pci_request_region(asd_ha->pcidev, i, ASD_DRIVER_NAME); in asd_map_memio() 99 pci_name(asd_ha->pcidev)); in asd_map_memio() 105 pci_name(asd_ha->pcidev)); in asd_map_memio() 113 pci_release_region(asd_ha->pcidev, i); in asd_map_memio() 118 pci_release_region(asd_ha->pcidev, 0); in asd_map_memio() 129 pci_release_region(asd_ha->pcidev, 2); in asd_unmap_memio() [all …]
|
D | aic94xx_hwi.c | 163 struct pci_dev *pcidev = asd_ha->pcidev; in asd_init_sw() local 168 err = pci_read_config_dword(pcidev, PCI_CONF_MBAR_KEY, &v); in asd_init_sw() 171 pci_name(pcidev)); in asd_init_sw() 175 err = pci_write_config_dword(pcidev, PCI_CONF_MBAR_KEY, v); in asd_init_sw() 178 pci_name(pcidev)); in asd_init_sw() 185 pci_write_config_dword(pcidev, PCI_CONF_MBAR0_SWA, REG_BASE_ADDR); in asd_init_sw() 186 pci_write_config_dword(pcidev, PCI_CONF_MBAR0_SWB, in asd_init_sw() 188 pci_write_config_dword(pcidev, PCI_CONF_MBAR0_SWC, REG_BASE_ADDR_EXSI); in asd_init_sw() 195 pci_write_config_dword(pcidev, PCI_CONF_MBAR1, OCM_BASE_ADDR); in asd_init_sw() 470 pci_name(asd_ha->pcidev)); in asd_init_chip() [all …]
|
/Linux-v4.19/drivers/staging/comedi/drivers/ |
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()
|
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-v4.19/drivers/parisc/ |
D | iosapic.c | 474 iosapic_xlate_pin(struct iosapic_info *isi, struct pci_dev *pcidev) in iosapic_xlate_pin() argument 478 pci_read_config_byte(pcidev, PCI_INTERRUPT_PIN, &intr_pin); in iosapic_xlate_pin() 481 pcidev->slot_name, PCI_SLOT(pcidev->devfn), intr_pin); in iosapic_xlate_pin() 489 if (pcidev->bus->parent) { in iosapic_xlate_pin() 504 intr_pin = pci_bridge_funcs->xlate_intr_line(pcidev); in iosapic_xlate_pin() 507 struct pci_bus *p = pcidev->bus; in iosapic_xlate_pin() 521 intr_pin = pci_swizzle_interrupt_pin(pcidev, intr_pin); in iosapic_xlate_pin() 532 intr_slot = PCI_SLOT(pcidev->devfn); in iosapic_xlate_pin() 535 pcidev->bus->busn_res.start, intr_slot, intr_pin); in iosapic_xlate_pin() 720 int iosapic_fixup_irq(void *isi_obj, struct pci_dev *pcidev) in iosapic_fixup_irq() argument [all …]
|
D | superio.c | 153 superio_init(struct pci_dev *pcidev) in superio_init() argument 338 int superio_fixup_irq(struct pci_dev *pcidev) in superio_fixup_irq() argument 344 fn = PCI_FUNC(pcidev->devfn); in superio_fixup_irq() 347 if (expected_device[fn] != pcidev->device) { in superio_fixup_irq() 352 pci_name(pcidev), in superio_fixup_irq() 353 pcidev->vendor, pcidev->device, in superio_fixup_irq() 368 switch(pcidev->device) { in superio_fixup_irq() 373 sio_dev.lio_pdev = pcidev; /* save for superio_init() */ in superio_fixup_irq() 376 sio_dev.usb_pdev = pcidev; /* save for superio_init() */ in superio_fixup_irq()
|
/Linux-v4.19/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-pci.c | 135 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 …]
|
/Linux-v4.19/drivers/char/hw_random/ |
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 mod_init()
|
/Linux-v4.19/drivers/mmc/host/ |
D | via-sdmmc.c | 1084 static int via_sd_probe(struct pci_dev *pcidev, in via_sd_probe() argument 1095 pci_name(pcidev), (int)pcidev->vendor, (int)pcidev->device, in via_sd_probe() 1096 (int)pcidev->revision); in via_sd_probe() 1098 ret = pci_enable_device(pcidev); in via_sd_probe() 1102 ret = pci_request_regions(pcidev, DRV_NAME); in via_sd_probe() 1106 pci_write_config_byte(pcidev, VIA_CRDR_PCI_WORK_MODE, 0); in via_sd_probe() 1107 pci_write_config_byte(pcidev, VIA_CRDR_PCI_DBG_MODE, 0); in via_sd_probe() 1109 mmc = mmc_alloc_host(sizeof(struct via_crdr_mmc_host), &pcidev->dev); in via_sd_probe() 1117 dev_set_drvdata(&pcidev->dev, sdhost); in via_sd_probe() 1119 len = pci_resource_len(pcidev, 0); in via_sd_probe() [all …]
|
/Linux-v4.19/drivers/misc/cardreader/ |
D | rtsx_pcr.c | 1421 static int rtsx_pci_probe(struct pci_dev *pcidev, in rtsx_pci_probe() argument 1429 dev_dbg(&(pcidev->dev), in rtsx_pci_probe() 1431 pci_name(pcidev), (int)pcidev->vendor, (int)pcidev->device, in rtsx_pci_probe() 1432 (int)pcidev->revision); in rtsx_pci_probe() 1434 ret = pci_set_dma_mask(pcidev, DMA_BIT_MASK(32)); in rtsx_pci_probe() 1438 ret = pci_enable_device(pcidev); in rtsx_pci_probe() 1442 ret = pci_request_regions(pcidev, DRV_NAME_RTSX_PCI); in rtsx_pci_probe() 1469 pcr->pci = pcidev; in rtsx_pci_probe() 1470 dev_set_drvdata(&pcidev->dev, handle); in rtsx_pci_probe() 1474 len = pci_resource_len(pcidev, bar); in rtsx_pci_probe() [all …]
|
/Linux-v4.19/drivers/scsi/ |
D | ips.c | 683 IPS_PRINTK(KERN_WARNING, ha->pcidev, "Flushing Cache.\n"); in ips_release() 687 IPS_PRINTK(KERN_WARNING, ha->pcidev, "Incomplete Flush.\n"); in ips_release() 689 IPS_PRINTK(KERN_WARNING, ha->pcidev, "Flushing Complete.\n"); in ips_release() 698 free_irq(ha->pcidev->irq, ha); in ips_release() 752 IPS_PRINTK(KERN_WARNING, ha->pcidev, "Flushing Cache.\n"); in ips_halt() 757 IPS_PRINTK(KERN_WARNING, ha->pcidev, in ips_halt() 760 IPS_PRINTK(KERN_WARNING, ha->pcidev, in ips_halt() 910 IPS_PRINTK(KERN_NOTICE, ha->pcidev, in __ips_eh_reset() 925 IPS_PRINTK(KERN_NOTICE, ha->pcidev, "Resetting controller.\n"); in __ips_eh_reset() 931 IPS_PRINTK(KERN_NOTICE, ha->pcidev, in __ips_eh_reset() [all …]
|
D | hptiop.c | 598 struct pci_dev *pcidev = hba->pcidev; in hptiop_map_pci_bar() local 601 if (!(pci_resource_flags(pcidev, index) & IORESOURCE_MEM)) { in hptiop_map_pci_bar() 607 mem_base_phy = pci_resource_start(pcidev, index); in hptiop_map_pci_bar() 608 length = pci_resource_len(pcidev, index); in hptiop_map_pci_bar() 621 struct pci_dev *pcidev = hba->pcidev; in hptiop_map_pci_bar_itl() local 625 if ((pcidev->device & 0xff00) == 0x4400) { in hptiop_map_pci_bar_itl() 1198 hba->u.mv.internal_req = dma_alloc_coherent(&hba->pcidev->dev, in hptiop_internal_memalloc_mv() 1227 p = dma_alloc_coherent(&hba->pcidev->dev, in hptiop_internal_memalloc_mvfrey() 1266 dma_free_coherent(&hba->pcidev->dev, 0x800, in hptiop_internal_memfree_mv() 1276 dma_free_coherent(&hba->pcidev->dev, in hptiop_internal_memfree_mvfrey() [all …]
|
/Linux-v4.19/drivers/video/fbdev/matrox/ |
D | matroxfb_DAC1064.c | 115 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx); in DAC1064_setmclk() 130 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx); in DAC1064_setmclk() 132 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx); in DAC1064_setmclk() 157 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx); in DAC1064_setmclk() 159 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx); in DAC1064_setmclk() 696 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, hw->MXoptionReg); in MGA1064_preinit() 719 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, minfo->hw.MXoptionReg | 4); in g450_mclk_init() 720 pci_write_config_dword(minfo->pcidev, PCI_OPTION3_REG, minfo->values.reg.opt3 & ~0x00300C03); in g450_mclk_init() 721 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, minfo->hw.MXoptionReg); in g450_mclk_init() 739 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, minfo->hw.MXoptionReg | 4); in g450_mclk_init() [all …]
|
/Linux-v4.19/drivers/char/agp/ |
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() 129 pci_unmap_sg(intel_private.pcidev, sg_list, in intel_gtt_unmap_memory() 184 reg_addr = pci_resource_start(intel_private.pcidev, I810_MMADR_BAR); in i810_setup() 197 dev_info(&intel_private.pcidev->dev, in i810_setup() 305 dma_addr = pci_map_page(intel_private.pcidev, page, 0, in intel_gtt_setup_scratch_page() 307 if (pci_dma_mapping_error(intel_private.pcidev, dma_addr)) in intel_gtt_setup_scratch_page() 495 dev_info(&intel_private.pcidev->dev, in i965_gtt_total_entries() 542 aperture_size = pci_resource_len(intel_private.pcidev, 2); in intel_gtt_mappable_entries() 552 pci_unmap_page(intel_private.pcidev, in intel_gtt_teardown_scratch_page() [all …]
|
/Linux-v4.19/drivers/scsi/bnx2fc/ |
D | bnx2fc_tgt.c | 675 tgt->sq = dma_zalloc_coherent(&hba->pcidev->dev, tgt->sq_mem_size, in bnx2fc_alloc_session_resc() 688 tgt->cq = dma_zalloc_coherent(&hba->pcidev->dev, tgt->cq_mem_size, in bnx2fc_alloc_session_resc() 701 tgt->rq = dma_zalloc_coherent(&hba->pcidev->dev, tgt->rq_mem_size, in bnx2fc_alloc_session_resc() 713 tgt->rq_pbl = dma_zalloc_coherent(&hba->pcidev->dev, tgt->rq_pbl_size, in bnx2fc_alloc_session_resc() 738 tgt->xferq = dma_zalloc_coherent(&hba->pcidev->dev, in bnx2fc_alloc_session_resc() 752 tgt->confq = dma_zalloc_coherent(&hba->pcidev->dev, in bnx2fc_alloc_session_resc() 766 tgt->confq_pbl = dma_zalloc_coherent(&hba->pcidev->dev, in bnx2fc_alloc_session_resc() 790 tgt->conn_db = dma_zalloc_coherent(&hba->pcidev->dev, in bnx2fc_alloc_session_resc() 805 tgt->lcq = dma_zalloc_coherent(&hba->pcidev->dev, tgt->lcq_mem_size, in bnx2fc_alloc_session_resc() 843 dma_free_coherent(&hba->pcidev->dev, tgt->lcq_mem_size, in bnx2fc_free_session_resc() [all …]
|
/Linux-v4.19/drivers/hwmon/ |
D | i5k_amb.c | 432 struct pci_dev *pcidev; in i5k_find_amb_registers() local 437 pcidev = pci_get_device(PCI_VENDOR_ID_INTEL, in i5k_find_amb_registers() 440 if (!pcidev) in i5k_find_amb_registers() 443 if (pci_read_config_dword(pcidev, I5K_REG_AMB_BASE_ADDR, &val32)) in i5k_find_amb_registers() 447 if (pci_read_config_dword(pcidev, I5K_REG_AMB_LEN_ADDR, &val32)) in i5k_find_amb_registers() 453 dev_err(&pcidev->dev, "AMB region too small!\n"); in i5k_find_amb_registers() 459 pci_dev_put(pcidev); in i5k_find_amb_registers() 465 struct pci_dev *pcidev; in i5k_channel_probe() local 470 pcidev = pci_get_device(PCI_VENDOR_ID_INTEL, dev_id, NULL); in i5k_channel_probe() 471 if (!pcidev) in i5k_channel_probe() [all …]
|