Home
last modified time | relevance | path

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

12345678

/linux-3.4.99/drivers/infiniband/hw/qib/
Dqib_pcie.c141 dd->pcidev = pdev; in qib_pcie_ddinit()
190 pci_disable_device(dd->pcidev); in qib_pcie_ddcleanup()
191 pci_release_regions(dd->pcidev); in qib_pcie_ddcleanup()
193 pci_set_drvdata(dd->pcidev, NULL); in qib_pcie_ddcleanup()
216 pci_read_config_word(dd->pcidev, pos + PCI_MSIX_FLAGS, &msix_flags); in qib_msix_setup()
220 ret = pci_enable_msix(dd->pcidev, msix_entry, tabsize); in qib_msix_setup()
223 ret = pci_enable_msix(dd->pcidev, msix_entry, tabsize); in qib_msix_setup()
237 qib_enable_intx(dd->pcidev); in qib_msix_setup()
248 struct pci_dev *pdev = dd->pcidev; in qib_msi_setup()
276 pose = pci_pcie_cap(dd->pcidev); in qib_pcie_params()
[all …]
/linux-3.4.99/drivers/staging/comedi/drivers/
Dicp_multi.h21 struct pci_dev *pcidev; member
65 struct pci_dev *pcidev = NULL; in pci_card_list_init() local
72 for_each_pci_dev(pcidev) { in pci_card_list_init()
73 if (pcidev->vendor == pci_vendor) { in pci_card_list_init()
78 pci_dev_put(pcidev); in pci_card_list_init()
82 inova->pcidev = pci_dev_get(pcidev); in pci_card_list_init()
90 inova->vendor = pcidev->vendor; in pci_card_list_init()
91 inova->device = pcidev->device; in pci_card_list_init()
92 inova->pci_bus = pcidev->bus->number; in pci_card_list_init()
93 inova->pci_slot = PCI_SLOT(pcidev->devfn); in pci_card_list_init()
[all …]
Dadv_pci1723.c187 struct pci_dev *pcidev; member
331 struct pci_dev *pcidev; in pci1723_attach() local
351 pcidev = NULL; in pci1723_attach()
352 while (NULL != (pcidev = in pci1723_attach()
354 this_board->device_id, pcidev))) { in pci1723_attach()
358 if (opt_bus != pcidev->bus->number in pci1723_attach()
359 || opt_slot != PCI_SLOT(pcidev->devfn)) in pci1723_attach()
366 if (comedi_pci_enable(pcidev, "adv_pci1723")) { in pci1723_attach()
374 if (!pcidev) { in pci1723_attach()
384 pci_bus = pcidev->bus->number; in pci1723_attach()
[all …]
Ddyna_pci10xx.c268 struct pci_dev *pcidev; in dyna_pci10xx_attach() local
289 for (pcidev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, NULL); in dyna_pci10xx_attach()
290 pcidev != NULL; in dyna_pci10xx_attach()
291 pcidev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, pcidev)) { in dyna_pci10xx_attach()
295 if ((pcidev->vendor == PCI_VENDOR_ID_DYNALOG) && in dyna_pci10xx_attach()
296 (pcidev->device == boardtypes[i].device_id)) { in dyna_pci10xx_attach()
307 if (opt_bus != pcidev->bus->number in dyna_pci10xx_attach()
308 || opt_slot != PCI_SLOT(pcidev->devfn)) in dyna_pci10xx_attach()
320 if (!pcidev) { in dyna_pci10xx_attach()
333 if (comedi_pci_enable(pcidev, DRV_NAME)) { in dyna_pci10xx_attach()
[all …]
Dadl_pci7230.c85 struct pci_dev *pcidev = NULL; in adl_pci7230_attach() local
101 for_each_pci_dev(pcidev) { in adl_pci7230_attach()
102 if (pcidev->vendor == PCI_VENDOR_ID_ADLINK && in adl_pci7230_attach()
103 pcidev->device == PCI_DEVICE_ID_PCI7230) { in adl_pci7230_attach()
106 if (pcidev->bus->number != bus || in adl_pci7230_attach()
107 PCI_SLOT(pcidev->devfn) != slot) { in adl_pci7230_attach()
111 devpriv->pci_dev = pcidev; in adl_pci7230_attach()
115 if (pcidev == NULL) { in adl_pci7230_attach()
120 if (comedi_pci_enable(pcidev, "adl_pci7230") < 0) { in adl_pci7230_attach()
125 dev->iobase = pci_resource_start(pcidev, 2); in adl_pci7230_attach()
Dadl_pci7296.c78 struct pci_dev *pcidev = NULL; in adl_pci7296_attach() local
95 for_each_pci_dev(pcidev) { in adl_pci7296_attach()
96 if (pcidev->vendor == PCI_VENDOR_ID_ADLINK && in adl_pci7296_attach()
97 pcidev->device == PCI_DEVICE_ID_PCI7296) { in adl_pci7296_attach()
100 if (pcidev->bus->number != bus in adl_pci7296_attach()
101 || PCI_SLOT(pcidev->devfn) != slot) { in adl_pci7296_attach()
105 devpriv->pci_dev = pcidev; in adl_pci7296_attach()
106 if (comedi_pci_enable(pcidev, "adl_pci7296") < 0) { in adl_pci7296_attach()
112 dev->iobase = pci_resource_start(pcidev, 2); in adl_pci7296_attach()
Dcb_pcidio.c173 struct pci_dev *pcidev = NULL; in pcidio_attach() local
192 for_each_pci_dev(pcidev) { in pcidio_attach()
194 if (pcidev->vendor != PCI_VENDOR_ID_CB) in pcidio_attach()
198 if (pcidio_boards[index].dev_id != pcidev->device) in pcidio_attach()
204 if (pcidev->bus->number != it->options[0] || in pcidio_attach()
205 PCI_SLOT(pcidev->devfn) != it->options[1]) { in pcidio_attach()
225 devpriv->pci_dev = pcidev; in pcidio_attach()
229 if (comedi_pci_enable(pcidev, thisboard->name)) in pcidio_attach()
240 (pci_resource_len(pcidev, 2) ? 2 : 1)); in pcidio_attach()
Dcontec_pci_dio.c105 struct pci_dev *pcidev = NULL; in contec_attach() local
118 for_each_pci_dev(pcidev) { in contec_attach()
119 if (pcidev->vendor == PCI_VENDOR_ID_CONTEC && in contec_attach()
120 pcidev->device == PCI_DEVICE_ID_PIO1616L) { in contec_attach()
123 if (it->options[0] != pcidev->bus->number || in contec_attach()
124 it->options[1] != PCI_SLOT(pcidev->devfn)) { in contec_attach()
128 devpriv->pci_dev = pcidev; in contec_attach()
129 if (comedi_pci_enable(pcidev, "contec_pci_dio")) { in contec_attach()
134 dev->iobase = pci_resource_start(pcidev, 0); in contec_attach()
Dadl_pci7432.c87 struct pci_dev *pcidev = NULL; in adl_pci7432_attach() local
103 for_each_pci_dev(pcidev) { in adl_pci7432_attach()
104 if (pcidev->vendor == PCI_VENDOR_ID_ADLINK && in adl_pci7432_attach()
105 pcidev->device == PCI_DEVICE_ID_PCI7432) { in adl_pci7432_attach()
108 if (pcidev->bus->number != bus in adl_pci7432_attach()
109 || PCI_SLOT(pcidev->devfn) != slot) { in adl_pci7432_attach()
113 devpriv->pci_dev = pcidev; in adl_pci7432_attach()
114 if (comedi_pci_enable(pcidev, "adl_pci7432") < 0) { in adl_pci7432_attach()
119 dev->iobase = pci_resource_start(pcidev, 2); in adl_pci7432_attach()
Dcb_pcimdda.c475 struct pci_dev *pcidev = NULL; in probe() local
479 for_each_pci_dev(pcidev) { in probe()
481 if (pcidev->vendor != PCI_VENDOR_ID_COMPUTERBOARDS) in probe()
485 if (boards[index].device_id != pcidev->device) in probe()
490 if (pcidev->bus->number != it->options[0] || in probe()
491 PCI_SLOT(pcidev->devfn) != it->options[1]) { in probe()
497 devpriv->pci_dev = pcidev; in probe()
499 if (comedi_pci_enable(pcidev, thisboard->name)) { in probe()
Dcb_pcimdas.c211 struct pci_dev *pcidev = NULL; in cb_pcimdas_attach() local
225 for_each_pci_dev(pcidev) { in cb_pcimdas_attach()
227 if (pcidev->vendor != PCI_VENDOR_ID_COMPUTERBOARDS) in cb_pcimdas_attach()
232 pcidev->device) in cb_pcimdas_attach()
237 if (pcidev->bus->number != it->options[0] || in cb_pcimdas_attach()
238 PCI_SLOT(pcidev->devfn) != it->options[1]) { in cb_pcimdas_attach()
242 devpriv->pci_dev = pcidev; in cb_pcimdas_attach()
254 cb_pcimdas_boards[index].name, pcidev->bus->number, in cb_pcimdas_attach()
255 PCI_SLOT(pcidev->devfn)); in cb_pcimdas_attach()
266 if (comedi_pci_enable(pcidev, "cb_pcimdas")) { in cb_pcimdas_attach()
/linux-3.4.99/drivers/infiniband/hw/nes/
Dnes.c167 NES_IDX_DST_IP_ADDR+(0x10*PCI_FUNC(nesdev->pcidev->devfn)), 0); in nes_inetaddr_event()
194 NES_IDX_DST_IP_ADDR+(0x10*PCI_FUNC(nesdev->pcidev->devfn)), in nes_inetaddr_event()
280 pci_free_consistent(nesdev->pcidev, nesqp->qp_mem_size, in nes_cqp_rem_ref_callback()
285 pci_free_consistent(nesdev->pcidev, 256, nesqp->pbl_vbase, nesqp->pbl_pbase); in nes_cqp_rem_ref_callback()
289 pci_free_consistent(nesdev->pcidev, nesqp->qp_mem_size, in nes_cqp_rem_ref_callback()
452 static int __devinit nes_probe(struct pci_dev *pcidev, const struct pci_device_id *ent) in nes_probe() argument
460 assert(pcidev != NULL); in nes_probe()
464 DRV_VERSION, pci_name(pcidev)); in nes_probe()
466 ret = pci_enable_device(pcidev); in nes_probe()
468 printk(KERN_ERR PFX "Unable to enable PCI device. (%s)\n", pci_name(pcidev)); in nes_probe()
[all …]
/linux-3.4.99/drivers/scsi/aic94xx/
Daic94xx_init.c96 io_handle->start = pci_resource_start(asd_ha->pcidev, i); in asd_map_memio()
97 io_handle->len = pci_resource_len(asd_ha->pcidev, i); in asd_map_memio()
98 io_handle->flags = pci_resource_flags(asd_ha->pcidev, i); in asd_map_memio()
102 i==0?0:1, pci_name(asd_ha->pcidev)); in asd_map_memio()
105 err = pci_request_region(asd_ha->pcidev, i, ASD_DRIVER_NAME); in asd_map_memio()
108 pci_name(asd_ha->pcidev)); in asd_map_memio()
119 pci_name(asd_ha->pcidev)); in asd_map_memio()
126 pci_release_region(asd_ha->pcidev, i); in asd_map_memio()
131 pci_release_region(asd_ha->pcidev, 0); in asd_map_memio()
142 pci_release_region(asd_ha->pcidev, 2); in asd_unmap_memio()
[all …]
Daic94xx_hwi.c163 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()
465 pci_name(asd_ha->pcidev)); in asd_init_chip()
[all …]
/linux-3.4.99/drivers/staging/comedi/drivers/addi-data/
Daddi_amcc_s5933.h204 struct pci_dev *pcidev; member
250 struct pci_dev *pcidev = NULL; in v_pci_card_list_init() local
257 for_each_pci_dev(pcidev) { in v_pci_card_list_init()
260 if (pcidev->vendor == pci_vendor) { in v_pci_card_list_init()
265 amcc->pcidev = pcidev; in v_pci_card_list_init()
272 amcc->vendor = pcidev->vendor; in v_pci_card_list_init()
273 amcc->device = pcidev->device; in v_pci_card_list_init()
274 amcc->pci_bus = pcidev->bus->number; in v_pci_card_list_init()
275 amcc->pci_slot = PCI_SLOT(pcidev->devfn); in v_pci_card_list_init()
276 amcc->pci_func = PCI_FUNC(pcidev->devfn); in v_pci_card_list_init()
[all …]
Damcc_s5933_58.h204 struct pci_dev *pcidev; member
247 struct pci_dev *pcidev; in v_pci_card_list_init() local
254 pci_for_each_dev(pcidev) { in v_pci_card_list_init()
255 if (pcidev->vendor == pci_vendor) { in v_pci_card_list_init()
260 amcc->pcidev = pcidev; in v_pci_card_list_init()
268 amcc->vendor = pcidev->vendor; in v_pci_card_list_init()
269 amcc->device = pcidev->device; in v_pci_card_list_init()
271 amcc->master = pcidev->master; /* how get this information under 2.4 kernels? */ in v_pci_card_list_init()
273 amcc->pci_bus = pcidev->bus->number; in v_pci_card_list_init()
274 amcc->pci_slot = PCI_SLOT(pcidev->devfn); in v_pci_card_list_init()
[all …]
/linux-3.4.99/drivers/parisc/
Diosapic.c474 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->secondary, 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 …]
Dsuperio.c153 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-3.4.99/drivers/infiniband/hw/amso1100/
Dc2.c232 pci_map_single(c2dev->pcidev, skb->data, maplen, in c2_rx_alloc()
298 pci_unmap_single(c2dev->pcidev, elem->mapaddr, in c2_rx_clean()
312 pci_unmap_single(c2dev->pcidev, elem->mapaddr, elem->maplen, in c2_tx_free()
508 pci_unmap_single(c2dev->pcidev, mapaddr, maplen, in c2_rx_interrupt()
607 c2_port->mem = pci_alloc_consistent(c2dev->pcidev, c2_port->mem_size, in c2_up()
685 pci_free_consistent(c2dev->pcidev, c2_port->mem_size, c2_port->mem, in c2_up()
726 pci_free_consistent(c2dev->pcidev, c2_port->mem_size, c2_port->mem, in c2_down()
782 pci_map_single(c2dev->pcidev, skb->data, maplen, PCI_DMA_TODEVICE); in c2_xmit_frame()
805 mapaddr = skb_frag_dma_map(&c2dev->pcidev->dev, frag, in c2_xmit_frame()
892 SET_NETDEV_DEV(netdev, &c2dev->pcidev->dev); in c2_devinit()
[all …]
/linux-3.4.99/drivers/mmc/host/
Dvia-sdmmc.c1085 static int __devinit via_sd_probe(struct pci_dev *pcidev, in via_sd_probe() argument
1096 pci_name(pcidev), (int)pcidev->vendor, (int)pcidev->device, in via_sd_probe()
1097 (int)pcidev->revision); in via_sd_probe()
1099 ret = pci_enable_device(pcidev); in via_sd_probe()
1103 ret = pci_request_regions(pcidev, DRV_NAME); in via_sd_probe()
1107 pci_write_config_byte(pcidev, VIA_CRDR_PCI_WORK_MODE, 0); in via_sd_probe()
1108 pci_write_config_byte(pcidev, VIA_CRDR_PCI_DBG_MODE, 0); in via_sd_probe()
1110 mmc = mmc_alloc_host(sizeof(struct via_crdr_mmc_host), &pcidev->dev); in via_sd_probe()
1118 dev_set_drvdata(&pcidev->dev, sdhost); in via_sd_probe()
1120 len = pci_resource_len(pcidev, 0); in via_sd_probe()
[all …]
/linux-3.4.99/drivers/scsi/
Dhptiop.c445 struct pci_dev *pcidev = hba->pcidev; in hptiop_map_pci_bar() local
448 if (!(pci_resource_flags(pcidev, index) & IORESOURCE_MEM)) { in hptiop_map_pci_bar()
454 mem_base_phy = pci_resource_start(pcidev, index); in hptiop_map_pci_bar()
455 length = pci_resource_len(pcidev, index); in hptiop_map_pci_bar()
468 struct pci_dev *pcidev = hba->pcidev; in hptiop_map_pci_bar_itl() local
472 if ((pcidev->device & 0xff00) == 0x4400) { in hptiop_map_pci_bar_itl()
938 hba->u.mv.internal_req = dma_alloc_coherent(&hba->pcidev->dev, in hptiop_internal_memalloc_mv()
949 dma_free_coherent(&hba->pcidev->dev, 0x800, in hptiop_internal_memfree_mv()
956 static int __devinit hptiop_probe(struct pci_dev *pcidev, in hptiop_probe() argument
967 dprintk("hptiop_probe(%p)\n", pcidev); in hptiop_probe()
[all …]
Dips.c690 IPS_PRINTK(KERN_WARNING, ha->pcidev, "Flushing Cache.\n"); in ips_release()
694 IPS_PRINTK(KERN_WARNING, ha->pcidev, "Incomplete Flush.\n"); in ips_release()
696 IPS_PRINTK(KERN_WARNING, ha->pcidev, "Flushing Complete.\n"); in ips_release()
705 free_irq(ha->pcidev->irq, ha); in ips_release()
759 IPS_PRINTK(KERN_WARNING, ha->pcidev, "Flushing Cache.\n"); in ips_halt()
764 IPS_PRINTK(KERN_WARNING, ha->pcidev, in ips_halt()
767 IPS_PRINTK(KERN_WARNING, ha->pcidev, in ips_halt()
917 IPS_PRINTK(KERN_NOTICE, ha->pcidev, in __ips_eh_reset()
932 IPS_PRINTK(KERN_NOTICE, ha->pcidev, "Resetting controller.\n"); in __ips_eh_reset()
938 IPS_PRINTK(KERN_NOTICE, ha->pcidev, in __ips_eh_reset()
[all …]
/linux-3.4.99/arch/powerpc/platforms/pseries/
Deeh_cache.c53 struct pci_dev *pcidev; member
76 pci_dev_get(piar->pcidev); in __pci_addr_cache_get_device()
77 return piar->pcidev; in __pci_addr_cache_get_device()
122 piar->addr_lo, piar->addr_hi, pci_name(piar->pcidev)); in pci_addr_cache_print()
147 if (dev != piar->pcidev || in pci_addr_cache_insert()
161 piar->pcidev = dev; in pci_addr_cache_insert()
250 if (piar->pcidev == dev) { in __pci_addr_cache_remove_device()
252 pci_dev_put(piar->pcidev); in __pci_addr_cache_remove_device()
/linux-3.4.99/drivers/video/matrox/
Dmatroxfb_DAC1064.c115 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-3.4.99/drivers/char/agp/
Dintel-gtt.c65 struct pci_dev *pcidev; /* device one */ member
107 *num_sg = pci_map_sg(intel_private.pcidev, *sg_list, in intel_gtt_map_memory()
125 pci_unmap_sg(intel_private.pcidev, sg_list, in intel_gtt_unmap_memory()
182 pci_read_config_dword(intel_private.pcidev, I810_MMADDR, &reg_addr); in i810_setup()
196 dev_info(&intel_private.pcidev->dev, in i810_setup()
303 dma_addr = pci_map_page(intel_private.pcidev, page, 0, in intel_gtt_setup_scratch_page()
305 if (pci_dma_mapping_error(intel_private.pcidev, dma_addr)) in intel_gtt_setup_scratch_page()
383 pci_read_config_word(intel_private.pcidev, SNB_GMCH_CTRL, &snb_gmch_ctl); in intel_gtt_stolen_size()
557 dev_info(&intel_private.pcidev->dev, in i965_gtt_total_entries()
574 pci_read_config_word(intel_private.pcidev, SNB_GMCH_CTRL, &snb_gmch_ctl); in intel_gtt_total_entries()
[all …]

12345678