Lines Matching refs:ctrl
306 iov->ctrl |= PCI_SRIOV_CTRL_VFE | PCI_SRIOV_CTRL_MSE; in sriov_enable()
308 pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, iov->ctrl); in sriov_enable()
337 iov->ctrl &= ~(PCI_SRIOV_CTRL_VFE | PCI_SRIOV_CTRL_MSE); in sriov_enable()
339 pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, iov->ctrl); in sriov_enable()
368 iov->ctrl &= ~(PCI_SRIOV_CTRL_VFE | PCI_SRIOV_CTRL_MSE); in sriov_disable()
370 pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, iov->ctrl); in sriov_disable()
387 u16 ctrl, total, offset, stride; in sriov_init() local
396 pci_read_config_word(dev, pos + PCI_SRIOV_CTRL, &ctrl); in sriov_init()
397 if (ctrl & PCI_SRIOV_CTRL_VFE) { in sriov_init()
406 ctrl = 0; in sriov_init()
413 ctrl |= PCI_SRIOV_CTRL_ARI; in sriov_init()
416 pci_write_config_word(dev, pos + PCI_SRIOV_CTRL, ctrl); in sriov_init()
457 iov->ctrl = ctrl; in sriov_init()
507 u16 ctrl; in sriov_restore_state() local
510 pci_read_config_word(dev, iov->pos + PCI_SRIOV_CTRL, &ctrl); in sriov_restore_state()
511 if (ctrl & PCI_SRIOV_CTRL_VFE) in sriov_restore_state()
519 pci_write_config_word(dev, iov->pos + PCI_SRIOV_CTRL, iov->ctrl); in sriov_restore_state()
520 if (iov->ctrl & PCI_SRIOV_CTRL_VFE) in sriov_restore_state()
735 if (dev->sriov->ctrl & PCI_SRIOV_CTRL_VFE) in pci_sriov_set_totalvfs()