Home
last modified time | relevance | path

Searched full:var (Results 1 – 25 of 135) sorted by relevance

123456

/qemu/hw/acpi/
H A Daml-build.c450 Aml *var = g_new0(typeof(*var), 1); in aml_alloc() local
452 g_ptr_array_add(alloc_list, var); in aml_alloc()
453 var->block_flags = AML_NO_OPCODE; in aml_alloc()
454 var->buf = build_alloc_array(); in aml_alloc()
455 return var; in aml_alloc()
460 Aml *var = aml_alloc(); in aml_opcode() local
462 var->op = op; in aml_opcode()
463 var->block_flags = AML_OPCODE; in aml_opcode()
464 return var; in aml_opcode()
469 Aml *var = aml_alloc(); in aml_bundle() local
[all …]
/qemu/hw/uefi/
H A Dvar-service-auth.c11 #include "hw/uefi/var-service.h"
86 uefi_variable *var; in setup_mode_is_active() local
89 var = uefi_vars_find_variable(uv, EfiGlobalVariable, in setup_mode_is_active()
91 if (var) { in setup_mode_is_active()
92 value = var->data; in setup_mode_is_active()
102 uefi_variable *var; in custom_mode_is_active() local
105 var = uefi_vars_find_variable(uv, EfiCustomModeEnable, in custom_mode_is_active()
107 if (var) { in custom_mode_is_active()
108 value = var->data; in custom_mode_is_active()
116 bool uefi_vars_is_sb_pk(uefi_variable *var) in uefi_vars_is_sb_pk() argument
[all …]
H A Dvar-service-vars.c11 #include "hw/uefi/var-service.h"
12 #include "hw/uefi/var-service-api.h"
13 #include "hw/uefi/var-service-edk2.h"
57 uefi_variable *var; in uefi_vars_find_variable() local
59 QTAILQ_FOREACH(var, &uv->variables, next) { in uefi_vars_find_variable()
60 if (!uefi_str_equal(var->name, var->name_size, in uefi_vars_find_variable()
64 if (!qemu_uuid_is_equal(&var->guid, &guid)) { in uefi_vars_find_variable()
67 if (!var->data_size) { in uefi_vars_find_variable()
71 return var; in uefi_vars_find_variable()
80 uefi_variable *var; in add_variable() local
[all …]
H A Dvar-service-json.c16 #include "hw/uefi/var-service.h"
54 uefi_variable *var; in uefi_vars_to_qapi() local
60 QTAILQ_FOREACH(var, &uv->variables, next) { in uefi_vars_to_qapi()
61 if (!(var->attributes & EFI_VARIABLE_NON_VOLATILE)) { in uefi_vars_to_qapi()
66 be = qemu_uuid_bswap(var->guid); in uefi_vars_to_qapi()
68 v->name = uefi_ucs2_to_ascii(var->name, var->name_size); in uefi_vars_to_qapi()
69 v->attr = var->attributes; in uefi_vars_to_qapi()
71 v->data = generate_hexstr(var->data, var->data_size); in uefi_vars_to_qapi()
73 if (var->attributes & in uefi_vars_to_qapi()
75 v->time = generate_hexstr(&var->time, sizeof(var->time)); in uefi_vars_to_qapi()
[all …]
H A Dmeson.build5 uefi_vars_ss.add(files('var-service-core.c',
6 'var-service-json.c',
7 'var-service-vars.c',
8 'var-service-auth.c',
9 'var-service-guid.c',
10 'var-service-utils.c',
11 'var-service-policy.c',
12 'var-service-sysbus.c'))
14 if_true: files('var-service-pkcs7.c'),
15 if_false: files('var-service-pkcs7-stub.c'))
[all …]
H A Dvar-service-policy.c13 #include "hw/uefi/var-service.h"
14 #include "hw/uefi/var-service-api.h"
15 #include "hw/uefi/var-service-edk2.h"
30 .name = "uefi-var-policy",
72 uefi_variable *var) in wildcard_str_equal() argument
75 var->name, var->name_size, in wildcard_str_equal()
98 uefi_variable *var) in wildcard_find_policy() argument
103 if (!qemu_uuid_is_equal(&pol->entry->namespace, &var->guid)) { in wildcard_find_policy()
106 if (!wildcard_str_equal(pol, var)) { in wildcard_find_policy()
155 uefi_variable *var, in uefi_vars_policy_check() argument
[all …]
/qemu/qga/installer/
H A Dqemu-ga.wxs3 <?if $(var.Arch) = "64"?>
7 <?if $(var.Arch) = "32"?>
11 <?error Unexpected Arch value $(var.Arch)?>
19 Manufacturer="$(var.QEMU_GA_MANUFACTURER)"
20 Version="$(var.QEMU_GA_VERSION)"
22 <?if $(var.Arch) = 32 ?>
26 Manufacturer="$(var.QEMU_GA_MANUFACTURER)"
32 <Media Id="1" Cabinet="qemu_ga.$(var.QEMU_GA_VERSION).cab" EmbedCab="yes" />
40 <Directory Id="$(var.GaProgramFilesFolder)" Name="QEMU Guest Agent">
43 …<File Id="qemu_ga.exe" Name="qemu-ga.exe" Source="$(var.BUILD_DIR)/qga/qemu-ga.exe" KeyPath="yes" …
[all …]
/qemu/include/qemu/
H A Dcoroutine-tls.h67 * @var: the variable name
92 #define QEMU_DECLARE_CO_TLS(type, var) \ argument
93 __attribute__((noinline)) type get_##var(void); \
94 __attribute__((noinline)) void set_##var(type v); \
95 __attribute__((noinline)) type *get_ptr_##var(void);
100 * @var: the variable name
118 #define QEMU_DEFINE_CO_TLS(type, var) \ argument
119 static __thread type co_tls_##var; \
120 type get_##var(void) { asm volatile(""); return co_tls_##var; } \
121 void set_##var(type v) { asm volatile(""); co_tls_##var = v; } \
[all …]
H A Drcu_queue.h114 #define QLIST_FOREACH_RCU(var, head, field) \ argument
115 for ((var) = qatomic_rcu_read(&(head)->lh_first); \
116 (var); \
117 (var) = qatomic_rcu_read(&(var)->field.le_next))
120 #define QLIST_FOREACH_SAFE_RCU(var, head, field, next_var) \ argument
121 for ((var) = (qatomic_rcu_read(&(head)->lh_first)); \
122 (var) && \
123 ((next_var) = qatomic_rcu_read(&(var)->field.le_next), 1); \
124 (var) = (next_var))
182 #define QSIMPLEQ_FOREACH_RCU(var, head, field) \ argument
[all …]
H A Dqueue.h166 #define QLIST_FOREACH(var, head, field) \ argument
167 for ((var) = ((head)->lh_first); \
168 (var); \
169 (var) = ((var)->field.le_next))
171 #define QLIST_FOREACH_SAFE(var, head, field, next_var) \ argument
172 for ((var) = ((head)->lh_first); \
173 (var) && ((next_var) = ((var)->field.le_next), 1); \
174 (var) = (next_var))
253 #define QSLIST_FOREACH(var, head, field) \ argument
254 for((var) = (head)->slh_first; (var); (var) = (var)->field.sle_next)
[all …]
H A Dlockable.h133 #define WITH_QEMU_LOCK_GUARD_(x, var) \ argument
134 for (g_autoptr(QemuLockable) var = \
136 var; \
137 qemu_lockable_auto_unlock(var), var = NULL)
/qemu/scripts/
H A Dminikconf.py59 def add_edges_to(self, var): argument
71 def add_edges_to(self, var): argument
72 self.lhs.add_edges_to(var)
73 self.rhs.add_edges_to(var)
84 def add_edges_to(self, var): argument
85 self.lhs.add_edges_to(var)
86 self.rhs.add_edges_to(var)
96 def add_edges_to(self, var): argument
97 self.lhs.add_edges_to(var)
101 class Var(Expr): class in KconfigData
[all …]
/qemu/tests/tcg/ppc64/
H A Dbyte_reverse.c5 unsigned long var; in main() local
7 var = 0xFEDCBA9876543210; in main()
8 asm("brh %0, %0" : "+r"(var)); in main()
9 assert(var == 0xDCFE98BA54761032); in main()
11 var = 0xFEDCBA9876543210; in main()
12 asm("brw %0, %0" : "+r"(var)); in main()
13 assert(var == 0x98BADCFE10325476); in main()
15 var = 0xFEDCBA9876543210; in main()
16 asm("brd %0, %0" : "+r"(var)); in main()
17 assert(var == 0x1032547698BADCFE); in main()
/qemu/pc-bios/optionrom/
H A Doptionrom.h61 .macro read_fw VAR
62 mov $\VAR, %ax
81 .macro read_fw_dma VAR, SIZE, ADDR
97 movl $(\VAR << 16) | (FW_CFG_DMA_CTL_READ | FW_CFG_DMA_CTL_SELECT), %eax
121 #define read_fw_blob_dma(var) \ argument
122 read_fw var ## _SIZE; \
124 read_fw var ## _ADDR; \
126 read_fw_dma var ## _DATA, %ecx, %edi
128 #define read_fw_blob_dma(var) read_fw_blob(var)
131 #define read_fw_blob_pre(var) \ argument
[all …]
/qemu/util/
H A Dthrottle.c614 * @var: the ThrottleLimits to write to
616 void throttle_config_to_limits(ThrottleConfig *cfg, ThrottleLimits *var) in throttle_config_to_limits() argument
618 var->bps_total = cfg->buckets[THROTTLE_BPS_TOTAL].avg; in throttle_config_to_limits()
619 var->bps_read = cfg->buckets[THROTTLE_BPS_READ].avg; in throttle_config_to_limits()
620 var->bps_write = cfg->buckets[THROTTLE_BPS_WRITE].avg; in throttle_config_to_limits()
621 var->iops_total = cfg->buckets[THROTTLE_OPS_TOTAL].avg; in throttle_config_to_limits()
622 var->iops_read = cfg->buckets[THROTTLE_OPS_READ].avg; in throttle_config_to_limits()
623 var->iops_write = cfg->buckets[THROTTLE_OPS_WRITE].avg; in throttle_config_to_limits()
624 var->bps_total_max = cfg->buckets[THROTTLE_BPS_TOTAL].max; in throttle_config_to_limits()
625 var->bps_read_max = cfg->buckets[THROTTLE_BPS_READ].max; in throttle_config_to_limits()
[all …]
/qemu/.gitlab-ci.d/
H A Dwindows.yml8 - msys64/var/cache
32 - If ( !(Test-Path -Path msys64\var\cache ) ) {
33 mkdir msys64\var\cache
38 - if ( Test-Path -Path msys64\var\cache\msys2.exe.sig ) {
40 …if ( ((Get-FileHash msys2.exe.sig).Hash -ne (Get-FileHash msys64\var\cache\msys2.exe.sig).Hash) ) {
42 Remove-Item -Path msys64\var\cache\msys2.exe.sig ;
43 if ( Test-Path -Path msys64\var\cache\msys2.exe ) {
44 Remove-Item -Path msys64\var\cache\msys2.exe
51 if ( Test-Path -Path msys64\var\cache\msys2.exe ) {
52 Remove-Item -Path msys64\var\cache\msys2.exe
[all …]
/qemu/scripts/coccinelle/
H A Dreturn_directly.cocci3 identifier VAR;
11 - T VAR;
12 ... when != VAR
14 - VAR = (E);
15 - return VAR;
17 ... when != VAR
/qemu/target/loongarch/tcg/insn_trans/
H A Dtrans_fcmp.c.inc28 TCGv var, src1, src2;
38 var = tcg_temp_new();
44 fn(var, tcg_env, src1, src2, tcg_constant_i32(flags));
46 tcg_gen_st8_tl(var, tcg_env, offsetof(CPULoongArchState, cf[a->cd]));
52 TCGv var, src1, src2;
62 var = tcg_temp_new();
68 fn(var, tcg_env, src1, src2, tcg_constant_i32(flags));
70 tcg_gen_st8_tl(var, tcg_env, offsetof(CPULoongArchState, cf[a->cd]));
/qemu/target/i386/hvf/
H A Dx86.c29 /* static uint32_t x86_segment_access_rights(struct x86_segment_descriptor *var)
33 if (!var->p) {
38 ar = var->type & 15;
39 ar |= (var->s & 1) << 4;
40 ar |= (var->dpl & 3) << 5;
41 ar |= (var->p & 1) << 7;
42 ar |= (var->avl & 1) << 12;
43 ar |= (var->l & 1) << 13;
44 ar |= (var->db & 1) << 14;
45 ar |= (var->g & 1) << 15;
/qemu/target/arm/tcg/
H A Dtranslate-a32.h32 void load_reg_var(DisasContext *s, TCGv_i32 var, int reg);
41 void gen_set_cpsr(TCGv_i32 var, uint32_t mask);
48 void gen_rev16(TCGv_i32 dest, TCGv_i32 var);
76 void store_cpu_offset(TCGv_i32 var, int offset, int size);
104 void store_reg(DisasContext *s, int reg, TCGv_i32 var);
165 /* Set NZCV flags from the high 4 bits of var. */
166 #define gen_set_nzcv(var) gen_set_cpsr(var, CPSR_NZCV) argument
169 static inline void gen_swap_half(TCGv_i32 dest, TCGv_i32 var) in gen_swap_half() argument
171 tcg_gen_rotri_i32(dest, var, 16); in gen_swap_half()
/qemu/scripts/qapi/
H A Dvisit.py140 for var in branches.variants:
141 case_str = c_enum_const(tag_member.type.name, var.name,
143 ret += var.ifcond.gen_if()
144 if var.type.name == 'q_empty':
157 c_type=var.type.c_name(), c_name=c_name(var.name))
159 ret += var.ifcond.gen_endif()
245 for var in alternatives.variants:
246 ret += var.ifcond.gen_if()
250 case=var.type.alternate_qtype())
251 if isinstance(var.type, QAPISchemaObjectType):
[all …]
H A Dtypes.py165 for var in variants.variants if variants else ():
166 obj = var.type
233 for var in variants.variants:
234 if var.type.name == 'q_empty':
236 ret += var.ifcond.gen_if()
240 c_type=var.type.c_unboxed_type(),
241 c_name=c_name(var.name))
242 ret += var.ifcond.gen_endif()
/qemu/include/qobject/
H A Dqlist.h41 #define QLIST_FOREACH_ENTRY(qlist, var) \ argument
42 for ((var) = QTAILQ_FIRST(&(qlist)->head); \
43 (var); \
44 (var) = QTAILQ_NEXT((var), next))
/qemu/docs/user/
H A Dmain.rst72 ``-E var=value``
73 Set environment var to value.
75 ``-U var``
76 Remove var from the environment.
233 ``-E var=value``
234 Set environment var to value.
236 ``-U var``
237 Remove var from the environment.
/qemu/include/hw/uefi/
H A Dvar-service.h12 #include "hw/uefi/var-service-edk2.h"
160 bool uefi_vars_is_sb_pk(uefi_variable *var);
161 bool uefi_vars_is_sb_any(uefi_variable *var);
162 efi_status uefi_vars_check_auth_2(uefi_vars_state *uv, uefi_variable *var,
164 efi_status uefi_vars_check_secure_boot(uefi_vars_state *uv, uefi_variable *var);
184 uefi_variable *var,

123456