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
121 if ( !state->cr3 ) in efi_rs_leave()
123 write_cr3(state->cr3); in efi_rs_leave()
150 struct efi_rs_state state = efi_rs_enter(); in efi_get_time() local
153 if ( !state.cr3 ) in efi_get_time()
158 efi_rs_leave(&state); in efi_get_time()
170 struct efi_rs_state state = efi_rs_enter(); in efi_halt_system() local
172 if ( !state.cr3 ) in efi_halt_system()
175 efi_rs_leave(&state); in efi_halt_system()
183 struct efi_rs_state state = efi_rs_enter(); in efi_reset_system() local
185 if ( !state.cr3 ) in efi_reset_system()
189 efi_rs_leave(&state); in efi_reset_system()
212 struct efi_rs_state state = efi_rs_enter(); in efi_get_info() local
214 if ( !state.cr3 ) in efi_get_info()
217 efi_rs_leave(&state); in efi_get_info()
343 struct efi_rs_state state; in efi_runtime_call() local
363 state = efi_rs_enter(); in efi_runtime_call()
364 if ( !state.cr3 ) in efi_runtime_call()
369 efi_rs_leave(&state); in efi_runtime_call()
385 state = efi_rs_enter(); in efi_runtime_call()
386 if ( !state.cr3 ) in efi_runtime_call()
391 efi_rs_leave(&state); in efi_runtime_call()
401 state = efi_rs_enter(); in efi_runtime_call()
402 if ( !state.cr3 ) in efi_runtime_call()
408 efi_rs_leave(&state); in efi_runtime_call()
425 state = efi_rs_enter(); in efi_runtime_call()
426 if ( !state.cr3 ) in efi_runtime_call()
436 efi_rs_leave(&state); in efi_runtime_call()
445 state = efi_rs_enter(); in efi_runtime_call()
446 if ( state.cr3 ) in efi_runtime_call()
450 efi_rs_leave(&state); in efi_runtime_call()
484 state = efi_rs_enter(); in efi_runtime_call()
485 if ( state.cr3 ) in efi_runtime_call()
490 efi_rs_leave(&state); in efi_runtime_call()
527 state = efi_rs_enter(); in efi_runtime_call()
528 if ( state.cr3 ) in efi_runtime_call()
534 efi_rs_leave(&state); in efi_runtime_call()
564 state = efi_rs_enter(); in efi_runtime_call()
565 if ( state.cr3 ) in efi_runtime_call()
570 efi_rs_leave(&state); in efi_runtime_call()
619 state = efi_rs_enter(); in efi_runtime_call()
620 if ( !state.cr3 || (efi_rs->Hdr.Revision >> 16) < 2 ) in efi_runtime_call()
622 efi_rs_leave(&state); in efi_runtime_call()
630 efi_rs_leave(&state); in efi_runtime_call()
638 state = efi_rs_enter(); in efi_runtime_call()
639 if ( !state.cr3 || (efi_rs->Hdr.Revision >> 16) < 2 ) in efi_runtime_call()
641 efi_rs_leave(&state); in efi_runtime_call()
644 efi_rs_leave(&state); in efi_runtime_call()