Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 169) sorted by relevance

1234567

/xen-4.10.0-shim-comet/xen/tools/
A Dgen-cpuid.py126 state.nr_entries = nr_entries = (max(state.names.keys()) >> 5) + 1
132 state.known = featureset_to_uint32s(state.names.keys(), nr_entries)
134 state.special = featureset_to_uint32s(state.raw_special, nr_entries)
135 state.pv = featureset_to_uint32s(state.raw_pv, nr_entries)
136 state.hvm_shadow = featureset_to_uint32s(state.raw_hvm_shadow, nr_entries)
137 state.hvm_hap = featureset_to_uint32s(state.raw_hvm_hap, nr_entries)
281 % (state.names[f], state.names[feat]))
289 state.nr_deep_deps = len(state.deep_deps.keys())
317 state.output.write(
326 state.output.write(
[all …]
/xen-4.10.0-shim-comet/xen/common/xz/
A Dlzma2.h64 static inline void INIT lzma_state_literal(enum lzma_state *state) in lzma_state_literal() argument
66 if (*state <= STATE_SHORTREP_LIT_LIT) in lzma_state_literal()
67 *state = STATE_LIT_LIT; in lzma_state_literal()
68 else if (*state <= STATE_LIT_SHORTREP) in lzma_state_literal()
69 *state -= 3; in lzma_state_literal()
71 *state -= 6; in lzma_state_literal()
75 static inline void INIT lzma_state_match(enum lzma_state *state) in lzma_state_match() argument
77 *state = *state < LIT_STATES ? STATE_LIT_MATCH : STATE_NONLIT_MATCH; in lzma_state_match()
83 *state = *state < LIT_STATES ? STATE_LIT_LONGREP : STATE_NONLIT_REP; in lzma_state_long_rep()
89 *state = *state < LIT_STATES ? STATE_LIT_SHORTREP : STATE_NONLIT_REP; in lzma_state_short_rep()
[all …]
/xen-4.10.0-shim-comet/xen/common/efi/
A Druntime.c89 return state; in efi_rs_enter()
116 return state; in efi_rs_enter()
121 if ( !state->cr3 ) in efi_rs_leave()
123 write_cr3(state->cr3); in efi_rs_leave()
153 if ( !state.cr3 ) in efi_get_time()
158 efi_rs_leave(&state); in efi_get_time()
172 if ( !state.cr3 ) in efi_halt_system()
175 efi_rs_leave(&state); in efi_halt_system()
185 if ( !state.cr3 ) in efi_reset_system()
189 efi_rs_leave(&state); in efi_reset_system()
[all …]
/xen-4.10.0-shim-comet/tools/libxl/
A Dlibxlu_pci.c50 unsigned state = STATE_DOMAIN; in xlu_pci_parse_bdf() local
58 switch(state) { in xlu_pci_parse_bdf()
61 state = STATE_BUS; in xlu_pci_parse_bdf()
70 state = STATE_DEV; in xlu_pci_parse_bdf()
76 state = STATE_FUNC; in xlu_pci_parse_bdf()
89 state = STATE_FUNC; in xlu_pci_parse_bdf()
103 state = STATE_VSLOT; in xlu_pci_parse_bdf()
131 state = STATE_OPTIONS_V; in xlu_pci_parse_bdf()
187 unsigned state = STATE_TYPE; in xlu_rdm_parse() local
194 switch(state) { in xlu_rdm_parse()
[all …]
A Dlibxl_vnuma.c167 qsort(state->vmemranges, state->num_vmemranges, sizeof(xen_vmemrange_t), in libxl__vnuma_config_check()
171 if (state->vmemranges[i].end < state->vmemranges[i].start) { in libxl__vnuma_config_check()
178 if (state->vmemranges[i].end > state->vmemranges[i+1].start) { in libxl__vnuma_config_check()
181 state->vmemranges[i].start, state->vmemranges[i].end, in libxl__vnuma_config_check()
182 state->vmemranges[i+1].start, state->vmemranges[i+1].end); in libxl__vnuma_config_check()
236 state->vmemranges = v; in libxl__vnuma_build_vmemrange_pv_generic()
237 state->num_vmemranges = i; in libxl__vnuma_build_vmemrange_pv_generic()
248 assert(state->vmemranges == NULL); in libxl__vnuma_build_vmemrange_pv()
274 assert(state->vmemranges == NULL); in libxl__vnuma_build_vmemrange_hvm()
313 state->vmemranges = vmemranges; in libxl__vnuma_build_vmemrange_hvm()
[all …]
A Dlibxl_dom.c487 state->store_port = xc_evtchn_alloc_unbound(ctx->xch, domid, state->store_domid); in libxl__build_pre()
488 state->console_port = xc_evtchn_alloc_unbound(ctx->xch, domid, state->console_domid); in libxl__build_pre()
650 xs_introduce_domain(ctx->xsh, domid, state->store_mfn, state->store_port); in libxl__build_post()
797 if ( state->pv_ramdisk.path && strlen(state->pv_ramdisk.path) ) { in libxl__build_pv()
1041 state->pv_kernel.size, state->pv_cmdline); in libxl__domain_firmware()
1048 state->pv_kernel.path, state->pv_cmdline); in libxl__domain_firmware()
1049 rc = xc_dom_module_file(dom, state->pv_kernel.path, state->pv_cmdline); in libxl__domain_firmware()
1073 if (state->pv_ramdisk.path && strlen(state->pv_ramdisk.path)) { in libxl__domain_firmware()
1192 (state->shim_path ? state->shim_cmdline : state->pv_cmdline) : in libxl__build_hvm()
1307 &state->store_mfn, state->console_port, in libxl__build_hvm()
[all …]
A Dlibxl_dom_suspend.c106 libxl__xswait_state *xswa, int rc, const char *state);
132 static bool domain_suspend_pvcontrol_acked(const char *state) { in domain_suspend_pvcontrol_acked() argument
134 if (!state) return 1; in domain_suspend_pvcontrol_acked()
135 return strcmp(state,"suspend"); in domain_suspend_pvcontrol_acked()
223 libxl__xswait_state *xswa, int rc, const char *state) in domain_suspend_common_pvcontrol_suspending() argument
229 if (!rc && !domain_suspend_pvcontrol_acked(state)) in domain_suspend_common_pvcontrol_suspending()
252 if (domain_suspend_pvcontrol_acked(state)) in domain_suspend_common_pvcontrol_suspending()
272 assert(domain_suspend_pvcontrol_acked(state)); in domain_suspend_common_pvcontrol_suspending()
427 const char *path, *state; in libxl__domain_resume_device_model() local
434 state = libxl__xs_read(gc, XBT_NULL, path); in libxl__domain_resume_device_model()
[all …]
A Dlibxl_create.c503 if (state->pv_ramdisk.path) { in libxl__domain_build()
507 if (state->pv_cmdline) { in libxl__domain_build()
515 state->shim_cmdline = GCSPRINTF("%s%s%s", in libxl__domain_build()
1083 state->pv_cmdline = bl->cmdline; in domcreate_bootloader_done()
1162 state->store_mfn = store_mfn; in libxl__srm_callout_callback_restore_results()
1163 state->console_mfn = console_mfn; in libxl__srm_callout_callback_restore_results()
1209 if (state->pv_ramdisk.path) { in domcreate_stream_done()
1213 if (state->pv_cmdline) { in domcreate_stream_done()
1234 state->saved_state = GCSPRINTF( in domcreate_stream_done()
1759 libxl__domain_build_state *state; in do_domain_soft_reset() local
[all …]
A Dlibxl_arch.h39 libxl__domain_build_state *state,
52 libxl__domain_build_state *state);
59 libxl__domain_build_state *state);
/xen-4.10.0-shim-comet/xen/common/
A Dstop_machine.c44 enum stopmachine_state state; member
57 static void stopmachine_set_state(enum stopmachine_state state) in stopmachine_set_state() argument
61 stopmachine_data.state = state; in stopmachine_set_state()
99 stopmachine_data.state = STOPMACHINE_START; in stop_machine_run()
138 enum stopmachine_state state = STOPMACHINE_START; in stopmachine_action() local
144 while ( state != STOPMACHINE_EXIT ) in stopmachine_action()
146 while ( stopmachine_data.state == state ) in stopmachine_action()
149 state = stopmachine_data.state; in stopmachine_action()
150 switch ( state ) in stopmachine_action()
A Dunlzma.c283 int state; member
376 if (cst->state < 4) in process_bit0()
377 cst->state = 0; in process_bit0()
379 cst->state -= 3; in process_bit0()
381 cst->state -= 6; in process_bit0()
401 cst->state = cst->state < LZMA_NUM_LIT_STATES ? 0 : 3; in process_bit1()
409 + (cst->state << in process_bit1()
415 cst->state = cst->state < LZMA_NUM_LIT_STATES ? in process_bit1()
445 cst->state = cst->state < LZMA_NUM_LIT_STATES ? 8 : 11; in process_bit1()
479 if (cst->state < 4) { in process_bit1()
[all …]
/xen-4.10.0-shim-comet/tools/blktap2/drivers/
A Dtapdisk-interface.c57 driver->name, driver->refcnt, driver->state, driver->type); in td_load()
80 if (!td_flag_test(driver->state, TD_DRIVER_OPEN)) { in __td_open()
88 td_flag_set(driver->state, TD_DRIVER_OPEN); in __td_open()
91 driver->state, driver->type); in __td_open()
118 td_flag_clear(driver->state, TD_DRIVER_OPEN); in td_close()
122 driver->name, driver->refcnt, driver->state, driver->type); in td_close()
136 if (!td_flag_test(driver->state, TD_DRIVER_OPEN)) in td_get_parent_id()
152 if (!td_flag_test(driver->state, TD_DRIVER_OPEN) || in td_validate_parent()
153 !td_flag_test(pdriver->state, TD_DRIVER_OPEN)) in td_validate_parent()
172 if (!td_flag_test(driver->state, TD_DRIVER_OPEN)) { in td_queue_write()
[all …]
A Dtapdisk-vbd.c193 td_flag_set(vbd->state, TD_VBD_CLOSED); in tapdisk_vbd_close_vdi()
435 td_flag_clear(vbd->state, TD_VBD_CLOSED); in __tapdisk_vbd_open_vdi()
890 td_flag_set(vbd->state, TD_VBD_QUIESCED); in tapdisk_vbd_quiesce_queue()
897 td_flag_clear(vbd->state, TD_VBD_QUIESCED); in tapdisk_vbd_start_queue()
906 td_flag_set(vbd->state, TD_VBD_DEAD); in tapdisk_vbd_kill_queue()
948 td_flag_set(vbd->state, TD_VBD_CLOSED); in tapdisk_vbd_close_and_reopen_image()
967 td_flag_set(vbd->state, TD_VBD_PAUSED); in tapdisk_vbd_pause()
1003 td_flag_clear(vbd->state, TD_VBD_PAUSED); in tapdisk_vbd_resume()
1539 if (td_flag_test(vbd->state, TD_VBD_DEAD)) in tapdisk_vbd_issue_requests()
1611 td_flag_set(vbd->state, TD_VBD_PAUSED); in tapdisk_vbd_pause_ring()
[all …]
A Dtapdisk-driver.c61 td_flag_set(driver->state, TD_DRIVER_RDONLY); in tapdisk_driver_allocate()
81 if (td_flag_test(driver->state, TD_DRIVER_OPEN)) in tapdisk_driver_free()
83 driver->name, driver->state); in tapdisk_driver_free()
/xen-4.10.0-shim-comet/xen/arch/x86/acpi/
A Dpower.c139 static void acpi_sleep_prepare(u32 state) in acpi_sleep_prepare() argument
143 if ( state != ACPI_STATE_S3 ) in acpi_sleep_prepare()
159 static void acpi_sleep_post(u32 state) {} in acpi_sleep_post() argument
162 static int enter_state(u32 state) in enter_state() argument
168 if ( (state <= ACPI_STATE_S0) || (state > ACPI_S_STATES_MAX) ) in enter_state()
177 printk(XENLOG_INFO "Preparing system for ACPI S%d state.\n", state); in enter_state()
193 acpi_sleep_prepare(state); in enter_state()
196 printk("Entering ACPI S%d state.\n", state); in enter_state()
214 switch ( state ) in enter_state()
243 if ( (state == ACPI_STATE_S3) && error ) in enter_state()
[all …]
/xen-4.10.0-shim-comet/xen/tools/kconfig/
A Dstreamline_config.pl157 my $state = "NONE";
203 $state = "NEW";
213 $state = "DEP";
217 } elsif ($state eq "NEW" && /^\s*depends\s+on\s+(.*)$/) {
218 $state = "DEP";
220 } elsif ($state eq "DEP" && /^\s*depends\s+on\s+(.*)$/) {
222 } elsif ($state eq "DEP" && /^\s*def(_(bool|tristate)|ault)\s+(\S.*)$/) {
231 } elsif ($state ne "NONE" && /^\s*select\s+(\S+)/) {
240 } elsif ($state ne "NONE" && /^\s*tristate\s\S/) {
261 $state = "NONE";
A Dnconf.c1028 state->in_search = 1-state->in_search; in do_match()
1029 bzero(state->pattern, sizeof(state->pattern)); in do_match()
1032 } else if (!state->in_search) in do_match()
1036 state->pattern[strlen(state->pattern)] = c; in do_match()
1037 state->pattern[strlen(state->pattern)] = '\0'; in do_match()
1040 state->match_direction); in do_match()
1044 state->match_direction); in do_match()
1048 state->match_direction); in do_match()
1050 state->pattern[strlen(state->pattern)-1] = '\0'; in do_match()
1056 state->in_search = 0; in do_match()
[all …]
/xen-4.10.0-shim-comet/xen/arch/x86/x86_emulate/
A Dx86_emulate.h258 const struct x86_emulate_state *state,
633 x86_insn_opsize(const struct x86_emulate_state *state);
635 x86_insn_modrm(const struct x86_emulate_state *state,
638 x86_insn_operand_ea(const struct x86_emulate_state *state,
641 x86_insn_immediate(const struct x86_emulate_state *state,
644 x86_insn_length(const struct x86_emulate_state *state,
647 x86_insn_is_mem_access(const struct x86_emulate_state *state,
650 x86_insn_is_mem_write(const struct x86_emulate_state *state,
653 x86_insn_is_portio(const struct x86_emulate_state *state,
656 x86_insn_is_cr_access(const struct x86_emulate_state *state,
[all …]
A Dx86_emulate.c2392 memset(state, 0, sizeof(*state)); in x86_decode()
2729 ea.mem.off = state->regs->bx + state->regs->si; in x86_decode()
2732 ea.mem.off = state->regs->bx + state->regs->di; in x86_decode()
2736 ea.mem.off = state->regs->bp + state->regs->si; in x86_decode()
2740 ea.mem.off = state->regs->bp + state->regs->di; in x86_decode()
2867 state->desc = d; in x86_decode()
3029 d = state.desc; in x86_emulate()
3030 #define state (&state) in x86_emulate() macro
8014 #undef state in x86_emulate()
8109 struct x86_emulate_state *state = &this_cpu(state); in x86_decode_insn() local
[all …]
/xen-4.10.0-shim-comet/xen/arch/x86/x86_64/
A Dcpu_idle.c52 compat_processor_cx_t *state) in copy_from_compat_state() argument
63 XLAT_processor_cx(xen_state, state); in copy_from_compat_state()
87 compat_processor_cx_t state; \ in compat_set_cx_pminfo()
101 if ( unlikely(copy_from_guest_offset(&state, states, i, 1)) ) \ in compat_set_cx_pminfo()
103 if ( unlikely(copy_from_compat_state(&xen_states[i], &state)) ) \ in compat_set_cx_pminfo()
/xen-4.10.0-shim-comet/xen/arch/x86/hvm/svm/
A Demulate.c90 struct x86_emulate_state *state; in __get_instruction_length_from_list() local
112 state = x86_decode_insn(&ctxt.ctxt, hvmemul_insn_fetch); in __get_instruction_length_from_list()
113 if ( IS_ERR_OR_NULL(state) ) in __get_instruction_length_from_list()
116 inst_len = x86_insn_length(state, &ctxt.ctxt); in __get_instruction_length_from_list()
117 modrm_mod = x86_insn_modrm(state, &modrm_rm, &modrm_reg); in __get_instruction_length_from_list()
118 x86_emulate_free_state(state); in __get_instruction_length_from_list()
/xen-4.10.0-shim-comet/xen/arch/x86/pv/
A Demul-gate-op.c192 struct x86_emulate_state *state; in pv_emulate_gate_op() local
229 state = x86_decode_insn(&ctxt.ctxt, read_mem); in pv_emulate_gate_op()
231 if ( IS_ERR_OR_NULL(state) ) in pv_emulate_gate_op()
233 if ( PTR_ERR(state) == -X86EMUL_EXCEPTION ) in pv_emulate_gate_op()
249 opnd_sel = x86_insn_immediate(state, 1); in pv_emulate_gate_op()
252 if ( x86_insn_modrm(state, NULL, &modrm_345) >= 3 ) in pv_emulate_gate_op()
263 base = x86_insn_operand_ea(state, &seg); in pv_emulate_gate_op()
264 rc = read_mem(seg, base + (x86_insn_opsize(state) >> 3), in pv_emulate_gate_op()
271 insn_len = x86_insn_length(state, &ctxt.ctxt); in pv_emulate_gate_op()
272 x86_emulate_free_state(state); in pv_emulate_gate_op()
/xen-4.10.0-shim-comet/tools/xl/
A Dxl_utils.c205 int firstset = 0, state = 0; in print_bitmap() local
213 switch (state) { in print_bitmap()
218 state++; in print_bitmap()
224 fprintf(stream, "%s%d", state > 1 ? "," : "", firstset); in print_bitmap()
227 state = 2; in print_bitmap()
232 switch (state) { in print_bitmap()
244 fprintf(stream, "%s%d", state > 1 ? "," : "", firstset); in print_bitmap()
/xen-4.10.0-shim-comet/tools/misc/
A Dxen-livepatch.c50 static const char *state2str(unsigned int state) in state2str() argument
58 if (state >= ARRAY_SIZE(names) || !names[state]) in state2str()
61 return names[state]; in state2str()
126 printf("%-40s| %s", str, state2str(info[i].state)); in list_func()
327 if ( status.state == action_options[idx].expected ) in action_func()
334 if ( action_options[idx].allow & status.state ) in action_func()
352 name, state2str(status.state), in action_func()
373 rc = status.state; in action_func()
/xen-4.10.0-shim-comet/xen/drivers/char/
A Dehci-dbgp.c324 } state; member
436 dbgp->state = dbgp_unsafe; in dbgp_issue_command()
443 if ( dbgp->state != dbgp_unsafe ) in dbgp_issue_command()
444 dbgp->state = state; in dbgp_issue_command()
453 if ( dbgp->state == dbgp_idle ) in dbgp_check_for_completion()
506 if ( dbgp->state != dbgp_unsafe ) in dbgp_check_for_completion()
507 dbgp->state = dbgp_idle; in dbgp_check_for_completion()
525 dbgp->state = dbgp_unsafe; in dbgp_wait_until_complete()
990 dbgp->state = dbgp_idle; in ehci_dbgp_external_startup()
1175 if ( dbgp->state == dbgp_idle ) in ehci_dbgp_flush()
[all …]

Completed in 67 milliseconds

1234567