Searched refs:vfdev (Results 1 – 8 of 8) sorted by relevance
/linux/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_mbx.c | 34 struct nitrox_vfdev *vfdev; member 57 struct nitrox_vfdev *vfdev) in pf2vf_send_response() argument 61 msg.value = vfdev->msg.value; in pf2vf_send_response() 63 switch (vfdev->msg.opcode) { in pf2vf_send_response() 68 vfdev->nr_queues = vfdev->msg.data; in pf2vf_send_response() 69 atomic_set(&vfdev->state, __NDEV_READY); in pf2vf_send_response() 73 msg.id.vfid = vfdev->vfno; in pf2vf_send_response() 76 vfdev->nr_queues = 0; in pf2vf_send_response() 77 atomic_set(&vfdev->state, __NDEV_NOT_READY); in pf2vf_send_response() 96 pf2vf_write_mbox(ndev, msg.value, vfdev->ring); in pf2vf_send_response() [all …]
|
H A D | nitrox_dev.h | 177 struct nitrox_vfdev *vfdev; member 297 static inline bool nitrox_vfdev_ready(struct nitrox_vfdev *vfdev) in nitrox_vfdev_ready() argument 299 return atomic_read(&vfdev->state) == __NDEV_READY; in nitrox_vfdev_ready()
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_sriov.c | 129 struct pci_dev *vfdev; in ixgbe_get_vfs() local 139 vfdev = pci_get_device(vendor, vf_id, NULL); in ixgbe_get_vfs() 140 for (; vfdev; vfdev = pci_get_device(vendor, vf_id, vfdev)) { in ixgbe_get_vfs() 141 if (!vfdev->is_virtfn) in ixgbe_get_vfs() 143 if (vfdev->physfn != pdev) in ixgbe_get_vfs() 147 pci_dev_get(vfdev); in ixgbe_get_vfs() 148 adapter->vfinfo[vf].vfdev = vfdev; in ixgbe_get_vfs() 220 struct pci_dev *vfdev = adapter->vfinfo[vf].vfdev; in ixgbe_disable_sriov() local 222 if (!vfdev) in ixgbe_disable_sriov() 224 adapter->vfinfo[vf].vfdev = NULL; in ixgbe_disable_sriov() [all …]
|
H A D | ixgbe_main.c | 8120 struct pci_dev *vfdev = adapter->vfinfo[vf].vfdev; in ixgbe_check_for_bad_vf() local 8123 if (!vfdev) in ixgbe_check_for_bad_vf() 8125 pci_read_config_word(vfdev, PCI_STATUS, &status_reg); in ixgbe_check_for_bad_vf() 8129 pcie_flr(vfdev); in ixgbe_check_for_bad_vf() 9813 upper = pci_get_drvdata(adapter->vfinfo[vf].vfdev); in handle_redirect_action() 11804 struct pci_dev *bdev, *vfdev; in ixgbe_io_error_detected() local 11870 vfdev = pci_get_device(PCI_VENDOR_ID_INTEL, device_id, NULL); in ixgbe_io_error_detected() 11871 while (vfdev) { in ixgbe_io_error_detected() 11872 if (vfdev->devfn == (req_id & 0xFF)) in ixgbe_io_error_detected() 11874 vfdev = pci_get_device(PCI_VENDOR_ID_INTEL, in ixgbe_io_error_detected() [all …]
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_sriov.c | 799 struct pci_dev *vfdev = NULL; in ice_create_vf_entries() local 826 vfdev = pci_get_device(pdev->vendor, vf_pdev_id, vfdev); in ice_create_vf_entries() 827 } while (vfdev && vfdev->physfn != pdev); in ice_create_vf_entries() 828 vf->vfdev = vfdev; in ice_create_vf_entries() 831 pci_dev_get(vfdev); in ice_create_vf_entries() 840 pci_dev_put(vfdev); in ice_create_vf_entries() 1958 pci_restore_msi_state(vf->vfdev); in ice_restore_all_vfs_msi_state()
|
H A D | ice_vf_lib.h | 98 struct pci_dev *vfdev; member
|
H A D | ice_vf_lib.c | 59 pci_dev_put(vf->vfdev); in ice_release_vf()
|
/linux/drivers/net/ethernet/cavium/liquidio/ |
H A D | lio_main.c | 3791 struct pci_dev *vfdev; in octeon_enable_sriov() local 3811 vfdev = pci_get_device(PCI_VENDOR_ID_CAVIUM, in octeon_enable_sriov() 3813 while (vfdev) { in octeon_enable_sriov() 3814 if (vfdev->is_virtfn && in octeon_enable_sriov() 3815 (vfdev->physfn == oct->pci_dev)) { in octeon_enable_sriov() 3817 vfdev; in octeon_enable_sriov() 3820 vfdev = pci_get_device(PCI_VENDOR_ID_CAVIUM, in octeon_enable_sriov() 3821 OCTEON_CN23XX_VF_VID, vfdev); in octeon_enable_sriov()
|