Home
last modified time | relevance | path

Searched refs:physfn (Results 1 – 25 of 29) sorted by relevance

12

/linux-6.6.21/drivers/xen/
Dpci.c32 struct pci_dev *physfn = pci_dev->physfn; in xen_add_device() local
64 add->physfn.bus = physfn->bus->number; in xen_add_device()
65 add->physfn.devfn = physfn->devfn; in xen_add_device()
75 handle = ACPI_HANDLE(physfn->bus->bridge); in xen_add_device()
121 .physfn.bus = physfn->bus->number, in xen_add_device()
122 .physfn.devfn = physfn->devfn, in xen_add_device()
/linux-6.6.21/arch/s390/pci/
Dpci_iov.c44 pci_iov_remove_virtfn(pdev->physfn, vfn - 1); in zpci_iov_remove_virtfn()
58 virtfn->physfn = pci_dev_get(pdev); in zpci_iov_link_virtfn()
/linux-6.6.21/arch/powerpc/platforms/pseries/
Deeh_pseries.c76 struct eeh_pe *physfn_pe = pci_dev_to_eeh_dev(pdev->physfn)->pe; in pseries_pcibios_bus_add_device()
335 if (edev->physfn) in pseries_eeh_pe_get_parent()
336 pdn = pci_get_pdn(edev->physfn); in pseries_eeh_pe_get_parent()
731 if (pci_num_vf(edev->physfn ? edev->physfn : edev->pdev)) { in pseries_call_allow_unfreeze()
758 physfn_pdn = pci_get_pdn(edev->physfn); in pseries_call_allow_unfreeze()
/linux-6.6.21/include/xen/interface/
Dphysdev.h174 } physfn; member
243 } physfn; member
/linux-6.6.21/drivers/pci/
Diov.c71 pf_dev = dev->physfn; in pci_iov_get_pf_drvdata()
158 struct pci_dev *physfn = virtfn->physfn; in pci_read_vf_config_common() local
170 &physfn->sriov->class); in pci_read_vf_config_common()
172 &physfn->sriov->hdr_type); in pci_read_vf_config_common()
174 &physfn->sriov->subsystem_vendor); in pci_read_vf_config_common()
176 &physfn->sriov->subsystem_device); in pci_read_vf_config_common()
310 virtfn->physfn = pci_dev_get(dev); in pci_iov_add_virtfn()
1136 if (vfdev->is_virtfn && (vfdev->physfn == dev) && in pci_vfs_assigned()
Dprobe.c1745 return dev->physfn->sriov->class; in pci_class()
1755 *vendor = dev->physfn->sriov->subsystem_vendor; in pci_subsystem_ids()
1756 *device = dev->physfn->sriov->subsystem_device; in pci_subsystem_ids()
1770 return dev->physfn->sriov->hdr_type; in pci_hdr_type()
Dpci-driver.c344 return dev->is_virtfn && dev->physfn->is_probed; in pci_physfn_is_probed()
434 return (!pdev->is_virtfn || pdev->physfn->sriov->drivers_autoprobe || in pci_device_can_probe()
/linux-6.6.21/arch/powerpc/kernel/
Deeh_sysfs.c115 np = pci_device_to_OF_node(pdev->is_physfn ? pdev : pdev->physfn); in eeh_notify_resume_add()
127 np = pci_device_to_OF_node(pdev->is_physfn ? pdev : pdev->physfn); in eeh_notify_resume_remove()
Deeh_driver.c464 if (!(edev->physfn)) { in eeh_add_virt_device()
479 pci_iov_add_virtfn(edev->physfn, edev->vf_index); in eeh_add_virt_device()
521 if (edev->physfn) { in eeh_rmv_device()
523 pci_iov_remove_virtfn(edev->physfn, edev->vf_index); in eeh_rmv_device()
Dpci_dn.c210 edev->physfn = pdev; in add_sriov_vf_pdns()
Deeh_pe.c350 if (edev->physfn) in eeh_pe_tree_insert()
Deeh.c1784 pdev = pdev->physfn; in eeh_debugfs_break_device()
/linux-6.6.21/drivers/crypto/intel/qat/qat_c3xxxvf/
Dadf_drv.c70 pf = adf_devmgr_pci_to_accel_dev(accel_pci_dev->pci_dev->physfn); in adf_cleanup_accel()
98 pf = adf_devmgr_pci_to_accel_dev(pdev->physfn); in adf_probe()
/linux-6.6.21/drivers/crypto/intel/qat/qat_dh895xccvf/
Dadf_drv.c70 pf = adf_devmgr_pci_to_accel_dev(accel_pci_dev->pci_dev->physfn); in adf_cleanup_accel()
98 pf = adf_devmgr_pci_to_accel_dev(pdev->physfn); in adf_probe()
/linux-6.6.21/drivers/crypto/intel/qat/qat_c62xvf/
Dadf_drv.c70 pf = adf_devmgr_pci_to_accel_dev(accel_pci_dev->pci_dev->physfn); in adf_cleanup_accel()
98 pf = adf_devmgr_pci_to_accel_dev(pdev->physfn); in adf_probe()
/linux-6.6.21/drivers/vfio/pci/
Dvfio_pci_core.c2042 struct pci_dev *physfn = pci_physfn(pdev); in vfio_pci_bus_notifier() local
2045 pdev->is_virtfn && physfn == vdev->pdev) { in vfio_pci_bus_notifier()
2051 pdev->is_virtfn && physfn == vdev->pdev) { in vfio_pci_bus_notifier()
2068 struct pci_dev *physfn; in vfio_pci_vf_init() local
2078 physfn = pci_physfn(vdev->pdev); in vfio_pci_vf_init()
2081 if (cur->pdev == physfn) { in vfio_pci_vf_init()
/linux-6.6.21/drivers/vdpa/solidrun/
Dsnet_main.c66 pdev = snet->pdev->physfn; in snet_free_irqs()
443 ret = snet_request_irqs(pf_irqs ? pdev->physfn : pdev, snet); in snet_set_status()
962 struct pci_dev *pdev_pf = pdev->physfn; in snet_vdpa_probe_vf()
/linux-6.6.21/arch/powerpc/platforms/powernv/
Deeh-powernv.c303 parent = pdev->physfn; in pnv_eeh_get_upstream_pe()
1220 if (edev->physfn && (edev->pe->state & EEH_PE_RESET)) in pnv_eeh_cfg_blocked()
1611 if (edev->physfn) in pnv_eeh_restore_config()
/linux-6.6.21/drivers/net/ethernet/sfc/
Def10.c652 if ((efx->pci_dev->physfn) && (!efx->pci_dev->is_physfn)) { in efx_ef10_probe()
653 struct pci_dev *pci_dev_pf = efx->pci_dev->physfn; in efx_ef10_probe()
931 pci_dev_pf = efx->pci_dev->physfn; in efx_ef10_remove()
1075 pci_dev_pf = efx->pci_dev->physfn; in efx_ef10_probe_vf()
1097 if (efx->pci_dev->physfn) { in efx_ef10_probe_vf()
1099 pci_get_drvdata(efx->pci_dev->physfn); in efx_ef10_probe_vf()
3313 if (efx->pci_dev->is_virtfn && efx->pci_dev->physfn) { in efx_ef10_set_mac_address()
3314 struct efx_nic *efx_pf = pci_get_drvdata(efx->pci_dev->physfn); in efx_ef10_set_mac_address()
/linux-6.6.21/arch/powerpc/include/asm/
Deeh.h150 struct pci_dev *physfn; /* Associated SRIOV PF */ member
/linux-6.6.21/arch/sparc/kernel/
Dpci.c881 pdev = dev->physfn; in pcibios_device_add()
/linux-6.6.21/drivers/iommu/intel/
Ddmar.c335 struct pci_dev *physfn = pci_physfn(pdev); in vf_inherit_msi_domain() local
337 dev_set_msi_domain(&pdev->dev, dev_get_msi_domain(&physfn->dev)); in vf_inherit_msi_domain()
/linux-6.6.21/include/linux/
Dpci.h499 struct pci_dev *physfn; /* VF: related PF */ member
538 dev = dev->physfn; in pci_physfn()
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_sriov.c1733 if (vfdev->is_virtfn && vfdev->physfn == pdev) in ice_restore_all_vfs_msi_state()
/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.c142 if (vfdev->physfn != pdev) in ixgbe_get_vfs()

12