mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
PCI: Rename PCI_VC_PORT_REG1/2 to PCI_VC_PORT_CAP1/2
These are set of two capability registers, it's pretty much given that they're registers, so reflect their purpose in the name. Suggested-by: Bjorn Helgaas <[email protected]> Signed-off-by: Alex Williamson <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
This commit is contained in:
parent
425c1b223d
commit
274127a1fd
3 changed files with 29 additions and 29 deletions
|
|
@ -975,20 +975,20 @@ static int vfio_vc_cap_len(struct vfio_pci_device *vdev, u16 pos)
|
|||
int ret, evcc, phases, vc_arb;
|
||||
int len = PCI_CAP_VC_BASE_SIZEOF;
|
||||
|
||||
ret = pci_read_config_dword(pdev, pos + PCI_VC_PORT_REG1, &tmp);
|
||||
ret = pci_read_config_dword(pdev, pos + PCI_VC_PORT_CAP1, &tmp);
|
||||
if (ret)
|
||||
return pcibios_err_to_errno(ret);
|
||||
|
||||
evcc = tmp & PCI_VC_REG1_EVCC; /* extended vc count */
|
||||
ret = pci_read_config_dword(pdev, pos + PCI_VC_PORT_REG2, &tmp);
|
||||
evcc = tmp & PCI_VC_CAP1_EVCC; /* extended vc count */
|
||||
ret = pci_read_config_dword(pdev, pos + PCI_VC_PORT_CAP2, &tmp);
|
||||
if (ret)
|
||||
return pcibios_err_to_errno(ret);
|
||||
|
||||
if (tmp & PCI_VC_REG2_128_PHASE)
|
||||
if (tmp & PCI_VC_CAP2_128_PHASE)
|
||||
phases = 128;
|
||||
else if (tmp & PCI_VC_REG2_64_PHASE)
|
||||
else if (tmp & PCI_VC_CAP2_64_PHASE)
|
||||
phases = 64;
|
||||
else if (tmp & PCI_VC_REG2_32_PHASE)
|
||||
else if (tmp & PCI_VC_CAP2_32_PHASE)
|
||||
phases = 32;
|
||||
else
|
||||
phases = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue