Home
last modified time | relevance | path

Searched full:pe (Results 1 – 25 of 518) sorted by relevance

12345678910>>...21

/Linux-v6.1/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-v6.1/arch/powerpc/kernel/
Deeh_pe.c3 * The file intends to implement PE based on the information from
7 * PE is only meaningful in one PHB domain.
27 * eeh_set_pe_aux_size - Set PE auxillary data size
28 * @size: PE auxillary data size
30 * Set PE auxillary data size
41 * eeh_pe_alloc - Allocate PE
43 * @type: PE type
45 * Allocate PE instance dynamically.
49 struct eeh_pe *pe; in eeh_pe_alloc() local
58 /* Allocate PHB PE */ in eeh_pe_alloc()
[all …]
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()
292 !eeh_dev_removed(edev), !eeh_pe_passed(edev->pe));
303 struct eeh_pe *pe; in eeh_pe_report() local
[all …]
Deeh.c89 * PE would be created there.
95 * EEH allowed maximal frozen times. If one particular PE's
96 * frozen count in last hour exceeds this limit, the PE will
137 u64 slot_resets; /* PE reset */
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()
283 * @pe: EEH PE
291 void eeh_slot_error_detail(struct eeh_pe *pe, int severity) in eeh_slot_error_detail() argument
[all …]
Deeh_event.c60 /* We might have event without binding PE */ in eeh_event_handler()
61 if (event->pe) in eeh_event_handler()
62 eeh_handle_normal_event(event->pe); in eeh_event_handler()
96 * @pe: EEH PE
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()
115 * Mark the PE as recovering before inserting it in the queue. in __eeh_send_failure_event()
116 * This prevents the PE from being free()ed by a hotplug driver in __eeh_send_failure_event()
117 * while the PE is sitting in the event queue. in __eeh_send_failure_event()
119 if (pe) { in __eeh_send_failure_event()
[all …]
/Linux-v6.1/net/netfilter/ipvs/
Dip_vs_pe.c14 /* IPVS pe list */
20 /* Get pe in the pe list by name */
23 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()
33 /* This pe is just deleted */ 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()
[all …]
/Linux-v6.1/arch/powerpc/platforms/powernv/
Dpci-ioda.c54 static void pnv_pci_ioda2_set_bypass(struct pnv_ioda_pe *pe, bool enable);
57 void pe_level_printk(const struct pnv_ioda_pe *pe, const char *level, in pe_level_printk() argument
69 if (pe->flags & PNV_IODA_PE_DEV) in pe_level_printk()
70 strscpy(pfix, dev_name(&pe->pdev->dev), sizeof(pfix)); in pe_level_printk()
71 else if (pe->flags & (PNV_IODA_PE_BUS | PNV_IODA_PE_BUS_ALL)) in pe_level_printk()
73 pci_domain_nr(pe->pbus), pe->pbus->number); in pe_level_printk()
75 else if (pe->flags & PNV_IODA_PE_VF) in pe_level_printk()
77 pci_domain_nr(pe->parent_dev->bus), in pe_level_printk()
78 (pe->rid & 0xff00) >> 8, in pe_level_printk()
79 PCI_SLOT(pe->rid), PCI_FUNC(pe->rid)); in pe_level_printk()
[all …]
Deeh-powernv.c70 struct eeh_pe *pe; in pnv_eeh_ei_write() local
90 /* Retrieve PE */ in pnv_eeh_ei_write()
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()
156 * to clear frozen PE during PCI config access. in pnv_eeh_enable_phbs()
301 /* for VFs we use the PF's PE as the upstream PE */ in pnv_eeh_get_upstream_pe()
306 /* otherwise use the PE of our parent bridge */ in pnv_eeh_get_upstream_pe()
339 if (!edev || edev->pe) in pnv_eeh_probe()
379 /* Create PE */ in pnv_eeh_probe()
[all …]
Dpci.h26 #define PNV_IODA_PE_DEV (1 << 0) /* PE has single PCI device */
27 #define PNV_IODA_PE_BUS (1 << 1) /* PE has primary PCI bus */
28 #define PNV_IODA_PE_BUS_ALL (1 << 2) /* PE has subordinate buses */
29 #define PNV_IODA_PE_MASTER (1 << 3) /* Master PE in compound case */
30 #define PNV_IODA_PE_SLAVE (1 << 4) /* Slave PE in compound case */
31 #define PNV_IODA_PE_VF (1 << 5) /* PE for one VF */
38 * (and PE) that initiated a DMA. In legacy PCI individual memory read/write
48 * bus of the bridge should go into the same PE.
51 /* Indicates operations are frozen for a PE: MMIO in PESTA & DMA in PESTB. */
54 /* Data associated with a PE, including IOMMU tracking etc.. */
[all …]
Dpci-sriov.c14 * the need to put the MMIO space for each VF into a separate PE. Internally
15 * the PHB maps MMIO addresses to a specific PE using the "Memory BAR Table".
39 * segments. The n'th segment is mapped to the n'th PE.
40 * b) An un-segmented BAR that maps the whole address range to a specific PE.
81 * This is where we actually allocate PE numbers for each VF and setup the
85 * ability because the PE space is shared by all devices on the same PHB.
86 * When using mode a) described above segment 0 in maps to PE#0 which might
89 * As a result we need allocate a contigious range of PE numbers, then shift
92 * PE number. This is handled in pnv_pci_vf_resource_shift().
97 * PE that we allocated for it rather than the PE associated with the bus.
[all …]
/Linux-v6.1/arch/powerpc/include/asm/
Deeh.h34 * Delay for PE reset, all in ms
44 * The struct is used to trace PE related EEH functionality.
46 * be created against particular PE. In nature, PEs correlate
49 * PE has EEH errors.
51 * Also, one particular PE might be composed of PCI device, PCI
53 * the information. Further more, one particular PE is only meaingful
58 #define EEH_PE_PHB (1 << 1) /* PHB PE */
59 #define EEH_PE_DEVICE (1 << 2) /* Device PE */
60 #define EEH_PE_BUS (1 << 3) /* Bus PE */
61 #define EEH_PE_VF (1 << 4) /* VF PE */
[all …]
/Linux-v6.1/arch/powerpc/platforms/pseries/
Deeh_pseries.c74 * parent PE in pseries_eeh_init_edev(). in pseries_pcibios_bus_add_device()
76 struct eeh_pe *physfn_pe = pci_dev_to_eeh_dev(pdev->physfn)->pe; in pseries_pcibios_bus_add_device()
80 eeh_pe_tree_remove(edev); /* Remove as it is adding to bus pe */ in pseries_pcibios_bus_add_device()
81 eeh_pe_tree_insert(edev, physfn_pe); /* Add as VF PE type */ in pseries_pcibios_bus_add_device()
93 * pe_config_addr) as a handle to a given PE. This function finds the
110 * part of a PE or not. ret[0] being zero indicates it's not. in pseries_eeh_get_pe_config_addr()
118 /* Retrieve the associated PE config address with function 0 */ in pseries_eeh_get_pe_config_addr()
123 pr_warn("%s: Failed to get address for PHB#%x-PE#%x\n", in pseries_eeh_get_pe_config_addr()
136 pr_warn("%s: Failed to get address for PHB#%x-PE#%x\n", in pseries_eeh_get_pe_config_addr()
160 * Reset the specified PHB/PE
[all …]
/Linux-v6.1/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-v6.1/drivers/misc/cxl/
Dtrace.h20 { CXL_PSL9_DSISR_An_PE, "PE" }, \
30 { CXL_PSL_DSISR_An_PE, "PE" }, \
71 __field(u16, pe)
77 __entry->pe = ctx->pe;
80 TP_printk("afu%i.%i pe=%i",
83 __entry->pe
96 __field(u16, pe)
106 __entry->pe = ctx->pe;
113 TP_printk("afu%i.%i pid=%i pe=%i wed=0x%016llx irqs=%i amr=0x%llx",
117 __entry->pe,
[all …]
/Linux-v6.1/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-v6.1/drivers/iommu/intel/
Dpasid.c224 static inline void pasid_clear_entry(struct pasid_entry *pe) in pasid_clear_entry() argument
226 WRITE_ONCE(pe->val[0], 0); in pasid_clear_entry()
227 WRITE_ONCE(pe->val[1], 0); in pasid_clear_entry()
228 WRITE_ONCE(pe->val[2], 0); in pasid_clear_entry()
229 WRITE_ONCE(pe->val[3], 0); in pasid_clear_entry()
230 WRITE_ONCE(pe->val[4], 0); in pasid_clear_entry()
231 WRITE_ONCE(pe->val[5], 0); in pasid_clear_entry()
232 WRITE_ONCE(pe->val[6], 0); in pasid_clear_entry()
233 WRITE_ONCE(pe->val[7], 0); in pasid_clear_entry()
236 static inline void pasid_clear_entry_with_fpd(struct pasid_entry *pe) in pasid_clear_entry_with_fpd() argument
[all …]
/Linux-v6.1/tools/perf/tests/
Dbp_signal_overflow.c64 struct perf_event_attr pe; in test__bp_signal_overflow() local
84 memset(&pe, 0, sizeof(struct perf_event_attr)); in test__bp_signal_overflow()
85 pe.type = PERF_TYPE_BREAKPOINT; in test__bp_signal_overflow()
86 pe.size = sizeof(struct perf_event_attr); in test__bp_signal_overflow()
88 pe.config = 0; in test__bp_signal_overflow()
89 pe.bp_type = HW_BREAKPOINT_X; in test__bp_signal_overflow()
90 pe.bp_addr = (unsigned long) test_function; in test__bp_signal_overflow()
91 pe.bp_len = sizeof(long); in test__bp_signal_overflow()
93 pe.sample_period = THRESHOLD; in test__bp_signal_overflow()
94 pe.sample_type = PERF_SAMPLE_IP; in test__bp_signal_overflow()
[all …]
Dpe-file.c3 // pe-file.exe and pe-file.exe.debug built with;
4 // x86_64-w64-mingw32-gcc -o pe-file.exe pe-file.c
7 // --compress-debug-sections pe-file.exe pe-file.exe.debug
9 // --add-gnu-debuglink=pe-file.exe.debug pe-file.exe
/Linux-v6.1/Documentation/powerpc/
Dpci_iov_resource_on_powernv.rst22 A Partitionable Endpoint (PE) is a way to group the various resources
28 There is thus, in HW, a table of PE states that contains a pair of "frozen"
30 cleared independently) for each PE.
32 When a PE is frozen, all stores in any direction are dropped and all loads
54 correspondence between a PCIe RID (bus/dev/fn) with a PE number.
57 - For DMA we then provide an entire address space for each PE that can
66 bridge being triggered. There's a PE# in the interrupt controller
67 descriptor table as well which is compared with the PE# obtained from
96 maps each segment to a PE#. That allows portions of the MMIO space
103 can be assigned to a PE.
[all …]
/Linux-v6.1/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-v6.1/drivers/gpu/drm/amd/amdgpu/
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()
285 pe->adev->df.funcs->pmc_get_count(pe->adev, in amdgpu_perf_read()
301 struct amdgpu_pmu_entry *pe = container_of(event->pmu, in amdgpu_perf_stop() local
[all …]
Damdgpu_vm_sdma.c141 * @pe: addr of the page entry
147 struct amdgpu_bo *bo, uint64_t pe, in amdgpu_vm_sdma_copy_ptes() argument
155 pe += amdgpu_gmc_sign_extend(amdgpu_bo_gpu_offset_no_check(bo)); in amdgpu_vm_sdma_copy_ptes()
156 trace_amdgpu_vm_copy_ptes(pe, src, count, p->immediate); in amdgpu_vm_sdma_copy_ptes()
158 amdgpu_vm_copy_pte(p->adev, ib, pe, src, count); in amdgpu_vm_sdma_copy_ptes()
166 * @pe: byte offset of the PDE/PTE, relative to start of PDB/PTB
167 * @addr: dst addr to write into pe
176 struct amdgpu_bo *bo, uint64_t pe, in amdgpu_vm_sdma_set_ptes() argument
182 pe += amdgpu_gmc_sign_extend(amdgpu_bo_gpu_offset_no_check(bo)); in amdgpu_vm_sdma_set_ptes()
183 trace_amdgpu_vm_set_ptes(pe, addr, count, incr, flags, p->immediate); in amdgpu_vm_sdma_set_ptes()
[all …]
/Linux-v6.1/drivers/pinctrl/freescale/
Dpinctrl-imx27.c23 #define PE 4 macro
150 MX27_PAD_USBOTG_NXT = PAD_ID(PE, 0),
151 MX27_PAD_USBOTG_STP = PAD_ID(PE, 1),
152 MX27_PAD_USBOTG_DIR = PAD_ID(PE, 2),
153 MX27_PAD_UART2_CTS = PAD_ID(PE, 3),
154 MX27_PAD_UART2_RTS = PAD_ID(PE, 4),
155 MX27_PAD_PWMO = PAD_ID(PE, 5),
156 MX27_PAD_UART2_TXD = PAD_ID(PE, 6),
157 MX27_PAD_UART2_RXD = PAD_ID(PE, 7),
158 MX27_PAD_UART3_TXD = PAD_ID(PE, 8),
[all …]
/Linux-v6.1/drivers/misc/ocxl/
Dlink.c56 struct radix_tree_root pe_tree; /* Maps PE handles to pe_data */
71 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()
205 /* We could be reading all null values here if the PE is being in xsl_fault_handler()
223 * AFU about PASID termination before removing the PE, in xsl_fault_handler()
[all …]
/Linux-v6.1/tools/perf/util/
Dmetricgroup.c168 static bool metricgroup__has_constraint(const struct pmu_event *pe) in metricgroup__has_constraint() argument
170 if (!pe->metric_constraint) in metricgroup__has_constraint()
173 if (!strcmp(pe->metric_constraint, "NO_NMI_WATCHDOG") && in metricgroup__has_constraint()
175 metricgroup___watchdog_constraint_hint(pe->metric_name, false); in metricgroup__has_constraint()
194 static struct metric *metric__new(const struct pmu_event *pe, in metric__new() argument
211 m->metric_name = pe->metric_name; in metric__new()
218 m->metric_expr = pe->metric_expr; in metric__new()
219 m->metric_unit = pe->unit; in metric__new()
228 m->has_constraint = metric_no_group || metricgroup__has_constraint(pe); in metric__new()
349 static bool match_pe_metric(const struct pmu_event *pe, const char *metric) in match_pe_metric() argument
[all …]

12345678910>>...21