/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 …]
|
/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()
|
/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 …]
|
/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 …]
|
/drivers/pci/ |
D | pci.c | 1249 int __weak pcibios_enable_device(struct pci_dev *dev, int bars) in pcibios_enable_device() argument 1251 return pci_enable_resources(dev, bars); in pcibios_enable_device() 1254 static int do_pci_enable_device(struct pci_dev *dev, int bars) in do_pci_enable_device() argument 1269 err = pcibios_enable_device(dev, bars); in do_pci_enable_device() 1329 int i, bars = 0; in pci_enable_device_flags() local 1349 bars |= (1 << i); in pci_enable_device_flags() 1352 bars |= (1 << i); in pci_enable_device_flags() 1354 err = do_pci_enable_device(dev, bars); in pci_enable_device_flags() 2937 void pci_release_selected_regions(struct pci_dev *pdev, int bars) in pci_release_selected_regions() argument 2942 if (bars & (1 << i)) in pci_release_selected_regions() [all …]
|
D | iov.c | 248 int bars = 0; in sriov_enable() local 268 bars |= (1 << (i + PCI_IOV_RESOURCES)); in sriov_enable() 285 if (pci_enable_resources(dev, bars)) { in sriov_enable()
|
/drivers/tty/serial/ |
D | rp2.c | 727 void __iomem * const *bars; in rp2_probe() local 744 bars = pcim_iomap_table(pdev); in rp2_probe() 745 card->bar0 = bars[0]; in rp2_probe() 746 card->bar1 = bars[1]; in rp2_probe()
|
/drivers/net/ethernet/atheros/alx/ |
D | main.c | 1252 int bars, err; in alx_probe() local 1272 bars = pci_select_bars(pdev, IORESOURCE_MEM); in alx_probe() 1273 err = pci_request_selected_regions(pdev, bars, alx_drv_name); in alx_probe() 1276 "pci_request_selected_regions failed(bars:%d)\n", bars); in alx_probe() 1402 pci_release_selected_regions(pdev, bars); in alx_probe()
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sriov.h | 67 struct bnx2x_vf_bar bars[PCI_SRIOV_NUM_BARS]; member 189 struct bnx2x_vf_bar bars[PCI_SRIOV_NUM_BARS]; member
|
D | bnx2x_sriov.c | 1075 vf->bars[n].bar = start + size * vf->abs_vfid; in bnx2x_vf_set_bars() 1076 vf->bars[n].size = size; in bnx2x_vf_set_bars() 1627 (unsigned)vf->bars[0].bar, vf->bars[0].size, in bnx2x_iov_nic_init() 1628 (unsigned)vf->bars[1].bar, vf->bars[1].size, in bnx2x_iov_nic_init() 1629 (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 | 964 int bars, need_ioport; in e1000_probe() local 970 bars = pci_select_bars(pdev, IORESOURCE_MEM | IORESOURCE_IO); in e1000_probe() 973 bars = pci_select_bars(pdev, IORESOURCE_MEM); in e1000_probe() 979 err = pci_request_selected_regions(pdev, bars, e1000_driver_name); in e1000_probe() 1000 adapter->bars = bars; in e1000_probe() 1269 pci_release_selected_regions(pdev, bars); in e1000_probe() 1307 pci_release_selected_regions(pdev, adapter->bars); in e1000_remove()
|
/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()
|
/drivers/scsi/qla2xxx/ |
D | qla_os.c | 1495 if (pci_request_selected_regions(ha->pdev, ha->bars, in qla2x00_iospace_config() 1502 if (!(ha->bars & 1)) in qla2x00_iospace_config() 1603 if (pci_request_selected_regions(ha->pdev, ha->bars, in qla83xx_iospace_config() 2272 int bars, mem_only = 0; in qla2x00_probe_one() local 2276 bars = pci_select_bars(pdev, IORESOURCE_MEM | IORESOURCE_IO); in qla2x00_probe_one() 2293 bars = pci_select_bars(pdev, IORESOURCE_MEM); in qla2x00_probe_one() 2299 "Bars=%d.\n", bars); in qla2x00_probe_one() 2326 ha->bars = bars; in qla2x00_probe_one() 2911 pci_release_selected_regions(ha->pdev, ha->bars); in qla2x00_probe_one() 3150 pci_release_selected_regions(ha->pdev, ha->bars); in qla2x00_remove_one() [all …]
|
D | qla_mr.c | 743 if (pci_request_selected_regions(ha->pdev, ha->bars, in qlafx00_iospace_config() 799 ha->bars, ha->cregbase, ha->iobase); in qlafx00_iospace_config()
|
D | qla_def.h | 2980 int bars; member
|
/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()
|
/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
|
/drivers/nvme/host/ |
D | pci.c | 3299 int bars; in nvme_dev_map() local 3302 bars = pci_select_bars(pdev, IORESOURCE_MEM); in nvme_dev_map() 3303 if (!bars) in nvme_dev_map() 3305 if (pci_request_selected_regions(pdev, bars, "nvme")) in nvme_dev_map()
|
/drivers/scsi/mpt3sas/ |
D | mpt3sas_base.c | 2036 pci_release_selected_regions(ioc->pdev, ioc->bars); in mpt3sas_base_unmap_resources() 2062 ioc->bars = pci_select_bars(pdev, IORESOURCE_MEM); in mpt3sas_base_map_resources() 2066 ioc->bars = 0; in mpt3sas_base_map_resources() 2071 if (pci_request_selected_regions(pdev, ioc->bars, in mpt3sas_base_map_resources() 2075 ioc->bars = 0; in mpt3sas_base_map_resources()
|
D | mpt3sas_base.h | 960 int bars; member
|
/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() 9704 int bars = pci_select_bars(pdev, IORESOURCE_MEM); in lpfc_pci_remove_one_s3() local 9779 pci_release_selected_regions(pdev, bars); in lpfc_pci_remove_one_s3()
|
/drivers/net/ethernet/intel/e1000e/ |
D | netdev.c | 7008 int bars, i, err, pci_using_dac; in e1000_probe() local 7037 bars = pci_select_bars(pdev, IORESOURCE_MEM); in e1000_probe() 7038 err = pci_request_selected_regions_exclusive(pdev, bars, in e1000_probe()
|