Lines Matching full:pri
190 * pci_enable_pri - Enable PRI capability
200 int pri = pdev->pri_cap; in pci_enable_pri() local
203 * VFs must not implement the PRI Capability. If their PF in pci_enable_pri()
204 * implements PRI, it is shared by the VFs, so if the PF PRI is in pci_enable_pri()
216 if (!pri) in pci_enable_pri()
219 pci_read_config_word(pdev, pri + PCI_PRI_STATUS, &status); in pci_enable_pri()
223 pci_read_config_dword(pdev, pri + PCI_PRI_MAX_REQ, &max_requests); in pci_enable_pri()
226 pci_write_config_dword(pdev, pri + PCI_PRI_ALLOC_REQ, reqs); in pci_enable_pri()
229 pci_write_config_word(pdev, pri + PCI_PRI_CTRL, control); in pci_enable_pri()
237 * pci_disable_pri - Disable PRI capability
245 int pri = pdev->pri_cap; in pci_disable_pri() local
247 /* VFs share the PF PRI */ in pci_disable_pri()
254 if (!pri) in pci_disable_pri()
257 pci_read_config_word(pdev, pri + PCI_PRI_CTRL, &control); in pci_disable_pri()
259 pci_write_config_word(pdev, pri + PCI_PRI_CTRL, control); in pci_disable_pri()
266 * pci_restore_pri_state - Restore PRI
273 int pri = pdev->pri_cap; in pci_restore_pri_state() local
281 if (!pri) in pci_restore_pri_state()
284 pci_write_config_dword(pdev, pri + PCI_PRI_ALLOC_REQ, reqs); in pci_restore_pri_state()
285 pci_write_config_word(pdev, pri + PCI_PRI_CTRL, control); in pci_restore_pri_state()
289 * pci_reset_pri - Resets device's PRI state
292 * The PRI capability must be disabled before this function is called.
298 int pri = pdev->pri_cap; in pci_reset_pri() local
306 if (!pri) in pci_reset_pri()
310 pci_write_config_word(pdev, pri + PCI_PRI_CTRL, control); in pci_reset_pri()
331 * pci_pri_supported - Check if PRI is supported.
334 * Returns true if PRI capability is present, false otherwise.
338 /* VFs share the PF PRI */ in pci_pri_supported()