Lines Matching defs:dev
19 int pci_iov_virtfn_bus(struct pci_dev *dev, int vf_id) in pci_iov_virtfn_bus()
27 int pci_iov_virtfn_devfn(struct pci_dev *dev, int vf_id) in pci_iov_virtfn_devfn()
36 int pci_iov_vf_id(struct pci_dev *dev) in pci_iov_vf_id()
65 void *pci_iov_get_pf_drvdata(struct pci_dev *dev, struct pci_driver *pf_driver) in pci_iov_get_pf_drvdata()
84 static inline void pci_iov_set_numvfs(struct pci_dev *dev, int nr_virtfn) in pci_iov_set_numvfs()
100 static int compute_max_vf_buses(struct pci_dev *dev) in compute_max_vf_buses()
148 resource_size_t pci_iov_resource_size(struct pci_dev *dev, int resno) in pci_iov_resource_size()
179 int pci_iov_sysfs_link(struct pci_dev *dev, in pci_iov_sysfs_link()
204 static ssize_t sriov_vf_total_msix_show(struct device *dev, in sriov_vf_total_msix_show()
222 static ssize_t sriov_vf_msix_count_store(struct device *dev, in sriov_vf_msix_count_store()
274 struct device *dev = kobj_to_dev(kobj); in sriov_vf_attrs_are_visible() local
288 int pci_iov_add_virtfn(struct pci_dev *dev, int id) in pci_iov_add_virtfn()
355 void pci_iov_remove_virtfn(struct pci_dev *dev, int id) in pci_iov_remove_virtfn()
384 static ssize_t sriov_totalvfs_show(struct device *dev, in sriov_totalvfs_show()
393 static ssize_t sriov_numvfs_show(struct device *dev, in sriov_numvfs_show()
415 static ssize_t sriov_numvfs_store(struct device *dev, in sriov_numvfs_store()
479 static ssize_t sriov_offset_show(struct device *dev, in sriov_offset_show()
488 static ssize_t sriov_stride_show(struct device *dev, in sriov_stride_show()
497 static ssize_t sriov_vf_device_show(struct device *dev, in sriov_vf_device_show()
506 static ssize_t sriov_drivers_autoprobe_show(struct device *dev, in sriov_drivers_autoprobe_show()
515 static ssize_t sriov_drivers_autoprobe_store(struct device *dev, in sriov_drivers_autoprobe_store()
553 struct device *dev = kobj_to_dev(kobj); in sriov_pf_attrs_are_visible() local
576 static int sriov_add_vfs(struct pci_dev *dev, u16 num_vfs) in sriov_add_vfs()
597 static int sriov_enable(struct pci_dev *dev, int nr_virtfn) in sriov_enable()
707 static void sriov_del_vfs(struct pci_dev *dev) in sriov_del_vfs()
716 static void sriov_disable(struct pci_dev *dev) in sriov_disable()
739 static int sriov_init(struct pci_dev *dev, int pos) in sriov_init()
851 static void sriov_release(struct pci_dev *dev) in sriov_release()
862 static void sriov_restore_state(struct pci_dev *dev) in sriov_restore_state()
896 int pci_iov_init(struct pci_dev *dev) in pci_iov_init()
914 void pci_iov_release(struct pci_dev *dev) in pci_iov_release()
924 void pci_iov_remove(struct pci_dev *dev) in pci_iov_remove()
943 void pci_iov_update_resource(struct pci_dev *dev, int resno) in pci_iov_update_resource()
994 resource_size_t __weak pcibios_iov_resource_alignment(struct pci_dev *dev, in pcibios_iov_resource_alignment()
1010 resource_size_t pci_sriov_resource_alignment(struct pci_dev *dev, int resno) in pci_sriov_resource_alignment()
1019 void pci_restore_iov_state(struct pci_dev *dev) in pci_restore_iov_state()
1030 void pci_vf_drivers_autoprobe(struct pci_dev *dev, bool auto_probe) in pci_vf_drivers_autoprobe()
1046 struct pci_dev *dev; in pci_iov_bus_range() local
1065 int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn) in pci_enable_sriov()
1080 void pci_disable_sriov(struct pci_dev *dev) in pci_disable_sriov()
1097 int pci_num_vf(struct pci_dev *dev) in pci_num_vf()
1113 int pci_vfs_assigned(struct pci_dev *dev) in pci_vfs_assigned()
1160 int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs) in pci_sriov_set_totalvfs()
1185 int pci_sriov_get_totalvfs(struct pci_dev *dev) in pci_sriov_get_totalvfs()
1203 int pci_sriov_configure_simple(struct pci_dev *dev, int nr_virtfn) in pci_sriov_configure_simple()