Home
last modified time | relevance | path

Searched refs:pe (Results 1 – 25 of 140) sorted by relevance

123456

/Linux-v4.19/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_prs.c22 static int mvpp2_prs_hw_write(struct mvpp2 *priv, struct mvpp2_prs_entry *pe) in mvpp2_prs_hw_write() argument
26 if (pe->index > MVPP2_PRS_TCAM_SRAM_SIZE - 1) in mvpp2_prs_hw_write()
30 pe->tcam[MVPP2_PRS_TCAM_INV_WORD] &= ~MVPP2_PRS_TCAM_INV_MASK; in mvpp2_prs_hw_write()
33 mvpp2_write(priv, MVPP2_PRS_TCAM_IDX_REG, pe->index); in mvpp2_prs_hw_write()
35 mvpp2_write(priv, MVPP2_PRS_TCAM_DATA_REG(i), pe->tcam[i]); in mvpp2_prs_hw_write()
38 mvpp2_write(priv, MVPP2_PRS_SRAM_IDX_REG, pe->index); in mvpp2_prs_hw_write()
40 mvpp2_write(priv, MVPP2_PRS_SRAM_DATA_REG(i), pe->sram[i]); in mvpp2_prs_hw_write()
46 int mvpp2_prs_init_from_hw(struct mvpp2 *priv, struct mvpp2_prs_entry *pe, in mvpp2_prs_init_from_hw() argument
54 memset(pe, 0, sizeof(*pe)); in mvpp2_prs_init_from_hw()
55 pe->index = tid; in mvpp2_prs_init_from_hw()
[all …]
/Linux-v4.19/arch/powerpc/kernel/
Deeh_pe.c61 struct eeh_pe *pe; in eeh_pe_alloc() local
71 pe = kzalloc(alloc_size, GFP_KERNEL); in eeh_pe_alloc()
72 if (!pe) return NULL; in eeh_pe_alloc()
75 pe->type = type; in eeh_pe_alloc()
76 pe->phb = phb; in eeh_pe_alloc()
77 INIT_LIST_HEAD(&pe->child_list); in eeh_pe_alloc()
78 INIT_LIST_HEAD(&pe->child); in eeh_pe_alloc()
79 INIT_LIST_HEAD(&pe->edevs); in eeh_pe_alloc()
81 pe->data = (void *)pe + ALIGN(sizeof(struct eeh_pe), in eeh_pe_alloc()
83 return pe; in eeh_pe_alloc()
[all …]
Deeh_driver.c117 !eeh_pe_passed(edev->pe)); in eeh_edev_actionable()
231 if (edev->pe && (edev->pe->state & EEH_PE_CFG_RESTRICTED)) in eeh_dev_save_state()
244 struct eeh_pe *pe; in eeh_set_channel_state() local
247 eeh_for_each_pe(root, pe) in eeh_set_channel_state()
248 eeh_pe_for_each_dev(pe, edev, tmp) in eeh_set_channel_state()
255 struct eeh_pe *pe; in eeh_set_irq_state() local
258 eeh_for_each_pe(root, pe) { in eeh_set_irq_state()
259 eeh_pe_for_each_dev(pe, edev, tmp) { in eeh_set_irq_state()
307 !eeh_dev_removed(edev), !eeh_pe_passed(edev->pe));
315 struct eeh_pe *pe; in eeh_pe_report() local
[all …]
Deeh.c266 static void *eeh_dump_pe_log(struct eeh_pe *pe, void *flag) in eeh_dump_pe_log() argument
271 eeh_pe_for_each_dev(pe, edev, tmp) in eeh_dump_pe_log()
288 void eeh_slot_error_detail(struct eeh_pe *pe, int severity) in eeh_slot_error_detail() argument
308 if (!(pe->type & EEH_PE_PHB)) { in eeh_slot_error_detail()
311 eeh_pci_enable(pe, EEH_OPT_THAW_MMIO); in eeh_slot_error_detail()
325 eeh_ops->configure_bridge(pe); in eeh_slot_error_detail()
326 if (!(pe->state & EEH_PE_CFG_BLOCKED)) { in eeh_slot_error_detail()
327 eeh_pe_restore_bars(pe); in eeh_slot_error_detail()
330 eeh_pe_traverse(pe, eeh_dump_pe_log, &loglen); in eeh_slot_error_detail()
334 eeh_ops->get_log(pe, severity, pci_regs_buf, loglen); in eeh_slot_error_detail()
[all …]
Deeh_event.c55 struct eeh_pe *pe; in eeh_event_handler() local
74 pe = event->pe; in eeh_event_handler()
75 if (pe) { in eeh_event_handler()
76 if (pe->type & EEH_PE_PHB) in eeh_event_handler()
78 pe->phb->global_number); in eeh_event_handler()
82 pe->phb->global_number, pe->addr); in eeh_event_handler()
83 eeh_handle_normal_event(pe); in eeh_event_handler()
127 int eeh_send_failure_event(struct eeh_pe *pe) in eeh_send_failure_event() argument
137 event->pe = pe; in eeh_send_failure_event()
160 void eeh_remove_event(struct eeh_pe *pe, bool force) in eeh_remove_event() argument
[all …]
/Linux-v4.19/arch/powerpc/platforms/powernv/
Dpci-ioda.c58 void pe_level_printk(const struct pnv_ioda_pe *pe, const char *level, in pe_level_printk() argument
70 if (pe->flags & PNV_IODA_PE_DEV) in pe_level_printk()
71 strlcpy(pfix, dev_name(&pe->pdev->dev), sizeof(pfix)); in pe_level_printk()
72 else if (pe->flags & (PNV_IODA_PE_BUS | PNV_IODA_PE_BUS_ALL)) in pe_level_printk()
74 pci_domain_nr(pe->pbus), pe->pbus->number); in pe_level_printk()
76 else if (pe->flags & PNV_IODA_PE_VF) in pe_level_printk()
78 pci_domain_nr(pe->parent_dev->bus), in pe_level_printk()
79 (pe->rid & 0xff00) >> 8, in pe_level_printk()
80 PCI_SLOT(pe->rid), PCI_FUNC(pe->rid)); in pe_level_printk()
84 level, pfix, pe->pe_number, &vaf); in pe_level_printk()
[all …]
Deeh-powernv.c132 struct eeh_pe *pe; in pnv_eeh_ei_write() local
153 pe = eeh_pe_get(hose, pe_no, 0); in pnv_eeh_ei_write()
154 if (!pe) in pnv_eeh_ei_write()
158 ret = eeh_ops->err_inject(pe, type, func, addr, mask); in pnv_eeh_ei_write()
387 if (!edev || edev->pe) in pnv_eeh_probe()
457 edev->pe->state |= EEH_PE_CFG_RESTRICTED; in pnv_eeh_probe()
465 if (!(edev->pe->state & EEH_PE_PRI_BUS)) { in pnv_eeh_probe()
466 edev->pe->bus = pci_find_bus(hose->global_number, in pnv_eeh_probe()
468 if (edev->pe->bus) in pnv_eeh_probe()
469 edev->pe->state |= EEH_PE_PRI_BUS; in pnv_eeh_probe()
[all …]
/Linux-v4.19/net/netfilter/ipvs/
Dip_vs_pe.c22 struct ip_vs_pe *pe; in __ip_vs_pe_getbyname() local
28 list_for_each_entry_rcu(pe, &ip_vs_pe, n_list) { in __ip_vs_pe_getbyname()
30 if (pe->module && in __ip_vs_pe_getbyname()
31 !try_module_get(pe->module)) { in __ip_vs_pe_getbyname()
35 if (strcmp(pe_name, pe->name)==0) { in __ip_vs_pe_getbyname()
38 return pe; in __ip_vs_pe_getbyname()
40 module_put(pe->module); in __ip_vs_pe_getbyname()
50 struct ip_vs_pe *pe; in ip_vs_pe_getbyname() local
53 pe = __ip_vs_pe_getbyname(name); in ip_vs_pe_getbyname()
56 if (!pe) { in ip_vs_pe_getbyname()
[all …]
/Linux-v4.19/arch/alpha/include/asm/
Dcore_marvel.h57 #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 …]
/Linux-v4.19/arch/powerpc/platforms/pseries/
Deeh_pseries.c249 struct eeh_pe pe; in pseries_eeh_probe() local
256 if (!edev || edev->pe) in pseries_eeh_probe()
291 memset(&pe, 0, sizeof(struct eeh_pe)); in pseries_eeh_probe()
292 pe.phb = pdn->phb; in pseries_eeh_probe()
293 pe.config_addr = (pdn->busno << 16) | (pdn->devfn << 8); in pseries_eeh_probe()
296 ret = eeh_ops->set_option(&pe, EEH_OPT_ENABLE); in pseries_eeh_probe()
299 edev->pe_config_addr = eeh_ops->get_pe_addr(&pe); in pseries_eeh_probe()
300 pe.addr = edev->pe_config_addr; in pseries_eeh_probe()
306 ret = eeh_ops->get_state(&pe, NULL); in pseries_eeh_probe()
316 PCI_FUNC(pdn->devfn), pe.phb->global_number, in pseries_eeh_probe()
[all …]
/Linux-v4.19/tools/perf/arch/x86/tests/
Dintel-cqm.c44 struct perf_event_attr pe; in test__intel_cqm_count_nmi_context() local
72 memset(&pe, 0, sizeof(pe)); in test__intel_cqm_count_nmi_context()
73 pe.size = sizeof(pe); in test__intel_cqm_count_nmi_context()
75 pe.type = PERF_TYPE_HARDWARE; in test__intel_cqm_count_nmi_context()
76 pe.config = PERF_COUNT_HW_CPU_CYCLES; in test__intel_cqm_count_nmi_context()
77 pe.read_format = PERF_FORMAT_GROUP; in test__intel_cqm_count_nmi_context()
79 pe.sample_period = 128; in test__intel_cqm_count_nmi_context()
80 pe.sample_type = PERF_SAMPLE_IP | PERF_SAMPLE_READ; in test__intel_cqm_count_nmi_context()
84 fd[0] = sys_perf_event_open(&pe, pid, -1, -1, flag); in test__intel_cqm_count_nmi_context()
90 memset(&pe, 0, sizeof(pe)); in test__intel_cqm_count_nmi_context()
[all …]
/Linux-v4.19/tools/perf/tests/
Dbp_signal_overflow.c63 struct perf_event_attr pe; in test__bp_signal_overflow() local
78 memset(&pe, 0, sizeof(struct perf_event_attr)); in test__bp_signal_overflow()
79 pe.type = PERF_TYPE_BREAKPOINT; in test__bp_signal_overflow()
80 pe.size = sizeof(struct perf_event_attr); in test__bp_signal_overflow()
82 pe.config = 0; in test__bp_signal_overflow()
83 pe.bp_type = HW_BREAKPOINT_X; in test__bp_signal_overflow()
84 pe.bp_addr = (unsigned long) test_function; in test__bp_signal_overflow()
85 pe.bp_len = sizeof(long); in test__bp_signal_overflow()
87 pe.sample_period = THRESHOLD; in test__bp_signal_overflow()
88 pe.sample_type = PERF_SAMPLE_IP; in test__bp_signal_overflow()
[all …]
Dbp_signal.c108 struct perf_event_attr pe; in __event() local
111 memset(&pe, 0, sizeof(struct perf_event_attr)); in __event()
112 pe.type = PERF_TYPE_BREAKPOINT; in __event()
113 pe.size = sizeof(struct perf_event_attr); in __event()
115 pe.config = 0; in __event()
116 pe.bp_type = is_x ? HW_BREAKPOINT_X : HW_BREAKPOINT_W; in __event()
117 pe.bp_addr = (unsigned long) addr; in __event()
118 pe.bp_len = sizeof(long); in __event()
120 pe.sample_period = 1; in __event()
121 pe.sample_type = PERF_SAMPLE_IP; in __event()
[all …]
/Linux-v4.19/arch/powerpc/include/asm/
Deeh.h107 #define eeh_pe_for_each_dev(pe, edev, tmp) \ argument
108 list_for_each_entry_safe(edev, tmp, &pe->edevs, list)
110 #define eeh_for_each_pe(root, pe) \ argument
111 for (pe = root; pe; pe = eeh_pe_next(pe, root))
113 static inline bool eeh_pe_passed(struct eeh_pe *pe) in eeh_pe_passed() argument
115 return pe ? !!atomic_read(&pe->pass_dev_cnt) : false; in eeh_pe_passed()
144 struct eeh_pe *pe; /* Associated PE */ member
166 return edev ? edev->pe : NULL; in eeh_dev_to_pe()
208 int (*set_option)(struct eeh_pe *pe, int option);
209 int (*get_pe_addr)(struct eeh_pe *pe);
[all …]
Dppc-pci.h54 void eeh_slot_error_detail(struct eeh_pe *pe, int severity);
55 int eeh_pci_enable(struct eeh_pe *pe, int function);
56 int eeh_pe_reset_full(struct eeh_pe *pe);
60 void eeh_pe_state_mark(struct eeh_pe *pe, int state);
61 void eeh_pe_state_clear(struct eeh_pe *pe, int state);
62 void eeh_pe_state_mark_with_cfg(struct eeh_pe *pe, int state);
63 void eeh_pe_dev_mode_mark(struct eeh_pe *pe, int mode);
/Linux-v4.19/crypto/
Ddes_generic.c631 unsigned long des_ekey(u32 *pe, const u8 *k) in des_ekey() argument
642 pe[15 * 2 + 0] = DES_PC2(a, b, c, d); d = rs[d]; in des_ekey()
643 pe[14 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey()
644 pe[13 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey()
645 pe[12 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey()
646 pe[11 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey()
647 pe[10 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey()
648 pe[ 9 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey()
649 pe[ 8 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; in des_ekey()
650 pe[ 7 * 2 + 0] = DES_PC2(c, d, a, b); b = rs[b]; a = rs[a]; in des_ekey()
[all …]
/Linux-v4.19/drivers/vfio/
Dvfio_spapr_eeh.c37 struct eeh_pe *pe; in vfio_spapr_iommu_eeh_ioctl() local
50 pe = eeh_iommu_group_to_pe(group); in vfio_spapr_iommu_eeh_ioctl()
51 if (!pe) in vfio_spapr_iommu_eeh_ioctl()
62 ret = eeh_pe_set_option(pe, EEH_OPT_DISABLE); in vfio_spapr_iommu_eeh_ioctl()
65 ret = eeh_pe_set_option(pe, EEH_OPT_ENABLE); in vfio_spapr_iommu_eeh_ioctl()
68 ret = eeh_pe_set_option(pe, EEH_OPT_THAW_MMIO); in vfio_spapr_iommu_eeh_ioctl()
71 ret = eeh_pe_set_option(pe, EEH_OPT_THAW_DMA); in vfio_spapr_iommu_eeh_ioctl()
74 ret = eeh_pe_get_state(pe); in vfio_spapr_iommu_eeh_ioctl()
77 ret = eeh_pe_reset(pe, EEH_RESET_DEACTIVATE); in vfio_spapr_iommu_eeh_ioctl()
80 ret = eeh_pe_reset(pe, EEH_RESET_HOT); in vfio_spapr_iommu_eeh_ioctl()
[all …]
/Linux-v4.19/drivers/tty/vt/
Dselection.c172 int i, ps, pe, multiplier; in set_selection() local
185 pe = v.ye * vc->vc_size_row + (v.xe << 1); in set_selection()
198 if (ps > pe) /* make sel_start <= sel_end */ in set_selection()
199 swap(ps, pe); in set_selection()
215 new_sel_end = pe; in set_selection()
228 spc = isspace(sel_pos(pe)); in set_selection()
229 for (new_sel_end = pe; ; pe += 2) in set_selection()
231 if ((spc && !isspace(sel_pos(pe))) || in set_selection()
232 (!spc && !inword(sel_pos(pe)))) in set_selection()
234 new_sel_end = pe; in set_selection()
[all …]
/Linux-v4.19/tools/perf/util/
Dmetricgroup.c276 struct pmu_event *pe; in metricgroup__print() local
297 pe = &map->table[i]; in metricgroup__print()
299 if (!pe->name && !pe->metric_group && !pe->metric_name) in metricgroup__print()
301 if (!pe->metric_expr) in metricgroup__print()
303 g = pe->metric_group; in metricgroup__print()
304 if (!g && pe->metric_name) { in metricgroup__print()
305 if (pe->name) in metricgroup__print()
327 s = (char *)pe->metric_name; in metricgroup__print()
330 pe->metric_name, 8, "[", pe->desc) < 0) in metricgroup__print()
374 struct pmu_event *pe; in metricgroup__add_metric() local
[all …]
/Linux-v4.19/drivers/net/wireless/ath/ath9k/
Ddfs.c202 struct pulse_event *pe) in ath9k_postprocess_radar_event() argument
266 pe->width = dur_to_usecs(sc->sc_ah, dur); in ath9k_postprocess_radar_event()
267 pe->rssi = rssi; in ath9k_postprocess_radar_event()
274 ath9k_dfs_process_radar_pulse(struct ath_softc *sc, struct pulse_event *pe) in ath9k_dfs_process_radar_pulse() argument
280 if (!pd->add_pulse(pd, pe, NULL)) in ath9k_dfs_process_radar_pulse()
295 struct pulse_event pe; in ath9k_dfs_process_phyerr() local
331 pe.freq = ah->curchan->channel; in ath9k_dfs_process_phyerr()
332 pe.ts = mactime; in ath9k_dfs_process_phyerr()
333 if (!ath9k_postprocess_radar_event(sc, &ard, &pe)) in ath9k_dfs_process_phyerr()
336 if (pe.width > MIN_CHIRP_PULSE_WIDTH && in ath9k_dfs_process_phyerr()
[all …]
/Linux-v4.19/drivers/misc/cxl/
Dtrace.h75 __field(u16, pe)
81 __entry->pe = ctx->pe;
87 __entry->pe
100 __field(u16, pe)
110 __entry->pe = ctx->pe;
121 __entry->pe,
141 __field(u16, pe)
150 __entry->pe = ctx->pe;
159 __entry->pe,
174 __field(u16, pe)
[all …]
/Linux-v4.19/drivers/md/
Ddm-snap.c686 struct dm_snap_pending_exception *pe = mempool_alloc(&s->pending_pool, in alloc_pending_exception() local
690 pe->snap = s; in alloc_pending_exception()
692 return pe; in alloc_pending_exception()
695 static void free_pending_exception(struct dm_snap_pending_exception *pe) in free_pending_exception() argument
697 struct dm_snapshot *s = pe->snap; in free_pending_exception()
699 mempool_free(pe, &s->pending_pool); in free_pending_exception()
1453 struct dm_snap_pending_exception *pe = context; in pending_complete() local
1455 struct dm_snapshot *s = pe->snap; in pending_complete()
1476 *e = pe->e; in pending_complete()
1486 __check_for_conflicting_io(s, pe->e.old_chunk); in pending_complete()
[all …]
/Linux-v4.19/arch/alpha/kernel/
Dcore_marvel.c56 read_ev7_csr(int pe, unsigned long offset) in read_ev7_csr() argument
58 ev7_csr *ev7csr = EV7_CSR_KERN(pe, offset); in read_ev7_csr()
69 write_ev7_csr(int pe, unsigned long offset, unsigned long q) in write_ev7_csr() argument
71 ev7_csr *ev7csr = EV7_CSR_KERN(pe, offset); in write_ev7_csr()
79 mk_resource_name(int pe, int port, char *str) in mk_resource_name() argument
84 sprintf(tmp, "PCI %s PE %d PORT %d", str, pe, port); in mk_resource_name()
98 marvel_find_io7(int pe) in marvel_find_io7() argument
102 for (io7 = io7_head; io7 && io7->pe != pe; io7 = io7->next) in marvel_find_io7()
109 alloc_io7(unsigned int pe) in alloc_io7() argument
115 if (marvel_find_io7(pe)) { in alloc_io7()
[all …]
/Linux-v4.19/drivers/misc/ocxl/
Dlink.c64 u64 pe; member
99 static void read_irq(struct spa *spa, u64 *dsisr, u64 *dar, u64 *pe) in read_irq() argument
106 *pe = reg & SPA_PE_MASK; in read_irq()
122 trace_ocxl_fault_ack(spa->spa_mem, spa->xsl_fault.pe, in ack_irq()
186 struct ocxl_process_element *pe; in xsl_fault_handler() local
194 pe = spa->spa_mem + pe_handle; in xsl_fault_handler()
195 lpid = be32_to_cpu(pe->lpid); in xsl_fault_handler()
196 pid = be32_to_cpu(pe->pid); in xsl_fault_handler()
197 tid = be32_to_cpu(pe->tid); in xsl_fault_handler()
232 spa->xsl_fault.pe = pe_handle; in xsl_fault_handler()
[all …]
/Linux-v4.19/drivers/staging/speakup/
Dselection.c57 int i, ps, pe; in speakup_set_selection() local
65 pe = spk_ye * vc->vc_size_row + (spk_xe << 1); in speakup_set_selection()
67 if (ps > pe) /* make sel_start <= sel_end */ in speakup_set_selection()
68 swap(ps, pe); in speakup_set_selection()
79 new_sel_end = pe; in speakup_set_selection()
85 for (pe = new_sel_end + 2; ; pe += 2) in speakup_set_selection()
86 if (!ishardspace(sel_pos(pe)) || in speakup_set_selection()
87 atedge(pe, vc->vc_size_row)) in speakup_set_selection()
89 if (ishardspace(sel_pos(pe))) in speakup_set_selection()
90 new_sel_end = pe; in speakup_set_selection()

123456