Home
last modified time | relevance | path

Searched full:save (Results 1 – 25 of 2740) sorted by relevance

12345678910>>...110

/linux/drivers/pci/
H A Dvc.c20 * pci_vc_save_restore_dwords - Save or restore a series of dwords
23 * @buf: buffer to save to or restore from
24 * @dwords: number of dwords to save/restore
25 * @save: whether to save or restore
28 u32 *buf, int dwords, bool save) in pci_vc_save_restore_dwords() argument
33 if (save) in pci_vc_save_restore_dwords()
172 * pci_vc_do_save_buffer - Size, save, or restore VC state
175 * @save_state: buffer for save/restore
176 * @save: if provided a buffer, this indicates what to do with it
178 * Walking Virtual Channel config space to size, save, or restore it
[all …]
/linux/tools/testing/selftests/kvm/lib/x86_64/
H A Dsvm.c67 struct vmcb_save_area *save = &vmcb->save; in generic_svm_setup() local
81 vmcb_set_seg(&save->es, get_es(), 0, -1U, data_seg_attr); in generic_svm_setup()
82 vmcb_set_seg(&save->cs, get_cs(), 0, -1U, code_seg_attr); in generic_svm_setup()
83 vmcb_set_seg(&save->ss, get_ss(), 0, -1U, data_seg_attr); in generic_svm_setup()
84 vmcb_set_seg(&save->ds, get_ds(), 0, -1U, data_seg_attr); in generic_svm_setup()
85 vmcb_set_seg(&save->gdtr, 0, get_gdt().address, get_gdt().size, 0); in generic_svm_setup()
86 vmcb_set_seg(&save->idtr, 0, get_idt().address, get_idt().size, 0); in generic_svm_setup()
89 save->cpl = 0; in generic_svm_setup()
90 save->efer = rdmsr(MSR_EFER); in generic_svm_setup()
91 asm volatile ("mov %%cr4, %0" : "=r"(save->cr4) : : "memory"); in generic_svm_setup()
[all …]
/linux/arch/powerpc/platforms/cell/spufs/
H A Dspu_save.c7 * SPU-side context save sequence outlined in
29 /* Save, Step 2: in save_event_mask()
30 * Read the SPU_RdEventMsk channel and save to the LSCSA. in save_event_mask()
40 /* Save, Step 3: in save_tag_mask()
41 * Read the SPU_RdTagMsk channel and save to the LSCSA. in save_tag_mask()
55 /* Save, Step 7: in save_upper_240kb()
72 /* Save, Step 9: in save_fpcr()
74 * read instruction, and save to the LSCSA. in save_fpcr()
84 /* Save, Step 10: in save_decr()
85 * Read and save the SPU_RdDec channel data to in save_decr()
[all …]
H A Dswitch.c17 * save, and then later (optionally) restore the context of a
66 /* Save, Step 1: in acquire_spu_lock()
86 /* Save, Step 2: in check_spu_isolate()
87 * Save, Step 6: in check_spu_isolate()
99 /* Save, Step 3: in disable_interrupts()
101 * Save INT_Mask_class0 in CSA. in disable_interrupts()
103 * Save INT_Mask_class1 in CSA. in disable_interrupts()
105 * Save INT_Mask_class2 in CSA. in disable_interrupts()
136 /* Save, Step 4: in set_watchdog_timer()
139 * maximum allowable time for a context save sequence. in set_watchdog_timer()
[all …]
H A Dspu_save_crt0.S3 * crt0_s.S: Entry function for SPU-side context save.
7 * Entry function for SPU-side of the context save sequence.
23 /* SPU Context Save Step 1: Save the first 16 GPRs. */
41 /* SPU Context Save, Step 8: Save the remaining 112 GPRs. */
67 * This is needed so that main has a place to save the
H A Dspu_utils.h58 /* Save, Step 4: in set_event_mask()
70 /* Save, Step 5: in set_tag_mask()
83 /* Save, Step 6: in build_dma_list()
104 /* Save, Step 12: in enqueue_putllc()
122 /* Save, Step 15: in set_tag_update()
131 /* Save, Step 16: in read_tag_status()
140 /* Save, Step 17: in read_llar_status()
/linux/arch/arm/mach-sa1100/
H A Dpm.c15 * Save more value for the resume function! Support
22 * 2002-05-27: Nicolas Pitre Killed sleep.h and the kmalloced save array.
40 #define SAVE(x) sleep_save[SLEEP_SAVE_##x] = x macro
63 /* save vital registers */ in sa11x0_pm_enter()
64 SAVE(GPDR); in sa11x0_pm_enter()
65 SAVE(GAFR); in sa11x0_pm_enter()
67 SAVE(PPDR); in sa11x0_pm_enter()
68 SAVE(PPSR); in sa11x0_pm_enter()
69 SAVE(PPAR); in sa11x0_pm_enter()
70 SAVE(PSDR); in sa11x0_pm_enter()
[all …]
/linux/arch/x86/kvm/svm/
H A Dsvm.c207 /* enable/disable Next RIP Save */
345 svm->vmcb->save.efer = efer | EFER_SVME; in svm_set_efer()
391 old_rflags = svm->vmcb->save.rflags; in __svm_skip_emulated_instruction()
397 svm->vmcb->save.rflags = old_rflags; in __svm_skip_emulated_instruction()
437 * Save the injection information, even when using next_rip, as the in svm_update_soft_interrupt_rip()
446 svm->soft_int_csbase = svm->vmcb->save.cs.base; in svm_update_soft_interrupt_rip()
809 * save it. in msr_write_intercepted()
813 * save it. in msr_write_intercepted()
989 to_vmcb->save.dbgctl = from_vmcb->save.dbgctl; in svm_copy_lbrs()
990 to_vmcb->save.br_from = from_vmcb->save.br_from; in svm_copy_lbrs()
[all …]
/linux/drivers/pinctrl/samsung/
H A Dpinctrl-exynos.c767 struct exynos_eint_gpio_save *save = bank->soc_priv; in exynos_pinctrl_suspend_bank() local
776 save->eint_con = readl(regs + EXYNOS_GPIO_ECON_OFFSET in exynos_pinctrl_suspend_bank()
778 save->eint_fltcon0 = readl(regs + EXYNOS_GPIO_EFLTCON_OFFSET in exynos_pinctrl_suspend_bank()
780 save->eint_fltcon1 = readl(regs + EXYNOS_GPIO_EFLTCON_OFFSET in exynos_pinctrl_suspend_bank()
782 save->eint_mask = readl(regs + bank->irq_chip->eint_mask in exynos_pinctrl_suspend_bank()
787 pr_debug("%s: save con %#010x\n", bank->name, save->eint_con); in exynos_pinctrl_suspend_bank()
788 pr_debug("%s: save fltcon0 %#010x\n", bank->name, save->eint_fltcon0); in exynos_pinctrl_suspend_bank()
789 pr_debug("%s: save fltcon1 %#010x\n", bank->name, save->eint_fltcon1); in exynos_pinctrl_suspend_bank()
790 pr_debug("%s: save mask %#010x\n", bank->name, save->eint_mask); in exynos_pinctrl_suspend_bank()
796 struct exynos_eint_gpio_save *save = bank->soc_priv; in exynosauto_pinctrl_suspend_bank() local
[all …]
/linux/arch/powerpc/lib/
H A Dtest_emulate_step_exec_instr.S32 * Save non-volatile GPRs on stack. This includes TOC pointer (GPR2)
44 * Save LR on stack to ensure that the return address is available
51 * Save CR on stack. For simplicity, the entire register is saved
92 * save it to pt_regs.
97 /* Save resulting GPR state to pt_regs */
104 /* Save resulting LR to pt_regs */
108 /* Save resulting CR to pt_regs */
112 /* Save resulting XER to pt_regs */
116 /* Restore resulting GPR3 from scratch space and save it to pt_regs */
/linux/arch/x86/kernel/
H A Dftrace_64.S20 /* Save parent and function stack frames (rip and rbp) */
23 /* No need to save a stack frame */
27 /* Size of stack used to save mcount regs in save_mcount_regs */
58 /* Save the original rbp */
63 * is not set up properly. If fentry is used, we need to save a frame
69 /* Save the parent pointer (skip orig rbp and our return address) */
73 /* Save the return address (now skip orig rbp, rbp and parent) */
80 * We add enough stack to save all regs.
92 * Save the original RBP. Even though the mcount ABI does not
117 .macro restore_mcount_regs save=0 argument
[all …]
/linux/arch/sparc/kernel/
H A Dwuf.S60 * T == the trap itself has save'd us into this
113 save %g0, %g0, %g0
114 save %g0, %g0, %g0
144 /* Place a pt_regs frame on the kernel stack, save back
157 /* Save current in a global while we change windows. */
160 save %g0, %g0, %g0
165 mov %fp, %g4 /* Save bogus frame pointer. */
167 save %g0, %g0, %g0
182 /* Fix users window mask and buffer save count. */
205 save %g0, %g0, %g0 /* Save to window 'O' */
[all …]
/linux/arch/powerpc/kernel/trace/
H A Dftrace_entry.S32 * Our job is to save the register state into a struct pt_regs (on the stack)
42 /* Save all gprs to pt_regs */
47 /* Save the original return address in A's stack frame */
64 /* Save previous stack pointer (r1) */
69 /* Load special regs for save below */
81 /* Save it as pt_regs->nip */
83 /* Also save it in B's stackframe header for proper unwind */
85 /* Save the read LR in pt_regs->link */
89 /* Save callee's TOC in the ABI compliant location */
109 /* Save special regs */
[all …]
/linux/arch/microblaze/kernel/
H A Dentry.S165 /* turn on virtual protected mode save */
172 /* turn off virtual protected mode save and user mode save*/
180 swi r2, r1, PT_R2; /* Save SDA */ \
189 swi r11, r1, PT_R11; /* save clobbered regs after rval */\
191 swi r13, r1, PT_R13; /* Save SDA2 */ \
193 swi r15, r1, PT_R15; /* Save LP */ \
196 swi r18, r1, PT_R18; /* Save asm scratch reg */ \
209 swi r31, r1, PT_R31; /* Save current task reg */ \
210 mfs r11, rmsr; /* save MSR */ \
258 swi r1, r0, TOPHYS(PER_CPU(ENTRY_SP)); /* save stack */ \
[all …]
/linux/arch/sh/kernel/cpu/shmobile/
H A Dsleep.S30 /* save mode flags */
33 /* save original vbr */
40 /* save return address */
44 /* save sr */
48 /* save general purpose registers to stack if needed */
62 /* make sure bank0 is selected, save low registers */
71 /* switch to bank 1, save low registers */
87 /* save sp, also set to internal ram */
91 /* save stbcr */
95 /* save mmu and cache context if needed */
[all …]
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dcwsr_trap_handler_gfx8.asm68 /* Save */
93 var s_save_trapsts = ttmp5 //not really used until the end of the SAVE routine
157 …h L_SKIP_RESTORE //NOT restore. might be a regular trap or save
164 …s_getreg_b32 s_save_status, hwreg(HW_REG_STATUS) //save STATUS sinc…
165 … s_save_status, s_save_status, SQ_WAVE_STATUS_SPI_PRIO_MASK //check whether this is for save
167 … s_save_trapsts, s_save_trapsts, SQ_WAVE_TRAPSTS_SAVECTX_MASK //check whether this is for save
168 s_cbranch_scc1 L_SAVE //this is the operation for save
194 /* save routine */
201 …s_mov_b32 s_save_xnack_mask_lo, xnack_mask_lo //save XNA…
202 …s_mov_b32 s_save_xnack_mask_hi, xnack_mask_hi //save XNACK must before any memory opera…
[all …]
/linux/arch/sh/kernel/cpu/sh3/
H A Dswsusp.S90 ! - save registers in swsusp_arch_regs_cpu0
94 sts pr, r0 ! save pr in r0
95 mov r15, r2 ! save sp in r2
96 mov r8, r5 ! save r8 in r5
98 ldc r1, ssr ! save sr in ssr
103 add r3, r15 ! save from top of structure
109 jsr @r1 ! switch to bank1 and save bank1 r7->r0
116 jsr @k1 ! switch to bank0 and save all regs
/linux/arch/arm/common/
H A Dsa1111.c963 struct sa1111_save_data *save; in sa1111_suspend_noirq() local
968 save = kmalloc(sizeof(struct sa1111_save_data), GFP_KERNEL); in sa1111_suspend_noirq()
969 if (!save) in sa1111_suspend_noirq()
971 sachip->saved_state = save; in sa1111_suspend_noirq()
976 * Save state. in sa1111_suspend_noirq()
979 save->skcr = readl_relaxed(base + SA1111_SKCR); in sa1111_suspend_noirq()
980 save->skpcr = readl_relaxed(base + SA1111_SKPCR); in sa1111_suspend_noirq()
981 save->skcdr = readl_relaxed(base + SA1111_SKCDR); in sa1111_suspend_noirq()
982 save->skaud = readl_relaxed(base + SA1111_SKAUD); in sa1111_suspend_noirq()
983 save->skpwm0 = readl_relaxed(base + SA1111_SKPWM0); in sa1111_suspend_noirq()
[all …]
/linux/arch/loongarch/kvm/
H A Dswitch.S29 * Save and restore all GPRs except base register,
45 * Prepare switch to guest, save host regs and restore guest regs.
63 /* Save host PGDL */
110 * load kvm_vcpu from reserved CSR KVM_VCPU_KS, and save a2 to KVM_TEMP_KS
120 /* After save GPRs, free to use any GPR */
122 /* Save guest A2 */
187 * Save per cpu register again, maybe switched to another cpu
191 /* Save kvm_vcpu to kscratch */
214 /* Save host GPRs */
220 /* Save per cpu register */
[all …]
/linux/arch/powerpc/kvm/
H A Dtm.S20 * Save transactional state and TM-related registers.
54 /* Save CR on the stack - even if r5 == 0 we need to get cr7 back. */
58 /* Save DSCR so we can restore it to avoid running with user value */
64 * registers. Save the non-volatile registers on the stack if
98 /* Save away PPR soon so we don't run with user value. */
115 /* Save all but r0-r2, r9 & r13 */
123 /* ... now save r13 */
126 /* ... and save r9 */
140 /* Save away checkpointed SPRs. */
153 /* Save FP/VSX. */
[all …]
/linux/arch/loongarch/include/asm/
H A Dlbt.h70 static inline void lose_lbt_inatomic(int save, struct task_struct *tsk) in lose_lbt_inatomic() argument
73 if (save) in lose_lbt_inatomic()
82 static inline void lose_lbt(int save) in lose_lbt() argument
85 lose_lbt_inatomic(save, current); in lose_lbt()
96 static inline void lose_lbt_inatomic(int save, struct task_struct *tsk) {} in lose_lbt_inatomic() argument
98 static inline void lose_lbt(int save) {} in lose_lbt() argument
/linux/drivers/hwtracing/coresight/
H A Dcoresight-tpdm.h220 * @edge_ctrl: Save value for edge control
221 * @edge_ctrl_mask: Save value for edge control mask
222 * @patt_val: Save value for pattern
223 * @patt_mask: Save value for pattern mask
224 * @trig_patt: Save value for trigger pattern
225 * @trig_patt_mask: Save value for trigger pattern mask
226 * @msr Save value for MSR
251 * @patt_val: Save value for pattern
252 * @patt_mask: Save value for pattern mask
253 * @trig_patt: Save value for trigger pattern
[all …]
/linux/arch/arm/mach-s3c/
H A Dpm-common.h16 /* sleep save info */
19 * struct sleep_save - save information for shared peripherals.
20 * @reg: Pointer to the register to save.
24 * other subsystem to save and restore register values over suspend.
34 /* helper functions to save/restore lists of registers. */
/linux/arch/xtensa/variants/fsf/include/variant/
H A Dtie-asm.h16 /* Selection parameter values for save-area save/restore macros: */
32 /* Macro to save all non-coprocessor (extra) custom TIE and optional state
34 * Save area ptr (clobbered): ptr (1 byte aligned)
47 /* Macro to save all non-coprocessor (extra) custom TIE and optional state
49 * Save area ptr (clobbered): ptr (1 byte aligned)
/linux/arch/arm64/kernel/
H A Dentry-fpsimd.S15 * Save the FP registers.
37 * Save the SVE state
41 * x2 - Save FFR if non-zero
103 * Save the ZA and ZT state
106 * x1 - number of ZT registers to save
122 * x1 - number of ZT registers to save

12345678910>>...110