Home
last modified time | relevance | path

Searched refs:pcidev (Results 1 – 200 of 221) sorted by relevance

12

/linux-4.4.14/drivers/staging/comedi/
Dcomedi_pci.c60 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in comedi_pci_enable() local
63 if (!pcidev) in comedi_pci_enable()
66 rc = pci_enable_device(pcidev); in comedi_pci_enable()
70 rc = pci_request_regions(pcidev, dev->board_name); in comedi_pci_enable()
72 pci_disable_device(pcidev); in comedi_pci_enable()
91 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in comedi_pci_disable() local
93 if (pcidev && dev->ioenabled) { in comedi_pci_disable()
94 pci_release_regions(pcidev); in comedi_pci_disable()
95 pci_disable_device(pcidev); in comedi_pci_disable()
117 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in comedi_pci_detach() local
[all …]
/linux-4.4.14/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()
204 ret = pci_msix_vec_count(dd->pcidev); in qib_msix_setup()
220 ret = pci_enable_msix_range(dd->pcidev, msix_entry, 1, nvec); in qib_msix_setup()
242 qib_enable_intx(dd->pcidev); in qib_msix_setup()
252 struct pci_dev *pdev = dd->pcidev; in qib_msi_setup()
281 if (!pci_is_pcie(dd->pcidev)) { in qib_pcie_params()
289 pos = dd->pcidev->msix_cap; in qib_pcie_params()
[all …]
Dqib_init.c124 int local_node_id = pcibus_to_node(dd->pcidev->bus); in qib_create_ctxts()
328 &dd->pcidev->dev, PAGE_SIZE, &dd->pioavailregs_phys, in init_pioavailregs()
431 qib_devinfo(dd->pcidev, "%s", dd->boardversion); in loadtime_init()
532 dev_err(&dd->pcidev->dev, in verify_interrupt()
737 qib_devinfo(dd->pcidev, in qib_init()
947 dma_free_coherent(&dd->pcidev->dev, rcd->rcvhdrq_size, in qib_free_ctxtdata()
951 dma_free_coherent(&dd->pcidev->dev, PAGE_SIZE, in qib_free_ctxtdata()
964 dma_free_coherent(&dd->pcidev->dev, size, in qib_free_ctxtdata()
1008 qib_devinfo(dd->pcidev, in qib_verify_pioperf()
1021 qib_devinfo(dd->pcidev, in qib_verify_pioperf()
[all …]
Dqib_wc_x86_64.c58 const unsigned long addr = pci_resource_start(dd->pcidev, 0); in qib_enable_wc()
59 const size_t len = pci_resource_len(dd->pcidev, 0); in qib_enable_wc()
Dqib_user_sdma.c313 dma_map_page(&dd->pcidev->dev, in qib_user_sdma_page_to_frags()
317 if (dma_mapping_error(&dd->pcidev->dev, dma_addr)) { in qib_user_sdma_page_to_frags()
388 dma_map_single(&dd->pcidev->dev, in qib_user_sdma_page_to_frags()
392 if (dma_mapping_error(&dd->pcidev->dev, in qib_user_sdma_page_to_frags()
479 dma_map_single(&dd->pcidev->dev, in qib_user_sdma_page_to_frags()
483 if (dma_mapping_error(&dd->pcidev->dev, in qib_user_sdma_page_to_frags()
743 qib_user_sdma_free_pkt_frag(&dd->pcidev->dev, pq, pkt, idx); in qib_user_sdma_pin_pkt()
749 dma_unmap_single(&dd->pcidev->dev, in qib_user_sdma_pin_pkt()
1002 dma_addr = dma_map_single(&dd->pcidev->dev, in qib_user_sdma_queue_pkts()
1004 if (dma_mapping_error(&dd->pcidev->dev, in qib_user_sdma_queue_pkts()
[all …]
Dqib_sdma.c265 dma_unmap_single(&ppd->dd->pcidev->dev, addr, len, DMA_TO_DEVICE); in unmap_desc()
275 ppd->sdma_descq = dma_alloc_coherent(&ppd->dd->pcidev->dev, in alloc_sdma()
286 ppd->sdma_head_dma = dma_alloc_coherent(&ppd->dd->pcidev->dev, in alloc_sdma()
297 dma_free_coherent(&ppd->dd->pcidev->dev, in alloc_sdma()
312 dma_free_coherent(&dd->pcidev->dev, PAGE_SIZE, in free_sdma()
320 dma_free_coherent(&dd->pcidev->dev, in free_sdma()
598 addr = dma_map_single(&ppd->dd->pcidev->dev, sge->vaddr, in qib_sdma_verbs_send()
600 if (dma_mapping_error(&ppd->dd->pcidev->dev, addr)) in qib_sdma_verbs_send()
Dqib_file_ops.c327 qib_devinfo(dd->pcidev, in qib_tid_update()
361 dd->pcidev, in qib_tid_update()
387 qib_map_page(dd->pcidev, pagep[i], 0, PAGE_SIZE, in qib_tid_update()
428 pci_unmap_page(dd->pcidev, phys, PAGE_SIZE, in qib_tid_update()
543 pci_unmap_page(dd->pcidev, phys, PAGE_SIZE, in qib_tid_free()
737 qib_devinfo(dd->pcidev, in qib_mmap_mem()
750 qib_devinfo(dd->pcidev, in qib_mmap_mem()
764 qib_devinfo(dd->pcidev, in qib_mmap_mem()
785 qib_devinfo(dd->pcidev, in mmap_ureg()
817 qib_devinfo(dd->pcidev, in mmap_piobufs()
[all …]
Dqib_eeprom.c206 qib_devinfo(dd->pcidev, in qib_get_eeprom_info()
222 qib_devinfo(dd->pcidev, in qib_get_eeprom_info()
Dqib.h734 struct pci_dev *pcidev; member
1513 dev_err(&(dd)->pcidev->dev, "%s: " fmt, \
1517 dev_warn(&(dd)->pcidev->dev, "%s: " fmt, \
1521 dev_err(&(dd)->pcidev->dev, "%s: IB%u:%u " fmt, \
1525 #define qib_devinfo(pcidev, fmt, ...) \ argument
1526 dev_info(&(pcidev)->dev, fmt, ##__VA_ARGS__)
Dqib_driver.c663 qib_devinfo(dd->pcidev, "IB%u:%u got a lid: 0x%x\n", in qib_set_lid()
768 qib_devinfo(dd->pcidev, "Reset on unit %u requested\n", unit); in qib_reset_device()
771 qib_devinfo(dd->pcidev, in qib_reset_device()
814 qib_devinfo(dd->pcidev, in qib_reset_device()
Dqib_iba7322.c1670 qib_devinfo(dd->pcidev, in handle_7322_errors()
1882 qib_devinfo(dd->pcidev, in handle_7322_p_errors()
2135 qib_devinfo(dd->pcidev, in qib_7322_handle_hwerrors()
2686 if (!dca_add_requester(&dd->pcidev->dev)) { in qib_7322_notify_dca()
2687 qib_devinfo(dd->pcidev, "DCA enabled\n"); in qib_7322_notify_dca()
2694 dca_remove_requester(&dd->pcidev->dev); in qib_7322_notify_dca()
2719 (u64) dca3_get_tag(&dd->pcidev->dev, cpu) << rmp->lsb; in qib_update_rhdrq_dca()
2720 qib_devinfo(dd->pcidev, in qib_update_rhdrq_dca()
2744 (u64) dca3_get_tag(&dd->pcidev->dev, cpu) << in qib_update_sdma_dca()
2748 qib_devinfo(dd->pcidev, in qib_update_sdma_dca()
[all …]
Dqib_iba6120.c673 qib_devinfo(dd->pcidev, in qib_6120_txe_recover()
784 qib_devinfo(dd->pcidev, in qib_handle_6120_hwerrors()
1509 dma_free_coherent(&dd->pcidev->dev, in qib_6120_setup_cleanup()
1549 qib_devinfo(dd->pcidev, in unlikely_6120_intr()
2115 dd->cspec->dummy_hdrq = dma_alloc_coherent(&dd->pcidev->dev, in alloc_dummy_hdrq()
2120 qib_devinfo(dd->pcidev, "Couldn't allocate dummy hdrq\n"); in alloc_dummy_hdrq()
2360 qib_devinfo(ppd->dd->pcidev, in qib_portcntr_6120()
2647 qib_devinfo(dd->pcidev, in qib_chk_6120_errormask()
2936 qib_devinfo(ppd->dd->pcidev, "Enabling IB%u:%u IBC loopback\n", in qib_6120_set_loopback()
2940 qib_devinfo(ppd->dd->pcidev, in qib_6120_set_loopback()
Dqib_verbs.c1014 dma_unmap_single(&dd_from_dev(dev)->pcidev->dev, in qib_put_txreq()
1227 tx->txreq.addr = dma_map_single(&dd->pcidev->dev, phdr, in qib_verbs_send_dma()
1229 if (dma_mapping_error(&dd->pcidev->dev, tx->txreq.addr)) in qib_verbs_send_dma()
2158 dev->pio_hdrs = dma_alloc_coherent(&dd->pcidev->dev, in qib_register_ib_device()
2227 ibdev->dma_device = &dd->pcidev->dev; in qib_register_ib_device()
2307 dma_free_coherent(&dd->pcidev->dev, in qib_register_ib_device()
2361 dma_free_coherent(&dd->pcidev->dev, in qib_unregister_ib_device()
Dqib_iba7220.c771 qib_devinfo(dd->pcidev, "Recovering from TXE PIO parity error\n"); in qib_7220_txe_recover()
1334 qib_devinfo(dd->pcidev, in qib_7220_handle_hwerrors()
1452 qib_devinfo(dd->pcidev, "MemBIST is disabled.\n"); in qib_7220_init_hwerrors()
1926 qib_devinfo(dd->pcidev, in unlikely_7220_intr()
2709 qib_devinfo(ppd->dd->pcidev, "Enabling IB%u:%u IBC loopback\n", in qib_7220_set_loopback()
2715 qib_devinfo(ppd->dd->pcidev, in qib_7220_set_loopback()
2979 qib_devinfo(ppd->dd->pcidev, in qib_portcntr_7220()
3315 qib_devinfo(dd->pcidev, in qib_7220_intr_fallback()
3318 qib_enable_intx(dd->pcidev); in qib_7220_intr_fallback()
3325 dd->cspec->irq = dd->pcidev->irq; in qib_7220_intr_fallback()
Dqib_sysfs.c756 qib_devinfo(dd->pcidev, in qib_create_port_files()
Dqib_diag.c612 qib_devinfo(dd->pcidev, in qib_diagpkt_write()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dpcie.c173 dd->pcidev = pdev; in hfi1_pcie_ddinit()
220 pci_read_config_dword(dd->pcidev, PCI_ROM_ADDRESS, &dd->pci_rom); in hfi1_pcie_ddinit()
221 pci_read_config_word(dd->pcidev, PCI_COMMAND, &dd->pci_command); in hfi1_pcie_ddinit()
222 pcie_capability_read_word(dd->pcidev, PCI_EXP_DEVCTL, &dd->pcie_devctl); in hfi1_pcie_ddinit()
223 pcie_capability_read_word(dd->pcidev, PCI_EXP_LNKCTL, &dd->pcie_lnkctl); in hfi1_pcie_ddinit()
224 pcie_capability_read_word(dd->pcidev, PCI_EXP_DEVCTL2, in hfi1_pcie_ddinit()
226 pci_read_config_dword(dd->pcidev, PCI_CFG_MSIX0, &dd->pci_msix0); in hfi1_pcie_ddinit()
227 pci_read_config_dword(dd->pcidev, PCIE_CFG_SPCIE1, in hfi1_pcie_ddinit()
229 pci_read_config_dword(dd->pcidev, PCIE_CFG_TPH2, &dd->pci_tph2); in hfi1_pcie_ddinit()
251 pci_set_drvdata(dd->pcidev, NULL); in hfi1_pcie_ddcleanup()
[all …]
Dinit.c130 int local_node_id = pcibus_to_node(dd->pcidev->bus); in hfi1_create_ctxts()
921 dma_free_coherent(&dd->pcidev->dev, rcd->rcvhdrq_size, in hfi1_free_ctxtdata()
925 dma_free_coherent(&dd->pcidev->dev, PAGE_SIZE, in hfi1_free_ctxtdata()
937 dma_free_coherent(&dd->pcidev->dev, in hfi1_free_ctxtdata()
1300 hfi1_pcie_cleanup(dd->pcidev); in postinit_cleanup()
1479 &dd->pcidev->dev, amt, &rcd->rcvhdrq_phys, in hfi1_create_rcvhdrq()
1498 &dd->pcidev->dev, PAGE_SIZE, &phys_hdrqtail, in hfi1_create_rcvhdrq()
1532 dma_free_coherent(&dd->pcidev->dev, amt, rcd->rcvhdrq, in hfi1_create_rcvhdrq()
1592 dma_zalloc_coherent(&dd->pcidev->dev, in hfi1_setup_eagerbufs()
1708 dma_free_coherent(&dd->pcidev->dev, in hfi1_setup_eagerbufs()
Dsdma.h820 &dd->pcidev->dev, in sdma_txadd_page()
826 if (unlikely(dma_mapping_error(&dd->pcidev->dev, addr))) { in sdma_txadd_page()
902 &dd->pcidev->dev, in sdma_txadd_kvaddr()
907 if (unlikely(dma_mapping_error(&dd->pcidev->dev, addr))) { in sdma_txadd_kvaddr()
Dhfi.h781 struct pci_dev *pcidev; member
1764 dev_emerg(&(dd)->pcidev->dev, "%s: " fmt, \
1767 dev_err(&(dd)->pcidev->dev, "%s: " fmt, \
1770 dev_warn(&(dd)->pcidev->dev, "%s: " fmt, \
1774 dev_warn_ratelimited(&(dd)->pcidev->dev, "%s: " fmt, \
1778 dev_info(&(dd)->pcidev->dev, "%s: " fmt, \
1782 dev_err(&(dd)->pcidev->dev, "%s: IB%u:%u " fmt, \
Dsdma.c957 dma_free_coherent(&dd->pcidev->dev, 4, in sdma_clean()
964 dma_free_coherent(&dd->pcidev->dev, dd->sdma_heads_size, in sdma_clean()
978 &dd->pcidev->dev, in sdma_clean()
1120 &dd->pcidev->dev, in sdma_init()
1142 &dd->pcidev->dev, in sdma_init()
1154 &dd->pcidev->dev, in sdma_init()
1287 &dd->pcidev->dev, in sdma_unmap_desc()
1294 &dd->pcidev->dev, in sdma_unmap_desc()
2826 addr = dma_map_single(&dd->pcidev->dev, in ext_coal_sdma_tx_descs()
2831 if (unlikely(dma_mapping_error(&dd->pcidev->dev, addr))) { in ext_coal_sdma_tx_descs()
Dpio.c1732 set_dev_node(&dd->pcidev->dev, i); in init_credit_return()
1734 &dd->pcidev->dev, in init_credit_return()
1739 set_dev_node(&dd->pcidev->dev, dd->node); in init_credit_return()
1747 set_dev_node(&dd->pcidev->dev, dd->node); in init_credit_return()
1765 dma_free_coherent(&dd->pcidev->dev, in free_credit_return()
Deprom.c436 if (dd->pcidev->device != PCI_DEVICE_ID_INTEL0) in eprom_init()
Dfirmware.c429 ret = request_firmware(&fdet->fw, name, &dd->pcidev->dev); in obtain_one_firmware()
594 &dd->pcidev->dev); in obtain_firmware()
Dfile_ops.c1723 phys[pmapped] = hfi1_map_page(dd->pcidev, in exp_tid_setup()
1840 pci_unmap_page(dd->pcidev, phys[i], in exp_tid_free()
1877 pci_unmap_page(dd->pcidev, phys, PAGE_SIZE, PCI_DMA_FROMDEVICE); in unlock_exp_tids()
/linux-4.4.14/drivers/infiniband/hw/nes/
Dnes.c174 NES_IDX_DST_IP_ADDR+(0x10*PCI_FUNC(nesdev->pcidev->devfn)), 0); in nes_inetaddr_event()
201 NES_IDX_DST_IP_ADDR+(0x10*PCI_FUNC(nesdev->pcidev->devfn)), in nes_inetaddr_event()
287 pci_free_consistent(nesdev->pcidev, nesqp->qp_mem_size, in nes_cqp_rem_ref_callback()
292 pci_free_consistent(nesdev->pcidev, 256, nesqp->pbl_vbase, nesqp->pbl_pbase); in nes_cqp_rem_ref_callback()
296 pci_free_consistent(nesdev->pcidev, nesqp->qp_mem_size, in nes_cqp_rem_ref_callback()
459 static int nes_probe(struct pci_dev *pcidev, const struct pci_device_id *ent) in nes_probe() argument
467 assert(pcidev != NULL); in nes_probe()
471 DRV_VERSION, pci_name(pcidev)); in nes_probe()
473 ret = pci_enable_device(pcidev); in nes_probe()
475 printk(KERN_ERR PFX "Unable to enable PCI device. (%s)\n", pci_name(pcidev)); in nes_probe()
[all …]
Dnes_hw.c279 nesdev->pcidev->devfn, in nes_init_adapter()
282 PCI_SLOT(nesdev->pcidev->devfn), in nes_init_adapter()
283 nesdev->pcidev->bus->number ); in nes_init_adapter()
284 if ((PCI_SLOT(nesadapter->devfn) == PCI_SLOT(nesdev->pcidev->devfn)) && in nes_init_adapter()
285 (nesadapter->bus_number == nesdev->pcidev->bus->number)) { in nes_init_adapter()
292 num_pds = pci_resource_len(nesdev->pcidev, BAR_1) >> PAGE_SHIFT; in nes_init_adapter()
300 nes_read_indexed(nesdev, NES_IDX_QP_CONTROL + PCI_FUNC(nesdev->pcidev->devfn) * 8), in nes_init_adapter()
377 pci_bus_read_config_word(nesdev->pcidev->bus, nesdev->pcidev->devfn, in nes_init_adapter()
392 nesadapter->devfn = nesdev->pcidev->devfn; in nes_init_adapter()
393 nesadapter->bus_number = nesdev->pcidev->bus->number; in nes_init_adapter()
[all …]
Dnes_verbs.c450 nesmr->pages = pci_alloc_consistent(nesdev->pcidev, in nes_alloc_mr()
938 pci_free_consistent(nesdev->pcidev, nespbl->pbl_size, nespbl->pbl_vbase, in nes_setup_virt_qp()
948 nesqp->pbl_vbase = pci_alloc_consistent(nesdev->pcidev, 256, &nesqp->pbl_pbase); in nes_setup_virt_qp()
952 pci_free_consistent(nesdev->pcidev, nespbl->pbl_size, nespbl->pbl_vbase, in nes_setup_virt_qp()
972 pci_free_consistent(nesdev->pcidev, nespbl->pbl_size, nespbl->pbl_vbase, in nes_setup_virt_qp()
982 mem = pci_alloc_consistent(nesdev->pcidev, nesqp->qp_mem_size, in nes_setup_virt_qp()
986 pci_free_consistent(nesdev->pcidev, 256, nesqp->pbl_vbase, nesqp->pbl_pbase); in nes_setup_virt_qp()
1023 mem = pci_alloc_consistent(nesdev->pcidev, nesqp->qp_mem_size, in nes_setup_mmap_qp()
1063 pci_free_consistent(nesdev->pcidev, nesqp->qp_mem_size, in nes_free_qp_mem()
1069 …pci_free_consistent(nesdev->pcidev, nesqp->qp_mem_size, nesqp->hwqp.q2_vbase, nesqp->hwqp.q2_pbase… in nes_free_qp_mem()
[all …]
Dnes_mgt.c79 bus_address = pci_map_single(nesdev->pcidev, in nes_replenish_mgt_rq()
142 pci_unmap_single(nesdev->pcidev, cb->busaddr, cb->maplen, dir); in nes_mgt_free_skb()
166 pci_free_consistent(nesdev->pcidev, fpdu_info->hdr_len, in nes_download_callback()
347 fpdu_info->hdr_vbase = pci_alloc_consistent(nesdev->pcidev, in get_fpdu_info()
591 cb->busaddr = pci_map_single(nesvnic->nesdev->pcidev, cb->data_start, in mgt_thread()
669 cpu_to_le32((u32)PCI_FUNC(nesdev->pcidev->devfn) << 24); in nes_chg_qh_handler()
822 pci_unmap_single(nesdev->pcidev, cb->busaddr, cb->maplen, PCI_DMA_FROMDEVICE); in nes_mgt_ce_handler()
895 mgt_vbase = pci_alloc_consistent(nesdev->pcidev, NES_MGT_QP_COUNT * mgt_mem_size, &mgt_pbase); in nes_init_mgt_qp()
973 ((u32)PCI_FUNC(nesdev->pcidev->devfn) << 12)); in nes_init_mgt_qp()
1014 pci_free_consistent(nesdev->pcidev, nesvnic->mgt_mem_size, nesvnic->mgt_vbase, in nes_init_mgt_qp()
[all …]
Dnes_nic.c305 (PCI_FUNC(first_nesvnic->nesdev->pcidev->devfn) != in nes_netdev_stop()
306 PCI_FUNC(nesvnic->nesdev->pcidev->devfn))) { in nes_netdev_stop()
419 bus_address = pci_map_single(nesdev->pcidev, skb->data + NES_FIRST_FRAG_SIZE, in nes_nic_send()
441 bus_address = skb_frag_dma_map(&nesdev->pcidev->dev, in nes_nic_send()
562 skb_frag_dma_map(&nesdev->pcidev->dev, in nes_netdev_start_xmit()
624 bus_address = pci_map_single(nesdev->pcidev, skb->data + original_first_length, in nes_netdev_start_xmit()
1322 strlcpy(drvinfo->bus_info, pci_name(nesvnic->nesdev->pcidev), in nes_netdev_get_drvinfo()
1670 SET_NETDEV_DEV(netdev, &nesdev->pcidev->dev); in nes_netdev_init()
1673 netdev->irq = nesdev->pcidev->irq; in nes_netdev_init()
1691 curr_qp_map = nic_qp_mapping_per_function[PCI_FUNC(nesdev->pcidev->devfn)]; in nes_netdev_init()
[all …]
Dnes_cm.c1447 PCI_FUNC(listener->nesvnic->nesdev->pcidev->devfn), in mini_cm_dec_refcnt_listen()
1724 PCI_FUNC(cm_node->nesvnic->nesdev->pcidev->devfn), in rem_ref_cm_node()
3197 pci_free_consistent(nesdev->pcidev, in nes_disconnect()
3288 nesqp->ietf_frame = pci_alloc_consistent(nesdev->pcidev, in nes_accept()
3330 pci_free_consistent(nesdev->pcidev, in nes_accept()
3391 (u32)PCI_FUNC(nesdev->pcidev->devfn) << in nes_accept()
3411 cpu_to_le32((u32)PCI_FUNC(nesdev->pcidev->devfn) << 24); in nes_accept()
3588 PCI_FUNC(nesdev->pcidev->devfn), NES_MANAGE_APBVT_ADD); in nes_connect()
3604 PCI_FUNC(nesdev->pcidev->devfn), in nes_connect()
3683 PCI_FUNC(nesvnic->nesdev->pcidev->devfn), in nes_create_listen()
[all …]
Dnes.h226 struct pci_dev *pcidev; member
/linux-4.4.14/drivers/scsi/aic94xx/
Daic94xx_init.c87 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 …]
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 …]
Daic94xx_task.c68 dma_addr_t dma = pci_map_single(asd_ha->pcidev, p, in asd_map_scatterlist()
82 num_sg = pci_map_sg(asd_ha->pcidev, task->scatter, in asd_map_scatterlist()
129 pci_unmap_sg(asd_ha->pcidev, task->scatter, task->num_scatter, in asd_map_scatterlist()
145 pci_unmap_single(ascb->ha->pcidev, dma, task->total_xfer_len, in asd_unmap_scatterlist()
152 pci_unmap_sg(asd_ha->pcidev, task->scatter, task->num_scatter, in asd_unmap_scatterlist()
196 sas_ssp_task_response(&asd_ha->pcidev->dev, task, iu); in asd_get_response_tasklet()
439 pci_map_sg(asd_ha->pcidev, &task->smp_task.smp_req, 1, in asd_build_smp_ascb()
441 pci_map_sg(asd_ha->pcidev, &task->smp_task.smp_resp, 1, in asd_build_smp_ascb()
474 pci_unmap_sg(a->ha->pcidev, &task->smp_task.smp_req, 1, in asd_unbuild_smp_ascb()
476 pci_unmap_sg(a->ha->pcidev, &task->smp_task.smp_resp, 1, in asd_unbuild_smp_ascb()
Daic94xx_hwi.h199 struct pci_dev *pcidev; member
266 token->vaddr = dma_alloc_coherent(&asd_ha->pcidev->dev, in asd_alloc_coherent()
282 dma_free_coherent(&asd_ha->pcidev->dev, token->size, in asd_free_coherent()
Daic94xx_sds.c314 struct pci_dev *pcidev = asd_ha->pcidev; in asd_hwi_check_ocm_access() local
323 err = pci_read_config_dword(pcidev, PCIC_INTRPT_STAT, &v); in asd_hwi_check_ocm_access()
326 pci_name(pcidev)); in asd_hwi_check_ocm_access()
335 err = pci_write_config_dword(pcidev, in asd_hwi_check_ocm_access()
339 pci_name(pcidev)); in asd_hwi_check_ocm_access()
635 if (pci_read_config_dword(asd_ha->pcidev, PCI_CONF_FLSH_BAR, in asd_flash_getid()
638 pci_name(asd_ha->pcidev)); in asd_flash_getid()
Daic94xx_seq.c205 pci_name(asd_ha->pcidev), in asd_verify_cseq()
247 pci_name(asd_ha->pcidev), in asd_verify_lseq()
348 pci_name(asd_ha->pcidev)); in asd_download_seq()
404 asd_printk("%s: no enabled phys!\n", pci_name(asd_ha->pcidev)); in asd_seq_download_seqs()
1249 &asd_ha->pcidev->dev); in asd_request_firmware()
1329 pci_name(asd_ha->pcidev)); in asd_init_seqs()
1347 pci_name(asd_ha->pcidev)); in asd_start_seqs()
1356 pci_name(asd_ha->pcidev)); in asd_start_seqs()
Daic94xx_reg.c191 pci_write_config_dword(asd_ha->pcidev, PCI_CONF_MBAR0_SWB, base); in asd_move_swb()
/linux-4.4.14/drivers/staging/comedi/drivers/
Dni_labpc_pci.c57 static int labpc_pci_mite_init(struct pci_dev *pcidev) in labpc_pci_mite_init() argument
63 mite_base = pci_ioremap_bar(pcidev, 0); in labpc_pci_mite_init()
68 main_phys_addr = pci_resource_start(pcidev, 1); in labpc_pci_mite_init()
79 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in labpc_pci_auto_attach() local
94 ret = labpc_pci_mite_init(pcidev); in labpc_pci_auto_attach()
98 dev->mmio = pci_ioremap_bar(pcidev, 1); in labpc_pci_auto_attach()
102 return labpc_common_attach(dev, pcidev->irq, IRQF_SHARED); in labpc_pci_auto_attach()
D8255_pci.c184 static int pci_8255_mite_init(struct pci_dev *pcidev) in pci_8255_mite_init() argument
190 mite_base = pci_ioremap_bar(pcidev, 0); in pci_8255_mite_init()
195 main_phys_addr = pci_resource_start(pcidev, 1); in pci_8255_mite_init()
206 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in pci_8255_auto_attach() local
224 ret = pci_8255_mite_init(pcidev); in pci_8255_auto_attach()
229 if ((pci_resource_flags(pcidev, board->dio_badr) & IORESOURCE_MEM)) { in pci_8255_auto_attach()
230 dev->mmio = pci_ioremap_bar(pcidev, board->dio_badr); in pci_8255_auto_attach()
234 dev->iobase = pci_resource_start(pcidev, board->dio_badr); in pci_8255_auto_attach()
Dni_670x.c152 static int ni_670x_mite_init(struct pci_dev *pcidev) in ni_670x_mite_init() argument
158 mite_base = pci_ioremap_bar(pcidev, 0); in ni_670x_mite_init()
163 main_phys_addr = pci_resource_start(pcidev, 1); in ni_670x_mite_init()
174 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in ni_670x_auto_attach() local
196 ret = ni_670x_mite_init(pcidev); in ni_670x_auto_attach()
200 dev->mmio = pci_ioremap_bar(pcidev, 1); in ni_670x_auto_attach()
Dgsc_hpdi.c492 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in gsc_hpdi_free_dma() local
502 pci_free_consistent(pcidev, in gsc_hpdi_free_dma()
509 pci_free_consistent(pcidev, in gsc_hpdi_free_dma()
593 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in gsc_hpdi_auto_attach() local
608 pci_set_master(pcidev); in gsc_hpdi_auto_attach()
610 devpriv->plx9080_mmio = pci_ioremap_bar(pcidev, 0); in gsc_hpdi_auto_attach()
611 dev->mmio = pci_ioremap_bar(pcidev, 2); in gsc_hpdi_auto_attach()
620 if (request_irq(pcidev->irq, gsc_hpdi_interrupt, IRQF_SHARED, in gsc_hpdi_auto_attach()
623 "unable to allocate irq %u\n", pcidev->irq); in gsc_hpdi_auto_attach()
626 dev->irq = pcidev->irq; in gsc_hpdi_auto_attach()
[all …]
Dadl_pci9118.c1436 struct pci_dev *pcidev = NULL; in pci9118_find_pci() local
1440 for_each_pci_dev(pcidev) { in pci9118_find_pci()
1441 if (pcidev->vendor != PCI_VENDOR_ID_AMCC) in pci9118_find_pci()
1443 if (pcidev->device != 0x80d9) in pci9118_find_pci()
1447 if (pcidev->bus->number != bus || in pci9118_find_pci()
1448 PCI_SLOT(pcidev->devfn) != slot) in pci9118_find_pci()
1451 return pcidev; in pci9118_find_pci()
1508 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in pci9118_common_attach() local
1522 pci_set_master(pcidev); in pci9118_common_attach()
1524 devpriv->iobase_a = pci_resource_start(pcidev, 0); in pci9118_common_attach()
[all …]
Daddi_apci_1032.c301 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in apci1032_auto_attach() local
314 devpriv->amcc_iobase = pci_resource_start(pcidev, 0); in apci1032_auto_attach()
315 dev->iobase = pci_resource_start(pcidev, 1); in apci1032_auto_attach()
317 if (pcidev->irq > 0) { in apci1032_auto_attach()
318 ret = request_irq(pcidev->irq, apci1032_interrupt, IRQF_SHARED, in apci1032_auto_attach()
321 dev->irq = pcidev->irq; in apci1032_auto_attach()
Dmite.c56 struct mite_struct *mite_alloc(struct pci_dev *pcidev) in mite_alloc() argument
64 mite->pcidev = pcidev; in mite_alloc()
102 pci_set_master(mite->pcidev); in mite_setup2()
104 mite->mite_io_addr = pci_ioremap_bar(mite->pcidev, 0); in mite_setup2()
110 mite->mite_phys_addr = pci_resource_start(mite->pcidev, 0); in mite_setup2()
112 dev->mmio = pci_ioremap_bar(mite->pcidev, 1); in mite_setup2()
118 mite->daq_phys_addr = pci_resource_start(mite->pcidev, 1); in mite_setup2()
119 length = pci_resource_len(mite->pcidev, 1); in mite_setup2()
188 ring->hw_dev = get_device(&mite->pcidev->dev); in mite_alloc_ring()
Daddi_apci_3501.c320 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in apci3501_auto_attach() local
334 devpriv->amcc = pci_resource_start(pcidev, 0); in apci3501_auto_attach()
335 dev->iobase = pci_resource_start(pcidev, 1); in apci3501_auto_attach()
340 if (pcidev->irq > 0) { in apci3501_auto_attach()
341 ret = request_irq(pcidev->irq, apci3501_interrupt, IRQF_SHARED, in apci3501_auto_attach()
344 dev->irq = pcidev->irq; in apci3501_auto_attach()
Dni_65xx.c618 static int ni_65xx_mite_init(struct pci_dev *pcidev) in ni_65xx_mite_init() argument
624 mite_base = pci_ioremap_bar(pcidev, 0); in ni_65xx_mite_init()
629 main_phys_addr = pci_resource_start(pcidev, 1); in ni_65xx_mite_init()
640 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in ni_65xx_auto_attach() local
657 ret = ni_65xx_mite_init(pcidev); in ni_65xx_auto_attach()
661 dev->mmio = pci_ioremap_bar(pcidev, 1); in ni_65xx_auto_attach()
669 if (pcidev->irq) { in ni_65xx_auto_attach()
670 ret = request_irq(pcidev->irq, ni_65xx_interrupt, IRQF_SHARED, in ni_65xx_auto_attach()
673 dev->irq = pcidev->irq; in ni_65xx_auto_attach()
Daddi_apci_2032.c238 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in apci2032_auto_attach() local
245 dev->iobase = pci_resource_start(pcidev, 1); in apci2032_auto_attach()
248 if (pcidev->irq > 0) { in apci2032_auto_attach()
249 ret = request_irq(pcidev->irq, apci2032_interrupt, in apci2032_auto_attach()
252 dev->irq = pcidev->irq; in apci2032_auto_attach()
Ddaqboard2000.c634 struct pci_dev *pcidev) in daqboard2000_find_boardinfo() argument
639 if (pcidev->subsystem_device != PCI_VENDOR_ID_IOTECH) in daqboard2000_find_boardinfo()
644 if (pcidev->subsystem_device == board->id) in daqboard2000_find_boardinfo()
653 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in daqboard2000_auto_attach() local
659 board = daqboard2000_find_boardinfo(dev, pcidev); in daqboard2000_auto_attach()
673 devpriv->plx = pci_ioremap_bar(pcidev, 0); in daqboard2000_auto_attach()
674 dev->mmio = pci_ioremap_bar(pcidev, 2); in daqboard2000_auto_attach()
Daddi_apci_1564.c439 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in apci1564_auto_attach() local
454 devpriv->eeprom = pci_resource_start(pcidev, 0); in apci1564_auto_attach()
458 dev->iobase = pci_resource_start(pcidev, 1) + in apci1564_auto_attach()
465 devpriv->counters = pci_resource_start(pcidev, 1); in apci1564_auto_attach()
470 if (pcidev->irq > 0) { in apci1564_auto_attach()
471 ret = request_irq(pcidev->irq, apci1564_interrupt, IRQF_SHARED, in apci1564_auto_attach()
474 dev->irq = pcidev->irq; in apci1564_auto_attach()
Damplc_dio200_pci.c318 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in dio200_pcie_board_setup() local
331 if (pci_resource_len(pcidev, 0) < 0x4000) { in dio200_pcie_board_setup()
335 brbase = pci_ioremap_bar(pcidev, 0); in dio200_pcie_board_setup()
Daddi_apci_1516.c119 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in apci1516_auto_attach() local
140 dev->iobase = pci_resource_start(pcidev, 1); in apci1516_auto_attach()
141 devpriv->wdog_iobase = pci_resource_start(pcidev, 2); in apci1516_auto_attach()
Dmf6x4.c190 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in mf6x4_auto_attach() local
212 devpriv->bar0_mem = pci_ioremap_bar(pcidev, board->bar_nums[0]); in mf6x4_auto_attach()
216 dev->mmio = pci_ioremap_bar(pcidev, board->bar_nums[1]); in mf6x4_auto_attach()
220 devpriv->bar2_mem = pci_ioremap_bar(pcidev, board->bar_nums[2]); in mf6x4_auto_attach()
Dcontec_pci_dio.c63 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in contec_auto_attach() local
70 dev->iobase = pci_resource_start(pcidev, 0); in contec_auto_attach()
Drtd520.c1205 struct pci_dev *pcidev) in rtd_pci_latency_quirk() argument
1209 pci_read_config_byte(pcidev, PCI_LATENCY_TIMER, &pci_latency); in rtd_pci_latency_quirk()
1214 pci_write_config_byte(pcidev, PCI_LATENCY_TIMER, 32); in rtd_pci_latency_quirk()
1221 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in rtd_auto_attach() local
1242 dev->mmio = pci_ioremap_bar(pcidev, 2); in rtd_auto_attach()
1243 devpriv->las1 = pci_ioremap_bar(pcidev, 3); in rtd_auto_attach()
1244 devpriv->lcfg = pci_ioremap_bar(pcidev, 0); in rtd_auto_attach()
1248 rtd_pci_latency_quirk(dev, pcidev); in rtd_auto_attach()
1250 if (pcidev->irq) { in rtd_auto_attach()
1251 ret = request_irq(pcidev->irq, rtd_interrupt, IRQF_SHARED, in rtd_auto_attach()
[all …]
Daddi_apci_1500.c756 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in apci1500_auto_attach() local
769 dev->iobase = pci_resource_start(pcidev, 1); in apci1500_auto_attach()
770 devpriv->amcc = pci_resource_start(pcidev, 0); in apci1500_auto_attach()
771 devpriv->addon = pci_resource_start(pcidev, 2); in apci1500_auto_attach()
775 if (pcidev->irq > 0) { in apci1500_auto_attach()
776 ret = request_irq(pcidev->irq, apci1500_interrupt, IRQF_SHARED, in apci1500_auto_attach()
779 dev->irq = pcidev->irq; in apci1500_auto_attach()
Dcb_pcimdda.c138 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in cb_pcimdda_auto_attach() local
145 dev->iobase = pci_resource_start(pcidev, 3); in cb_pcimdda_auto_attach()
Daddi_apci_2200.c74 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in apci2200_auto_attach() local
82 dev->iobase = pci_resource_start(pcidev, 1); in apci2200_auto_attach()
Ddyna_pci10xx.c178 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in dyna_pci10xx_auto_attach() local
190 dev->iobase = pci_resource_start(pcidev, 2); in dyna_pci10xx_auto_attach()
191 devpriv->BADR3 = pci_resource_start(pcidev, 3); in dyna_pci10xx_auto_attach()
Dcb_pcimdas.c360 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in cb_pcimdas_auto_attach() local
373 devpriv->daqio = pci_resource_start(pcidev, 2); in cb_pcimdas_auto_attach()
374 devpriv->BADR3 = pci_resource_start(pcidev, 3); in cb_pcimdas_auto_attach()
375 dev->iobase = pci_resource_start(pcidev, 4); in cb_pcimdas_auto_attach()
Dadl_pci9111.c636 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in pci9111_auto_attach() local
648 dev_private->lcr_io_base = pci_resource_start(pcidev, 1); in pci9111_auto_attach()
649 dev->iobase = pci_resource_start(pcidev, 2); in pci9111_auto_attach()
653 if (pcidev->irq) { in pci9111_auto_attach()
654 ret = request_irq(pcidev->irq, pci9111_interrupt, in pci9111_auto_attach()
657 dev->irq = pcidev->irq; in pci9111_auto_attach()
Dme4000.c321 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in me4000_xilinx_download() local
323 unsigned long xilinx_iobase = pci_resource_start(pcidev, 5); in me4000_xilinx_download()
1107 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in me4000_auto_attach() local
1128 devpriv->plx_regbase = pci_resource_start(pcidev, 1); in me4000_auto_attach()
1129 dev->iobase = pci_resource_start(pcidev, 2); in me4000_auto_attach()
1133 result = comedi_load_firmware(dev, &pcidev->dev, ME4000_FIRMWARE, in me4000_auto_attach()
1140 if (pcidev->irq > 0) { in me4000_auto_attach()
1141 result = request_irq(pcidev->irq, me4000_ai_isr, IRQF_SHARED, in me4000_auto_attach()
1144 dev->irq = pcidev->irq; in me4000_auto_attach()
1217 unsigned long timer_base = pci_resource_start(pcidev, 3); in me4000_auto_attach()
Daddi_apci_16xx.c100 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in apci16xx_auto_attach() local
119 dev->iobase = pci_resource_start(pcidev, 0); in apci16xx_auto_attach()
Dadl_pci8164.c73 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in adl_pci8164_auto_attach() local
80 dev->iobase = pci_resource_start(pcidev, 2); in adl_pci8164_auto_attach()
Dni_6527.c382 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in ni6527_auto_attach() local
403 dev->mmio = pci_ioremap_bar(pcidev, 1); in ni6527_auto_attach()
413 ret = request_irq(pcidev->irq, ni6527_interrupt, IRQF_SHARED, in ni6527_auto_attach()
416 dev->irq = pcidev->irq; in ni6527_auto_attach()
Dadv_pci_dio.c944 static unsigned long pci_dio_override_cardtype(struct pci_dev *pcidev, in pci_dio_override_cardtype() argument
954 if (pci_enable_device(pcidev) < 0) in pci_dio_override_cardtype()
956 if (pci_request_region(pcidev, PCIDIO_MAINREG, "adv_pci_dio") == 0) { in pci_dio_override_cardtype()
963 pci_resource_start(pcidev, PCIDIO_MAINREG) + 53; in pci_dio_override_cardtype()
971 pci_release_region(pcidev, PCIDIO_MAINREG); in pci_dio_override_cardtype()
973 pci_disable_device(pcidev); in pci_dio_override_cardtype()
980 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in pci_dio_auto_attach() local
1000 dev->iobase = pci_resource_start(pcidev, board->main_pci_region); in pci_dio_auto_attach()
Dadl_pci6208.c123 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in pci6208_auto_attach() local
131 dev->iobase = pci_resource_start(pcidev, 2); in pci6208_auto_attach()
Dadv_pci1724.c130 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in adv_pci1724_auto_attach() local
139 dev->iobase = pci_resource_start(pcidev, 2); in adv_pci1724_auto_attach()
Dcb_pcidda.c337 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in cb_pcidda_auto_attach() local
358 dev->iobase = pci_resource_start(pcidev, 2); in cb_pcidda_auto_attach()
359 devpriv->daqio = pci_resource_start(pcidev, 3); in cb_pcidda_auto_attach()
Daddi_apci_3120.c976 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in apci3120_auto_attach() local
997 pci_set_master(pcidev); in apci3120_auto_attach()
999 dev->iobase = pci_resource_start(pcidev, 1); in apci3120_auto_attach()
1000 devpriv->amcc = pci_resource_start(pcidev, 0); in apci3120_auto_attach()
1001 devpriv->addon = pci_resource_start(pcidev, 2); in apci3120_auto_attach()
1005 if (pcidev->irq > 0) { in apci3120_auto_attach()
1006 ret = request_irq(pcidev->irq, apci3120_interrupt, IRQF_SHARED, in apci3120_auto_attach()
1009 dev->irq = pcidev->irq; in apci3120_auto_attach()
Ddt3000.c623 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in dt3000_auto_attach() local
644 dev->mmio = pci_ioremap_bar(pcidev, 0); in dt3000_auto_attach()
648 if (pcidev->irq) { in dt3000_auto_attach()
649 ret = request_irq(pcidev->irq, dt3k_interrupt, IRQF_SHARED, in dt3000_auto_attach()
652 dev->irq = pcidev->irq; in dt3000_auto_attach()
Daddi_apci_3xxx.c765 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in apci3xxx_auto_attach() local
788 dev->iobase = pci_resource_start(pcidev, 2); in apci3xxx_auto_attach()
789 dev->mmio = pci_ioremap_bar(pcidev, 3); in apci3xxx_auto_attach()
791 if (pcidev->irq > 0) { in apci3xxx_auto_attach()
792 ret = request_irq(pcidev->irq, apci3xxx_irq_handler, in apci3xxx_auto_attach()
795 dev->irq = pcidev->irq; in apci3xxx_auto_attach()
Dadv_pci1723.c144 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in pci1723_auto_attach() local
153 dev->iobase = pci_resource_start(pcidev, 2); in pci1723_auto_attach()
Dadl_pci7x3x.c158 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in adl_pci7x3x_auto_attach() local
175 dev->iobase = pci_resource_start(pcidev, 2); in adl_pci7x3x_auto_attach()
Dke_counter.c173 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in ke_counter_auto_attach() local
180 dev->iobase = pci_resource_start(pcidev, 0); in ke_counter_auto_attach()
Dcb_pcidas.c1259 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in cb_pcidas_auto_attach() local
1281 devpriv->amcc = pci_resource_start(pcidev, 0); in cb_pcidas_auto_attach()
1282 devpriv->pcibar1 = pci_resource_start(pcidev, 1); in cb_pcidas_auto_attach()
1283 devpriv->pcibar2 = pci_resource_start(pcidev, 2); in cb_pcidas_auto_attach()
1284 dev->iobase = pci_resource_start(pcidev, 3); in cb_pcidas_auto_attach()
1286 devpriv->pcibar4 = pci_resource_start(pcidev, 4); in cb_pcidas_auto_attach()
1292 ret = request_irq(pcidev->irq, cb_pcidas_interrupt, IRQF_SHARED, in cb_pcidas_auto_attach()
1296 pcidev->irq); in cb_pcidas_auto_attach()
1299 dev->irq = pcidev->irq; in cb_pcidas_auto_attach()
Dcb_pcidas64.c1476 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in alloc_and_init_dma_members() local
1483 pci_alloc_consistent(pcidev, DMA_BUFFER_SIZE, in alloc_and_init_dma_members()
1491 pci_alloc_consistent(pcidev, DMA_BUFFER_SIZE, in alloc_and_init_dma_members()
1500 pci_alloc_consistent(pcidev, sizeof(struct plx_dma_desc) * in alloc_and_init_dma_members()
1508 pci_alloc_consistent(pcidev, in alloc_and_init_dma_members()
1557 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in cb_pcidas64_free_dma() local
1567 pci_free_consistent(pcidev, in cb_pcidas64_free_dma()
1574 pci_free_consistent(pcidev, in cb_pcidas64_free_dma()
1581 pci_free_consistent(pcidev, in cb_pcidas64_free_dma()
1587 pci_free_consistent(pcidev, in cb_pcidas64_free_dma()
[all …]
Dmite.h56 struct pci_dev *pcidev; member
67 struct mite_struct *mite_alloc(struct pci_dev *pcidev);
Dicp_multi.c255 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in icp_multi_auto_attach() local
263 dev->mmio = pci_ioremap_bar(pcidev, 2); in icp_multi_auto_attach()
Dme_daq.c439 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in me_auto_attach() local
460 devpriv->plx_regbase = pci_ioremap_bar(pcidev, 0); in me_auto_attach()
464 dev->mmio = pci_ioremap_bar(pcidev, 2); in me_auto_attach()
Ds626.c2447 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in s626_allocate_dma_buffers() local
2452 addr = pci_alloc_consistent(pcidev, S626_DMABUF_SIZE, &appdma); in s626_allocate_dma_buffers()
2458 addr = pci_alloc_consistent(pcidev, S626_DMABUF_SIZE, &appdma); in s626_allocate_dma_buffers()
2469 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in s626_free_dma_buffers() local
2476 pci_free_consistent(pcidev, S626_DMABUF_SIZE, in s626_free_dma_buffers()
2480 pci_free_consistent(pcidev, S626_DMABUF_SIZE, in s626_free_dma_buffers()
2737 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in s626_auto_attach() local
2750 dev->mmio = pci_ioremap_bar(pcidev, 0); in s626_auto_attach()
2766 if (pcidev->irq) { in s626_auto_attach()
2767 ret = request_irq(pcidev->irq, s626_irq_handler, IRQF_SHARED, in s626_auto_attach()
[all …]
Dadv_pci1710.c848 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in pci1710_auto_attach() local
868 dev->iobase = pci_resource_start(pcidev, 2); in pci1710_auto_attach()
891 if (board->has_irq && pcidev->irq) { in pci1710_auto_attach()
892 ret = request_irq(pcidev->irq, interrupt_service_pci1710, in pci1710_auto_attach()
895 dev->irq = pcidev->irq; in pci1710_auto_attach()
Dni_pcidio.c871 ret = comedi_load_firmware(dev, &devpriv->mite->pcidev->dev, in pci_6534_upload_firmware()
895 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in nidio_auto_attach() local
919 devpriv->mite = mite_alloc(pcidev); in nidio_auto_attach()
966 irq = pcidev->irq; in nidio_auto_attach()
Dni_660x.c1044 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in ni_660x_auto_attach() local
1068 devpriv->mite = mite_alloc(pcidev); in ni_660x_auto_attach()
1156 ret = request_irq(pcidev->irq, ni_660x_interrupt, IRQF_SHARED, in ni_660x_auto_attach()
1162 dev->irq = pcidev->irq; in ni_660x_auto_attach()
Dni_pcimio.c1132 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in pcimio_auto_attach() local
1154 devpriv->mite = mite_alloc(pcidev); in pcimio_auto_attach()
1204 irq = pcidev->irq; in pcimio_auto_attach()
Djr3_pci.c682 struct pci_dev *pcidev = comedi_to_pci_dev(dev); in jr3_pci_auto_attach() local
712 devpriv->iobase = pci_ioremap_bar(pcidev, 0); in jr3_pci_auto_attach()
/linux-4.4.14/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->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 …]
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-4.4.14/drivers/staging/rdma/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_zalloc_consistent(c2dev->pcidev, c2_port->mem_size, in c2_up()
683 pci_free_consistent(c2dev->pcidev, c2_port->mem_size, c2_port->mem, in c2_up()
724 pci_free_consistent(c2dev->pcidev, c2_port->mem_size, c2_port->mem, in c2_down()
780 pci_map_single(c2dev->pcidev, skb->data, maplen, PCI_DMA_TODEVICE); in c2_xmit_frame()
803 mapaddr = skb_frag_dma_map(&c2dev->pcidev->dev, frag, in c2_xmit_frame()
890 SET_NETDEV_DEV(netdev, &c2dev->pcidev->dev); in c2_devinit()
[all …]
Dc2_alloc.c46 new_head = dma_alloc_coherent(&c2dev->pcidev->dev, PAGE_SIZE, in c2_alloc_mqsp_chunk()
83 dma_free_coherent(&c2dev->pcidev->dev, PAGE_SIZE, root, in c2_free_mqsp_pool()
Dc2_rnic.c520 q1_pages = dma_alloc_coherent(&c2dev->pcidev->dev, qsize * msgsize, in c2_rnic_init()
541 q2_pages = dma_alloc_coherent(&c2dev->pcidev->dev, qsize * msgsize, in c2_rnic_init()
597 dma_free_coherent(&c2dev->pcidev->dev, in c2_rnic_init()
601 dma_free_coherent(&c2dev->pcidev->dev, in c2_rnic_init()
637 dma_free_coherent(&c2dev->pcidev->dev, in c2_rnic_term()
643 dma_free_coherent(&c2dev->pcidev->dev, in c2_rnic_term()
Dc2_cq.c259 dma_free_coherent(&c2dev->pcidev->dev, mq->q_size * mq->msg_size, in c2_free_cq_buf()
271 pool_start = dma_alloc_coherent(&c2dev->pcidev->dev, q_size * msg_size, in c2_alloc_cq_buf()
Dc2_provider.c758 SET_NETDEV_DEV(netdev, &c2dev->pcidev->dev); in c2_pseudo_netdev_init()
830 dev->ibdev.dma_device = &dev->pcidev->dev; in c2_register_device()
Dc2.h292 struct pci_dev *pcidev; member
/linux-4.4.14/drivers/mfd/
Drtsx_pcr.c1155 static int rtsx_pci_probe(struct pci_dev *pcidev, in rtsx_pci_probe() argument
1163 dev_dbg(&(pcidev->dev), in rtsx_pci_probe()
1165 pci_name(pcidev), (int)pcidev->vendor, (int)pcidev->device, in rtsx_pci_probe()
1166 (int)pcidev->revision); in rtsx_pci_probe()
1168 ret = pci_set_dma_mask(pcidev, DMA_BIT_MASK(32)); in rtsx_pci_probe()
1172 ret = pci_enable_device(pcidev); in rtsx_pci_probe()
1176 ret = pci_request_regions(pcidev, DRV_NAME_RTSX_PCI); in rtsx_pci_probe()
1203 pcr->pci = pcidev; in rtsx_pci_probe()
1204 dev_set_drvdata(&pcidev->dev, handle); in rtsx_pci_probe()
1208 len = pci_resource_len(pcidev, bar); in rtsx_pci_probe()
[all …]
/linux-4.4.14/drivers/mmc/host/
Dvia-sdmmc.c1085 static int 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-4.4.14/drivers/scsi/
Dips.c687 IPS_PRINTK(KERN_WARNING, ha->pcidev, "Flushing Cache.\n"); in ips_release()
691 IPS_PRINTK(KERN_WARNING, ha->pcidev, "Incomplete Flush.\n"); in ips_release()
693 IPS_PRINTK(KERN_WARNING, ha->pcidev, "Flushing Complete.\n"); in ips_release()
702 free_irq(ha->pcidev->irq, ha); in ips_release()
756 IPS_PRINTK(KERN_WARNING, ha->pcidev, "Flushing Cache.\n"); in ips_halt()
761 IPS_PRINTK(KERN_WARNING, ha->pcidev, in ips_halt()
764 IPS_PRINTK(KERN_WARNING, ha->pcidev, in ips_halt()
914 IPS_PRINTK(KERN_NOTICE, ha->pcidev, in __ips_eh_reset()
929 IPS_PRINTK(KERN_NOTICE, ha->pcidev, "Resetting controller.\n"); in __ips_eh_reset()
935 IPS_PRINTK(KERN_NOTICE, ha->pcidev, in __ips_eh_reset()
[all …]
Dhptiop.c598 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()
1201 hba->u.mv.internal_req = dma_alloc_coherent(&hba->pcidev->dev, in hptiop_internal_memalloc_mv()
1230 p = dma_alloc_coherent(&hba->pcidev->dev, in hptiop_internal_memalloc_mvfrey()
1269 dma_free_coherent(&hba->pcidev->dev, 0x800, in hptiop_internal_memfree_mv()
1279 dma_free_coherent(&hba->pcidev->dev, in hptiop_internal_memfree_mvfrey()
[all …]
Dips.h62 #define IPS_IS_TROMBONE(ha) (((ha->pcidev->device == IPS_DEVICEID_COPPERHEAD) && \
63 (ha->pcidev->revision >= IPS_REVID_TROMBONE32) && \
64 (ha->pcidev->revision <= IPS_REVID_TROMBONE64)) ? 1 : 0)
65 #define IPS_IS_CLARINET(ha) (((ha->pcidev->device == IPS_DEVICEID_COPPERHEAD) && \
66 (ha->pcidev->revision >= IPS_REVID_CLARINETP1) && \
67 (ha->pcidev->revision <= IPS_REVID_CLARINETP3)) ? 1 : 0)
68 #define IPS_IS_MORPHEUS(ha) (ha->pcidev->device == IPS_DEVICEID_MORPHEUS)
69 #define IPS_IS_MARCO(ha) (ha->pcidev->device == IPS_DEVICEID_MARCO)
82 #define IPS_PRINTK(level, pcidev, format, arg...) \ argument
83 dev_printk(level , &((pcidev)->dev) , format , ## arg)
[all …]
Dhptiop.h309 struct pci_dev *pcidev; member
Dmegaraid.h512 u16 pcidev; member
/linux-4.4.14/drivers/video/fbdev/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 …]
Dmatroxfb_base.c235 if (request_irq(minfo->pcidev->irq, matrox_irq, in matroxfb_enable_irq()
264 free_irq(minfo->pcidev->irq, minfo); in matroxfb_disable_irq()
1093 sprintf(r.bus_info, "PCI:%s", pci_name(minfo->pcidev)); in matroxfb_ioctl()
1679 ctrlptr_phys = pci_resource_start(minfo->pcidev, 1); in initMatrox2()
1680 video_base_phys = pci_resource_start(minfo->pcidev, 0); in initMatrox2()
1683 ctrlptr_phys = pci_resource_start(minfo->pcidev, 0); in initMatrox2()
1684 video_base_phys = pci_resource_start(minfo->pcidev, 1); in initMatrox2()
1730 pci_read_config_dword(minfo->pcidev, PCI_OPTION_REG, &mga_option); in initMatrox2()
1731 pci_read_config_dword(minfo->pcidev, PCI_COMMAND, &cmd); in initMatrox2()
1743 pci_write_config_dword(minfo->pcidev, PCI_COMMAND, cmd); in initMatrox2()
[all …]
Dmatroxfb_Ti3026.c515 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, minfo->hw.MXoptionReg); in ti3026_setMCLK()
575 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, hw->MXoptionReg); in Ti3026_restore()
694 minfo->milleniumII = (minfo->pcidev->device != PCI_DEVICE_ID_MATROX_MIL); in Ti3026_preinit()
715 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, hw->MXoptionReg); in Ti3026_preinit()
Dg450_pll.c401 pci_read_config_dword(minfo->pcidev, PCI_OPTION_REG, &opt); in __g450_setclk()
403 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, opt | 0x20); in __g450_setclk()
Di2c-matroxfb.c116 b->adapter.dev.parent = &minfo->pcidev->dev; in i2c_bus_reg()
Dmatroxfb_base.h355 struct pci_dev* pcidev; member
/linux-4.4.14/drivers/char/agp/
Dintel-gtt.c63 struct pci_dev *pcidev; /* device one */ member
112 if (!pci_map_sg(intel_private.pcidev, in intel_gtt_map_memory()
128 pci_unmap_sg(intel_private.pcidev, sg_list, in intel_gtt_unmap_memory()
183 reg_addr = pci_resource_start(intel_private.pcidev, I810_MMADR_BAR); in i810_setup()
196 dev_info(&intel_private.pcidev->dev, in i810_setup()
304 dma_addr = pci_map_page(intel_private.pcidev, page, 0, in intel_gtt_setup_scratch_page()
306 if (pci_dma_mapping_error(intel_private.pcidev, dma_addr)) in intel_gtt_setup_scratch_page()
502 dev_info(&intel_private.pcidev->dev, in i965_gtt_total_entries()
549 aperture_size = pci_resource_len(intel_private.pcidev, 2); in intel_gtt_mappable_entries()
558 pci_unmap_page(intel_private.pcidev, intel_private.scratch_page_dma, in intel_gtt_teardown_scratch_page()
[all …]
/linux-4.4.14/drivers/staging/slicoss/
Dslicoss.c410 ret = request_firmware(&fw, file, &adapter->pcidev->dev); in slic_card_download_gbrcv()
412 dev_err(&adapter->pcidev->dev, in slic_card_download_gbrcv()
488 ret = request_firmware(&fw, file, &adapter->pcidev->dev); in slic_card_download()
490 dev_err(&adapter->pcidev->dev, in slic_card_download()
1191 pci_free_consistent(adapter->pcidev, PAGE_SIZE, in slic_rspqueue_free()
1214 rspq->vaddr[i] = pci_zalloc_consistent(adapter->pcidev, in slic_rspqueue_init()
1218 dev_err(&adapter->pcidev->dev, in slic_rspqueue_init()
1272 pci_free_consistent(adapter->pcidev, in slic_cmdqmem_free()
1288 pageaddr = pci_alloc_consistent(adapter->pcidev, in slic_cmdqmem_addpage()
1537 pci_map_single(adapter->pcidev, in slic_rcvqueue_fill()
[all …]
Dslic.h401 struct pci_dev *pcidev; member
/linux-4.4.14/drivers/scsi/bnx2fc/
Dbnx2fc_tgt.c675 tgt->sq = dma_alloc_coherent(&hba->pcidev->dev, tgt->sq_mem_size, in bnx2fc_alloc_session_resc()
689 tgt->cq = dma_alloc_coherent(&hba->pcidev->dev, tgt->cq_mem_size, in bnx2fc_alloc_session_resc()
703 tgt->rq = dma_alloc_coherent(&hba->pcidev->dev, tgt->rq_mem_size, in bnx2fc_alloc_session_resc()
716 tgt->rq_pbl = dma_alloc_coherent(&hba->pcidev->dev, tgt->rq_pbl_size, in bnx2fc_alloc_session_resc()
742 tgt->xferq = dma_alloc_coherent(&hba->pcidev->dev, tgt->xferq_mem_size, in bnx2fc_alloc_session_resc()
756 tgt->confq = dma_alloc_coherent(&hba->pcidev->dev, tgt->confq_mem_size, in bnx2fc_alloc_session_resc()
770 tgt->confq_pbl = dma_alloc_coherent(&hba->pcidev->dev, in bnx2fc_alloc_session_resc()
795 tgt->conn_db = dma_alloc_coherent(&hba->pcidev->dev, in bnx2fc_alloc_session_resc()
811 tgt->lcq = dma_alloc_coherent(&hba->pcidev->dev, tgt->lcq_mem_size, in bnx2fc_alloc_session_resc()
850 dma_free_coherent(&hba->pcidev->dev, tgt->lcq_mem_size, in bnx2fc_free_session_resc()
[all …]
Dbnx2fc_hwi.c1343 (u8)hba->pcidev->bus->number); in bnx2fc_indicate_kcqe()
1423 reg_base = pci_resource_start(hba->pcidev, in bnx2fc_map_doorbell()
1858 hba->task_ctx_bd_tbl = dma_alloc_coherent(&hba->pcidev->dev, in bnx2fc_setup_task_ctx()
1896 hba->task_ctx[i] = dma_alloc_coherent(&hba->pcidev->dev, in bnx2fc_setup_task_ctx()
1917 dma_free_coherent(&hba->pcidev->dev, PAGE_SIZE, in bnx2fc_setup_task_ctx()
1929 dma_free_coherent(&hba->pcidev->dev, PAGE_SIZE, in bnx2fc_setup_task_ctx()
1942 dma_free_coherent(&hba->pcidev->dev, PAGE_SIZE, in bnx2fc_free_task_ctx()
1952 dma_free_coherent(&hba->pcidev->dev, PAGE_SIZE, in bnx2fc_free_task_ctx()
1984 dma_free_coherent(&hba->pcidev->dev, in bnx2fc_free_hash_table()
1996 dma_free_coherent(&hba->pcidev->dev, PAGE_SIZE, in bnx2fc_free_hash_table()
[all …]
Dbnx2fc_io.c305 bdt_info->bd_tbl = dma_alloc_coherent(&hba->pcidev->dev, in bnx2fc_cmd_mgr_alloc()
343 dma_free_coherent(&hba->pcidev->dev, bd_tbl_sz, in bnx2fc_cmd_mgr_free()
543 dma_free_coherent(&hba->pcidev->dev, sz, in bnx2fc_free_mp_resc()
549 dma_free_coherent(&hba->pcidev->dev, sz, in bnx2fc_free_mp_resc()
555 dma_free_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2fc_free_mp_resc()
561 dma_free_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2fc_free_mp_resc()
587 mp_req->req_buf = dma_alloc_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2fc_init_mp_req()
596 mp_req->resp_buf = dma_alloc_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2fc_init_mp_req()
609 mp_req->mp_req_bd = dma_alloc_coherent(&hba->pcidev->dev, sz, in bnx2fc_init_mp_req()
617 mp_req->mp_resp_bd = dma_alloc_coherent(&hba->pcidev->dev, sz, in bnx2fc_init_mp_req()
[all …]
Dbnx2fc_fcoe.c1670 pdev = hba->pcidev = cnic->pcidev; in bnx2fc_bind_pcidev()
1671 if (!hba->pcidev) in bnx2fc_bind_pcidev()
1707 pci_dev_get(hba->pcidev); in bnx2fc_bind_pcidev()
1713 if (hba->pcidev) { in bnx2fc_unbind_pcidev()
1715 pci_dev_put(hba->pcidev); in bnx2fc_unbind_pcidev()
1717 hba->pcidev = NULL; in bnx2fc_unbind_pcidev()
Dbnx2fc.h187 struct pci_dev *pcidev; member
/linux-4.4.14/drivers/hwmon/
Di5k_amb.c431 struct pci_dev *pcidev; in i5k_find_amb_registers() local
436 pcidev = pci_get_device(PCI_VENDOR_ID_INTEL, in i5k_find_amb_registers()
439 if (!pcidev) in i5k_find_amb_registers()
442 if (pci_read_config_dword(pcidev, I5K_REG_AMB_BASE_ADDR, &val32)) in i5k_find_amb_registers()
446 if (pci_read_config_dword(pcidev, I5K_REG_AMB_LEN_ADDR, &val32)) in i5k_find_amb_registers()
452 dev_err(&pcidev->dev, "AMB region too small!\n"); in i5k_find_amb_registers()
458 pci_dev_put(pcidev); in i5k_find_amb_registers()
464 struct pci_dev *pcidev; in i5k_channel_probe() local
469 pcidev = pci_get_device(PCI_VENDOR_ID_INTEL, dev_id, NULL); in i5k_channel_probe()
470 if (!pcidev) in i5k_channel_probe()
[all …]
/linux-4.4.14/drivers/scsi/bnx2i/
Dbnx2i_iscsi.c450 io->bd_tbl = dma_alloc_coherent(&hba->pcidev->dev, in bnx2i_alloc_bdt()
478 dma_free_coherent(&hba->pcidev->dev, in bnx2i_destroy_cmd_pool()
530 hba->mp_bd_tbl = dma_alloc_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2i_setup_mp_bdt()
538 hba->dummy_buffer = dma_alloc_coherent(&hba->pcidev->dev, in bnx2i_setup_mp_bdt()
543 dma_free_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2i_setup_mp_bdt()
571 dma_free_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2i_free_mp_bdt()
576 dma_free_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2i_free_mp_bdt()
794 shost->dma_boundary = cnic->pcidev->dma_mask; in bnx2i_alloc_hba()
805 hba->pcidev = cnic->pcidev; in bnx2i_alloc_hba()
806 pci_dev_get(hba->pcidev); in bnx2i_alloc_hba()
[all …]
Dbnx2i_hwi.c1076 dma_alloc_coherent(&hba->pcidev->dev, ep->qp.sq_pgtbl_size, in bnx2i_alloc_qp_resc()
1086 dma_alloc_coherent(&hba->pcidev->dev, ep->qp.sq_mem_size, in bnx2i_alloc_qp_resc()
1113 dma_alloc_coherent(&hba->pcidev->dev, ep->qp.cq_pgtbl_size, in bnx2i_alloc_qp_resc()
1123 dma_alloc_coherent(&hba->pcidev->dev, ep->qp.cq_mem_size, in bnx2i_alloc_qp_resc()
1156 dma_alloc_coherent(&hba->pcidev->dev, ep->qp.rq_pgtbl_size, in bnx2i_alloc_qp_resc()
1166 dma_alloc_coherent(&hba->pcidev->dev, ep->qp.rq_mem_size, in bnx2i_alloc_qp_resc()
1208 dma_free_coherent(&hba->pcidev->dev, ep->qp.sq_pgtbl_size, in bnx2i_free_qp_resc()
1214 dma_free_coherent(&hba->pcidev->dev, ep->qp.sq_mem_size, in bnx2i_free_qp_resc()
1222 dma_free_coherent(&hba->pcidev->dev, ep->qp.rq_pgtbl_size, in bnx2i_free_qp_resc()
1228 dma_free_coherent(&hba->pcidev->dev, ep->qp.rq_mem_size, in bnx2i_free_qp_resc()
[all …]
Dbnx2i.h402 struct pci_dev *pcidev; member
/linux-4.4.14/arch/powerpc/kernel/
Deeh_cache.c54 struct pci_dev *pcidev; member
119 piar->addr_lo, piar->addr_hi, pci_name(piar->pcidev)); in eeh_addr_cache_print()
144 if (dev != piar->pcidev || in eeh_addr_cache_insert()
158 piar->pcidev = dev; in eeh_addr_cache_insert()
244 if (piar->pcidev == dev) { in __eeh_addr_cache_rmv_dev()
/linux-4.4.14/drivers/net/irda/
Dvia-ircc.c104 static int via_init_one(struct pci_dev *pcidev, const struct pci_device_id *id);
156 static int via_init_one(struct pci_dev *pcidev, const struct pci_device_id *id) in via_init_one() argument
165 rc = pci_enable_device (pcidev); in via_init_one()
204 pci_read_config_byte(pcidev,0x40,&bTmp); in via_init_one()
205 pci_write_config_byte(pcidev,0x40,((bTmp | 0x08) & 0xfe)); in via_init_one()
206 pci_read_config_byte(pcidev,0x42,&bTmp); in via_init_one()
207 pci_write_config_byte(pcidev,0x42,(bTmp | 0xf0)); in via_init_one()
208 pci_write_config_byte(pcidev,0x5a,0xc0); in via_init_one()
210 rc = via_ircc_open(pcidev, &info, 0x3076); in via_init_one()
216 pci_read_config_byte(pcidev,0x67,&bTmp);//check if BIOS Enable Fir in via_init_one()
[all …]
/linux-4.4.14/drivers/staging/rdma/ipath/
Dipath_user_sdma.c207 dma_addr = dma_map_page(&dd->pcidev->dev, page, 0, len, in ipath_user_sdma_coalesce()
209 if (dma_mapping_error(&dd->pcidev->dev, dma_addr)) { in ipath_user_sdma_coalesce()
298 dma_map_page(&dd->pcidev->dev, in ipath_user_sdma_pin_pages()
302 if (dma_mapping_error(&dd->pcidev->dev, dma_addr)) { in ipath_user_sdma_pin_pages()
344 ipath_user_sdma_free_pkt_frag(&dd->pcidev->dev, pq, pkt, idx); in ipath_user_sdma_pin_pkt()
507 dma_addr = dma_map_page(&dd->pcidev->dev, in ipath_user_sdma_queue_pkts()
509 if (dma_mapping_error(&dd->pcidev->dev, dma_addr)) { in ipath_user_sdma_queue_pkts()
539 dma_unmap_page(&dd->pcidev->dev, dma_addr, len, DMA_TO_DEVICE); in ipath_user_sdma_queue_pkts()
549 ipath_user_sdma_free_pkt_list(&dd->pcidev->dev, pq, list); in ipath_user_sdma_queue_pkts()
590 ipath_user_sdma_free_pkt_list(&dd->pcidev->dev, pq, &free_list); in ipath_user_sdma_queue_clean()
[all …]
Dipath_init_chip.c130 ipath_map_single(dd->pcidev, in create_port0_egr()
199 dev_info(&dd->pcidev->dev, "Could not initialize SerDes, " in bringup_link()
373 dev_info(&dd->pcidev->dev, "tidcnt was %u before " in init_chip_reset()
378 dev_info(&dd->pcidev->dev, "tidbase was %u before " in init_chip_reset()
383 dev_info(&dd->pcidev->dev, "egrcnt was %u before " in init_chip_reset()
388 dev_info(&dd->pcidev->dev, "egrbase was %u before " in init_chip_reset()
400 &dd->pcidev->dev, PAGE_SIZE, &dd->ipath_pioavailregs_phys, in init_pioavailregs()
684 dev_err(&dd->pcidev->dev, "No interrupts detected, " in verify_interrupt()
756 dev_info(&dd->pcidev->dev, "Allocating %d PIO bufs of " in ipath_init_chip()
843 dev_info(&dd->pcidev->dev, "Failed to bringup IB link\n"); in ipath_init_chip()
[all …]
Dipath_sdma.c89 dma_unmap_single(&dd->pcidev->dev, addr, len, DMA_TO_DEVICE); in unmap_desc()
380 dd->ipath_sdma_descq = dma_alloc_coherent(&dd->pcidev->dev, in alloc_sdma()
394 dd->ipath_sdma_head_dma = dma_alloc_coherent(&dd->pcidev->dev, in alloc_sdma()
411 dma_free_coherent(&dd->pcidev->dev, SDMA_DESCQ_SZ, in alloc_sdma()
578 dma_free_coherent(&dd->pcidev->dev, PAGE_SIZE, in teardown_sdma()
582 dma_free_coherent(&dd->pcidev->dev, SDMA_DESCQ_SZ, in teardown_sdma()
700 addr = dma_map_single(&dd->pcidev->dev, tx->txreq.map_addr, in ipath_sdma_verbs_send()
702 if (dma_mapping_error(&dd->pcidev->dev, addr)) in ipath_sdma_verbs_send()
741 addr = dma_map_single(&dd->pcidev->dev, sge->vaddr, dw << 2, in ipath_sdma_verbs_send()
743 if (dma_mapping_error(&dd->pcidev->dev, addr)) in ipath_sdma_verbs_send()
Dipath_wc_x86_64.c56 const unsigned long addr = pci_resource_start(dd->pcidev, 0); in ipath_enable_wc()
57 const size_t len = pci_resource_len(dd->pcidev, 0); in ipath_enable_wc()
Dipath_driver.c221 dd->pcidev = pdev; in ipath_alloc_devdata()
322 dev_info(&dd->pcidev->dev, in ipath_verify_pioperf()
335 dev_info(&dd->pcidev->dev, in ipath_verify_pioperf()
664 dev_info(&dd->pcidev->dev, "%lu special trigger hits\n", in cleanup_device()
668 dma_free_coherent(&dd->pcidev->dev, PAGE_SIZE, in cleanup_device()
674 dma_free_coherent(&dd->pcidev->dev, in cleanup_device()
693 pci_unmap_page(dd->pcidev, tmpd[i], in cleanup_device()
1460 dev_info(&dd->pcidev->dev, in ipath_setrcvhdrsize()
1781 &dd->pcidev->dev, amt, &pd->port_rcvhdrq_phys, in ipath_create_rcvhdrq()
1794 &dd->pcidev->dev, PAGE_SIZE, &phys_hdrqtail, in ipath_create_rcvhdrq()
[all …]
Dipath_iba6110.c427 if (pci_read_config_word(dd->pcidev, in hwerr_crcbits()
430 dev_info(&dd->pcidev->dev, "Couldn't read " in hwerr_crcbits()
439 if (pci_read_config_word(dd->pcidev, in hwerr_crcbits()
442 dev_info(&dd->pcidev->dev, "Couldn't read " in hwerr_crcbits()
485 dev_info(&dd->pcidev->dev, in ipath_ht_txe_recover()
550 dev_info(&dd->pcidev->dev, "Hardware error: hwerr=0x%llx " in ipath_ht_handle_hwerrors()
768 if (pci_read_config_byte(dd->pcidev, link_off, &linkerr)) in ipath_check_htlink()
769 dev_info(&dd->pcidev->dev, "Couldn't read " in ipath_check_htlink()
779 if (pci_write_config_byte(dd->pcidev, link_off, in ipath_check_htlink()
783 if (pci_read_config_byte(dd->pcidev, link_off, in ipath_check_htlink()
[all …]
Dipath_file_ops.c343 dev_info(&dd->pcidev->dev, "Process tried to allocate %u " in ipath_tid_update()
383 dev_info(&dd->pcidev->dev, in ipath_tid_update()
414 dd->pcidev, pagep[i], 0, PAGE_SIZE, in ipath_tid_update()
456 pci_unmap_page(dd->pcidev, in ipath_tid_update()
576 pci_unmap_page(dd->pcidev, in ipath_tid_free()
936 &dd->pcidev->dev, size, &pd->port_rcvegrbuf_phys[e], in ipath_create_user_egr()
969 dma_free_coherent(&dd->pcidev->dev, size, in ipath_create_user_egr()
994 dev_info(&dd->pcidev->dev, in ipath_mmap_mem()
1003 dev_info(&dd->pcidev->dev, in ipath_mmap_mem()
1017 dev_info(&dd->pcidev->dev, "%s port%u mmap of %lx, %x " in ipath_mmap_mem()
[all …]
Dipath_diag.c309 ipath_expose_reset(&dd->pcidev->dev); in ipath_diag_open()
425 dev_info(&dd->pcidev->dev, "Unable to allocate tmp buffer, " in ipath_diagpkt_write()
Dipath_kernel.h491 struct pci_dev *pcidev; member
1327 if (__dd->pcidev) \
1328 dev_err(&__dd->pcidev->dev, "%s: " fmt, \
Dipath_intr.c317 dev_info(&dd->pcidev->dev, "Link state changed from %s " in handle_e_ibstatuschanged()
939 if (dd->pcidev && dd->ipath_irq) { in ipath_bad_intr()
1131 dev_info(&dd->pcidev->dev, "error interrupt (%Lx), " in ipath_intr()
Dipath_stats.c231 dev_info(&dd->pcidev->dev, in ipath_chk_errormask()
Dipath_eeprom.c771 dev_info(&dd->pcidev->dev, "Bad I2C flash checksum: " in ipath_get_eeprom_info()
786 dev_info(&dd->pcidev->dev, "Warning, GUID %llx is " in ipath_get_eeprom_info()
/linux-4.4.14/drivers/xen/xen-pciback/
Dvpci.c229 static int __xen_pcibk_get_pcifront_dev(struct pci_dev *pcidev, in __xen_pcibk_get_pcifront_dev() argument
245 if (dev && dev->bus->number == pcidev->bus->number in __xen_pcibk_get_pcifront_dev()
247 pci_domain_nr(pcidev->bus) in __xen_pcibk_get_pcifront_dev()
248 && dev->devfn == pcidev->devfn) { in __xen_pcibk_get_pcifront_dev()
253 PCI_FUNC(pcidev->devfn)); in __xen_pcibk_get_pcifront_dev()
Dpassthrough.c176 static int __xen_pcibk_get_pcifront_dev(struct pci_dev *pcidev, in __xen_pcibk_get_pcifront_dev() argument
181 *domain = pci_domain_nr(pcidev->bus); in __xen_pcibk_get_pcifront_dev()
182 *bus = pcidev->bus->number; in __xen_pcibk_get_pcifront_dev()
183 *devfn = pcidev->devfn; in __xen_pcibk_get_pcifront_dev()
Dpciback.h99 int (*find)(struct pci_dev *pcidev, struct xen_pcibk_device *pdev,
148 static inline int xen_pcibk_get_pcifront_dev(struct pci_dev *pcidev, in xen_pcibk_get_pcifront_dev() argument
155 return xen_pcibk_backend->find(pcidev, pdev, domain, bus, in xen_pcibk_get_pcifront_dev()
/linux-4.4.14/drivers/net/ethernet/brocade/bna/
Dbfa_ioc.h169 struct bfa_pcidev pcidev; member
228 #define bfa_ioc_pcifn(__ioc) ((__ioc)->pcidev.pci_func)
229 #define bfa_ioc_devid(__ioc) ((__ioc)->pcidev.device_id)
230 #define bfa_ioc_bar0(__ioc) ((__ioc)->pcidev.pci_bar_kva)
262 ((__ioc)->ioc_hwif->ioc_pll_init((__ioc)->pcidev.pci_bar_kva, \
278 void bfa_nw_ioc_pci_init(struct bfa_ioc *ioc, struct bfa_pcidev *pcidev,
Dbnad.c69 ((_bnad)->pcidev->irq))
130 dma_unmap_single(&bnad->pcidev->dev, in bnad_tx_buff_unmap()
145 dma_unmap_page(&bnad->pcidev->dev, in bnad_tx_buff_unmap()
323 dma_unmap_page(&bnad->pcidev->dev, in bnad_rxq_cleanup_page()
338 dma_unmap_single(&bnad->pcidev->dev, in bnad_rxq_cleanup_skb()
401 dma_addr = dma_map_page(&bnad->pcidev->dev, page, page_offset, in bnad_rxq_refill_page()
403 if (dma_mapping_error(&bnad->pcidev->dev, dma_addr)) { in bnad_rxq_refill_page()
464 dma_addr = dma_map_single(&bnad->pcidev->dev, skb->data, in bnad_rxq_refill_skb()
466 if (dma_mapping_error(&bnad->pcidev->dev, dma_addr)) { in bnad_rxq_refill_skb()
564 dma_unmap_page(&bnad->pcidev->dev, in bnad_cq_setup_skb_frags()
[all …]
Dbnad_ethtool.c317 strlcpy(drvinfo->bus_info, pci_name(bnad->pcidev), in bnad_get_drvinfo()
1006 eeprom->magic = bnad->pcidev->vendor | (bnad->pcidev->device << 16); in bnad_get_eeprom()
1046 if (eeprom->magic != (bnad->pcidev->vendor | in bnad_set_eeprom()
1047 (bnad->pcidev->device << 16))) in bnad_set_eeprom()
1085 ret = request_firmware(&fw, eflash->data, &bnad->pcidev->dev); in bnad_flash_device()
Dbnad.h268 ((_bnad)->pcidev->device == BFA_PCI_DEVICE_ID_CT2)
325 struct pci_dev *pcidev; member
Dbfa_ioc_ct.c379 void __iomem *rb = ioc->pcidev.pci_bar_kva; in bfa_ioc_ct_map_port()
394 void __iomem *rb = ioc->pcidev.pci_bar_kva; in bfa_ioc_ct2_map_port()
405 void __iomem *rb = ioc->pcidev.pci_bar_kva; in bfa_ioc_ct_isr_mode_set()
455 void __iomem *rb = ioc->pcidev.pci_bar_kva; in bfa_nw_ioc_ct2_poweron()
Dbna_enet.c1710 bfa_nw_ioc_pci_init(&ioceth->ioc, &bna->pcidev, BFI_PCIFN_CLASS_ETH); in bna_ioceth_init()
1975 struct bfa_pcidev *pcidev, struct bna_res_info *res_info) in bna_init() argument
1978 bna->pcidev = *pcidev; in bna_init()
1987 bna_reg_addr_init(bna, &bna->pcidev); in bna_init()
Dbfa_ioc.c1755 return bfa_flash_raw_read(ioc->pcidev.pci_bar_kva, in bfa_nw_ioc_flash_img_get_chnk()
2515 bfa_nw_ioc_pci_init(struct bfa_ioc *ioc, struct bfa_pcidev *pcidev, in bfa_nw_ioc_pci_init() argument
2519 ioc->pcidev = *pcidev; in bfa_nw_ioc_pci_init()
2527 switch (pcidev->device_id) { in bfa_nw_ioc_pci_init()
2539 pcidev->ssid == BFA_PCI_CT2_SSID_FC) { in bfa_nw_ioc_pci_init()
2547 if (pcidev->ssid == BFA_PCI_CT2_SSID_FCoE) { in bfa_nw_ioc_pci_init()
Dbna.h269 struct bfa_pcidev *pcidev,
Dbna_types.h911 struct bfa_pcidev pcidev; member
Dbnad_debugfs.c517 snprintf(name, sizeof(name), "pci_dev:%s", pci_name(bnad->pcidev)); in bnad_debugfs_init()
Dbna_tx_rx.c2112 rx->bna->pcidev.pci_bar_kva in bna_bfi_rx_enet_start_rsp()
2116 rx->bna->pcidev.pci_bar_kva in bna_bfi_rx_enet_start_rsp()
2121 rx->bna->pcidev.pci_bar_kva in bna_bfi_rx_enet_start_rsp()
3293 tx->bna->pcidev.pci_bar_kva in bna_bfi_tx_enet_start_rsp()
3296 tx->bna->pcidev.pci_bar_kva in bna_bfi_tx_enet_start_rsp()
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_logmsg.h46 dev_printk(level, &((vport)->phba->pcidev)->dev, "%d:(%d):" \
56 dev_printk(level, &((phba)->pcidev)->dev, "%d:" \
Dlpfc_mem.c95 phba->pcidev, in lpfc_mem_alloc()
102 phba->pcidev, phba->cfg_sg_dma_buf_size, in lpfc_mem_alloc()
109 phba->lpfc_mbuf_pool = pci_pool_create("lpfc_mbuf_pool", phba->pcidev, in lpfc_mem_alloc()
148 phba->pcidev, in lpfc_mem_alloc()
154 phba->pcidev, in lpfc_mem_alloc()
161 phba->pcidev, LPFC_BPL_SIZE, align, 0); in lpfc_mem_alloc()
Dlpfc_init.c125 if (lpfc_is_LC_HBA(phba->pcidev->device)) { in lpfc_config_port_prep()
215 if (lpfc_is_LC_HBA(phba->pcidev->device)) in lpfc_config_port_prep()
1363 if (pci_channel_offline(phba->pcidev)) { in lpfc_handle_deferred_eratt()
1462 if (pci_channel_offline(phba->pcidev)) { in lpfc_handle_eratt_s3()
1641 if (pci_channel_offline(phba->pcidev)) in lpfc_handle_eratt_s4()
2026 uint16_t dev_id = phba->pcidev->device; in lpfc_get_hba_model_desc()
3288 if (dev != &phba->pcidev->dev) { in lpfc_create_port()
3327 if (dev != &phba->pcidev->dev) { in lpfc_create_port()
3356 error = scsi_add_host_with_dma(shost, dev, &phba->pcidev->dev); in lpfc_create_port()
4791 if (!phba->pcidev) in lpfc_enable_pci_dev()
[all …]
Dlpfc_bsg.c869 struct pci_dev *pcidev; in diag_cmd_data_free() local
877 pcidev = phba->pcidev; in diag_cmd_data_free()
883 dma_free_coherent(&pcidev->dev, in diag_cmd_data_free()
2679 struct pci_dev *pcidev = phba->pcidev; in lpfc_bsg_dma_page_alloc() local
2689 dmabuf->virt = dma_zalloc_coherent(&pcidev->dev, BSG_MBOX_SIZE, in lpfc_bsg_dma_page_alloc()
2711 struct pci_dev *pcidev = phba->pcidev; in lpfc_bsg_dma_page_free() local
2717 dma_free_coherent(&pcidev->dev, BSG_MBOX_SIZE, in lpfc_bsg_dma_page_free()
2766 struct pci_dev *pcidev; in diag_cmd_data_alloc() local
2768 pcidev = phba->pcidev; in diag_cmd_data_alloc()
2791 dmp->dma.virt = dma_alloc_coherent(&pcidev->dev, in diag_cmd_data_alloc()
[all …]
Dlpfc_mbox.c509 if (phba->pcidev->device == PCI_DEVICE_ID_LANCER_G6_FC && in lpfc_init_link()
1339 pci_read_config_dword(phba->pcidev, PCI_BASE_ADDRESS_0, &bar_low); in lpfc_config_port()
1340 pci_read_config_dword(phba->pcidev, PCI_BASE_ADDRESS_1, &bar_high); in lpfc_config_port()
1421 if (lpfc_is_LC_HBA(phba->pcidev->device)) { in lpfc_config_port()
1592 if (unlikely(pci_channel_offline(phba->pcidev))) in lpfc_mbox_dev_check()
1743 dma_free_coherent(&phba->pcidev->dev, SLI4_PAGE_SIZE, in lpfc_sli4_mbox_cmd_free()
1819 viraddr = dma_zalloc_coherent(&phba->pcidev->dev, in lpfc_sli4_config()
Dlpfc_scsi.c1175 nseg = dma_map_sg(&phba->pcidev->dev, scsi_sglist(scsi_cmnd), in lpfc_scsi_prep_dma_buf_s3()
2723 datasegcnt = dma_map_sg(&phba->pcidev->dev, in lpfc_bg_scsi_prep_dma_buf_s3()
2757 protsegcnt = dma_map_sg(&phba->pcidev->dev, in lpfc_bg_scsi_prep_dma_buf_s3()
2820 dma_unmap_sg(&phba->pcidev->dev, scsi_prot_sglist(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s3()
3376 datasegcnt = dma_map_sg(&phba->pcidev->dev, in lpfc_bg_scsi_prep_dma_buf_s4()
3417 protsegcnt = dma_map_sg(&phba->pcidev->dev, in lpfc_bg_scsi_prep_dma_buf_s4()
3492 dma_unmap_sg(&phba->pcidev->dev, scsi_prot_sglist(scsi_cmnd), in lpfc_bg_scsi_prep_dma_buf_s4()
3660 dma_unmap_sg(&phba->pcidev->dev, scsi_prot_sglist(psb->pCmd), in lpfc_scsi_unprep_dma_buf()
4432 if (phba && phba->pcidev){ in lpfc_info()
4438 phba->pcidev->bus->number, in lpfc_info()
[all …]
Dlpfc_debugfs.h346 dev_printk(KERN_ERR, &(((q->phba))->pcidev)->dev, in lpfc_debug_dump_q()
Dlpfc_attr.c902 struct pci_dev *pdev = phba->pcidev; in lpfc_sli4_pdev_reg_request()
2247 dev_printk(KERN_NOTICE, &phba->pcidev->dev, in lpfc_soft_wwpn_store()
2326 dev_printk(KERN_NOTICE, &phba->pcidev->dev, in lpfc_soft_wwnn_store()
3286 if (phba->pcidev->device == PCI_DEVICE_ID_LANCER_G6_FC && in lpfc_topology_store()
3867 rc = pci_disable_pcie_error_reporting(phba->pcidev); in lpfc_aer_support_store()
3883 rc = pci_enable_pcie_error_reporting(phba->pcidev); in lpfc_aer_support_store()
3983 rc = pci_cleanup_aer_uncorrect_error_status(phba->pcidev); in lpfc_aer_cleanup_state()
4040 struct pci_dev *pdev = phba->pcidev; in lpfc_sriov_nr_virtfn_store()
Dlpfc_sli.c3087 dev_warn(&((phba->pcidev)->dev), in lpfc_sli_handle_fast_ring_event()
3282 dev_warn(&((phba->pcidev)->dev), in lpfc_sli_sp_handle_rspiocb()
3802 pci_read_config_byte(phba->pcidev, PCI_HEADER_TYPE, &hdrtype); in lpfc_reset_barrier()
4019 pci_read_config_word(phba->pcidev, PCI_COMMAND, &cfg_value); in lpfc_sli_brdreset()
4020 pci_write_config_word(phba->pcidev, PCI_COMMAND, in lpfc_sli_brdreset()
4034 pci_write_config_word(phba->pcidev, PCI_COMMAND, cfg_value); in lpfc_sli_brdreset()
4096 pci_read_config_word(phba->pcidev, PCI_COMMAND, &cfg_value); in lpfc_sli4_brdreset()
4097 pci_write_config_word(phba->pcidev, PCI_COMMAND, (cfg_value & in lpfc_sli4_brdreset()
4105 pci_write_config_word(phba->pcidev, PCI_COMMAND, cfg_value); in lpfc_sli4_brdreset()
4178 pci_disable_pcie_error_reporting(phba->pcidev); in lpfc_sli_brdrestart_s3()
[all …]
Dlpfc.h760 struct pci_dev *pcidev; member
/linux-4.4.14/drivers/message/fusion/
Dmptbase.c303 buffer = pci_alloc_consistent(ioc->pcidev, hdr.ExtPageLength * 4, in mpt_is_discovery_complete()
319 pci_free_consistent(ioc->pcidev, hdr.ExtPageLength * 4, in mpt_is_discovery_complete()
341 pdev = ioc->pcidev; in mpt_remove_dead_ioc_func()
841 id = ioc->pcidev->driver ? in mpt_device_driver_register()
842 ioc->pcidev->driver->id_table : NULL; in mpt_device_driver_register()
844 dd_cbfunc->probe(ioc->pcidev, id); in mpt_device_driver_register()
868 dd_cbfunc->remove(ioc->pcidev); in mpt_device_driver_deregister()
1328 ioc->pcidev, in mpt_host_page_alloc()
1651 pdev = ioc->pcidev; in mpt_mapresources()
1802 ioc->pcidev = pdev; in mpt_attach()
[all …]
Dmptlan.c521 pci_unmap_single(mpt_dev->pcidev, priv->RcvCtl[i].dma, in mpt_lan_close()
533 pci_unmap_single(mpt_dev->pcidev, priv->SendCtl[i].dma, in mpt_lan_close()
597 pci_unmap_single(mpt_dev->pcidev, priv->SendCtl[ctx].dma, in mpt_lan_send_turbo()
663 pci_unmap_single(mpt_dev->pcidev, priv->SendCtl[ctx].dma, in mpt_lan_send_reply()
735 dma = pci_map_single(mpt_dev->pcidev, skb->data, skb->len, in mpt_lan_sdu_send()
883 pci_dma_sync_single_for_cpu(mpt_dev->pcidev, priv->RcvCtl[ctx].dma, in mpt_lan_receive_post_turbo()
888 pci_dma_sync_single_for_device(mpt_dev->pcidev, priv->RcvCtl[ctx].dma, in mpt_lan_receive_post_turbo()
897 pci_unmap_single(mpt_dev->pcidev, priv->RcvCtl[ctx].dma, in mpt_lan_receive_post_turbo()
942 pci_unmap_single(mpt_dev->pcidev, priv->RcvCtl[ctx].dma, in mpt_lan_receive_post_free()
1043 pci_dma_sync_single_for_cpu(mpt_dev->pcidev, in mpt_lan_receive_post_reply()
[all …]
Dmptctl.c1063 sglbuf = pci_alloc_consistent(ioc->pcidev, MAX_SGL_BYTES, sglbuf_dma); in kbuf_alloc_2_sgl()
1084 buflist[buflist_ent].kptr = pci_alloc_consistent(ioc->pcidev, in kbuf_alloc_2_sgl()
1102 dma_addr = pci_map_single(ioc->pcidev, in kbuf_alloc_2_sgl()
1162 pci_free_consistent(ioc->pcidev, len, kptr, dma_addr); in kbuf_alloc_2_sgl()
1164 pci_free_consistent(ioc->pcidev, MAX_SGL_BYTES, sglbuf, *sglbuf_dma); in kbuf_alloc_2_sgl()
1201 pci_unmap_single(ioc->pcidev, dma_addr, len, dir); in kfree_sgl()
1202 pci_free_consistent(ioc->pcidev, len, kptr, dma_addr); in kfree_sgl()
1219 pci_unmap_single(ioc->pcidev, dma_addr, len, dir); in kfree_sgl()
1220 pci_free_consistent(ioc->pcidev, len, kptr, dma_addr); in kfree_sgl()
1224 pci_free_consistent(ioc->pcidev, MAX_SGL_BYTES, sgl, sgl_dma); in kfree_sgl()
[all …]
Dmptfc.c342 ppage0_alloc = pci_alloc_consistent(ioc->pcidev, data_sz, in mptfc_GetFcDevPage0()
378 pci_free_consistent(ioc->pcidev, data_sz, in mptfc_GetFcDevPage0()
774 ppage0_alloc = (FCPortPage0_t *) pci_alloc_consistent(ioc->pcidev, data_sz, &page0_dma); in mptfc_GetFcPortPage0()
828 pci_free_consistent(ioc->pcidev, data_sz, (u8 *) ppage0_alloc, page0_dma); in mptfc_GetFcPortPage0()
915 page1_alloc = (FCPortPage1_t *) pci_alloc_consistent(ioc->pcidev, in mptfc_GetFcPortPage1()
927 pci_free_consistent(ioc->pcidev, data_sz, (u8 *) in mptfc_GetFcPortPage1()
945 pci_free_consistent(ioc->pcidev, data_sz, (u8 *) in mptfc_GetFcPortPage1()
1315 error = scsi_add_host (sh, &ioc->pcidev->dev); in mptfc_probe()
1521 pci_free_consistent(ioc->pcidev, in mptfc_remove()
Dmptsas.c677 buffer = pci_alloc_consistent(ioc->pcidev, hdr.PageLength * 4, in mptsas_add_device_component_starget_ir()
744 pci_free_consistent(ioc->pcidev, hdr.PageLength * 4, buffer, in mptsas_add_device_component_starget_ir()
1375 buffer = pci_alloc_consistent(ioc->pcidev, hdr.ExtPageLength * 4, in mptsas_sas_enclosure_pg0()
1402 pci_free_consistent(ioc->pcidev, hdr.ExtPageLength * 4, in mptsas_sas_enclosure_pg0()
2033 buffer = pci_alloc_consistent(ioc->pcidev, hdr.ExtPageLength * 4, in mptsas_get_linkerrors()
2056 pci_free_consistent(ioc->pcidev, hdr.ExtPageLength * 4, in mptsas_get_linkerrors()
2282 dma_addr_out = pci_map_single(ioc->pcidev, bio_data(req->bio), in mptsas_smp_handler()
2297 dma_addr_in = pci_map_single(ioc->pcidev, bio_data(rsp->bio), in mptsas_smp_handler()
2335 pci_unmap_single(ioc->pcidev, dma_addr_out, blk_rq_bytes(req), in mptsas_smp_handler()
2338 pci_unmap_single(ioc->pcidev, dma_addr_in, blk_rq_bytes(rsp), in mptsas_smp_handler()
[all …]
Dmptspi.c543 spi_dev_pg0 = dma_alloc_coherent(&ioc->pcidev->dev, size, &spi_dev_pg0_dma, GFP_KERNEL); in mptspi_read_spi_device_pg0()
576 dma_free_coherent(&ioc->pcidev->dev, size, spi_dev_pg0, spi_dev_pg0_dma); in mptspi_read_spi_device_pg0()
879 pg1 = dma_alloc_coherent(&ioc->pcidev->dev, size, &pg1_dma, GFP_KERNEL); in mptspi_write_spi_device_pg1()
936 dma_free_coherent(&ioc->pcidev->dev, size, pg1, pg1_dma); in mptspi_write_spi_device_pg1()
1527 error = scsi_add_host (sh, &ioc->pcidev->dev); in mptspi_probe()
Dmptbase.h674 struct pci_dev *pcidev; /* struct pci_dev pointer */ member
/linux-4.4.14/drivers/scsi/be2iscsi/
Dbe_main.c577 static struct beiscsi_hba *beiscsi_hba_alloc(struct pci_dev *pcidev) in beiscsi_hba_alloc() argument
584 dev_err(&pcidev->dev, in beiscsi_hba_alloc()
596 phba->pcidev = pci_dev_get(pcidev); in beiscsi_hba_alloc()
597 pci_set_drvdata(pcidev, phba); in beiscsi_hba_alloc()
620 struct pci_dev *pcidev) in beiscsi_map_pci_bars() argument
625 addr = ioremap_nocache(pci_resource_start(pcidev, 2), in beiscsi_map_pci_bars()
626 pci_resource_len(pcidev, 2)); in beiscsi_map_pci_bars()
631 phba->csr_pa.u.a64.address = pci_resource_start(pcidev, 2); in beiscsi_map_pci_bars()
633 addr = ioremap_nocache(pci_resource_start(pcidev, 4), 128 * 1024); in beiscsi_map_pci_bars()
638 phba->db_pa.u.a64.address = pci_resource_start(pcidev, 4); in beiscsi_map_pci_bars()
[all …]
Dbe_mgmt.c114 pci_read_config_dword(phba->pcidev, in beiscsi_ue_detect()
116 pci_read_config_dword(phba->pcidev, in beiscsi_ue_detect()
119 pci_read_config_dword(phba->pcidev, in beiscsi_ue_detect()
122 pci_read_config_dword(phba->pcidev, in beiscsi_ue_detect()
1533 dev_id = phba->pcidev->device; in beiscsi_adap_family_disp()
Dbe_main.h359 struct pci_dev *pcidev; member
/linux-4.4.14/drivers/atm/
Didt77252.c644 scq->base = dma_zalloc_coherent(&card->pcidev->dev, SCQ_SIZE, in alloc_scq()
673 dma_free_coherent(&card->pcidev->dev, SCQ_SIZE, in free_scq()
677 dma_unmap_single(&card->pcidev->dev, IDT77252_PRV_PADDR(skb), in free_scq()
688 dma_unmap_single(&card->pcidev->dev, IDT77252_PRV_PADDR(skb), in free_scq()
804 dma_unmap_single(&card->pcidev->dev, IDT77252_PRV_PADDR(skb), in drain_scq()
850 IDT77252_PRV_PADDR(skb) = dma_map_single(&card->pcidev->dev, skb->data, in queue_skb()
928 dma_unmap_single(&card->pcidev->dev, IDT77252_PRV_PADDR(skb), in queue_skb()
974 card->rsq.base = dma_zalloc_coherent(&card->pcidev->dev, RSQSIZE, in init_rsq()
1005 dma_free_coherent(&card->pcidev->dev, RSQSIZE, in deinit_rsq()
1061 dma_sync_single_for_cpu(&card->pcidev->dev, IDT77252_PRV_PADDR(skb), in dequeue_rx()
[all …]
Dnicstar.c122 static int ns_init_card(int i, struct pci_dev *pcidev);
175 static int nicstar_init_one(struct pci_dev *pcidev, in nicstar_init_one() argument
184 error = ns_init_card(index, pcidev); in nicstar_init_one()
195 static void nicstar_remove_one(struct pci_dev *pcidev) in nicstar_remove_one() argument
198 ns_dev *card = pci_get_drvdata(pcidev); in nicstar_remove_one()
219 pci_disable_device(pcidev); in nicstar_remove_one()
247 dma_free_coherent(&card->pcidev->dev, NS_RSQSIZE + NS_RSQ_ALIGNMENT, in nicstar_remove_one()
249 dma_free_coherent(&card->pcidev->dev, NS_TSQSIZE + NS_TSQ_ALIGNMENT, in nicstar_remove_one()
251 free_irq(card->pcidev->irq, card); in nicstar_remove_one()
345 static int ns_init_card(int i, struct pci_dev *pcidev) in ns_init_card() argument
[all …]
Dnicstar.h715 struct pci_dev *pcidev; member
Didt77252.h349 struct pci_dev *pcidev; /* PCI handle (desriptor) */ member
/linux-4.4.14/drivers/video/fbdev/savage/
Dsavagefb-i2c.c142 chan->adapter.dev.parent = &chan->par->pcidev->dev; in savage_setup_i2c_bus()
157 dev_dbg(&chan->par->pcidev->dev, in savage_setup_i2c_bus()
160 dev_warn(&chan->par->pcidev->dev, in savage_setup_i2c_bus()
185 if (par->pcidev->revision > 1 && !(VGArCR(0xa6, par) & 0x40)) in savagefb_create_i2c_busses()
Dsavagefb.h190 struct pci_dev *pcidev; member
Dsavagefb_driver.c1720 par->mmio.pbase = pci_resource_start(par->pcidev, 0) + in savage_map_mmio()
1723 par->mmio.pbase = pci_resource_start(par->pcidev, 0) + in savage_map_mmio()
1772 par->video.pbase = pci_resource_start(par->pcidev, resource); in savage_map_video()
2049 par->pcidev = dev; in savage_init_fb_info()
/linux-4.4.14/drivers/pci/
Dxen-pcifront.c598 struct pci_dev *pcidev; in pcifront_common_process() local
606 pcidev = pci_get_bus_and_slot(bus, devfn); in pcifront_common_process()
607 if (!pcidev || !pcidev->driver) { in pcifront_common_process()
609 pci_dev_put(pcidev); in pcifront_common_process()
612 pdrv = pcidev->driver; in pcifront_common_process()
616 dev_dbg(&pcidev->dev, in pcifront_common_process()
618 if (pcidev) { in pcifront_common_process()
623 error_detected(pcidev, state); in pcifront_common_process()
627 mmio_enabled(pcidev); in pcifront_common_process()
631 slot_reset(pcidev); in pcifront_common_process()
[all …]
/linux-4.4.14/drivers/scsi/bfa/
Dbfa_modules.h73 struct bfa_pcidev_s *pcidev); \
103 struct bfa_pcidev_s *pcidev);
Dbfad.c553 dma_free_coherent(&bfad->pcidev->dev, in bfad_hal_mem_release()
628 dma_elem->kva = dma_alloc_coherent(&bfad->pcidev->dev, in bfad_hal_mem_alloc()
782 bfad->pcidev = pdev; in bfad_pci_init()
947 &bfad->pcidev->dev); in bfad_cfg_pport()
1203 pci_disable_msix(bfad->pcidev); in bfad_install_msix_handler()
1221 struct pci_dev *pdev = bfad->pcidev; in bfad_setup_intr()
1233 error = pci_enable_msix_exact(bfad->pcidev, in bfad_setup_intr()
1241 error = pci_enable_msix_exact(bfad->pcidev, in bfad_setup_intr()
1274 error = request_irq(bfad->pcidev->irq, (irq_handler_t)bfad_intx, in bfad_setup_intr()
1294 pci_disable_msix(bfad->pcidev); in bfad_remove_intr()
[all …]
Dbfad_drv.h194 struct pci_dev *pcidev; member
293 dev_printk(level, &((bfad)->pcidev)->dev, fmt, ##arg); \
Dbfa_core.c858 if (bfa_asic_id_ct2(bfa->ioc.pcidev.device_id)) { in bfa_isr_enable()
917 if (bfa_asic_id_ct2(bfa->ioc.pcidev.device_id)) { in bfa_msix_lpu_err()
924 halt_isr = bfa_asic_id_ct(bfa->ioc.pcidev.device_id) ? in bfa_msix_lpu_err()
1041 struct bfa_pcidev_s *pcidev) in bfa_iocfc_init_mem() argument
1514 struct bfa_pcidev_s *pcidev) in bfa_iocfc_attach() argument
1527 bfa_ioc_pci_init(&bfa->ioc, pcidev, BFI_PCIFN_CLASS_FC); in bfa_iocfc_attach()
1530 bfa_iocfc_init_mem(bfa, bfad, cfg, pcidev); in bfa_iocfc_attach()
1821 struct bfa_meminfo_s *meminfo, struct bfa_pcidev_s *pcidev) in bfa_attach() argument
1851 bfa_iocfc_attach(bfa, bfad, cfg, pcidev); in bfa_attach()
1854 hal_mods[i]->attach(bfa, bfad, cfg, pcidev); in bfa_attach()
Dbfa_ioc.h299 struct bfa_pcidev_s pcidev; member
810 #define bfa_ioc_pcifn(__ioc) ((__ioc)->pcidev.pci_func)
811 #define bfa_ioc_devid(__ioc) ((__ioc)->pcidev.device_id)
812 #define bfa_ioc_bar0(__ioc) ((__ioc)->pcidev.pci_bar_kva)
856 ((__ioc)->ioc_hwif->ioc_pll_init((__ioc)->pcidev.pci_bar_kva, \
886 void bfa_ioc_pci_init(struct bfa_ioc_s *ioc, struct bfa_pcidev_s *pcidev,
Dbfa_ioc_ct.c314 void __iomem *rb = ioc->pcidev.pci_bar_kva; in bfa_ioc_ct_map_port()
331 void __iomem *rb = ioc->pcidev.pci_bar_kva; in bfa_ioc_ct2_map_port()
347 void __iomem *rb = ioc->pcidev.pci_bar_kva; in bfa_ioc_ct_isr_mode_set()
571 void __iomem *rb = ioc->pcidev.pci_bar_kva; in bfa_ioc_ct2_poweron()
Dbfa.h306 struct bfa_pcidev_s *pcidev);
409 struct bfa_pcidev_s *pcidev);
Dbfa_svc.c127 struct bfa_pcidev_s *pcidev);
526 struct bfa_pcidev_s *pcidev) in bfa_fcxp_attach() argument
1531 struct bfa_pcidev_s *pcidev) in bfa_lps_attach() argument
3090 struct bfa_pcidev_s *pcidev) in bfa_fcport_attach() argument
3843 (bfa_asic_id_ct2(bfa->ioc.pcidev.device_id))) in bfa_fcport_cfg_speed()
4904 struct bfa_pcidev_s *pcidev) in bfa_rport_attach() argument
5285 struct bfa_pcidev_s *pcidev) in bfa_sgpg_attach() argument
5579 struct bfa_pcidev_s *pcidev) in bfa_uf_attach() argument
5855 struct bfa_pcidev_s *pcidev) in bfa_fcdiag_attach() argument
6152 (bfa_asic_id_ct2(bfa->ioc.pcidev.device_id))) { in bfa_fcdiag_loopback()
[all …]
Dbfa_ioc.c1644 return bfa_flash_raw_read(ioc->pcidev.pci_bar_kva, in bfa_ioc_flash_img_get_chnk()
2405 bfa_ioc_pci_init(struct bfa_ioc_s *ioc, struct bfa_pcidev_s *pcidev, in bfa_ioc_pci_init() argument
2409 ioc->pcidev = *pcidev; in bfa_ioc_pci_init()
2417 switch (pcidev->device_id) { in bfa_ioc_pci_init()
2445 pcidev->ssid == BFA_PCI_CT2_SSID_FC) { in bfa_ioc_pci_init()
2453 if (pcidev->ssid == BFA_PCI_CT2_SSID_FCoE) { in bfa_ioc_pci_init()
2681 if (ioc->pcidev.device_id != BFA_PCI_DEVICE_ID_FC_8G1P) { in bfa_ioc_adapter_is_disabled()
2819 if (bfa_asic_id_ct2(ioc->pcidev.device_id) && in bfa_ioc_get_adapter_model()
6091 struct bfa_pcidev_s *pcidev) in bfa_dconf_attach() argument
/linux-4.4.14/drivers/char/
Dsonypi.c1306 struct pci_dev *pcidev; in sonypi_probe() local
1324 if ((pcidev = pci_get_device(PCI_VENDOR_ID_INTEL, in sonypi_probe()
1327 else if ((pcidev = pci_get_device(PCI_VENDOR_ID_INTEL, in sonypi_probe()
1330 else if ((pcidev = pci_get_device(PCI_VENDOR_ID_INTEL, in sonypi_probe()
1336 if (pcidev && pci_enable_device(pcidev)) { in sonypi_probe()
1342 sonypi_device.dev = pcidev; in sonypi_probe()
1417 if (pcidev) in sonypi_probe()
1418 pci_disable_device(pcidev); in sonypi_probe()
1420 pci_dev_put(pcidev); in sonypi_probe()
/linux-4.4.14/arch/ia64/sn/kernel/
Dio_common.c108 struct pcidev_info *pcidev; in sn_pcidev_info_get() local
110 list_for_each_entry(pcidev, in sn_pcidev_info_get()
112 if (pcidev->pdi_linux_pcidev == dev) in sn_pcidev_info_get()
113 return pcidev; in sn_pcidev_info_get()
/linux-4.4.14/arch/parisc/include/asm/
Dsuperio.h83 extern int superio_fixup_irq(struct pci_dev *pcidev); /* called by iosapic */
Dropes.h255 extern int iosapic_fixup_irq(void *obj, struct pci_dev *pcidev);
/linux-4.4.14/drivers/scsi/megaraid/
Dmegaraid_ioctl.h215 uint16_t pcidev; member
Dmegaraid_mm.c890 cinfo->pcidev = hinfo->pci_slot; in hinfo_to_cinfo()
/linux-4.4.14/sound/pci/
Dmaestro3.c2290 struct pci_dev *pcidev = chip->pci; in snd_m3_chip_init() local
2296 pci_read_config_word(pcidev, PCI_LEGACY_AUDIO_CTRL, &w); in snd_m3_chip_init()
2300 pci_write_config_word(pcidev, PCI_LEGACY_AUDIO_CTRL, w); in snd_m3_chip_init()
2302 pci_read_config_dword(pcidev, PCI_ALLEGRO_CONFIG, &n); in snd_m3_chip_init()
2308 pci_write_config_dword(pcidev, PCI_ALLEGRO_CONFIG, n); in snd_m3_chip_init()
2311 pci_read_config_dword(pcidev, PCI_ALLEGRO_CONFIG, &n); in snd_m3_chip_init()
2318 pci_write_config_dword(pcidev, PCI_ALLEGRO_CONFIG, n); in snd_m3_chip_init()
2321 pci_read_config_dword(pcidev, PCI_USER_CONFIG, &n); in snd_m3_chip_init()
2323 pci_write_config_dword(pcidev, PCI_USER_CONFIG, n); in snd_m3_chip_init()
/linux-4.4.14/drivers/platform/x86/
Dsony-laptop.c3660 struct pci_dev *pcidev; in sony_pic_detect_device_type() local
3662 pcidev = pci_get_device(PCI_VENDOR_ID_INTEL, in sony_pic_detect_device_type()
3664 if (pcidev) { in sony_pic_detect_device_type()
3671 pcidev = pci_get_device(PCI_VENDOR_ID_INTEL, in sony_pic_detect_device_type()
3673 if (pcidev) { in sony_pic_detect_device_type()
3680 pcidev = pci_get_device(PCI_VENDOR_ID_INTEL, in sony_pic_detect_device_type()
3682 if (pcidev) { in sony_pic_detect_device_type()
3690 pcidev = pci_get_device(PCI_VENDOR_ID_INTEL, in sony_pic_detect_device_type()
3692 if (pcidev) { in sony_pic_detect_device_type()
3700 pcidev = pci_get_device(PCI_VENDOR_ID_INTEL, in sony_pic_detect_device_type()
[all …]
/linux-4.4.14/drivers/isdn/hardware/avm/
Db1.c754 pci_free_consistent(p->pcidev, p->recvbuf.size, in avmcard_dma_alloc()
764 pci_free_consistent(p->pcidev, p->recvbuf.size, in avmcard_dma_free()
766 pci_free_consistent(p->pcidev, p->sendbuf.size, in avmcard_dma_free()
Davmcard.h59 struct pci_dev *pcidev; member
/linux-4.4.14/drivers/media/pci/meye/
Dmeye.c1592 static int meye_probe(struct pci_dev *pcidev, const struct pci_device_id *ent) in meye_probe() argument
1629 ret = v4l2_device_register(&pcidev->dev, v4l2_dev); in meye_probe()
1635 meye.mchip_dev = pcidev; in meye_probe()
1689 meye.mchip_irq = pcidev->irq; in meye_probe()
1778 static void meye_remove(struct pci_dev *pcidev) in meye_remove() argument
/linux-4.4.14/drivers/ssb/
Dpci.c1129 static ssize_t ssb_pci_attr_sprom_show(struct device *pcidev, in ssb_pci_attr_sprom_show() argument
1133 struct pci_dev *pdev = container_of(pcidev, struct pci_dev, dev); in ssb_pci_attr_sprom_show()
1143 static ssize_t ssb_pci_attr_sprom_store(struct device *pcidev, in ssb_pci_attr_sprom_store() argument
1147 struct pci_dev *pdev = container_of(pcidev, struct pci_dev, dev); in ssb_pci_attr_sprom_store()
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dcnic.c741 dma_free_coherent(&dev->pcidev->dev, CNIC_PAGE_SIZE, in cnic_free_dma()
747 dma_free_coherent(&dev->pcidev->dev, dma->pgtbl_size, in cnic_free_dma()
799 dma->pg_arr[i] = dma_alloc_coherent(&dev->pcidev->dev, in cnic_alloc_dma()
811 dma->pgtbl = dma_alloc_coherent(&dev->pcidev->dev, dma->pgtbl_size, in cnic_alloc_dma()
832 dma_free_coherent(&dev->pcidev->dev, cp->ctx_blk_size, in cnic_free_context()
947 dma_alloc_coherent(&dev->pcidev->dev, in cnic_alloc_context()
1055 if (udev->pdev == dev->pcidev) { in cnic_alloc_uio_rings()
1073 udev->pdev = dev->pcidev; in cnic_alloc_uio_rings()
1103 uinfo->mem[0].addr = pci_resource_start(dev->pcidev, 0); in cnic_init_uio()
1119 uinfo->mem[0].size = pci_resource_len(dev->pcidev, 0); in cnic_init_uio()
[all …]
Dcnic_if.h312 struct pci_dev *pcidev; member
/linux-4.4.14/drivers/net/wireless/b43legacy/
Dmain.c1909 struct ssb_device *gpiodev, *pcidev = NULL; in b43legacy_gpio_init() local
1941 pcidev = bus->pcicore.dev; in b43legacy_gpio_init()
1943 gpiodev = bus->chipco.dev ? : pcidev; in b43legacy_gpio_init()
1957 struct ssb_device *gpiodev, *pcidev = NULL; in b43legacy_gpio_cleanup() local
1960 pcidev = bus->pcicore.dev; in b43legacy_gpio_cleanup()
1962 gpiodev = bus->chipco.dev ? : pcidev; in b43legacy_gpio_cleanup()

12