/arch/powerpc/kernel/ |
D | eeh_pe.c | 48 struct eeh_pe *pe; in eeh_pe_alloc() local 58 pe = kzalloc(alloc_size, GFP_KERNEL); in eeh_pe_alloc() 59 if (!pe) return NULL; in eeh_pe_alloc() 62 pe->type = type; in eeh_pe_alloc() 63 pe->phb = phb; in eeh_pe_alloc() 64 INIT_LIST_HEAD(&pe->child_list); in eeh_pe_alloc() 65 INIT_LIST_HEAD(&pe->edevs); in eeh_pe_alloc() 67 pe->data = (void *)pe + ALIGN(sizeof(struct eeh_pe), in eeh_pe_alloc() 69 return pe; in eeh_pe_alloc() 81 struct eeh_pe *pe; in eeh_phb_pe_create() local [all …]
|
D | eeh_driver.c | 90 if (eeh_pe_passed(edev->pe)) in eeh_edev_actionable() 207 if (edev->pe && (edev->pe->state & EEH_PE_CFG_RESTRICTED)) in eeh_dev_save_state() 219 struct eeh_pe *pe; in eeh_set_channel_state() local 222 eeh_for_each_pe(root, pe) in eeh_set_channel_state() 223 eeh_pe_for_each_dev(pe, edev, tmp) in eeh_set_channel_state() 230 struct eeh_pe *pe; in eeh_set_irq_state() local 233 eeh_for_each_pe(root, pe) { in eeh_set_irq_state() 234 eeh_pe_for_each_dev(pe, edev, tmp) { in eeh_set_irq_state() 293 !eeh_dev_removed(edev), !eeh_pe_passed(edev->pe)); in eeh_pe_report_edev() 304 struct eeh_pe *pe; in eeh_pe_report() local [all …]
|
D | eeh_event.c | 61 if (event->pe) in eeh_event_handler() 62 eeh_handle_normal_event(event->pe); in eeh_event_handler() 102 int __eeh_send_failure_event(struct eeh_pe *pe) in __eeh_send_failure_event() argument 112 event->pe = pe; in __eeh_send_failure_event() 119 if (pe) { in __eeh_send_failure_event() 125 pe->trace_entries = stack_trace_save(pe->stack_trace, in __eeh_send_failure_event() 126 ARRAY_SIZE(pe->stack_trace), 0); in __eeh_send_failure_event() 129 eeh_pe_state_mark(pe, EEH_PE_RECOVERING); in __eeh_send_failure_event() 143 int eeh_send_failure_event(struct eeh_pe *pe) in eeh_send_failure_event() argument 154 return __eeh_send_failure_event(pe); in eeh_send_failure_event() [all …]
|
D | eeh.c | 176 edev->pe->phb->global_number, edev->bdfn >> 8, in eeh_dump_dev_log() 179 edev->pe->phb->global_number, edev->bdfn >> 8, in eeh_dump_dev_log() 269 static void *eeh_dump_pe_log(struct eeh_pe *pe, void *flag) in eeh_dump_pe_log() argument 274 eeh_pe_for_each_dev(pe, edev, tmp) in eeh_dump_pe_log() 291 void eeh_slot_error_detail(struct eeh_pe *pe, int severity) in eeh_slot_error_detail() argument 311 if (!(pe->type & EEH_PE_PHB)) { in eeh_slot_error_detail() 314 eeh_pci_enable(pe, EEH_OPT_THAW_MMIO); in eeh_slot_error_detail() 328 eeh_ops->configure_bridge(pe); in eeh_slot_error_detail() 329 if (!(pe->state & EEH_PE_CFG_BLOCKED)) { in eeh_slot_error_detail() 330 eeh_pe_restore_bars(pe); in eeh_slot_error_detail() [all …]
|
D | eeh_sysfs.c | 47 if (!edev || !edev->pe) in eeh_pe_state_show() 50 state = eeh_ops->get_state(edev->pe, NULL); in eeh_pe_state_show() 52 state, edev->pe->state); in eeh_pe_state_show() 62 if (!edev || !edev->pe) in eeh_pe_state_store() 66 if (!(edev->pe->state & EEH_PE_ISOLATED)) in eeh_pe_state_store() 69 if (eeh_unfreeze_pe(edev->pe)) in eeh_pe_state_store() 71 eeh_pe_state_clear(edev->pe, EEH_PE_ISOLATED, true); in eeh_pe_state_store() 86 if (!edev || !edev->pe) in eeh_notify_resume_show() 99 if (!edev || !edev->pe || !eeh_ops->notify_resume) in eeh_notify_resume_store()
|
D | rtas_pci.c | 56 if (pdn->edev && pdn->edev->pe && in rtas_read_config() 57 (pdn->edev->pe->state & EEH_PE_CFG_BLOCKED)) in rtas_read_config() 107 if (pdn->edev && pdn->edev->pe && in rtas_write_config() 108 (pdn->edev->pe->state & EEH_PE_CFG_BLOCKED)) in rtas_write_config()
|
/arch/powerpc/platforms/powernv/ |
D | pci-ioda.c | 53 static void pnv_pci_ioda2_set_bypass(struct pnv_ioda_pe *pe, bool enable); 56 void pe_level_printk(const struct pnv_ioda_pe *pe, const char *level, in pe_level_printk() argument 68 if (pe->flags & PNV_IODA_PE_DEV) in pe_level_printk() 69 strlcpy(pfix, dev_name(&pe->pdev->dev), sizeof(pfix)); in pe_level_printk() 70 else if (pe->flags & (PNV_IODA_PE_BUS | PNV_IODA_PE_BUS_ALL)) in pe_level_printk() 72 pci_domain_nr(pe->pbus), pe->pbus->number); in pe_level_printk() 74 else if (pe->flags & PNV_IODA_PE_VF) in pe_level_printk() 76 pci_domain_nr(pe->parent_dev->bus), in pe_level_printk() 77 (pe->rid & 0xff00) >> 8, in pe_level_printk() 78 PCI_SLOT(pe->rid), PCI_FUNC(pe->rid)); in pe_level_printk() [all …]
|
D | eeh-powernv.c | 69 struct eeh_pe *pe; in pnv_eeh_ei_write() local 90 pe = eeh_pe_get(hose, pe_no); in pnv_eeh_ei_write() 91 if (!pe) in pnv_eeh_ei_write() 95 ret = eeh_ops->err_inject(pe, type, func, addr, mask); in pnv_eeh_ei_write() 338 if (!edev || edev->pe) in pnv_eeh_probe() 411 edev->pe->state |= EEH_PE_CFG_RESTRICTED; in pnv_eeh_probe() 419 if (!(edev->pe->state & EEH_PE_PRI_BUS)) { in pnv_eeh_probe() 420 edev->pe->bus = pci_find_bus(hose->global_number, in pnv_eeh_probe() 422 if (edev->pe->bus) in pnv_eeh_probe() 423 edev->pe->state |= EEH_PE_PRI_BUS; in pnv_eeh_probe() [all …]
|
D | pci-sriov.c | 235 struct pnv_ioda_pe *pe = pnv_ioda_get_pe(pdev); in pnv_pci_ioda_fixup_iov() local 242 pe->pdev = pdev; in pnv_pci_ioda_fixup_iov() 243 WARN_ON(!(pe->flags & PNV_IODA_PE_VF)); in pnv_pci_ioda_fixup_iov() 484 struct pnv_ioda_pe *pe, *pe_n; in pnv_ioda_release_vf_PE() local 492 list_for_each_entry_safe(pe, pe_n, &phb->ioda.pe_list, list) { in pnv_ioda_release_vf_PE() 493 if (pe->parent_dev != pdev) in pnv_ioda_release_vf_PE() 496 pnv_pci_ioda2_release_pe_dma(pe); in pnv_ioda_release_vf_PE() 500 list_del(&pe->list); in pnv_ioda_release_vf_PE() 503 pnv_ioda_deconfigure_pe(phb, pe); in pnv_ioda_release_vf_PE() 505 pnv_ioda_free_pe(pe); in pnv_ioda_release_vf_PE() [all …]
|
D | pci.h | 212 int pnv_ioda_configure_pe(struct pnv_phb *phb, struct pnv_ioda_pe *pe); 213 int pnv_ioda_deconfigure_pe(struct pnv_phb *phb, struct pnv_ioda_pe *pe); 215 void pnv_pci_ioda2_setup_dma_pe(struct pnv_phb *phb, struct pnv_ioda_pe *pe); 216 void pnv_pci_ioda2_release_pe_dma(struct pnv_ioda_pe *pe); 219 void pnv_ioda_free_pe(struct pnv_ioda_pe *pe); 296 extern void pe_level_printk(const struct pnv_ioda_pe *pe, const char *level, 298 #define pe_err(pe, fmt, ...) \ argument 299 pe_level_printk(pe, KERN_ERR, fmt, ##__VA_ARGS__) 300 #define pe_warn(pe, fmt, ...) \ argument 301 pe_level_printk(pe, KERN_WARNING, fmt, ##__VA_ARGS__) [all …]
|
D | pci-cxl.c | 16 struct pnv_ioda_pe *pe; in pnv_phb_to_cxl_mode() local 19 pe = pnv_ioda_get_pe(dev); in pnv_phb_to_cxl_mode() 20 if (!pe) in pnv_phb_to_cxl_mode() 23 pe_info(pe, "Switching PHB to CXL\n"); in pnv_phb_to_cxl_mode() 25 rc = opal_pci_set_phb_cxl_mode(phb->opal_id, mode, pe->pe_number); in pnv_phb_to_cxl_mode() 134 struct pnv_ioda_pe *pe; in pnv_cxl_ioda_msi_setup() local 137 if (!(pe = pnv_ioda_get_pe(dev))) in pnv_cxl_ioda_msi_setup() 141 rc = opal_pci_set_xive_pe(phb->opal_id, pe->pe_number, xive_num); in pnv_cxl_ioda_msi_setup() 143 pe_warn(pe, "%s: OPAL error %d setting msi_base 0x%x " in pnv_cxl_ioda_msi_setup()
|
/arch/alpha/include/asm/ |
D | core_marvel.h | 57 #define EV7_IPE(pe) ((~((long)(pe)) & EV7_PE_MASK) << 35) argument 59 #define EV7_CSR_PHYS(pe, off) (EV7_IPE(pe) | (0x7FFCUL << 20) | (off)) argument 60 #define EV7_CSRS_PHYS(pe) (EV7_CSR_PHYS(pe, 0UL)) argument 62 #define EV7_CSR_KERN(pe, off) (EV7_KERN_ADDR(EV7_CSR_PHYS(pe, off))) argument 63 #define EV7_CSRS_KERN(pe) (EV7_KERN_ADDR(EV7_CSRS_PHYS(pe))) argument 249 #define IO7_IPE(pe) (EV7_IPE(pe)) argument 252 #define IO7_HOSE(pe, port) (IO7_IPE(pe) | IO7_IPORT(port)) argument 254 #define IO7_MEM_PHYS(pe, port) (IO7_HOSE(pe, port) | 0x00000000UL) argument 255 #define IO7_CONF_PHYS(pe, port) (IO7_HOSE(pe, port) | 0xFE000000UL) argument 256 #define IO7_IO_PHYS(pe, port) (IO7_HOSE(pe, port) | 0xFF000000UL) argument [all …]
|
/arch/powerpc/include/asm/ |
D | eeh.h | 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() 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() 218 int (*set_option)(struct eeh_pe *pe, int option); [all …]
|
D | ppc-pci.h | 43 void eeh_slot_error_detail(struct eeh_pe *pe, int severity); 44 int eeh_pci_enable(struct eeh_pe *pe, int function); 45 int eeh_pe_reset_full(struct eeh_pe *pe, bool include_passed); 49 void eeh_pe_state_mark(struct eeh_pe *pe, int state); 50 void eeh_pe_mark_isolated(struct eeh_pe *pe); 51 void eeh_pe_state_clear(struct eeh_pe *pe, int state, bool include_passed); 52 void eeh_pe_state_mark_with_cfg(struct eeh_pe *pe, int state); 53 void eeh_pe_dev_mode_mark(struct eeh_pe *pe, int mode);
|
D | eeh_event.h | 19 struct eeh_pe *pe; /* EEH PE */ member 23 int eeh_send_failure_event(struct eeh_pe *pe); 24 int __eeh_send_failure_event(struct eeh_pe *pe); 25 void eeh_remove_event(struct eeh_pe *pe, bool force); 26 void eeh_handle_normal_event(struct eeh_pe *pe);
|
/arch/powerpc/platforms/pseries/ |
D | eeh_pseries.c | 74 struct eeh_pe *physfn_pe = pci_dev_to_eeh_dev(pdev->physfn)->pe; in pseries_pcibios_bus_add_device() 343 if (parent->pe) in pseries_eeh_pe_get_parent() 344 return parent->pe; in pseries_eeh_pe_get_parent() 364 struct eeh_pe pe, *parent; in pseries_eeh_init_edev() local 388 if (edev->pe) in pseries_eeh_init_edev() 431 memset(&pe, 0, sizeof(struct eeh_pe)); in pseries_eeh_init_edev() 432 pe.phb = pdn->phb; in pseries_eeh_init_edev() 433 pe.addr = ret; in pseries_eeh_init_edev() 436 ret = eeh_ops->set_option(&pe, EEH_OPT_ENABLE); in pseries_eeh_init_edev() 442 edev->pe_config_addr = pe.addr; in pseries_eeh_init_edev() [all …]
|
/arch/alpha/kernel/ |
D | core_marvel.c | 55 read_ev7_csr(int pe, unsigned long offset) in read_ev7_csr() argument 57 ev7_csr *ev7csr = EV7_CSR_KERN(pe, offset); in read_ev7_csr() 68 write_ev7_csr(int pe, unsigned long offset, unsigned long q) in write_ev7_csr() argument 70 ev7_csr *ev7csr = EV7_CSR_KERN(pe, offset); in write_ev7_csr() 78 mk_resource_name(int pe, int port, char *str) in mk_resource_name() argument 83 sprintf(tmp, "PCI %s PE %d PORT %d", str, pe, port); in mk_resource_name() 100 marvel_find_io7(int pe) in marvel_find_io7() argument 104 for (io7 = io7_head; io7 && io7->pe != pe; io7 = io7->next) in marvel_find_io7() 111 alloc_io7(unsigned int pe) in alloc_io7() argument 117 if (marvel_find_io7(pe)) { in alloc_io7() [all …]
|
D | perf_event.c | 344 struct perf_event *pe; in collect_events() local 354 for_each_sibling_event(pe, group) { in collect_events() 355 if (!is_software_event(pe) && pe->state != PERF_EVENT_STATE_OFF) { in collect_events() 358 event[n] = pe; in collect_events() 359 evtype[n] = pe->hw.event_base; in collect_events() 400 struct perf_event *pe = cpuc->event[j]; in maybe_change_configuration() local 403 cpuc->current_idx[j] != pe->hw.idx) { in maybe_change_configuration() 404 alpha_perf_event_update(pe, &pe->hw, cpuc->current_idx[j], 0); in maybe_change_configuration() 412 struct perf_event *pe = cpuc->event[j]; in maybe_change_configuration() local 413 struct hw_perf_event *hwc = &pe->hw; in maybe_change_configuration() [all …]
|
D | sys_marvel.c | 249 long base = (io7->pe << MARVEL_IRQ_VEC_PE_SHIFT) + 16; in init_io7_irqs() 253 io7->pe, base); in init_io7_irqs() 359 (irq + 16) | (io7->pe << MARVEL_IRQ_VEC_PE_SHIFT), in marvel_map_irq() 360 (irq + 16) | (io7->pe << MARVEL_IRQ_VEC_PE_SHIFT)); in marvel_map_irq() 374 irq |= io7->pe << MARVEL_IRQ_VEC_PE_SHIFT; /* merge the pid */ in marvel_map_irq()
|
D | proto.h | 53 struct io7 *marvel_find_io7(int pe);
|
/arch/arm64/boot/dts/allwinner/ |
D | sun50i-a100-allwinner-perf1.dts | 27 vcc-pe-supply = <®_dldo2>; 124 regulator-name = "vcc-pe-csi";
|
D | sun50i-a64-olinuxino.dts | 156 vcc-pe-supply = <®_aldo1>; 175 vcc-pe-supply = <®_aldo1>; 213 regulator-name = "vcc-pe";
|
/arch/arm/boot/dts/ |
D | sun8i-v3-sl631.dtsi | 77 vcc-pe-supply = <®_dcdc3>;
|
D | sun8i-r40-feta40i.dtsi | 105 regulator-name = "vcc-pe";
|
D | suniv-f1c100s.dtsi | 92 uart0_pe_pins: uart0-pe-pins {
|