Lines Matching refs:cap_id
1862 u8 cap_id; in vfio_config_do_rw() local
1883 cap_id = vdev->pci_config_map[*ppos]; in vfio_config_do_rw()
1885 if (cap_id == PCI_CAP_ID_INVALID) { in vfio_config_do_rw()
1888 } else if (cap_id == PCI_CAP_ID_INVALID_VIRT) { in vfio_config_do_rw()
1893 WARN_ON(cap_id > PCI_EXT_CAP_ID_MAX); in vfio_config_do_rw()
1895 perm = &ecap_perms[cap_id]; in vfio_config_do_rw()
1898 WARN_ON(cap_id > PCI_CAP_ID_MAX); in vfio_config_do_rw()
1900 perm = &cap_perms[cap_id]; in vfio_config_do_rw()
1902 if (cap_id == PCI_CAP_ID_MSI) in vfio_config_do_rw()
1905 if (cap_id > PCI_CAP_ID_BASIC) in vfio_config_do_rw()
1910 WARN_ON(!cap_start && cap_id != PCI_CAP_ID_BASIC); in vfio_config_do_rw()