Home
last modified time | relevance | path

Searched refs:field (Results 1 – 25 of 210) sorted by relevance

123456789

/qemu/include/qemu/
H A Drcu_queue.h36 #define QLIST_NEXT_RCU(elm, field) (qatomic_rcu_read(&(elm)->field.le_next)) argument
61 #define QLIST_INSERT_AFTER_RCU(listelm, elm, field) do { \ argument
62 (elm)->field.le_next = (listelm)->field.le_next; \
63 (elm)->field.le_prev = &(listelm)->field.le_next; \
64 qatomic_rcu_set(&(listelm)->field.le_next, (elm)); \
65 if ((elm)->field.le_next != NULL) { \
66 (elm)->field.le_next->field.le_prev = \
67 &(elm)->field.le_next; \
77 #define QLIST_INSERT_BEFORE_RCU(listelm, elm, field) do { \ argument
78 (elm)->field.le_prev = (listelm)->field.le_prev; \
[all …]
H A Dqueue.h105 #define QLIST_SWAP(dstlist, srclist, field) do { \ argument
110 (srclist)->lh_first->field.le_prev = &(srclist)->lh_first; \
114 (dstlist)->lh_first->field.le_prev = &(dstlist)->lh_first; \
118 #define QLIST_INSERT_AFTER(listelm, elm, field) do { \ argument
119 if (((elm)->field.le_next = (listelm)->field.le_next) != NULL) \
120 (listelm)->field.le_next->field.le_prev = \
121 &(elm)->field.le_next; \
122 (listelm)->field.le_next = (elm); \
123 (elm)->field.le_prev = &(listelm)->field.le_next; \
126 #define QLIST_INSERT_BEFORE(listelm, elm, field) do { \ argument
[all …]
H A Dcompiler.h49 #define sizeof_field(type, field) sizeof(((type *)0)->field) argument
55 #define endof(container, field) \ argument
56 (offsetof(container, field) + sizeof_field(container, field))
59 #define DO_UPCAST(type, field, dev) ( __extension__ ( { \ argument
61 -offsetof(type, field)]; \
62 container_of(dev, type, field);}))
64 #define typeof_field(type, field) typeof(((type *)0)->field) argument
H A Drcu.h149 #define call_rcu(head, func, field) \ argument
152 offset_must_be_zero[-offsetof(typeof(*(head)), field)], \
154 &(head)->field; \
158 #define g_free_rcu(obj, field) \ argument
161 offset_must_be_zero[-offsetof(typeof(*(obj)), field)]; \
162 &(obj)->field; \
/qemu/include/hw/
H A Dregisterfields.h42 #define FIELD(reg, field, shift, length) \ argument
43 enum { R_ ## reg ## _ ## field ## _SHIFT = (shift)}; \
44 enum { R_ ## reg ## _ ## field ## _LENGTH = (length)}; \
45 enum { R_ ## reg ## _ ## field ## _MASK = \
49 #define FIELD_EX8(storage, reg, field) \ argument
50 extract8((storage), R_ ## reg ## _ ## field ## _SHIFT, \
51 R_ ## reg ## _ ## field ## _LENGTH)
52 #define FIELD_EX16(storage, reg, field) \ argument
53 extract16((storage), R_ ## reg ## _ ## field ## _SHIFT, \
54 R_ ## reg ## _ ## field ## _LENGTH)
[all …]
H A Dqdev-clock.h123 #define clock_offset_value(devstate, field) \ argument
124 (offsetof(devstate, field) + \
125 type_check(Clock *, typeof_field(devstate, field)))
127 #define QDEV_CLOCK(out_not_in, devstate, field, cb, cbevents) { \ argument
128 .name = (stringify(field)), \
132 .offset = clock_offset_value(devstate, field), \
146 #define QDEV_CLOCK_IN(devstate, field, callback, cbevents) \ argument
147 QDEV_CLOCK(false, devstate, field, callback, cbevents)
149 #define QDEV_CLOCK_OUT(devstate, field) \ argument
150 QDEV_CLOCK(true, devstate, field, NULL, 0)
H A Dclock.h98 #define VMSTATE_CLOCK(field, state) \ argument
99 VMSTATE_CLOCK_V(field, state, 0)
100 #define VMSTATE_CLOCK_V(field, state, version) \ argument
101 VMSTATE_STRUCT_POINTER_V(field, state, version, vmstate_clock, Clock)
102 #define VMSTATE_ARRAY_CLOCK(field, state, num) \ argument
103 VMSTATE_ARRAY_CLOCK_V(field, state, num, 0)
104 #define VMSTATE_ARRAY_CLOCK_V(field, state, num, version) \ argument
105 VMSTATE_ARRAY_OF_POINTER_TO_STRUCT(field, state, num, version, \
/qemu/migration/
H A Dvmstate.c32 vmstate_field_exists(const VMStateDescription *vmsd, const VMStateField *field, in vmstate_field_exists() argument
37 if (field->field_exists) { in vmstate_field_exists()
39 result = field->field_exists(opaque, version_id); in vmstate_field_exists()
40 trace_vmstate_field_exists(vmsd->name, field->name, field->version_id, in vmstate_field_exists()
48 result = field->version_id <= version_id; in vmstate_field_exists()
60 vmsd_create_fake_nullptr_field(const VMStateField *field) in vmsd_create_fake_nullptr_field() argument
65 assert(field->flags & VMS_ARRAY_OF_POINTER); in vmsd_create_fake_nullptr_field()
68 fake->name = field->name; in vmsd_create_fake_nullptr_field()
69 fake->version_id = field->version_id; in vmsd_create_fake_nullptr_field()
84 static int vmstate_n_elems(void *opaque, const VMStateField *field) in vmstate_n_elems() argument
[all …]
H A Dvmstate-types.c26 const VMStateField *field) in get_bool() argument
34 const VMStateField *field, JSONWriter *vmdesc) in put_bool() argument
50 const VMStateField *field) in get_int8() argument
58 const VMStateField *field, JSONWriter *vmdesc) in put_int8() argument
74 const VMStateField *field) in get_int16() argument
82 const VMStateField *field, JSONWriter *vmdesc) in put_int16() argument
98 const VMStateField *field) in get_int32() argument
106 const VMStateField *field, JSONWriter *vmdesc) in put_int32() argument
123 const VMStateField *field) in get_int32_equal() argument
133 if (field->err_hint) { in get_int32_equal()
[all …]
/qemu/hw/intc/
H A Darm_gic_kvm.c115 uint32_t *field, bool to_kernel);
121 uint32_t *field, bool to_kernel) in translate_clear() argument
124 *field = ~0; in translate_clear()
132 uint32_t *field, bool to_kernel) in translate_group() argument
137 *field = GIC_DIST_TEST_GROUP(irq, cm); in translate_group()
139 if (*field & 1) { in translate_group()
146 uint32_t *field, bool to_kernel) in translate_enabled() argument
151 *field = GIC_DIST_TEST_ENABLED(irq, cm); in translate_enabled()
153 if (*field & 1) { in translate_enabled()
160 uint32_t *field, bool to_kernel) in translate_pending() argument
[all …]
/qemu/hw/acpi/
H A Dtpm.c25 Aml *method, *field, *ifctx, *ifctx2, *ifctx3, *func_mask, in tpm_build_ppi_acpi() local
45 field = aml_field("TPP2", AML_ANY_ACC, AML_NOLOCK, AML_PRESERVE); in tpm_build_ppi_acpi()
46 aml_append(field, aml_named_field("PPIN", 8)); in tpm_build_ppi_acpi()
47 aml_append(field, aml_named_field("PPIP", 32)); in tpm_build_ppi_acpi()
48 aml_append(field, aml_named_field("PPRP", 32)); in tpm_build_ppi_acpi()
49 aml_append(field, aml_named_field("PPRQ", 32)); in tpm_build_ppi_acpi()
50 aml_append(field, aml_named_field("PPRM", 32)); in tpm_build_ppi_acpi()
51 aml_append(field, aml_named_field("LPPR", 32)); in tpm_build_ppi_acpi()
52 aml_append(dev, field); in tpm_build_ppi_acpi()
62 field = aml_field("TPP3", AML_BYTE_ACC, AML_NOLOCK, AML_PRESERVE); in tpm_build_ppi_acpi()
[all …]
H A Dmemory_hotplug.c376 Aml *field; in build_memory_hotplug_aml() local
396 field = aml_field(mmio_path, AML_DWORD_ACC, in build_memory_hotplug_aml()
398 aml_append(field, /* read only */ in build_memory_hotplug_aml()
400 aml_append(field, /* read only */ in build_memory_hotplug_aml()
402 aml_append(field, /* read only */ in build_memory_hotplug_aml()
404 aml_append(field, /* read only */ in build_memory_hotplug_aml()
406 aml_append(field, /* read only */ in build_memory_hotplug_aml()
408 aml_append(dev_container, field); in build_memory_hotplug_aml()
410 field = aml_field(mmio_path, AML_BYTE_ACC, in build_memory_hotplug_aml()
412 aml_append(field, aml_reserved_field(160 /* bits, Offset(20) */)); in build_memory_hotplug_aml()
[all …]
H A Dnvdimm.c937 Aml *pckg, *pckg_index, *pckg_buf, *field, *dsm_out_buf, *dsm_out_buf_size; in nvdimm_build_common_dsm() local
972 field = aml_field(NVDIMM_DSM_IOPORT, AML_DWORD_ACC, AML_NOLOCK, in nvdimm_build_common_dsm()
974 aml_append(field, aml_named_field(NVDIMM_DSM_NOTIFY, in nvdimm_build_common_dsm()
976 aml_append(method, field); in nvdimm_build_common_dsm()
990 field = aml_field(NVDIMM_DSM_MEMORY, AML_DWORD_ACC, AML_NOLOCK, in nvdimm_build_common_dsm()
992 aml_append(field, aml_named_field(NVDIMM_DSM_HANDLE, in nvdimm_build_common_dsm()
994 aml_append(field, aml_named_field(NVDIMM_DSM_REVISION, in nvdimm_build_common_dsm()
996 aml_append(field, aml_named_field(NVDIMM_DSM_FUNCTION, in nvdimm_build_common_dsm()
998 aml_append(field, aml_named_field(NVDIMM_DSM_ARG3, in nvdimm_build_common_dsm()
1000 aml_append(method, field); in nvdimm_build_common_dsm()
[all …]
/qemu/hw/smbios/
H A Dsmbios_legacy.c58 struct smbios_field *field; in smbios_add_field() local
65 sizeof(*field) + len); in smbios_add_field()
66 field = (struct smbios_field *)(smbios_entries + smbios_entries_len); in smbios_add_field()
67 field->header.type = SMBIOS_FIELD_ENTRY; in smbios_add_field()
68 field->header.length = cpu_to_le16(sizeof(*field) + len); in smbios_add_field()
70 field->type = type; in smbios_add_field()
71 field->offset = cpu_to_le16(offset); in smbios_add_field()
72 memcpy(field->data, data, len); in smbios_add_field()
74 smbios_entries_len += sizeof(*field) + len; in smbios_add_field()
/qemu/subprojects/libvduse/include/
H A Dcompiler.h49 #define sizeof_field(type, field) sizeof(((type *)0)->field) argument
55 #define endof(container, field) \ argument
56 (offsetof(container, field) + sizeof_field(container, field))
59 #define DO_UPCAST(type, field, dev) ( __extension__ ( { \ argument
61 -offsetof(type, field)]; \
62 container_of(dev, type, field);}))
64 #define typeof_field(type, field) typeof(((type *)0)->field) argument
/qemu/subprojects/libvhost-user/include/
H A Dcompiler.h49 #define sizeof_field(type, field) sizeof(((type *)0)->field) argument
55 #define endof(container, field) \ argument
56 (offsetof(container, field) + sizeof_field(container, field))
59 #define DO_UPCAST(type, field, dev) ( __extension__ ( { \ argument
61 -offsetof(type, field)]; \
62 container_of(dev, type, field);}))
64 #define typeof_field(type, field) typeof(((type *)0)->field) argument
/qemu/docs/sphinx-static/
H A Dtheme_overrides.css81 .rst-content table.field-list th.field-name {
85 .rst-content table.field-list td.field-body {
171 caption, .wy-table caption, .rst-content table.field-list caption {
215 80ch, but nested field lists are explicitly exempt due to their
222 .qapi .field-list dd {
278 /* pad the top of the field-list so the text doesn't start directly at
279 the top border; primarily for the field list labels, but adjust the
280 field bodies as well for parity. */
281 dl.field-list > dt:first-of-type, dl.field-list > dd:first-of-type {
285 dl.field-list > dt:last-of-type, dl.field-list > dd:last-of-type {
[all …]
/qemu/docs/devel/
H A Ddecodetree.rst28 field_def := '%' identifier ( field )* ( !function=identifier )?
29 field := unnamed_field | named_field
34 of the field and the second number is the length of the field. If the 's' is
35 present, the field is considered signed.
37 A *named_field* refers to some other field in the instruction pattern
38 or format. Regardless of the length of the other field where it is
39 defined, it will be inserted into this field with the specified
42 Field definitions that involve loops (i.e. where a field is defined
50 a field A that refers to a named field B that is defined in P, and P
51 has a field C that refers to a named field D that is defined in F).
[all …]
/qemu/tests/image-fuzzer/qcow2/
H A Dlayout.py487 for field in self:
489 field.value = getattr(fuzz, field.name)(field.value)
493 for field in getattr(self, item[0]):
495 field.value = getattr(fuzz,
496 field.name)(field.value)
500 for field in getattr(self, item[0])[item[1]]:
501 field.value = getattr(fuzz, field.name)(field.value)
506 for field in self:
507 image_file.seek(field.offset)
508 image_file.write(struct.pack(field.fmt, field.value))
/qemu/tests/tcg/i386/
H A Dtest-i386-fprem.c302 #define INIT_FIELD(var, field) \ in test_fprem_pairs() argument
303 .ieee_nan.field = field##_values[field##_index_##var] in test_fprem_pairs()
323 #define CARRY_INTO(var, field) do { \ in test_fprem_pairs() argument
325 if (++field##_index_##var == ARRAY_SIZE(field##_values)) { \ in test_fprem_pairs()
326 field##_index_##var = 0; \ in test_fprem_pairs()
/qemu/tests/decode/
H A Dsucc_named_field.decode4 # field using a named_field
8 # Ditto, via a format. Here a field in the format
9 # references a named field defined in the insn pattern:
16 # Here the named field is defined in the format and referenced
H A Derr_field4.decode4 # Diagnose duplicate field name.
5 %field 0:1
6 %field 0:1
H A Derr_overlap1.decode4 # Diagnose field overlapping fixedbits.
5 %field 0:1
6 insn 00000000 00000000 00000000 00000000 %field
H A Derr_overlap3.decode4 # Diagnose field overlapping unspecified bits.
5 %field 0:1
6 insn 00000000 00000000 00000000 -------- %field
/qemu/docs/sphinx/
H A Dqapi_domain.py71 field: nodes.Node,
76 assert isinstance(field, nodes.field)
77 assert len(field.children) == 2
78 assert isinstance(field.children[0], nodes.field_name)
79 assert isinstance(field.children[1], nodes.field_body)
80 return (field.children[0], field.children[1])
422 def _validate_field(self, field: nodes.field) -> None: argument
424 name, _ = _unpack_field(field)
455 logger.warning(msg, location=field)
468 logger.warning(msg, location=field)
[all …]

123456789