Home
last modified time | relevance | path

Searched refs:dscr (Results 1 – 25 of 31) sorted by relevance

12

/linux-6.12.1/tools/testing/selftests/powerpc/dscr/
Ddscr_inherit_test.c22 unsigned long i, dscr = 0; in dscr_inherit() local
28 set_dscr(dscr); in dscr_inherit()
33 dscr++; in dscr_inherit()
34 if (dscr > DSCR_MAX) in dscr_inherit()
35 dscr = 0; in dscr_inherit()
38 set_dscr_usr(dscr); in dscr_inherit()
40 set_dscr(dscr); in dscr_inherit()
65 if (cur_dscr != dscr) { in dscr_inherit()
67 "but is %ld\n", dscr, cur_dscr); in dscr_inherit()
72 if (cur_dscr_usr != dscr) { in dscr_inherit()
[all …]
Ddscr_inherit_exec_test.c44 unsigned long i, dscr = 0; in dscr_inherit_exec() local
50 dscr++; in dscr_inherit_exec()
51 if (dscr > DSCR_MAX) in dscr_inherit_exec()
52 dscr = 0; in dscr_inherit_exec()
54 if (dscr == get_default_dscr()) in dscr_inherit_exec()
58 set_dscr_usr(dscr); in dscr_inherit_exec()
60 set_dscr(dscr); in dscr_inherit_exec()
86 sprintf(dscr_str, "%ld", dscr); in dscr_inherit_exec()
/linux-6.12.1/drivers/misc/mei/
Ddma-ring.c22 struct mei_dma_dscr *dscr) in mei_dmam_dscr_alloc() argument
24 if (!dscr->size) in mei_dmam_dscr_alloc()
27 if (WARN_ON(!is_power_of_2(dscr->size))) in mei_dmam_dscr_alloc()
30 if (dscr->vaddr) in mei_dmam_dscr_alloc()
33 dscr->vaddr = dmam_alloc_coherent(dev->dev, dscr->size, &dscr->daddr, in mei_dmam_dscr_alloc()
35 if (!dscr->vaddr) in mei_dmam_dscr_alloc()
48 struct mei_dma_dscr *dscr) in mei_dmam_dscr_free() argument
50 if (!dscr->vaddr) in mei_dmam_dscr_free()
53 dmam_free_coherent(dev->dev, dscr->size, dscr->vaddr, dscr->daddr); in mei_dmam_dscr_free()
54 dscr->vaddr = NULL; in mei_dmam_dscr_free()
/linux-6.12.1/arch/arm/kernel/
Dhw_breakpoint.c227 u32 dscr; in monitor_mode_enabled() local
228 ARM_DBG_READ(c0, c1, 0, dscr); in monitor_mode_enabled()
229 return !!(dscr & ARM_DSCR_MDBGEN); in monitor_mode_enabled()
234 u32 dscr; in enable_monitor_mode() local
235 ARM_DBG_READ(c0, c1, 0, dscr); in enable_monitor_mode()
238 if (dscr & ARM_DSCR_MDBGEN) in enable_monitor_mode()
245 ARM_DBG_WRITE(c0, c1, 0, (dscr | ARM_DSCR_MDBGEN)); in enable_monitor_mode()
253 ARM_DBG_WRITE(c0, c2, 2, (dscr | ARM_DSCR_MDBGEN)); in enable_monitor_mode()
261 ARM_DBG_READ(c0, c1, 0, dscr); in enable_monitor_mode()
262 if (!(dscr & ARM_DSCR_MDBGEN)) { in enable_monitor_mode()
[all …]
/linux-6.12.1/tools/testing/selftests/powerpc/ptrace/
Dptrace-tar.h30 unsigned long ppr, unsigned long dscr) in validate_tar_registers() argument
40 if (reg[2] != dscr) in validate_tar_registers()
Dptrace.h190 unsigned long ppr, unsigned long dscr) in write_tar_registers() argument
219 *reg = dscr; in write_tar_registers()
281 unsigned long ppr, unsigned long dscr) in write_ckpt_tar_registers() argument
310 *reg = dscr; in write_ckpt_tar_registers()
/linux-6.12.1/tools/testing/selftests/powerpc/tm/
DMakefile5 TEST_GEN_PROGS := tm-resched-dscr tm-syscall tm-signal-msr-resv tm-signal-stack \
24 $(OUTPUT)/tm-resched-dscr: ../pmu/lib.c
D.gitignore2 tm-resched-dscr
/linux-6.12.1/arch/mips/alchemy/common/
Ddbdma.c937 u32 au1xxx_dbdma_put_dscr(u32 chanid, au1x_ddma_desc_t *dscr) in au1xxx_dbdma_put_dscr() argument
964 dp->dscr_dest0 = dscr->dscr_dest0; in au1xxx_dbdma_put_dscr()
965 dp->dscr_source0 = dscr->dscr_source0; in au1xxx_dbdma_put_dscr()
966 dp->dscr_dest1 = dscr->dscr_dest1; in au1xxx_dbdma_put_dscr()
967 dp->dscr_source1 = dscr->dscr_source1; in au1xxx_dbdma_put_dscr()
968 dp->dscr_cmd1 = dscr->dscr_cmd1; in au1xxx_dbdma_put_dscr()
969 nbytes = dscr->dscr_cmd1; in au1xxx_dbdma_put_dscr()
972 dp->dscr_cmd0 |= dscr->dscr_cmd0 | DSCR_CMD0_V; in au1xxx_dbdma_put_dscr()
/linux-6.12.1/drivers/dma/
Dat_hdmac.c205 u32 dscr; /* chain to next lli */ member
418 lli->ctrla, lli->ctrlb, &lli->dscr); in atc_dump_lli()
488 desc->sg[i].lli->dscr = 0; in set_lli_eol()
551 desc->sg[i - 1].lli->dscr = atdma_sg->lli_phys; in atdma_lli_chain()
681 u32 len, ctrla, dscr; in atc_get_llis_residue() local
685 dscr = channel_readl(atchan, DSCR); in atc_get_llis_residue()
699 if (likely(new_dscr == dscr)) in atc_get_llis_residue()
708 dscr = new_dscr; in atc_get_llis_residue()
716 if (desc->sg[0].lli->dscr == dscr) { in atc_get_llis_residue()
723 if (desc->sg[i].lli && desc->sg[i].lli->dscr == dscr) in atc_get_llis_residue()
[all …]
/linux-6.12.1/Documentation/arch/powerpc/
Ddscr.rst16 dscr /* Thread DSCR value */
34 now be contained in thread struct's dscr into the register instead of
43 - CPU specific DSCR default: /sys/devices/system/cpu/cpuN/dscr
Dindex.rst19 dscr
/linux-6.12.1/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_plane.c1099 struct atmel_hlcdc_dma_channel_dscr *dscr; in atmel_hlcdc_plane_alloc_dscrs() local
1102 dscr = dma_pool_alloc(dc->dscrpool, GFP_KERNEL, &dscr_dma); in atmel_hlcdc_plane_alloc_dscrs()
1103 if (!dscr) in atmel_hlcdc_plane_alloc_dscrs()
1106 dscr->addr = 0; in atmel_hlcdc_plane_alloc_dscrs()
1107 dscr->next = dscr_dma; in atmel_hlcdc_plane_alloc_dscrs()
1108 dscr->self = dscr_dma; in atmel_hlcdc_plane_alloc_dscrs()
1109 dscr->ctrl = ATMEL_HLCDC_LAYER_DFETCH; in atmel_hlcdc_plane_alloc_dscrs()
1111 state->dscrs[i] = dscr; in atmel_hlcdc_plane_alloc_dscrs()
/linux-6.12.1/arch/powerpc/kernel/ptrace/
Dptrace-view.c125 *data = task->thread.dscr; in get_user_dscr()
129 static int set_user_dscr(struct task_struct *task, unsigned long dscr) in set_user_dscr() argument
131 task->thread.dscr = dscr; in set_user_dscr()
141 static int set_user_dscr(struct task_struct *task, unsigned long dscr) in set_user_dscr() argument
313 return membuf_write(&to, &target->thread.dscr, sizeof(u64)); in dscr_get()
320 &target->thread.dscr, 0, sizeof(u64)); in dscr_set()
/linux-6.12.1/arch/powerpc/kvm/
Dbook3s_hv_p9_entry.c42 if (current->thread.dscr != vcpu->arch.dscr) in load_spr_state()
43 mtspr(SPRN_DSCR, vcpu->arch.dscr); in load_spr_state()
79 vcpu->arch.dscr = mfspr(SPRN_DSCR); in store_spr_state()
179 if (current->thread.dscr != vcpu->arch.dscr) in restore_p9_host_os_sprs()
180 mtspr(SPRN_DSCR, current->thread.dscr); in restore_p9_host_os_sprs()
Dbook3s_hv.h107 KVMPPC_BOOK3S_HV_VCPU_ACCESSOR(dscr, 64, KVMPPC_GSID_DSCR)
/linux-6.12.1/arch/powerpc/platforms/powernv/
Didle.c304 u64 dscr; member
356 sprs.dscr = mfspr(SPRN_DSCR); in power7_idle_insn()
490 mtspr(SPRN_DSCR, sprs.dscr); in power7_idle_insn()
593 u64 dscr; member
670 sprs.dscr = mfspr(SPRN_DSCR); in power9_idle_stop()
786 mtspr(SPRN_DSCR, sprs.dscr); in power9_idle_stop()
/linux-6.12.1/tools/testing/selftests/powerpc/
DMakefile15 dscr \
/linux-6.12.1/sound/soc/sof/amd/
Dacp.c160 u16 dscr; in acpbus_dma_start() local
165 for (dscr = 0; dscr < dscr_count; dscr++) in acpbus_dma_start()
166 configure_dma_descriptor(adata, dscr, dscr_info++); in acpbus_dma_start()
/linux-6.12.1/arch/powerpc/kernel/
Dprocess.c1166 t->dscr = mfspr(SPRN_DSCR); in save_sprs()
1241 u64 dscr = get_paca()->dscr_default; in restore_sprs() local
1243 dscr = new_thread->dscr; in restore_sprs()
1245 if (old_thread->dscr != dscr) in restore_sprs()
1246 mtspr(SPRN_DSCR, dscr); in restore_sprs()
1885 p->thread.dscr = mfspr(SPRN_DSCR); in copy_thread()
Dsysfs.c161 current->thread.dscr = *(unsigned long *)val; in write_dscr()
166 SYSFS_SPRSETUP_SHOW_STORE(dscr);
167 static DEVICE_ATTR(dscr, 0600, show_dscr, store_dscr);
/linux-6.12.1/Documentation/ABI/stable/
Dsysfs-devices-system-cpu6 /sys/devices/system/cpu/cpuN/dscr on all CPUs.
12 What: /sys/devices/system/cpu/cpu[0-9]+/dscr
/linux-6.12.1/arch/powerpc/include/asm/
Dkvm_book3s_64.h598 vcpu->arch.dscr = vcpu->arch.dscr_tm; in copy_from_checkpoint()
615 vcpu->arch.dscr_tm = vcpu->arch.dscr; in copy_to_checkpoint()
Dprocessor.h233 unsigned long dscr; member
/linux-6.12.1/arch/mips/include/asm/mach-au1x00/
Dau1xxx_dbdma.h375 u32 au1xxx_dbdma_put_dscr(u32 chanid, au1x_ddma_desc_t *dscr);

12