| /linux/arch/powerpc/kernel/ptrace/ |
| H A D | ptrace-decl.h | 73 int fpr_set(struct task_struct *target, const struct user_regset *regset, 79 int vsr_active(struct task_struct *target, const struct user_regset *regset); 81 int vsr_set(struct task_struct *target, const struct user_regset *regset, 87 int vr_active(struct task_struct *target, const struct user_regset *regset); 89 int vr_set(struct task_struct *target, const struct user_regset *regset, 95 int evr_active(struct task_struct *target, const struct user_regset *regset); 97 int evr_set(struct task_struct *target, const struct user_regset *regset, 104 const struct user_regset *regset, 108 const struct user_regset *regset, 121 int tm_cgpr_active(struct task_struct *target, const struct user_regset *regset); [all …]
|
| H A D | ptrace-tm.c | 58 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 134 int tm_cgpr_set(struct task_struct *target, const struct user_regset *regset, in tm_cgpr_set() argument 200 int tm_cfpr_active(struct task_struct *target, const struct user_regset *regset) in tm_cfpr_active() argument 208 return regset->n; in tm_cfpr_active() 229 int tm_cfpr_get(struct task_struct *target, const struct user_regset *regset, in tm_cfpr_get() argument 273 int tm_cfpr_set(struct task_struct *target, const struct user_regset *regset, in tm_cfpr_set() argument 312 int tm_cvmx_active(struct task_struct *target, const struct user_regset *regset) in tm_cvmx_active() argument 320 return regset->n; in tm_cvmx_active() [all …]
|
| H A D | ptrace-view.c | 218 static int gpr_get(struct task_struct *target, const struct user_regset *regset, in gpr_get() argument 238 static int gpr_set(struct task_struct *target, const struct user_regset *regset, in gpr_set() argument 290 static int ppr_get(struct task_struct *target, const struct user_regset *regset, in ppr_get() argument 299 static int ppr_set(struct task_struct *target, const struct user_regset *regset, in ppr_set() argument 310 static int dscr_get(struct task_struct *target, const struct user_regset *regset, in dscr_get() argument 315 static int dscr_set(struct task_struct *target, const struct user_regset *regset, in dscr_set() argument 324 static int tar_get(struct task_struct *target, const struct user_regset *regset, in tar_get() argument 329 static int tar_set(struct task_struct *target, const struct user_regset *regset, in tar_set() argument 337 static int ebb_active(struct task_struct *target, const struct user_regset *regset) in ebb_active() argument 343 return regset->n; in ebb_active() [all …]
|
| H A D | ptrace-vsx.c | 21 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
|
| H A D | ptrace-spe.c | 19 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
|
| H A D | ptrace-altivec.c | 23 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
|
| H A D | ptrace-novsx.c | 21 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
|
| /linux/kernel/ |
| H A D | regset.c | 4 #include <linux/regset.h> 7 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 43 regset_get_alloc(struct task_struct * target,const struct user_regset * regset,unsigned int size,void ** data) regset_get_alloc() argument 67 const struct user_regset *regset = &view->regsets[setno]; copy_regset_to_user() local [all...] |
| /linux/drivers/crypto/ccree/ |
| H A D | cc_debugfs.c | 66 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()
|
| /linux/drivers/gpu/drm/i915/gt/uc/ |
| H A D | intel_guc_ads.c | 68 struct guc_mmio_reg regset[]; member 112 return offsetof(struct __guc_ads_blob, regset); in guc_ads_regset_offset() 274 __mmio_reg_add(struct temp_regset *regset, struct guc_mmio_reg *reg) in __mmio_reg_add() argument 276 u32 pos = regset->storage_used; in __mmio_reg_add() 279 if (pos >= regset->storage_max) { in __mmio_reg_add() 281 struct guc_mmio_reg *r = krealloc(regset->storage, in __mmio_reg_add() 289 regset->registers = r + (regset->registers - regset->storage); in __mmio_reg_add() 290 regset->storage = r; in __mmio_reg_add() 291 regset->storage_max = size / sizeof(*slot); in __mmio_reg_add() 294 slot = ®set->storage[pos]; in __mmio_reg_add() [all …]
|
| /linux/include/linux/ |
| H A D | regset.h | 95 const struct user_regset *regset); 98 const struct user_regset *regset, 118 const struct user_regset *regset, 144 const struct user_regset *regset, 311 const struct user_regset *regset, 315 const struct user_regset *regset, 339 const struct user_regset *regset = &view->regsets[setno]; in copy_regset_from_user() local 341 if (!regset->set) in copy_regset_from_user() 347 return regset->set(target, regset, offset, size, NULL, data); in copy_regset_from_user()
|
| /linux/arch/x86/um/ |
| H A D | ptrace.c | 114 const struct user_regset *regset, in fpregs_legacy_get() argument 148 const struct user_regset *regset, in fpregs_legacy_set() argument 169 const struct user_regset *regset, in genregs_get() argument 180 const struct user_regset *regset, in genregs_set() argument 211 static int generic_fpregs_active(struct task_struct *target, const struct user_regset *regset) in generic_fpregs_active() argument 213 return regset->n; in generic_fpregs_active() 217 const struct user_regset *regset, in generic_fpregs_get() argument 222 membuf_write(&to, fpregs, regset->size * regset->n); in generic_fpregs_get() 227 const struct user_regset *regset, in generic_fpregs_set() argument 234 fpregs, 0, regset->size * regset->n); in generic_fpregs_set()
|
| /linux/arch/loongarch/kernel/ |
| H A D | ptrace.c | 76 const struct user_regset *regset, in gpr_get() argument 91 const struct user_regset *regset, in gpr_set() argument 146 const struct user_regset *regset, in fpr_get() argument 198 const struct user_regset *regset, in fpr_set() argument 230 const struct user_regset *regset, in cfg_get() argument 249 const struct user_regset *regset, in cfg_set() argument 259 const struct user_regset *regset, in copy_pad_fprs() argument 266 cp_sz = min(regset->size, live_sz); in copy_pad_fprs() 267 pad_sz = regset->size - cp_sz; in copy_pad_fprs() 279 const struct user_regset *regset, in simd_get() argument [all …]
|
| /linux/drivers/thermal/broadcom/ |
| H A 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/arch/riscv/kernel/ |
| H A D | ptrace.c | 37 const struct user_regset *regset, in riscv_gpr_get() argument 45 const struct user_regset *regset, in riscv_gpr_set() argument 57 const struct user_regset *regset, in riscv_fpr_get() argument 71 const struct user_regset *regset, in riscv_fpr_set() argument 92 const struct user_regset *regset, in riscv_vr_get() argument 125 const struct user_regset *regset, in riscv_vr_set() argument 157 static int riscv_vr_active(struct task_struct *target, const struct user_regset *regset) in riscv_vr_active() argument 165 return regset->n; in riscv_vr_active() 171 const struct user_regset *regset, in tagged_addr_ctrl_get() argument 183 const struct user_regset *regset, in tagged_addr_ctrl_set() argument [all …]
|
| /linux/drivers/video/fbdev/core/ |
| H A D | svgalib.c | 24 void svga_wcrt_multi(void __iomem *regbase, const struct vga_regset *regset, u32 value) in svga_wcrt_multi() argument 28 while (regset->regnum != VGA_REGSET_END_VAL) { in svga_wcrt_multi() 29 regval = vga_rcrt(regbase, regset->regnum); in svga_wcrt_multi() 30 bitnum = regset->lowbit; in svga_wcrt_multi() 31 while (bitnum <= regset->highbit) { in svga_wcrt_multi() 39 vga_wcrt(regbase, regset->regnum, regval); in svga_wcrt_multi() 40 regset++; in svga_wcrt_multi() 45 void svga_wseq_multi(void __iomem *regbase, const struct vga_regset *regset, u32 value) in svga_wseq_multi() argument 49 while (regset->regnum != VGA_REGSET_END_VAL) { in svga_wseq_multi() 50 regval = vga_rseq(regbase, regset->regnum); in svga_wseq_multi() [all …]
|
| /linux/arch/mips/kernel/ |
| H A D | ptrace.c | 218 const struct user_regset *regset, in gpr32_get() argument 229 const struct user_regset *regset, in gpr32_set() argument 283 const struct user_regset *regset, in gpr64_get() argument 294 const struct user_regset *regset, in gpr64_set() argument 441 const struct user_regset *regset, in fpr_get() argument 508 const struct user_regset *regset, in fpr_set() argument 552 const struct user_regset *regset, in fp_mode_get() argument 568 const struct user_regset *regset, in fp_mode_set() argument 603 const struct user_regset *regset, in copy_pad_fprs() argument 611 cp_sz = min(regset->size, live_sz); in copy_pad_fprs() [all …]
|
| /linux/arch/sh/kernel/ |
| H A D | ptrace_32.c | 135 const struct user_regset *regset, in genregs_get() argument 144 const struct user_regset *regset, in genregs_set() argument 168 const struct user_regset *regset, in fpregs_get() argument 182 const struct user_regset *regset, in fpregs_set() argument 203 const struct user_regset *regset) in fpregs_active() argument 205 return tsk_used_math(target) ? regset->n : 0; in fpregs_active() 211 const struct user_regset *regset, in dspregs_get() argument 221 const struct user_regset *regset, in dspregs_set() argument 239 const struct user_regset *regset) in dspregs_active() argument 243 return regs->sr & SR_DSP ? regset->n : 0; in dspregs_active()
|
| /linux/drivers/usb/host/ |
| H A 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/drivers/gpio/ |
| H A D | gpio-xlp.c | 70 u32 pos, regset; in xlp_gpio_get_reg() local 73 regset = (gpio / XLP_GPIO_REGSZ) * 4; in xlp_gpio_get_reg() 74 return !!(readl(addr + regset) & BIT(pos)); in xlp_gpio_get_reg() 79 u32 value, pos, regset; in xlp_gpio_set_reg() local 82 regset = (gpio / XLP_GPIO_REGSZ) * 4; in xlp_gpio_set_reg() 83 value = readl(addr + regset); in xlp_gpio_set_reg() 90 writel(value, addr + regset); in xlp_gpio_set_reg()
|
| /linux/arch/sparc/kernel/ |
| H A D | ptrace_32.c | 84 const struct user_regset *regset, in genregs32_get() argument 107 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
|
| H A D | ptrace_64.c | 247 const struct user_regset *regset, in genregs64_get() argument 268 const struct user_regset *regset, in genregs64_set() argument 342 const struct user_regset *regset, in fpregs64_get() argument 372 const struct user_regset *regset, in fpregs64_set() argument 443 const struct user_regset *regset, in getregs64_get() argument 458 const struct user_regset *regset, in setregs64_set() argument 533 const struct user_regset *regset, in genregs32_get() argument 559 const struct user_regset *regset, in genregs32_set() argument 677 const struct user_regset *regset, in fpregs32_get() argument 699 const struct user_regset *regset, in fpregs32_set() argument [all …]
|
| /linux/arch/openrisc/kernel/ |
| H A D | ptrace.c | 49 const struct user_regset *regset, in genregs_get() argument 65 const struct user_regset *regset, in genregs_set() argument 98 const struct user_regset *regset, in fpregs_get() argument 105 const struct user_regset *regset, in fpregs_set() argument
|
| /linux/drivers/watchdog/ |
| H A D | dw_wdt.c | 521 struct debugfs_regset32 *regset; in dw_wdt_dbgfs_init() local 523 regset = devm_kzalloc(dev, sizeof(*regset), GFP_KERNEL); in dw_wdt_dbgfs_init() 524 if (!regset) in dw_wdt_dbgfs_init() 527 regset->regs = dw_wdt_dbgfs_regs; in dw_wdt_dbgfs_init() 528 regset->nregs = ARRAY_SIZE(dw_wdt_dbgfs_regs); in dw_wdt_dbgfs_init() 529 regset->base = dw_wdt->regs; in dw_wdt_dbgfs_init() 533 debugfs_create_regset32("registers", 0444, dw_wdt->dbgfs_dir, regset); in dw_wdt_dbgfs_init()
|
| /linux/drivers/dma/ |
| H A D | hisi_dma.c | 915 struct debugfs_regset32 *regset; in hisi_dma_create_debugfs() local 924 regset = devm_kzalloc(dev, sizeof(*regset), GFP_KERNEL); in hisi_dma_create_debugfs() 925 if (!regset) in hisi_dma_create_debugfs() 929 regset->regs = hisi_dma_hip08_comm_regs; in hisi_dma_create_debugfs() 930 regset->nregs = ARRAY_SIZE(hisi_dma_hip08_comm_regs); in hisi_dma_create_debugfs() 932 regset->regs = hisi_dma_hip09_comm_regs; in hisi_dma_create_debugfs() 933 regset->nregs = ARRAY_SIZE(hisi_dma_hip09_comm_regs); in hisi_dma_create_debugfs() 935 regset->base = hdma_dev->base; in hisi_dma_create_debugfs() 936 regset->dev = dev; in hisi_dma_create_debugfs() 939 hdma_dev->dma_dev.dbg_dev_root, regset); in hisi_dma_create_debugfs()
|