Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/can/mscan/
Dmpc5xxx_can.c385 static struct mscan_regs saved_regs; variable
392 _memcpy_fromio(&saved_regs, regs, sizeof(*regs)); in mpc5xxx_can_suspend()
407 regs->canctl1 = saved_regs.canctl1; in mpc5xxx_can_resume()
408 regs->canbtr0 = saved_regs.canbtr0; in mpc5xxx_can_resume()
409 regs->canbtr1 = saved_regs.canbtr1; in mpc5xxx_can_resume()
410 regs->canidac = saved_regs.canidac; in mpc5xxx_can_resume()
413 _memcpy_toio(&regs->canidar1_0, (void *)&saved_regs.canidar1_0, in mpc5xxx_can_resume()
417 regs->cantbsel = saved_regs.cantbsel; in mpc5xxx_can_resume()
418 regs->canrier = saved_regs.canrier; in mpc5xxx_can_resume()
419 regs->cantier = saved_regs.cantier; in mpc5xxx_can_resume()
[all …]
/Linux-v4.19/arch/powerpc/platforms/83xx/
Dsuspend.c112 static struct mpc83xx_saved saved_regs; variable
165 out_be32(&syscr_regs->sicrl, saved_regs.sicrl); in mpc83xx_suspend_restore_regs()
166 out_be32(&syscr_regs->sicrh, saved_regs.sicrh); in mpc83xx_suspend_restore_regs()
167 out_be32(&clock_regs->sccr, saved_regs.sccr); in mpc83xx_suspend_restore_regs()
172 saved_regs.sicrl = in_be32(&syscr_regs->sicrl); in mpc83xx_suspend_save_regs()
173 saved_regs.sicrh = in_be32(&syscr_regs->sicrh); in mpc83xx_suspend_save_regs()
174 saved_regs.sccr = in_be32(&clock_regs->sccr); in mpc83xx_suspend_save_regs()
/Linux-v4.19/drivers/soc/fsl/qe/
Dgpio.c39 struct qe_pio_regs saved_regs; member
49 qe_gc->saved_regs.cpdata = qe_gc->cpdata; in qe_gpio_save_regs()
50 qe_gc->saved_regs.cpdir1 = in_be32(&regs->cpdir1); in qe_gpio_save_regs()
51 qe_gc->saved_regs.cpdir2 = in_be32(&regs->cpdir2); in qe_gpio_save_regs()
52 qe_gc->saved_regs.cppar1 = in_be32(&regs->cppar1); in qe_gpio_save_regs()
53 qe_gc->saved_regs.cppar2 = in_be32(&regs->cppar2); in qe_gpio_save_regs()
54 qe_gc->saved_regs.cpodr = in_be32(&regs->cpodr); in qe_gpio_save_regs()
250 struct qe_pio_regs *sregs = &qe_gc->saved_regs; in qe_pin_set_dedicated()
/Linux-v4.19/arch/powerpc/sysdev/
Dfsl_lbc.c369 ctrl->saved_regs = kmalloc(sizeof(struct fsl_lbc_regs), GFP_KERNEL); in fsl_lbc_syscore_suspend()
370 if (!ctrl->saved_regs) in fsl_lbc_syscore_suspend()
373 _memcpy_fromio(ctrl->saved_regs, lbc, sizeof(struct fsl_lbc_regs)); in fsl_lbc_syscore_suspend()
393 if (ctrl->saved_regs) { in fsl_lbc_syscore_resume()
394 _memcpy_toio(lbc, ctrl->saved_regs, in fsl_lbc_syscore_resume()
396 kfree(ctrl->saved_regs); in fsl_lbc_syscore_resume()
397 ctrl->saved_regs = NULL; in fsl_lbc_syscore_resume()
/Linux-v4.19/drivers/pinctrl/sh-pfc/
Dcore.c613 pfc->saved_regs[idx] = sh_pfc_read(pfc, reg); in sh_pfc_save_reg()
618 sh_pfc_write(pfc, reg, pfc->saved_regs[idx]); in sh_pfc_restore_reg()
660 pfc->saved_regs = devm_kmalloc_array(pfc->dev, n, in sh_pfc_suspend_init()
661 sizeof(*pfc->saved_regs), in sh_pfc_suspend_init()
663 if (!pfc->saved_regs) in sh_pfc_suspend_init()
674 if (pfc->saved_regs) in sh_pfc_suspend_noirq()
683 if (pfc->saved_regs) in sh_pfc_resume_noirq()
Dsh_pfc.h226 u32 *saved_regs; member
/Linux-v4.19/arch/mips/power/
Dhibernate_asm.S16 PTR_LA t0, saved_regs
46 PTR_LA t0, saved_regs
Dcpu.c15 struct pt_regs saved_regs; variable
/Linux-v4.19/sound/pci/
Dfm801.c211 u16 saved_regs[0x20]; member
1390 static unsigned char saved_regs[] = { variable
1405 for (i = 0; i < ARRAY_SIZE(saved_regs); i++) in snd_fm801_suspend()
1406 chip->saved_regs[i] = fm801_ioread16(chip, saved_regs[i]); in snd_fm801_suspend()
1435 for (i = 0; i < ARRAY_SIZE(saved_regs); i++) in snd_fm801_resume()
1436 fm801_iowrite16(chip, saved_regs[i], chip->saved_regs[i]); in snd_fm801_resume()
Dazt3328.c2629 unsigned long io_addr, unsigned count, u32 *saved_regs) in snd_azf3328_suspend_regs() argument
2634 *saved_regs = inl(io_addr); in snd_azf3328_suspend_regs()
2636 io_addr, *saved_regs); in snd_azf3328_suspend_regs()
2637 ++saved_regs; in snd_azf3328_suspend_regs()
2638 io_addr += sizeof(*saved_regs); in snd_azf3328_suspend_regs()
2644 const u32 *saved_regs, in snd_azf3328_resume_regs() argument
2652 outl(*saved_regs, io_addr); in snd_azf3328_resume_regs()
2655 io_addr, *saved_regs, inl(io_addr)); in snd_azf3328_resume_regs()
2656 ++saved_regs; in snd_azf3328_resume_regs()
2657 io_addr += sizeof(*saved_regs); in snd_azf3328_resume_regs()
Dcs4281.c1979 static int saved_regs[SUSPEND_REGISTERS] = { variable
2018 for (i = 0; i < ARRAY_SIZE(saved_regs); i++) in cs4281_suspend()
2019 if (saved_regs[i]) in cs4281_suspend()
2020 chip->suspend_regs[i] = snd_cs4281_peekBA0(chip, saved_regs[i]); in cs4281_suspend()
2054 for (i = 0; i < ARRAY_SIZE(saved_regs); i++) in cs4281_resume()
2055 if (saved_regs[i]) in cs4281_resume()
2056 snd_cs4281_pokeBA0(chip, saved_regs[i], chip->suspend_regs[i]); in cs4281_resume()
Des1938.c239 unsigned char saved_regs[SAVED_REG_SIZE]; member
1463 static unsigned char saved_regs[SAVED_REG_SIZE+1] = { variable
1481 for (s = saved_regs, d = chip->saved_regs; *s; s++, d++) in es1938_suspend()
1510 for (s = saved_regs, d = chip->saved_regs; *s; s++, d++) { in es1938_resume()
Dcmipci.c508 unsigned int saved_regs[0x20]; member
3327 static unsigned char saved_regs[] = { variable
3359 for (i = 0; i < ARRAY_SIZE(saved_regs); i++) in snd_cmipci_suspend()
3360 cm->saved_regs[i] = snd_cmipci_read(cm, saved_regs[i]); in snd_cmipci_suspend()
3382 for (i = 0; i < ARRAY_SIZE(saved_regs); i++) in snd_cmipci_resume()
3383 snd_cmipci_write(cm, saved_regs[i], cm->saved_regs[i]); in snd_cmipci_resume()
/Linux-v4.19/drivers/pinctrl/
Dpinctrl-amd.c805 gpio_dev->saved_regs[i] = readl(gpio_dev->base + pin*4); in amd_gpio_suspend()
824 writel(gpio_dev->saved_regs[i], gpio_dev->base + pin*4); in amd_gpio_resume()
876 gpio_dev->saved_regs = devm_kcalloc(&pdev->dev, amd_pinctrl_desc.npins, in amd_gpio_probe()
877 sizeof(*gpio_dev->saved_regs), in amd_gpio_probe()
879 if (!gpio_dev->saved_regs) in amd_gpio_probe()
Dpinctrl-amd.h104 u32 *saved_regs; member
/Linux-v4.19/sound/isa/sb/
Dsb_mixer.c892 unsigned char *val = chip->saved_regs; in save_mixer()
893 if (snd_BUG_ON(num_regs > ARRAY_SIZE(chip->saved_regs))) in save_mixer()
901 unsigned char *val = chip->saved_regs; in restore_mixer()
902 if (snd_BUG_ON(num_regs > ARRAY_SIZE(chip->saved_regs))) in restore_mixer()
/Linux-v4.19/drivers/gpio/
Dgpio-brcmstb.c53 u32 saved_regs[GIO_REG_STAT]; /* Don't save and restore GIO_REG_STAT */ member
520 bank->saved_regs[i] = gc->read_reg(priv->reg_base + in brcmstb_gpio_bank_save()
566 bank->saved_regs[i]); in brcmstb_gpio_bank_restore()
/Linux-v4.19/sound/pci/cs46xx/
Dcs46xx_lib.c2968 kfree(chip->saved_regs); in snd_cs46xx_free()
3766 static unsigned int saved_regs[] = { variable
3795 for (i = 0; i < ARRAY_SIZE(saved_regs); i++) in snd_cs46xx_suspend()
3796 chip->saved_regs[i] = snd_cs46xx_peekBA0(chip, saved_regs[i]); in snd_cs46xx_suspend()
3828 for (i = 0; i < ARRAY_SIZE(saved_regs); i++) in snd_cs46xx_resume()
3829 snd_cs46xx_pokeBA0(chip, saved_regs[i], chip->saved_regs[i]); in snd_cs46xx_resume()
4039 chip->saved_regs = kmalloc_array(ARRAY_SIZE(saved_regs), in snd_cs46xx_create()
4040 sizeof(*chip->saved_regs), in snd_cs46xx_create()
4042 if (!chip->saved_regs) { in snd_cs46xx_create()
Dcs46xx.h1730 u32 *saved_regs; member
/Linux-v4.19/drivers/net/wireless/broadcom/b43/
Dlo.c745 struct lo_g_saved_values uninitialized_var(saved_regs); in b43_calibrate_lo_setting()
751 saved_regs.old_channel = phy->channel; in b43_calibrate_lo_setting()
753 lo_measure_setup(dev, &saved_regs); in b43_calibrate_lo_setting()
772 lo_measure_restore(dev, &saved_regs); in b43_calibrate_lo_setting()
/Linux-v4.19/arch/powerpc/include/asm/
Dfsl_lbc.h301 struct fsl_lbc_regs *saved_regs; member
/Linux-v4.19/include/sound/
Dsb.h114 unsigned char saved_regs[0x20]; member
/Linux-v4.19/sound/pci/ymfpci/
Dymfpci.h367 u32 *saved_regs; member
Dymfpci_main.c2242 kfree(chip->saved_regs); in snd_ymfpci_free()
2313 chip->saved_regs[i] = snd_ymfpci_readl(chip, saved_regs_index[i]); in snd_ymfpci_suspend()
2338 snd_ymfpci_writel(chip, saved_regs_index[i], chip->saved_regs[i]); in snd_ymfpci_resume()
2438 chip->saved_regs = kmalloc_array(YDSXGR_NUM_SAVED_REGS, sizeof(u32), in snd_ymfpci_create()
2440 if (chip->saved_regs == NULL) { in snd_ymfpci_create()
/Linux-v4.19/sound/pci/emu10k1/
Demu10k1_main.c2081 static unsigned char saved_regs[] = { variable
2100 size = ARRAY_SIZE(saved_regs); in alloc_pm_buffer()
2129 for (reg = saved_regs; *reg != 0xff; reg++) in snd_emu10k1_suspend_regs()
2169 for (reg = saved_regs; *reg != 0xff; reg++) in snd_emu10k1_resume_regs()