/openbmc/u-boot/lib/ |
H A D | rbtree.c | 49 * - old's parent and color get assigned to new 50 * - old gets assigned new as a parent and 'color' as a color. 56 struct rb_node *parent = rb_parent(old); in __rb_rotate_set_parents() local 59 __rb_change_child(old, new, parent, root); in __rb_rotate_set_parents() 66 struct rb_node *parent = rb_red_parent(node), *gparent, *tmp; in __rb_insert() local 72 * If there is a black parent, we are done. in __rb_insert() 76 if (!parent) { in __rb_insert() 79 } else if (rb_is_black(parent)) in __rb_insert() 82 gparent = rb_red_parent(parent); in __rb_insert() 85 if (parent != tmp) { /* parent == gparent->rb_left */ in __rb_insert() [all …]
|
/openbmc/libbej/test/ |
H A D | bej_tree_test.cpp | 63 struct RedfishPropertyParent parent; in TEST() local 67 bejTreeInitSet(&parent, nullptr); in TEST() 68 EXPECT_THAT(parent.nChildren, 0); in TEST() 69 EXPECT_THAT(parent.firstChild, nullptr); in TEST() 70 EXPECT_THAT(parent.lastChild, nullptr); in TEST() 72 bejTreeAddInteger(&parent, &child1, nullptr, 1024); in TEST() 73 EXPECT_THAT(parent.nChildren, 1); in TEST() 74 EXPECT_THAT(parent.firstChild, &child1); in TEST() 75 EXPECT_THAT(parent.lastChild, &child1); in TEST() 77 bejTreeAddInteger(&parent, &child2, nullptr, 20); in TEST() [all …]
|
/openbmc/qemu/util/ |
H A D | interval-tree.c | 135 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 …]
|
/openbmc/qemu/hw/misc/ |
H A D | omap_clk.c | 30 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 …]
|
/openbmc/libbej/include/libbej/ |
H A D | bej_tree.h | 15 * @brief Holds info needed to encode a parent in the JSON tree. 31 // Dictionary used for this parent. 64 * @brief Used to store parent type property info. 66 * bejArray, bejSet and bejPropertyAnnotation are the parent type nodes. 90 * Every type that doesn't belong to parent type are considered as a leaf 184 * @brief Check if a node is a parent type node. 187 * @return true if the node is a parent type node. 194 * @param parent - a pointer to an initialized parent struct. 198 void bejTreeAddNull(struct RedfishPropertyParent* parent, 202 * @brief Add a bejInteger type node to a parent node. [all …]
|
/openbmc/u-boot/include/dm/ |
H A D | lists.h | 36 * lists_bind_drivers() - search for and bind all drivers to parent 39 * each one. The devices will have @parent as their parent. 41 * @parent: parent device (root) 45 int lists_bind_drivers(struct udevice *parent, bool pre_reloc_only); 51 * @parent as its parent. 53 * @parent: parent device (root) 61 int lists_bind_fdt(struct udevice *parent, ofnode node, struct udevice **devp, 69 * @parent: Parent device 70 * @drv_name: Name of driver to attach to this parent 74 int device_bind_driver(struct udevice *parent, const char *drv_name, [all …]
|
/openbmc/libbej/src/ |
H A D | bej_tree.c | 54 void bejTreeAddNull(struct RedfishPropertyParent* parent, in bejTreeAddNull() argument 58 bejTreeLinkChildToParent(parent, child); in bejTreeAddNull() 61 void bejTreeAddInteger(struct RedfishPropertyParent* parent, in bejTreeAddInteger() argument 67 bejTreeLinkChildToParent(parent, child); in bejTreeAddInteger() 75 void bejTreeAddEnum(struct RedfishPropertyParent* parent, in bejTreeAddEnum() argument 81 bejTreeLinkChildToParent(parent, child); in bejTreeAddEnum() 84 void bejTreeAddString(struct RedfishPropertyParent* parent, in bejTreeAddString() argument 90 bejTreeLinkChildToParent(parent, child); in bejTreeAddString() 93 void bejTreeAddReal(struct RedfishPropertyParent* parent, in bejTreeAddReal() argument 99 bejTreeLinkChildToParent(parent, child); in bejTreeAddReal() [all …]
|
H A D | bej_encoder_metadata.c | 56 * @param[in] parentDictionary - dictionary used for the parent of this node. 65 // If the node name is NULL, we have to use parent dictionary. in bejGetRelatedDictionary() 71 // If the parent is using annotation dictionary, that means the parent is an in bejGetRelatedDictionary() 88 * parent. 90 * @param[in] nodeIndex - index of this node within its parent. 92 * this node's parent. 109 // its parent's info. in bejFindSeqNumAndChildDictOffset() 136 // If this node's dictionary and its parent's dictionary is different, in bejFindSeqNumAndChildDictOffset() 415 * @param parentDictionary - dictionary used by this node's parent. 420 * node's parent. [all …]
|
H A D | bej_encoder_core.c | 225 * @brief A helper function to add a parent to the stack. 227 static int bejPushParentToStack(struct RedfishPropertyParent* parent, in bejPushParentToStack() argument 230 // Before pushing the parent node, initialize its nextChild as the first in bejPushParentToStack() 232 parent->metaData.nextChild = parent->firstChild; in bejPushParentToStack() 233 return stack->stackPush(parent, stack->stackContext); in bejPushParentToStack() 237 * @brief Process all the child nodes of a parent. 239 static int bejProcessChildNodes(struct RedfishPropertyParent* parent, in bejProcessChildNodes() argument 243 // Get the next child of the parent. in bejProcessChildNodes() 244 void* childPtr = parent->metaData.nextChild; in bejProcessChildNodes() 253 // parent. in bejProcessChildNodes() [all …]
|
/openbmc/u-boot/scripts/kconfig/ |
H A D | qconf.h | 44 typedef class QTreeWidget Parent; typedef 48 ConfigView* parent(void) const in parent() function 50 return (ConfigView*)Parent::parent(); in parent() 105 void updateMenuList(ConfigItem *parent, struct menu*); 106 void updateMenuList(ConfigList *parent, struct menu*); 124 typedef class QTreeWidgetItem Parent; typedef 126 ConfigItem(ConfigList *parent, ConfigItem *after, struct menu *m, bool v) in ConfigItem() argument 127 : Parent(parent, after), nextItem(0), menu(m), visible(v), goParent(false) in ConfigItem() 131 ConfigItem(ConfigItem *parent, ConfigItem *after, struct menu *m, bool v) in ConfigItem() argument 132 : Parent(parent, after), nextItem(0), menu(m), visible(v), goParent(false) in ConfigItem() [all …]
|
/openbmc/u-boot/drivers/clk/renesas/ |
H A D | clk-rcar-gen2.c | 78 struct clk parent; in gen2_clk_get_rate() local 87 ret = renesas_clk_get_parent(clk, info, &parent); in gen2_clk_get_rate() 89 printf("%s[%i] parent fail, ret=%i\n", __func__, __LINE__, ret); in gen2_clk_get_rate() 94 rate = gen2_clk_get_rate(&parent); in gen2_clk_get_rate() 95 debug("%s[%i] MOD clk: parent=%lu => rate=%u\n", in gen2_clk_get_rate() 96 __func__, __LINE__, parent.id, rate); in gen2_clk_get_rate() 123 rate = (gen2_clk_get_rate(&parent) * core->mult) / core->div; in gen2_clk_get_rate() 124 debug("%s[%i] FIXED clk: parent=%i mul=%i div=%i => rate=%u\n", in gen2_clk_get_rate() 126 core->parent, core->mult, core->div, rate); in gen2_clk_get_rate() 129 case CLK_TYPE_DIV6P1: /* DIV6 Clock with 1 parent clock */ in gen2_clk_get_rate() [all …]
|
H A D | clk-rcar-gen3.c | 89 struct cpg_mssr_info *info, struct clk *parent) in gen3_clk_get_parent() argument 100 parent->dev = clk->dev; in gen3_clk_get_parent() 101 parent->id = core->parent >> (priv->sscg ? 16 : 0); in gen3_clk_get_parent() 102 parent->id &= 0xffff; in gen3_clk_get_parent() 107 return renesas_clk_get_parent(clk, info, parent); in gen3_clk_get_parent() 115 struct clk parent; in gen3_clk_setup_sdif_div() local 118 ret = gen3_clk_get_parent(priv, clk, info, &parent); in gen3_clk_setup_sdif_div() 120 printf("%s[%i] parent fail, ret=%i\n", __func__, __LINE__, ret); in gen3_clk_setup_sdif_div() 124 if (renesas_clk_is_mod(&parent)) in gen3_clk_setup_sdif_div() 127 ret = renesas_clk_get_core(&parent, info, &core); in gen3_clk_setup_sdif_div() [all …]
|
/openbmc/u-boot/drivers/core/ |
H A D | device.c | 33 static int device_bind_common(struct udevice *parent, const struct driver *drv, in device_bind_common() argument 67 dev->parent = parent; in device_bind_common() 126 if (parent) { in device_bind_common() 127 size = parent->driver->per_child_platdata_auto_alloc_size; in device_bind_common() 129 size = parent->uclass->uc_drv-> in device_bind_common() 142 /* put dev into parent's successor list */ in device_bind_common() 143 if (parent) in device_bind_common() 144 list_add_tail(&dev->sibling_node, &parent->child_head); in device_bind_common() 156 if (parent && parent->driver->child_post_bind) { in device_bind_common() 157 ret = parent->driver->child_post_bind(dev); in device_bind_common() [all …]
|
H A D | of_addr.c | 40 int (*match)(struct device_node *parent); 129 struct device_node *parent; in of_get_address() local 133 /* Get parent & match bus type */ in of_get_address() 134 parent = of_get_parent(dev); in of_get_address() 135 if (parent == NULL) in of_get_address() 138 bus = of_match_bus(parent); in of_get_address() 140 of_node_put(parent); in of_get_address() 168 static int of_translate_one(const struct device_node *parent, in of_translate_one() argument 194 ranges = of_get_property(parent, rprop, &rlen); in of_translate_one() 195 if (ranges == NULL && !of_empty_ranges_quirk(parent)) { in of_translate_one() [all …]
|
/openbmc/phosphor-networkd/src/ |
H A D | dhcp_configuration.cpp | 22 stdplus::PinnedRef<EthernetInterface> parent, DHCPType type) : in Configuration() argument 23 Iface(bus, objPath.c_str(), Iface::action::defer_emit), parent(parent) in Configuration() 26 parent.get().manager.get().getConfDir(), parent.get().interfaceName())); in Configuration() 45 parent.get().writeConfigurationFile(); in sendHostNameEnabled() 46 parent.get().reloadConfigs(); in sendHostNameEnabled() 58 parent.get().writeConfigurationFile(); in hostNameEnabled() 59 parent.get().reloadConfigs(); in hostNameEnabled() 72 parent.get().writeConfigurationFile(); in ntpEnabled() 73 parent.get().reloadConfigs(); in ntpEnabled() 86 parent.get().writeConfigurationFile(); in dnsEnabled() [all …]
|
/openbmc/qemu/scripts/qapi/ |
H A D | source.py | 36 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
|
/openbmc/qemu/hw/core/ |
H A D | bus.c | 102 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 …]
|
/openbmc/openbmc/poky/meta/recipes-core/musl/bsd-headers/ |
H A D | sys-tree.h | 51 * - each red node (except for the root) has a black parent, 310 struct type *rbe_parent; /* parent element */ \ 321 #define RB_SET(elm, parent, field) do { \ argument 322 RB_PARENT(elm, field) = parent; \ 404 struct type *parent, *gparent, *tmp; \ 405 while ((parent = RB_PARENT(elm, field)) != NULL && \ 406 RB_COLOR(parent, field) == RB_RED) { \ 407 gparent = RB_PARENT(parent, field); \ 408 if (parent == RB_LEFT(gparent, field)) { \ 412 RB_SET_BLACKRED(parent, gparent, field);\ [all …]
|
/openbmc/u-boot/include/linux/ |
H A D | rbtree_augmented.h | 99 struct rb_node *parent, struct rb_root *root) in __rb_change_child() argument 101 if (parent) { in __rb_change_child() 102 if (parent->rb_left == old) in __rb_change_child() 103 parent->rb_left = new; in __rb_change_child() 105 parent->rb_right = new; in __rb_change_child() 110 extern void __rb_erase_color(struct rb_node *parent, struct rb_root *root, 118 struct rb_node *parent, *rebalance; in __rb_erase_augmented() local 130 parent = __rb_parent(pc); in __rb_erase_augmented() 131 __rb_change_child(node, child, parent, root); in __rb_erase_augmented() 136 rebalance = __rb_is_black(pc) ? parent : NULL; in __rb_erase_augmented() [all …]
|
/openbmc/u-boot/drivers/virtio/ |
H A D | virtio-uclass.c | 34 ops = virtio_get_ops(vdev->parent); in virtio_get_config() 36 return ops->get_config(vdev->parent, offset, buf, len); in virtio_get_config() 44 ops = virtio_get_ops(vdev->parent); in virtio_set_config() 46 return ops->set_config(vdev->parent, offset, buf, len); in virtio_set_config() 53 ops = virtio_get_ops(vdev->parent); in virtio_generation() 57 return ops->generation(vdev->parent, counter); in virtio_generation() 64 ops = virtio_get_ops(vdev->parent); in virtio_get_status() 66 return ops->get_status(vdev->parent, status); in virtio_get_status() 73 ops = virtio_get_ops(vdev->parent); in virtio_set_status() 75 return ops->set_status(vdev->parent, status); in virtio_set_status() [all …]
|
/openbmc/phosphor-snmp/ |
H A D | snmp_client.cpp | 13 Client::Client(sdbusplus::bus_t& bus, const char* objPath, ConfManager& parent, in Client() argument 16 id(std::stol(std::filesystem::path(objPath).filename())), parent(parent) in Client() 34 parent.checkClientConfigured(value, port()); in address() 37 serialize(id, *this, parent.dbusPersistentLocation); in address() 48 parent.checkClientConfigured(address(), value); in port() 51 serialize(id, *this, parent.dbusPersistentLocation); in port() 57 parent.deleteSNMPClient(id); in delete_()
|
/openbmc/u-boot/test/dm/ |
H A D | phy.c | 21 struct udevice *parent; in dm_test_phy_base() local 25 "gen_phy_user", &parent)); in dm_test_phy_base() 29 ut_assertok(generic_phy_get_by_name(parent, "phy1", &phy1_method1)) in dm_test_phy_base() 30 ut_assertok(generic_phy_get_by_index(parent, 0, &phy1_method2)) in dm_test_phy_base() 37 ut_assertok(generic_phy_get_by_name(parent, "phy2", &phy2)) in dm_test_phy_base() 44 ut_assertok(generic_phy_get_by_name(parent, "phy3", &phy3)) in dm_test_phy_base() 49 ut_asserteq(-ENODATA, generic_phy_get_by_name(parent, in dm_test_phy_base() 62 struct udevice *parent; in dm_test_phy_ops() local 65 "gen_phy_user", &parent)); in dm_test_phy_ops() 67 ut_assertok(generic_phy_get_by_name(parent, "phy1", &phy1)); in dm_test_phy_ops() [all …]
|
/openbmc/u-boot/drivers/mtd/ |
H A D | mtdpart.c | 187 * Stateless function that takes a @parent MTD device, a string @_mtdparts 193 * @parent: MTD device which contains the partitions 202 int mtd_parse_partitions(struct mtd_info *parent, const char **_mtdparts, in mtd_parse_partitions() argument 236 parts[idx].size = parent->size - cur_sz; in mtd_parse_partitions() 240 if (sz < parent->writesize || do_div(sz, parent->writesize)) { in mtd_parse_partitions() 242 parent->writesize); in mtd_parse_partitions() 250 parts[idx].ecclayout = parent->ecclayout; in mtd_parse_partitions() 295 stats = mtd->parent->ecc_stats; in part_read() 296 res = mtd->parent->_read(mtd->parent, from + mtd->offset, len, in part_read() 300 mtd->parent->ecc_stats.failed - stats.failed; in part_read() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-gnome/recipes-gnome/cheese/cheese/ |
H A D | 0001-libcheese-Add-GtkWidget-cast-to-avoid-an-incompatibl.patch | 19 GObject *parent; 20 parent = g_value_get_object (value); 22 - priv->parent = g_object_ref (parent); 23 + priv->parent = GTK_WIDGET (g_object_ref (parent)); 25 priv->parent = NULL;
|
/openbmc/u-boot/drivers/clk/mediatek/ |
H A D | clk-mtk.h | 48 * @parent: index of parnet clocks 53 const int parent; member 59 .parent = _parent, \ 67 * @parent: index of parnet clocks 74 const int parent; member 82 .parent = _parent, \ 92 * @parent: index of parnet clocks 98 * @num_parents: number of parent clocks 103 const int *parent; member 121 .parent = _parents, \ [all …]
|