Searched refs:pe (Results 1 - 25 of 28) sorted by relevance

12

/arch/powerpc/include/asm/
H A Deeh_event.h31 struct eeh_pe *pe; /* EEH PE */ member in struct:eeh_event
35 int eeh_send_failure_event(struct eeh_pe *pe);
36 void eeh_remove_event(struct eeh_pe *pe, bool force);
37 void eeh_handle_event(struct eeh_pe *pe);
H A Dppc-pci.h53 void eeh_slot_error_detail(struct eeh_pe *pe, int severity);
54 int eeh_pci_enable(struct eeh_pe *pe, int function);
59 void eeh_pe_state_mark(struct eeh_pe *pe, int state);
60 void eeh_pe_state_clear(struct eeh_pe *pe, int state);
61 void eeh_pe_dev_mode_mark(struct eeh_pe *pe, int mode);
H A Deeh.h98 #define eeh_pe_for_each_dev(pe, edev, tmp) \
99 list_for_each_entry_safe(edev, tmp, &pe->edevs, list)
101 static inline bool eeh_pe_passed(struct eeh_pe *pe) argument
103 return pe ? !!atomic_read(&pe->pass_dev_cnt) : false;
132 struct eeh_pe *pe; /* Associated PE */ member in struct:eeh_dev
152 return edev ? edev->pe : NULL;
201 int (*set_option)(struct eeh_pe *pe, int option);
202 int (*get_pe_addr)(struct eeh_pe *pe);
203 int (*get_state)(struct eeh_pe *pe, in
[all...]
/arch/powerpc/kernel/
H A Deeh_event.c55 struct eeh_pe *pe; local
74 pe = event->pe;
75 if (pe) {
76 eeh_pe_state_mark(pe, EEH_PE_RECOVERING);
77 if (pe->type & EEH_PE_PHB)
79 pe->phb->global_number);
83 pe->phb->global_number, pe->addr);
84 eeh_handle_event(pe);
129 eeh_send_failure_event(struct eeh_pe *pe) argument
162 eeh_remove_event(struct eeh_pe *pe, bool force) argument
[all...]
H A Deeh_pe.c61 struct eeh_pe *pe; local
71 pe = kzalloc(alloc_size, GFP_KERNEL);
72 if (!pe) return NULL;
75 pe->type = type;
76 pe->phb = phb;
77 INIT_LIST_HEAD(&pe->child_list);
78 INIT_LIST_HEAD(&pe->child);
79 INIT_LIST_HEAD(&pe->edevs);
81 pe->data = (void *)pe
95 struct eeh_pe *pe; local
122 struct eeh_pe *pe; local
145 eeh_pe_next(struct eeh_pe *pe, struct eeh_pe *root) argument
178 struct eeh_pe *pe; local
201 struct eeh_pe *pe; local
235 struct eeh_pe *pe = (struct eeh_pe *)data; local
269 struct eeh_pe *pe; local
323 struct eeh_pe *pe, *parent; local
421 struct eeh_pe *pe, *parent, *child; local
486 eeh_pe_update_time_stamp(struct eeh_pe *pe) argument
515 struct eeh_pe *pe = (struct eeh_pe *)data; local
552 eeh_pe_state_mark(struct eeh_pe *pe, int state) argument
573 eeh_pe_dev_mode_mark(struct eeh_pe *pe, int mode) argument
589 struct eeh_pe *pe = (struct eeh_pe *)data; local
634 eeh_pe_state_clear(struct eeh_pe *pe, int state) argument
822 eeh_pe_restore_bars(struct eeh_pe *pe) argument
840 eeh_pe_loc_get(struct eeh_pe *pe) argument
881 eeh_pe_bus_get(struct eeh_pe *pe) argument
[all...]
H A Deeh_driver.c461 struct eeh_pe *pe = (struct eeh_pe *)data; local
464 eeh_pe_for_each_dev(pe, edev, tmp) {
484 struct eeh_pe *pe = (struct eeh_pe *)data; local
489 rc = eeh_unfreeze_pe(pe, clear_sw_state);
494 __func__, rc, pe->phb->global_number, pe->addr);
495 return (void *)pe;
501 static int eeh_clear_pe_frozen_state(struct eeh_pe *pe, argument
506 rc = eeh_pe_traverse(pe, __eeh_clear_pe_frozen_state, &clear_sw_state);
508 eeh_pe_state_clear(pe, EEH_PE_ISOLATE
513 eeh_pe_reset_and_recover(struct eeh_pe *pe) argument
570 eeh_reset_device(struct eeh_pe *pe, struct pci_bus *bus) argument
661 eeh_handle_normal_event(struct eeh_pe *pe) argument
833 struct eeh_pe *pe, *phb_pe; local
940 eeh_handle_event(struct eeh_pe *pe) argument
[all...]
H A Deeh.c256 struct eeh_pe *pe = data; local
264 if (pe->state & EEH_PE_CFG_BLOCKED)
267 eeh_pe_for_each_dev(pe, edev, tmp)
276 * @pe: EEH PE
284 void eeh_slot_error_detail(struct eeh_pe *pe, int severity) argument
297 if (!(pe->type & EEH_PE_PHB)) {
299 eeh_pci_enable(pe, EEH_OPT_THAW_MMIO);
300 eeh_ops->configure_bridge(pe);
301 eeh_pe_restore_bars(pe);
304 eeh_pe_traverse(pe, eeh_dump_pe_lo
340 eeh_phb_check_failure(struct eeh_pe *pe) argument
410 struct eeh_pe *pe, *parent_pe, *phb_pe; local
592 eeh_pci_enable(struct eeh_pe *pe, int function) argument
672 struct eeh_pe *pe = eeh_dev_to_pe(edev); local
730 eeh_reset_pe_once(struct eeh_pe *pe) argument
758 eeh_reset_pe(struct eeh_pe *pe) argument
1183 eeh_unfreeze_pe(struct eeh_pe *pe, bool sw_state) argument
1215 eeh_pe_change_owner(struct eeh_pe *pe) argument
1399 eeh_pe_set_option(struct eeh_pe *pe, int option) argument
1448 eeh_pe_get_state(struct eeh_pe *pe) argument
1480 eeh_pe_reenable_devices(struct eeh_pe *pe) argument
1519 eeh_pe_reset(struct eeh_pe *pe, int option) argument
1569 eeh_pe_configure(struct eeh_pe *pe) argument
[all...]
H A Deeh_sysfs.c64 if (!edev || !edev->pe)
67 state = eeh_ops->get_state(edev->pe, NULL);
69 state, edev->pe->state);
79 if (!edev || !edev->pe)
83 if (!(edev->pe->state & EEH_PE_ISOLATED))
86 if (eeh_unfreeze_pe(edev->pe, true))
H A Drtas_pci.c70 if (pdn->edev && pdn->edev->pe &&
71 (pdn->edev->pe->state & EEH_PE_CFG_BLOCKED))
133 if (pdn->edev && pdn->edev->pe &&
134 (pdn->edev->pe->state & EEH_PE_CFG_BLOCKED))
H A Deeh_cache.c193 if (!edev->pe) {
/arch/powerpc/platforms/pseries/
H A Deeh_pseries.c83 ibm_configure_pe = rtas_token("ibm,configure-pe");
205 struct eeh_pe pe; local
216 if (edev->pe || !of_device_is_available(dn))
264 memset(&pe, 0, sizeof(struct eeh_pe));
265 pe.phb = edev->phb;
266 pe.config_addr = of_read_number(regs, 1);
269 ret = eeh_ops->set_option(&pe, EEH_OPT_ENABLE);
273 edev->pe_config_addr = eeh_ops->get_pe_addr(&pe);
274 pe.addr = edev->pe_config_addr;
280 ret = eeh_ops->get_state(&pe, NUL
317 pseries_eeh_set_option(struct eeh_pe *pe, int option) argument
366 pseries_eeh_get_pe_addr(struct eeh_pe *pe) argument
425 pseries_eeh_get_state(struct eeh_pe *pe, int *state) argument
504 pseries_eeh_reset(struct eeh_pe *pe, int option) argument
546 pseries_eeh_wait_state(struct eeh_pe *pe, int max_wait) argument
607 pseries_eeh_get_log(struct eeh_pe *pe, int severity, char *drv_log, unsigned long len) argument
641 pseries_eeh_configure_bridge(struct eeh_pe *pe) argument
[all...]
H A Dmsi.c181 p = of_get_property(dn, "ibm,pe-total-#msi", NULL);
208 if (edev->pe)
209 edev = list_first_entry(&edev->pe->edevs, struct eeh_dev, list);
/arch/powerpc/platforms/powernv/
H A Dpci-ioda.c47 static void pe_level_printk(const struct pnv_ioda_pe *pe, const char *level, argument
59 if (pe->pdev)
60 strlcpy(pfix, dev_name(&pe->pdev->dev), sizeof(pfix));
63 pci_domain_nr(pe->pbus), pe->pbus->number);
66 level, pfix, pe->pe_number, &vaf);
71 #define pe_err(pe, fmt, ...) \
72 pe_level_printk(pe, KERN_ERR, fmt, ##__VA_ARGS__)
73 #define pe_warn(pe, fmt, ...) \
74 pe_level_printk(pe, KERN_WARNIN
96 unsigned long pe; local
110 pnv_ioda_free_pe(struct pnv_phb *phb, int pe) argument
208 struct pnv_ioda_pe *master_pe, *pe; local
354 struct pnv_ioda_pe *pe = &phb->ioda.pe_array[pe_no]; local
392 struct pnv_ioda_pe *pe, *slave; local
432 struct pnv_ioda_pe *slave, *pe; local
510 pnv_ioda_configure_pe(struct pnv_phb *phb, struct pnv_ioda_pe *pe) argument
609 pnv_ioda_link_pe_by_weight(struct pnv_phb *phb, struct pnv_ioda_pe *pe) argument
718 pnv_ioda_setup_same_PE(struct pci_bus *bus, struct pnv_ioda_pe *pe) argument
748 struct pnv_ioda_pe *pe; local
850 struct pnv_ioda_pe *pe; local
869 struct pnv_ioda_pe *pe; local
899 struct pnv_ioda_pe *pe; local
917 pnv_ioda_setup_bus_dma(struct pnv_ioda_pe *pe, struct pci_bus *bus, bool add_to_iommu_group) argument
936 pnv_pci_ioda1_tce_invalidate(struct pnv_ioda_pe *pe, struct iommu_table *tbl, __be64 *startp, __be64 *endp, bool rm) argument
983 pnv_pci_ioda2_tce_invalidate(struct pnv_ioda_pe *pe, struct iommu_table *tbl, __be64 *startp, __be64 *endp, bool rm) argument
1018 struct pnv_ioda_pe *pe = container_of(tbl, struct pnv_ioda_pe, local
1028 pnv_pci_ioda_setup_dma_pe(struct pnv_phb *phb, struct pnv_ioda_pe *pe, unsigned int base, unsigned int segs) argument
1123 struct pnv_ioda_pe *pe = container_of(tbl, struct pnv_ioda_pe, local
1162 pnv_pci_ioda2_setup_bypass_pe(struct pnv_phb *phb, struct pnv_ioda_pe *pe) argument
1175 pnv_pci_ioda2_setup_dma_pe(struct pnv_phb *phb, struct pnv_ioda_pe *pe) argument
1259 struct pnv_ioda_pe *pe; local
1370 struct pnv_ioda_pe *pe; local
1486 struct pnv_ioda_pe *pe; local
1511 struct pnv_ioda_pe *pe = pnv_ioda_get_pe(dev); local
1607 pnv_ioda_setup_pe_seg(struct pci_controller *hose, struct pnv_ioda_pe *pe) argument
1680 struct pnv_ioda_pe *pe; local
[all...]
H A Deeh-powernv.c135 if (!dn || !edev || edev->pe)
189 edev->pe->state |= EEH_PE_CFG_RESTRICTED;
197 if (!edev->pe->bus)
198 edev->pe->bus = dev->bus;
214 * @pe: EEH PE
221 static int powernv_eeh_set_option(struct eeh_pe *pe, int option) argument
223 struct pci_controller *hose = pe->phb;
232 ret = phb->eeh_ops->set_option(pe, option);
239 * @pe: EEH PE
244 static int powernv_eeh_get_pe_addr(struct eeh_pe *pe) argument
259 powernv_eeh_get_state(struct eeh_pe *pe, int *delay) argument
290 powernv_eeh_reset(struct eeh_pe *pe, int option) argument
310 powernv_eeh_wait_state(struct eeh_pe *pe, int max_wait) argument
348 powernv_eeh_get_log(struct eeh_pe *pe, int severity, char *drv_log, unsigned long len) argument
369 powernv_eeh_configure_bridge(struct eeh_pe *pe) argument
393 powernv_eeh_err_inject(struct eeh_pe *pe, int type, int func, unsigned long addr, unsigned long mask) argument
445 powernv_eeh_next_error(struct eeh_pe **pe) argument
[all...]
H A Deeh-ioda.c76 struct eeh_pe *pe; local
101 pe = eeh_pe_get(edev);
103 if (!pe)
107 ret = phb->eeh_ops->err_inject(pe, type, func, addr, mask);
233 * @pe: EEH PE
240 static int ioda_eeh_set_option(struct eeh_pe *pe, int option) argument
242 struct pci_controller *hose = pe->phb;
249 if (pe->addr < 0 || pe->addr >= phb->ioda.total_pe) {
252 __func__, pe
314 ioda_eeh_phb_diag(struct eeh_pe *pe) argument
326 ioda_eeh_get_phb_state(struct eeh_pe *pe) argument
362 ioda_eeh_get_pe_state(struct eeh_pe *pe) argument
468 ioda_eeh_get_state(struct eeh_pe *pe) argument
662 ioda_eeh_reset(struct eeh_pe *pe, int option) argument
731 ioda_eeh_get_log(struct eeh_pe *pe, int severity, char *drv_log, unsigned long len) argument
748 ioda_eeh_configure_bridge(struct eeh_pe *pe) argument
753 ioda_eeh_err_inject(struct eeh_pe *pe, int type, int func, unsigned long addr, unsigned long mask) argument
876 ioda_eeh_get_pe(struct pci_controller *hose, u16 pe_no, struct eeh_pe **pe) argument
949 ioda_eeh_next_error(struct eeh_pe **pe) argument
[all...]
H A Dpci.h82 int (*set_option)(struct eeh_pe *pe, int option);
83 int (*get_state)(struct eeh_pe *pe);
84 int (*reset)(struct eeh_pe *pe, int option);
85 int (*get_log)(struct eeh_pe *pe, int severity,
87 int (*configure_bridge)(struct eeh_pe *pe);
88 int (*err_inject)(struct eeh_pe *pe, int type, int func,
90 int (*next_error)(struct eeh_pe **pe);
/arch/alpha/include/asm/
H A Dcore_marvel.h56 #define EV7_IPE(pe) ((~((long)(pe)) & EV7_PE_MASK) << 35)
58 #define EV7_CSR_PHYS(pe, off) (EV7_IPE(pe) | (0x7FFCUL << 20) | (off))
59 #define EV7_CSRS_PHYS(pe) (EV7_CSR_PHYS(pe, 0UL))
61 #define EV7_CSR_KERN(pe, off) (EV7_KERN_ADDR(EV7_CSR_PHYS(pe, off)))
62 #define EV7_CSRS_KERN(pe) (EV7_KERN_ADDR(EV7_CSRS_PHYS(pe)))
311 unsigned int pe; member in struct:io7
[all...]
/arch/alpha/kernel/
H A Dcore_marvel.c59 read_ev7_csr(int pe, unsigned long offset)
61 ev7_csr *ev7csr = EV7_CSR_KERN(pe, offset);
72 write_ev7_csr(int pe, unsigned long offset, unsigned long q)
74 ev7_csr *ev7csr = EV7_CSR_KERN(pe, offset);
82 mk_resource_name(int pe, int port, char *str)
87 sprintf(tmp, "PCI %s PE %d PORT %d", str, pe, port);
101 marvel_find_io7(int pe)
105 for (io7 = io7_head; io7 && io7->pe != pe; io7 = io7->next)
112 alloc_io7(unsigned int pe)
56 read_ev7_csr(int pe, unsigned long offset) argument
69 write_ev7_csr(int pe, unsigned long offset, unsigned long q) argument
79 mk_resource_name(int pe, int port, char *str) argument
98 marvel_find_io7(int pe) argument
109 alloc_io7(unsigned int pe) argument
358 int pe; local
[all...]
H A Dperf_event.c343 struct perf_event *pe; local
353 list_for_each_entry(pe, &group->sibling_list, group_entry) {
354 if (!is_software_event(pe) && pe->state != PERF_EVENT_STATE_OFF) {
357 event[n] = pe;
358 evtype[n] = pe->hw.event_base;
399 struct perf_event *pe = cpuc->event[j]; local
402 cpuc->current_idx[j] != pe->hw.idx) {
403 alpha_perf_event_update(pe, &pe
411 struct perf_event *pe = cpuc->event[j]; local
[all...]
H A Dsys_marvel.c250 long base = (io7->pe << MARVEL_IRQ_VEC_PE_SHIFT) + 16;
254 io7->pe, base);
360 (irq + 16) | (io7->pe << MARVEL_IRQ_VEC_PE_SHIFT),
361 (irq + 16) | (io7->pe << MARVEL_IRQ_VEC_PE_SHIFT));
375 irq |= io7->pe << MARVEL_IRQ_VEC_PE_SHIFT; /* merge the pid */
H A Dproto.h58 struct io7 *marvel_find_io7(int pe);
/arch/arm/mm/
H A Ddump.c351 struct dentry *pe; local
361 pe = debugfs_create_file("kernel_page_tables", 0400, NULL, NULL,
363 return pe ? 0 : -ENOMEM;
/arch/arm64/mm/
H A Ddump.c315 struct dentry *pe; local
328 pe = debugfs_create_file("kernel_page_tables", 0400, NULL, NULL,
330 return pe ? 0 : -ENOMEM;
/arch/x86/mm/
H A Ddump_pagetables.c402 struct dentry *pe; local
414 pe = debugfs_create_file("kernel_page_tables", 0600, NULL, NULL,
416 if (!pe)
/arch/x86/kvm/
H A Dlapic.c1912 unsigned long pe; local
1917 pe = xchg(&apic->pending_events, 0);
1919 if (test_bit(KVM_APIC_INIT, &pe)) {
1927 if (test_bit(KVM_APIC_SIPI, &pe) &&

Completed in 395 milliseconds

12