Lines Matching refs:ctrl
696 iov->ctrl |= PCI_SRIOV_CTRL_VFE | PCI_SRIOV_CTRL_MSE; in sriov_enable()
698 pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, iov->ctrl); in sriov_enable()
712 iov->ctrl &= ~(PCI_SRIOV_CTRL_VFE | PCI_SRIOV_CTRL_MSE); in sriov_enable()
714 pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, iov->ctrl); in sriov_enable()
744 iov->ctrl &= ~(PCI_SRIOV_CTRL_VFE | PCI_SRIOV_CTRL_MSE); in sriov_disable()
746 pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, iov->ctrl); in sriov_disable()
765 u16 ctrl, total; in sriov_init() local
772 pci_read_config_word(dev, pos + PCI_SRIOV_CTRL, &ctrl); in sriov_init()
773 if (ctrl & PCI_SRIOV_CTRL_VFE) { in sriov_init()
778 ctrl = 0; in sriov_init()
785 ctrl |= PCI_SRIOV_CTRL_ARI; in sriov_init()
788 pci_write_config_word(dev, pos + PCI_SRIOV_CTRL, ctrl); in sriov_init()
842 iov->ctrl = ctrl; in sriov_init()
894 u16 ctrl; in sriov_restore_state() local
897 pci_read_config_word(dev, iov->pos + PCI_SRIOV_CTRL, &ctrl); in sriov_restore_state()
898 if (ctrl & PCI_SRIOV_CTRL_VFE) in sriov_restore_state()
905 ctrl &= ~PCI_SRIOV_CTRL_ARI; in sriov_restore_state()
906 ctrl |= iov->ctrl & PCI_SRIOV_CTRL_ARI; in sriov_restore_state()
907 pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, ctrl); in sriov_restore_state()
914 pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, iov->ctrl); in sriov_restore_state()
915 if (iov->ctrl & PCI_SRIOV_CTRL_VFE) in sriov_restore_state()
1198 if (dev->sriov->ctrl & PCI_SRIOV_CTRL_VFE) in pci_sriov_set_totalvfs()