/linux/tools/testing/selftests/kvm/lib/x86_64/ |
H A D | svm.c | 67 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/x86/kvm/svm/ |
H A D | svm.c | 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() 446 svm->soft_int_csbase = svm->vmcb->save.cs.base; in svm_update_soft_interrupt_rip() 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() 991 to_vmcb->save.br_to = from_vmcb->save.br_to; in svm_copy_lbrs() 992 to_vmcb->save.last_excp_from = from_vmcb->save.last_excp_from; in svm_copy_lbrs() 993 to_vmcb->save.last_excp_to = from_vmcb->save.last_excp_to; in svm_copy_lbrs() 1051 bool enable_lbrv = (svm_get_lbr_vmcb(svm)->save.dbgctl & DEBUGCTLMSR_LBR) || in svm_update_lbrv() [all …]
|
/linux/arch/loongarch/include/asm/ |
H A D | lbt.h | 70 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/arch/arm/common/ |
H A D | sa1111.c | 963 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() 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() 984 save->skpwm1 = readl_relaxed(base + SA1111_SKPWM1); in sa1111_suspend_noirq() [all …]
|
H A D | locomo.c | 277 struct locomo_save_data *save; in locomo_suspend() local 280 save = kmalloc(sizeof(struct locomo_save_data), GFP_KERNEL); in locomo_suspend() 281 if (!save) in locomo_suspend() 284 lchip->saved_state = save; in locomo_suspend() 288 save->LCM_GPO = locomo_readl(lchip->base + LOCOMO_GPO); /* GPIO */ in locomo_suspend() 290 save->LCM_SPICT = locomo_readl(lchip->base + LOCOMO_SPI + LOCOMO_SPICT); /* SPI */ in locomo_suspend() 292 save->LCM_GPE = locomo_readl(lchip->base + LOCOMO_GPE); /* GPIO */ in locomo_suspend() 294 save->LCM_ASD = locomo_readl(lchip->base + LOCOMO_ASD); /* ADSTART */ in locomo_suspend() 296 save->LCM_SPIMD = locomo_readl(lchip->base + LOCOMO_SPI + LOCOMO_SPIMD); /* SPI */ in locomo_suspend() 321 struct locomo_save_data *save; in locomo_resume() local [all …]
|
/linux/drivers/pinctrl/samsung/ |
H A D | pinctrl-exynos.c | 767 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/mips/include/asm/ |
H A D | fpu.h | 179 static inline void lose_fpu_inatomic(int save, struct task_struct *tsk) in lose_fpu_inatomic() argument 182 if (save) { in lose_fpu_inatomic() 191 if (save) in lose_fpu_inatomic() 203 static inline void lose_fpu(int save) in lose_fpu() argument 206 lose_fpu_inatomic(save, current); in lose_fpu() 304 static inline void lose_fpu_inatomic(int save, struct task_struct *tsk) in lose_fpu_inatomic() argument 309 static inline void lose_fpu(int save) in lose_fpu() argument
|
/linux/arch/m68k/ifpsp060/src/ |
H A D | isp.S | 1043 mov.l %d0,EXC_A0(%a6) # save incremented value 1045 mov.l %a0,EXC_SAVVAL(%a6) # save in case of access error 1046 mov.b &0x0,EXC_SAVREG(%a6) # save regno, too 1054 mov.l %d0,EXC_A1(%a6) # save incremented value 1056 mov.l %a0,EXC_SAVVAL(%a6) # save in case of access error 1057 mov.b &0x1,EXC_SAVREG(%a6) # save regno, too 1065 mov.l %d0,EXC_A2(%a6) # save incremented value 1067 mov.l %a0,EXC_SAVVAL(%a6) # save in case of access error 1068 mov.b &0x2,EXC_SAVREG(%a6) # save regno, too 1076 mov.l %d0,EXC_A3(%a6) # save incremented value [all …]
|
H A D | fplsp.S | 565 movm.l &0x0303,EXC_DREGS(%a6) # save d0-d1/a0-a1 566 fmovm.l %fpcr,%fpsr,USER_FPCR(%a6) # save ctrl regs 567 fmovm.x &0xc0,EXC_FP0(%a6) # save fp0/fp1 622 movm.l &0x0303,EXC_DREGS(%a6) # save d0-d1/a0-a1 623 fmovm.l %fpcr,%fpsr,USER_FPCR(%a6) # save ctrl regs 624 fmovm.x &0xc0,EXC_FP0(%a6) # save fp0/fp1 680 movm.l &0x0303,EXC_DREGS(%a6) # save d0-d1/a0-a1 681 fmovm.l %fpcr,%fpsr,USER_FPCR(%a6) # save ctrl regs 682 fmovm.x &0xc0,EXC_FP0(%a6) # save fp0/fp1 742 movm.l &0x0303,EXC_DREGS(%a6) # save d0-d1/a0-a1 [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/pci/ |
H A D | agp.c | 60 u32 save[2]; in nvkm_agp_preinit() local 72 save[0] = nvkm_pci_rd32(pci, 0x0004); in nvkm_agp_preinit() 73 nvkm_pci_wr32(pci, 0x0004, save[0] & ~0x00000004); in nvkm_agp_preinit() 77 save[1] = nvkm_mask(device, 0x000200, 0x00011100, 0x00000000); in nvkm_agp_preinit() 78 nvkm_mask(device, 0x000200, 0x00011100, save[1]); in nvkm_agp_preinit() 81 nvkm_pci_wr32(pci, 0x0004, save[0]); in nvkm_agp_preinit()
|
/linux/arch/sparc/kernel/ |
H A D | wuf.S | 113 save %g0, %g0, %g0 114 save %g0, %g0, %g0 160 save %g0, %g0, %g0 167 save %g0, %g0, %g0 205 save %g0, %g0, %g0 /* Save to window 'O' */ 206 save %g0, %g0, %g0 /* Save to window 'T' */ 276 save %g0, %g0, %g0 277 save %g0, %g0, %g0
|
/linux/arch/sh/kernel/cpu/sh3/ |
H A D | swsusp.S | 90 ! - 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/drivers/pci/ |
H A D | vc.c | 28 u32 *buf, int dwords, bool save) in pci_vc_save_restore_dwords() argument 33 if (save) in pci_vc_save_restore_dwords() 187 bool save) in pci_vc_do_save_buffer() argument 196 pci_vc_do_save_buffer(dev, pos, NULL, save)) { in pci_vc_do_save_buffer() 216 if (save) in pci_vc_do_save_buffer() 254 size / 4, save); in pci_vc_do_save_buffer() 259 if (!save) in pci_vc_do_save_buffer() 301 size / 4, save); in pci_vc_do_save_buffer() 311 if (save) in pci_vc_do_save_buffer()
|
/linux/fs/ext4/ |
H A D | xattr.h | 152 static inline void ext4_write_lock_xattr(struct inode *inode, int *save) in ext4_write_lock_xattr() argument 155 *save = ext4_test_inode_state(inode, EXT4_STATE_NO_EXPAND); in ext4_write_lock_xattr() 159 static inline int ext4_write_trylock_xattr(struct inode *inode, int *save) in ext4_write_trylock_xattr() argument 163 *save = ext4_test_inode_state(inode, EXT4_STATE_NO_EXPAND); in ext4_write_trylock_xattr() 168 static inline void ext4_write_unlock_xattr(struct inode *inode, int *save) in ext4_write_unlock_xattr() argument 170 if (*save == 0) in ext4_write_unlock_xattr()
|
/linux/tools/testing/selftests/kvm/x86_64/ |
H A D | hyperv_svm_test.c | 99 vmcb->save.rip += 3; in guest_code() 106 vmcb->save.rip += 2; /* rdmsr */ in guest_code() 112 vmcb->save.rip += 2; /* rdmsr */ in guest_code() 121 vmcb->save.rip += 3; /* vmcall */ in guest_code() 127 vmcb->save.rip += 2; /* rdmsr */ in guest_code() 136 vmcb->save.rip += 2; /* rdmsr */ in guest_code()
|
/linux/arch/parisc/math-emu/ |
H A D | sfsub.c | 43 register unsigned int signless_upper_left, signless_upper_right, save; in sgl_fsub() local 55 Sgl_xortointp1(left,right,/*to*/save); in sgl_fsub() 66 if (Sgl_isinfinity(right) && save==0) in sgl_fsub() 158 Sgl_xorfromintp1(save,right,/*to*/right); in sgl_fsub() 159 Sgl_xorfromintp1(save,left,/*to*/left); in sgl_fsub() 213 if( (/*signed*/int) save >= 0 ) in sgl_fsub() 280 if( (/*signed*/int) save >= 0 ) in sgl_fsub()
|
H A D | sfadd.c | 43 register unsigned int signless_upper_left, signless_upper_right, save; in sgl_fadd() local 57 Sgl_xortointp1(left,right,/*to*/save); in sgl_fadd() 68 if (Sgl_isinfinity(right) && save!=0) in sgl_fadd() 159 Sgl_xorfromintp1(save,right,/*to*/right); in sgl_fadd() 160 Sgl_xorfromintp1(save,left,/*to*/left); in sgl_fadd() 211 if( (/*signed*/int) save < 0 ) in sgl_fadd() 277 if( (/*signed*/int) save < 0 ) in sgl_fadd()
|
H A D | dfsub.c | 42 register unsigned int signless_upper_left, signless_upper_right, save; in dbl_fsub() local 56 Dbl_xortointp1(leftp1,rightp1,/*to*/save); in dbl_fsub() 67 if (Dbl_isinfinity(rightp1,rightp2) && save==0) in dbl_fsub() 159 Dbl_xorfromintp1(save,rightp1,/*to*/rightp1); in dbl_fsub() 160 Dbl_xorfromintp1(save,leftp1,/*to*/leftp1); in dbl_fsub() 215 if( (/*signed*/int) save >= 0 ) in dbl_fsub() 284 if( (/*signed*/int) save >= 0 ) in dbl_fsub()
|
H A D | dfadd.c | 41 register unsigned int signless_upper_left, signless_upper_right, save; in dbl_fadd() local 56 Dbl_xortointp1(leftp1,rightp1,/*to*/save); in dbl_fadd() 67 if (Dbl_isinfinity(rightp1,rightp2) && save!=0) in dbl_fadd() 158 Dbl_xorfromintp1(save,rightp1,/*to*/rightp1); in dbl_fadd() 159 Dbl_xorfromintp1(save,leftp1,/*to*/leftp1); in dbl_fadd() 212 if( (/*signed*/int) save < 0 ) in dbl_fadd() 281 if( (/*signed*/int) save < 0 ) in dbl_fadd()
|
/linux/arch/mips/boot/dts/mscc/ |
H A D | ocelot_pcb120.dts | 30 phy_load_save_pins: phy-load-save-pins { 49 load-save-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>; 55 load-save-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>; 61 load-save-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>; 67 load-save-gpios = <&gpio 10 GPIO_ACTIVE_HIGH>;
|
/linux/arch/arm/include/asm/ |
H A D | fpstate.h | 52 unsigned int save[FP_HARD_SIZE]; /* as yet undefined */ member 58 unsigned int save[FP_SOFT_SIZE]; /* undefined information */ member 64 unsigned int save[IWMMXT_SIZE / sizeof(unsigned int)]; member
|
/linux/arch/arc/kernel/ |
H A D | fpu.c | 71 struct arc_fpu *save = &prev->thread.fpu; in fpu_save_restore() local 75 save->ctrl = read_aux_reg(ARC_REG_FPU_CTRL); in fpu_save_restore() 76 save->status = read_aux_reg(ARC_REG_FPU_STATUS); in fpu_save_restore()
|
/linux/net/smc/ |
H A D | smc_cdc.h | 197 union smc_host_cursor *save, in smc_host_cursor_to_cdc() argument 200 smc_curs_copy(save, local, conn); in smc_host_cursor_to_cdc() 201 peer->count = htonl(save->count); in smc_host_cursor_to_cdc() 202 peer->wrap = htons(save->wrap); in smc_host_cursor_to_cdc() 208 union smc_host_cursor *save) in smc_host_msg_to_cdc() argument 216 smc_host_cursor_to_cdc(&peer->prod, &local->prod, save, conn); in smc_host_msg_to_cdc() 217 smc_host_cursor_to_cdc(&peer->cons, &local->cons, save, conn); in smc_host_msg_to_cdc()
|
/linux/arch/arm/kernel/ |
H A D | iwmmxt.S | 85 add r0, r10, #TI_IWMMXT_STATE @ get task Concan save area 101 beq concan_load @ no owner, skip save 196 add r2, r0, #TI_IWMMXT_STATE @ get task Concan save area 243 add r2, r0, #TI_IWMMXT_STATE @ get task Concan save area 248 @ current Concan values are in the task save area 257 mov r2, #3 @ save all regs 281 add r2, r0, #TI_IWMMXT_STATE @ get task Concan save area 318 add r3, r0, #TI_IWMMXT_STATE @ get next task Concan save area 343 add r0, r0, #TI_IWMMXT_STATE @ get task Concan save area
|
/linux/arch/sparc/lib/ |
H A D | mcount.S | 37 save %sp, -176, %sp 59 save %sp, -176, %sp 85 save %sp, -176, %sp 120 save %sp, -176, %sp
|