Lines Matching full:pri

224  * pci_enable_pri - Enable PRI capability
234 int pri = pdev->pri_cap; in pci_enable_pri() local
237 * VFs must not implement the PRI Capability. If their PF in pci_enable_pri()
238 * implements PRI, it is shared by the VFs, so if the PF PRI is in pci_enable_pri()
250 if (!pri) in pci_enable_pri()
253 pci_read_config_word(pdev, pri + PCI_PRI_STATUS, &status); in pci_enable_pri()
257 pci_read_config_dword(pdev, pri + PCI_PRI_MAX_REQ, &max_requests); in pci_enable_pri()
260 pci_write_config_dword(pdev, pri + PCI_PRI_ALLOC_REQ, reqs); in pci_enable_pri()
263 pci_write_config_word(pdev, pri + PCI_PRI_CTRL, control); in pci_enable_pri()
271 * pci_disable_pri - Disable PRI capability
279 int pri = pdev->pri_cap; in pci_disable_pri() local
281 /* VFs share the PF PRI */ in pci_disable_pri()
288 if (!pri) in pci_disable_pri()
291 pci_read_config_word(pdev, pri + PCI_PRI_CTRL, &control); in pci_disable_pri()
293 pci_write_config_word(pdev, pri + PCI_PRI_CTRL, control); in pci_disable_pri()
300 * pci_restore_pri_state - Restore PRI
307 int pri = pdev->pri_cap; in pci_restore_pri_state() local
315 if (!pri) in pci_restore_pri_state()
318 pci_write_config_dword(pdev, pri + PCI_PRI_ALLOC_REQ, reqs); in pci_restore_pri_state()
319 pci_write_config_word(pdev, pri + PCI_PRI_CTRL, control); in pci_restore_pri_state()
323 * pci_reset_pri - Resets device's PRI state
326 * The PRI capability must be disabled before this function is called.
332 int pri = pdev->pri_cap; in pci_reset_pri() local
340 if (!pri) in pci_reset_pri()
344 pci_write_config_word(pdev, pri + PCI_PRI_CTRL, control); in pci_reset_pri()
365 * pci_pri_supported - Check if PRI is supported.
368 * Returns true if PRI capability is present, false otherwise.
372 /* VFs share the PF PRI */ in pci_pri_supported()