• Home
  • Raw
  • Download

Lines Matching refs:sriov

23 	return dev->bus->number + ((dev->devfn + dev->sriov->offset +  in pci_iov_virtfn_bus()
24 dev->sriov->stride * vf_id) >> 8); in pci_iov_virtfn_bus()
31 return (dev->devfn + dev->sriov->offset + in pci_iov_virtfn_devfn()
32 dev->sriov->stride * vf_id) & 0xff; in pci_iov_virtfn_devfn()
43 struct pci_sriov *iov = dev->sriov; in pci_iov_set_numvfs()
59 struct pci_sriov *iov = dev->sriov; in compute_max_vf_buses()
110 return dev->sriov->barsz[resno - PCI_IOV_RESOURCES]; in pci_iov_resource_size()
127 &physfn->sriov->class); in pci_read_vf_config_common()
129 &physfn->sriov->hdr_type); in pci_read_vf_config_common()
131 &physfn->sriov->subsystem_vendor); in pci_read_vf_config_common()
133 &physfn->sriov->subsystem_device); in pci_read_vf_config_common()
167 struct pci_sriov *iov = dev->sriov; in pci_iov_add_virtfn()
274 num_vfs = pdev->sriov->num_VFs; in sriov_numvfs_show()
304 if (num_vfs == pdev->sriov->num_VFs) in sriov_numvfs_store()
321 if (pdev->sriov->num_VFs) { in sriov_numvfs_store()
323 pdev->sriov->num_VFs, num_vfs); in sriov_numvfs_store()
351 return sprintf(buf, "%u\n", pdev->sriov->offset); in sriov_offset_show()
360 return sprintf(buf, "%u\n", pdev->sriov->stride); in sriov_stride_show()
369 return sprintf(buf, "%x\n", pdev->sriov->vf_device); in sriov_vf_device_show()
378 return sprintf(buf, "%u\n", pdev->sriov->drivers_autoprobe); in sriov_drivers_autoprobe_show()
391 pdev->sriov->drivers_autoprobe = drivers_autoprobe; in sriov_drivers_autoprobe_store()
468 struct pci_sriov *iov = dev->sriov; in sriov_enable()
572 struct pci_sriov *iov = dev->sriov; in sriov_del_vfs()
581 struct pci_sriov *iov = dev->sriov; in sriov_disable()
693 dev->sriov = iov; in sriov_init()
702 dev->sriov = NULL; in sriov_init()
716 BUG_ON(dev->sriov->num_VFs); in sriov_release()
718 if (dev != dev->sriov->dev) in sriov_release()
719 pci_dev_put(dev->sriov->dev); in sriov_release()
721 kfree(dev->sriov); in sriov_release()
722 dev->sriov = NULL; in sriov_release()
729 struct pci_sriov *iov = dev->sriov; in sriov_restore_state()
789 struct pci_sriov *iov = dev->sriov; in pci_iov_remove()
808 struct pci_sriov *iov = dev->is_physfn ? dev->sriov : NULL; in pci_iov_update_resource()
896 dev->sriov->drivers_autoprobe = auto_probe; in pci_vf_drivers_autoprobe()
914 if (dev->sriov->max_VF_buses > max) in pci_iov_bus_range()
915 max = dev->sriov->max_VF_buses; in pci_iov_bus_range()
965 return dev->sriov->num_VFs; in pci_num_vf()
990 dev_id = dev->sriov->vf_device; in pci_vfs_assigned()
1028 if (numvfs > dev->sriov->total_VFs) in pci_sriov_set_totalvfs()
1032 if (dev->sriov->ctrl & PCI_SRIOV_CTRL_VFE) in pci_sriov_set_totalvfs()
1035 dev->sriov->driver_max_VFs = numvfs; in pci_sriov_set_totalvfs()
1053 return dev->sriov->driver_max_VFs; in pci_sriov_get_totalvfs()