/linux-4.4.14/drivers/ide/ |
D | setup-pci.c | 194 int ret, bars; in ide_pci_enable() local 220 bars = (1 << 2) - 1; in ide_pci_enable() 222 bars = (1 << 4) - 1; in ide_pci_enable() 226 bars |= (1 << 2); in ide_pci_enable() 228 bars |= (1 << 4); in ide_pci_enable() 231 ret = pci_request_selected_regions(dev, bars, d->name); in ide_pci_enable() 608 int bars; in ide_pci_remove() local 611 bars = (1 << 2) - 1; in ide_pci_remove() 613 bars = (1 << 4) - 1; in ide_pci_remove() 617 bars |= (1 << 2); in ide_pci_remove() [all …]
|
/linux-4.4.14/drivers/mfd/ |
D | sta2x11-mfd.c | 543 struct sta2x11_mfd_bar_setup_data bars[2]; member 552 .bars = { 565 .bars = { 582 for (i = 0; i < ARRAY_SIZE(sd->bars); i++) in sta2x11_mfd_setup() 583 for (j = 0; j < sd->bars[i].ncells; j++) { in sta2x11_mfd_setup() 584 sd->bars[i].cells[j].pdata_size = sizeof(pdev); in sta2x11_mfd_setup() 585 sd->bars[i].cells[j].platform_data = &pdev; in sta2x11_mfd_setup() 621 setup_data->bars[i].cells, in sta2x11_mfd_probe() 622 setup_data->bars[i].ncells, in sta2x11_mfd_probe()
|
/linux-4.4.14/arch/s390/pci/ |
D | pci.c | 274 idx = zdev->bars[bar].map_idx; in pci_iomap_range() 600 if (!zdev->bars[i].size) in zpci_setup_bus_resources() 605 zdev->bars[i].map_idx = entry; in zpci_setup_bus_resources() 609 if (zdev->bars[i].val & 8) in zpci_setup_bus_resources() 611 if (zdev->bars[i].val & 4) in zpci_setup_bus_resources() 616 size = 1UL << zdev->bars[i].size; in zpci_setup_bus_resources() 623 zdev->bars[i].res = res; in zpci_setup_bus_resources() 635 if (!zdev->bars[i].size || !zdev->bars[i].res) in zpci_cleanup_bus_resources() 638 zpci_free_iomap(zdev, zdev->bars[i].map_idx); in zpci_cleanup_bus_resources() 639 release_resource(zdev->bars[i].res); in zpci_cleanup_bus_resources() [all …]
|
D | pci_clp.c | 111 zdev->bars[i].val = le32_to_cpu(response->bar[i]); in clp_store_query_pci_fn() 112 zdev->bars[i].size = response->bar_size[i]; in clp_store_query_pci_fn()
|
/linux-4.4.14/drivers/misc/genwqe/ |
D | card_base.c | 185 int bars, rc = 0; in genwqe_bus_reset() local 196 bars = pci_select_bars(pci_dev, IORESOURCE_MEM); in genwqe_bus_reset() 197 pci_release_selected_regions(pci_dev, bars); in genwqe_bus_reset() 221 rc = pci_request_selected_regions(pci_dev, bars, genwqe_driver_name); in genwqe_bus_reset() 1071 int err, bars; in genwqe_pci_setup() local 1074 bars = pci_select_bars(pci_dev, IORESOURCE_MEM); in genwqe_pci_setup() 1083 err = pci_request_selected_regions(pci_dev, bars, genwqe_driver_name); in genwqe_pci_setup() 1145 pci_release_selected_regions(pci_dev, bars); in genwqe_pci_setup() 1157 int bars; in genwqe_pci_remove() local 1163 bars = pci_select_bars(pci_dev, IORESOURCE_MEM); in genwqe_pci_remove() [all …]
|
/linux-4.4.14/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() 950 int bars; in csio_probe_one() local 959 rv = csio_pci_init(pdev, &bars); in csio_probe_one() 1017 csio_pci_exit(pdev, &bars); in csio_probe_one() 1032 int bars = pci_select_bars(pdev, IORESOURCE_MEM); in csio_remove_one() local [all …]
|
/linux-4.4.14/drivers/pci/ |
D | pci.c | 1244 int __weak pcibios_enable_device(struct pci_dev *dev, int bars) in pcibios_enable_device() argument 1246 return pci_enable_resources(dev, bars); in pcibios_enable_device() 1249 static int do_pci_enable_device(struct pci_dev *dev, int bars) in do_pci_enable_device() argument 1264 err = pcibios_enable_device(dev, bars); in do_pci_enable_device() 1324 int i, bars = 0; in pci_enable_device_flags() local 1348 bars |= (1 << i); in pci_enable_device_flags() 1351 bars |= (1 << i); in pci_enable_device_flags() 1353 err = do_pci_enable_device(dev, bars); in pci_enable_device_flags() 2917 void pci_release_selected_regions(struct pci_dev *pdev, int bars) in pci_release_selected_regions() argument 2922 if (bars & (1 << i)) in pci_release_selected_regions() [all …]
|
D | iov.c | 247 int bars = 0; in sriov_enable() local 267 bars |= (1 << (i + PCI_IOV_RESOURCES)); in sriov_enable() 284 if (pci_enable_resources(dev, bars)) { in sriov_enable()
|
/linux-4.4.14/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()
|
/linux-4.4.14/arch/s390/include/asm/ |
D | pci.h | 106 struct zpci_bar_struct bars[PCI_BAR_COUNT]; member
|
/linux-4.4.14/Documentation/devicetree/bindings/i2c/ |
D | i2c-pxa-pci-ce4100.txt | 5 PCI device has three PCI-bars, each bar contains a complete I2C
|
/linux-4.4.14/drivers/net/ethernet/atheros/alx/ |
D | main.c | 1243 int bars, err; in alx_probe() local 1263 bars = pci_select_bars(pdev, IORESOURCE_MEM); in alx_probe() 1264 err = pci_request_selected_regions(pdev, bars, alx_drv_name); in alx_probe() 1267 "pci_request_selected_regions failed(bars:%d)\n", bars); in alx_probe() 1393 pci_release_selected_regions(pdev, bars); in alx_probe()
|
/linux-4.4.14/drivers/net/ethernet/intel/e1000/ |
D | e1000.h | 317 int bars; member
|
D | e1000_main.c | 952 int bars, need_ioport; in e1000_probe() local 957 bars = pci_select_bars(pdev, IORESOURCE_MEM | IORESOURCE_IO); in e1000_probe() 960 bars = pci_select_bars(pdev, IORESOURCE_MEM); in e1000_probe() 966 err = pci_request_selected_regions(pdev, bars, e1000_driver_name); in e1000_probe() 987 adapter->bars = bars; in e1000_probe() 1255 pci_release_selected_regions(pdev, bars); in e1000_probe() 1291 pci_release_selected_regions(pdev, adapter->bars); in e1000_remove()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sriov.h | 67 struct bnx2x_vf_bar bars[PCI_SRIOV_NUM_BARS]; member 187 struct bnx2x_vf_bar bars[PCI_SRIOV_NUM_BARS]; member
|
D | bnx2x_sriov.c | 1069 vf->bars[n].bar = start + size * vf->abs_vfid; in bnx2x_vf_set_bars() 1070 vf->bars[n].size = size; in bnx2x_vf_set_bars() 1619 (unsigned)vf->bars[0].bar, vf->bars[0].size, in bnx2x_iov_nic_init() 1620 (unsigned)vf->bars[1].bar, vf->bars[1].size, in bnx2x_iov_nic_init() 1621 (unsigned)vf->bars[2].bar, vf->bars[2].size); in bnx2x_iov_nic_init()
|
/linux-4.4.14/drivers/virtio/ |
D | virtio_pci_modern.c | 507 u32 ioresource_types, int *bars) in virtio_pci_find_capability() argument 529 *bars |= (1 << bar); in virtio_pci_find_capability()
|
/linux-4.4.14/tools/perf/Documentation/ |
D | perf-timechart.txt | 30 There are also poll bars which show how much time application spent
|
/linux-4.4.14/drivers/scsi/qla2xxx/ |
D | qla_os.c | 1506 if (pci_request_selected_regions(ha->pdev, ha->bars, in qla2x00_iospace_config() 1513 if (!(ha->bars & 1)) in qla2x00_iospace_config() 1614 if (pci_request_selected_regions(ha->pdev, ha->bars, in qla83xx_iospace_config() 2281 int bars, mem_only = 0; in qla2x00_probe_one() local 2285 bars = pci_select_bars(pdev, IORESOURCE_MEM | IORESOURCE_IO); in qla2x00_probe_one() 2302 bars = pci_select_bars(pdev, IORESOURCE_MEM); in qla2x00_probe_one() 2308 "Bars=%d.\n", bars); in qla2x00_probe_one() 2335 ha->bars = bars; in qla2x00_probe_one() 2920 pci_release_selected_regions(ha->pdev, ha->bars); in qla2x00_probe_one() 3155 pci_release_selected_regions(ha->pdev, ha->bars); in qla2x00_remove_one() [all …]
|
D | qla_mr.c | 766 if (pci_request_selected_regions(ha->pdev, ha->bars, in qlafx00_iospace_config() 822 ha->bars, ha->cregbase, ha->iobase); in qlafx00_iospace_config()
|
D | qla_def.h | 2980 int bars; member
|
/linux-4.4.14/drivers/media/platform/vivid/ |
D | vivid-tpg.c | 1280 static const enum tpg_color bars[3][8] = { in tpg_get_color() enum 1302 return bars[tpg->pattern][((x * 8) / tpg->src_width) % 8]; in tpg_get_color() 1304 return bars[1][(pat_line + (x * 8) / tpg->src_width) % 8]; in tpg_get_color() 1306 return bars[1][pat_line]; in tpg_get_color()
|
/linux-4.4.14/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() 1874 pci_release_selected_regions(pdev, ioc->bars); in mpt_attach() 2009 pci_release_selected_regions(pdev, ioc->bars); in mpt_attach() 2146 pci_release_selected_regions(pdev, ioc->bars); in mpt_suspend() 2371 pci_release_selected_regions(ioc->pcidev, ioc->bars); in mpt_do_ioc_recovery() 2372 ioc->bars = pci_select_bars(ioc->pcidev, IORESOURCE_MEM | in mpt_do_ioc_recovery() 2376 if (pci_request_selected_regions(ioc->pcidev, ioc->bars, in mpt_do_ioc_recovery() 2817 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
|
/linux-4.4.14/arch/sparc/kernel/ |
D | leon_pci_grpci2.c | 76 unsigned int bars[6]; /* 0x20 read-only PCI BARs */ member
|
/linux-4.4.14/drivers/nvme/host/ |
D | pci.c | 2678 int bars, result = -ENOMEM; in nvme_dev_map() local 2686 bars = pci_select_bars(pdev, IORESOURCE_MEM); in nvme_dev_map() 2687 if (!bars) in nvme_dev_map() 2690 if (pci_request_selected_regions(pdev, bars, "nvme")) in nvme_dev_map()
|
/linux-4.4.14/drivers/scsi/mpt3sas/ |
D | mpt3sas_base.c | 2032 pci_release_selected_regions(ioc->pdev, ioc->bars); in mpt3sas_base_unmap_resources() 2058 ioc->bars = pci_select_bars(pdev, IORESOURCE_MEM); in mpt3sas_base_map_resources() 2062 ioc->bars = 0; in mpt3sas_base_map_resources() 2067 if (pci_request_selected_regions(pdev, ioc->bars, in mpt3sas_base_map_resources() 2071 ioc->bars = 0; in mpt3sas_base_map_resources()
|
D | mpt3sas_base.h | 946 int bars; member
|
/linux-4.4.14/drivers/scsi/lpfc/ |
D | lpfc_init.c | 4788 int bars = 0; in lpfc_enable_pci_dev() local 4796 bars = pci_select_bars(pdev, IORESOURCE_MEM); in lpfc_enable_pci_dev() 4801 if (pci_request_selected_regions(pdev, bars, LPFC_DRIVER_NAME)) in lpfc_enable_pci_dev() 4818 "1401 Failed to enable pci device, bars:x%x\n", bars); in lpfc_enable_pci_dev() 4833 int bars; in lpfc_disable_pci_dev() local 4841 bars = pci_select_bars(pdev, IORESOURCE_MEM); in lpfc_disable_pci_dev() 4843 pci_release_selected_regions(pdev, bars); in lpfc_disable_pci_dev() 9698 int bars = pci_select_bars(pdev, IORESOURCE_MEM); in lpfc_pci_remove_one_s3() local 9773 pci_release_selected_regions(pdev, bars); in lpfc_pci_remove_one_s3()
|
/linux-4.4.14/Documentation/DocBook/ |
D | kernel-api.xml.db | 473 API-pci-select-bars
|
/linux-4.4.14/drivers/net/ethernet/intel/e1000e/ |
D | netdev.c | 6979 int bars, i, err, pci_using_dac; in e1000_probe() local 7008 bars = pci_select_bars(pdev, IORESOURCE_MEM); in e1000_probe() 7009 err = pci_request_selected_regions_exclusive(pdev, bars, in e1000_probe()
|
/linux-4.4.14/Documentation/scsi/ |
D | ChangeLog.lpfc | 1734 kernel virtual memory mappings to the mapped bars Removed
|