Searched refs:resno (Results 1 – 4 of 4) sorted by relevance
/drivers/pci/ |
D | setup-res.c | 28 static void pci_std_update_resource(struct pci_dev *dev, int resno) in pci_std_update_resource() argument 35 struct resource *res = dev->resource + resno; in pci_std_update_resource() 65 } else if (resno == PCI_ROM_RESOURCE) { in pci_std_update_resource() 72 if (resno < PCI_ROM_RESOURCE) { in pci_std_update_resource() 73 reg = PCI_BASE_ADDRESS_0 + 4 * resno; in pci_std_update_resource() 74 } else if (resno == PCI_ROM_RESOURCE) { in pci_std_update_resource() 106 resno, new, check); in pci_std_update_resource() 115 resno, new, check); in pci_std_update_resource() 123 void pci_update_resource(struct pci_dev *dev, int resno) in pci_update_resource() argument 125 if (resno <= PCI_ROM_RESOURCE) in pci_update_resource() [all …]
|
D | pci.h | 32 int pci_mmap_fits(struct pci_dev *pdev, int resno, struct vm_area_struct *vmai, 278 void pci_iov_update_resource(struct pci_dev *dev, int resno); 279 resource_size_t pci_sriov_resource_alignment(struct pci_dev *dev, int resno); 308 int resno = res - dev->resource; in pci_resource_alignment() local 310 if (resno >= PCI_IOV_RESOURCES && resno <= PCI_IOV_RESOURCE_END) in pci_resource_alignment() 311 return pci_sriov_resource_alignment(dev, resno); in pci_resource_alignment()
|
D | iov.c | 108 resource_size_t pci_iov_resource_size(struct pci_dev *dev, int resno) in pci_iov_resource_size() argument 113 return dev->sriov->barsz[resno - PCI_IOV_RESOURCES]; in pci_iov_resource_size() 565 void pci_iov_update_resource(struct pci_dev *dev, int resno) in pci_iov_update_resource() argument 568 struct resource *res = dev->resource + resno; in pci_iov_update_resource() 569 int vf_bar = resno - PCI_IOV_RESOURCES; in pci_iov_update_resource() 617 int resno) in pcibios_iov_resource_alignment() argument 619 return pci_iov_resource_size(dev, resno); in pcibios_iov_resource_alignment() 632 resource_size_t pci_sriov_resource_alignment(struct pci_dev *dev, int resno) in pci_sriov_resource_alignment() argument 634 return pcibios_iov_resource_alignment(dev, resno); in pci_sriov_resource_alignment()
|
D | pci-sysfs.c | 983 int pci_mmap_fits(struct pci_dev *pdev, int resno, struct vm_area_struct *vma, in pci_mmap_fits() argument 989 if (pci_resource_len(pdev, resno) == 0) in pci_mmap_fits() 993 size = ((pci_resource_len(pdev, resno) - 1) >> PAGE_SHIFT) + 1; in pci_mmap_fits() 995 pci_resource_to_user(pdev, resno, &pdev->resource[resno], in pci_mmap_fits()
|