| /kernel/linux/linux-5.10/arch/x86/kvm/svm/ |
| D | nested.c | 100 kvm_init_shadow_npt_mmu(vcpu, X86_CR0_PG, hsave->save.cr4, hsave->save.efer, in nested_svm_init_mmu_context() 259 * to avoid TOC/TOU races. For these save area checks in nested_vmcb_check_save() 264 if ((vmcb12->save.efer & EFER_SVME) == 0) in nested_vmcb_check_save() 267 if (((vmcb12->save.cr0 & X86_CR0_CD) == 0) && (vmcb12->save.cr0 & X86_CR0_NW)) in nested_vmcb_check_save() 270 if (!kvm_dr6_valid(vmcb12->save.dr6) || !kvm_dr7_valid(vmcb12->save.dr7)) in nested_vmcb_check_save() 273 vmcb12_lma = (vmcb12->save.efer & EFER_LME) && (vmcb12->save.cr0 & X86_CR0_PG); in nested_vmcb_check_save() 276 if (!(vmcb12->save.cr4 & X86_CR4_PAE) || in nested_vmcb_check_save() 277 !(vmcb12->save.cr0 & X86_CR0_PE) || in nested_vmcb_check_save() 278 (vmcb12->save.cr3 & vcpu->arch.cr3_lm_rsvd_bits)) in nested_vmcb_check_save() 281 if (kvm_valid_cr4(&svm->vcpu, vmcb12->save.cr4)) in nested_vmcb_check_save() [all …]
|
| D | svm.c | 177 /* enable/disable Next RIP Save */ 303 svm->vmcb->save.efer = efer | EFER_SVME; in svm_set_efer() 376 svm->int3_rip = rip + svm->vmcb->save.cs.base; in svm_queue_exception() 799 svm->vmcb->save.rflags &= ~X86_EFLAGS_TF; in disable_nmi_singlestep() 801 svm->vmcb->save.rflags &= ~X86_EFLAGS_RF; in disable_nmi_singlestep() 1110 struct vmcb_save_area *save = &svm->vmcb->save; in init_vmcb() local 1176 init_seg(&save->es); in init_vmcb() 1177 init_seg(&save->ss); in init_vmcb() 1178 init_seg(&save->ds); in init_vmcb() 1179 init_seg(&save->fs); in init_vmcb() [all …]
|
| /kernel/linux/linux-5.10/drivers/soc/samsung/ |
| D | s3c-pm-debug.c | 49 struct pm_uart_save *save = &uart_save; in s3c_pm_save_uarts() local 51 save->ulcon = __raw_readl(regs + S3C2410_ULCON); in s3c_pm_save_uarts() 52 save->ucon = __raw_readl(regs + S3C2410_UCON); in s3c_pm_save_uarts() 53 save->ufcon = __raw_readl(regs + S3C2410_UFCON); in s3c_pm_save_uarts() 54 save->umcon = __raw_readl(regs + S3C2410_UMCON); in s3c_pm_save_uarts() 55 save->ubrdiv = __raw_readl(regs + S3C2410_UBRDIV); in s3c_pm_save_uarts() 58 save->udivslot = __raw_readl(regs + S3C2443_DIVSLOT); in s3c_pm_save_uarts() 61 regs, save->ulcon, save->ucon, save->ufcon, save->ubrdiv); in s3c_pm_save_uarts() 67 struct pm_uart_save *save = &uart_save; in s3c_pm_restore_uarts() local 69 s3c_pm_arch_update_uart(regs, save); in s3c_pm_restore_uarts() [all …]
|
| /kernel/linux/linux-4.19/arch/arm/plat-samsung/ |
| D | pm-debug.c | 27 struct pm_uart_save *save) {} in s3c_pm_arch_update_uart() argument 65 struct pm_uart_save *save = &uart_save; in s3c_pm_save_uarts() local 67 save->ulcon = __raw_readl(regs + S3C2410_ULCON); in s3c_pm_save_uarts() 68 save->ucon = __raw_readl(regs + S3C2410_UCON); in s3c_pm_save_uarts() 69 save->ufcon = __raw_readl(regs + S3C2410_UFCON); in s3c_pm_save_uarts() 70 save->umcon = __raw_readl(regs + S3C2410_UMCON); in s3c_pm_save_uarts() 71 save->ubrdiv = __raw_readl(regs + S3C2410_UBRDIV); in s3c_pm_save_uarts() 74 save->udivslot = __raw_readl(regs + S3C2443_DIVSLOT); in s3c_pm_save_uarts() 77 regs, save->ulcon, save->ucon, save->ufcon, save->ubrdiv); in s3c_pm_save_uarts() 83 struct pm_uart_save *save = &uart_save; in s3c_pm_restore_uarts() local [all …]
|
| /kernel/linux/linux-5.10/drivers/pci/ |
| D | vc.c | 19 * pci_vc_save_restore_dwords - Save or restore a series of dwords 22 * @buf: buffer to save to or restore from 23 * @dwords: number of dwords to save/restore 24 * @save: whether to save or restore 27 u32 *buf, int dwords, bool save) in pci_vc_save_restore_dwords() argument 32 if (save) in pci_vc_save_restore_dwords() 171 * pci_vc_do_save_buffer - Size, save, or restore VC state 174 * @save_state: buffer for save/restore 175 * @save: if provided a buffer, this indicates what to do with it 177 * Walking Virtual Channel config space to size, save, or restore it [all …]
|
| /kernel/linux/linux-4.19/drivers/pci/ |
| D | vc.c | 17 * pci_vc_save_restore_dwords - Save or restore a series of dwords 20 * @buf: buffer to save to or restore from 21 * @dwords: number of dwords to save/restore 22 * @save: whether to save or restore 25 u32 *buf, int dwords, bool save) in pci_vc_save_restore_dwords() argument 30 if (save) in pci_vc_save_restore_dwords() 169 * pci_vc_do_save_buffer - Size, save, or restore VC state 172 * @save_state: buffer for save/restore 174 * @save: if provided a buffer, this indicates what to do with it 176 * Walking Virtual Channel config space to size, save, or restore it [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/x86_64/ |
| D | svm.c | 64 struct vmcb_save_area *save = &vmcb->save; in generic_svm_setup() local 78 vmcb_set_seg(&save->es, get_es(), 0, -1U, data_seg_attr); in generic_svm_setup() 79 vmcb_set_seg(&save->cs, get_cs(), 0, -1U, code_seg_attr); in generic_svm_setup() 80 vmcb_set_seg(&save->ss, get_ss(), 0, -1U, data_seg_attr); in generic_svm_setup() 81 vmcb_set_seg(&save->ds, get_ds(), 0, -1U, data_seg_attr); in generic_svm_setup() 82 vmcb_set_seg(&save->gdtr, 0, get_gdt().address, get_gdt().size, 0); in generic_svm_setup() 83 vmcb_set_seg(&save->idtr, 0, get_idt().address, get_idt().size, 0); in generic_svm_setup() 86 save->cpl = 0; in generic_svm_setup() 87 save->efer = rdmsr(MSR_EFER); in generic_svm_setup() 88 asm volatile ("mov %%cr4, %0" : "=r"(save->cr4) : : "memory"); in generic_svm_setup() [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/platforms/cell/spufs/ |
| D | spu_save.c | 7 * 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 …]
|
| D | switch.c | 17 * 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 …]
|
| /kernel/linux/linux-4.19/arch/powerpc/platforms/cell/spufs/ |
| D | spu_save.c | 6 * SPU-side context save sequence outlined in 43 /* Save, Step 2: in save_event_mask() 44 * Read the SPU_RdEventMsk channel and save to the LSCSA. in save_event_mask() 54 /* Save, Step 3: in save_tag_mask() 55 * Read the SPU_RdTagMsk channel and save to the LSCSA. in save_tag_mask() 69 /* Save, Step 7: in save_upper_240kb() 86 /* Save, Step 9: in save_fpcr() 88 * read instruction, and save to the LSCSA. in save_fpcr() 98 /* Save, Step 10: in save_decr() 99 * Read and save the SPU_RdDec channel data to in save_decr() [all …]
|
| D | switch.c | 16 * save, and then later (optionally) restore the context of a 80 /* Save, Step 1: in acquire_spu_lock() 100 /* Save, Step 2: in check_spu_isolate() 101 * Save, Step 6: in check_spu_isolate() 113 /* Save, Step 3: in disable_interrupts() 115 * Save INT_Mask_class0 in CSA. in disable_interrupts() 117 * Save INT_Mask_class1 in CSA. in disable_interrupts() 119 * Save INT_Mask_class2 in CSA. in disable_interrupts() 150 /* Save, Step 4: in set_watchdog_timer() 153 * maximum allowable time for a context save sequence. in set_watchdog_timer() [all …]
|
| /kernel/linux/linux-4.19/arch/x86/kvm/ |
| D | svm.c | 751 to_svm(vcpu)->vmcb->save.efer = efer | EFER_SVME; in svm_set_efer() 833 svm->int3_rip = rip + svm->vmcb->save.cs.base; in svm_queue_exception() 1175 svm->vmcb->save.rflags &= ~X86_EFLAGS_TF; in disable_nmi_singlestep() 1177 svm->vmcb->save.rflags &= ~X86_EFLAGS_RF; in disable_nmi_singlestep() 1532 struct vmcb_save_area *save = &svm->vmcb->save; in init_vmcb() local 1597 init_seg(&save->es); in init_vmcb() 1598 init_seg(&save->ss); in init_vmcb() 1599 init_seg(&save->ds); in init_vmcb() 1600 init_seg(&save->fs); in init_vmcb() 1601 init_seg(&save->gs); in init_vmcb() [all …]
|
| /kernel/linux/linux-4.19/arch/arm/plat-samsung/include/plat/ |
| D | pm-common.h | 15 /* sleep save info */ 18 * struct sleep_save - save information for shared peripherals. 19 * @reg: Pointer to the register to save. 23 * other subsystem to save and restore register values over suspend. 33 /* helper functions to save/restore lists of registers. */ 42 * struct pm_uart_save - save block for core UART 43 * @ulcon: Save value for S3C2410_ULCON 44 * @ucon: Save value for S3C2410_UCON 45 * @ufcon: Save value for S3C2410_UFCON 46 * @umcon: Save value for S3C2410_UMCON [all …]
|
| /kernel/linux/linux-5.10/arch/arm/mach-sa1100/ |
| D | pm.c | 15 * Save more value for the resume function! Support 22 * 2002-05-27: Nicolas Pitre Killed sleep.h and the kmalloced save array. 38 #define SAVE(x) sleep_save[SLEEP_SAVE_##x] = x macro 61 /* save vital registers */ in sa11x0_pm_enter() 62 SAVE(GPDR); in sa11x0_pm_enter() 63 SAVE(GAFR); in sa11x0_pm_enter() 65 SAVE(PPDR); in sa11x0_pm_enter() 66 SAVE(PPSR); in sa11x0_pm_enter() 67 SAVE(PPAR); in sa11x0_pm_enter() 68 SAVE(PSDR); in sa11x0_pm_enter() [all …]
|
| /kernel/linux/linux-4.19/arch/arm/mach-sa1100/ |
| D | pm.c | 15 * Save more value for the resume function! Support 22 * 2002-05-27: Nicolas Pitre Killed sleep.h and the kmalloced save array. 38 #define SAVE(x) sleep_save[SLEEP_SAVE_##x] = x macro 61 /* save vital registers */ in sa11x0_pm_enter() 62 SAVE(GPDR); in sa11x0_pm_enter() 63 SAVE(GAFR); in sa11x0_pm_enter() 65 SAVE(PPDR); in sa11x0_pm_enter() 66 SAVE(PPSR); in sa11x0_pm_enter() 67 SAVE(PPAR); in sa11x0_pm_enter() 68 SAVE(PSDR); in sa11x0_pm_enter() [all …]
|
| /kernel/linux/linux-5.10/include/linux/soc/samsung/ |
| D | s3c-pm.h | 18 * struct pm_uart_save - save block for core UART 19 * @ulcon: Save value for S3C2410_ULCON 20 * @ucon: Save value for S3C2410_UCON 21 * @ufcon: Save value for S3C2410_UFCON 22 * @umcon: Save value for S3C2410_UMCON 23 * @ubrdiv: Save value for S3C2410_UBRDIV 25 * Save block for UART registers to be held over sleep and restored if they 55 struct pm_uart_save *save); 58 s3c_pm_arch_update_uart(void __iomem *regs, struct pm_uart_save *save) in s3c_pm_arch_update_uart() argument
|
| /kernel/linux/linux-4.19/drivers/gpu/drm/amd/amdkfd/ |
| D | cwsr_trap_handler_gfx8.asm | 37 ** 2. tba_hi.bits.26 - reconfigured as the first wave in tg bits, for defer Save LDS fo… 44 ** 2. optimize s_buffer save by burst 16sgprs... 51 ** #16. Update 1. PRRF - UNROLL LDS_DMA got 2500cycle save in IP tree 52 ** #17. Update 1. FUNC - LDS_DMA has issues while ATC, replace with ds_read/buffer_store for save p… 53 ** 2. PERF - Save LDS before save VGPR to cover LDS save long latency... 61 …shader, These 2 time stamps are part of the app shader... Should before any Save and after restore. 65 var s_g8sr_ts_save_s = s[34:35] // save start 66 var s_g8sr_ts_sq_save_msg = s[36:37] // The save shader send SAVEWAVE msg to spi 68 var s_g8sr_ts_save_d = s[40:41] // save end 80 … code in EMU (either because various EMU code are not ready or no compute save & restore in EMU ru… [all …]
|
| D | cwsr_trap_handler_gfx9.asm | 37 ** 2. tba_hi.bits.26 - reconfigured as the first wave in tg bits, for defer Save LDS for a threa… 44 ** 2. optimize s_buffer save by burst 16sgprs... 51 ** #16. Update 1. PRRF - UNROLL LDS_DMA got 2500cycle save in IP tree 52 ** #17. Update 1. FUNC - LDS_DMA has issues while ATC, replace with ds_read/buffer_store for save p… 53 ** 2. PERF - Save LDS before save VGPR to cover LDS save long latency... 61 …shader, These 2 time stamps are part of the app shader... Should before any Save and after restore. 65 var s_g8sr_ts_save_s = s[34:35] // save start 66 var s_g8sr_ts_sq_save_msg = s[36:37] // The save shader send SAVEWAVE msg to spi 68 var s_g8sr_ts_save_d = s[40:41] // save end 80 … code in EMU (either because various EMU code are not ready or no compute save & restore in EMU ru… [all …]
|
| /kernel/linux/linux-5.10/arch/ia64/lib/ |
| D | xor.S | 14 .save ar.pfs, r31 16 .save ar.lc, r30 18 .save pr, r29 52 .save ar.pfs, r31 54 .save ar.lc, r30 56 .save pr, r29 93 .save ar.pfs, r31 95 .save ar.lc, r30 97 .save pr, r29 137 .save ar.pfs, r31 [all …]
|
| /kernel/linux/linux-4.19/arch/powerpc/include/asm/ |
| D | exception-64s.h | 40 /* PACA save area offsets (exgen, exmc, etc) */ 66 * in the save area so it's not necessary to overlap them. Could be used 168 mfspr r11,SPRN_##h##SRR0; /* save SRR0 */ \ 176 /* If not relocatable, we can jump directly -- and save messing with LR */ 178 mfspr r11,SPRN_##h##SRR0; /* save SRR0 */ \ 189 * rfid. Save LR in case we're CONFIG_RELOCATABLE, in which case 193 SET_SCRATCH0(r13); /* save r13 */ \ 229 * we need to use CTR to get to the 2nd level handler. So, save/restore it 243 * PPR save/restore macros used in exceptions_64s.S 276 * Save a register to the PACA if the CPU has the given feature [all …]
|
| /kernel/linux/linux-5.10/arch/x86/kernel/ |
| D | ftrace_64.S | 18 /* Save parent and function stack frames (rip and rbp) */ 21 /* No need to save a stack frame */ 25 /* Size of stack used to save mcount regs in save_mcount_regs */ 56 /* Save the original rbp */ 61 * is not set up properly. If fentry is used, we need to save a frame 67 /* Save the parent pointer (skip orig rbp and our return address) */ 71 /* Save the return address (now skip orig rbp, rbp and parent) */ 78 * We add enough stack to save all regs. 90 * Save the original RBP. Even though the mcount ABI does not 115 .macro restore_mcount_regs save=0 argument [all …]
|
| /kernel/linux/linux-4.19/arch/x86/kernel/ |
| D | ftrace_64.S | 27 /* Save parent and function stack frames (rip and rbp) */ 30 /* Save just function stack frame (rip and rbp) */ 34 /* No need to save a stack frame */ 38 /* Size of stack used to save mcount regs in save_mcount_regs */ 69 /* Save the original rbp */ 74 * is not set up properly. If fentry is used, we need to save a frame 80 /* Save the parent pointer (skip orig rbp and our return address) */ 84 /* Save the return address (now skip orig rbp, rbp and parent) */ 95 * We add enough stack to save all regs. 106 * Save the original RBP. Even though the mcount ABI does not [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/lib/ |
| D | test_emulate_step_exec_instr.S | 32 * 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 93 * save it to pt_regs. 98 /* Save resulting GPR state to pt_regs */ 106 /* Save resulting LR to pt_regs */ 110 /* Save resulting CR to pt_regs */ 114 /* Save resulting XER to pt_regs */ 118 /* Restore resulting GPR3 from scratch space and save it to pt_regs */
|
| /kernel/linux/linux-4.19/arch/ia64/lib/ |
| D | xor.S | 22 .save ar.pfs, r31 24 .save ar.lc, r30 26 .save pr, r29 60 .save ar.pfs, r31 62 .save ar.lc, r30 64 .save pr, r29 101 .save ar.pfs, r31 103 .save ar.lc, r30 105 .save pr, r29 145 .save ar.pfs, r31 [all …]
|
| /kernel/linux/linux-5.10/arch/powerpc/kernel/trace/ |
| D | ftrace_64_mprofile.S | 32 * Our job is to save the register state into a struct pt_regs (on the stack) 36 /* Save the original return address in A's stack frame */ 42 /* Save all gprs to pt_regs */ 54 /* Save previous stack pointer (r1) */ 58 /* Load special regs for save below */ 66 /* Save it as pt_regs->nip */ 68 /* Save the read LR in pt_regs->link */ 71 /* Save callee's TOC in the ABI compliant location */ 88 /* Save special regs */ 153 /* Save the original return address in A's stack frame */ [all …]
|