Home
last modified time | relevance | path

Searched refs:bars (Results 1 – 33 of 33) sorted by relevance

/linux-4.1.27/drivers/ide/
Dsetup-pci.c194 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.1.27/drivers/mfd/
Dsta2x11-mfd.c543 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.1.27/drivers/misc/genwqe/
Dcard_base.c185 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.1.27/arch/s390/pci/
Dpci.c279 idx = zdev->bars[bar].map_idx; in pci_iomap_range()
605 if (!zdev->bars[i].size) in zpci_setup_bus_resources()
610 zdev->bars[i].map_idx = entry; in zpci_setup_bus_resources()
614 if (zdev->bars[i].val & 8) in zpci_setup_bus_resources()
616 if (zdev->bars[i].val & 4) in zpci_setup_bus_resources()
621 size = 1UL << zdev->bars[i].size; in zpci_setup_bus_resources()
628 zdev->bars[i].res = res; in zpci_setup_bus_resources()
640 if (!zdev->bars[i].size) in zpci_cleanup_bus_resources()
643 zpci_free_iomap(zdev, zdev->bars[i].map_idx); in zpci_cleanup_bus_resources()
644 release_resource(zdev->bars[i].res); in zpci_cleanup_bus_resources()
[all …]
Dpci_clp.c111 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.1.27/drivers/scsi/csiostor/
Dcsio_init.c198 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.1.27/drivers/pci/
Dpci.c1199 int __weak pcibios_enable_device(struct pci_dev *dev, int bars) in pcibios_enable_device() argument
1201 return pci_enable_resources(dev, bars); in pcibios_enable_device()
1204 static int do_pci_enable_device(struct pci_dev *dev, int bars) in do_pci_enable_device() argument
1219 err = pcibios_enable_device(dev, bars); in do_pci_enable_device()
1279 int i, bars = 0; in pci_enable_device_flags() local
1303 bars |= (1 << i); in pci_enable_device_flags()
1306 bars |= (1 << i); in pci_enable_device_flags()
1308 err = do_pci_enable_device(dev, bars); in pci_enable_device_flags()
2632 void pci_release_selected_regions(struct pci_dev *pdev, int bars) in pci_release_selected_regions() argument
2637 if (bars & (1 << i)) in pci_release_selected_regions()
[all …]
Diov.c237 int bars = 0; in sriov_enable() local
263 bars |= (1 << (i + PCI_IOV_RESOURCES)); in sriov_enable()
283 if (pci_enable_resources(dev, bars)) { in sriov_enable()
/linux-4.1.27/drivers/tty/serial/
Drp2.c745 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.1.27/arch/s390/include/asm/
Dpci.h104 struct zpci_bar_struct bars[PCI_BAR_COUNT]; member
/linux-4.1.27/Documentation/devicetree/bindings/i2c/
Di2c-pxa-pci-ce4100.txt5 PCI device has three PCI-bars, each bar contains a complete I2C
/linux-4.1.27/drivers/net/ethernet/atheros/alx/
Dmain.c1243 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.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sriov.h65 struct bnx2x_vf_bar bars[PCI_SRIOV_NUM_BARS]; member
188 struct bnx2x_vf_bar bars[PCI_SRIOV_NUM_BARS]; member
Dbnx2x_sriov.c1119 vf->bars[n].bar = start + size * vf->abs_vfid; in bnx2x_vf_set_bars()
1120 vf->bars[n].size = size; in bnx2x_vf_set_bars()
1661 (unsigned)vf->bars[0].bar, vf->bars[0].size, in bnx2x_iov_nic_init()
1662 (unsigned)vf->bars[1].bar, vf->bars[1].size, in bnx2x_iov_nic_init()
1663 (unsigned)vf->bars[2].bar, vf->bars[2].size); in bnx2x_iov_nic_init()
/linux-4.1.27/drivers/net/ethernet/intel/e1000/
De1000.h317 int bars; member
De1000_main.c952 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.1.27/tools/perf/Documentation/
Dperf-timechart.txt30 There are also poll bars which show how much time application spent
/linux-4.1.27/drivers/scsi/qla2xxx/
Dqla_os.c1518 if (pci_request_selected_regions(ha->pdev, ha->bars, in qla2x00_iospace_config()
1525 if (!(ha->bars & 1)) in qla2x00_iospace_config()
1626 if (pci_request_selected_regions(ha->pdev, ha->bars, in qla83xx_iospace_config()
2286 int bars, mem_only = 0; in qla2x00_probe_one() local
2290 bars = pci_select_bars(pdev, IORESOURCE_MEM | IORESOURCE_IO); in qla2x00_probe_one()
2306 bars = pci_select_bars(pdev, IORESOURCE_MEM); in qla2x00_probe_one()
2312 "Bars=%d.\n", bars); in qla2x00_probe_one()
2339 ha->bars = bars; in qla2x00_probe_one()
2923 pci_release_selected_regions(ha->pdev, ha->bars); in qla2x00_probe_one()
3159 pci_release_selected_regions(ha->pdev, ha->bars); in qla2x00_remove_one()
[all …]
Dqla_mr.c766 if (pci_request_selected_regions(ha->pdev, ha->bars, in qlafx00_iospace_config()
822 ha->bars, ha->cregbase, ha->iobase); in qlafx00_iospace_config()
Dqla_def.h2980 int bars; member
/linux-4.1.27/drivers/ntb/
Dntb_hw.c1601 u32 bars; in ntb_xeon_detect() local
1642 bars = hweight32(bars_mask); in ntb_xeon_detect()
1643 if (bars == (HSX_SPLITBAR_MAX_MW + 1)) in ntb_xeon_detect()
/linux-4.1.27/drivers/media/platform/vivid/
Dvivid-tpg.c1115 static const enum tpg_color bars[3][8] = { in tpg_get_color() enum
1137 return bars[tpg->pattern][((x * 8) / tpg->src_width) % 8]; in tpg_get_color()
1139 return bars[1][(pat_line + (x * 8) / tpg->src_width) % 8]; in tpg_get_color()
1141 return bars[1][pat_line]; in tpg_get_color()
/linux-4.1.27/drivers/message/fusion/
Dmptbase.c1656 ioc->bars = pci_select_bars(pdev, IORESOURCE_MEM); in mpt_mapresources()
1662 if (pci_request_selected_regions(pdev, ioc->bars, "mpt")) { in mpt_mapresources()
1749 pci_release_selected_regions(pdev, ioc->bars); in mpt_mapresources()
1878 pci_release_selected_regions(pdev, ioc->bars); in mpt_attach()
2013 pci_release_selected_regions(pdev, ioc->bars); in mpt_attach()
2150 pci_release_selected_regions(pdev, ioc->bars); in mpt_suspend()
2375 pci_release_selected_regions(ioc->pcidev, ioc->bars); in mpt_do_ioc_recovery()
2376 ioc->bars = pci_select_bars(ioc->pcidev, IORESOURCE_MEM | in mpt_do_ioc_recovery()
2380 if (pci_request_selected_regions(ioc->pcidev, ioc->bars, in mpt_do_ioc_recovery()
2821 pci_release_selected_regions(ioc->pcidev, ioc->bars); in mpt_adapter_dispose()
Dmptbase.h676 int bars; /* bitmask of BAR's that must be configured */ member
/linux-4.1.27/drivers/scsi/mpt2sas/
Dmpt2sas_base.c1530 ioc->bars = pci_select_bars(pdev, IORESOURCE_MEM); in mpt2sas_base_map_resources()
1534 ioc->bars = 0; in mpt2sas_base_map_resources()
1539 if (pci_request_selected_regions(pdev, ioc->bars, in mpt2sas_base_map_resources()
1543 ioc->bars = 0; in mpt2sas_base_map_resources()
1619 pci_release_selected_regions(ioc->pdev, ioc->bars); in mpt2sas_base_map_resources()
4453 pci_release_selected_regions(ioc->pdev, ioc->bars); in mpt2sas_base_free_resources()
Dmpt2sas_base.h816 int bars; member
/linux-4.1.27/drivers/scsi/mpt3sas/
Dmpt3sas_base.c1815 ioc->bars = pci_select_bars(pdev, IORESOURCE_MEM); in mpt3sas_base_map_resources()
1819 ioc->bars = 0; in mpt3sas_base_map_resources()
1824 if (pci_request_selected_regions(pdev, ioc->bars, in mpt3sas_base_map_resources()
1828 ioc->bars = 0; in mpt3sas_base_map_resources()
1901 pci_release_selected_regions(ioc->pdev, ioc->bars); in mpt3sas_base_map_resources()
4585 pci_release_selected_regions(ioc->pdev, ioc->bars); in mpt3sas_base_free_resources()
Dmpt3sas_base.h749 int bars; member
/linux-4.1.27/arch/sparc/kernel/
Dleon_pci_grpci2.c76 unsigned int bars[6]; /* 0x20 read-only PCI BARs */ member
/linux-4.1.27/drivers/block/
Dnvme-core.c2354 int bars, result = -ENOMEM; in nvme_dev_map() local
2362 bars = pci_select_bars(pdev, IORESOURCE_MEM); in nvme_dev_map()
2363 if (!bars) in nvme_dev_map()
2366 if (pci_request_selected_regions(pdev, bars, "nvme")) in nvme_dev_map()
/linux-4.1.27/drivers/scsi/lpfc/
Dlpfc_init.c4768 int bars = 0; in lpfc_enable_pci_dev() local
4776 bars = pci_select_bars(pdev, IORESOURCE_MEM); in lpfc_enable_pci_dev()
4781 if (pci_request_selected_regions(pdev, bars, LPFC_DRIVER_NAME)) in lpfc_enable_pci_dev()
4798 "1401 Failed to enable pci device, bars:x%x\n", bars); in lpfc_enable_pci_dev()
4813 int bars; in lpfc_disable_pci_dev() local
4821 bars = pci_select_bars(pdev, IORESOURCE_MEM); in lpfc_disable_pci_dev()
4823 pci_release_selected_regions(pdev, bars); in lpfc_disable_pci_dev()
9680 int bars = pci_select_bars(pdev, IORESOURCE_MEM); in lpfc_pci_remove_one_s3() local
9755 pci_release_selected_regions(pdev, bars); in lpfc_pci_remove_one_s3()
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
Dnetdev.c6758 int bars, i, err, pci_using_dac; in e1000_probe() local
6787 bars = pci_select_bars(pdev, IORESOURCE_MEM); in e1000_probe()
6788 err = pci_request_selected_regions_exclusive(pdev, bars, in e1000_probe()
/linux-4.1.27/Documentation/scsi/
DChangeLog.lpfc1734 kernel virtual memory mappings to the mapped bars Removed