Home
last modified time | relevance | path

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

12

/openbmc/linux/tools/testing/selftests/powerpc/dscr/
H A 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 …]
H A 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()
/openbmc/linux/drivers/misc/mei/
H A 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()
/openbmc/qemu/hw/sd/
H A Dsdhci.c712 dscr->incr = 8; in get_adma_description()
720 dscr->incr = 4; in get_adma_description()
724 dscr->length = 4 * KiB; in get_adma_description()
732 dscr->length = le16_to_cpu(dscr->length); in get_adma_description()
735 dscr->addr = le64_to_cpu(dscr->addr); in get_adma_description()
736 dscr->attr &= (uint8_t) ~0xC0; in get_adma_description()
737 dscr->incr = 12; in get_adma_description()
749 ADMADescr dscr = {}; in sdhci_do_adma() local
762 get_adma_description(s, &dscr); in sdhci_do_adma()
763 trace_sdhci_adma_loop(dscr.addr, dscr.length, dscr.attr); in sdhci_do_adma()
[all …]
/openbmc/linux/arch/arm/kernel/
H A Dhw_breakpoint.c226 u32 dscr; in monitor_mode_enabled() local
227 ARM_DBG_READ(c0, c1, 0, dscr); in monitor_mode_enabled()
228 return !!(dscr & ARM_DSCR_MDBGEN); in monitor_mode_enabled()
233 u32 dscr; in enable_monitor_mode() local
234 ARM_DBG_READ(c0, c1, 0, dscr); in enable_monitor_mode()
237 if (dscr & ARM_DSCR_MDBGEN) in enable_monitor_mode()
260 ARM_DBG_READ(c0, c1, 0, dscr); in enable_monitor_mode()
261 if (!(dscr & ARM_DSCR_MDBGEN)) { in enable_monitor_mode()
914 u32 dscr; in hw_breakpoint_pending() local
922 ARM_DBG_READ(c0, c1, 0, dscr); in hw_breakpoint_pending()
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-tar.h30 unsigned long ppr, unsigned long dscr) in validate_tar_registers() argument
40 if (reg[2] != dscr) in validate_tar_registers()
H A 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()
/openbmc/linux/tools/testing/selftests/powerpc/tm/
H A DMakefile5 TEST_GEN_PROGS := tm-resched-dscr tm-syscall tm-signal-msr-resv tm-signal-stack \
23 $(OUTPUT)/tm-resched-dscr: ../pmu/lib.c
H A D.gitignore2 tm-resched-dscr
/openbmc/linux/arch/mips/alchemy/common/
H A 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()
/openbmc/linux/drivers/gpu/drm/atmel-hlcdc/
H A Datmel_hlcdc_plane.c850 struct atmel_hlcdc_dma_channel_dscr *dscr; in atmel_hlcdc_plane_alloc_dscrs() local
853 dscr = dma_pool_alloc(dc->dscrpool, GFP_KERNEL, &dscr_dma); in atmel_hlcdc_plane_alloc_dscrs()
854 if (!dscr) in atmel_hlcdc_plane_alloc_dscrs()
857 dscr->addr = 0; in atmel_hlcdc_plane_alloc_dscrs()
858 dscr->next = dscr_dma; in atmel_hlcdc_plane_alloc_dscrs()
859 dscr->self = dscr_dma; in atmel_hlcdc_plane_alloc_dscrs()
860 dscr->ctrl = ATMEL_HLCDC_LAYER_DFETCH; in atmel_hlcdc_plane_alloc_dscrs()
862 state->dscrs[i] = dscr; in atmel_hlcdc_plane_alloc_dscrs()
/openbmc/linux/Documentation/powerpc/
H A 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
H A Dindex.rst19 dscr
/openbmc/linux/sound/soc/sof/amd/
H A Dacp.c123 u16 dscr; in acpbus_dma_start() local
128 for (dscr = 0; dscr < dscr_count; dscr++) in acpbus_dma_start()
129 configure_dma_descriptor(adata, dscr, dscr_info++); in acpbus_dma_start()
/openbmc/linux/drivers/dma/
H A Dat_hdmac.c205 u32 dscr; /* chain to next lli */ member
410 lli->ctrla, lli->ctrlb, &lli->dscr); in atc_dump_lli()
480 desc->sg[i].lli->dscr = 0; in set_lli_eol()
543 desc->sg[i - 1].lli->dscr = atdma_sg->lli_phys; in atdma_lli_chain()
672 u32 len, ctrla, dscr; in atc_get_llis_residue() local
676 dscr = channel_readl(atchan, DSCR); in atc_get_llis_residue()
690 if (likely(new_dscr == dscr)) in atc_get_llis_residue()
699 dscr = new_dscr; in atc_get_llis_residue()
707 if (desc->sg[0].lli->dscr == dscr) { in atc_get_llis_residue()
714 if (desc->sg[i].lli && desc->sg[i].lli->dscr == dscr) in atc_get_llis_residue()
[all …]
/openbmc/linux/arch/powerpc/kvm/
H A 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()
H A Dbook3s_hv.h99 KVMPPC_BOOK3S_HV_VCPU_ACCESSOR(dscr, 64)
/openbmc/linux/arch/powerpc/kernel/ptrace/
H A 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()
/openbmc/linux/arch/powerpc/platforms/powernv/
H A 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()
/openbmc/linux/tools/testing/selftests/powerpc/
H A DMakefile21 dscr \
/openbmc/linux/arch/powerpc/kernel/
H A Dprocess.c1168 t->dscr = mfspr(SPRN_DSCR); in save_sprs()
1240 u64 dscr = get_paca()->dscr_default; in restore_sprs() local
1242 dscr = new_thread->dscr; in restore_sprs()
1244 if (old_thread->dscr != dscr) in restore_sprs()
1245 mtspr(SPRN_DSCR, dscr); in restore_sprs()
1873 p->thread.dscr = mfspr(SPRN_DSCR); in copy_thread()
H A 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);
/openbmc/linux/Documentation/ABI/stable/
H A Dsysfs-devices-system-cpu6 /sys/devices/system/cpu/cpuN/dscr on all CPUs.
12 What: /sys/devices/system/cpu/cpu[0-9]+/dscr
/openbmc/linux/arch/powerpc/include/asm/
H A 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()
/openbmc/linux/arch/mips/include/asm/mach-au1x00/
H A Dau1xxx_dbdma.h375 u32 au1xxx_dbdma_put_dscr(u32 chanid, au1x_ddma_desc_t *dscr);

12