Home
last modified time | relevance | path

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

12

/Linux-v5.15/drivers/net/ethernet/pensando/ionic/
Dionic_bus_pci.c50 struct ionic_dev_bar *bars; in ionic_map_bars() local
53 bars = ionic->bars; in ionic_map_bars()
59 bars[j].len = pci_resource_len(pdev, i); in ionic_map_bars()
63 bars[j].vaddr = NULL; in ionic_map_bars()
65 bars[j].vaddr = pci_iomap(pdev, i, bars[j].len); in ionic_map_bars()
66 if (!bars[j].vaddr) { in ionic_map_bars()
74 bars[j].bus_addr = pci_resource_start(pdev, i); in ionic_map_bars()
75 bars[j].res_index = i; in ionic_map_bars()
85 struct ionic_dev_bar *bars = ionic->bars; in ionic_unmap_bars() local
89 if (bars[i].vaddr) { in ionic_unmap_bars()
[all …]
Dionic.h46 struct ionic_dev_bar bars[IONIC_BARS_MAX]; member
/Linux-v5.15/arch/s390/pci/
Dpci.c299 idx = zdev->bars[bar].map_idx; in pci_iomap_range_fh()
318 iova = ioremap((unsigned long) zdev->bars[bar].mio_wt, barsize); in pci_iomap_range_mio()
348 iova = ioremap((unsigned long) zdev->bars[bar].mio_wb, barsize); in pci_iomap_wc_range_mio()
433 (resource_size_t __force) zdev->bars[i].mio_wt; in zpci_map_resources()
516 if (!zdev->bars[i].size) in zpci_setup_bus_resources()
521 zdev->bars[i].map_idx = entry; in zpci_setup_bus_resources()
525 if (zdev->bars[i].val & 8) in zpci_setup_bus_resources()
527 if (zdev->bars[i].val & 4) in zpci_setup_bus_resources()
531 addr = (unsigned long) zdev->bars[i].mio_wt; in zpci_setup_bus_resources()
534 size = 1UL << zdev->bars[i].size; in zpci_setup_bus_resources()
[all …]
Dpci_clp.c150 zdev->bars[i].val = le32_to_cpu(response->bar[i]); in clp_store_query_pci_fn()
151 zdev->bars[i].size = response->bar_size[i]; in clp_store_query_pci_fn()
178 zdev->bars[i].mio_wb = (void __iomem *) response->mio.addr[i].wb; in clp_store_query_pci_fn()
179 zdev->bars[i].mio_wt = (void __iomem *) response->mio.addr[i].wt; in clp_store_query_pci_fn()
/Linux-v5.15/drivers/mfd/
Dsta2x11-mfd.c520 struct sta2x11_mfd_bar_setup_data bars[2]; member
529 .bars = {
542 .bars = {
559 for (i = 0; i < ARRAY_SIZE(sd->bars); i++) in sta2x11_mfd_setup()
560 for (j = 0; j < sd->bars[i].ncells; j++) { in sta2x11_mfd_setup()
561 sd->bars[i].cells[j].pdata_size = sizeof(pdev); in sta2x11_mfd_setup()
562 sd->bars[i].cells[j].platform_data = &pdev; in sta2x11_mfd_setup()
598 setup_data->bars[i].cells, in sta2x11_mfd_probe()
599 setup_data->bars[i].ncells, in sta2x11_mfd_probe()
/Linux-v5.15/drivers/scsi/csiostor/
Dcsio_init.c191 csio_pci_init(struct pci_dev *pdev, int *bars) in csio_pci_init() argument
195 *bars = pci_select_bars(pdev, IORESOURCE_MEM); in csio_pci_init()
200 if (pci_request_selected_regions(pdev, *bars, KBUILD_MODNAME)) in csio_pci_init()
218 pci_release_selected_regions(pdev, *bars); in csio_pci_init()
233 csio_pci_exit(struct pci_dev *pdev, int *bars) in csio_pci_exit() argument
235 pci_release_selected_regions(pdev, *bars); in csio_pci_exit()
943 int bars; in csio_probe_one() local
953 rv = csio_pci_init(pdev, &bars); in csio_probe_one()
1018 csio_pci_exit(pdev, &bars); in csio_probe_one()
1033 int bars = pci_select_bars(pdev, IORESOURCE_MEM); in csio_remove_one() local
[all …]
/Linux-v5.15/drivers/infiniband/hw/efa/
Defa_main.c138 int bars; in efa_request_doorbell_bar() local
142 bars = pci_select_bars(pdev, IORESOURCE_MEM) & BIT(db_bar_idx); in efa_request_doorbell_bar()
144 err = pci_request_selected_regions(pdev, bars, DRV_MODULE_NAME); in efa_request_doorbell_bar()
401 int bars; in efa_probe_device() local
425 bars = pci_select_bars(pdev, IORESOURCE_MEM) & EFA_BASE_BAR_MASK; in efa_probe_device()
426 err = pci_request_selected_regions(pdev, bars, DRV_MODULE_NAME); in efa_probe_device()
/Linux-v5.15/drivers/fpga/
Ddfl-pci.c142 int dfl_res_off, i, bars, voff = 0; in find_dfls_by_vsec() local
174 for (i = 0, bars = 0; i < dfl_cnt; i++, dfl_res_off += sizeof(u32)) { in find_dfls_by_vsec()
185 if (bars & BIT(bir)) { in find_dfls_by_vsec()
191 bars |= BIT(bir); in find_dfls_by_vsec()
/Linux-v5.15/drivers/gpu/drm/i915/gvt/
Dcfg_space.c242 struct intel_vgpu_pci_bar *bars = vgpu->cfg_space.bar; in emulate_pci_bar_write() local
255 size = ~(bars[INTEL_GVT_PCI_BAR_GTTMMIO].size -1); in emulate_pci_bar_write()
266 size = ~(bars[INTEL_GVT_PCI_BAR_APERTURE].size -1); in emulate_pci_bar_write()
/Linux-v5.15/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp6000_pcie.c151 int bars; member
377 for (n = 0; n < nfp->bars; n++) { in find_matching_bar()
395 for (n = 0; n < nfp->bars; n++) { in find_unused_bar_noblock()
595 nfp->bars = bar - &nfp->bar[0]; in enable_bars()
596 if (nfp->bars < 8) { in enable_bars()
601 bars_free = nfp->bars; in enable_bars()
699 sort(&nfp->bar[0], nfp->bars, sizeof(nfp->bar[0]), in enable_bars()
702 dev_info(nfp->dev, "%sfree: %d/%d\n", status_msg, bars_free, nfp->bars); in enable_bars()
717 for (n = 0; n < nfp->bars; n++, bar++) { in disable_bars()
/Linux-v5.15/drivers/pci/
Dpci.c1831 int __weak pcibios_enable_device(struct pci_dev *dev, int bars) in pcibios_enable_device() argument
1833 return pci_enable_resources(dev, bars); in pcibios_enable_device()
1836 static int do_pci_enable_device(struct pci_dev *dev, int bars) in do_pci_enable_device() argument
1851 err = pcibios_enable_device(dev, bars); in do_pci_enable_device()
1911 int i, bars = 0; in pci_enable_device_flags() local
1931 bars |= (1 << i); in pci_enable_device_flags()
1934 bars |= (1 << i); in pci_enable_device_flags()
1936 err = do_pci_enable_device(dev, bars); in pci_enable_device_flags()
3945 void pci_release_selected_regions(struct pci_dev *pdev, int bars) in pci_release_selected_regions() argument
3950 if (bars & (1 << i)) in pci_release_selected_regions()
[all …]
Diov.c566 int bars = 0; in sriov_enable() local
586 bars |= (1 << (i + PCI_IOV_RESOURCES)); in sriov_enable()
603 if (pci_enable_resources(dev, bars)) { in sriov_enable()
/Linux-v5.15/drivers/tty/serial/
Drp2.c722 void __iomem * const *bars; in rp2_probe() local
739 bars = pcim_iomap_table(pdev); in rp2_probe()
740 card->bar0 = bars[0]; in rp2_probe()
741 card->bar1 = bars[1]; in rp2_probe()
/Linux-v5.15/drivers/ntb/hw/idt/
Dntb_hw_idt.h1188 struct idt_ntb_bar bars[IDT_BAR_CNT]; member
1211 struct idt_ntb_bar bars[IDT_BAR_CNT]; member
Dntb_hw_idt.c1045 const struct idt_ntb_bar *bars; in idt_scan_mws() local
1053 bars = portdata_tbl[port].bars; in idt_scan_mws()
1059 data = idt_sw_read(ndev, bars[bidx].setup); in idt_scan_mws()
1312 const struct idt_ntb_bar *bar = &ntdata_tbl.bars[mw_cfg->bar]; in idt_ntb_peer_mw_set_trans()
1372 const struct idt_ntb_bar *bar = &ntdata_tbl.bars[mw_cfg->bar]; in idt_ntb_peer_mw_clear_trans()
/Linux-v5.15/Documentation/devicetree/bindings/i2c/
Di2c-pxa-pci-ce4100.txt5 PCI device has three PCI-bars, each bar contains a complete I2C
/Linux-v5.15/drivers/virtio/
Dvirtio_pci_modern_dev.c107 u32 ioresource_types, int *bars) in virtio_pci_find_capability() argument
129 *bars |= (1 << bar); in virtio_pci_find_capability()
/Linux-v5.15/arch/s390/include/asm/
Dpci.h169 struct zpci_bar_struct bars[PCI_STD_NUM_BARS]; member
/Linux-v5.15/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sriov.h67 struct bnx2x_vf_bar bars[PCI_SRIOV_NUM_BARS]; member
193 struct bnx2x_vf_bar bars[PCI_SRIOV_NUM_BARS]; member
Dbnx2x_sriov.c1059 vf->bars[n].bar = start + size * vf->abs_vfid; in bnx2x_vf_set_bars()
1060 vf->bars[n].size = size; in bnx2x_vf_set_bars()
1608 (unsigned)vf->bars[0].bar, vf->bars[0].size, in bnx2x_iov_nic_init()
1609 (unsigned)vf->bars[1].bar, vf->bars[1].size, in bnx2x_iov_nic_init()
1610 (unsigned)vf->bars[2].bar, vf->bars[2].size); in bnx2x_iov_nic_init()
/Linux-v5.15/drivers/net/ethernet/intel/e1000/
De1000.h293 int bars; member
De1000_main.c933 int bars, need_ioport; in e1000_probe() local
939 bars = pci_select_bars(pdev, IORESOURCE_MEM | IORESOURCE_IO); in e1000_probe()
942 bars = pci_select_bars(pdev, IORESOURCE_MEM); in e1000_probe()
948 err = pci_request_selected_regions(pdev, bars, e1000_driver_name); in e1000_probe()
969 adapter->bars = bars; in e1000_probe()
1242 pci_release_selected_regions(pdev, bars); in e1000_probe()
1280 pci_release_selected_regions(pdev, adapter->bars); in e1000_remove()
/Linux-v5.15/tools/perf/Documentation/
Dperf-timechart.txt30 There are also poll bars which show how much time application spent
/Linux-v5.15/drivers/scsi/mpi3mr/
Dmpi3mr.h717 int bars; member
/Linux-v5.15/drivers/scsi/qla2xxx/
Dqla_os.c2005 if (pci_request_selected_regions(ha->pdev, ha->bars, in qla2x00_iospace_config()
2012 if (!(ha->bars & 1)) in qla2x00_iospace_config()
2108 if (pci_request_selected_regions(ha->pdev, ha->bars, in qla83xx_iospace_config()
2832 int bars, mem_only = 0; in qla2x00_probe_one() local
2838 bars = pci_select_bars(pdev, IORESOURCE_MEM | IORESOURCE_IO); in qla2x00_probe_one()
2859 bars = pci_select_bars(pdev, IORESOURCE_MEM); in qla2x00_probe_one()
2865 "Bars=%d.\n", bars); in qla2x00_probe_one()
2911 ha->bars = bars; in qla2x00_probe_one()
3580 pci_release_selected_regions(ha->pdev, ha->bars); in qla2x00_probe_one()
3883 pci_release_selected_regions(ha->pdev, ha->bars); in qla2x00_remove_one()
[all …]

12