Searched refs:virtfn (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.10/arch/s390/pci/ |
D | pci_iov.c | 48 static int zpci_iov_link_virtfn(struct pci_dev *pdev, struct pci_dev *virtfn, int vfid) in zpci_iov_link_virtfn() argument 52 rc = pci_iov_sysfs_link(pdev, virtfn, vfid); in zpci_iov_link_virtfn() 56 virtfn->is_virtfn = 1; in zpci_iov_link_virtfn() 57 virtfn->multifunction = 0; in zpci_iov_link_virtfn() 58 virtfn->physfn = pci_dev_get(pdev); in zpci_iov_link_virtfn() 63 int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn) in zpci_iov_setup_virtfn() argument 88 if (cand_devfn == virtfn->devfn) { in zpci_iov_setup_virtfn() 89 rc = zpci_iov_link_virtfn(pdev, virtfn, vfid); in zpci_iov_setup_virtfn()
|
D | pci_iov.h | 18 int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn); 25 static inline int zpci_iov_setup_virtfn(struct zpci_bus *zbus, struct pci_dev *virtfn, int vfn) in zpci_iov_setup_virtfn() argument
|
/Linux-v5.10/drivers/pci/ |
D | iov.c | 113 static void pci_read_vf_config_common(struct pci_dev *virtfn) in pci_read_vf_config_common() argument 115 struct pci_dev *physfn = virtfn->physfn; in pci_read_vf_config_common() 126 pci_read_config_dword(virtfn, PCI_CLASS_REVISION, in pci_read_vf_config_common() 128 pci_read_config_byte(virtfn, PCI_HEADER_TYPE, in pci_read_vf_config_common() 130 pci_read_config_word(virtfn, PCI_SUBSYSTEM_VENDOR_ID, in pci_read_vf_config_common() 132 pci_read_config_word(virtfn, PCI_SUBSYSTEM_ID, in pci_read_vf_config_common() 137 struct pci_dev *virtfn, int id) in pci_iov_sysfs_link() argument 143 rc = sysfs_create_link(&dev->dev.kobj, &virtfn->dev.kobj, buf); in pci_iov_sysfs_link() 146 rc = sysfs_create_link(&virtfn->dev.kobj, &dev->dev.kobj, "physfn"); in pci_iov_sysfs_link() 150 kobject_uevent(&virtfn->dev.kobj, KOBJ_CHANGE); in pci_iov_sysfs_link() [all …]
|
/Linux-v5.10/drivers/net/ethernet/emulex/benet/ |
D | be.h | 650 u8 virtfn; member 682 #define be_physfn(adapter) (!adapter->virtfn) 683 #define be_virtfn(adapter) (adapter->virtfn)
|
D | be_main.c | 5583 adapter->virtfn = (sli_intf & SLI_INTF_FT_MASK) ? 1 : 0; in be_map_pci_bars()
|
/Linux-v5.10/drivers/crypto/hisilicon/ |
D | qm.c | 3384 struct pci_dev *virtfn; in qm_vf_reset_prepare() local 3390 virtfn = vf_qm->pdev; in qm_vf_reset_prepare() 3391 if (virtfn == pdev) in qm_vf_reset_prepare() 3394 if (pci_physfn(virtfn) == pdev) { in qm_vf_reset_prepare() 3396 pci_save_state(virtfn); in qm_vf_reset_prepare() 3550 struct pci_dev *virtfn; in qm_vf_reset_done() local 3556 virtfn = vf_qm->pdev; in qm_vf_reset_done() 3557 if (virtfn == pdev) in qm_vf_reset_done() 3560 if (pci_physfn(virtfn) == pdev) { in qm_vf_reset_done() 3562 pci_restore_state(virtfn); in qm_vf_reset_done()
|
/Linux-v5.10/include/linux/ |
D | pci.h | 2060 int pci_iov_sysfs_link(struct pci_dev *dev, struct pci_dev *virtfn, int id); 2088 struct pci_dev *virtfn, int id) in pci_iov_sysfs_link() argument
|