Home
last modified time | relevance | path

Searched refs:regset (Results 1 – 25 of 86) sorted by relevance

1234

/kernel/linux/linux-5.10/arch/powerpc/kernel/ptrace/
Dptrace-decl.h67 int fpr_set(struct task_struct *target, const struct user_regset *regset,
73 int vsr_active(struct task_struct *target, const struct user_regset *regset);
75 int vsr_set(struct task_struct *target, const struct user_regset *regset,
81 int vr_active(struct task_struct *target, const struct user_regset *regset);
83 int vr_set(struct task_struct *target, const struct user_regset *regset,
89 int evr_active(struct task_struct *target, const struct user_regset *regset);
91 int evr_set(struct task_struct *target, const struct user_regset *regset,
98 const struct user_regset *regset,
102 const struct user_regset *regset,
115 int tm_cgpr_active(struct task_struct *target, const struct user_regset *regset);
[all …]
Dptrace-tm.c58 int tm_cgpr_active(struct task_struct *target, const struct user_regset *regset) in tm_cgpr_active() argument
66 return regset->n; in tm_cgpr_active()
86 int tm_cgpr_get(struct task_struct *target, const struct user_regset *regset, in tm_cgpr_get() argument
133 int tm_cgpr_set(struct task_struct *target, const struct user_regset *regset, in tm_cgpr_set() argument
199 int tm_cfpr_active(struct task_struct *target, const struct user_regset *regset) in tm_cfpr_active() argument
207 return regset->n; in tm_cfpr_active()
228 int tm_cfpr_get(struct task_struct *target, const struct user_regset *regset, in tm_cfpr_get() argument
272 int tm_cfpr_set(struct task_struct *target, const struct user_regset *regset, in tm_cfpr_set() argument
311 int tm_cvmx_active(struct task_struct *target, const struct user_regset *regset) in tm_cvmx_active() argument
319 return regset->n; in tm_cvmx_active()
[all …]
Dptrace-vsx.c21 int fpr_get(struct task_struct *target, const struct user_regset *regset, in fpr_get() argument
49 int fpr_set(struct task_struct *target, const struct user_regset *regset, in fpr_set() argument
79 int vsr_active(struct task_struct *target, const struct user_regset *regset) in vsr_active() argument
82 return target->thread.used_vsr ? regset->n : 0; in vsr_active()
97 int vsr_get(struct task_struct *target, const struct user_regset *regset, in vsr_get() argument
126 int vsr_set(struct task_struct *target, const struct user_regset *regset, in vsr_set() argument
Dptrace-view.c217 static int gpr_get(struct task_struct *target, const struct user_regset *regset, in gpr_get() argument
244 static int gpr_set(struct task_struct *target, const struct user_regset *regset, in gpr_set() argument
298 static int ppr_get(struct task_struct *target, const struct user_regset *regset, in ppr_get() argument
304 static int ppr_set(struct task_struct *target, const struct user_regset *regset, in ppr_set() argument
312 static int dscr_get(struct task_struct *target, const struct user_regset *regset, in dscr_get() argument
317 static int dscr_set(struct task_struct *target, const struct user_regset *regset, in dscr_set() argument
326 static int tar_get(struct task_struct *target, const struct user_regset *regset, in tar_get() argument
331 static int tar_set(struct task_struct *target, const struct user_regset *regset, in tar_set() argument
339 static int ebb_active(struct task_struct *target, const struct user_regset *regset) in ebb_active() argument
345 return regset->n; in ebb_active()
[all …]
Dptrace-spe.c19 int evr_active(struct task_struct *target, const struct user_regset *regset) in evr_active() argument
22 return target->thread.used_spe ? regset->n : 0; in evr_active()
25 int evr_get(struct task_struct *target, const struct user_regset *regset, in evr_get() argument
39 int evr_set(struct task_struct *target, const struct user_regset *regset, in evr_set() argument
Dptrace-altivec.c23 int vr_active(struct task_struct *target, const struct user_regset *regset) in vr_active() argument
26 return target->thread.used_vr ? regset->n : 0; in vr_active()
43 int vr_get(struct task_struct *target, const struct user_regset *regset, in vr_get() argument
79 int vr_set(struct task_struct *target, const struct user_regset *regset, in vr_set() argument
/kernel/linux/linux-5.10/kernel/
Dregset.c7 const struct user_regset *regset, in __regset_get() argument
14 if (!regset->regset_get) in __regset_get()
16 if (size > regset->n * regset->size) in __regset_get()
17 size = regset->n * regset->size; in __regset_get()
23 res = regset->regset_get(target, regset, in __regset_get()
34 const struct user_regset *regset, in regset_get() argument
38 return __regset_get(target, regset, size, &data); in regset_get()
43 const struct user_regset *regset, in regset_get_alloc() argument
48 return __regset_get(target, regset, size, data); in regset_get_alloc()
67 const struct user_regset *regset = &view->regsets[setno]; in copy_regset_to_user() local
[all …]
/kernel/linux/linux-5.10/drivers/crypto/ccree/
Dcc_debugfs.c66 struct debugfs_regset32 *regset, *verset; in cc_debugfs_init() local
68 regset = devm_kzalloc(dev, sizeof(*regset), GFP_KERNEL); in cc_debugfs_init()
69 if (!regset) in cc_debugfs_init()
72 regset->regs = debug_regs; in cc_debugfs_init()
73 regset->nregs = ARRAY_SIZE(debug_regs); in cc_debugfs_init()
74 regset->base = drvdata->cc_base; in cc_debugfs_init()
75 regset->dev = dev; in cc_debugfs_init()
80 debugfs_create_regset32("regs", 0400, drvdata->dir, regset); in cc_debugfs_init()
/kernel/linux/linux-5.10/include/linux/
Dregset.h83 const struct user_regset *regset);
86 const struct user_regset *regset,
106 const struct user_regset *regset,
132 const struct user_regset *regset,
290 const struct user_regset *regset,
294 const struct user_regset *regset,
318 const struct user_regset *regset = &view->regsets[setno]; in copy_regset_from_user() local
320 if (!regset->set) in copy_regset_from_user()
326 return regset->set(target, regset, offset, size, NULL, data); in copy_regset_from_user()
/kernel/linux/linux-5.10/arch/x86/kernel/fpu/
Dregset.c16 int regset_fpregs_active(struct task_struct *target, const struct user_regset *regset) in regset_fpregs_active() argument
18 return regset->n; in regset_fpregs_active()
21 int regset_xregset_fpregs_active(struct task_struct *target, const struct user_regset *regset) in regset_xregset_fpregs_active() argument
24 return regset->n; in regset_xregset_fpregs_active()
29 int xfpregs_get(struct task_struct *target, const struct user_regset *regset, in xfpregs_get() argument
43 int xfpregs_set(struct task_struct *target, const struct user_regset *regset, in xfpregs_set() argument
74 int xstateregs_get(struct task_struct *target, const struct user_regset *regset, in xstateregs_get() argument
106 int xstateregs_set(struct task_struct *target, const struct user_regset *regset, in xstateregs_set() argument
288 int fpregs_get(struct task_struct *target, const struct user_regset *regset, in fpregs_get() argument
297 return fpregs_soft_get(target, regset, to); in fpregs_get()
[all …]
/kernel/linux/linux-5.10/drivers/thermal/broadcom/
Dbcm2835_thermal.c123 struct debugfs_regset32 *regset; in bcm2835_thermal_debugfs() local
127 regset = devm_kzalloc(&pdev->dev, sizeof(*regset), GFP_KERNEL); in bcm2835_thermal_debugfs()
128 if (!regset) in bcm2835_thermal_debugfs()
131 regset->regs = bcm2835_thermal_regs; in bcm2835_thermal_debugfs()
132 regset->nregs = ARRAY_SIZE(bcm2835_thermal_regs); in bcm2835_thermal_debugfs()
133 regset->base = data->regs; in bcm2835_thermal_debugfs()
135 debugfs_create_regset32("regset", 0444, data->debugfsdir, regset); in bcm2835_thermal_debugfs()
/kernel/linux/linux-5.10/arch/arm64/kernel/
Dptrace.c477 const struct user_regset *regset, in hw_break_get() argument
480 unsigned int note_type = regset->core_note_type; in hw_break_get()
509 const struct user_regset *regset, in hw_break_set() argument
513 unsigned int note_type = regset->core_note_type; in hw_break_set()
525 limit = regset->n * regset->size; in hw_break_set()
563 const struct user_regset *regset, in gpr_get() argument
570 static int gpr_set(struct task_struct *target, const struct user_regset *regset, in gpr_set() argument
588 static int fpr_active(struct task_struct *target, const struct user_regset *regset) in fpr_active() argument
592 return regset->n; in fpr_active()
599 const struct user_regset *regset, in __fpr_get() argument
[all …]
/kernel/linux/linux-5.10/drivers/usb/host/
Dxhci-debugfs.c88 struct xhci_regset *regset; in xhci_debugfs_alloc_regset() local
90 regset = kzalloc(sizeof(*regset), GFP_KERNEL); in xhci_debugfs_alloc_regset()
91 if (!regset) in xhci_debugfs_alloc_regset()
98 INIT_LIST_HEAD(&regset->list); in xhci_debugfs_alloc_regset()
99 list_add_tail(&regset->list, &xhci->regset_list); in xhci_debugfs_alloc_regset()
101 return regset; in xhci_debugfs_alloc_regset()
104 static void xhci_debugfs_free_regset(struct xhci_regset *regset) in xhci_debugfs_free_regset() argument
106 if (!regset) in xhci_debugfs_free_regset()
109 list_del(&regset->list); in xhci_debugfs_free_regset()
110 kfree(regset); in xhci_debugfs_free_regset()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/vc4/
Dvc4_debugfs.c41 struct debugfs_regset32 *regset = node->info_ent->data; in vc4_debugfs_regset32() local
44 drm_print_regset32(&p, regset); in vc4_debugfs_regset32()
80 struct debugfs_regset32 *regset) in vc4_debugfs_add_regset32() argument
82 vc4_debugfs_add_file(drm, name, vc4_debugfs_regset32, regset); in vc4_debugfs_add_regset32()
/kernel/linux/linux-5.10/drivers/video/fbdev/core/
Dsvgalib.c23 void svga_wcrt_multi(void __iomem *regbase, const struct vga_regset *regset, u32 value) in svga_wcrt_multi() argument
27 while (regset->regnum != VGA_REGSET_END_VAL) { in svga_wcrt_multi()
28 regval = vga_rcrt(regbase, regset->regnum); in svga_wcrt_multi()
29 bitnum = regset->lowbit; in svga_wcrt_multi()
30 while (bitnum <= regset->highbit) { in svga_wcrt_multi()
37 vga_wcrt(regbase, regset->regnum, regval); in svga_wcrt_multi()
38 regset ++; in svga_wcrt_multi()
43 void svga_wseq_multi(void __iomem *regbase, const struct vga_regset *regset, u32 value) in svga_wseq_multi() argument
47 while (regset->regnum != VGA_REGSET_END_VAL) { in svga_wseq_multi()
48 regval = vga_rseq(regbase, regset->regnum); in svga_wseq_multi()
[all …]
/kernel/linux/linux-5.10/arch/mips/kernel/
Dptrace.c212 const struct user_regset *regset, in gpr32_get() argument
223 const struct user_regset *regset, in gpr32_set() argument
277 const struct user_regset *regset, in gpr64_get() argument
288 const struct user_regset *regset, in gpr64_set() argument
435 const struct user_regset *regset, in fpr_get() argument
502 const struct user_regset *regset, in fpr_set() argument
545 const struct user_regset *regset, in fp_mode_get() argument
561 const struct user_regset *regset, in fp_mode_set() argument
596 const struct user_regset *regset, in copy_pad_fprs() argument
604 cp_sz = min(regset->size, live_sz); in copy_pad_fprs()
[all …]
/kernel/linux/linux-5.10/arch/sh/kernel/
Dptrace_32.c136 const struct user_regset *regset, in genregs_get() argument
145 const struct user_regset *regset, in genregs_set() argument
169 const struct user_regset *regset, in fpregs_get() argument
183 const struct user_regset *regset, in fpregs_set() argument
204 const struct user_regset *regset) in fpregs_active() argument
206 return tsk_used_math(target) ? regset->n : 0; in fpregs_active()
212 const struct user_regset *regset, in dspregs_get() argument
222 const struct user_regset *regset, in dspregs_set() argument
240 const struct user_regset *regset) in dspregs_active() argument
244 return regs->sr & SR_DSP ? regset->n : 0; in dspregs_active()
/kernel/linux/linux-5.10/drivers/media/platform/sti/c8sectpfe/
Dc8sectpfe-debugfs.c228 fei->regset = devm_kzalloc(fei->dev, sizeof(*fei->regset), GFP_KERNEL); in c8sectpfe_debugfs_init()
229 if (!fei->regset) in c8sectpfe_debugfs_init()
232 fei->regset->regs = fei_sys_regs; in c8sectpfe_debugfs_init()
233 fei->regset->nregs = ARRAY_SIZE(fei_sys_regs); in c8sectpfe_debugfs_init()
234 fei->regset->base = fei->io; in c8sectpfe_debugfs_init()
237 debugfs_create_regset32("registers", S_IRUGO, fei->root, fei->regset); in c8sectpfe_debugfs_init()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_print.c330 void drm_print_regset32(struct drm_printer *p, struct debugfs_regset32 *regset) in drm_print_regset32() argument
335 for (i = 0; i < regset->nregs; i++) in drm_print_regset32()
336 namelen = max(namelen, (int)strlen(regset->regs[i].name)); in drm_print_regset32()
338 for (i = 0; i < regset->nregs; i++) { in drm_print_regset32()
340 namelen, regset->regs[i].name, in drm_print_regset32()
341 readl(regset->base + regset->regs[i].offset)); in drm_print_regset32()
/kernel/linux/linux-5.10/arch/riscv/kernel/
Dptrace.c33 const struct user_regset *regset, in riscv_gpr_get() argument
41 const struct user_regset *regset, in riscv_gpr_set() argument
55 const struct user_regset *regset, in riscv_fpr_get() argument
69 const struct user_regset *regset, in riscv_fpr_set() argument
/kernel/linux/linux-5.10/arch/s390/kernel/
Dptrace.c946 const struct user_regset *regset, in s390_regs_get() argument
959 const struct user_regset *regset, in s390_regs_set() argument
995 const struct user_regset *regset, in s390_fpregs_get() argument
1010 const struct user_regset *regset, unsigned int pos, in s390_fpregs_set() argument
1052 const struct user_regset *regset, in s390_last_break_get() argument
1059 const struct user_regset *regset, in s390_last_break_set() argument
1067 const struct user_regset *regset, in s390_tdb_get() argument
1078 const struct user_regset *regset, in s390_tdb_set() argument
1086 const struct user_regset *regset, in s390_vxrs_low_get() argument
1102 const struct user_regset *regset, in s390_vxrs_low_set() argument
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_kms.c115 struct dpu_debugfs_regset32 *regset = s->private; in _dpu_debugfs_show_regset32() local
116 struct dpu_kms *dpu_kms = regset->dpu_kms; in _dpu_debugfs_show_regset32()
123 base = dpu_kms->mmio + regset->offset; in _dpu_debugfs_show_regset32()
126 if (regset->offset & 0xF) { in _dpu_debugfs_show_regset32()
127 seq_printf(s, "[%x]", regset->offset & ~0xF); in _dpu_debugfs_show_regset32()
128 for (i = 0; i < (regset->offset & 0xF); i += 4) in _dpu_debugfs_show_regset32()
135 for (i = 0; i < regset->blk_len; i += 4) { in _dpu_debugfs_show_regset32()
136 addr = regset->offset + i; in _dpu_debugfs_show_regset32()
160 void dpu_debugfs_setup_regset32(struct dpu_debugfs_regset32 *regset, in dpu_debugfs_setup_regset32() argument
163 if (regset) { in dpu_debugfs_setup_regset32()
[all …]
/kernel/linux/linux-5.10/arch/sparc/kernel/
Dptrace_32.c85 const struct user_regset *regset, in genregs32_get() argument
108 const struct user_regset *regset, in genregs32_set() argument
167 const struct user_regset *regset, in fpregs32_get() argument
183 const struct user_regset *regset, in fpregs32_set() argument
245 const struct user_regset *regset, in getregs_get() argument
261 const struct user_regset *regset, in setregs_set() argument
288 const struct user_regset *regset, in getfpregs_get() argument
301 const struct user_regset *regset, in setfpregs_set() argument
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/hpre/
Dhpre_main.c616 struct debugfs_regset32 *regset; in hpre_pf_comm_regs_debugfs_init() local
618 regset = devm_kzalloc(dev, sizeof(*regset), GFP_KERNEL); in hpre_pf_comm_regs_debugfs_init()
619 if (!regset) in hpre_pf_comm_regs_debugfs_init()
622 regset->regs = hpre_com_dfx_regs; in hpre_pf_comm_regs_debugfs_init()
623 regset->nregs = ARRAY_SIZE(hpre_com_dfx_regs); in hpre_pf_comm_regs_debugfs_init()
624 regset->base = qm->io_base; in hpre_pf_comm_regs_debugfs_init()
626 debugfs_create_regset32("regs", 0444, qm->debug.debug_root, regset); in hpre_pf_comm_regs_debugfs_init()
634 struct debugfs_regset32 *regset; in hpre_cluster_debugfs_init() local
644 regset = devm_kzalloc(dev, sizeof(*regset), GFP_KERNEL); in hpre_cluster_debugfs_init()
645 if (!regset) in hpre_cluster_debugfs_init()
[all …]
/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-xlp.c99 u32 pos, regset; in xlp_gpio_get_reg() local
102 regset = (gpio / XLP_GPIO_REGSZ) * 4; in xlp_gpio_get_reg()
103 return !!(readl(addr + regset) & BIT(pos)); in xlp_gpio_get_reg()
108 u32 value, pos, regset; in xlp_gpio_set_reg() local
111 regset = (gpio / XLP_GPIO_REGSZ) * 4; in xlp_gpio_set_reg()
112 value = readl(addr + regset); in xlp_gpio_set_reg()
119 writel(value, addr + regset); in xlp_gpio_set_reg()

1234