Home
last modified time | relevance | path

Searched full:parent (Results 1 – 25 of 1556) sorted by relevance

12345678910>>...63

/qemu/util/
H A Dinterval-tree.c135 static inline void rb_link_node(RBNode *node, RBNode *parent, RBNode **rb_link) in rb_link_node() argument
137 node->rb_parent_color = (uintptr_t)parent; in rb_link_node()
149 RBNode *parent; in rb_next() local
166 * so any 'next' node must be in the general direction of our parent. in rb_next()
168 * parent, keep going up. First time it's a left-hand child of its in rb_next()
169 * parent, said parent is our 'next' node. in rb_next()
171 while ((parent = rb_parent(node)) && node == parent->rb_right) { in rb_next()
172 node = parent; in rb_next()
175 return parent; in rb_next()
179 RBNode *parent, RBRoot *root) in rb_change_child() argument
[all …]
H A Dqtree.c729 QTreeNode *node, *parent, *balance; in q_tree_remove_internal() local
770 balance = parent = path[--idx]; in q_tree_remove_internal()
771 g_assert(!parent || parent->left == node || parent->right == node); in q_tree_remove_internal()
772 left_node = (parent && node == parent->left); in q_tree_remove_internal()
776 if (!parent) { in q_tree_remove_internal()
779 parent->left_child = FALSE; in q_tree_remove_internal()
780 parent->left = node->left; in q_tree_remove_internal()
781 parent->balance += 1; in q_tree_remove_internal()
783 parent->right_child = FALSE; in q_tree_remove_internal()
784 parent->right = node->right; in q_tree_remove_internal()
[all …]
/qemu/hw/misc/
H A Domap_clk.c30 struct clk *parent; member
65 .parent = &xtal_osc12m,
73 .parent = &ck_ref,
80 .parent = &ck_ref,
86 .parent = &ck_ref,
92 .parent = &ck_ref,
99 .parent = &ck_ref,
107 .parent = &dpll4, /* either dpll4 or apll */
113 .parent = &dpll1,
119 .parent = &ck_dpll1out,
[all …]
/qemu/hw/core/
H A Dbus.c102 static void qbus_init_internal(BusState *bus, DeviceState *parent, in qbus_init_internal() argument
109 bus->parent = parent; in qbus_init_internal()
113 } else if (bus->parent && bus->parent->id) { in qbus_init_internal()
114 /* parent device has id -> use it plus parent-bus-id for bus name */ in qbus_init_internal()
115 bus_id = bus->parent->num_child_bus; in qbus_init_internal()
116 bus->name = g_strdup_printf("%s.%d", bus->parent->id, bus_id); in qbus_init_internal()
127 if (bus->parent) { in qbus_init_internal()
128 QLIST_INSERT_HEAD(&bus->parent->child_bus, bus, sibling); in qbus_init_internal()
129 bus->parent->num_child_bus++; in qbus_init_internal()
130 object_property_add_child(OBJECT(bus->parent), bus->name, OBJECT(bus)); in qbus_init_internal()
[all …]
/qemu/scripts/qapi/
H A Dsource.py36 def __init__(self, fname: str, parent: Optional['QAPISourceInfo']):
39 self.parent = parent
41 parent.pragma if parent else QAPISchemaPragma()
66 parent = self.parent
67 while parent:
68 ret = 'In file included from %s:\n' % parent.loc() + ret
69 parent = parent.parent
/qemu/hw/pci-host/
H A Dpnv_phb.c24 * Set the QOM parent and parent bus of an object child. If the device
29 * a new QOM child will erase the bus parent of the device. This happens
36 * from its parent bus.
38 * The QOM and parent bus to be set aren´t necessarily related, so
41 static bool pnv_parent_fixup(Object *parent, BusState *parent_bus, in pnv_parent_fixup() argument
49 if (child->parent == parent) { in pnv_parent_fixup()
55 object_property_add_child(parent, dev_id ? dev_id : default_id, child); in pnv_parent_fixup()
76 * devices have. This setup consists of assigning a parent device
77 * (chip for PHB3, PEC for PHB4/5) that will be the QOM/bus parent
84 Object *parent = NULL; in pnv_phb_user_device_init() local
[all …]
/qemu/tests/unit/
H A Dcheck-qom-proplist.c161 .parent = TYPE_OBJECT,
287 object_property_del(obj->parent, "backend"); in dummy_bus_unparent()
303 .parent = TYPE_OBJECT,
313 .parent = TYPE_OBJECT,
323 .parent = TYPE_OBJECT,
342 Object *parent = object_get_objects_root(); in test_dummy_createv() local
345 parent, in test_dummy_createv()
358 g_assert(object_resolve_path_component(parent, "dummy0") in test_dummy_createv()
366 Object *parent, in new_helper() argument
372 va_start(vargs, parent); in new_helper()
[all …]
/qemu/include/hw/i386/
H A Dnitro_enclave.h22 #define NITRO_ENCLAVE_PARENT_ROLE "parent-role"
23 #define NITRO_ENCLAVE_PARENT_ID "parent-id"
26 MicrovmMachineClass parent; member
33 MicrovmMachineState parent; member
39 /* Parent instance IAM role ARN */
41 /* Parent instance identifier */
/qemu/python/qemu/qmp/
H A Dqmp_tui.py430 :param parent: Reference to the TUI object.
432 def __init__(self, parent: App) -> None:
434 self.parent = parent
476 self.parent.cb_send_to_server(msg)
495 :param parent: Reference to the TUI object.
497 def __init__(self, parent: App) -> None:
498 super().__init__(Editor(parent), valign='top')
509 :param parent: Reference to the TUI object.
511 def __init__(self, parent: App) -> None:
512 self.parent = parent
[all …]
/qemu/tests/qtest/
H A Ddevice-introspect-test.c63 /* Check if @parent is present in the parent chain of @type */
64 static bool qom_has_parent(QDict *index, const char *type, const char *parent) in qom_has_parent() argument
68 const char *p = d && qdict_haskey(d, "parent") ? in qom_has_parent()
69 qdict_get_str(d, "parent") : in qom_has_parent()
72 if (!strcmp(type, parent)) { in qom_has_parent()
143 * Ensure all entries returned by qom-list-types implements=<parent>
144 * have <parent> as a parent.
146 static void test_qom_list_parents(QTestState *qts, const char *parent) in test_qom_list_parents() argument
152 types = qom_list_types(qts, parent, true); in test_qom_list_parents()
159 g_assert(qom_has_parent(index, name, parent)); in test_qom_list_parents()
[all …]
/qemu/hw/dma/
H A Dpl330.c135 PL330State *parent; member
211 PL330State *parent; member
494 static void pl330_queue_init(PL330Queue *s, int size, PL330State *parent) in pl330_queue_init() argument
496 s->parent = parent; in pl330_queue_init()
534 entry->seqn = s->parent->hi_seqn[tag]; in pl330_queue_put_insn()
535 s->parent->hi_seqn[tag]++; in pl330_queue_put_insn()
557 s->queue[i].seqn == s->parent->lo_seqn[s->queue[i].tag]) && in pl330_queue_find_insn()
571 s->parent->lo_seqn[e->tag]++; in pl330_queue_remove_insn()
600 ch->parent->num_faulting++; in pl330_fault()
601 if (ch->parent->num_faulting == 1) { in pl330_fault()
[all …]
/qemu/tests/qtest/libqos/
H A Di2c-omap.c48 qtest_writew(s->parent.qts, s->addr + OMAP_I2C_SA, data); in omap_i2c_set_slave_addr()
49 data = qtest_readw(s->parent.qts, s->addr + OMAP_I2C_SA); in omap_i2c_set_slave_addr()
56 OMAPI2C *s = container_of(i2c, OMAPI2C, parent); in omap_i2c_send()
100 OMAPI2C *s = container_of(i2c, OMAPI2C, parent); in omap_i2c_recv()
162 return &s->parent; in omap_i2c_get_driver()
174 data = qtest_readw(s->parent.qts, s->addr + OMAP_I2C_REV); in omap_i2c_start_hw()
185 s->parent.send = omap_i2c_send; in omap_i2c_init()
186 s->parent.recv = omap_i2c_recv; in omap_i2c_init()
187 s->parent.qts = qts; in omap_i2c_init()
/qemu/pc-bios/dtb/
H A Dcanyonlands.dts18 dcr-parent = <&{/cpus/cpu@0}>;
71 interrupt-parent = <&UIC0>;
83 interrupt-parent = <&UIC0>;
95 interrupt-parent = <&UIC0>;
123 interrupt-parent = <&UIC1>;
142 interrupt-parent = <&UIC0>;
158 interrupt-parent = <&UIC2>;
168 interrupt-parent = <&UIC2>;
176 interrupt-parent = <&UIC2>;
183 interrupt-parent = <&USBOTG0>;
[all …]
/qemu/docs/system/i386/
H A Dnitro-enclave.rst10 parent EC2 instance that spawned it and a Nitro Secure Module (NSM) device
11 for cryptographic attestation. The parent instance VM always has CID 3 while
41 - nitro-enclave.parent-role=string (optional) (Set parent instance IAM role ARN)
42 - nitro-enclave.parent-id=string (optional) (Set parent instance identifier)
61 parent VM know that it booted expecting a heartbeat (0xB7) response. So you must run
64 the applications on the host machine that would typically be running in the parent EC2
/qemu/backends/
H A Drng-builtin.c18 RngBackend parent; member
26 while (!QSIMPLEQ_EMPTY(&s->parent.requests)) { in rng_builtin_receive_entropy_bh()
27 RngRequest *req = QSIMPLEQ_FIRST(&s->parent.requests); in rng_builtin_receive_entropy_bh()
33 rng_backend_finalize_request(&s->parent, req); in rng_builtin_receive_entropy_bh()
67 .parent = TYPE_RNG_BACKEND,
H A Drng-random.c23 RngBackend parent; member
40 while (!QSIMPLEQ_EMPTY(&s->parent.requests)) { in entropy_available()
41 RngRequest *req = QSIMPLEQ_FIRST(&s->parent.requests); in entropy_available()
52 rng_backend_finalize_request(&s->parent, req); in entropy_available()
63 if (QSIMPLEQ_EMPTY(&s->parent.requests)) { in rng_random_request_entropy()
138 .parent = TYPE_RNG_BACKEND,
/qemu/scripts/coccinelle/
H A Dreset-type.cocci39 // itself (probably chaining to the parent class reset) then add the
45 expression parent;
51 - parent.hold(obj)
52 + parent.hold(obj, type)
73 expression parent;
79 - parent.exit(obj)
80 + parent.exit(obj, type)
/qemu/scripts/codeconverter/codeconverter/
H A Dtest_regexps.py66 .parent = TYPE_CHARDEV_WIN,
71 .parent = TYPE_ARMSSE,
94 .parent = TYPE_DEVICE,
98 .parent = TYPE_DEVICE,
108 .parent = TYPE_SYS_BUS_DEVICE,
124 .parent = TYPE_X86_CPU,
133 .parent = TYPE_SYS_BUS_DEVICE,
149 .parent = TYPE_SYS_BUS_DEVICE,
164 .parent = TYPE_DEVICE,
/qemu/include/qom/
H A Dobject.h148 * its parent as the first member, we can cast directly to a #Object.
161 Object *parent; member
267 * @PARENT_MODULE_OBJ_NAME: the parent object name in uppercase with underscore
288 .parent = TYPE_##PARENT_MODULE_OBJ_NAME, \
312 * @PARENT_MODULE_OBJ_NAME: the parent object name in uppercase with underscore
343 * @PARENT_MODULE_OBJ_NAME: the parent object name in uppercase with underscore
360 * @PARENT_MODULE_OBJ_NAME: the parent object name in uppercase with underscore
383 * @PARENT_MODULE_OBJ_NAME: the parent object name in uppercase with underscore
400 * @PARENT_MODULE_OBJ_NAME: the parent object name in uppercase with underscore
420 * @PARENT_MODULE_OBJ_NAME: the parent object name in uppercase with underscore
[all …]
/qemu/contrib/vhost-user-blk/
H A Dvhost-user-blk.c38 VugDev parent; member
91 gdev = container_of(vu_dev, VugDev, parent); in vub_panic_cb()
92 vdev_blk = container_of(gdev, VubDev, parent); in vub_panic_cb()
102 VugDev *gdev = &req->vdev_blk->parent; in vub_req_complete()
103 VuDev *vu_dev = &gdev->parent; in vub_req_complete()
228 VugDev *gdev = &vdev_blk->parent; in vub_virtio_process_req()
229 VuDev *vu_dev = &gdev->parent; in vub_virtio_process_req()
338 gdev = container_of(vu_dev, VugDev, parent); in vub_process_vq()
339 vdev_blk = container_of(gdev, VubDev, parent); in vub_process_vq()
370 gdev = container_of(dev, VugDev, parent); in vub_get_features()
[all …]
/qemu/docs/devel/
H A Dqom.rst54 .parent = TYPE_DEVICE,
69 The TYPE_DEVICE class is the parent class for all modern devices
83 .parent = TYPE_DEVICE,
88 .parent = TYPE_DEVICE,
131 Classes are initialized by first initializing any parent classes (if
132 necessary). After the parent class object has initialized, it will be
137 function pointers that the parent class has already initialized. All
140 Once all of the parent classes have been initialized, #TypeInfo::class_init
158 .parent = TYPE_DEVICE,
181 .parent = TYPE_DEVICE,
[all …]
/qemu/qom/
H A Dobject.c68 const char *parent; member
116 ti->parent = g_strdup(info->parent); in type_new()
180 assert(info->parent); in type_register_static()
226 if (!type->parent_type && type->parent) { in type_get_parent()
227 type->parent_type = type_get_by_name_noload(type->parent); in type_get_parent()
229 fprintf(stderr, "Type '%s' is missing its parent '%s'\n", in type_get_parent()
230 type->name, type->parent); in type_get_parent()
240 return (type->parent != NULL); in type_has_parent()
307 info.parent = parent_type->name; in type_initialize_interface()
338 TypeImpl *parent; in type_initialize() local
[all …]
/qemu/hw/virtio/
H A Dvirtio-input-pci.c116 .parent = TYPE_VIRTIO_PCI,
124 .parent = TYPE_VIRTIO_INPUT_PCI,
131 .parent = TYPE_VIRTIO_INPUT_HID_PCI,
139 .parent = TYPE_VIRTIO_INPUT_HID_PCI,
147 .parent = TYPE_VIRTIO_INPUT_HID_PCI,
154 .parent = TYPE_VIRTIO_INPUT_HID_PCI,
/qemu/tests/functional/qemu_test/
H A Dconfig.py21 return Path(__file__).parent.parent.parent.parent
/qemu/rust/qemu-api/src/
H A Dqom.rs14 //! * Type-safe casting between parent and child classes, through the [`IsA`]
18 //! * Automatic delegation of parent class methods to child classes. When a
35 //! class and its subclasses. It must start with its parent's class struct.
56 //! _class struct_. Class structs include a parent field corresponding
57 //! to the vtable of the parent class, all the way up to [`ObjectClass`].
122 /// or indirect parent of `Self`).
142 /// a field of type `$parent`.
145 ($struct:ty : $($parent:ty),* ) => {
147 // SAFETY: it is the caller responsibility to have $parent as the
149 unsafe impl $crate::qom::IsA<$parent> for $struct {}
[all …]

12345678910>>...63