Lines Matching refs:saved_regs
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()
55 csr_write32(saved_regs.pwctl1, LOONGARCH_CSR_PWCTL1); in loongarch_common_resume()
56 csr_write32(saved_regs.ecfg, LOONGARCH_CSR_ECFG); in loongarch_common_resume()
57 csr_write32(saved_regs.euen, LOONGARCH_CSR_EUEN); in loongarch_common_resume()