/drivers/ide/ |
D | setup-pci.c | 193 static int ide_pci_enable(struct pci_dev *dev, int bars, in ide_pci_enable() argument 221 ret = pci_request_selected_regions(dev, bars, d->name); in ide_pci_enable() 405 static int ide_setup_pci_controller(struct pci_dev *dev, int bars, in ide_setup_pci_controller() argument 414 ret = ide_pci_enable(dev, bars, d); in ide_setup_pci_controller() 435 pci_release_selected_regions(dev, bars); in ide_setup_pci_controller() 538 int ret, i, n_ports = dev2 ? 4 : 2, bars; in ide_pci_init_two() local 542 bars = (1 << 2) - 1; in ide_pci_init_two() 544 bars = (1 << 4) - 1; in ide_pci_init_two() 548 bars |= (1 << 2); in ide_pci_init_two() 550 bars |= (1 << 4); in ide_pci_init_two() [all …]
|
/drivers/mfd/ |
D | sta2x11-mfd.c | 530 struct sta2x11_mfd_bar_setup_data bars[2]; member 539 .bars = { 552 .bars = { 569 for (i = 0; i < ARRAY_SIZE(sd->bars); i++) in sta2x11_mfd_setup() 570 for (j = 0; j < sd->bars[i].ncells; j++) { in sta2x11_mfd_setup() 571 sd->bars[i].cells[j].pdata_size = sizeof(pdev); in sta2x11_mfd_setup() 572 sd->bars[i].cells[j].platform_data = &pdev; in sta2x11_mfd_setup() 608 setup_data->bars[i].cells, in sta2x11_mfd_probe() 609 setup_data->bars[i].ncells, in sta2x11_mfd_probe()
|
/drivers/scsi/csiostor/ |
D | csio_init.c | 198 csio_pci_init(struct pci_dev *pdev, int *bars) in csio_pci_init() argument 202 *bars = pci_select_bars(pdev, IORESOURCE_MEM); in csio_pci_init() 207 if (pci_request_selected_regions(pdev, *bars, KBUILD_MODNAME)) in csio_pci_init() 225 pci_release_selected_regions(pdev, *bars); in csio_pci_init() 240 csio_pci_exit(struct pci_dev *pdev, int *bars) in csio_pci_exit() argument 242 pci_release_selected_regions(pdev, *bars); in csio_pci_exit() 951 int bars; in csio_probe_one() local 961 rv = csio_pci_init(pdev, &bars); in csio_probe_one() 1023 csio_pci_exit(pdev, &bars); in csio_probe_one() 1038 int bars = pci_select_bars(pdev, IORESOURCE_MEM); in csio_remove_one() local [all …]
|
/drivers/gpu/drm/i915/gvt/ |
D | cfg_space.c | 206 struct intel_vgpu_pci_bar *bars = vgpu->cfg_space.bar; in emulate_pci_bar_write() local 219 size = ~(bars[INTEL_GVT_PCI_BAR_GTTMMIO].size -1); in emulate_pci_bar_write() 230 size = ~(bars[INTEL_GVT_PCI_BAR_APERTURE].size -1); in emulate_pci_bar_write()
|
/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp6000_pcie.c | 180 int bars; member 406 for (n = 0; n < nfp->bars; n++) { in find_matching_bar() 424 for (n = 0; n < nfp->bars; n++) { in find_unused_bar_noblock() 624 nfp->bars = bar - &nfp->bar[0]; in enable_bars() 625 if (nfp->bars < 8) { in enable_bars() 630 bars_free = nfp->bars; in enable_bars() 708 sort(&nfp->bar[0], nfp->bars, sizeof(nfp->bar[0]), in enable_bars() 711 dev_info(nfp->dev, "%sfree: %d/%d\n", status_msg, bars_free, nfp->bars); in enable_bars() 721 for (n = 0; n < nfp->bars; n++, bar++) { in disable_bars()
|
/drivers/pci/ |
D | pci.c | 1299 int __weak pcibios_enable_device(struct pci_dev *dev, int bars) in pcibios_enable_device() argument 1301 return pci_enable_resources(dev, bars); in pcibios_enable_device() 1304 static int do_pci_enable_device(struct pci_dev *dev, int bars) in do_pci_enable_device() argument 1319 err = pcibios_enable_device(dev, bars); in do_pci_enable_device() 1379 int i, bars = 0; in pci_enable_device_flags() local 1403 bars |= (1 << i); in pci_enable_device_flags() 1406 bars |= (1 << i); in pci_enable_device_flags() 1408 err = do_pci_enable_device(dev, bars); in pci_enable_device_flags() 3192 void pci_release_selected_regions(struct pci_dev *pdev, int bars) in pci_release_selected_regions() argument 3197 if (bars & (1 << i)) in pci_release_selected_regions() [all …]
|
D | iov.c | 245 int bars = 0; in sriov_enable() local 265 bars |= (1 << (i + PCI_IOV_RESOURCES)); in sriov_enable() 282 if (pci_enable_resources(dev, bars)) { in sriov_enable()
|
/drivers/tty/serial/ |
D | rp2.c | 745 void __iomem * const *bars; in rp2_probe() local 763 bars = pcim_iomap_table(pdev); in rp2_probe() 764 card->bar0 = bars[0]; in rp2_probe() 765 card->bar1 = bars[1]; in rp2_probe()
|
/drivers/ntb/hw/idt/ |
D | ntb_hw_idt.h | 1111 struct idt_ntb_bar bars[IDT_BAR_CNT]; member 1134 struct idt_ntb_bar bars[IDT_BAR_CNT]; member
|
D | ntb_hw_idt.c | 1046 const struct idt_ntb_bar *bars; in idt_scan_mws() local 1054 bars = portdata_tbl[port].bars; in idt_scan_mws() 1060 data = idt_sw_read(ndev, bars[bidx].setup); in idt_scan_mws() 1313 const struct idt_ntb_bar *bar = &ntdata_tbl.bars[mw_cfg->bar]; in idt_ntb_peer_mw_set_trans() 1374 const struct idt_ntb_bar *bar = &ntdata_tbl.bars[mw_cfg->bar]; in idt_ntb_peer_mw_clear_trans()
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sriov.h | 67 struct bnx2x_vf_bar bars[PCI_SRIOV_NUM_BARS]; member 190 struct bnx2x_vf_bar bars[PCI_SRIOV_NUM_BARS]; member
|
D | bnx2x_sriov.c | 1072 vf->bars[n].bar = start + size * vf->abs_vfid; in bnx2x_vf_set_bars() 1073 vf->bars[n].size = size; in bnx2x_vf_set_bars() 1621 (unsigned)vf->bars[0].bar, vf->bars[0].size, in bnx2x_iov_nic_init() 1622 (unsigned)vf->bars[1].bar, vf->bars[1].size, in bnx2x_iov_nic_init() 1623 (unsigned)vf->bars[2].bar, vf->bars[2].size); in bnx2x_iov_nic_init()
|
/drivers/net/ethernet/intel/e1000/ |
D | e1000.h | 320 int bars; member
|
D | e1000_main.c | 957 int bars, need_ioport; in e1000_probe() local 963 bars = pci_select_bars(pdev, IORESOURCE_MEM | IORESOURCE_IO); in e1000_probe() 966 bars = pci_select_bars(pdev, IORESOURCE_MEM); in e1000_probe() 972 err = pci_request_selected_regions(pdev, bars, e1000_driver_name); in e1000_probe() 993 adapter->bars = bars; in e1000_probe() 1266 pci_release_selected_regions(pdev, bars); in e1000_probe() 1304 pci_release_selected_regions(pdev, adapter->bars); in e1000_remove()
|
/drivers/virtio/ |
D | virtio_pci_modern.c | 476 u32 ioresource_types, int *bars) in virtio_pci_find_capability() argument 498 *bars |= (1 << bar); in virtio_pci_find_capability()
|
/drivers/scsi/qla2xxx/ |
D | qla_os.c | 1916 if (pci_request_selected_regions(ha->pdev, ha->bars, in qla2x00_iospace_config() 1923 if (!(ha->bars & 1)) in qla2x00_iospace_config() 2013 if (pci_request_selected_regions(ha->pdev, ha->bars, in qla83xx_iospace_config() 2709 int bars, mem_only = 0; in qla2x00_probe_one() local 2715 bars = pci_select_bars(pdev, IORESOURCE_MEM | IORESOURCE_IO); in qla2x00_probe_one() 2732 bars = pci_select_bars(pdev, IORESOURCE_MEM); in qla2x00_probe_one() 2738 "Bars=%d.\n", bars); in qla2x00_probe_one() 2768 ha->bars = bars; in qla2x00_probe_one() 3397 pci_release_selected_regions(ha->pdev, ha->bars); in qla2x00_probe_one() 3664 pci_release_selected_regions(ha->pdev, ha->bars); in qla2x00_remove_one() [all …]
|
D | qla_mr.c | 768 if (pci_request_selected_regions(ha->pdev, ha->bars, in qlafx00_iospace_config() 824 ha->bars, ha->cregbase, ha->iobase); in qlafx00_iospace_config()
|
D | qla_def.h | 3489 int bars; member
|
/drivers/message/fusion/ |
D | mptbase.c | 1652 ioc->bars = pci_select_bars(pdev, IORESOURCE_MEM); in mpt_mapresources() 1658 if (pci_request_selected_regions(pdev, ioc->bars, "mpt")) { in mpt_mapresources() 1745 pci_release_selected_regions(pdev, ioc->bars); in mpt_mapresources() 2019 pci_release_selected_regions(pdev, ioc->bars); in mpt_attach() 2064 pci_release_selected_regions(pdev, ioc->bars); in mpt_attach() 2173 pci_release_selected_regions(pdev, ioc->bars); in mpt_suspend() 2398 pci_release_selected_regions(ioc->pcidev, ioc->bars); in mpt_do_ioc_recovery() 2399 ioc->bars = pci_select_bars(ioc->pcidev, IORESOURCE_MEM | in mpt_do_ioc_recovery() 2403 if (pci_request_selected_regions(ioc->pcidev, ioc->bars, in mpt_do_ioc_recovery() 2841 pci_release_selected_regions(ioc->pcidev, ioc->bars); in mpt_adapter_dispose()
|
D | mptbase.h | 675 int bars; /* bitmask of BAR's that must be configured */ member
|
/drivers/media/common/v4l2-tpg/ |
D | v4l2-tpg-core.c | 1436 static const enum tpg_color bars[3][8] = { in tpg_get_color() enum 1458 return bars[tpg->pattern][((x * 8) / tpg->src_width) % 8]; in tpg_get_color() 1460 return bars[1][(pat_line + (x * 8) / tpg->src_width) % 8]; in tpg_get_color() 1462 return bars[1][pat_line]; in tpg_get_color()
|
/drivers/scsi/mpt3sas/ |
D | mpt3sas_base.c | 2077 pci_release_selected_regions(ioc->pdev, ioc->bars); in mpt3sas_base_unmap_resources() 2103 ioc->bars = pci_select_bars(pdev, IORESOURCE_MEM); in mpt3sas_base_map_resources() 2107 ioc->bars = 0; in mpt3sas_base_map_resources() 2112 if (pci_request_selected_regions(pdev, ioc->bars, in mpt3sas_base_map_resources() 2116 ioc->bars = 0; in mpt3sas_base_map_resources()
|
D | mpt3sas_base.h | 981 int bars; member
|
/drivers/net/ethernet/amazon/ena/ |
D | ena_netdev.c | 3127 int io_queue_num, bars, rc; in ena_probe() local 3152 bars = pci_select_bars(pdev, IORESOURCE_MEM) & ENA_BAR_MASK; in ena_probe() 3153 rc = pci_request_selected_regions(pdev, bars, DRV_MODULE_NAME); in ena_probe()
|
/drivers/net/ethernet/intel/e1000e/ |
D | netdev.c | 7056 int bars, i, err, pci_using_dac; in e1000_probe() local 7085 bars = pci_select_bars(pdev, IORESOURCE_MEM); in e1000_probe() 7086 err = pci_request_selected_regions_exclusive(pdev, bars, in e1000_probe()
|