Home
last modified time | relevance | path

Searched refs:resno (Results 1 – 11 of 11) sorted by relevance

/linux-6.1.9/drivers/pci/
Dsetup-res.c25 static void pci_std_update_resource(struct pci_dev *dev, int resno) in pci_std_update_resource() argument
32 struct resource *res = dev->resource + resno; in pci_std_update_resource()
62 } else if (resno == PCI_ROM_RESOURCE) { in pci_std_update_resource()
69 if (resno < PCI_ROM_RESOURCE) { in pci_std_update_resource()
70 reg = PCI_BASE_ADDRESS_0 + 4 * resno; in pci_std_update_resource()
71 } else if (resno == PCI_ROM_RESOURCE) { in pci_std_update_resource()
108 resno, new, check); in pci_std_update_resource()
117 resno, new, check); in pci_std_update_resource()
125 void pci_update_resource(struct pci_dev *dev, int resno) in pci_update_resource() argument
127 if (resno <= PCI_ROM_RESOURCE) in pci_update_resource()
[all …]
Dpci.h33 int pci_mmap_fits(struct pci_dev *pdev, int resno, struct vm_area_struct *vmai,
479 void pci_iov_update_resource(struct pci_dev *dev, int resno);
480 resource_size_t pci_sriov_resource_alignment(struct pci_dev *dev, int resno);
527 int resno = res - dev->resource; in pci_resource_alignment() local
529 if (resno >= PCI_IOV_RESOURCES && resno <= PCI_IOV_RESOURCE_END) in pci_resource_alignment()
530 return pci_sriov_resource_alignment(dev, resno); in pci_resource_alignment()
Diov.c149 resource_size_t pci_iov_resource_size(struct pci_dev *dev, int resno) in pci_iov_resource_size() argument
154 return dev->sriov->barsz[resno - PCI_IOV_RESOURCES]; in pci_iov_resource_size()
944 void pci_iov_update_resource(struct pci_dev *dev, int resno) in pci_iov_update_resource() argument
947 struct resource *res = dev->resource + resno; in pci_iov_update_resource()
948 int vf_bar = resno - PCI_IOV_RESOURCES; in pci_iov_update_resource()
996 int resno) in pcibios_iov_resource_alignment() argument
998 return pci_iov_resource_size(dev, resno); in pcibios_iov_resource_alignment()
1011 resource_size_t pci_sriov_resource_alignment(struct pci_dev *dev, int resno) in pci_sriov_resource_alignment() argument
1013 return pcibios_iov_resource_alignment(dev, resno); in pci_sriov_resource_alignment()
Dpci-sysfs.c1006 int pci_mmap_fits(struct pci_dev *pdev, int resno, struct vm_area_struct *vma, in pci_mmap_fits() argument
1012 if (pci_resource_len(pdev, resno) == 0) in pci_mmap_fits()
1016 size = ((pci_resource_len(pdev, resno) - 1) >> PAGE_SHIFT) + 1; in pci_mmap_fits()
1018 pci_resource_to_user(pdev, resno, &pdev->resource[resno], in pci_mmap_fits()
/linux-6.1.9/drivers/gpu/drm/i915/gt/
Dintel_region_lmem.c23 int resno; in _release_bars() local
25 for (resno = PCI_STD_RESOURCES; resno < PCI_STD_RESOURCE_END; resno++) { in _release_bars()
26 if (pci_resource_len(pdev, resno)) in _release_bars()
27 pci_release_resource(pdev, resno); in _release_bars()
32 _resize_bar(struct drm_i915_private *i915, int resno, resource_size_t size) in _resize_bar() argument
40 ret = pci_resize_resource(pdev, resno, bar_size); in _resize_bar()
43 resno, 1 << bar_size, ERR_PTR(ret)); in _resize_bar()
47 drm_info(&i915->drm, "BAR%d resized to %dM\n", resno, 1 << bar_size); in _resize_bar()
/linux-6.1.9/arch/powerpc/platforms/pseries/
Dsetup.c662 static resource_size_t pseries_get_iov_fw_value(struct pci_dev *dev, int resno, in pseries_get_iov_fw_value() argument
679 if (resno >= num_res) in pseries_get_iov_fw_value()
682 i = START_OF_ENTRIES + NEXT_ENTRY * resno; in pseries_get_iov_fw_value()
793 int resno) in pseries_pci_iov_resource_alignment() argument
801 return pci_iov_resource_size(pdev, resno); in pseries_pci_iov_resource_alignment()
806 resno - PCI_IOV_RESOURCES, in pseries_pci_iov_resource_alignment()
/linux-6.1.9/arch/powerpc/platforms/powernv/
Dpci-sriov.c248 int resno) in pnv_pci_iov_resource_alignment() argument
250 resource_size_t align = pci_iov_resource_size(pdev, resno); in pnv_pci_iov_resource_alignment()
268 if (iov->m64_single_mode[resno - PCI_IOV_RESOURCES]) in pnv_pci_iov_resource_alignment()
Dpci.h266 resource_size_t pnv_pci_iov_resource_alignment(struct pci_dev *pdev, int resno);
/linux-6.1.9/arch/powerpc/include/asm/
Dmachdep.h166 resource_size_t (*pcibios_iov_resource_alignment)(struct pci_dev *, int resno);
/linux-6.1.9/arch/powerpc/kernel/
Dpci-common.c257 resource_size_t pcibios_iov_resource_alignment(struct pci_dev *pdev, int resno) in pcibios_iov_resource_alignment() argument
260 return ppc_md.pcibios_iov_resource_alignment(pdev, resno); in pcibios_iov_resource_alignment()
262 return pci_iov_resource_size(pdev, resno); in pcibios_iov_resource_alignment()
/linux-6.1.9/include/linux/
Dpci.h1313 void pci_update_resource(struct pci_dev *dev, int resno);
1316 void pci_release_resource(struct pci_dev *dev, int resno);
2184 resource_size_t pci_iov_resource_size(struct pci_dev *dev, int resno);
2190 resource_size_t pcibios_iov_resource_alignment(struct pci_dev *dev, int resno);
2235 static inline resource_size_t pci_iov_resource_size(struct pci_dev *dev, int resno) in pci_iov_resource_size() argument