Home
last modified time | relevance | path

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

123456

/linux/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_prs.c22 static int mvpp2_prs_hw_write(struct mvpp2 *priv, struct mvpp2_prs_entry *pe) in mvpp2_prs_hw_write() argument
28 if (pe->index > MVPP2_PRS_TCAM_SRAM_SIZE - 1) in mvpp2_prs_hw_write()
32 pe->tcam[MVPP2_PRS_TCAM_INV_WORD] &= ~MVPP2_PRS_TCAM_INV_MASK; in mvpp2_prs_hw_write()
35 mvpp2_write(priv, MVPP2_PRS_SRAM_IDX_REG, pe->index); in mvpp2_prs_hw_write()
37 mvpp2_write(priv, MVPP2_PRS_SRAM_DATA_REG(i), pe->sram[i]); in mvpp2_prs_hw_write()
40 mvpp2_write(priv, MVPP2_PRS_TCAM_IDX_REG, pe->index); in mvpp2_prs_hw_write()
42 mvpp2_write(priv, MVPP2_PRS_TCAM_DATA_REG(i), pe->tcam[i]); in mvpp2_prs_hw_write()
49 struct mvpp2_prs_entry *pe, int tid) in __mvpp2_prs_init_from_hw() argument
58 memset(pe, 0, sizeof(*pe)); in __mvpp2_prs_init_from_hw()
59 pe->index = tid; in __mvpp2_prs_init_from_hw()
[all …]
H A Dmvpp2_debugfs.c248 struct mvpp2_prs_entry pe; in mvpp2_dbgfs_port_vid_show() local
255 mvpp2_prs_init_from_hw(priv, &pe, tid); in mvpp2_dbgfs_port_vid_show()
257 pmap = mvpp2_prs_tcam_port_map_get(&pe); in mvpp2_dbgfs_port_vid_show()
265 mvpp2_prs_tcam_data_byte_get(&pe, 2, &byte[0], &enable[0]); in mvpp2_dbgfs_port_vid_show()
266 mvpp2_prs_tcam_data_byte_get(&pe, 3, &byte[1], &enable[1]); in mvpp2_dbgfs_port_vid_show()
282 struct mvpp2_prs_entry pe; in mvpp2_dbgfs_port_parser_show() local
287 mvpp2_prs_init_from_hw(port->priv, &pe, i); in mvpp2_dbgfs_port_parser_show()
289 pmap = mvpp2_prs_tcam_port_map_get(&pe); in mvpp2_dbgfs_port_parser_show()
303 struct mvpp2_prs_entry pe; in mvpp2_dbgfs_filter_show() local
316 mvpp2_prs_init_from_hw(priv, &pe, tid); in mvpp2_dbgfs_filter_show()
[all …]
/linux/arch/powerpc/kernel/
H A Deeh_pe.c49 struct eeh_pe *pe; in eeh_pe_alloc() local
59 pe = kzalloc(alloc_size, GFP_KERNEL); in eeh_pe_alloc()
60 if (!pe) return NULL; in eeh_pe_alloc()
63 pe->type = type; in eeh_pe_alloc()
64 pe->phb = phb; in eeh_pe_alloc()
65 INIT_LIST_HEAD(&pe->child_list); in eeh_pe_alloc()
66 INIT_LIST_HEAD(&pe->edevs); in eeh_pe_alloc()
68 pe->data = (void *)pe + ALIGN(sizeof(struct eeh_pe), in eeh_pe_alloc()
70 return pe; in eeh_pe_alloc()
82 struct eeh_pe *pe; in eeh_phb_pe_create() local
[all …]
H A Deeh_driver.c89 if (eeh_pe_passed(edev->pe)) in eeh_edev_actionable()
206 if (edev->pe && (edev->pe->state & EEH_PE_CFG_RESTRICTED)) in eeh_dev_save_state()
218 struct eeh_pe *pe; in eeh_set_channel_state() local
221 eeh_for_each_pe(root, pe) in eeh_set_channel_state()
222 eeh_pe_for_each_dev(pe, edev, tmp) in eeh_set_channel_state()
229 struct eeh_pe *pe; in eeh_set_irq_state() local
232 eeh_for_each_pe(root, pe) { in eeh_set_irq_state()
233 eeh_pe_for_each_dev(pe, edev, tmp) { in eeh_set_irq_state()
291 !eeh_dev_removed(edev), !eeh_pe_passed(edev->pe)); in eeh_pe_report_edev()
302 struct eeh_pe *pe; in eeh_pe_report() local
[all …]
H A 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 …]
H A 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/arch/powerpc/platforms/powernv/
H A Dpci-ioda.c49 static void pnv_pci_ioda2_set_bypass(struct pnv_ioda_pe *pe, bool enable);
52 void pe_level_printk(const struct pnv_ioda_pe *pe, const char *level, in pe_level_printk() argument
64 if (pe->flags & PNV_IODA_PE_DEV) in pe_level_printk()
65 strscpy(pfix, dev_name(&pe->pdev->dev), sizeof(pfix)); in pe_level_printk()
66 else if (pe->flags & (PNV_IODA_PE_BUS | PNV_IODA_PE_BUS_ALL)) in pe_level_printk()
68 pci_domain_nr(pe->pbus), pe->pbus->number); in pe_level_printk()
70 else if (pe->flags & PNV_IODA_PE_VF) in pe_level_printk()
72 pci_domain_nr(pe->parent_dev->bus), in pe_level_printk()
73 (pe->rid & 0xff00) >> 8, in pe_level_printk()
74 PCI_SLOT(pe->rid), PCI_FUNC(pe->rid)); in pe_level_printk()
[all …]
H A Deeh-powernv.c70 struct eeh_pe *pe; in pnv_eeh_ei_write() local
91 pe = eeh_pe_get(hose, pe_no); in pnv_eeh_ei_write()
92 if (!pe) in pnv_eeh_ei_write()
96 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 …]
H A Dpci-sriov.c229 struct pnv_ioda_pe *pe = pnv_ioda_get_pe(pdev); in pnv_pci_ioda_fixup_iov() local
236 pe->pdev = pdev; in pnv_pci_ioda_fixup_iov()
237 WARN_ON(!(pe->flags & PNV_IODA_PE_VF)); in pnv_pci_ioda_fixup_iov()
478 struct pnv_ioda_pe *pe, *pe_n; in pnv_ioda_release_vf_PE() local
486 list_for_each_entry_safe(pe, pe_n, &phb->ioda.pe_list, list) { in pnv_ioda_release_vf_PE()
487 if (pe->parent_dev != pdev) in pnv_ioda_release_vf_PE()
490 pnv_pci_ioda2_release_pe_dma(pe); in pnv_ioda_release_vf_PE()
494 list_del(&pe->list); in pnv_ioda_release_vf_PE()
497 pnv_ioda_deconfigure_pe(phb, pe); in pnv_ioda_release_vf_PE()
499 pnv_ioda_free_pe(pe); in pnv_ioda_release_vf_PE()
[all …]
/linux/drivers/iommu/intel/
H A Dpasid.h88 static inline void pasid_clear_entry(struct pasid_entry *pe) in pasid_clear_entry() argument
90 WRITE_ONCE(pe->val[0], 0); in pasid_clear_entry()
91 WRITE_ONCE(pe->val[1], 0); in pasid_clear_entry()
92 WRITE_ONCE(pe->val[2], 0); in pasid_clear_entry()
93 WRITE_ONCE(pe->val[3], 0); in pasid_clear_entry()
94 WRITE_ONCE(pe->val[4], 0); in pasid_clear_entry()
95 WRITE_ONCE(pe->val[5], 0); in pasid_clear_entry()
96 WRITE_ONCE(pe->val[6], 0); in pasid_clear_entry()
97 WRITE_ONCE(pe->val[7], 0); in pasid_clear_entry()
100 static inline void pasid_clear_entry_with_fpd(struct pasid_entry *pe) in pasid_clear_entry_with_fpd() argument
[all …]
/linux/net/netfilter/ipvs/
H A Dip_vs_pe.c13 /* IPVS pe list */
19 /* Get pe in the pe list by name */
22 struct ip_vs_pe *pe; in __ip_vs_pe_getbyname()
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()
32 /* This pe is just deleted */ 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()
23 struct ip_vs_pe *pe; __ip_vs_pe_getbyname() local
51 struct ip_vs_pe *pe; ip_vs_pe_getbyname() local
66 register_ip_vs_pe(struct ip_vs_pe * pe) register_ip_vs_pe() argument
98 unregister_ip_vs_pe(struct ip_vs_pe * pe) unregister_ip_vs_pe() argument
[all...]
/linux/arch/alpha/include/asm/
H A 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/lib/crypto/
H A Ddes.c622 static unsigned long des_ekey(u32 *pe, const u8 *k) in des_ekey() argument
633 pe[15 * 2 + 0] = DES_PC2(a, b, c, d); d = rs[d]; in des_ekey()
634 pe[14 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey()
635 pe[13 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey()
636 pe[12 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey()
637 pe[11 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey()
638 pe[10 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey()
639 pe[ 9 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey()
640 pe[ 8 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; in des_ekey()
641 pe[ 7 * 2 + 0] = DES_PC2(c, d, a, b); b = rs[b]; a = rs[a]; in des_ekey()
[all …]
/linux/arch/powerpc/include/asm/
H A 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 …]
H A Dppc-pci.h56 void eeh_slot_error_detail(struct eeh_pe *pe, int severity);
57 int eeh_pci_enable(struct eeh_pe *pe, int function);
58 int eeh_pe_reset_full(struct eeh_pe *pe, bool include_passed);
60 void eeh_pe_state_mark(struct eeh_pe *pe, int state);
61 void eeh_pe_mark_isolated(struct eeh_pe *pe);
62 void eeh_pe_state_clear(struct eeh_pe *pe, int state, bool include_passed);
63 void eeh_pe_state_mark_with_cfg(struct eeh_pe *pe, int state);
64 void eeh_pe_dev_mode_mark(struct eeh_pe *pe, int mode);
/linux/tools/perf/tests/
H A Dbp_signal_overflow.c65 struct perf_event_attr pe; in test__bp_signal_overflow() local
85 memset(&pe, 0, sizeof(struct perf_event_attr)); in test__bp_signal_overflow()
86 pe.type = PERF_TYPE_BREAKPOINT; in test__bp_signal_overflow()
87 pe.size = sizeof(struct perf_event_attr); in test__bp_signal_overflow()
89 pe.config = 0; in test__bp_signal_overflow()
90 pe.bp_type = HW_BREAKPOINT_X; in test__bp_signal_overflow()
91 pe.bp_addr = (unsigned long) test_function; in test__bp_signal_overflow()
92 pe.bp_len = default_breakpoint_len(); in test__bp_signal_overflow()
94 pe.sample_period = THRESHOLD; in test__bp_signal_overflow()
95 pe.sample_type = PERF_SAMPLE_IP; in test__bp_signal_overflow()
[all …]
H A Dbp_signal.c105 struct perf_event_attr pe; in __event() local
108 memset(&pe, 0, sizeof(struct perf_event_attr)); in __event()
109 pe.type = PERF_TYPE_BREAKPOINT; in __event()
110 pe.size = sizeof(struct perf_event_attr); in __event()
112 pe.config = 0; in __event()
113 pe.bp_type = is_x ? HW_BREAKPOINT_X : HW_BREAKPOINT_W; in __event()
114 pe.bp_addr = (unsigned long) addr; in __event()
115 pe.bp_len = is_x ? default_breakpoint_len() : sizeof(long); in __event()
117 pe.sample_period = 1; in __event()
118 pe.sample_type = PERF_SAMPLE_IP; in __event()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_pmu.c228 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_start() local
236 if ((!pe->adev->df.funcs) || in amdgpu_perf_start()
237 (!pe->adev->df.funcs->pmc_start)) in amdgpu_perf_start()
247 target_cntr = pe->adev->df.funcs->pmc_start(pe->adev, in amdgpu_perf_start()
256 pe->adev->df.funcs->pmc_start(pe->adev, hwc->config, in amdgpu_perf_start()
270 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_read() local
275 if ((!pe->adev->df.funcs) || in amdgpu_perf_read()
276 (!pe->adev->df.funcs->pmc_get_count)) in amdgpu_perf_read()
284 pe->adev->df.funcs->pmc_get_count(pe->adev, in amdgpu_perf_read()
300 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_stop() local
[all …]
/linux/tools/testing/selftests/user_events/
H A Dperf_test.c32 static long perf_event_open(struct perf_event_attr *pe, pid_t pid, in perf_event_open() argument
35 return syscall(__NR_perf_event_open, pe, pid, cpu, group_fd, flags); in perf_event_open()
134 struct perf_event_attr pe = {0}; in TEST_F() local
159 pe.type = PERF_TYPE_TRACEPOINT; in TEST_F()
160 pe.size = sizeof(pe); in TEST_F()
161 pe.config = id; in TEST_F()
162 pe.sample_type = PERF_SAMPLE_RAW; in TEST_F()
163 pe.sample_period = 1; in TEST_F()
164 pe.wakeup_events = 1; in TEST_F()
167 fd = perf_event_open(&pe, 0, -1, -1, 0); in TEST_F()
[all …]
/linux/drivers/tty/vt/
H A Dselection.c252 int pe) in vc_do_selection() argument
260 new_sel_end = pe; in vc_do_selection()
273 spc = is_space_on_vt(sel_pos(pe, unicode)); in vc_do_selection()
274 for (new_sel_end = pe; ; pe += 2) { in vc_do_selection()
275 if ((spc && !is_space_on_vt(sel_pos(pe, unicode))) || in vc_do_selection()
276 (!spc && !inword(sel_pos(pe, unicode)))) in vc_do_selection()
278 new_sel_end = pe; in vc_do_selection()
279 if (!((pe + 2) % vc->vc_size_row)) in vc_do_selection()
285 new_sel_end = rounddown(pe, vc->vc_size_row) + in vc_do_selection()
289 highlight_pointer(pe); in vc_do_selection()
[all …]
/linux/arch/alpha/kernel/
H A 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
85 sz = scnprintf(tmp, sizeof(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 …]
/linux/drivers/md/
H A Ddm-snap.c751 struct dm_snap_pending_exception *pe = mempool_alloc(&s->pending_pool, in alloc_pending_exception() local
755 pe->snap = s; in alloc_pending_exception()
757 return pe; in alloc_pending_exception()
760 static void free_pending_exception(struct dm_snap_pending_exception *pe) in free_pending_exception() argument
762 struct dm_snapshot *s = pe->snap; in free_pending_exception()
764 mempool_free(pe, &s->pending_pool); in free_pending_exception()
1640 struct dm_snap_pending_exception *pe = context; in pending_complete() local
1642 struct dm_snapshot *s = pe->snap; in pending_complete()
1649 dm_exception_table_lock_init(s, pe->e.old_chunk, &lock); in pending_complete()
1668 *e = pe->e; in pending_complete()
[all …]
/linux/drivers/misc/ocxl/
H A Dlink.c71 u64 pe; member
108 static void read_irq(struct spa *spa, u64 *dsisr, u64 *dar, u64 *pe) in read_irq() argument
115 *pe = reg & SPA_PE_MASK; in read_irq()
131 trace_ocxl_fault_ack(spa->spa_mem, spa->xsl_fault.pe, in ack_irq()
195 struct ocxl_process_element *pe; in xsl_fault_handler() local
203 pe = spa->spa_mem + pe_handle; in xsl_fault_handler()
204 pid = be32_to_cpu(pe->pid); in xsl_fault_handler()
250 spa->xsl_fault.pe = pe_handle; in xsl_fault_handler()
545 struct ocxl_process_element *pe; in ocxl_link_add_pe() local
555 pe = spa->spa_mem + pe_handle; in ocxl_link_add_pe()
[all …]
/linux/kernel/trace/
H A Dtrace_events_filter.c184 static void parse_error(struct filter_parse_error *pe, int err, int pos) in parse_error() argument
186 pe->lasterr = err; in parse_error()
187 pe->lasterr_pos = pos; in parse_error()
191 struct filter_parse_error *pe,
472 struct filter_parse_error *pe) in predicate_parse() argument
493 parse_error(pe, -ENOMEM, 0); in predicate_parse()
498 parse_error(pe, -ENOMEM, 0); in predicate_parse()
529 parse_error(pe, FILT_ERR_TOO_MANY_PREDS, next - str); in predicate_parse()
536 len = parse_pred(next, data, ptr - str, pe, &prog[N].pred); in predicate_parse()
564 parse_error(pe, FILT_ERR_TOO_MANY_PREDS, in predicate_parse()
[all …]
/linux/tools/perf/pmu-events/
H A Dempty-pmu-events.c2857 static void decompress_event(int offset, struct pmu_event *pe) in decompress_event() argument
2861 pe->name = (*p == '\0' ? NULL : p); in decompress_event()
2863 pe->topic = (*p == '\0' ? NULL : p); in decompress_event()
2865 pe->desc = (*p == '\0' ? NULL : p); in decompress_event()
2867 pe->event = (*p == '\0' ? NULL : p); in decompress_event()
2869 pe->compat = (*p == '\0' ? NULL : p); in decompress_event()
2871 pe->deprecated = *p - '0'; in decompress_event()
2873 pe->perpkg = *p - '0'; in decompress_event()
2875 pe->unit = (*p == '\0' ? NULL : p); in decompress_event()
2877 pe->retirement_latency_mean = (*p == '\0' ? NULL : p); in decompress_event()
[all …]

123456