Home
last modified time | relevance | path

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

/arch/powerpc/platforms/pseries/
Deeh_pseries.c145 struct eeh_dev *edev; in pseries_eeh_set_option() local
149 edev = of_node_to_eeh_dev(dn); in pseries_eeh_set_option()
166 config_addr = edev->config_addr; in pseries_eeh_set_option()
167 if (edev->pe_config_addr) in pseries_eeh_set_option()
168 config_addr = edev->pe_config_addr; in pseries_eeh_set_option()
178 config_addr, BUID_HI(edev->phb->buid), in pseries_eeh_set_option()
179 BUID_LO(edev->phb->buid), option); in pseries_eeh_set_option()
199 struct eeh_dev *edev; in pseries_eeh_get_pe_addr() local
203 edev = of_node_to_eeh_dev(dn); in pseries_eeh_get_pe_addr()
212 edev->config_addr, BUID_HI(edev->phb->buid), in pseries_eeh_get_pe_addr()
[all …]
Deeh_event.c60 struct eeh_dev *edev; in eeh_event_handler() local
79 edev = event->edev; in eeh_event_handler()
80 eeh_mark_slot(eeh_dev_to_of_node(edev), EEH_MODE_RECOVERING); in eeh_event_handler()
83 eeh_pci_name(edev->pdev)); in eeh_event_handler()
86 edev = handle_eeh_events(event); in eeh_event_handler()
88 if (edev) { in eeh_event_handler()
89 eeh_clear_slot(eeh_dev_to_of_node(edev), EEH_MODE_RECOVERING); in eeh_event_handler()
90 pci_dev_put(edev->pdev); in eeh_event_handler()
97 if (edev && edev->freeze_count>0) { in eeh_event_handler()
99 if (edev->freeze_count>0) in eeh_event_handler()
[all …]
Deeh.c133 static size_t eeh_gather_pci_data(struct eeh_dev *edev, char * buf, size_t len) in eeh_gather_pci_data() argument
135 struct device_node *dn = eeh_dev_to_of_node(edev); in eeh_gather_pci_data()
136 struct pci_dev *dev = eeh_dev_to_pci_dev(edev); in eeh_gather_pci_data()
230 void eeh_slot_error_detail(struct eeh_dev *edev, int severity) in eeh_slot_error_detail() argument
235 eeh_pci_enable(edev, EEH_OPT_THAW_MMIO); in eeh_slot_error_detail()
236 eeh_ops->configure_bridge(eeh_dev_to_of_node(edev)); in eeh_slot_error_detail()
237 eeh_restore_bars(edev); in eeh_slot_error_detail()
238 loglen = eeh_gather_pci_data(edev, pci_regs_buf, EEH_PCI_REGS_LOG_LEN); in eeh_slot_error_detail()
240 eeh_ops->get_log(eeh_dev_to_of_node(edev), severity, pci_regs_buf, loglen); in eeh_slot_error_detail()
399 struct eeh_dev *edev; in eeh_dn_check_failure() local
[all …]
Deeh_dev.c55 struct eeh_dev *edev; in eeh_dev_init() local
58 edev = zalloc_maybe_bootmem(sizeof(*edev), GFP_KERNEL); in eeh_dev_init()
59 if (!edev) { in eeh_dev_init()
65 PCI_DN(dn)->edev = edev; in eeh_dev_init()
66 edev->dn = dn; in eeh_dev_init()
67 edev->phb = phb; in eeh_dev_init()
Deeh_driver.c120 struct eeh_dev *edev = pci_dev_to_eeh_dev(dev); in eeh_disable_irq() local
132 edev->mode |= EEH_MODE_IRQ_DISABLED; in eeh_disable_irq()
145 struct eeh_dev *edev = pci_dev_to_eeh_dev(dev); in eeh_enable_irq() local
147 if ((edev->mode) & EEH_MODE_IRQ_DISABLED) { in eeh_enable_irq()
148 edev->mode &= ~EEH_MODE_IRQ_DISABLED; in eeh_enable_irq()
333 static int eeh_reset_device(struct eeh_dev *edev, struct pci_bus *bus) in eeh_reset_device() argument
339 cnt = edev->freeze_count; in eeh_reset_device()
348 rc = eeh_reset_pe(edev); in eeh_reset_device()
353 dn = eeh_dev_to_of_node(edev); in eeh_reset_device()
361 if (edev->pe_config_addr == pedev->pe_config_addr) { in eeh_reset_device()
[all …]
Deeh_cache.c178 struct eeh_dev *edev; in __pci_addr_cache_insert_device() local
187 edev = of_node_to_eeh_dev(dn); in __pci_addr_cache_insert_device()
188 if (!edev) { in __pci_addr_cache_insert_device()
195 if (!(edev->mode & EEH_MODE_SUPPORTED) || in __pci_addr_cache_insert_device()
196 edev->mode & EEH_MODE_NOCHECK) { in __pci_addr_cache_insert_device()
290 struct eeh_dev *edev; in pci_addr_cache_build() local
302 edev = of_node_to_eeh_dev(dn); in pci_addr_cache_build()
303 if (!edev) in pci_addr_cache_build()
307 dev->dev.archdata.edev = edev; in pci_addr_cache_build()
308 edev->pdev = dev; in pci_addr_cache_build()
Deeh_sysfs.c44 struct eeh_dev *edev = pci_dev_to_eeh_dev(pdev); \
46 if (!edev) \
49 return sprintf(buf, _format "\n", edev->_memb); \
Diommu.c812 struct eeh_dev *edev; in query_ddw() local
823 edev = pci_dev_to_eeh_dev(dev); in query_ddw()
824 cfg_addr = edev->config_addr; in query_ddw()
825 if (edev->pe_config_addr) in query_ddw()
826 cfg_addr = edev->pe_config_addr; in query_ddw()
827 buid = edev->phb->buid; in query_ddw()
841 struct eeh_dev *edev; in create_ddw() local
852 edev = pci_dev_to_eeh_dev(dev); in create_ddw()
853 cfg_addr = edev->config_addr; in create_ddw()
854 if (edev->pe_config_addr) in create_ddw()
[all …]
/arch/powerpc/include/asm/
Deeh_event.h31 struct eeh_dev *edev; /* EEH device */ member
34 int eeh_send_failure_event(struct eeh_dev *edev);
Dppc-pci.h54 void eeh_slot_error_detail(struct eeh_dev *edev, int severity);
55 int eeh_pci_enable(struct eeh_dev *edev, int function);
Deeh.h61 static inline struct device_node *eeh_dev_to_of_node(struct eeh_dev *edev) in eeh_dev_to_of_node() argument
63 return edev->dn; in eeh_dev_to_of_node()
66 static inline struct pci_dev *eeh_dev_to_pci_dev(struct eeh_dev *edev) in eeh_dev_to_pci_dev() argument
68 return edev->pdev; in eeh_dev_to_pci_dev()
Ddevice.h35 struct eeh_dev *edev; member
Dpci-bridge.h158 struct eeh_dev *edev; /* eeh device */ member
192 return PCI_DN(dn)->edev; in of_node_to_eeh_dev()