Lines Matching refs:ctxt
319 .macro get_vcpu_ptr vcpu, ctxt
320 get_host_ctxt \ctxt, \vcpu
321 ldr \vcpu, [\ctxt, #HOST_CONTEXT_VCPU]
324 .macro get_loaded_vcpu vcpu, ctxt
325 adr_this_cpu \ctxt, kvm_hyp_ctxt, \vcpu
326 ldr \vcpu, [\ctxt, #HOST_CONTEXT_VCPU]
329 .macro set_loaded_vcpu vcpu, ctxt, tmp
330 adr_this_cpu \ctxt, kvm_hyp_ctxt, \tmp
331 str \vcpu, [\ctxt, #HOST_CONTEXT_VCPU]
357 .macro save_callee_saved_regs ctxt
358 str x18, [\ctxt, #CPU_XREG_OFFSET(18)]
359 stp x19, x20, [\ctxt, #CPU_XREG_OFFSET(19)]
360 stp x21, x22, [\ctxt, #CPU_XREG_OFFSET(21)]
361 stp x23, x24, [\ctxt, #CPU_XREG_OFFSET(23)]
362 stp x25, x26, [\ctxt, #CPU_XREG_OFFSET(25)]
363 stp x27, x28, [\ctxt, #CPU_XREG_OFFSET(27)]
364 stp x29, lr, [\ctxt, #CPU_XREG_OFFSET(29)]
367 .macro restore_callee_saved_regs ctxt
369 ldr x18, [\ctxt, #CPU_XREG_OFFSET(18)]
370 ldp x19, x20, [\ctxt, #CPU_XREG_OFFSET(19)]
371 ldp x21, x22, [\ctxt, #CPU_XREG_OFFSET(21)]
372 ldp x23, x24, [\ctxt, #CPU_XREG_OFFSET(23)]
373 ldp x25, x26, [\ctxt, #CPU_XREG_OFFSET(25)]
374 ldp x27, x28, [\ctxt, #CPU_XREG_OFFSET(27)]
375 ldp x29, lr, [\ctxt, #CPU_XREG_OFFSET(29)]
378 .macro save_sp_el0 ctxt, tmp
380 str \tmp, [\ctxt, #CPU_SP_EL0_OFFSET]
383 .macro restore_sp_el0 ctxt, tmp
384 ldr \tmp, [\ctxt, #CPU_SP_EL0_OFFSET]