Home
last modified time | relevance | path

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

/linux-5.19.10/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);
523 int resno = res - dev->resource; in pci_resource_alignment() local
525 if (resno >= PCI_IOV_RESOURCES && resno <= PCI_IOV_RESOURCE_END) in pci_resource_alignment()
526 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.c1005 int pci_mmap_fits(struct pci_dev *pdev, int resno, struct vm_area_struct *vma, in pci_mmap_fits() argument
1011 if (pci_resource_len(pdev, resno) == 0) in pci_mmap_fits()
1015 size = ((pci_resource_len(pdev, resno) - 1) >> PAGE_SHIFT) + 1; in pci_mmap_fits()
1017 pci_resource_to_user(pdev, resno, &pdev->resource[resno], in pci_mmap_fits()
/linux-5.19.10/arch/powerpc/platforms/pseries/
Dsetup.c633 static resource_size_t pseries_get_iov_fw_value(struct pci_dev *dev, int resno, in pseries_get_iov_fw_value() argument
650 if (resno >= num_res) in pseries_get_iov_fw_value()
653 i = START_OF_ENTRIES + NEXT_ENTRY * resno; in pseries_get_iov_fw_value()
764 int resno) in pseries_pci_iov_resource_alignment() argument
772 return pci_iov_resource_size(pdev, resno); in pseries_pci_iov_resource_alignment()
777 resno - PCI_IOV_RESOURCES, in pseries_pci_iov_resource_alignment()
/linux-5.19.10/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-5.19.10/arch/powerpc/include/asm/
Dmachdep.h168 resource_size_t (*pcibios_iov_resource_alignment)(struct pci_dev *, int resno);
/linux-5.19.10/arch/powerpc/kernel/
Dpci-common.c256 resource_size_t pcibios_iov_resource_alignment(struct pci_dev *pdev, int resno) in pcibios_iov_resource_alignment() argument
259 return ppc_md.pcibios_iov_resource_alignment(pdev, resno); in pcibios_iov_resource_alignment()
261 return pci_iov_resource_size(pdev, resno); in pcibios_iov_resource_alignment()
/linux-5.19.10/include/linux/
Dpci.h1312 void pci_update_resource(struct pci_dev *dev, int resno);
1315 void pci_release_resource(struct pci_dev *dev, int resno);
2191 resource_size_t pci_iov_resource_size(struct pci_dev *dev, int resno);
2197 resource_size_t pcibios_iov_resource_alignment(struct pci_dev *dev, int resno);
2242 static inline resource_size_t pci_iov_resource_size(struct pci_dev *dev, int resno) in pci_iov_resource_size() argument