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.c547 struct sta2x11_mfd_bar_setup_data bars[2]; member
556 .bars = {
569 .bars = {
586 for (i = 0; i < ARRAY_SIZE(sd->bars); i++) in sta2x11_mfd_setup()
587 for (j = 0; j < sd->bars[i].ncells; j++) { in sta2x11_mfd_setup()
588 sd->bars[i].cells[j].pdata_size = sizeof(pdev); in sta2x11_mfd_setup()
589 sd->bars[i].cells[j].platform_data = &pdev; in sta2x11_mfd_setup()
625 setup_data->bars[i].cells, in sta2x11_mfd_probe()
626 setup_data->bars[i].ncells, in sta2x11_mfd_probe()
/drivers/media/platform/
Dvivi.c259 u8 bars[9][3]; member
300 static const struct bar_std bars[] = { variable
316 #define NUM_INPUTS ARRAY_SIZE(bars)
334 r = bars[dev->input].bar[k][0]; in precalculate_bars()
335 g = bars[dev->input].bar[k][1]; in precalculate_bars()
336 b = bars[dev->input].bar[k][2]; in precalculate_bars()
364 dev->bars[k][0] = TO_Y(r, g, b); /* Luma */ in precalculate_bars()
365 dev->bars[k][1] = TO_U(r, g, b); /* Cb */ in precalculate_bars()
366 dev->bars[k][2] = TO_V(r, g, b); /* Cr */ in precalculate_bars()
368 dev->bars[k][0] = r; in precalculate_bars()
[all …]
/drivers/scsi/csiostor/
Dcsio_init.c201 csio_pci_init(struct pci_dev *pdev, int *bars) in csio_pci_init() argument
205 *bars = pci_select_bars(pdev, IORESOURCE_MEM); in csio_pci_init()
210 if (pci_request_selected_regions(pdev, *bars, KBUILD_MODNAME)) in csio_pci_init()
228 pci_release_selected_regions(pdev, *bars); in csio_pci_init()
243 csio_pci_exit(struct pci_dev *pdev, int *bars) in csio_pci_exit() argument
245 pci_release_selected_regions(pdev, *bars); in csio_pci_exit()
953 int bars; in csio_probe_one() local
958 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.c1119 static int do_pci_enable_device(struct pci_dev *dev, int bars) in do_pci_enable_device() argument
1126 err = pcibios_enable_device(dev, bars); in do_pci_enable_device()
1151 int i, bars = 0; in pci_enable_device_flags() local
1171 bars |= (1 << i); in pci_enable_device_flags()
1174 bars |= (1 << i); in pci_enable_device_flags()
1176 err = do_pci_enable_device(dev, bars); in pci_enable_device_flags()
2608 void pci_release_selected_regions(struct pci_dev *pdev, int bars) in pci_release_selected_regions() argument
2613 if (bars & (1 << i)) in pci_release_selected_regions()
2617 static int __pci_request_selected_regions(struct pci_dev *pdev, int bars, in __pci_request_selected_regions() argument
2623 if (bars & (1 << i)) in __pci_request_selected_regions()
[all …]
Diov.c284 int bars = 0; in sriov_enable() local
309 bars |= (1 << (i + PCI_IOV_RESOURCES)); in sriov_enable()
327 if (pci_enable_resources(dev, bars)) { in sriov_enable()
/drivers/tty/serial/
Drp2.c743 void __iomem * const *bars; in rp2_probe() local
761 bars = pcim_iomap_table(pdev); in rp2_probe()
762 card->bar0 = bars[0]; in rp2_probe()
763 card->bar1 = bars[1]; in rp2_probe()
/drivers/net/ethernet/atheros/alx/
Dmain.c1249 int bars, pm_cap, err; in alx_probe() local
1275 bars = pci_select_bars(pdev, IORESOURCE_MEM); in alx_probe()
1276 err = pci_request_selected_regions(pdev, bars, alx_drv_name); in alx_probe()
1279 "pci_request_selected_regions failed(bars:%d)\n", bars); in alx_probe()
1412 pci_release_selected_regions(pdev, bars); in alx_probe()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sriov.c1790 vf->bars[n].bar = start + size * vf->abs_vfid; in bnx2x_vf_set_bars()
1791 vf->bars[n].size = size; in bnx2x_vf_set_bars()
2244 (unsigned)vf->bars[0].bar, vf->bars[0].size, in bnx2x_iov_nic_init()
2245 (unsigned)vf->bars[1].bar, vf->bars[1].size, in bnx2x_iov_nic_init()
2246 (unsigned)vf->bars[2].bar, vf->bars[2].size); in bnx2x_iov_nic_init()
2990 bar_info->bars[n] = vf->bars[n]; in bnx2x_vf_get_bars()
Dbnx2x_sriov.h63 struct bnx2x_vf_bar bars[PCI_SRIOV_NUM_BARS]; member
254 struct bnx2x_vf_bar bars[PCI_SRIOV_NUM_BARS]; member
/drivers/net/ethernet/intel/e1000/
De1000.h306 int bars; member
De1000_main.c953 int bars, need_ioport; in e1000_probe() local
958 bars = pci_select_bars(pdev, IORESOURCE_MEM | IORESOURCE_IO); in e1000_probe()
961 bars = pci_select_bars(pdev, IORESOURCE_MEM); in e1000_probe()
967 err = pci_request_selected_regions(pdev, bars, e1000_driver_name); in e1000_probe()
988 adapter->bars = bars; in e1000_probe()
1258 pci_release_selected_regions(pdev, bars); in e1000_probe()
1294 pci_release_selected_regions(pdev, adapter->bars); in e1000_remove()
/drivers/scsi/qla2xxx/
Dqla_os.c1648 if (pci_request_selected_regions(ha->pdev, ha->bars, in qla2x00_iospace_config()
1655 if (!(ha->bars & 1)) in qla2x00_iospace_config()
1756 if (pci_request_selected_regions(ha->pdev, ha->bars, in qla83xx_iospace_config()
2317 int bars, mem_only = 0; in qla2x00_probe_one() local
2322 bars = pci_select_bars(pdev, IORESOURCE_MEM | IORESOURCE_IO); in qla2x00_probe_one()
2335 bars = pci_select_bars(pdev, IORESOURCE_MEM); in qla2x00_probe_one()
2341 "Bars=%d.\n", bars); in qla2x00_probe_one()
2366 ha->bars = bars; in qla2x00_probe_one()
2898 pci_release_selected_regions(ha->pdev, ha->bars); in qla2x00_probe_one()
3090 pci_release_selected_regions(ha->pdev, ha->bars); in qla2x00_remove_one()
Dqla_mr.c781 if (pci_request_selected_regions(ha->pdev, ha->bars, in qlafx00_iospace_config()
837 ha->bars, ha->cregbase, ha->iobase); in qlafx00_iospace_config()
Dqla_def.h2838 int bars; member
/drivers/message/fusion/
Dmptbase.c1660 ioc->bars = pci_select_bars(pdev, IORESOURCE_MEM); in mpt_mapresources()
1666 if (pci_request_selected_regions(pdev, ioc->bars, "mpt")) { in mpt_mapresources()
1753 pci_release_selected_regions(pdev, ioc->bars); in mpt_mapresources()
1882 pci_release_selected_regions(pdev, ioc->bars); in mpt_attach()
2017 pci_release_selected_regions(pdev, ioc->bars); in mpt_attach()
2154 pci_release_selected_regions(pdev, ioc->bars); in mpt_suspend()
2379 pci_release_selected_regions(ioc->pcidev, ioc->bars); in mpt_do_ioc_recovery()
2380 ioc->bars = pci_select_bars(ioc->pcidev, IORESOURCE_MEM | in mpt_do_ioc_recovery()
2384 if (pci_request_selected_regions(ioc->pcidev, ioc->bars, in mpt_do_ioc_recovery()
2825 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
/drivers/block/
Dnvme-core.c1927 int bars, result = -ENOMEM; in nvme_probe() local
1945 bars = pci_select_bars(pdev, IORESOURCE_MEM); in nvme_probe()
1946 if (pci_request_selected_regions(pdev, bars, "nvme")) in nvme_probe()
/drivers/scsi/mpt3sas/
Dmpt3sas_base.h715 int bars; member
Dmpt3sas_base.c1789 ioc->bars = pci_select_bars(pdev, IORESOURCE_MEM); in mpt3sas_base_map_resources()
1797 if (pci_request_selected_regions(pdev, ioc->bars, in mpt3sas_base_map_resources()
1863 pci_release_selected_regions(ioc->pdev, ioc->bars); in mpt3sas_base_map_resources()
4399 pci_release_selected_regions(ioc->pdev, ioc->bars); in mpt3sas_base_free_resources()
/drivers/scsi/mpt2sas/
Dmpt2sas_base.h801 int bars; member
Dmpt2sas_base.c1492 ioc->bars = pci_select_bars(pdev, IORESOURCE_MEM); in mpt2sas_base_map_resources()
1500 if (pci_request_selected_regions(pdev, ioc->bars, in mpt2sas_base_map_resources()
1569 pci_release_selected_regions(ioc->pdev, ioc->bars); in mpt2sas_base_map_resources()
4237 pci_release_selected_regions(ioc->pdev, ioc->bars); in mpt2sas_base_free_resources()
/drivers/scsi/lpfc/
Dlpfc_init.c4541 int bars = 0; in lpfc_enable_pci_dev() local
4549 bars = pci_select_bars(pdev, IORESOURCE_MEM); in lpfc_enable_pci_dev()
4554 if (pci_request_selected_regions(pdev, bars, LPFC_DRIVER_NAME)) in lpfc_enable_pci_dev()
4571 "1401 Failed to enable pci device, bars:x%x\n", bars); in lpfc_enable_pci_dev()
4586 int bars; in lpfc_disable_pci_dev() local
4594 bars = pci_select_bars(pdev, IORESOURCE_MEM); in lpfc_disable_pci_dev()
4596 pci_release_selected_regions(pdev, bars); in lpfc_disable_pci_dev()
9377 int bars = pci_select_bars(pdev, IORESOURCE_MEM); in lpfc_pci_remove_one_s3() local
9453 pci_release_selected_regions(pdev, bars); in lpfc_pci_remove_one_s3()
/drivers/net/ethernet/intel/e1000e/
Dnetdev.c6498 int bars, i, err, pci_using_dac; in e1000_probe() local
6532 bars = pci_select_bars(pdev, IORESOURCE_MEM); in e1000_probe()
6533 err = pci_request_selected_regions_exclusive(pdev, bars, in e1000_probe()