Home
last modified time | relevance | path

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

12

/drivers/gpu/drm/i915/gt/uc/
Dintel_guc_ads.c64 struct guc_mmio_reg regset[]; member
103 return offsetof(struct __guc_ads_blob, regset); in guc_ads_regset_offset()
255 __mmio_reg_add(struct temp_regset *regset, struct guc_mmio_reg *reg) in __mmio_reg_add() argument
257 u32 pos = regset->storage_used; in __mmio_reg_add()
260 if (pos >= regset->storage_max) { in __mmio_reg_add()
262 struct guc_mmio_reg *r = krealloc(regset->storage, in __mmio_reg_add()
270 regset->registers = r + (regset->registers - regset->storage); in __mmio_reg_add()
271 regset->storage = r; in __mmio_reg_add()
272 regset->storage_max = size / sizeof(*slot); in __mmio_reg_add()
275 slot = &regset->storage[pos]; in __mmio_reg_add()
[all …]
/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()
/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()
/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 …]
/drivers/video/fbdev/core/
Dsvgalib.c24 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()
38 vga_wcrt(regbase, regset->regnum, regval); in svga_wcrt_multi()
39 regset ++; in svga_wcrt_multi()
44 void svga_wseq_multi(void __iomem *regbase, const struct vga_regset *regset, u32 value) in svga_wseq_multi() argument
48 while (regset->regnum != VGA_REGSET_END_VAL) { in svga_wseq_multi()
49 regval = vga_rseq(regbase, regset->regnum); in svga_wseq_multi()
[all …]
/drivers/gpu/drm/vc4/
Dvc4_debugfs.c39 struct debugfs_regset32 *regset = entry->file.data; in vc4_debugfs_regset32() local
46 drm_print_regset32(&p, regset); in vc4_debugfs_regset32()
55 struct debugfs_regset32 *regset) in vc4_debugfs_add_regset32() argument
57 drm_debugfs_add_file(drm, name, vc4_debugfs_regset32, regset); in vc4_debugfs_add_regset32()
Dvc4_dpi.c97 struct debugfs_regset32 regset; member
268 vc4_debugfs_add_regset32(drm, "dpi_regs", &dpi->regset); in vc4_dpi_late_register()
328 dpi->regset.base = dpi->regs; in vc4_dpi_bind()
329 dpi->regset.regs = dpi_regs; in vc4_dpi_bind()
330 dpi->regset.nregs = ARRAY_SIZE(dpi_regs); in vc4_dpi_bind()
Dvc4_vec.c207 struct debugfs_regset32 regset; member
716 vc4_debugfs_add_regset32(drm, "vec_regs", &vec->regset); in vc4_vec_late_register()
772 vec->regset.base = vec->regs; in vc4_vec_bind()
773 vec->regset.regs = vec_regs; in vc4_vec_bind()
774 vec->regset.nregs = ARRAY_SIZE(vec_regs); in vc4_vec_bind()
Dvc4_v3d.c413 vc4_debugfs_add_regset32(drm, "v3d_regs", &v3d->regset); in vc4_v3d_debugfs_init()
437 v3d->regset.base = v3d->regs; in vc4_v3d_bind()
438 v3d->regset.regs = v3d_regs; in vc4_v3d_bind()
439 v3d->regset.nregs = ARRAY_SIZE(v3d_regs); in vc4_v3d_bind()
/drivers/clk/starfive/
Dclk-starfive-jh71x0.c210 struct debugfs_regset32 *regset; in jh71x0_clk_debug_init() local
212 regset = devm_kzalloc(priv->dev, sizeof(*regset), GFP_KERNEL); in jh71x0_clk_debug_init()
213 if (!regset) in jh71x0_clk_debug_init()
216 regset->regs = &jh71x0_clk_reg; in jh71x0_clk_debug_init()
217 regset->nregs = 1; in jh71x0_clk_debug_init()
218 regset->base = priv->base + 4 * clk->idx; in jh71x0_clk_debug_init()
220 debugfs_create_regset32("registers", 0400, dentry, regset); in jh71x0_clk_debug_init()
/drivers/media/platform/st/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()
/drivers/gpu/drm/
Ddrm_print.c354 void drm_print_regset32(struct drm_printer *p, struct debugfs_regset32 *regset) in drm_print_regset32() argument
359 for (i = 0; i < regset->nregs; i++) in drm_print_regset32()
360 namelen = max(namelen, (int)strlen(regset->regs[i].name)); in drm_print_regset32()
362 for (i = 0; i < regset->nregs; i++) { in drm_print_regset32()
364 namelen, regset->regs[i].name, in drm_print_regset32()
365 readl(regset->base + regset->regs[i].offset)); in drm_print_regset32()
/drivers/gpio/
Dgpio-xlp.c70 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()
/drivers/crypto/hisilicon/hpre/
Dhpre_main.c982 struct debugfs_regset32 *regset; in hpre_pf_comm_regs_debugfs_init() local
984 regset = devm_kzalloc(dev, sizeof(*regset), GFP_KERNEL); in hpre_pf_comm_regs_debugfs_init()
985 if (!regset) in hpre_pf_comm_regs_debugfs_init()
988 regset->regs = hpre_com_dfx_regs; in hpre_pf_comm_regs_debugfs_init()
989 regset->nregs = ARRAY_SIZE(hpre_com_dfx_regs); in hpre_pf_comm_regs_debugfs_init()
990 regset->base = qm->io_base; in hpre_pf_comm_regs_debugfs_init()
991 regset->dev = dev; in hpre_pf_comm_regs_debugfs_init()
994 regset, &hpre_com_regs_fops); in hpre_pf_comm_regs_debugfs_init()
1003 struct debugfs_regset32 *regset; in hpre_cluster_debugfs_init() local
1015 regset = devm_kzalloc(dev, sizeof(*regset), GFP_KERNEL); in hpre_cluster_debugfs_init()
[all …]
/drivers/watchdog/
Ddw_wdt.c521 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()
/drivers/crypto/hisilicon/
Ddebugfs.c556 void hisi_qm_regs_dump(struct seq_file *s, struct debugfs_regset32 *regset) in hisi_qm_regs_dump() argument
558 struct pci_dev *pdev = to_pci_dev(regset->dev); in hisi_qm_regs_dump()
560 const struct debugfs_reg32 *regs = regset->regs; in hisi_qm_regs_dump()
561 int regs_len = regset->nregs; in hisi_qm_regs_dump()
570 val = readl(regset->base + regs[i].offset); in hisi_qm_regs_dump()
581 struct debugfs_regset32 regset; in qm_regs_show() local
584 regset.regs = qm_dfx_regs; in qm_regs_show()
585 regset.nregs = ARRAY_SIZE(qm_dfx_regs); in qm_regs_show()
587 regset.regs = qm_vf_dfx_regs; in qm_regs_show()
588 regset.nregs = ARRAY_SIZE(qm_vf_dfx_regs); in qm_regs_show()
[all …]
/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_kms.c200 struct dpu_debugfs_regset32 *regset = s->private; in dpu_regset32_show() local
201 struct dpu_kms *dpu_kms = regset->dpu_kms; in dpu_regset32_show()
208 base = dpu_kms->mmio + regset->offset; in dpu_regset32_show()
211 if (regset->offset & 0xF) { in dpu_regset32_show()
212 seq_printf(s, "[%x]", regset->offset & ~0xF); in dpu_regset32_show()
213 for (i = 0; i < (regset->offset & 0xF); i += 4) in dpu_regset32_show()
220 for (i = 0; i < regset->blk_len; i += 4) { in dpu_regset32_show()
221 addr = regset->offset + i; in dpu_regset32_show()
237 struct dpu_debugfs_regset32 *regset; in dpu_debugfs_create_regset32() local
242 regset = devm_kzalloc(&dpu_kms->pdev->dev, sizeof(*regset), GFP_KERNEL); in dpu_debugfs_create_regset32()
[all …]
/drivers/dma/
Dhisi_dma.c915 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()
/drivers/usb/mtu3/
Dmtu3_debugfs.c128 struct debugfs_regset32 *regset; in mtu3_debugfs_regset() local
136 regset = &mregs->regset; in mtu3_debugfs_regset()
137 regset->regs = regs; in mtu3_debugfs_regset()
138 regset->nregs = nregs; in mtu3_debugfs_regset()
139 regset->base = base; in mtu3_debugfs_regset()
141 debugfs_create_regset32(mregs->name, 0444, parent, regset); in mtu3_debugfs_regset()
/drivers/clk/davinci/
Dpll.c980 struct debugfs_regset32 *regset; in davinci_pll_debug_init() local
982 regset = kzalloc(sizeof(*regset), GFP_KERNEL); in davinci_pll_debug_init()
983 if (!regset) in davinci_pll_debug_init()
986 regset->regs = davinci_pll_regs; in davinci_pll_debug_init()
987 regset->nregs = ARRAY_SIZE(davinci_pll_regs); in davinci_pll_debug_init()
988 regset->base = pll->base; in davinci_pll_debug_init()
990 debugfs_create_regset32("registers", 0400, dentry, regset); in davinci_pll_debug_init()
/drivers/thermal/mediatek/
Dlvts_thermal.c200 struct debugfs_regset32 *regset; in lvts_debugfs_init() local
219 regset = devm_kzalloc(dev, sizeof(*regset), GFP_KERNEL); in lvts_debugfs_init()
220 if (!regset) in lvts_debugfs_init()
223 regset->base = lvts_ctrl->base; in lvts_debugfs_init()
224 regset->regs = lvts_regs; in lvts_debugfs_init()
225 regset->nregs = ARRAY_SIZE(lvts_regs); in lvts_debugfs_init()
227 debugfs_create_regset32("registers", 0400, dentry, regset); in lvts_debugfs_init()
/drivers/spi/
Dspi-hisi-kunpeng.c139 struct debugfs_regset32 regset; member
173 hs->regset.regs = hisi_spi_regs; in hisi_spi_debugfs_init()
174 hs->regset.nregs = ARRAY_SIZE(hisi_spi_regs); in hisi_spi_debugfs_init()
175 hs->regset.base = hs->regs; in hisi_spi_debugfs_init()
176 debugfs_create_regset32("registers", 0400, hs->debugfs, &hs->regset); in hisi_spi_debugfs_init()
/drivers/usb/dwc3/
Ddebugfs.c1012 dwc->regset = kzalloc(sizeof(*dwc->regset), GFP_KERNEL); in dwc3_debugfs_init()
1013 if (!dwc->regset) in dwc3_debugfs_init()
1018 dwc->regset->regs = dwc3_regs; in dwc3_debugfs_init()
1019 dwc->regset->nregs = ARRAY_SIZE(dwc3_regs); in dwc3_debugfs_init()
1020 dwc->regset->base = dwc->regs - DWC3_GLOBALS_REGS_START; in dwc3_debugfs_init()
1021 dwc->regset->dev = dwc->dev; in dwc3_debugfs_init()
1025 debugfs_create_regset32("regdump", 0444, root, dwc->regset); in dwc3_debugfs_init()
1044 kfree(dwc->regset); in dwc3_debugfs_exit()
/drivers/usb/dwc2/
Ddebugfs.c788 hsotg->regset = devm_kzalloc(hsotg->dev, sizeof(*hsotg->regset), in dwc2_debugfs_init()
790 if (!hsotg->regset) { in dwc2_debugfs_init()
795 hsotg->regset->regs = dwc2_regs; in dwc2_debugfs_init()
796 hsotg->regset->nregs = ARRAY_SIZE(dwc2_regs); in dwc2_debugfs_init()
797 hsotg->regset->base = hsotg->regs; in dwc2_debugfs_init()
799 debugfs_create_regset32("regdump", 0444, root, hsotg->regset); in dwc2_debugfs_init()
/drivers/crypto/hisilicon/sec2/
Dsec_main.c842 struct debugfs_regset32 *regset; in sec_core_debug_init() local
848 regset = devm_kzalloc(dev, sizeof(*regset), GFP_KERNEL); in sec_core_debug_init()
849 if (!regset) in sec_core_debug_init()
852 regset->regs = sec_dfx_regs; in sec_core_debug_init()
853 regset->nregs = ARRAY_SIZE(sec_dfx_regs); in sec_core_debug_init()
854 regset->base = qm->io_base; in sec_core_debug_init()
855 regset->dev = dev; in sec_core_debug_init()
858 debugfs_create_file("regs", 0444, tmp_d, regset, &sec_regs_fops); in sec_core_debug_init()

12