/linux-6.12.1/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_prs.c | 22 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-6.12.1/arch/powerpc/kernel/ |
D | eeh_pe.c | 49 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 …]
|
D | eeh_driver.c | 89 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)); in eeh_pe_report_edev() 303 struct eeh_pe *pe; in eeh_pe_report() local [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_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 …]
|
/linux-6.12.1/drivers/iommu/intel/ |
D | pasid.h | 89 static inline void pasid_clear_entry(struct pasid_entry *pe) in pasid_clear_entry() argument 91 WRITE_ONCE(pe->val[0], 0); in pasid_clear_entry() 92 WRITE_ONCE(pe->val[1], 0); in pasid_clear_entry() 93 WRITE_ONCE(pe->val[2], 0); in pasid_clear_entry() 94 WRITE_ONCE(pe->val[3], 0); in pasid_clear_entry() 95 WRITE_ONCE(pe->val[4], 0); in pasid_clear_entry() 96 WRITE_ONCE(pe->val[5], 0); in pasid_clear_entry() 97 WRITE_ONCE(pe->val[6], 0); in pasid_clear_entry() 98 WRITE_ONCE(pe->val[7], 0); in pasid_clear_entry() 101 static inline void pasid_clear_entry_with_fpd(struct pasid_entry *pe) in pasid_clear_entry_with_fpd() argument [all …]
|
/linux-6.12.1/arch/powerpc/platforms/powernv/ |
D | pci-ioda.c | 51 static void pnv_pci_ioda2_set_bypass(struct pnv_ioda_pe *pe, bool enable); 54 void pe_level_printk(const struct pnv_ioda_pe *pe, const char *level, in pe_level_printk() argument 66 if (pe->flags & PNV_IODA_PE_DEV) in pe_level_printk() 67 strscpy(pfix, dev_name(&pe->pdev->dev), sizeof(pfix)); in pe_level_printk() 68 else if (pe->flags & (PNV_IODA_PE_BUS | PNV_IODA_PE_BUS_ALL)) in pe_level_printk() 70 pci_domain_nr(pe->pbus), pe->pbus->number); in pe_level_printk() 72 else if (pe->flags & PNV_IODA_PE_VF) in pe_level_printk() 74 pci_domain_nr(pe->parent_dev->bus), in pe_level_printk() 75 (pe->rid & 0xff00) >> 8, in pe_level_printk() 76 PCI_SLOT(pe->rid), PCI_FUNC(pe->rid)); in pe_level_printk() [all …]
|
D | eeh-powernv.c | 70 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 …]
|
D | pci-sriov.c | 229 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-6.12.1/net/netfilter/ipvs/ |
D | ip_vs_pe.c | 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() 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-6.12.1/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 …]
|
/linux-6.12.1/lib/crypto/ |
D | des.c | 623 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-6.12.1/tools/perf/arch/x86/tests/ |
D | intel-cqm.c | 44 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-6.12.1/tools/perf/tests/ |
D | bp_signal_overflow.c | 65 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 …]
|
D | bp_signal.c | 105 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-6.12.1/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 | 56 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-6.12.1/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_pmu.c | 228 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-6.12.1/tools/testing/selftests/user_events/ |
D | perf_test.c | 32 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-6.12.1/drivers/net/wireless/ath/ath9k/ |
D | dfs.c | 202 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-6.12.1/drivers/misc/cxl/ |
D | trace.h | 71 __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-6.12.1/drivers/tty/vt/ |
D | selection.c | 240 int pe) in vc_do_selection() argument 248 new_sel_end = pe; in vc_do_selection() 261 spc = is_space_on_vt(sel_pos(pe, unicode)); in vc_do_selection() 262 for (new_sel_end = pe; ; pe += 2) { in vc_do_selection() 263 if ((spc && !is_space_on_vt(sel_pos(pe, unicode))) || in vc_do_selection() 264 (!spc && !inword(sel_pos(pe, unicode)))) in vc_do_selection() 266 new_sel_end = pe; in vc_do_selection() 267 if (!((pe + 2) % vc->vc_size_row)) in vc_do_selection() 273 new_sel_end = rounddown(pe, vc->vc_size_row) + in vc_do_selection() 277 highlight_pointer(pe); in vc_do_selection() [all …]
|
/linux-6.12.1/arch/powerpc/platforms/pseries/ |
D | eeh_pseries.c | 76 struct eeh_pe *physfn_pe = pci_dev_to_eeh_dev(pdev->physfn)->pe; in pseries_pcibios_bus_add_device() 345 if (parent->pe) in pseries_eeh_pe_get_parent() 346 return parent->pe; in pseries_eeh_pe_get_parent() 366 struct eeh_pe pe, *parent; in pseries_eeh_init_edev() local 390 if (edev->pe) in pseries_eeh_init_edev() 433 memset(&pe, 0, sizeof(struct eeh_pe)); in pseries_eeh_init_edev() 434 pe.phb = pdn->phb; in pseries_eeh_init_edev() 435 pe.addr = ret; in pseries_eeh_init_edev() 438 ret = eeh_ops->set_option(&pe, EEH_OPT_ENABLE); in pseries_eeh_init_edev() 444 edev->pe_config_addr = pe.addr; in pseries_eeh_init_edev() [all …]
|
/linux-6.12.1/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 …]
|
/linux-6.12.1/drivers/md/ |
D | dm-snap.c | 744 struct dm_snap_pending_exception *pe = mempool_alloc(&s->pending_pool, in alloc_pending_exception() local 748 pe->snap = s; in alloc_pending_exception() 750 return pe; in alloc_pending_exception() 753 static void free_pending_exception(struct dm_snap_pending_exception *pe) in free_pending_exception() argument 755 struct dm_snapshot *s = pe->snap; in free_pending_exception() 757 mempool_free(pe, &s->pending_pool); in free_pending_exception() 1645 struct dm_snap_pending_exception *pe = context; in pending_complete() local 1647 struct dm_snapshot *s = pe->snap; in pending_complete() 1654 dm_exception_table_lock_init(s, pe->e.old_chunk, &lock); in pending_complete() 1673 *e = pe->e; in pending_complete() [all …]
|