/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/linux/tools/lib/ |
H A D | rbtree.c | 55 * are left undone as of now. Nor did I check for loops involving parent 71 * - old's parent and color get assigned to new 72 * - old gets assigned new as a parent and 'color' as a color. 78 struct rb_node *parent = rb_parent(old); in __rb_rotate_set_parents() local 81 __rb_change_child(old, new, parent, root); in __rb_rotate_set_parents() 88 struct rb_node *parent = rb_red_parent(node), *gparent, *tmp; in __rb_insert() local 94 if (unlikely(!parent)) { in __rb_insert() 105 * If there is a black parent, we are done. in __rb_insert() 110 if(rb_is_black(parent)) in __rb_insert() 113 gparent = rb_red_parent(parent); in __rb_insert() [all …]
|
/openbmc/linux/lib/ |
H A D | rbtree.c | 55 * are left undone as of now. Nor did I check for loops involving parent 71 * - old's parent and color get assigned to new 72 * - old gets assigned new as a parent and 'color' as a color. 78 struct rb_node *parent = rb_parent(old); in __rb_rotate_set_parents() local 81 __rb_change_child(old, new, parent, root); in __rb_rotate_set_parents() 88 struct rb_node *parent = rb_red_parent(node), *gparent, *tmp; in __rb_insert() local 94 if (unlikely(!parent)) { in __rb_insert() 105 * If there is a black parent, we are done. in __rb_insert() 110 if(rb_is_black(parent)) in __rb_insert() 113 gparent = rb_red_parent(parent); in __rb_insert() [all …]
|
/openbmc/linux/drivers/vfio/mdev/ |
H A D | mdev_core.c | 26 /* Caller must hold parent unreg_sem read or write lock */ 29 struct mdev_parent *parent = mdev->type->parent; in mdev_device_remove_common() local 33 lockdep_assert_held(&parent->unreg_sem); in mdev_device_remove_common() 46 * mdev_register_parent: Register a device as parent for mdevs 47 * @parent: parent structure registered 48 * @dev: device structure representing parent device. 53 * Registers the @parent stucture as a parent for mdev types and thus mdev 59 int mdev_register_parent(struct mdev_parent *parent, struct device *dev, in mdev_register_parent() argument 67 memset(parent, 0, sizeof(*parent)); in mdev_register_parent() 68 init_rwsem(&parent->unreg_sem); in mdev_register_parent() [all …]
|
/openbmc/linux/drivers/i2c/ |
H A D | i2c-mux.c | 44 struct i2c_adapter *parent = muxc->parent; in __i2c_mux_master_xfer() local 51 ret = __i2c_transfer(parent, msgs, num); in __i2c_mux_master_xfer() 63 struct i2c_adapter *parent = muxc->parent; in i2c_mux_master_xfer() local 70 ret = i2c_transfer(parent, msgs, num); in i2c_mux_master_xfer() 84 struct i2c_adapter *parent = muxc->parent; in __i2c_mux_smbus_xfer() local 91 ret = __i2c_smbus_xfer(parent, addr, flags, in __i2c_mux_smbus_xfer() 106 struct i2c_adapter *parent = muxc->parent; in i2c_mux_smbus_xfer() local 113 ret = i2c_smbus_xfer(parent, addr, flags, in i2c_mux_smbus_xfer() 121 /* Return the parent's functionality */ 125 struct i2c_adapter *parent = priv->muxc->parent; in i2c_mux_functionality() local [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/linux/drivers/clk/ |
H A D | clk-gate_test.c | 31 struct clk_hw *parent; in clk_gate_register_test_parent_names() local 34 parent = clk_hw_register_fixed_rate(NULL, "test_parent", NULL, 0, in clk_gate_register_test_parent_names() 36 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, parent); in clk_gate_register_test_parent_names() 41 KUNIT_EXPECT_PTR_EQ(test, parent, clk_hw_get_parent(ret)); in clk_gate_register_test_parent_names() 44 clk_hw_unregister_fixed_rate(parent); in clk_gate_register_test_parent_names() 49 struct clk_hw *parent; in clk_gate_register_test_parent_data() local 53 parent = clk_hw_register_fixed_rate(NULL, "test_parent", NULL, 0, in clk_gate_register_test_parent_data() 55 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, parent); in clk_gate_register_test_parent_data() 56 pdata.hw = parent; in clk_gate_register_test_parent_data() 61 KUNIT_EXPECT_PTR_EQ(test, parent, clk_hw_get_parent(ret)); in clk_gate_register_test_parent_data() [all …]
|
/openbmc/linux/kernel/ |
H A D | audit_watch.c | 28 * event. Each audit_watch holds a reference to its associated parent. 41 struct audit_parent *parent; /* associated parent */ member 42 struct list_head wlist; /* entry in parent->watches list */ 58 static void audit_free_parent(struct audit_parent *parent) in audit_free_parent() argument 60 WARN_ON(!list_empty(&parent->watches)); in audit_free_parent() 61 kfree(parent); in audit_free_parent() 66 struct audit_parent *parent; in audit_watch_free_mark() local 68 parent = container_of(entry, struct audit_parent, mark); in audit_watch_free_mark() 69 audit_free_parent(parent); in audit_watch_free_mark() 72 static void audit_get_parent(struct audit_parent *parent) in audit_get_parent() 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/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/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | sch_offload.sh | 44 sed s/root/parent\ root/ | 129 local parent=$1; shift 136 $cmd $(printf %x: $parent) "$@" 138 if ((parent == 0)); then 141 locus=$(printf "parent %x:1" $parent) 151 local parent=$1; shift 154 if ((parent != 0)); then 155 kind=$(qdisc_stats_get $h1 $parent: .kind) 167 local parent=$1; shift 170 with_qdiscs $handle $parent "$@" -- check_all_offloaded [all …]
|
/openbmc/linux/tools/testing/selftests/tc-testing/tc-tests/filters/ |
H A D | basic.json | 15 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'cm… 17 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol ip basic", 18 …"matchPattern": "^filter parent ffff: protocol ip pref 1 basic.*handle 0x1 flowid 1:1.*cmp\\(u8 at… 37 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'cm… 39 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol ip basic", 40 …"matchPattern": "^filter parent ffff: protocol ip pref 1 basic.*handle 0x1 flowid 1:1.*cmp\\(u8 at… 59 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'cm… 61 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol ip basic", 62 …"matchPattern": "^filter parent ffff: protocol ip pref 1 basic.*handle 0x1.*cmp\\(u16 at 0 layer 0… 81 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 protocol ip prio 1 basic match 'cm… [all …]
|
H A D | flow.json | 15 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key ds… 17 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 protocol ip prio 1 flow", 18 …"matchPattern": "filter parent ffff: protocol ip pref 1 flow chain [0-9]+ handle 0x1 map keys dst … 37 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key ds… 39 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 protocol ip prio 1 flow", 40 …"matchPattern": "filter parent ffff: protocol ip pref 1 flow chain [0-9]+ handle 0x1 map keys dst.… 59 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key ds… 61 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 protocol ip prio 1 flow", 62 …"matchPattern": "filter parent ffff: protocol ip pref 1 flow chain [0-9]+ handle 0x1 map keys dst … 81 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 protocol ip flow map key ds… [all …]
|
H A D | fw.json | 15 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 65535 fw action ok", 17 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 65535 protocol all fw", 37 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 65536 fw action ok", 39 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 65536 protocol all fw", 164 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 fw action ok", 166 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol all fw", 186 … "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 fw action gact index 1", 188 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol all fw", 207 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 fw action continue", 209 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol all fw", [all …]
|
H A D | matchall.json | 13 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… 15 "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 16 …"matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*gact action pass.*r… 34 …"cmdUnderTest": "$TC filter add dev $DUMMY parent 1: handle 0x1 prio 1 protocol ip matchall action… 36 "verifyCmd": "$TC filter get dev $DUMMY parent 1: handle 1 prio 1 protocol ip matchall", 37 …"matchPattern": "^filter parent 1: protocol ip pref 1 matchall.*handle 0x1.*gact action pass.*ref … 55 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ipv6 matchall a… 57 … "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ipv6 matchall", 58 …"matchPattern": "^filter parent ffff: protocol ipv6 pref 1 matchall.*handle 0x1.*gact action drop.… 76 …"cmdUnderTest": "$TC filter add dev $DUMMY parent 1: handle 0x1 prio 1 protocol ipv6 matchall acti… [all …]
|
/openbmc/linux/drivers/edac/ |
H A D | debugfs.c | 57 struct dentry *parent; in edac_create_debugfs_nodes() local 61 parent = debugfs_create_dir(mci->dev.kobj.name, edac_debugfs); in edac_create_debugfs_nodes() 66 debugfs_create_u8(name, S_IRUGO | S_IWUSR, parent, in edac_create_debugfs_nodes() 70 debugfs_create_bool("fake_inject_ue", S_IRUGO | S_IWUSR, parent, in edac_create_debugfs_nodes() 73 debugfs_create_u16("fake_inject_count", S_IRUGO | S_IWUSR, parent, in edac_create_debugfs_nodes() 76 debugfs_create_file("fake_inject", S_IWUSR, parent, &mci->dev, in edac_create_debugfs_nodes() 79 mci->debugfs = parent; in edac_create_debugfs_nodes() 92 /* Create a toplevel dir under EDAC's debugfs hierarchy with parent @parent */ 94 edac_debugfs_create_dir_at(const char *dirname, struct dentry *parent) in edac_debugfs_create_dir_at() argument 96 return debugfs_create_dir(dirname, parent); in edac_debugfs_create_dir_at() [all …]
|
/openbmc/linux/include/linux/ |
H A D | debugfs.h | 73 struct dentry *debugfs_lookup(const char *name, struct dentry *parent); 76 struct dentry *parent, void *data, 79 struct dentry *parent, void *data, 83 struct dentry *parent, void *data, 87 struct dentry *debugfs_create_dir(const char *name, struct dentry *parent); 89 struct dentry *debugfs_create_symlink(const char *name, struct dentry *parent, 93 struct dentry *parent, 100 void debugfs_lookup_and_remove(const char *name, struct dentry *parent); 117 void debugfs_create_u8(const char *name, umode_t mode, struct dentry *parent, 119 void debugfs_create_u16(const char *name, umode_t mode, struct dentry *parent, [all …]
|
/openbmc/linux/drivers/clk/imx/ |
H A D | clk.h | 118 #define imx_clk_gate_exclusive(name, parent, reg, shift, exclusive_mask) \ argument 119 to_clk(imx_clk_hw_gate_exclusive(name, parent, reg, shift, exclusive_mask)) 124 #define imx_clk_fixed_factor(name, parent, mult, div) \ argument 125 to_clk(imx_clk_hw_fixed_factor(name, parent, mult, div)) 127 #define imx_clk_divider(name, parent, reg, shift, width) \ argument 128 to_clk(imx_clk_hw_divider(name, parent, reg, shift, width)) 130 #define imx_clk_divider_flags(name, parent, reg, shift, width, flags) \ argument 131 to_clk(imx_clk_hw_divider_flags(name, parent, reg, shift, width, flags)) 133 #define imx_clk_gate(name, parent, reg, shift) \ argument 134 to_clk(imx_clk_hw_gate(name, parent, reg, shift)) [all …]
|
/openbmc/linux/include/trace/events/ |
H A D | qdisc.h | 28 __field( u32, parent ) 40 __entry->parent = qdisc->parent; 44 TP_printk("dequeue ifindex=%d qdisc handle=0x%X parent=0x%X txq_state=0x%lX packets=%d skbaddr=%p", 45 __entry->ifindex, __entry->handle, __entry->parent, 61 __field(u32, parent) 70 __entry->parent = qdisc->parent; 73 TP_printk("enqueue ifindex=%d qdisc handle=0x%X parent=0x%X skbaddr=%p", 74 __entry->ifindex, __entry->handle, __entry->parent, __entry->skbaddr) 86 __field( u32, parent ) 93 __entry->parent = q->parent; [all …]
|
/openbmc/linux/tools/testing/selftests/tc-testing/tc-tests/infra/ |
H A D | actions.json | 14 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… 16 "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 17 "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 37 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… 39 "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 40 "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 60 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… 62 "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 63 "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 83 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… [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/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 …]
|
/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 …]
|