/linux-4.4.14/drivers/staging/comedi/ |
D | comedi_pci.c | 60 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/ |
D | qib_pcie.c | 141 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 …]
|
D | qib_init.c | 124 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 …]
|
D | qib_wc_x86_64.c | 58 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()
|
D | qib_user_sdma.c | 313 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 …]
|
D | qib_sdma.c | 265 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()
|
D | qib_file_ops.c | 327 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 …]
|
D | qib_eeprom.c | 206 qib_devinfo(dd->pcidev, in qib_get_eeprom_info() 222 qib_devinfo(dd->pcidev, in qib_get_eeprom_info()
|
D | qib.h | 734 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__)
|
D | qib_driver.c | 663 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()
|
D | qib_iba7322.c | 1670 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 …]
|
D | qib_iba6120.c | 673 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()
|
D | qib_verbs.c | 1014 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()
|
D | qib_iba7220.c | 771 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()
|
D | qib_sysfs.c | 756 qib_devinfo(dd->pcidev, in qib_create_port_files()
|
D | qib_diag.c | 612 qib_devinfo(dd->pcidev, in qib_diagpkt_write()
|
/linux-4.4.14/drivers/staging/rdma/hfi1/ |
D | pcie.c | 173 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 …]
|
D | init.c | 130 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()
|
D | sdma.h | 820 &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()
|
D | hfi.h | 781 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, \
|
D | sdma.c | 957 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()
|
D | pio.c | 1732 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()
|
D | eprom.c | 436 if (dd->pcidev->device != PCI_DEVICE_ID_INTEL0) in eprom_init()
|
D | firmware.c | 429 ret = request_firmware(&fdet->fw, name, &dd->pcidev->dev); in obtain_one_firmware() 594 &dd->pcidev->dev); in obtain_firmware()
|
D | file_ops.c | 1723 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/ |
D | nes.c | 174 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 …]
|
D | nes_hw.c | 279 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 …]
|
D | nes_verbs.c | 450 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 …]
|
D | nes_mgt.c | 79 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 …]
|
D | nes_nic.c | 305 (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 …]
|
D | nes_cm.c | 1447 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 …]
|
D | nes.h | 226 struct pci_dev *pcidev; member
|
/linux-4.4.14/drivers/scsi/aic94xx/ |
D | aic94xx_init.c | 87 io_handle->start = pci_resource_start(asd_ha->pcidev, i); in asd_map_memio() 88 io_handle->len = pci_resource_len(asd_ha->pcidev, i); in asd_map_memio() 89 io_handle->flags = pci_resource_flags(asd_ha->pcidev, i); in asd_map_memio() 93 i==0?0:1, pci_name(asd_ha->pcidev)); in asd_map_memio() 96 err = pci_request_region(asd_ha->pcidev, i, ASD_DRIVER_NAME); in asd_map_memio() 99 pci_name(asd_ha->pcidev)); in asd_map_memio() 105 pci_name(asd_ha->pcidev)); in asd_map_memio() 113 pci_release_region(asd_ha->pcidev, i); in asd_map_memio() 118 pci_release_region(asd_ha->pcidev, 0); in asd_map_memio() 129 pci_release_region(asd_ha->pcidev, 2); in asd_unmap_memio() [all …]
|
D | aic94xx_hwi.c | 163 struct pci_dev *pcidev = asd_ha->pcidev; in asd_init_sw() local 168 err = pci_read_config_dword(pcidev, PCI_CONF_MBAR_KEY, &v); in asd_init_sw() 171 pci_name(pcidev)); in asd_init_sw() 175 err = pci_write_config_dword(pcidev, PCI_CONF_MBAR_KEY, v); in asd_init_sw() 178 pci_name(pcidev)); in asd_init_sw() 185 pci_write_config_dword(pcidev, PCI_CONF_MBAR0_SWA, REG_BASE_ADDR); in asd_init_sw() 186 pci_write_config_dword(pcidev, PCI_CONF_MBAR0_SWB, in asd_init_sw() 188 pci_write_config_dword(pcidev, PCI_CONF_MBAR0_SWC, REG_BASE_ADDR_EXSI); in asd_init_sw() 195 pci_write_config_dword(pcidev, PCI_CONF_MBAR1, OCM_BASE_ADDR); in asd_init_sw() 465 pci_name(asd_ha->pcidev)); in asd_init_chip() [all …]
|
D | aic94xx_task.c | 68 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()
|
D | aic94xx_hwi.h | 199 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()
|
D | aic94xx_sds.c | 314 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()
|
D | aic94xx_seq.c | 205 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()
|
D | aic94xx_reg.c | 191 pci_write_config_dword(asd_ha->pcidev, PCI_CONF_MBAR0_SWB, base); in asd_move_swb()
|
/linux-4.4.14/drivers/staging/comedi/drivers/ |
D | ni_labpc_pci.c | 57 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()
|
D | 8255_pci.c | 184 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()
|
D | ni_670x.c | 152 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()
|
D | gsc_hpdi.c | 492 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 …]
|
D | adl_pci9118.c | 1436 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 …]
|
D | addi_apci_1032.c | 301 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()
|
D | mite.c | 56 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()
|
D | addi_apci_3501.c | 320 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()
|
D | ni_65xx.c | 618 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()
|
D | addi_apci_2032.c | 238 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()
|
D | daqboard2000.c | 634 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()
|
D | addi_apci_1564.c | 439 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()
|
D | amplc_dio200_pci.c | 318 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()
|
D | addi_apci_1516.c | 119 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()
|
D | mf6x4.c | 190 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()
|
D | contec_pci_dio.c | 63 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()
|
D | rtd520.c | 1205 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 …]
|
D | addi_apci_1500.c | 756 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()
|
D | cb_pcimdda.c | 138 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()
|
D | addi_apci_2200.c | 74 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()
|
D | dyna_pci10xx.c | 178 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()
|
D | cb_pcimdas.c | 360 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()
|
D | adl_pci9111.c | 636 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()
|
D | me4000.c | 321 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()
|
D | addi_apci_16xx.c | 100 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()
|
D | adl_pci8164.c | 73 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()
|
D | ni_6527.c | 382 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()
|
D | adv_pci_dio.c | 944 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()
|
D | adl_pci6208.c | 123 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()
|
D | adv_pci1724.c | 130 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()
|
D | cb_pcidda.c | 337 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()
|
D | addi_apci_3120.c | 976 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()
|
D | dt3000.c | 623 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()
|
D | addi_apci_3xxx.c | 765 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()
|
D | adv_pci1723.c | 144 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()
|
D | adl_pci7x3x.c | 158 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()
|
D | ke_counter.c | 173 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()
|
D | cb_pcidas.c | 1259 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()
|
D | cb_pcidas64.c | 1476 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 …]
|
D | mite.h | 56 struct pci_dev *pcidev; member 67 struct mite_struct *mite_alloc(struct pci_dev *pcidev);
|
D | icp_multi.c | 255 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()
|
D | me_daq.c | 439 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()
|
D | s626.c | 2447 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 …]
|
D | adv_pci1710.c | 848 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()
|
D | ni_pcidio.c | 871 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()
|
D | ni_660x.c | 1044 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()
|
D | ni_pcimio.c | 1132 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()
|
D | jr3_pci.c | 682 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/ |
D | iosapic.c | 474 iosapic_xlate_pin(struct iosapic_info *isi, struct pci_dev *pcidev) in iosapic_xlate_pin() argument 478 pci_read_config_byte(pcidev, PCI_INTERRUPT_PIN, &intr_pin); in iosapic_xlate_pin() 481 pcidev->slot_name, PCI_SLOT(pcidev->devfn), intr_pin); in iosapic_xlate_pin() 489 if (pcidev->bus->parent) { in iosapic_xlate_pin() 504 intr_pin = pci_bridge_funcs->xlate_intr_line(pcidev); in iosapic_xlate_pin() 507 struct pci_bus *p = pcidev->bus; in iosapic_xlate_pin() 521 intr_pin = pci_swizzle_interrupt_pin(pcidev, intr_pin); in iosapic_xlate_pin() 532 intr_slot = PCI_SLOT(pcidev->devfn); in iosapic_xlate_pin() 535 pcidev->bus->busn_res.start, intr_slot, intr_pin); in iosapic_xlate_pin() 720 int iosapic_fixup_irq(void *isi_obj, struct pci_dev *pcidev) in iosapic_fixup_irq() argument [all …]
|
D | superio.c | 153 superio_init(struct pci_dev *pcidev) in superio_init() argument 338 int superio_fixup_irq(struct pci_dev *pcidev) in superio_fixup_irq() argument 344 fn = PCI_FUNC(pcidev->devfn); in superio_fixup_irq() 347 if (expected_device[fn] != pcidev->device) { in superio_fixup_irq() 352 pci_name(pcidev), in superio_fixup_irq() 353 pcidev->vendor, pcidev->device, in superio_fixup_irq() 368 switch(pcidev->device) { in superio_fixup_irq() 373 sio_dev.lio_pdev = pcidev; /* save for superio_init() */ in superio_fixup_irq() 376 sio_dev.usb_pdev = pcidev; /* save for superio_init() */ in superio_fixup_irq()
|
/linux-4.4.14/drivers/staging/rdma/amso1100/ |
D | c2.c | 232 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 …]
|
D | c2_alloc.c | 46 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()
|
D | c2_rnic.c | 520 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()
|
D | c2_cq.c | 259 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()
|
D | c2_provider.c | 758 SET_NETDEV_DEV(netdev, &c2dev->pcidev->dev); in c2_pseudo_netdev_init() 830 dev->ibdev.dma_device = &dev->pcidev->dev; in c2_register_device()
|
D | c2.h | 292 struct pci_dev *pcidev; member
|
/linux-4.4.14/drivers/mfd/ |
D | rtsx_pcr.c | 1155 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/ |
D | via-sdmmc.c | 1085 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/ |
D | ips.c | 687 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 …]
|
D | hptiop.c | 598 struct pci_dev *pcidev = hba->pcidev; in hptiop_map_pci_bar() local 601 if (!(pci_resource_flags(pcidev, index) & IORESOURCE_MEM)) { in hptiop_map_pci_bar() 607 mem_base_phy = pci_resource_start(pcidev, index); in hptiop_map_pci_bar() 608 length = pci_resource_len(pcidev, index); in hptiop_map_pci_bar() 621 struct pci_dev *pcidev = hba->pcidev; in hptiop_map_pci_bar_itl() local 625 if ((pcidev->device & 0xff00) == 0x4400) { in hptiop_map_pci_bar_itl() 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 …]
|
D | ips.h | 62 #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 …]
|
D | hptiop.h | 309 struct pci_dev *pcidev; member
|
D | megaraid.h | 512 u16 pcidev; member
|
/linux-4.4.14/drivers/video/fbdev/matrox/ |
D | matroxfb_DAC1064.c | 115 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx); in DAC1064_setmclk() 130 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx); in DAC1064_setmclk() 132 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx); in DAC1064_setmclk() 157 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx); in DAC1064_setmclk() 159 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx); in DAC1064_setmclk() 696 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, hw->MXoptionReg); in MGA1064_preinit() 719 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, minfo->hw.MXoptionReg | 4); in g450_mclk_init() 720 pci_write_config_dword(minfo->pcidev, PCI_OPTION3_REG, minfo->values.reg.opt3 & ~0x00300C03); in g450_mclk_init() 721 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, minfo->hw.MXoptionReg); in g450_mclk_init() 739 pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, minfo->hw.MXoptionReg | 4); in g450_mclk_init() [all …]
|
D | matroxfb_base.c | 235 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 …]
|
D | matroxfb_Ti3026.c | 515 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()
|
D | g450_pll.c | 401 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()
|
D | i2c-matroxfb.c | 116 b->adapter.dev.parent = &minfo->pcidev->dev; in i2c_bus_reg()
|
D | matroxfb_base.h | 355 struct pci_dev* pcidev; member
|
/linux-4.4.14/drivers/char/agp/ |
D | intel-gtt.c | 63 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/ |
D | slicoss.c | 410 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 …]
|
D | slic.h | 401 struct pci_dev *pcidev; member
|
/linux-4.4.14/drivers/scsi/bnx2fc/ |
D | bnx2fc_tgt.c | 675 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 …]
|
D | bnx2fc_hwi.c | 1343 (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 …]
|
D | bnx2fc_io.c | 305 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 …]
|
D | bnx2fc_fcoe.c | 1670 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()
|
D | bnx2fc.h | 187 struct pci_dev *pcidev; member
|
/linux-4.4.14/drivers/hwmon/ |
D | i5k_amb.c | 431 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/ |
D | bnx2i_iscsi.c | 450 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 …]
|
D | bnx2i_hwi.c | 1076 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 …]
|
D | bnx2i.h | 402 struct pci_dev *pcidev; member
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | eeh_cache.c | 54 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/ |
D | via-ircc.c | 104 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/ |
D | ipath_user_sdma.c | 207 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 …]
|
D | ipath_init_chip.c | 130 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 …]
|
D | ipath_sdma.c | 89 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()
|
D | ipath_wc_x86_64.c | 56 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()
|
D | ipath_driver.c | 221 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 …]
|
D | ipath_iba6110.c | 427 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 …]
|
D | ipath_file_ops.c | 343 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 …]
|
D | ipath_diag.c | 309 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()
|
D | ipath_kernel.h | 491 struct pci_dev *pcidev; member 1327 if (__dd->pcidev) \ 1328 dev_err(&__dd->pcidev->dev, "%s: " fmt, \
|
D | ipath_intr.c | 317 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()
|
D | ipath_stats.c | 231 dev_info(&dd->pcidev->dev, in ipath_chk_errormask()
|
D | ipath_eeprom.c | 771 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/ |
D | vpci.c | 229 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()
|
D | passthrough.c | 176 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()
|
D | pciback.h | 99 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/ |
D | bfa_ioc.h | 169 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,
|
D | bnad.c | 69 ((_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 …]
|
D | bnad_ethtool.c | 317 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()
|
D | bnad.h | 268 ((_bnad)->pcidev->device == BFA_PCI_DEVICE_ID_CT2) 325 struct pci_dev *pcidev; member
|
D | bfa_ioc_ct.c | 379 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()
|
D | bna_enet.c | 1710 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()
|
D | bfa_ioc.c | 1755 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()
|
D | bna.h | 269 struct bfa_pcidev *pcidev,
|
D | bna_types.h | 911 struct bfa_pcidev pcidev; member
|
D | bnad_debugfs.c | 517 snprintf(name, sizeof(name), "pci_dev:%s", pci_name(bnad->pcidev)); in bnad_debugfs_init()
|
D | bna_tx_rx.c | 2112 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/ |
D | lpfc_logmsg.h | 46 dev_printk(level, &((vport)->phba->pcidev)->dev, "%d:(%d):" \ 56 dev_printk(level, &((phba)->pcidev)->dev, "%d:" \
|
D | lpfc_mem.c | 95 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()
|
D | lpfc_init.c | 125 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 …]
|
D | lpfc_bsg.c | 869 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 …]
|
D | lpfc_mbox.c | 509 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()
|
D | lpfc_scsi.c | 1175 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 …]
|
D | lpfc_debugfs.h | 346 dev_printk(KERN_ERR, &(((q->phba))->pcidev)->dev, in lpfc_debug_dump_q()
|
D | lpfc_attr.c | 902 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()
|
D | lpfc_sli.c | 3087 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 …]
|
D | lpfc.h | 760 struct pci_dev *pcidev; member
|
/linux-4.4.14/drivers/message/fusion/ |
D | mptbase.c | 303 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 …]
|
D | mptlan.c | 521 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 …]
|
D | mptctl.c | 1063 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 …]
|
D | mptfc.c | 342 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()
|
D | mptsas.c | 677 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 …]
|
D | mptspi.c | 543 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()
|
D | mptbase.h | 674 struct pci_dev *pcidev; /* struct pci_dev pointer */ member
|
/linux-4.4.14/drivers/scsi/be2iscsi/ |
D | be_main.c | 577 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 …]
|
D | be_mgmt.c | 114 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()
|
D | be_main.h | 359 struct pci_dev *pcidev; member
|
/linux-4.4.14/drivers/atm/ |
D | idt77252.c | 644 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 …]
|
D | nicstar.c | 122 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 …]
|
D | nicstar.h | 715 struct pci_dev *pcidev; member
|
D | idt77252.h | 349 struct pci_dev *pcidev; /* PCI handle (desriptor) */ member
|
/linux-4.4.14/drivers/video/fbdev/savage/ |
D | savagefb-i2c.c | 142 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()
|
D | savagefb.h | 190 struct pci_dev *pcidev; member
|
D | savagefb_driver.c | 1720 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/ |
D | xen-pcifront.c | 598 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/ |
D | bfa_modules.h | 73 struct bfa_pcidev_s *pcidev); \ 103 struct bfa_pcidev_s *pcidev);
|
D | bfad.c | 553 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 …]
|
D | bfad_drv.h | 194 struct pci_dev *pcidev; member 293 dev_printk(level, &((bfad)->pcidev)->dev, fmt, ##arg); \
|
D | bfa_core.c | 858 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()
|
D | bfa_ioc.h | 299 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,
|
D | bfa_ioc_ct.c | 314 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()
|
D | bfa.h | 306 struct bfa_pcidev_s *pcidev); 409 struct bfa_pcidev_s *pcidev);
|
D | bfa_svc.c | 127 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 …]
|
D | bfa_ioc.c | 1644 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/ |
D | sonypi.c | 1306 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/ |
D | io_common.c | 108 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/ |
D | superio.h | 83 extern int superio_fixup_irq(struct pci_dev *pcidev); /* called by iosapic */
|
D | ropes.h | 255 extern int iosapic_fixup_irq(void *obj, struct pci_dev *pcidev);
|
/linux-4.4.14/drivers/scsi/megaraid/ |
D | megaraid_ioctl.h | 215 uint16_t pcidev; member
|
D | megaraid_mm.c | 890 cinfo->pcidev = hinfo->pci_slot; in hinfo_to_cinfo()
|
/linux-4.4.14/sound/pci/ |
D | maestro3.c | 2290 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/ |
D | sony-laptop.c | 3660 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/ |
D | b1.c | 754 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()
|
D | avmcard.h | 59 struct pci_dev *pcidev; member
|
/linux-4.4.14/drivers/media/pci/meye/ |
D | meye.c | 1592 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/ |
D | pci.c | 1129 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/ |
D | cnic.c | 741 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 …]
|
D | cnic_if.h | 312 struct pci_dev *pcidev; member
|
/linux-4.4.14/drivers/net/wireless/b43legacy/ |
D | main.c | 1909 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()
|