Lines Matching defs:epos
1379 static int vfio_ext_cap_len(struct vfio_pci_core_device *vdev, u16 ecap, u16 epos)
1388 ret = pci_read_config_dword(pdev, epos + PCI_VSEC_HDR, &dword);
1396 return vfio_vc_cap_len(vdev, epos);
1398 ret = pci_read_config_byte(pdev, epos + PCI_ACS_CAP, &byte);
1406 epos + PCI_ACS_EGRESS_BITS,
1417 ret = pci_read_config_byte(pdev, epos + PCI_REBAR_CTRL, &byte);
1426 ret = pci_read_config_byte(pdev, epos + PCI_DPA_CAP, &byte);
1433 ret = pci_read_config_dword(pdev, epos + PCI_TPH_CAP, &dword);
1446 ret = pci_read_config_dword(pdev, epos + PCI_DVSEC_HEADER1, &dword);
1452 __func__, ecap, epos);
1613 u16 epos;
1620 epos = PCI_CFG_SPACE_SIZE;
1624 while (loops-- && epos >= PCI_CFG_SPACE_SIZE) {
1630 ret = pci_read_config_dword(pdev, epos, &header);
1639 len = vfio_ext_cap_len(vdev, ecap, epos);
1647 __func__, ecap, epos);
1651 u32 val = epos = PCI_EXT_CAP_NEXT(header);
1666 if (likely(map[epos + i] == PCI_CAP_ID_INVALID))
1670 __func__, epos + i, map[epos + i], ecap);
1680 memset(map + epos, ecap, len);
1681 ret = vfio_fill_vconfig_bytes(vdev, epos, len);
1692 *(__le32 *)&vdev->vconfig[epos] &=
1697 prev = (__le32 *)&vdev->vconfig[epos];
1698 epos = PCI_EXT_CAP_NEXT(header);