Home
last modified time | relevance | path

Searched refs:edev (Results 1 – 16 of 16) sorted by relevance

/arch/powerpc/kernel/
A Deeh_pe.c250 fn(edev, flag); in eeh_pe_dev_traverse()
322 edev->pe = pe; in eeh_pe_tree_insert()
340 edev->pe = pe; in eeh_pe_tree_insert()
387 edev->pe = pe; in eeh_pe_tree_insert()
416 edev->pe = NULL; in eeh_pe_tree_remove()
712 eeh_ops->write_config(edev, i*4, 4, edev->config_space[i]); in eeh_restore_bridge_bars()
714 eeh_ops->write_config(edev, 14*4, 4, edev->config_space[14]); in eeh_restore_bridge_bars()
722 eeh_ops->write_config(edev, 15*4, 4, edev->config_space[15]); in eeh_restore_bridge_bars()
738 eeh_ops->write_config(edev, i*4, 4, edev->config_space[i]); in eeh_restore_device_bars()
740 eeh_ops->write_config(edev, 12*4, 4, edev->config_space[12]); in eeh_restore_device_bars()
[all …]
A Deeh_driver.c78 return !edev || (edev->mode & EEH_DEV_REMOVED); in eeh_dev_removed()
83 if (!edev->pdev) in eeh_edev_actionable()
146 if (edev->pdev->msi_enabled || edev->pdev->msix_enabled) in eeh_disable_irq()
196 if (!edev) in eeh_dev_save_state()
206 if (edev->pe && (edev->pe->state & EEH_PE_CFG_RESTRICTED)) in eeh_dev_save_state()
291 !eeh_dev_removed(edev), !eeh_pe_passed(edev->pe));
383 if (!edev) in eeh_dev_restore_state()
394 if (edev->pe && (edev->pe->state & EEH_PE_CFG_RESTRICTED)) { in eeh_dev_restore_state()
395 if (list_is_last(&edev->entry, &edev->pe->edevs)) in eeh_dev_restore_state()
486 pci_iov_add_virtfn(edev->physfn, edev->vf_index); in eeh_add_virt_device()
[all …]
A Deeh_sysfs.c48 if (!edev || !edev->pe) in eeh_pe_state_show()
53 state, edev->pe->state); in eeh_pe_state_show()
63 if (!edev || !edev->pe) in eeh_pe_state_store()
70 if (eeh_unfreeze_pe(edev->pe)) in eeh_pe_state_store()
87 if (!edev || !edev->pe) in eeh_notify_resume_show()
100 if (!edev || !edev->pe || !eeh_ops->notify_resume) in eeh_notify_resume_store()
145 if (edev && (edev->mode & EEH_DEV_SYSFS)) in eeh_sysfs_add_device()
155 else if (edev) in eeh_sysfs_add_device()
156 edev->mode |= EEH_DEV_SYSFS; in eeh_sysfs_add_device()
163 if (!edev) { in eeh_sysfs_remove_device()
[all …]
A Deeh.c176 edev->pe->phb->global_number, edev->bdfn >> 8, in eeh_dump_dev_log()
177 PCI_SLOT(edev->bdfn), PCI_FUNC(edev->bdfn)); in eeh_dump_dev_log()
179 edev->pe->phb->global_number, edev->bdfn >> 8, in eeh_dump_dev_log()
180 PCI_SLOT(edev->bdfn), PCI_FUNC(edev->bdfn)); in eeh_dump_dev_log()
906 if (!edev) in eeh_save_bars()
1037 if (edev->pdev && edev->pdev != dev) { in eeh_probe_device()
1052 dev->dev.archdata.edev = edev; in eeh_probe_device()
1078 if (!edev || !edev->pdev || !edev->pe) { in eeh_remove_device()
1220 if (!edev || !edev->pe) in eeh_dev_open()
1260 if (!edev || !edev->pe || !eeh_pe_passed(edev->pe)) in eeh_dev_release()
[all …]
A Dpci_dn.c133 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()
143 return edev; in eeh_dev_init()
207 BUG_ON(!edev); in add_sriov_vf_pdns()
259 if (edev) { in remove_sriov_vf_pdns()
265 if (edev->pe) in remove_sriov_vf_pdns()
269 kfree(edev); in remove_sriov_vf_pdns()
322 if (!edev) { in pci_add_device_node_info()
[all …]
A Deeh_cache.c44 struct eeh_dev *edev; member
67 return piar->edev; in __eeh_addr_cache_get_device()
84 struct eeh_dev *edev; in eeh_addr_cache_get_dev() local
88 edev = __eeh_addr_cache_get_device(addr); in eeh_addr_cache_get_dev()
90 return edev; in eeh_addr_cache_get_dev()
147 piar->edev = pci_dev_to_eeh_dev(dev); in eeh_addr_cache_insert()
151 eeh_edev_dbg(piar->edev, "PIAR: insert range=[%pap:%pap]\n", in eeh_addr_cache_insert()
162 struct eeh_dev *edev; in __eeh_addr_cache_insert_dev() local
165 edev = pci_dev_to_eeh_dev(dev); in __eeh_addr_cache_insert_dev()
166 if (!edev) { in __eeh_addr_cache_insert_dev()
[all …]
A Drtas_pci.c57 if (pdn->edev && pdn->edev->pe && in rtas_pci_dn_read_config()
58 (pdn->edev->pe->state & EEH_PE_CFG_BLOCKED)) in rtas_pci_dn_read_config()
108 if (pdn->edev && pdn->edev->pe && in rtas_pci_dn_write_config()
109 (pdn->edev->pe->state & EEH_PE_CFG_BLOCKED)) in rtas_pci_dn_write_config()
A Dpci_of_scan.c355 struct eeh_dev *edev = pdn_to_eeh_dev(PCI_DN(dn)); in of_scan_pci_dev() local
376 if (edev && (edev->mode & EEH_DEV_REMOVED)) in of_scan_pci_dev()
/arch/powerpc/platforms/pseries/
A Deeh_pseries.c295 if (!edev || !edev->pcie_cap) in pseries_eeh_find_ecap()
335 if (edev->physfn) in pseries_eeh_pe_get_parent()
367 struct eeh_dev *edev; in pseries_eeh_init_edev() local
381 if (!edev) in pseries_eeh_init_edev()
390 if (edev->pe) in pseries_eeh_init_edev()
450 eeh_save_bars(edev); in pseries_eeh_init_edev()
473 if (!edev || !edev->pe) in pseries_eeh_probe()
476 return edev; in pseries_eeh_probe()
733 if (pci_num_vf(edev->physfn ? edev->physfn : edev->pdev)) { in pseries_call_allow_unfreeze()
776 if (!edev) in pseries_notify_resume()
[all …]
A Dmsi.c185 struct eeh_dev *edev; in find_pe_dn() local
194 edev = pdn_to_eeh_dev(PCI_DN(dn)); in find_pe_dn()
195 if (edev->pe) in find_pe_dn()
196 edev = list_first_entry(&edev->pe->edevs, struct eeh_dev, in find_pe_dn()
198 dn = pci_device_to_OF_node(edev->pdev); in find_pe_dn()
/arch/powerpc/include/asm/
A Deeh.h104 #define eeh_pe_for_each_dev(pe, edev, tmp) \ argument
157 (edev)->controller->global_number, PCI_BUSNO((edev)->bdfn), \
158 PCI_SLOT((edev)->bdfn), PCI_FUNC((edev)->bdfn), \
159 ((edev)->pe ? (edev)->pe_config_addr : 0xffff), ##__VA_ARGS__)
160 #define eeh_edev_dbg(edev, fmt, ...) EEH_EDEV_PRINT(debug, (edev), fmt, ##__VA_ARGS__) argument
161 #define eeh_edev_info(edev, fmt, ...) EEH_EDEV_PRINT(info, (edev), fmt, ##__VA_ARGS__) argument
162 #define eeh_edev_warn(edev, fmt, ...) EEH_EDEV_PRINT(warn, (edev), fmt, ##__VA_ARGS__) argument
163 #define eeh_edev_err(edev, fmt, ...) EEH_EDEV_PRINT(err, (edev), fmt, ##__VA_ARGS__) argument
167 return edev ? edev->pdn : NULL; in eeh_dev_to_pdn()
172 return edev ? edev->pdev : NULL; in eeh_dev_to_pci_dev()
[all …]
A Ddevice.h36 struct eeh_dev *edev; member
A Dpci-bridge.h217 struct eeh_dev *edev; /* eeh device */ member
254 return pdn ? pdn->edev : NULL; in pdn_to_eeh_dev()
A Dppc-pci.h59 void eeh_save_bars(struct eeh_dev *edev);
/arch/powerpc/platforms/powernv/
A Deeh-powernv.c271 if (!edev || !edev->pcie_cap) in pnv_eeh_find_ecap()
338 if (!edev || edev->pe) in pnv_eeh_probe()
346 return edev; in pnv_eeh_probe()
441 return edev; in pnv_eeh_probe()
805 int aer = edev ? edev->aer_cap : 0; in __pnv_eeh_bridge_reset()
910 struct eeh_dev *edev = pdn->edev; in pnv_eeh_wait_for_pending() local
946 eeh_ops->read_config(edev, edev->pcie_cap + PCI_EXP_DEVCTL, in pnv_eeh_do_flr()
989 eeh_ops->write_config(edev, edev->af_cap + PCI_AF_CTRL, in pnv_eeh_do_af_flr()
1211 if (!edev || !edev->pe) in pnv_eeh_cfg_blocked()
1219 if (edev->physfn && (edev->pe->state & EEH_PE_RESET)) in pnv_eeh_cfg_blocked()
[all …]
A Dpci.c646 struct eeh_dev *edev = NULL; in pnv_pci_cfg_check() local
654 edev = pdn->edev; in pnv_pci_cfg_check()
655 if (edev) { in pnv_pci_cfg_check()
656 if (edev->pe && in pnv_pci_cfg_check()
657 (edev->pe->state & EEH_PE_CFG_BLOCKED)) in pnv_pci_cfg_check()
660 if (edev->mode & EEH_DEV_REMOVED) in pnv_pci_cfg_check()
691 if (phb->flags & PNV_PHB_FLAG_EEH && pdn->edev) { in pnv_pci_read_config()
693 eeh_dev_check_failure(pdn->edev)) in pnv_pci_read_config()

Completed in 661 milliseconds