Home
last modified time | relevance | path

Searched refs:Visitor (Results 1 – 25 of 177) sorted by relevance

12345678

/openbmc/qemu/include/qapi/
H A Dvisitor.h259 void visit_complete(Visitor *v, void *opaque);
269 void visit_free(Visitor *v);
315 bool visit_check_struct(Visitor *v, Error **errp);
327 void visit_end_struct(Visitor *v, void **obj);
391 bool visit_check_list(Visitor *v, Error **errp);
403 void visit_end_list(Visitor *v, void **list);
443 void visit_end_alternate(Visitor *v, void **obj);
473 bool visit_policy_reject(Visitor *v, const char *name,
487 bool visit_policy_skip(Visitor *v, const char *name,
528 bool visit_is_input(Visitor *v);
[all …]
H A Dvisitor-impl.h44 struct Visitor struct
55 bool (*check_struct)(Visitor *v, Error **errp); argument
58 void (*end_struct)(Visitor *v, void **obj); argument
69 bool (*check_list)(Visitor *v, Error **errp); argument
72 void (*end_list)(Visitor *v, void **list); argument
75 bool (*start_alternate)(Visitor *v, const char *name, argument
80 void (*end_alternate)(Visitor *v, void **obj); argument
117 bool (*policy_reject)(Visitor *v, const char *name, argument
121 bool (*policy_skip)(Visitor *v, const char *name, argument
131 void (*complete)(Visitor *v, void *opaque); argument
[all …]
H A Dclone-visitor.h24 Visitor *qapi_clone_visitor_new(void);
25 Visitor *qapi_clone_members_visitor_new(void);
35 Visitor *v_; \
54 Visitor *v_; \
H A Dqobject-input-visitor.h59 Visitor *qobject_input_visitor_new(QObject *obj);
68 Visitor *qobject_input_visitor_new_keyval(QObject *obj);
78 Visitor *qobject_input_visitor_new_str(const char *str,
H A Dforward-visitor.h25 Visitor *visitor_forward_field(Visitor *target, const char *from, const char *to);
H A Dcompat-policy.h34 Visitor *qobject_input_visitor_new_qmp(QObject *obj);
43 Visitor *qobject_output_visitor_new_qmp(QObject **result);
/openbmc/qemu/qapi/
H A Dqapi-dealloc-visitor.c22 Visitor visitor;
31 static void qapi_dealloc_end_struct(Visitor *v, void **obj) in qapi_dealloc_end_struct()
38 static void qapi_dealloc_end_alternate(Visitor *v, void **obj) in qapi_dealloc_end_alternate()
45 static bool qapi_dealloc_start_list(Visitor *v, const char *name, in qapi_dealloc_start_list()
52 static GenericList *qapi_dealloc_next_list(Visitor *v, GenericList *tail, in qapi_dealloc_next_list()
60 static void qapi_dealloc_end_list(Visitor *v, void **obj) in qapi_dealloc_end_list()
79 static bool qapi_dealloc_type_uint64(Visitor *v, const char *name, in qapi_dealloc_type_uint64()
97 static bool qapi_dealloc_type_anything(Visitor *v, const char *name, in qapi_dealloc_type_anything()
106 static bool qapi_dealloc_type_null(Visitor *v, const char *name, in qapi_dealloc_type_null()
115 static void qapi_dealloc_free(Visitor *v) in qapi_dealloc_free()
[all …]
H A Dqapi-forward-visitor.c28 Visitor visitor;
30 Visitor *target;
37 static ForwardFieldVisitor *to_ffv(Visitor *v) in to_ffv()
56 static bool forward_field_check_struct(Visitor *v, Error **errp) in forward_field_check_struct()
78 static void forward_field_end_struct(Visitor *v, void **obj) in forward_field_end_struct()
109 static bool forward_field_check_list(Visitor *v, Error **errp) in forward_field_check_list()
117 static void forward_field_end_list(Visitor *v, void **obj) in forward_field_end_list()
142 static void forward_field_end_alternate(Visitor *v, void **obj) in forward_field_end_alternate()
271 static void forward_field_complete(Visitor *v, void *opaque) in forward_field_complete()
279 static void forward_field_free(Visitor *v) in forward_field_free()
[all …]
H A Dqapi-clone-visitor.c18 Visitor visitor;
22 static QapiCloneVisitor *to_qcv(Visitor *v) in to_qcv()
45 static void qapi_clone_end(Visitor *v, void **obj) in qapi_clone_end()
55 static bool qapi_clone_start_list(Visitor *v, const char *name, in qapi_clone_start_list()
62 static GenericList *qapi_clone_next_list(Visitor *v, GenericList *tail, in qapi_clone_next_list()
73 static bool qapi_clone_start_alternate(Visitor *v, const char *name, in qapi_clone_start_alternate()
90 static bool qapi_clone_type_uint64(Visitor *v, const char *name, in qapi_clone_type_uint64()
147 static void qapi_clone_free(Visitor *v) in qapi_clone_free()
152 Visitor *qapi_clone_visitor_new(void) in qapi_clone_visitor_new()
177 Visitor *qapi_clone_members_visitor_new(void) in qapi_clone_members_visitor_new()
[all …]
H A Dqapi-visit-core.c27 void visit_complete(Visitor *v, void *opaque) in visit_complete()
36 void visit_free(Visitor *v) in visit_free()
61 bool visit_check_struct(Visitor *v, Error **errp) in visit_check_struct()
67 void visit_end_struct(Visitor *v, void **obj) in visit_end_struct()
94 bool visit_check_list(Visitor *v, Error **errp) in visit_check_list()
100 void visit_end_list(Visitor *v, void **obj) in visit_end_list()
126 void visit_end_alternate(Visitor *v, void **obj) in visit_end_alternate()
143 bool visit_policy_reject(Visitor *v, const char *name, in visit_policy_reject()
153 bool visit_policy_skip(Visitor *v, const char *name, in visit_policy_skip()
168 bool visit_is_input(Visitor *v) in visit_is_input()
[all …]
H A Dqobject-output-visitor.c34 Visitor visitor;
46 static QObjectOutputVisitor *to_qov(Visitor *v) in to_qov()
119 static void qobject_output_end_struct(Visitor *v, void **obj) in qobject_output_end_struct()
126 static bool qobject_output_start_list(Visitor *v, const char *name, in qobject_output_start_list()
144 static void qobject_output_end_list(Visitor *v, void **obj) in qobject_output_end_list()
151 static bool qobject_output_type_int64(Visitor *v, const char *name, in qobject_output_type_int64()
195 static bool qobject_output_type_any(Visitor *v, const char *name, in qobject_output_type_any()
204 static bool qobject_output_type_null(Visitor *v, const char *name, in qobject_output_type_null()
226 static void qobject_output_complete(Visitor *v, void *opaque) in qobject_output_complete()
238 static void qobject_output_free(Visitor *v) in qobject_output_free()
[all …]
H A Dqobject-input-visitor.c46 Visitor visitor;
59 static QObjectInputVisitor *to_qiv(Visitor *v) in to_qiv()
268 static void qobject_input_pop(Visitor *v, void **obj) in qobject_input_pop()
304 static void qobject_input_end_struct(Visitor *v, void **obj) in qobject_input_end_struct()
356 static bool qobject_input_check_list(Visitor *v, Error **errp) in qobject_input_check_list()
371 static void qobject_input_end_list(Visitor *v, void **obj) in qobject_input_end_list()
675 static void qobject_input_free(Visitor *v) in qobject_input_free()
717 Visitor *qobject_input_visitor_new(QObject *obj) in qobject_input_visitor_new()
732 Visitor *qobject_input_visitor_new_keyval(QObject *obj) in qobject_input_visitor_new_keyval()
749 Visitor *qobject_input_visitor_new_str(const char *str, in qobject_input_visitor_new_str()
[all …]
H A Dstring-input-visitor.c45 Visitor visitor;
58 static StringInputVisitor *to_siv(Visitor *v) in to_siv()
63 static bool start_list(Visitor *v, const char *name, GenericList **list, in start_list()
86 static GenericList *next_list(Visitor *v, GenericList *tail, size_t size) in next_list()
106 static bool check_list(Visitor *v, Error **errp) in check_list()
123 static void end_list(Visitor *v, void **obj) in end_list()
329 static bool parse_type_bool(Visitor *v, const char *name, bool *obj, in parse_type_bool()
338 static bool parse_type_str(Visitor *v, const char *name, char **obj, in parse_type_str()
365 static bool parse_type_null(Visitor *v, const char *name, QNull **obj, in parse_type_null()
383 static void string_input_free(Visitor *v) in string_input_free()
[all …]
H A Dstring-output-visitor.c57 Visitor visitor;
71 static StringOutputVisitor *to_sov(Visitor *v) in to_sov()
258 static bool print_type_bool(Visitor *v, const char *name, bool *obj, in print_type_bool()
271 static bool print_type_str(Visitor *v, const char *name, char **obj, in print_type_str()
303 static bool print_type_null(Visitor *v, const char *name, QNull **obj, in print_type_null()
322 static bool start_struct(Visitor *v, const char *name, void **obj, in start_struct()
331 static void end_struct(Visitor *v, void **obj) in end_struct()
380 static void end_list(Visitor *v, void **obj) in end_list()
396 static void string_output_complete(Visitor *v, void *opaque) in string_output_complete()
410 static void string_output_free(Visitor *v) in string_output_free()
[all …]
H A Dopts-visitor.c67 Visitor visitor;
102 static OptsVisitor *to_ov(Visitor *v) in to_ov()
137 opts_start_struct(Visitor *v, const char *name, void **obj, in opts_start_struct()
171 opts_check_struct(Visitor *v, Error **errp) in opts_check_struct()
195 opts_end_struct(Visitor *v, void **obj) in opts_end_struct()
249 opts_next_list(Visitor *v, GenericList *tail, size_t size) in opts_next_list()
293 opts_check_list(Visitor *v, Error **errp) in opts_check_list()
304 opts_end_list(Visitor *v, void **obj) in opts_end_list()
529 opts_optional(Visitor *v, const char *name, bool *present) in opts_optional()
540 opts_free(Visitor *v) in opts_free()
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-qobject-input-visitor.c31 Visitor *qiv;
71 Visitor *v; in visitor_input_test_init_full()
85 Visitor *v; in visitor_input_test_init()
115 Visitor *v; in test_visitor_in_int()
133 Visitor *v; in test_visitor_in_uint()
166 Visitor *v; in test_visitor_in_int_overflow()
184 Visitor *v; in test_visitor_in_int_keyval()
195 Visitor *v; in test_visitor_in_int_str_keyval()
207 Visitor *v; in test_visitor_in_int_str_fail()
220 Visitor *v; in test_visitor_in_bool()
[all …]
H A Dtest-string-input-visitor.c20 Visitor *v;
36 Visitor *visitor_input_test_init(TestInputVisitorData *data, in visitor_input_test_init()
51 Visitor *v; in test_visitor_in_int()
69 static void check_ilist(Visitor *v, int64_t *expected, size_t n) in check_ilist()
116 Visitor *v; in test_visitor_in_intList()
225 Visitor *v; in test_visitor_in_uintList()
329 Visitor *v; in test_visitor_in_bool()
367 Visitor *v; in test_visitor_in_number()
392 Visitor *v; in test_visitor_in_string()
405 Visitor *v; in test_visitor_in_enum()
[all …]
H A Dtest-forward-visitor.c20 typedef bool GenericVisitor (Visitor *, const char *, void **, Error **);
32 Visitor *v, *alias_v; in visit_with_forward()
57 Visitor *v = qobject_input_visitor_new_keyval(src); in test_forward_any()
81 Visitor *v, *alias_v; in test_forward_size()
109 Visitor *v, *alias_v; in test_forward_number()
/openbmc/qemu/hw/core/
H A Dqdev-prop-internal.h11 void qdev_propinfo_get_enum(Object *obj, Visitor *v, const char *name,
13 void qdev_propinfo_set_enum(Object *obj, Visitor *v, const char *name,
23 void qdev_propinfo_get_int32(Object *obj, Visitor *v, const char *name,
25 void qdev_propinfo_get_size32(Object *obj, Visitor *v, const char *name,
H A Dqdev-properties.c61 static void field_prop_get(Object *obj, Visitor *v, const char *name, in field_prop_get()
151 static void prop_get_bit(Object *obj, Visitor *v, const char *name, in prop_get_bit()
303 static void get_uint16(Object *obj, Visitor *v, const char *name, in get_uint16()
312 static void set_uint16(Object *obj, Visitor *v, const char *name, in set_uint16()
330 static void get_uint32(Object *obj, Visitor *v, const char *name, in get_uint32()
339 static void set_uint32(Object *obj, Visitor *v, const char *name, in set_uint32()
382 static void get_uint64(Object *obj, Visitor *v, const char *name, in get_uint64()
391 static void set_uint64(Object *obj, Visitor *v, const char *name, in set_uint64()
400 static void get_int64(Object *obj, Visitor *v, const char *name, in get_int64()
409 static void set_int64(Object *obj, Visitor *v, const char *name, in set_int64()
[all …]
H A Dqdev-properties-system.c89 static void set_drive_helper(Object *obj, Visitor *v, const char *name, in set_drive_helper()
193 static void set_drive_iothread(Object *obj, Visitor *v, const char *name, in set_drive_iothread()
380 static void get_netdev(Object *obj, Visitor *v, const char *name, in get_netdev()
391 static void set_netdev(Object *obj, Visitor *v, const char *name, in set_netdev()
459 static void get_audiodev(Object *obj, Visitor *v, const char* name, in get_audiodev()
470 static void set_audiodev(Object *obj, Visitor *v, const char* name, in set_audiodev()
551 static void qdev_propinfo_set_losttickpolicy(Object *obj, Visitor *v, in qdev_propinfo_set_losttickpolicy()
588 static void set_blocksize(Object *obj, Visitor *v, const char *name, in set_blocksize()
793 static void set_pci_devfn(Object *obj, Visitor *v, const char *name, in set_pci_devfn()
1204 static void get_iothread_vq_mapping_list(Object *obj, Visitor *v, in get_iothread_vq_mapping_list()
[all …]
/openbmc/qemu/hw/i386/
H A Dx86.c191 static void x86_machine_get_smm(Object *obj, Visitor *v, const char *name, in x86_machine_get_smm()
200 static void x86_machine_set_smm(Object *obj, Visitor *v, const char *name, in x86_machine_set_smm()
216 static void x86_machine_get_acpi(Object *obj, Visitor *v, const char *name, in x86_machine_get_acpi()
233 static void x86_machine_get_pit(Object *obj, Visitor *v, const char *name, in x86_machine_get_pit()
242 static void x86_machine_set_pit(Object *obj, Visitor *v, const char *name, in x86_machine_set_pit()
250 static void x86_machine_get_pic(Object *obj, Visitor *v, const char *name, in x86_machine_get_pic()
259 static void x86_machine_set_pic(Object *obj, Visitor *v, const char *name, in x86_machine_set_pic()
312 static void x86_machine_get_bus_lock_ratelimit(Object *obj, Visitor *v, in x86_machine_get_bus_lock_ratelimit()
321 static void x86_machine_set_bus_lock_ratelimit(Object *obj, Visitor *v, in x86_machine_set_bus_lock_ratelimit()
329 static void machine_get_sgx_epc(Object *obj, Visitor *v, const char *name, in machine_get_sgx_epc()
[all …]
/openbmc/qemu/hw/cpu/
H A Dcore.c17 static void core_prop_get_core_id(Object *obj, Visitor *v, const char *name, in core_prop_get_core_id()
26 static void core_prop_set_core_id(Object *obj, Visitor *v, const char *name, in core_prop_set_core_id()
44 static void core_prop_get_nr_threads(Object *obj, Visitor *v, const char *name, in core_prop_get_nr_threads()
53 static void core_prop_set_nr_threads(Object *obj, Visitor *v, const char *name, in core_prop_set_nr_threads()
/openbmc/qemu/hw/sensor/
H A Dlsm303dlhc_mag.c85 static void lsm303dlhc_mag_get_x(Object *obj, Visitor *v, const char *name, in lsm303dlhc_mag_get_x()
96 static void lsm303dlhc_mag_get_y(Object *obj, Visitor *v, const char *name, in lsm303dlhc_mag_get_y()
107 static void lsm303dlhc_mag_get_z(Object *obj, Visitor *v, const char *name, in lsm303dlhc_mag_get_z()
118 static void lsm303dlhc_mag_set_x(Object *obj, Visitor *v, const char *name, in lsm303dlhc_mag_set_x()
141 static void lsm303dlhc_mag_set_y(Object *obj, Visitor *v, const char *name, in lsm303dlhc_mag_set_y()
164 static void lsm303dlhc_mag_set_z(Object *obj, Visitor *v, const char *name, in lsm303dlhc_mag_set_z()
190 static void lsm303dlhc_mag_get_temperature(Object *obj, Visitor *v, in lsm303dlhc_mag_get_temperature()
206 static void lsm303dlhc_mag_set_temperature(Object *obj, Visitor *v, in lsm303dlhc_mag_set_temperature()
/openbmc/qemu/backends/
H A Dhostmem-file.c130 static void file_memory_backend_get_align(Object *o, Visitor *v, in file_memory_backend_get_align()
140 static void file_memory_backend_set_align(Object *o, Visitor *v, in file_memory_backend_set_align()
160 static void file_memory_backend_get_offset(Object *o, Visitor *v, in file_memory_backend_get_offset()
170 static void file_memory_backend_set_offset(Object *o, Visitor *v, in file_memory_backend_set_offset()
233 static void file_memory_backend_get_rom(Object *obj, Visitor *v, in file_memory_backend_get_rom()
243 static void file_memory_backend_set_rom(Object *obj, Visitor *v, in file_memory_backend_set_rom()

12345678