Searched refs:virtfn (Results 1 – 8 of 8) sorted by relevance
/linux-6.12.1/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-6.12.1/drivers/pci/ |
D | iov.c | 156 static void pci_read_vf_config_common(struct pci_dev *virtfn) in pci_read_vf_config_common() argument 158 struct pci_dev *physfn = virtfn->physfn; in pci_read_vf_config_common() 169 pci_read_config_dword(virtfn, PCI_CLASS_REVISION, in pci_read_vf_config_common() 171 pci_read_config_byte(virtfn, PCI_HEADER_TYPE, in pci_read_vf_config_common() 173 pci_read_config_word(virtfn, PCI_SUBSYSTEM_VENDOR_ID, in pci_read_vf_config_common() 175 pci_read_config_word(virtfn, PCI_SUBSYSTEM_ID, in pci_read_vf_config_common() 180 struct pci_dev *virtfn, int id) in pci_iov_sysfs_link() argument 186 rc = sysfs_create_link(&dev->dev.kobj, &virtfn->dev.kobj, buf); in pci_iov_sysfs_link() 189 rc = sysfs_create_link(&virtfn->dev.kobj, &dev->dev.kobj, "physfn"); in pci_iov_sysfs_link() 193 kobject_uevent(&virtfn->dev.kobj, KOBJ_CHANGE); in pci_iov_sysfs_link() [all …]
|
/linux-6.12.1/drivers/net/ethernet/emulex/benet/ |
D | be.h | 649 u8 virtfn; member 681 #define be_physfn(adapter) (!adapter->virtfn) 682 #define be_virtfn(adapter) (adapter->virtfn)
|
D | be_main.c | 5572 adapter->virtfn = (sli_intf & SLI_INTF_FT_MASK) ? 1 : 0; in be_map_pci_bars()
|
/linux-6.12.1/drivers/crypto/hisilicon/ |
D | qm.c | 4045 struct pci_dev *virtfn; in qm_vf_reset_prepare() local 4051 virtfn = vf_qm->pdev; in qm_vf_reset_prepare() 4052 if (virtfn == pdev) in qm_vf_reset_prepare() 4055 if (pci_physfn(virtfn) == pdev) { in qm_vf_reset_prepare() 4057 pci_save_state(virtfn); in qm_vf_reset_prepare() 4234 struct pci_dev *virtfn; in qm_vf_reset_done() local 4240 virtfn = vf_qm->pdev; in qm_vf_reset_done() 4241 if (virtfn == pdev) in qm_vf_reset_done() 4244 if (pci_physfn(virtfn) == pdev) { in qm_vf_reset_done() 4246 pci_restore_state(virtfn); in qm_vf_reset_done()
|
/linux-6.12.1/include/linux/ |
D | pci.h | 2365 int pci_iov_sysfs_link(struct pci_dev *dev, struct pci_dev *virtfn, int id); 2405 struct pci_dev *virtfn, int id) in pci_iov_sysfs_link() argument
|
/linux-6.12.1/Documentation/ABI/testing/ |
D | sysfs-bus-pci | 178 What: /sys/bus/pci/devices/.../virtfn<N>
|