Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/
Datomisp_v4l2.c519 pci_read_config_word(pdev, PCI_COMMAND, &isp->saved_regs.pcicmdsts); in atomisp_save_iunit_reg()
521 pci_read_config_dword(pdev, PCI_MSI_CAPID, &isp->saved_regs.msicap); in atomisp_save_iunit_reg()
522 pci_read_config_dword(pdev, PCI_MSI_ADDR, &isp->saved_regs.msi_addr); in atomisp_save_iunit_reg()
523 pci_read_config_word(pdev, PCI_MSI_DATA, &isp->saved_regs.msi_data); in atomisp_save_iunit_reg()
524 pci_read_config_byte(pdev, PCI_INTERRUPT_LINE, &isp->saved_regs.intr); in atomisp_save_iunit_reg()
525 pci_read_config_dword(pdev, PCI_INTERRUPT_CTRL, &isp->saved_regs.interrupt_control); in atomisp_save_iunit_reg()
527 pci_read_config_dword(pdev, MRFLD_PCI_PMCS, &isp->saved_regs.pmcs); in atomisp_save_iunit_reg()
529 pci_read_config_dword(pdev, PCI_I_CONTROL, &isp->saved_regs.i_control); in atomisp_save_iunit_reg()
530 isp->saved_regs.i_control |= in atomisp_save_iunit_reg()
534 &isp->saved_regs.csi_access_viol); in atomisp_save_iunit_reg()
[all …]
Datomisp_internal.h261 struct atomisp_regs saved_regs; member
/kernel/linux/linux-5.10/drivers/net/can/mscan/
Dmpc5xxx_can.c376 static struct mscan_regs saved_regs; variable
383 _memcpy_fromio(&saved_regs, regs, sizeof(*regs)); in mpc5xxx_can_suspend()
398 regs->canctl1 = saved_regs.canctl1; in mpc5xxx_can_resume()
399 regs->canbtr0 = saved_regs.canbtr0; in mpc5xxx_can_resume()
400 regs->canbtr1 = saved_regs.canbtr1; in mpc5xxx_can_resume()
401 regs->canidac = saved_regs.canidac; in mpc5xxx_can_resume()
404 _memcpy_toio(&regs->canidar1_0, (void *)&saved_regs.canidar1_0, in mpc5xxx_can_resume()
408 regs->cantbsel = saved_regs.cantbsel; in mpc5xxx_can_resume()
409 regs->canrier = saved_regs.canrier; in mpc5xxx_can_resume()
410 regs->cantier = saved_regs.cantier; in mpc5xxx_can_resume()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/platforms/83xx/
Dsuspend.c109 static struct mpc83xx_saved saved_regs; variable
162 out_be32(&syscr_regs->sicrl, saved_regs.sicrl); in mpc83xx_suspend_restore_regs()
163 out_be32(&syscr_regs->sicrh, saved_regs.sicrh); in mpc83xx_suspend_restore_regs()
164 out_be32(&clock_regs->sccr, saved_regs.sccr); in mpc83xx_suspend_restore_regs()
169 saved_regs.sicrl = in_be32(&syscr_regs->sicrl); in mpc83xx_suspend_save_regs()
170 saved_regs.sicrh = in_be32(&syscr_regs->sicrh); in mpc83xx_suspend_save_regs()
171 saved_regs.sccr = in_be32(&clock_regs->sccr); in mpc83xx_suspend_save_regs()
/kernel/linux/linux-5.10/drivers/soc/fsl/qe/
Dgpio.c35 struct qe_pio_regs saved_regs; member
45 qe_gc->saved_regs.cpdata = qe_gc->cpdata; in qe_gpio_save_regs()
46 qe_gc->saved_regs.cpdir1 = qe_ioread32be(&regs->cpdir1); in qe_gpio_save_regs()
47 qe_gc->saved_regs.cpdir2 = qe_ioread32be(&regs->cpdir2); in qe_gpio_save_regs()
48 qe_gc->saved_regs.cppar1 = qe_ioread32be(&regs->cppar1); in qe_gpio_save_regs()
49 qe_gc->saved_regs.cppar2 = qe_ioread32be(&regs->cppar2); in qe_gpio_save_regs()
50 qe_gc->saved_regs.cpodr = qe_ioread32be(&regs->cpodr); in qe_gpio_save_regs()
246 struct qe_pio_regs *sregs = &qe_gc->saved_regs; in qe_pin_set_dedicated()
/kernel/linux/linux-5.10/arch/powerpc/sysdev/
Dfsl_lbc.c365 ctrl->saved_regs = kmalloc(sizeof(struct fsl_lbc_regs), GFP_KERNEL); in fsl_lbc_syscore_suspend()
366 if (!ctrl->saved_regs) in fsl_lbc_syscore_suspend()
369 _memcpy_fromio(ctrl->saved_regs, lbc, sizeof(struct fsl_lbc_regs)); in fsl_lbc_syscore_suspend()
389 if (ctrl->saved_regs) { in fsl_lbc_syscore_resume()
390 _memcpy_toio(lbc, ctrl->saved_regs, in fsl_lbc_syscore_resume()
392 kfree(ctrl->saved_regs); in fsl_lbc_syscore_resume()
393 ctrl->saved_regs = NULL; in fsl_lbc_syscore_resume()
/kernel/linux/linux-5.10/arch/mips/power/
Dhibernate_asm.S15 PTR_LA t0, saved_regs
45 PTR_LA t0, saved_regs
Dcpu.c14 struct pt_regs saved_regs; variable
/kernel/linux/linux-5.10/drivers/pinctrl/renesas/
Dcore.c655 pfc->saved_regs[idx] = sh_pfc_read(pfc, reg); in sh_pfc_save_reg()
660 sh_pfc_write(pfc, reg, pfc->saved_regs[idx]); in sh_pfc_restore_reg()
702 pfc->saved_regs = devm_kmalloc_array(pfc->dev, n, in sh_pfc_suspend_init()
703 sizeof(*pfc->saved_regs), in sh_pfc_suspend_init()
705 if (!pfc->saved_regs) in sh_pfc_suspend_init()
716 if (pfc->saved_regs) in sh_pfc_suspend_noirq()
725 if (pfc->saved_regs) in sh_pfc_resume_noirq()
/kernel/linux/linux-5.10/drivers/pinctrl/
Dpinctrl-amd.c828 gpio_dev->saved_regs[i] = readl(gpio_dev->base + pin * 4) & ~PIN_IRQ_PENDING; in amd_gpio_suspend()
849 gpio_dev->saved_regs[i] |= readl(gpio_dev->base + pin * 4) & PIN_IRQ_PENDING; in amd_gpio_resume()
850 writel(gpio_dev->saved_regs[i], gpio_dev->base + pin * 4); in amd_gpio_resume()
902 gpio_dev->saved_regs = devm_kcalloc(&pdev->dev, amd_pinctrl_desc.npins, in amd_gpio_probe()
903 sizeof(*gpio_dev->saved_regs), in amd_gpio_probe()
905 if (!gpio_dev->saved_regs) in amd_gpio_probe()
Dpinctrl-amd.h100 u32 *saved_regs; member
/kernel/linux/linux-5.10/sound/pci/
Dfm801.c228 u16 saved_regs[0x20]; member
1390 static const 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()
1434 for (i = 0; i < ARRAY_SIZE(saved_regs); i++) in snd_fm801_resume()
1435 fm801_iowrite16(chip, saved_regs[i], chip->saved_regs[i]); in snd_fm801_resume()
Dazt3328.c2590 unsigned long io_addr, unsigned count, u32 *saved_regs) in snd_azf3328_suspend_regs() argument
2595 *saved_regs = inl(io_addr); in snd_azf3328_suspend_regs()
2597 io_addr, *saved_regs); in snd_azf3328_suspend_regs()
2598 ++saved_regs; in snd_azf3328_suspend_regs()
2599 io_addr += sizeof(*saved_regs); in snd_azf3328_suspend_regs()
2605 const u32 *saved_regs, in snd_azf3328_resume_regs() argument
2613 outl(*saved_regs, io_addr); in snd_azf3328_resume_regs()
2616 io_addr, *saved_regs, inl(io_addr)); in snd_azf3328_resume_regs()
2617 ++saved_regs; in snd_azf3328_resume_regs()
2618 io_addr += sizeof(*saved_regs); in snd_azf3328_resume_regs()
Dcs4281.c1942 static const int saved_regs[SUSPEND_REGISTERS] = { variable
1979 for (i = 0; i < ARRAY_SIZE(saved_regs); i++) in cs4281_suspend()
1980 if (saved_regs[i]) in cs4281_suspend()
1981 chip->suspend_regs[i] = snd_cs4281_peekBA0(chip, saved_regs[i]); in cs4281_suspend()
2015 for (i = 0; i < ARRAY_SIZE(saved_regs); i++) in cs4281_resume()
2016 if (saved_regs[i]) in cs4281_resume()
2017 snd_cs4281_pokeBA0(chip, saved_regs[i], chip->suspend_regs[i]); in cs4281_resume()
Des1938.c224 unsigned char saved_regs[SAVED_REG_SIZE]; member
1423 static const unsigned char saved_regs[SAVED_REG_SIZE+1] = { variable
1441 for (s = saved_regs, d = chip->saved_regs; *s; s++, d++) in es1938_suspend()
1473 for (s = saved_regs, d = chip->saved_regs; *s; s++, d++) { in es1938_resume()
Dcmipci.c494 unsigned int saved_regs[0x20]; member
3291 static const unsigned char saved_regs[] = { variable
3319 for (i = 0; i < ARRAY_SIZE(saved_regs); i++) in snd_cmipci_suspend()
3320 cm->saved_regs[i] = snd_cmipci_read(cm, saved_regs[i]); in snd_cmipci_suspend()
3342 for (i = 0; i < ARRAY_SIZE(saved_regs); i++) in snd_cmipci_resume()
3343 snd_cmipci_write(cm, saved_regs[i], cm->saved_regs[i]); in snd_cmipci_resume()
/kernel/linux/linux-5.10/sound/isa/sb/
Dsb_mixer.c877 unsigned char *val = chip->saved_regs; in save_mixer()
878 if (snd_BUG_ON(num_regs > ARRAY_SIZE(chip->saved_regs))) in save_mixer()
886 unsigned char *val = chip->saved_regs; in restore_mixer()
887 if (snd_BUG_ON(num_regs > ARRAY_SIZE(chip->saved_regs))) in restore_mixer()
/kernel/linux/linux-5.10/sound/pci/cs46xx/
Dcs46xx_lib.c2950 kfree(chip->saved_regs); in snd_cs46xx_free()
3748 static const unsigned int saved_regs[] = { variable
3771 for (i = 0; i < ARRAY_SIZE(saved_regs); i++) in snd_cs46xx_suspend()
3772 chip->saved_regs[i] = snd_cs46xx_peekBA0(chip, saved_regs[i]); in snd_cs46xx_suspend()
3804 for (i = 0; i < ARRAY_SIZE(saved_regs); i++) in snd_cs46xx_resume()
3805 snd_cs46xx_pokeBA0(chip, saved_regs[i], chip->saved_regs[i]); in snd_cs46xx_resume()
4016 chip->saved_regs = kmalloc_array(ARRAY_SIZE(saved_regs), in snd_cs46xx_create()
4017 sizeof(*chip->saved_regs), in snd_cs46xx_create()
4019 if (!chip->saved_regs) { in snd_cs46xx_create()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/
Dlo.c732 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()
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dfsl_lbc.h288 struct fsl_lbc_regs *saved_regs; member
/kernel/linux/linux-5.10/include/sound/
Dsb.h99 unsigned char saved_regs[0x20]; member
/kernel/linux/linux-5.10/sound/pci/ymfpci/
Dymfpci.h352 u32 *saved_regs; member
Dymfpci_main.c2232 kfree(chip->saved_regs); in snd_ymfpci_free()
2299 chip->saved_regs[i] = snd_ymfpci_readl(chip, saved_regs_index[i]); in snd_ymfpci_suspend()
2324 snd_ymfpci_writel(chip, saved_regs_index[i], chip->saved_regs[i]); in snd_ymfpci_resume()
2427 chip->saved_regs = kmalloc_array(YDSXGR_NUM_SAVED_REGS, sizeof(u32), in snd_ymfpci_create()
2429 if (chip->saved_regs == NULL) { in snd_ymfpci_create()
/kernel/linux/linux-5.10/sound/pci/emu10k1/
Demu10k1_main.c2055 static const unsigned char saved_regs[] = { variable
2074 size = ARRAY_SIZE(saved_regs); in alloc_pm_buffer()
2103 for (reg = saved_regs; *reg != 0xff; reg++) in snd_emu10k1_suspend_regs()
2143 for (reg = saved_regs; *reg != 0xff; reg++) in snd_emu10k1_resume_regs()

12