Home
last modified time | relevance | path

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

1234567

/Linux-v5.15/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_SRAM_IDX_REG, pe->index); in mvpp2_prs_hw_write()
35 mvpp2_write(priv, MVPP2_PRS_SRAM_DATA_REG(i), pe->sram[i]); in mvpp2_prs_hw_write()
38 mvpp2_write(priv, MVPP2_PRS_TCAM_IDX_REG, pe->index); in mvpp2_prs_hw_write()
40 mvpp2_write(priv, MVPP2_PRS_TCAM_DATA_REG(i), pe->tcam[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-v5.15/arch/powerpc/kernel/
Deeh_pe.c48 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 …]
Deeh_driver.c90 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));
304 struct eeh_pe *pe; in eeh_pe_report() local
[all …]
Deeh.c176 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 …]
Deeh_event.c61 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 …]
/Linux-v5.15/arch/powerpc/platforms/powernv/
Dpci-ioda.c53 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 …]
Deeh-powernv.c69 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 …]
/Linux-v5.15/net/netfilter/ipvs/
Dip_vs_pe.c23 struct ip_vs_pe *pe; in __ip_vs_pe_getbyname() local
29 list_for_each_entry_rcu(pe, &ip_vs_pe, n_list) { in __ip_vs_pe_getbyname()
31 if (pe->module && in __ip_vs_pe_getbyname()
32 !try_module_get(pe->module)) { in __ip_vs_pe_getbyname()
36 if (strcmp(pe_name, pe->name)==0) { in __ip_vs_pe_getbyname()
39 return pe; in __ip_vs_pe_getbyname()
41 module_put(pe->module); in __ip_vs_pe_getbyname()
51 struct ip_vs_pe *pe; in ip_vs_pe_getbyname() local
54 pe = __ip_vs_pe_getbyname(name); in ip_vs_pe_getbyname()
57 if (!pe) { in ip_vs_pe_getbyname()
[all …]
/Linux-v5.15/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-v5.15/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-v5.15/lib/crypto/
Ddes.c623 static unsigned long des_ekey(u32 *pe, const u8 *k) in des_ekey() argument
634 pe[15 * 2 + 0] = DES_PC2(a, b, c, d); d = rs[d]; in des_ekey()
635 pe[14 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey()
636 pe[13 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey()
637 pe[12 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey()
638 pe[11 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey()
639 pe[10 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey()
640 pe[ 9 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey()
641 pe[ 8 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; in des_ekey()
642 pe[ 7 * 2 + 0] = DES_PC2(c, d, a, b); b = rs[b]; a = rs[a]; in des_ekey()
[all …]
/Linux-v5.15/tools/perf/tests/
Dbp_signal_overflow.c64 struct perf_event_attr pe; in test__bp_signal_overflow() local
79 memset(&pe, 0, sizeof(struct perf_event_attr)); in test__bp_signal_overflow()
80 pe.type = PERF_TYPE_BREAKPOINT; in test__bp_signal_overflow()
81 pe.size = sizeof(struct perf_event_attr); in test__bp_signal_overflow()
83 pe.config = 0; in test__bp_signal_overflow()
84 pe.bp_type = HW_BREAKPOINT_X; in test__bp_signal_overflow()
85 pe.bp_addr = (unsigned long) test_function; in test__bp_signal_overflow()
86 pe.bp_len = sizeof(long); in test__bp_signal_overflow()
88 pe.sample_period = THRESHOLD; in test__bp_signal_overflow()
89 pe.sample_type = PERF_SAMPLE_IP; in test__bp_signal_overflow()
[all …]
Dbp_signal.c104 struct perf_event_attr pe; in __event() local
107 memset(&pe, 0, sizeof(struct perf_event_attr)); in __event()
108 pe.type = PERF_TYPE_BREAKPOINT; in __event()
109 pe.size = sizeof(struct perf_event_attr); in __event()
111 pe.config = 0; in __event()
112 pe.bp_type = is_x ? HW_BREAKPOINT_X : HW_BREAKPOINT_W; in __event()
113 pe.bp_addr = (unsigned long) addr; in __event()
114 pe.bp_len = sizeof(long); in __event()
116 pe.sample_period = 1; in __event()
117 pe.sample_type = PERF_SAMPLE_IP; in __event()
[all …]
Dpmu-events.c722 static int check_parse_cpu(const char *id, bool same_cpu, struct pmu_event *pe) in check_parse_cpu() argument
729 pe->metric_name, id, pe->metric_expr); in check_parse_cpu()
734 id, pe->metric_name, pe->metric_expr); in check_parse_cpu()
758 const struct pmu_event *pe) in expr_failure() argument
762 pr_debug("On metric %s\n", pe->metric_name); in expr_failure()
763 pr_debug("On expression %s\n", pe->metric_expr); in expr_failure()
786 struct pmu_event *pe; in resolve_metric_simple() local
788 pe = metricgroup__find_metric(cur->key, map); in resolve_metric_simple()
789 if (!pe) in resolve_metric_simple()
810 ref->metric_name = pe->metric_name; in resolve_metric_simple()
[all …]
/Linux-v5.15/arch/powerpc/include/asm/
Deeh.h104 #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 …]
Dppc-pci.h43 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);
/Linux-v5.15/drivers/iommu/intel/
Dpasid.c287 static inline void pasid_clear_entry(struct pasid_entry *pe) in pasid_clear_entry() argument
289 WRITE_ONCE(pe->val[0], 0); in pasid_clear_entry()
290 WRITE_ONCE(pe->val[1], 0); in pasid_clear_entry()
291 WRITE_ONCE(pe->val[2], 0); in pasid_clear_entry()
292 WRITE_ONCE(pe->val[3], 0); in pasid_clear_entry()
293 WRITE_ONCE(pe->val[4], 0); in pasid_clear_entry()
294 WRITE_ONCE(pe->val[5], 0); in pasid_clear_entry()
295 WRITE_ONCE(pe->val[6], 0); in pasid_clear_entry()
296 WRITE_ONCE(pe->val[7], 0); in pasid_clear_entry()
299 static inline void pasid_clear_entry_with_fpd(struct pasid_entry *pe) in pasid_clear_entry_with_fpd() argument
[all …]
/Linux-v5.15/drivers/vfio/
Dvfio_spapr_eeh.c34 struct eeh_pe *pe; in vfio_spapr_iommu_eeh_ioctl() local
47 pe = eeh_iommu_group_to_pe(group); in vfio_spapr_iommu_eeh_ioctl()
48 if (!pe) in vfio_spapr_iommu_eeh_ioctl()
59 ret = eeh_pe_set_option(pe, EEH_OPT_DISABLE); in vfio_spapr_iommu_eeh_ioctl()
62 ret = eeh_pe_set_option(pe, EEH_OPT_ENABLE); in vfio_spapr_iommu_eeh_ioctl()
65 ret = eeh_pe_set_option(pe, EEH_OPT_THAW_MMIO); in vfio_spapr_iommu_eeh_ioctl()
68 ret = eeh_pe_set_option(pe, EEH_OPT_THAW_DMA); in vfio_spapr_iommu_eeh_ioctl()
71 ret = eeh_pe_get_state(pe); in vfio_spapr_iommu_eeh_ioctl()
74 ret = eeh_pe_reset(pe, EEH_RESET_DEACTIVATE, true); in vfio_spapr_iommu_eeh_ioctl()
77 ret = eeh_pe_reset(pe, EEH_RESET_HOT, true); in vfio_spapr_iommu_eeh_ioctl()
[all …]
/Linux-v5.15/tools/perf/util/
Dmetricgroup.c425 static bool match_pe_metric(struct pmu_event *pe, const char *metric) in match_pe_metric() argument
427 return match_metric(pe->metric_group, metric) || in match_pe_metric()
428 match_metric(pe->metric_name, metric); in match_pe_metric()
509 static int metricgroup__print_pmu_event(struct pmu_event *pe, in metricgroup__print_pmu_event() argument
518 g = pe->metric_group; in metricgroup__print_pmu_event()
519 if (!g && pe->metric_name) { in metricgroup__print_pmu_event()
520 if (pe->name) in metricgroup__print_pmu_event()
543 s = (char *)pe->metric_name; in metricgroup__print_pmu_event()
546 pe->metric_name, 8, "[", pe->desc) < 0) in metricgroup__print_pmu_event()
550 s, 8, "[", pe->metric_expr) < 0) in metricgroup__print_pmu_event()
[all …]
/Linux-v5.15/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-v5.15/drivers/tty/vt/
Dselection.c230 int pe) in vc_do_selection() argument
238 new_sel_end = pe; in vc_do_selection()
251 spc = is_space_on_vt(sel_pos(pe, unicode)); in vc_do_selection()
252 for (new_sel_end = pe; ; pe += 2) { in vc_do_selection()
253 if ((spc && !is_space_on_vt(sel_pos(pe, unicode))) || in vc_do_selection()
254 (!spc && !inword(sel_pos(pe, unicode)))) in vc_do_selection()
256 new_sel_end = pe; in vc_do_selection()
257 if (!((pe + 2) % vc->vc_size_row)) in vc_do_selection()
263 new_sel_end = rounddown(pe, vc->vc_size_row) + in vc_do_selection()
267 highlight_pointer(pe); in vc_do_selection()
[all …]
/Linux-v5.15/drivers/misc/cxl/
Dtrace.h71 __field(u16, pe)
77 __entry->pe = ctx->pe;
83 __entry->pe
96 __field(u16, pe)
106 __entry->pe = ctx->pe;
117 __entry->pe,
137 __field(u16, pe)
146 __entry->pe = ctx->pe;
155 __entry->pe,
170 __field(u16, pe)
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/amdgpu/
Damdgpu_pmu.c228 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_start() local
243 target_cntr = pe->adev->df.funcs->pmc_start(pe->adev, in amdgpu_perf_start()
252 pe->adev->df.funcs->pmc_start(pe->adev, hwc->config, in amdgpu_perf_start()
266 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_read() local
277 pe->adev->df.funcs->pmc_get_count(pe->adev, in amdgpu_perf_read()
293 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_stop() local
303 pe->adev->df.funcs->pmc_stop(pe->adev, hwc->config, hwc->idx, in amdgpu_perf_stop()
325 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_add() local
329 switch (pe->pmu_perf_type) { in amdgpu_perf_add()
345 target_cntr = pe->adev->df.funcs->pmc_start(pe->adev, in amdgpu_perf_add()
[all …]
Damdgpu_vm_sdma.c139 struct amdgpu_bo *bo, uint64_t pe, in amdgpu_vm_sdma_copy_ptes() argument
147 pe += amdgpu_gmc_sign_extend(amdgpu_bo_gpu_offset_no_check(bo)); in amdgpu_vm_sdma_copy_ptes()
148 trace_amdgpu_vm_copy_ptes(pe, src, count, p->immediate); in amdgpu_vm_sdma_copy_ptes()
150 amdgpu_vm_copy_pte(p->adev, ib, pe, src, count); in amdgpu_vm_sdma_copy_ptes()
168 struct amdgpu_bo *bo, uint64_t pe, in amdgpu_vm_sdma_set_ptes() argument
174 pe += amdgpu_gmc_sign_extend(amdgpu_bo_gpu_offset_no_check(bo)); in amdgpu_vm_sdma_set_ptes()
175 trace_amdgpu_vm_set_ptes(pe, addr, count, incr, flags, p->immediate); in amdgpu_vm_sdma_set_ptes()
177 amdgpu_vm_write_pte(p->adev, ib, pe, addr | flags, in amdgpu_vm_sdma_set_ptes()
180 amdgpu_vm_set_pte_pde(p->adev, ib, pe, addr, in amdgpu_vm_sdma_set_ptes()
200 struct amdgpu_bo_vm *vmbo, uint64_t pe, in amdgpu_vm_sdma_update() argument
[all …]
/Linux-v5.15/arch/powerpc/platforms/pseries/
Deeh_pseries.c74 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 …]

1234567