/Linux-v6.6/arch/loongarch/power/ |
D | suspend.c | 28 static struct saved_registers saved_regs; variable 33 saved_regs.pgd = csr_read64(LOONGARCH_CSR_PGDL); in loongarch_common_suspend() 34 saved_regs.kpgd = csr_read64(LOONGARCH_CSR_PGDH); in loongarch_common_suspend() 35 saved_regs.pwctl0 = csr_read32(LOONGARCH_CSR_PWCTL0); in loongarch_common_suspend() 36 saved_regs.pwctl1 = csr_read32(LOONGARCH_CSR_PWCTL1); in loongarch_common_suspend() 37 saved_regs.ecfg = csr_read32(LOONGARCH_CSR_ECFG); in loongarch_common_suspend() 38 saved_regs.euen = csr_read32(LOONGARCH_CSR_EUEN); in loongarch_common_suspend() 52 csr_write64(saved_regs.pgd, LOONGARCH_CSR_PGDL); in loongarch_common_resume() 53 csr_write64(saved_regs.kpgd, LOONGARCH_CSR_PGDH); in loongarch_common_resume() 54 csr_write32(saved_regs.pwctl0, LOONGARCH_CSR_PWCTL0); in loongarch_common_resume() [all …]
|
D | hibernate_asm.S | 15 la.pcrel t0, saved_regs 49 la.pcrel t0, saved_regs
|
D | hibernate.c | 13 struct pt_regs saved_regs; variable
|
/Linux-v6.6/drivers/staging/media/atomisp/pci/ |
D | atomisp_v4l2.c | 371 pci_read_config_word(pdev, PCI_COMMAND, &isp->saved_regs.pcicmdsts); in atomisp_save_iunit_reg() 373 pci_read_config_dword(pdev, PCI_MSI_CAPID, &isp->saved_regs.msicap); in atomisp_save_iunit_reg() 374 pci_read_config_dword(pdev, PCI_MSI_ADDR, &isp->saved_regs.msi_addr); in atomisp_save_iunit_reg() 375 pci_read_config_word(pdev, PCI_MSI_DATA, &isp->saved_regs.msi_data); in atomisp_save_iunit_reg() 376 pci_read_config_byte(pdev, PCI_INTERRUPT_LINE, &isp->saved_regs.intr); in atomisp_save_iunit_reg() 377 pci_read_config_dword(pdev, PCI_INTERRUPT_CTRL, &isp->saved_regs.interrupt_control); in atomisp_save_iunit_reg() 379 pci_read_config_dword(pdev, MRFLD_PCI_PMCS, &isp->saved_regs.pmcs); in atomisp_save_iunit_reg() 381 pci_read_config_dword(pdev, PCI_I_CONTROL, &isp->saved_regs.i_control); in atomisp_save_iunit_reg() 382 isp->saved_regs.i_control |= in atomisp_save_iunit_reg() 386 &isp->saved_regs.csi_access_viol); in atomisp_save_iunit_reg() [all …]
|
D | atomisp_internal.h | 214 struct atomisp_regs saved_regs; member
|
/Linux-v6.6/drivers/net/can/mscan/ |
D | mpc5xxx_can.c | 371 static struct mscan_regs saved_regs; variable 378 _memcpy_fromio(&saved_regs, regs, sizeof(*regs)); in mpc5xxx_can_suspend() 393 regs->canctl1 = saved_regs.canctl1; in mpc5xxx_can_resume() 394 regs->canbtr0 = saved_regs.canbtr0; in mpc5xxx_can_resume() 395 regs->canbtr1 = saved_regs.canbtr1; in mpc5xxx_can_resume() 396 regs->canidac = saved_regs.canidac; in mpc5xxx_can_resume() 399 _memcpy_toio(®s->canidar1_0, (void *)&saved_regs.canidar1_0, in mpc5xxx_can_resume() 403 regs->cantbsel = saved_regs.cantbsel; in mpc5xxx_can_resume() 404 regs->canrier = saved_regs.canrier; in mpc5xxx_can_resume() 405 regs->cantier = saved_regs.cantier; in mpc5xxx_can_resume() [all …]
|
/Linux-v6.6/drivers/leds/ |
D | leds-cht-wcove.c | 73 struct cht_wc_led_saved_regs saved_regs; member 314 struct cht_wc_led_saved_regs *saved_regs) in cht_wc_led_save_regs() argument 318 ret = regmap_read(led->regmap, led->regs->ctrl, &saved_regs->ctrl); in cht_wc_led_save_regs() 322 ret = regmap_read(led->regmap, led->regs->fsm, &saved_regs->fsm); in cht_wc_led_save_regs() 326 return regmap_read(led->regmap, led->regs->pwm, &saved_regs->pwm); in cht_wc_led_save_regs() 330 const struct cht_wc_led_saved_regs *saved_regs) in cht_wc_led_restore_regs() argument 332 regmap_write(led->regmap, led->regs->ctrl, saved_regs->ctrl); in cht_wc_led_restore_regs() 333 regmap_write(led->regmap, led->regs->fsm, saved_regs->fsm); in cht_wc_led_restore_regs() 334 regmap_write(led->regmap, led->regs->pwm, saved_regs->pwm); in cht_wc_led_restore_regs() 439 ret = cht_wc_led_save_regs(&leds->leds[i], &leds->leds[i].saved_regs); in cht_wc_leds_suspend() [all …]
|
/Linux-v6.6/drivers/soc/fsl/qe/ |
D | gpio.c | 33 struct qe_pio_regs saved_regs; member 43 qe_gc->saved_regs.cpdata = qe_gc->cpdata; in qe_gpio_save_regs() 44 qe_gc->saved_regs.cpdir1 = ioread32be(®s->cpdir1); in qe_gpio_save_regs() 45 qe_gc->saved_regs.cpdir2 = ioread32be(®s->cpdir2); in qe_gpio_save_regs() 46 qe_gc->saved_regs.cppar1 = ioread32be(®s->cppar1); in qe_gpio_save_regs() 47 qe_gc->saved_regs.cppar2 = ioread32be(®s->cppar2); in qe_gpio_save_regs() 48 qe_gc->saved_regs.cpodr = ioread32be(®s->cpodr); in qe_gpio_save_regs() 239 struct qe_pio_regs *sregs = &qe_gc->saved_regs; in qe_pin_set_dedicated()
|
/Linux-v6.6/arch/powerpc/platforms/83xx/ |
D | suspend.c | 108 static struct mpc83xx_saved saved_regs; variable 161 out_be32(&syscr_regs->sicrl, saved_regs.sicrl); in mpc83xx_suspend_restore_regs() 162 out_be32(&syscr_regs->sicrh, saved_regs.sicrh); in mpc83xx_suspend_restore_regs() 163 out_be32(&clock_regs->sccr, saved_regs.sccr); in mpc83xx_suspend_restore_regs() 168 saved_regs.sicrl = in_be32(&syscr_regs->sicrl); in mpc83xx_suspend_save_regs() 169 saved_regs.sicrh = in_be32(&syscr_regs->sicrh); in mpc83xx_suspend_save_regs() 170 saved_regs.sccr = in_be32(&clock_regs->sccr); in mpc83xx_suspend_save_regs()
|
/Linux-v6.6/arch/powerpc/sysdev/ |
D | fsl_lbc.c | 366 ctrl->saved_regs = kmalloc(sizeof(struct fsl_lbc_regs), GFP_KERNEL); in fsl_lbc_syscore_suspend() 367 if (!ctrl->saved_regs) in fsl_lbc_syscore_suspend() 370 _memcpy_fromio(ctrl->saved_regs, lbc, sizeof(struct fsl_lbc_regs)); in fsl_lbc_syscore_suspend() 390 if (ctrl->saved_regs) { in fsl_lbc_syscore_resume() 391 _memcpy_toio(lbc, ctrl->saved_regs, in fsl_lbc_syscore_resume() 393 kfree(ctrl->saved_regs); in fsl_lbc_syscore_resume() 394 ctrl->saved_regs = NULL; in fsl_lbc_syscore_resume()
|
/Linux-v6.6/arch/mips/power/ |
D | hibernate_asm.S | 15 PTR_LA t0, saved_regs 45 PTR_LA t0, saved_regs
|
D | cpu.c | 14 struct pt_regs saved_regs; variable
|
/Linux-v6.6/drivers/pinctrl/starfive/ |
D | pinctrl-starfive-jh7110.h | 24 u32 *saved_regs; member
|
D | pinctrl-starfive-jh7110.c | 876 sfp->saved_regs = devm_kcalloc(dev, info->nsaved_regs, in jh7110_pinctrl_probe() 877 sizeof(*sfp->saved_regs), GFP_KERNEL); in jh7110_pinctrl_probe() 878 if (!sfp->saved_regs) in jh7110_pinctrl_probe() 991 sfp->saved_regs[i] = readl_relaxed(sfp->base + 4 * i); in jh7110_pinctrl_suspend() 1005 writel_relaxed(sfp->saved_regs[i], sfp->base + 4 * i); in jh7110_pinctrl_resume()
|
/Linux-v6.6/sound/pci/ |
D | fm801.c | 226 u16 saved_regs[0x20]; member 1343 static const unsigned char saved_regs[] = { variable 1358 for (i = 0; i < ARRAY_SIZE(saved_regs); i++) in snd_fm801_suspend() 1359 chip->saved_regs[i] = fm801_ioread16(chip, saved_regs[i]); in snd_fm801_suspend() 1387 for (i = 0; i < ARRAY_SIZE(saved_regs); i++) in snd_fm801_resume() 1388 fm801_iowrite16(chip, saved_regs[i], chip->saved_regs[i]); in snd_fm801_resume()
|
D | azt3328.c | 2523 unsigned long io_addr, unsigned count, u32 *saved_regs) in snd_azf3328_suspend_regs() argument 2528 *saved_regs = inl(io_addr); in snd_azf3328_suspend_regs() 2530 io_addr, *saved_regs); in snd_azf3328_suspend_regs() 2531 ++saved_regs; in snd_azf3328_suspend_regs() 2532 io_addr += sizeof(*saved_regs); in snd_azf3328_suspend_regs() 2538 const u32 *saved_regs, in snd_azf3328_resume_regs() argument 2546 outl(*saved_regs, io_addr); in snd_azf3328_resume_regs() 2549 io_addr, *saved_regs, inl(io_addr)); in snd_azf3328_resume_regs() 2550 ++saved_regs; in snd_azf3328_resume_regs() 2551 io_addr += sizeof(*saved_regs); in snd_azf3328_resume_regs()
|
D | cs4281.c | 1902 static const int saved_regs[SUSPEND_REGISTERS] = { variable 1939 for (i = 0; i < ARRAY_SIZE(saved_regs); i++) in cs4281_suspend() 1940 if (saved_regs[i]) in cs4281_suspend() 1941 chip->suspend_regs[i] = snd_cs4281_peekBA0(chip, saved_regs[i]); in cs4281_suspend() 1975 for (i = 0; i < ARRAY_SIZE(saved_regs); i++) in cs4281_resume() 1976 if (saved_regs[i]) in cs4281_resume() 1977 snd_cs4281_pokeBA0(chip, saved_regs[i], chip->suspend_regs[i]); in cs4281_resume()
|
D | es1938.c | 220 unsigned char saved_regs[SAVED_REG_SIZE]; member 1403 static const unsigned char saved_regs[SAVED_REG_SIZE+1] = { variable 1421 for (s = saved_regs, d = chip->saved_regs; *s; s++, d++) in es1938_suspend() 1453 for (s = saved_regs, d = chip->saved_regs; *s; s++, d++) { in es1938_resume()
|
/Linux-v6.6/drivers/pinctrl/renesas/ |
D | core.c | 658 pfc->saved_regs[idx] = sh_pfc_read(pfc, reg); in sh_pfc_save_reg() 663 sh_pfc_write(pfc, reg, pfc->saved_regs[idx]); in sh_pfc_restore_reg() 707 pfc->saved_regs = devm_kmalloc_array(pfc->dev, n, in sh_pfc_suspend_init() 708 sizeof(*pfc->saved_regs), in sh_pfc_suspend_init() 710 if (!pfc->saved_regs) in sh_pfc_suspend_init() 721 if (pfc->saved_regs) in sh_pfc_suspend_noirq() 730 if (pfc->saved_regs) in sh_pfc_resume_noirq()
|
/Linux-v6.6/drivers/pinctrl/ |
D | pinctrl-amd.c | 925 gpio_dev->saved_regs[i] = readl(gpio_dev->base + pin * 4) & ~PIN_IRQ_PENDING; in amd_gpio_suspend() 946 gpio_dev->saved_regs[i] |= readl(gpio_dev->base + pin * 4) & PIN_IRQ_PENDING; in amd_gpio_resume() 947 writel(gpio_dev->saved_regs[i], gpio_dev->base + pin * 4); in amd_gpio_resume() 1094 gpio_dev->saved_regs = devm_kcalloc(&pdev->dev, amd_pinctrl_desc.npins, in amd_gpio_probe() 1095 sizeof(*gpio_dev->saved_regs), in amd_gpio_probe() 1097 if (!gpio_dev->saved_regs) in amd_gpio_probe()
|
/Linux-v6.6/sound/isa/sb/ |
D | sb_mixer.c | 882 unsigned char *val = chip->saved_regs; in save_mixer() 883 if (snd_BUG_ON(num_regs > ARRAY_SIZE(chip->saved_regs))) in save_mixer() 891 unsigned char *val = chip->saved_regs; in restore_mixer() 892 if (snd_BUG_ON(num_regs > ARRAY_SIZE(chip->saved_regs))) in restore_mixer()
|
/Linux-v6.6/drivers/gpio/ |
D | gpio-brcmstb.c | 43 u32 saved_regs[GIO_REG_STAT]; /* Don't save and restore GIO_REG_STAT */ member 504 bank->saved_regs[i] = gc->read_reg(priv->reg_base + in brcmstb_gpio_bank_save() 550 bank->saved_regs[i]); in brcmstb_gpio_bank_restore()
|
/Linux-v6.6/drivers/i3c/master/ |
D | svc-i3c-master.c | 183 struct svc_i3c_regs_save saved_regs; member 1608 master->saved_regs.mconfig = readl(master->regs + SVC_I3C_MCONFIG); in svc_i3c_save_regs() 1609 master->saved_regs.mdynaddr = readl(master->regs + SVC_I3C_MDYNADDR); in svc_i3c_save_regs() 1615 master->saved_regs.mdynaddr) { in svc_i3c_restore_regs() 1616 writel(master->saved_regs.mconfig, in svc_i3c_restore_regs() 1618 writel(master->saved_regs.mdynaddr, in svc_i3c_restore_regs()
|
/Linux-v6.6/drivers/net/wireless/broadcom/b43/ |
D | lo.c | 732 struct lo_g_saved_values saved_regs; in b43_calibrate_lo_setting() local 738 saved_regs.old_channel = phy->channel; in b43_calibrate_lo_setting() 740 lo_measure_setup(dev, &saved_regs); in b43_calibrate_lo_setting() 759 lo_measure_restore(dev, &saved_regs); in b43_calibrate_lo_setting()
|
/Linux-v6.6/sound/pci/cs46xx/ |
D | cs46xx_lib.c | 3710 static const unsigned int saved_regs[] = { variable 3733 for (i = 0; i < ARRAY_SIZE(saved_regs); i++) in snd_cs46xx_suspend() 3734 chip->saved_regs[i] = snd_cs46xx_peekBA0(chip, saved_regs[i]); in snd_cs46xx_suspend() 3766 for (i = 0; i < ARRAY_SIZE(saved_regs); i++) in snd_cs46xx_resume() 3767 snd_cs46xx_pokeBA0(chip, saved_regs[i], chip->saved_regs[i]); in snd_cs46xx_resume() 3954 chip->saved_regs = devm_kmalloc_array(&pci->dev, in snd_cs46xx_create() 3955 ARRAY_SIZE(saved_regs), in snd_cs46xx_create() 3956 sizeof(*chip->saved_regs), in snd_cs46xx_create() 3958 if (!chip->saved_regs) in snd_cs46xx_create()
|