Lines Matching refs:state

86     struct efi_rs_state state = { .cr3 = 0 };  in efi_rs_enter()  local
89 return state; in efi_rs_enter()
91 state.cr3 = read_cr3(); in efi_rs_enter()
116 return state; in efi_rs_enter()
119 void efi_rs_leave(struct efi_rs_state *state) in efi_rs_leave() argument
123 if ( !state->cr3 ) in efi_rs_leave()
125 switch_cr3_cr4(state->cr3, read_cr4()); in efi_rs_leave()
152 struct efi_rs_state state = efi_rs_enter(); in efi_get_time() local
155 if ( !state.cr3 ) in efi_get_time()
160 efi_rs_leave(&state); in efi_get_time()
172 struct efi_rs_state state = efi_rs_enter(); in efi_halt_system() local
174 if ( !state.cr3 ) in efi_halt_system()
177 efi_rs_leave(&state); in efi_halt_system()
185 struct efi_rs_state state = efi_rs_enter(); in efi_reset_system() local
187 if ( !state.cr3 ) in efi_reset_system()
191 efi_rs_leave(&state); in efi_reset_system()
353 struct efi_rs_state state; in efi_runtime_call() local
373 state = efi_rs_enter(); in efi_runtime_call()
374 if ( !state.cr3 ) in efi_runtime_call()
379 efi_rs_leave(&state); in efi_runtime_call()
395 state = efi_rs_enter(); in efi_runtime_call()
396 if ( !state.cr3 ) in efi_runtime_call()
401 efi_rs_leave(&state); in efi_runtime_call()
411 state = efi_rs_enter(); in efi_runtime_call()
412 if ( !state.cr3 ) in efi_runtime_call()
418 efi_rs_leave(&state); in efi_runtime_call()
435 state = efi_rs_enter(); in efi_runtime_call()
436 if ( !state.cr3 ) in efi_runtime_call()
446 efi_rs_leave(&state); in efi_runtime_call()
455 state = efi_rs_enter(); in efi_runtime_call()
456 if ( state.cr3 ) in efi_runtime_call()
460 efi_rs_leave(&state); in efi_runtime_call()
499 state = efi_rs_enter(); in efi_runtime_call()
500 if ( state.cr3 ) in efi_runtime_call()
505 efi_rs_leave(&state); in efi_runtime_call()
547 state = efi_rs_enter(); in efi_runtime_call()
548 if ( state.cr3 ) in efi_runtime_call()
554 efi_rs_leave(&state); in efi_runtime_call()
584 state = efi_rs_enter(); in efi_runtime_call()
585 if ( state.cr3 ) in efi_runtime_call()
590 efi_rs_leave(&state); in efi_runtime_call()
641 state = efi_rs_enter(); in efi_runtime_call()
642 if ( !state.cr3 ) in efi_runtime_call()
649 efi_rs_leave(&state); in efi_runtime_call()