Home
last modified time | relevance | path

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

/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 …]
/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()
/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 …]
/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 …]
/drivers/pci/
Dpci.c1249 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 …]
Diov.c248 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/
Drp2.c727 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/
Dmain.c1252 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/
Dbnx2x_sriov.h67 struct bnx2x_vf_bar bars[PCI_SRIOV_NUM_BARS]; member
189 struct bnx2x_vf_bar bars[PCI_SRIOV_NUM_BARS]; member
Dbnx2x_sriov.c1075 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/
De1000.h320 int bars; member
De1000_main.c964 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/
Dvirtio_pci_modern.c507 u32 ioresource_types, int *bars) in virtio_pci_find_capability() argument
529 *bars |= (1 << bar); in virtio_pci_find_capability()
/drivers/scsi/qla2xxx/
Dqla_os.c1495 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 …]
Dqla_mr.c743 if (pci_request_selected_regions(ha->pdev, ha->bars, in qlafx00_iospace_config()
799 ha->bars, ha->cregbase, ha->iobase); in qlafx00_iospace_config()
Dqla_def.h2980 int bars; member
/drivers/media/platform/vivid/
Dvivid-tpg.c1280 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/
Dmptbase.c1652 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()
Dmptbase.h675 int bars; /* bitmask of BAR's that must be configured */ member
/drivers/nvme/host/
Dpci.c3299 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/
Dmpt3sas_base.c2036 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()
Dmpt3sas_base.h960 int bars; member
/drivers/scsi/lpfc/
Dlpfc_init.c4788 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/
Dnetdev.c7008 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()