Lines Matching full:pe

34  * Delay for PE reset, all in ms
44 * The struct is used to trace PE related EEH functionality.
46 * be created against particular PE. In nature, PEs correlate
49 * PE has EEH errors.
51 * Also, one particular PE might be composed of PCI device, PCI
53 * the information. Further more, one particular PE is only meaingful
58 #define EEH_PE_PHB (1 << 1) /* PHB PE */
59 #define EEH_PE_DEVICE (1 << 2) /* Device PE */
60 #define EEH_PE_BUS (1 << 3) /* Bus PE */
61 #define EEH_PE_VF (1 << 4) /* VF PE */
63 #define EEH_PE_ISOLATED (1 << 0) /* Isolated PE */
64 #define EEH_PE_RECOVERING (1 << 1) /* Recovering PE */
66 #define EEH_PE_RESET (1 << 3) /* PE reset in progress */
68 #define EEH_PE_KEEP (1 << 8) /* Keep PE on hotplug */
74 int type; /* PE type: PHB/Bus/Device */
75 int state; /* PE EEH dependent mode */
76 int addr; /* PE configuration address */
78 struct pci_bus *bus; /* Top PCI bus for bus PE */
84 struct eeh_pe *parent; /* Parent PE */
85 void *data; /* PE auxillary data */
86 struct list_head child_list; /* List of PEs below this PE */
88 struct list_head edevs; /* List of eeh_dev in this PE */
92 * Saved stack trace. When we find a PE freeze in eeh_dev_check_failure
104 #define eeh_pe_for_each_dev(pe, edev, tmp) \ argument
105 list_for_each_entry_safe(edev, tmp, &pe->edevs, entry)
107 #define eeh_for_each_pe(root, pe) \ argument
108 for (pe = root; pe; pe = eeh_pe_next(pe, root))
110 static inline bool eeh_pe_passed(struct eeh_pe *pe) in eeh_pe_passed() argument
112 return pe ? !!atomic_read(&pe->pass_dev_cnt) : false; in eeh_pe_passed()
118 * represent PE as well so that the EEH device to form
126 #define EEH_DEV_DISCONNECTED (1 << 4) /* Removing from PE */
136 int pe_config_addr; /* PE config address */
142 struct eeh_pe *pe; /* Associated PE */ member
159 ((edev)->pe ? (edev)->pe_config_addr : 0xffff), ##__VA_ARGS__)
177 return edev ? edev->pe : NULL; in eeh_dev_to_pe()
201 #define EEH_OPT_FREEZE_PE 4 /* Freeze PE */
209 #define EEH_RESET_DEACTIVATE 0 /* Deactivate the PE reset */
218 int (*set_option)(struct eeh_pe *pe, int option);
219 int (*get_state)(struct eeh_pe *pe, int *delay);
220 int (*reset)(struct eeh_pe *pe, int option);
221 int (*get_log)(struct eeh_pe *pe, int severity, char *drv_log, unsigned long len);
222 int (*configure_bridge)(struct eeh_pe *pe);
223 int (*err_inject)(struct eeh_pe *pe, int type, int func,
227 int (*next_error)(struct eeh_pe **pe);
275 typedef void *(*eeh_pe_traverse_func)(struct eeh_pe *pe, void *flag);
278 int eeh_wait_state(struct eeh_pe *pe, int max_wait);
280 struct eeh_pe *eeh_pe_next(struct eeh_pe *pe, struct eeh_pe *root);
284 void eeh_pe_update_time_stamp(struct eeh_pe *pe);
289 void eeh_pe_restore_bars(struct eeh_pe *pe);
290 const char *eeh_pe_loc_get(struct eeh_pe *pe);
291 struct pci_bus *eeh_pe_bus_get(struct eeh_pe *pe);
300 int eeh_unfreeze_pe(struct eeh_pe *pe);
301 int eeh_pe_reset_and_recover(struct eeh_pe *pe);
305 int eeh_pe_set_option(struct eeh_pe *pe, int option);
306 int eeh_pe_get_state(struct eeh_pe *pe);
307 int eeh_pe_reset(struct eeh_pe *pe, int option, bool include_passed);
308 int eeh_pe_configure(struct eeh_pe *pe);
309 int eeh_pe_inject_err(struct eeh_pe *pe, int type, int func,