Home
last modified time | relevance | path

Searched refs:function (Results 1 – 25 of 195) sorted by relevance

12345678

/qemu/include/qemu/
H A Dmodule.h28 #define module_init(function, type) \ argument
29 static void __attribute__((constructor)) do_qemu_init_ ## function(void) \
31 register_dso_module_init(function, type); \
35 #define module_init(function, type) \ argument
36 static void __attribute__((constructor)) do_qemu_init_ ## function(void) \
38 register_module_init(function, type); \
54 #define block_init(function) module_init(function, MODULE_INIT_BLOCK) argument
55 #define opts_init(function) module_init(function, MODULE_INIT_OPTS) argument
56 #define type_init(function) module_init(function, MODULE_INIT_QOM) argument
57 #define trace_init(function) module_init(function, MODULE_INIT_TRACE) argument
[all …]
/qemu/target/riscv/
H A Dinsn16.decode21 %rs1_3 7:3 !function=ex_rvc_register
22 %rs2_3 2:3 !function=ex_rvc_register
24 %r1s 7:3 !function=ex_sreg_register
25 %r2s 2:3 !function=ex_sreg_register
29 %nzuimm_ciw 7:4 11:2 5:1 6:1 !function=ex_shift_2
30 %uimm_cl_q 10:1 5:2 11:2 !function=ex_shift_4
31 %uimm_cl_d 5:2 10:3 !function=ex_shift_3
32 %uimm_cl_w 5:1 10:3 6:1 !function=ex_shift_2
33 %imm_cb 12:s1 5:2 2:1 10:2 3:2 !function=ex_shift_1
34 %imm_cj 12:s1 8:1 9:2 6:1 7:1 2:1 11:1 3:3 !function=ex_shift_1
[all …]
/qemu/docs/devel/
H A Dcontrol-flow-integrity.rst15 function calls have not been altered by an attacker.
17 function calls performed through function pointers, always call a "compatible"
18 function. A compatible function is a function with the same signature of the
19 function pointer declared in the source code.
22 the signature of every function and every function pointer used in the code.
28 In case of a CFI violation (i.e. call to a non-compatible function) QEMU will
86 Disabling CFI for a specific function
89 If you are working on function that is performing a call using an
91 for such function by using the decorator ``QEMU_DISABLE_CFI`` at function
92 definition, and add an explanation on why the function is not compatible
[all …]
H A Dblock-coroutine-wrapper.rst9 needed function from it and wait for the coroutine to finish in a
10 BDRV_POLL_WHILE() loop. To run a coroutine we need a function with one
11 void* argument. So for each coroutine_fn function which needs a
13 parameters, define a separate function to unpack the parameters and
14 call the original function and finally define a new interface function
23 Assume we have defined the ``coroutine_fn`` function
H A Ddecodetree.rst28 field_def := '%' identifier ( field )* ( !function=identifier )?
56 If ``!function`` is specified, the concatenated result is passed through the
57 named function, taking and returning an integral value.
59 One may use ``!function`` with zero ``fields``. This case is called
60 a *parameter*, and the named function is only passed the ``DisasContext``
63 A field with no ``fields`` and no ``!function`` is in error.
79 | !function=expand_shimm8 | extract(i, 13, 1)) |
82 | !function=expand_sz_imm | extract(a->sz, 0, 3)) |
184 The decoder will call a translator function for each pattern matched.
216 for a pattern match, its translate function will be called. If the
[all …]
H A Dreset.rst87 parameter. Still, it is a programming error to call a resettable function on a
97 These are simple wrappers around resettable_reset() function; they only cast the
169 The ``resettable_class_set_parent_phases()`` class function may be used to
231 only some of them by passing NULL instead of a function pointer to
245 Resettable interface provides the ``resettable_is_in_reset()`` function.
246 This function returns true if the object parameter is currently under reset.
250 phase. During *enter* and *hold* phase only, the function will return that the
254 This function may be used if the object behavior has to be adapted
261 one of the reset phases, the only cases when this function will return
296 to follow the bus hierarchy; for a bus, it calls the function on every child
[all …]
/qemu/hw/acpi/
H A Dtpm.c109 Aml *function, *arguments, *rev, *op, *op_arg, *op_flags, *uuid; in tpm_build_ppi_acpi() local
113 function = aml_arg(2); in tpm_build_ppi_acpi()
124 ifctx2 = aml_if(aml_equal(function, zero)); in tpm_build_ppi_acpi()
141 ifctx2 = aml_if(aml_equal(function, one)); in tpm_build_ppi_acpi()
158 ifctx2 = aml_if(aml_equal(function, aml_int(2))); in tpm_build_ppi_acpi()
204 ifctx2 = aml_if(aml_equal(function, aml_int(3))); in tpm_build_ppi_acpi()
249 ifctx2 = aml_if(aml_equal(function, aml_int(4))); in tpm_build_ppi_acpi()
275 ifctx2 = aml_if(aml_equal(function, aml_int(5))); in tpm_build_ppi_acpi()
299 ifctx2 = aml_if(aml_equal(function, aml_int(6))); in tpm_build_ppi_acpi()
320 ifctx2 = aml_if(aml_equal(function, aml_int(7))); in tpm_build_ppi_acpi()
[all …]
/qemu/target/avr/
H A Dinsn.decode29 %rd_a 4:4 !function=to_regs_16_31_by_one
30 %rd_b 4:3 !function=to_regs_16_23_by_one
31 %rd_c 4:2 !function=to_regs_24_30_by_two
32 %rr_a 0:4 !function=to_regs_16_31_by_one
33 %rr_b 0:3 !function=to_regs_16_23_by_one
85 %imm_call 4:5 0:1 !function=append_16
115 %rd_d 4:4 !function=to_regs_00_30_by_two
116 %rr_d 0:4 !function=to_regs_00_30_by_two
121 %ldst_imm !function=next_word
/qemu/hw/misc/
H A Dmps2-scc.c111 static bool scc_cfg_write(MPS2SCC *s, unsigned function, in scc_cfg_write() argument
114 trace_mps2_scc_cfg_write(function, device, value); in scc_cfg_write()
116 if (function != 1 || device >= s->num_oscclk) { in scc_cfg_write()
119 function, device); in scc_cfg_write()
131 static bool scc_cfg_read(MPS2SCC *s, unsigned function, in scc_cfg_read() argument
134 if (function != 1 || device >= s->num_oscclk) { in scc_cfg_read()
137 function, device); in scc_cfg_read()
143 trace_mps2_scc_cfg_read(function, device, *value); in scc_cfg_read()
318 int function = extract32(s->cfgctrl, R_CFGCTRL_FUNCTION_SHIFT, in mps2_scc_write() local
323 if (!scc_cfg_write(s, function, device, s->cfgdata_out)) { in mps2_scc_write()
[all …]
H A Darm_sysctl.c258 unsigned int function, unsigned int site, in vexpress_cfgctrl_read() argument
270 switch (function) { in vexpress_cfgctrl_read()
304 function, dcc, site, position, device); in vexpress_cfgctrl_read()
319 unsigned int function, unsigned int site, in vexpress_cfgctrl_write() argument
331 switch (function) { in vexpress_cfgctrl_write()
383 function, dcc, site, position, device); in vexpress_cfgctrl_write()
526 unsigned int function = extract32(s->sys_cfgctrl, 20, 6); in arm_sysctl_write() local
532 if (!vexpress_cfgctrl_write(s, dcc, function, site, position, in arm_sysctl_write()
538 if (!vexpress_cfgctrl_read(s, dcc, function, site, position, in arm_sysctl_write()
/qemu/target/hppa/
H A Dinsns.decode25 %assemble_sr3x 13:1 14:2 !function=expand_sr3x
27 %assemble_11a 4:12 0:1 !function=expand_11a
28 %assemble_12 0:s1 2:1 3:10 !function=expand_shl2
29 %assemble_12a 3:13 0:1 !function=expand_12a
30 %assemble_16 0:16 !function=expand_16
31 %assemble_17 0:s1 16:5 2:1 3:10 !function=expand_shl2
32 %assemble_22 0:s1 16:10 2:1 3:10 !function=expand_shl2
33 %assemble_sp 14:2 !function=sp0_if_wide
35 %assemble_21 0:s1 1:11 14:2 16:5 12:2 !function=expand_shl11
39 %sm_imm 16:10 !function=expand_sm_imm
[all …]
/qemu/target/arm/tcg/
H A Dt16.decode40 %s !function=t16_setflags
86 %imm5_6x4 6:5 !function=times_4
100 %imm5_6x2 6:5 !function=times_2
109 %imm8_0x4 0:8 !function=times_4
180 %imm7_0x4 0:7 !function=times_4
207 %imod 4:1 !function=plus_2
244 %imm6_9_3 9:1 3:5 !function=times_2
252 %push_list 0:9 !function=t16_push_list
253 %pop_list 0:9 !function=t16_pop_list
262 %imm8_0x2 0:s8 !function=times_2
[all …]
/qemu/tests/decode/
H A Derr_field5.decode4 # Diagnose duplicate function specifier.
5 %field 0:1 !function=a !function=a
/qemu/tests/qtest/libqos/
H A Dqgraph.h196 void qos_node_create_machine(const char *name, QOSCreateMachineFunc function);
207 QOSCreateMachineFunc function,
219 void qos_node_create_driver(const char *name, QOSCreateDriverFunc function);
235 QOSCreateDriverFunc function);
H A Dqgraph.c602 node->u.test.function = test_func; in qos_add_test()
614 void qos_node_create_machine(const char *name, QOSCreateMachineFunc function) in qos_node_create_machine() argument
616 qos_node_create_machine_args(name, function, NULL); in qos_node_create_machine()
620 QOSCreateMachineFunc function, in qos_node_create_machine_args() argument
625 node->u.machine.constructor = function; in qos_node_create_machine_args()
629 void qos_node_create_driver(const char *name, QOSCreateDriverFunc function) in qos_node_create_driver() argument
633 node->u.driver.constructor = function; in qos_node_create_driver()
637 QOSCreateDriverFunc function) in qos_node_create_driver_named() argument
642 node->u.driver.constructor = function; in qos_node_create_driver_named()
/qemu/scripts/coccinelle/
H A Dreset-type.cocci21 // Look for where we use a function as a ResettableHoldPhase method,
23 // resettable_class_set_parent_phases, and remember the function name.
37 // Look for the definition of the function we found in holdfn_assigned,
38 // and add the new argument. If the function calls a hold function
86 // to ensure that they only match in a particular function. See
88 // which recommends this as the way to do "match only in this function".
/qemu/common-user/host/riscv/
H A Dsafe-syscall.inc.S16 .type safe_syscall_base, @function
17 .type safe_syscall_start, @function
18 .type safe_syscall_end, @function
/qemu/common-user/host/aarch64/
H A Dsafe-syscall.inc.S16 .type safe_syscall_base, #function
17 .type safe_syscall_start, #function
18 .type safe_syscall_end, #function
/qemu/common-user/host/loongarch64/
H A Dsafe-syscall.inc.S19 .type safe_syscall_base, @function
20 .type safe_syscall_start, @function
21 .type safe_syscall_end, @function
/qemu/common-user/host/sparc64/
H A Dsafe-syscall.inc.S22 .type safe_syscall_base, @function
23 .type safe_syscall_start, @function
24 .type safe_syscall_end, @function
/qemu/target/mips/tcg/
H A Dmsa.decode24 %elm_df 16:6 !function=elm_df
25 %elm_n 16:6 !function=elm_n
26 %bit_df 16:7 !function=bit_df
27 %bit_m 16:7 !function=bit_m
28 %2r_df_w 16:1 !function=plus_2
29 %3r_df_h 21:1 !function=plus_1
30 %3r_df_w 21:1 !function=plus_2
/qemu/tests/functional/acpi-bits/bits-tests/
H A Dtestcpuid.py237 def cpuid_helper(function, index=None, shift=0, mask=~0, eax_mask=~0, ebx_mask=~0, ecx_mask=~0, edx…
52 …regs = bits.cpuid_result(*[(r >> shift) & m for r, m in zip(bits.cpuid(cpu, function, index), mask…
55 desc = ["CPUID function {:#x}{}".format(function, indexdesc)]
79 def test_cpuid_consistency(text, function, index=None, shift=0, mask=~0, eax_mask=~0, ebx_mask=~0, …
80 … uniques, desc = cpuid_helper(function, index, shift, mask, eax_mask, ebx_mask, ecx_mask, edx_mask)
/qemu/docs/devel/migration/
H A Dvfio.rst48 * A ``save_setup`` function that sets up migration on the source.
50 * A ``load_setup`` function that sets the VFIO device on the destination in
53 * A ``state_pending_estimate`` function that reports an estimate of the
57 * A ``state_pending_exact`` function that reads pending_bytes from the vendor
61 * An ``is_active_iterate`` function that indicates ``save_live_iterate`` is
64 * A ``save_live_iterate`` function that reads the VFIO device's data from the
67 * A ``switchover_ack_needed`` function that checks if the VFIO device uses
70 * A ``switchover_start`` function that in the multifd mode starts a thread that
72 In the non-multifd mode this function is a NOP.
74 * A ``save_state`` function to save the device config space if it is present
[all …]
/qemu/target/i386/kvm/
H A Dtdx.c399 .function = 0x1,
414 .function = 0x6,
419 .function = 0x7,
435 .function = 0x7,
442 .function = 0xD,
448 .function = 0xD,
455 .function = 0x80000001,
468 .function = 0x80000007,
528 static struct kvm_cpuid_entry2 *find_in_supported_entry(uint32_t function, in find_in_supported_entry() argument
533 e = cpuid_find_entry(tdx_supported_cpuid, function, inde in find_in_supported_entry()
[all...]
/qemu/docs/
H A Dpcie_sriov.txt7 of a PCI Express device. It allows a single physical function (PF) to appear as multiple
22 A virtual function is different from a physical function in that the BAR
37 supports functions beyond it's "own" function space (0-7),
72 2) Similarly in the implementation of the virtual function, you need to

12345678