Searched refs:accel_to_pci_dev (Results 1 – 7 of 7) sorted by relevance
87 struct pci_dev *pdev = accel_to_pci_dev(accel_dev); in adf_reset_sbr()112 pcie_flr(accel_to_pci_dev(accel_dev)); in adf_reset_flr()119 struct pci_dev *pdev = accel_to_pci_dev(accel_dev); in adf_dev_restore()232 struct pci_dev *pdev = accel_to_pci_dev(accel_dev); in adf_enable_aer()252 struct pci_dev *pdev = accel_to_pci_dev(accel_dev); in adf_disable_aer()
68 return ((7 * (PCI_SLOT(accel_to_pci_dev(vf)->devfn) - 1)) + in adf_get_vf_id()69 PCI_FUNC(accel_to_pci_dev(vf)->devfn) + in adf_get_vf_id()70 (PCI_SLOT(accel_to_pci_dev(vf)->devfn) - 1)); in adf_get_vf_id()75 return (accel_to_pci_dev(vf)->bus->number << 8) | adf_get_vf_id(vf); in adf_get_vf_num()
112 struct pci_dev *pdev = accel_to_pci_dev(accel_dev); in adf_enable_sriov()177 int totalvfs = pci_sriov_get_totalvfs(accel_to_pci_dev(accel_dev)); in adf_disable_sriov()187 pci_disable_sriov(accel_to_pci_dev(accel_dev)); in adf_disable_sriov()
95 struct pci_dev *pdev = accel_to_pci_dev(accel_dev); in adf_disable_msi()238 struct pci_dev *pdev = accel_to_pci_dev(accel_dev); in adf_request_msi_irq()283 struct pci_dev *pdev = accel_to_pci_dev(accel_dev); in adf_vf_isr_resource_free()
413 dev_info.bus = accel_to_pci_dev(accel_dev)->bus->number; in adf_ctl_ioctl_get_status()414 dev_info.dev = PCI_SLOT(accel_to_pci_dev(accel_dev)->devfn); in adf_ctl_ioctl_get_status()415 dev_info.fun = PCI_FUNC(accel_to_pci_dev(accel_dev)->devfn); in adf_ctl_ioctl_get_status()
209 #define accel_to_pci_dev(accel_ptr) accel_ptr->accel_pci_dev.pci_dev macro
343 int i, num_vfs = pci_num_vf(accel_to_pci_dev(accel_dev)); in adf_pf2vf_notify_restarting()