Lines Matching full:ecap
1379 static int vfio_ext_cap_len(struct vfio_pci_core_device *vdev, u16 ecap, u16 epos) in vfio_ext_cap_len() argument
1386 switch (ecap) { in vfio_ext_cap_len()
1451 pci_warn(pdev, "%s: unknown length for PCI ecap %#x@%#x\n", in vfio_ext_cap_len()
1452 __func__, ecap, epos); in vfio_ext_cap_len()
1626 u16 ecap; in vfio_ecap_init() local
1634 ecap = PCI_EXT_CAP_ID(header); in vfio_ecap_init()
1636 if (ecap <= PCI_EXT_CAP_ID_MAX) { in vfio_ecap_init()
1637 len = pci_ext_cap_length[ecap]; in vfio_ecap_init()
1639 len = vfio_ext_cap_len(vdev, ecap, epos); in vfio_ecap_init()
1646 pci_dbg(pdev, "%s: hiding ecap %#x@%#x\n", in vfio_ecap_init()
1647 __func__, ecap, epos); in vfio_ecap_init()
1669 pci_warn(pdev, "%s: PCI config conflict @%#x, was ecap %#x now ecap %#x\n", in vfio_ecap_init()
1670 __func__, epos + i, map[epos + i], ecap); in vfio_ecap_init()
1674 * Even though ecap is 2 bytes, we're currently a long way in vfio_ecap_init()
1680 memset(map + epos, ecap, len); in vfio_ecap_init()