/Linux-v5.4/include/linux/ |
D | regset.h | 37 const struct user_regset *regset); 56 const struct user_regset *regset, 77 const struct user_regset *regset, 103 const struct user_regset *regset, 126 const struct user_regset *regset); 371 const struct user_regset *regset = &view->regsets[setno]; in copy_regset_to_user() local 373 if (!regset->get) in copy_regset_to_user() 379 return regset->get(target, regset, offset, size, NULL, data); in copy_regset_to_user() 397 const struct user_regset *regset = &view->regsets[setno]; in copy_regset_from_user() local 399 if (!regset->set) in copy_regset_from_user() [all …]
|
/Linux-v5.4/drivers/crypto/ccree/ |
D | cc_debugfs.c | 71 struct debugfs_regset32 *regset, *verset; in cc_debugfs_init() local 77 regset = devm_kzalloc(dev, sizeof(*regset), GFP_KERNEL); in cc_debugfs_init() 78 if (!regset) in cc_debugfs_init() 81 regset->regs = debug_regs; in cc_debugfs_init() 82 regset->nregs = ARRAY_SIZE(debug_regs); in cc_debugfs_init() 83 regset->base = drvdata->cc_base; in cc_debugfs_init() 87 debugfs_create_regset32("regs", 0400, ctx->dir, regset); in cc_debugfs_init()
|
/Linux-v5.4/arch/powerpc/kernel/ |
D | ptrace.c | 337 static int gpr_get(struct task_struct *target, const struct user_regset *regset, in gpr_get() argument 378 static int gpr_set(struct task_struct *target, const struct user_regset *regset, in gpr_set() argument 445 static int fpr_get(struct task_struct *target, const struct user_regset *regset, in fpr_get() argument 484 static int fpr_set(struct task_struct *target, const struct user_regset *regset, in fpr_set() argument 533 const struct user_regset *regset) in vr_active() argument 536 return target->thread.used_vr ? regset->n : 0; in vr_active() 553 static int vr_get(struct task_struct *target, const struct user_regset *regset, in vr_get() argument 603 static int vr_set(struct task_struct *target, const struct user_regset *regset, in vr_set() argument 650 const struct user_regset *regset) in vsr_active() argument 653 return target->thread.used_vsr ? regset->n : 0; in vsr_active() [all …]
|
/Linux-v5.4/arch/arm64/kernel/ |
D | ptrace.c | 477 const struct user_regset *regset, in hw_break_get() argument 481 unsigned int note_type = regset->core_note_type; in hw_break_get() 505 limit = regset->n * regset->size; in hw_break_get() 538 const struct user_regset *regset, in hw_break_set() argument 542 unsigned int note_type = regset->core_note_type; in hw_break_set() 554 limit = regset->n * regset->size; in hw_break_set() 592 const struct user_regset *regset, in gpr_get() argument 600 static int gpr_set(struct task_struct *target, const struct user_regset *regset, in gpr_set() argument 622 const struct user_regset *regset, in __fpr_get() argument 636 static int fpr_get(struct task_struct *target, const struct user_regset *regset, in fpr_get() argument [all …]
|
/Linux-v5.4/arch/x86/kernel/fpu/ |
D | regset.c | 16 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 45 int xfpregs_set(struct task_struct *target, const struct user_regset *regset, in xfpregs_set() argument 76 int xstateregs_get(struct task_struct *target, const struct user_regset *regset, in xstateregs_get() argument 113 int xstateregs_set(struct task_struct *target, const struct user_regset *regset, in xstateregs_set() argument 295 int fpregs_get(struct task_struct *target, const struct user_regset *regset, in fpregs_get() argument 305 return fpregs_soft_get(target, regset, pos, count, kbuf, ubuf); in fpregs_get() [all …]
|
/Linux-v5.4/drivers/thermal/broadcom/ |
D | bcm2835_thermal.c | 123 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()
|
/Linux-v5.4/drivers/usb/host/ |
D | xhci-debugfs.c | 88 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(®set->list); in xhci_debugfs_alloc_regset() 99 list_add_tail(®set->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(®set->list); in xhci_debugfs_free_regset() 110 kfree(regset); in xhci_debugfs_free_regset() [all …]
|
/Linux-v5.4/drivers/gpu/drm/vc4/ |
D | vc4_debugfs.c | 46 struct debugfs_regset32 *regset = node->info_ent->data; in vc4_debugfs_regset32() local 49 drm_print_regset32(&p, regset); in vc4_debugfs_regset32() 85 struct debugfs_regset32 *regset) in vc4_debugfs_add_regset32() argument 87 vc4_debugfs_add_file(drm, name, vc4_debugfs_regset32, regset); in vc4_debugfs_add_regset32()
|
D | vc4_dpi.c | 94 struct debugfs_regset32 regset; member 282 dpi->regset.base = dpi->regs; in vc4_dpi_bind() 283 dpi->regset.regs = dpi_regs; in vc4_dpi_bind() 284 dpi->regset.nregs = ARRAY_SIZE(dpi_regs); in vc4_dpi_bind() 323 vc4_debugfs_add_regset32(drm, "dpi_regs", &dpi->regset); in vc4_dpi_bind()
|
D | vc4_hvs.c | 70 drm_print_regset32(&p, &vc4->hvs->regset); in vc4_hvs_dump_state() 237 hvs->regset.base = hvs->regs; in vc4_hvs_bind() 238 hvs->regset.regs = hvs_regs; in vc4_hvs_bind() 239 hvs->regset.nregs = ARRAY_SIZE(hvs_regs); in vc4_hvs_bind() 305 vc4_debugfs_add_regset32(drm, "hvs_regs", &hvs->regset); in vc4_hvs_bind()
|
D | vc4_txp.c | 153 struct debugfs_regset32 regset; member 390 txp->regset.base = txp->regs; in vc4_txp_bind() 391 txp->regset.regs = txp_regs; in vc4_txp_bind() 392 txp->regset.nregs = ARRAY_SIZE(txp_regs); in vc4_txp_bind() 411 vc4_debugfs_add_regset32(drm, "txp_regs", &txp->regset); in vc4_txp_bind()
|
/Linux-v5.4/drivers/video/fbdev/core/ |
D | svgalib.c | 23 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 …]
|
/Linux-v5.4/arch/mips/kernel/ |
D | ptrace.c | 213 const struct user_regset *regset, in gpr32_get() argument 226 const struct user_regset *regset, in gpr32_set() argument 280 const struct user_regset *regset, in gpr64_get() argument 293 const struct user_regset *regset, in gpr64_set() argument 454 const struct user_regset *regset, in fpr_get() argument 536 const struct user_regset *regset, in fpr_set() argument 579 const struct user_regset *regset, in fp_mode_get() argument 600 const struct user_regset *regset, in fp_mode_set() argument 635 const struct user_regset *regset, in copy_pad_fprs() argument 644 cp_sz = min(regset->size, live_sz); in copy_pad_fprs() [all …]
|
/Linux-v5.4/drivers/gpu/drm/ |
D | drm_print.c | 274 void drm_print_regset32(struct drm_printer *p, struct debugfs_regset32 *regset) in drm_print_regset32() argument 279 for (i = 0; i < regset->nregs; i++) in drm_print_regset32() 280 namelen = max(namelen, (int)strlen(regset->regs[i].name)); in drm_print_regset32() 282 for (i = 0; i < regset->nregs; i++) { in drm_print_regset32() 284 namelen, regset->regs[i].name, in drm_print_regset32() 285 readl(regset->base + regset->regs[i].offset)); in drm_print_regset32()
|
/Linux-v5.4/drivers/media/platform/sti/c8sectpfe/ |
D | c8sectpfe-debugfs.c | 237 fei->regset = devm_kzalloc(fei->dev, sizeof(*fei->regset), GFP_KERNEL); in c8sectpfe_debugfs_init() 238 if (!fei->regset) in c8sectpfe_debugfs_init() 241 fei->regset->regs = fei_sys_regs; in c8sectpfe_debugfs_init() 242 fei->regset->nregs = ARRAY_SIZE(fei_sys_regs); in c8sectpfe_debugfs_init() 243 fei->regset->base = fei->io; in c8sectpfe_debugfs_init() 246 fei->regset); in c8sectpfe_debugfs_init()
|
/Linux-v5.4/arch/sh/kernel/ |
D | ptrace_32.c | 137 const struct user_regset *regset, in genregs_get() argument 161 const struct user_regset *regset, in genregs_set() argument 185 const struct user_regset *regset, in fpregs_get() argument 204 const struct user_regset *regset, in fpregs_set() argument 225 const struct user_regset *regset) in fpregs_active() argument 227 return tsk_used_math(target) ? regset->n : 0; in fpregs_active() 233 const struct user_regset *regset, in dspregs_get() argument 251 const struct user_regset *regset, in dspregs_set() argument 269 const struct user_regset *regset) in dspregs_active() argument 273 return regs->sr & SR_DSP ? regset->n : 0; in dspregs_active()
|
D | ptrace_64.c | 147 const struct user_regset *regset, in genregs_get() argument 180 const struct user_regset *regset, in genregs_set() argument 215 const struct user_regset *regset, in fpregs_get() argument 230 const struct user_regset *regset, in fpregs_set() argument 247 const struct user_regset *regset) in fpregs_active() argument 249 return tsk_used_math(target) ? regset->n : 0; in fpregs_active()
|
/Linux-v5.4/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_kms.c | 145 struct dpu_debugfs_regset32 *regset = s->private; in _dpu_debugfs_show_regset32() local 146 struct dpu_kms *dpu_kms = regset->dpu_kms; in _dpu_debugfs_show_regset32() 163 base = dpu_kms->mmio + regset->offset; in _dpu_debugfs_show_regset32() 166 if (regset->offset & 0xF) { in _dpu_debugfs_show_regset32() 167 seq_printf(s, "[%x]", regset->offset & ~0xF); in _dpu_debugfs_show_regset32() 168 for (i = 0; i < (regset->offset & 0xF); i += 4) in _dpu_debugfs_show_regset32() 175 for (i = 0; i < regset->blk_len; i += 4) { in _dpu_debugfs_show_regset32() 176 addr = regset->offset + i; in _dpu_debugfs_show_regset32() 200 void dpu_debugfs_setup_regset32(struct dpu_debugfs_regset32 *regset, in dpu_debugfs_setup_regset32() argument 203 if (regset) { in dpu_debugfs_setup_regset32() [all …]
|
/Linux-v5.4/arch/s390/kernel/ |
D | ptrace.c | 893 const struct user_regset *regset, in s390_regs_get() argument 920 const struct user_regset *regset, in s390_regs_set() argument 956 const struct user_regset *regset, unsigned int pos, in s390_fpregs_get() argument 972 const struct user_regset *regset, unsigned int pos, in s390_fpregs_set() argument 1014 const struct user_regset *regset, in s390_last_break_get() argument 1032 const struct user_regset *regset, in s390_last_break_set() argument 1040 const struct user_regset *regset, in s390_tdb_get() argument 1054 const struct user_regset *regset, in s390_tdb_set() argument 1062 const struct user_regset *regset, in s390_vxrs_low_get() argument 1079 const struct user_regset *regset, in s390_vxrs_low_set() argument [all …]
|
/Linux-v5.4/arch/riscv/kernel/ |
D | ptrace.c | 32 const struct user_regset *regset, in riscv_gpr_get() argument 43 const struct user_regset *regset, in riscv_gpr_set() argument 57 const struct user_regset *regset, in riscv_fpr_get() argument 76 const struct user_regset *regset, in riscv_fpr_set() argument
|
/Linux-v5.4/drivers/gpio/ |
D | gpio-xlp.c | 99 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()
|
/Linux-v5.4/drivers/usb/mtu3/ |
D | mtu3_debugfs.c | 127 struct debugfs_regset32 *regset; in mtu3_debugfs_regset() local 130 mregs = devm_kzalloc(mtu->dev, sizeof(*regset), GFP_KERNEL); in mtu3_debugfs_regset() 135 regset = &mregs->regset; in mtu3_debugfs_regset() 136 regset->regs = regs; in mtu3_debugfs_regset() 137 regset->nregs = nregs; in mtu3_debugfs_regset() 138 regset->base = base; in mtu3_debugfs_regset() 140 debugfs_create_regset32(mregs->name, 0444, parent, regset); in mtu3_debugfs_regset()
|
/Linux-v5.4/arch/nds32/kernel/ |
D | ptrace.c | 15 const struct user_regset *regset, in gpr_get() argument 23 static int gpr_set(struct task_struct *target, const struct user_regset *regset, in gpr_set() argument
|
/Linux-v5.4/arch/csky/kernel/ |
D | ptrace.c | 73 const struct user_regset *regset, in gpr_get() argument 88 const struct user_regset *regset, in gpr_set() argument 111 const struct user_regset *regset, in fpr_get() argument 136 const struct user_regset *regset, in fpr_set() argument
|
/Linux-v5.4/kernel/ |
D | ptrace.c | 862 const struct user_regset *regset; in find_regset() local 866 regset = view->regsets + n; in find_regset() 867 if (regset->core_note_type == type) in find_regset() 868 return regset; in find_regset() 878 const struct user_regset *regset = find_regset(view, type); in ptrace_regset() local 881 if (!regset || (kiov->iov_len % regset->size) != 0) in ptrace_regset() 884 regset_no = regset - view->regsets; in ptrace_regset() 886 (__kernel_size_t) (regset->n * regset->size)); in ptrace_regset()
|