Lines Matching refs:edev
130 struct eeh_dev *edev; in eeh_dev_init() local
133 edev = kzalloc(sizeof(*edev), GFP_KERNEL); in eeh_dev_init()
134 if (!edev) in eeh_dev_init()
138 pdn->edev = edev; in eeh_dev_init()
139 edev->pdn = pdn; in eeh_dev_init()
140 edev->bdfn = (pdn->busno << 8) | pdn->devfn; in eeh_dev_init()
141 edev->controller = pdn->phb; in eeh_dev_init()
143 return edev; in eeh_dev_init()
193 struct eeh_dev *edev __maybe_unused; in add_sriov_vf_pdns()
206 edev = eeh_dev_init(pdn); in add_sriov_vf_pdns()
207 BUG_ON(!edev); in add_sriov_vf_pdns()
210 edev->physfn = pdev; in add_sriov_vf_pdns()
211 edev->vf_index = i; in add_sriov_vf_pdns()
243 struct eeh_dev *edev __maybe_unused; in remove_sriov_vf_pdns()
258 edev = pdn_to_eeh_dev(pdn); in remove_sriov_vf_pdns()
259 if (edev) { in remove_sriov_vf_pdns()
265 if (edev->pe) in remove_sriov_vf_pdns()
266 eeh_pe_tree_remove(edev); in remove_sriov_vf_pdns()
268 pdn->edev = NULL; in remove_sriov_vf_pdns()
269 kfree(edev); in remove_sriov_vf_pdns()
290 struct eeh_dev *edev; in pci_add_device_node_info() local
321 edev = eeh_dev_init(pdn); in pci_add_device_node_info()
322 if (!edev) { in pci_add_device_node_info()
347 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in pci_remove_device_node_info() local
349 if (edev) in pci_remove_device_node_info()
350 edev->pdn = NULL; in pci_remove_device_node_info()