Home
last modified time | relevance | path

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

12

/linux-6.6.21/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.h47 struct ionic_dev_bar bars[IONIC_BARS_MAX]; member
/linux-6.6.21/drivers/net/ethernet/amd/pds_core/
Dmain.c37 struct pdsc_dev_bar *bars = pdsc->bars; in pdsc_unmap_bars() local
46 if (bars[i].vaddr) in pdsc_unmap_bars()
47 pci_iounmap(pdsc->pdev, bars[i].vaddr); in pdsc_unmap_bars()
53 struct pdsc_dev_bar *bar = pdsc->bars; in pdsc_map_bars()
56 struct pdsc_dev_bar *bars; in pdsc_map_bars() local
62 bars = pdsc->bars; in pdsc_map_bars()
72 bars[j].len = pci_resource_len(pdev, i); in pdsc_map_bars()
73 bars[j].bus_addr = pci_resource_start(pdev, i); in pdsc_map_bars()
74 bars[j].res_index = i; in pdsc_map_bars()
78 bars[j].vaddr = NULL; in pdsc_map_bars()
[all …]
/linux-6.6.21/arch/s390/pci/
Dpci.c276 idx = zdev->bars[bar].map_idx; in pci_iomap_range_fh()
295 iova = ioremap((unsigned long) zdev->bars[bar].mio_wt, barsize); in pci_iomap_range_mio()
325 iova = ioremap((unsigned long) zdev->bars[bar].mio_wb, barsize); in pci_iomap_wc_range_mio()
410 (resource_size_t __force) zdev->bars[i].mio_wt; in zpci_map_resources()
467 if (!zdev->bars[bar].size) in zpci_do_update_iomap_fh()
469 idx = zdev->bars[bar].map_idx; in zpci_do_update_iomap_fh()
520 if (!zdev->bars[i].size) in zpci_setup_bus_resources()
525 zdev->bars[i].map_idx = entry; in zpci_setup_bus_resources()
529 if (zdev->bars[i].val & 8) in zpci_setup_bus_resources()
531 if (zdev->bars[i].val & 4) in zpci_setup_bus_resources()
[all …]
Dpci_bus.c60 if (zdev->bars[i].res) in zpci_bus_prepare_device()
61 pci_bus_add_resource(zdev->zbus->bus, zdev->bars[i].res, 0); in zpci_bus_prepare_device()
Dpci_clp.c155 zdev->bars[i].val = le32_to_cpu(response->bar[i]); in clp_store_query_pci_fn()
156 zdev->bars[i].size = response->bar_size[i]; in clp_store_query_pci_fn()
183 zdev->bars[i].mio_wb = (void __iomem *) response->mio.addr[i].wb; in clp_store_query_pci_fn()
184 zdev->bars[i].mio_wt = (void __iomem *) response->mio.addr[i].wt; in clp_store_query_pci_fn()
/linux-6.6.21/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-6.6.21/drivers/scsi/csiostor/
Dcsio_init.c190 csio_pci_init(struct pci_dev *pdev, int *bars) in csio_pci_init() argument
194 *bars = pci_select_bars(pdev, IORESOURCE_MEM); in csio_pci_init()
199 if (pci_request_selected_regions(pdev, *bars, KBUILD_MODNAME)) in csio_pci_init()
217 pci_release_selected_regions(pdev, *bars); in csio_pci_init()
232 csio_pci_exit(struct pci_dev *pdev, int *bars) in csio_pci_exit() argument
234 pci_release_selected_regions(pdev, *bars); in csio_pci_exit()
942 int bars; in csio_probe_one() local
952 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-6.6.21/drivers/fpga/
Ddfl-pci.c160 int dfl_res_off, i, bars, voff; in find_dfls_by_vsec() local
185 for (i = 0, bars = 0; i < dfl_cnt; i++, dfl_res_off += sizeof(u32)) { in find_dfls_by_vsec()
196 if (bars & BIT(bir)) { in find_dfls_by_vsec()
202 bars |= BIT(bir); in find_dfls_by_vsec()
/linux-6.6.21/Documentation/gpu/amdgpu/display/
Ddc-debug.rst9 bars added at the scanout time by the driver to convey some specific
33 * Pipe split can be observed if there are two bars with a difference in height
38 feature one or two green bars at the bottom of the video depending on pipe
/linux-6.6.21/drivers/infiniband/hw/efa/
Defa_main.c190 int bars; in efa_request_doorbell_bar() local
194 bars = pci_select_bars(pdev, IORESOURCE_MEM) & BIT(db_bar_idx); in efa_request_doorbell_bar()
196 err = pci_request_selected_regions(pdev, bars, DRV_MODULE_NAME); in efa_request_doorbell_bar()
531 int bars; in efa_probe_device() local
556 bars = pci_select_bars(pdev, IORESOURCE_MEM) & EFA_BASE_BAR_MASK; in efa_probe_device()
557 err = pci_request_selected_regions(pdev, bars, DRV_MODULE_NAME); in efa_probe_device()
/linux-6.6.21/drivers/infiniband/hw/erdma/
Derdma_main.c223 int bars, err; in erdma_probe_dev() local
245 bars = pci_select_bars(pdev, IORESOURCE_MEM); in erdma_probe_dev()
246 err = pci_request_selected_regions(pdev, bars, DRV_MODULE_NAME); in erdma_probe_dev()
247 if (bars != ERDMA_BAR_MASK || err) { in erdma_probe_dev()
321 pci_release_selected_regions(pdev, bars); in erdma_probe_dev()
/linux-6.6.21/drivers/vdpa/solidrun/
Dsnet_vdpa.h144 void __iomem *bars[PCI_STD_NUM_BARS]; member
170 return ioread32(psnet->bars[psnet->barno] + off); in psnet_read32()
Dsnet_main.c585 psnet->bars[i] = pcim_iomap_table(pdev)[i]; in psnet_open_pf_bar()
639 if (!psnet->bars[i]) in psnet_detect_bar()
642 if (ioread32(psnet->bars[i] + off) == SNET_SIGNATURE) in psnet_detect_bar()
656 if (psnet->bars[i] && i != psnet->barno) in psnet_unmap_unused_bars()
/linux-6.6.21/drivers/gpu/drm/i915/gvt/
Dcfg_space.c189 struct intel_vgpu_pci_bar *bars = vgpu->cfg_space.bar; in emulate_pci_bar_write() local
202 size = ~(bars[INTEL_GVT_PCI_BAR_GTTMMIO].size -1); in emulate_pci_bar_write()
213 size = ~(bars[INTEL_GVT_PCI_BAR_APERTURE].size -1); in emulate_pci_bar_write()
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp6000_pcie.c149 int bars; member
372 for (n = 0; n < nfp->bars; n++) { in find_matching_bar()
390 for (n = 0; n < nfp->bars; n++) { in find_unused_bar_noblock()
592 nfp->bars = bar - &nfp->bar[0]; in enable_bars()
593 if (nfp->bars < 8) { in enable_bars()
598 bars_free = nfp->bars; in enable_bars()
697 sort(&nfp->bar[0], nfp->bars, sizeof(nfp->bar[0]), in enable_bars()
700 dev_info(nfp->dev, "%sfree: %d/%d\n", status_msg, bars_free, nfp->bars); in enable_bars()
715 for (n = 0; n < nfp->bars; n++, bar++) { in disable_bars()
/linux-6.6.21/drivers/accel/qaic/
Dqaic_drv.c400 int bars; in init_pci() local
403 bars = pci_select_bars(pdev, IORESOURCE_MEM); in init_pci()
406 if (bars != (BIT(0) | BIT(2) | BIT(4))) { in init_pci()
408 __func__, bars); in init_pci()
/linux-6.6.21/drivers/pci/
Dpci.c1942 int __weak pcibios_enable_device(struct pci_dev *dev, int bars) in pcibios_enable_device() argument
1944 return pci_enable_resources(dev, bars); in pcibios_enable_device()
1947 static int do_pci_enable_device(struct pci_dev *dev, int bars) in do_pci_enable_device() argument
1962 err = pcibios_enable_device(dev, bars); in do_pci_enable_device()
2022 int i, bars = 0; in pci_enable_device_flags() local
2042 bars |= (1 << i); in pci_enable_device_flags()
2045 bars |= (1 << i); in pci_enable_device_flags()
2047 err = do_pci_enable_device(dev, bars); in pci_enable_device_flags()
4078 void pci_release_selected_regions(struct pci_dev *pdev, int bars) in pci_release_selected_regions() argument
4083 if (bars & (1 << i)) in pci_release_selected_regions()
[all …]
/linux-6.6.21/drivers/tty/serial/
Drp2.c702 void __iomem * const *bars; in rp2_probe() local
719 bars = pcim_iomap_table(pdev); in rp2_probe()
720 card->bar0 = bars[0]; in rp2_probe()
721 card->bar1 = bars[1]; in rp2_probe()
/linux-6.6.21/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-6.6.21/Documentation/devicetree/bindings/i2c/
Di2c-pxa-pci-ce4100.txt5 PCI device has three PCI-bars, each bar contains a complete I2C
/linux-6.6.21/drivers/virtio/
Dvirtio_pci_modern_dev.c115 u32 ioresource_types, int *bars) in virtio_pci_find_capability() argument
137 *bars |= (1 << bar); in virtio_pci_find_capability()
/linux-6.6.21/drivers/net/ethernet/intel/e1000/
De1000.h293 int bars; member
/linux-6.6.21/arch/s390/include/asm/
Dpci.h173 struct zpci_bar_struct bars[PCI_STD_NUM_BARS]; member

12