/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() 227 ____rb_erase_color(struct rb_node * parent,struct rb_root * root,void (* augment_rotate)(struct rb_node * old,struct rb_node * new)) ____rb_erase_color() argument 410 __rb_erase_color(struct rb_node * parent,struct rb_root * root,void (* augment_rotate)(struct rb_node * old,struct rb_node * new)) __rb_erase_color() argument 488 struct rb_node *parent; rb_next() local 519 struct rb_node *parent; rb_prev() local 548 struct rb_node *parent = rb_parent(victim); rb_replace_node() local 575 const struct rb_node *parent; rb_next_postorder() local [all...] |
/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 …]
|
/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 …]
|
H A D | clk_test.c | 130 * between rates above the parent rate which would be rounded to 131 * what the parent can provide, but rates below will simply 330 * Test suite for a basic rate clock, without any parent. 451 * Test suite for a basic, uncached, rate clock, without any parent. 466 const char *parents[2] = { "parent-0", "parent-1"}; in clk_multiple_parents_mux_test_init() 474 ctx->parents_ctx[0].hw.init = CLK_HW_INIT_NO_PARENT("parent-0", in clk_multiple_parents_mux_test_init() 482 ctx->parents_ctx[1].hw.init = CLK_HW_INIT_NO_PARENT("parent-1", in clk_multiple_parents_mux_test_init() 511 struct clk *parent = clk_hw_get_clk(&ctx->parents_ctx[0].hw, NULL); in clk_test_multiple_parents_mux_get_parent() local 513 KUNIT_EXPECT_TRUE(test, clk_is_match(clk_get_parent(clk), parent)); in clk_test_multiple_parents_mux_get_parent() 515 clk_put(parent); in clk_test_multiple_parents_mux_get_parent() [all …]
|
/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 …]
|
/linux/tools/testing/selftests/tc-testing/tc-tests/filters/ |
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", 59 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 fw action ok", 61 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol all fw", 82 … "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 fw action gact index 1", 84 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol all fw", 104 "cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: handle 1 prio 1 fw action continue", 106 "verifyCmd": "$TC filter get dev $DEV1 parent ffff: handle 1 prio 1 protocol all fw", [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 | matchall.json | 15 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… 17 "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 18 …"matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*gact action pass.*r… 37 …"cmdUnderTest": "$TC filter add dev $DUMMY parent 1: handle 0x1 prio 1 protocol ip matchall action… 39 "verifyCmd": "$TC filter get dev $DUMMY parent 1: handle 1 prio 1 protocol ip matchall", 40 …"matchPattern": "^filter parent 1: protocol ip pref 1 matchall.*handle 0x1.*gact action pass.*ref … 59 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ipv6 matchall a… 61 … "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ipv6 matchall", 62 …"matchPattern": "^filter parent ffff: protocol ipv6 pref 1 matchall.*handle 0x1.*gact action drop.… 81 …"cmdUnderTest": "$TC filter add dev $DUMMY parent 1: handle 0x1 prio 1 protocol ipv6 matchall acti… [all …]
|
/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 …]
|
/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 …]
|
/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 …]
|
/linux/tools/testing/selftests/tc-testing/tc-tests/infra/ |
H A D | actions.json | 16 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… 18 "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 19 "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 39 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… 41 "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 42 "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 62 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… 64 "verifyCmd": "$TC filter get dev $DUMMY parent ffff: handle 1 prio 1 protocol ip matchall", 65 "matchPattern": "^filter parent ffff: protocol ip pref 1 matchall.*handle 0x1.*", 85 …"cmdUnderTest": "$TC filter add dev $DUMMY parent ffff: handle 0x1 prio 1 protocol ip matchall act… [all …]
|
H A D | qdiscs.json | 15 "$TC filter add dev $DUMMY parent 1: basic classid 1:1", 16 "$TC class add dev $DUMMY parent 1: classid 1:1 drr", 17 "$TC qdisc add dev $DUMMY parent 1:1 handle ffff: drr", 18 "$TC filter add dev $DUMMY parent ffff: basic classid ffff:1", 19 "$TC class add dev $DUMMY parent ffff: classid ffff:1 drr", 20 "$TC qdisc add dev $DUMMY parent ffff:1 netem delay 1s", 23 "$TC class add dev $DUMMY parent ffff: classid ffff:1 drr" 48 "$TC filter add dev $DUMMY parent ffff: basic classid ffff:1", 49 "$TC class add dev $DUMMY parent ffff: classid ffff:1 drr", 50 "$TC qdisc add dev $DUMMY parent ffff:1 netem delay 1s", [all …]
|
/linux/sound/pci/hda/ |
H A D | hda_component.c | 18 void hda_component_acpi_device_notify(struct hda_component_parent *parent, in hda_component_acpi_device_notify() argument 24 mutex_lock(&parent->mutex); in hda_component_acpi_device_notify() 25 for (i = 0; i < ARRAY_SIZE(parent->comps); i++) { in hda_component_acpi_device_notify() 26 comp = hda_component_from_index(parent, i); in hda_component_acpi_device_notify() 30 mutex_unlock(&parent->mutex); in hda_component_acpi_device_notify() 35 struct hda_component_parent *parent, in hda_component_manager_bind_acpi_notifications() argument 44 adev = parent->comps[0].adev; in hda_component_manager_bind_acpi_notifications() 48 for (i = 0; i < ARRAY_SIZE(parent->comps); i++) { in hda_component_manager_bind_acpi_notifications() 49 comp = hda_component_from_index(parent, i); in hda_component_manager_bind_acpi_notifications() 70 struct hda_component_parent *parent, in hda_component_manager_unbind_acpi_notifications() argument [all …]
|
H A D | hda_component.h | 38 void hda_component_acpi_device_notify(struct hda_component_parent *parent, 41 struct hda_component_parent *parent, 44 struct hda_component_parent *parent, 47 static inline void hda_component_acpi_device_notify(struct hda_component_parent *parent, in hda_component_acpi_device_notify() argument 55 struct hda_component_parent *parent, in hda_component_manager_bind_acpi_notifications() argument 64 struct hda_component_parent *parent, in hda_component_manager_unbind_acpi_notifications() argument 70 void hda_component_manager_playback_hook(struct hda_component_parent *parent, int action); 73 struct hda_component_parent *parent, int count, 78 void hda_component_manager_free(struct hda_component_parent *parent, 81 int hda_component_manager_bind(struct hda_codec *cdc, struct hda_component_parent *parent); [all …]
|
/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, __entr [all...] |
/linux/include/linux/ |
H A D | proc_fs.h | 97 struct proc_dir_entry *parent, const struct seq_operations *ops, 99 #define proc_create_seq_data(name, mode, parent, ops, data) \ argument 100 proc_create_seq_private(name, mode, parent, ops, 0, data) 101 #define proc_create_seq(name, mode, parent, ops) \ argument 102 proc_create_seq_private(name, mode, parent, ops, 0, NULL) 104 struct proc_dir_entry *parent, 106 #define proc_create_single(name, mode, parent, show) \ argument 107 proc_create_single_data(name, mode, parent, show, NULL) 114 struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, c… 133 struct proc_dir_entry *parent, const struct seq_operations *ops, [all …]
|
/linux/arch/arm/boot/dts/arm/ |
H A D | arm-realview-pba8.dts | 45 interrupt-parent = <&intc>; 62 interrupt-parent = <&intc>; 67 interrupt-parent = <&intc>; 80 interrupt-parent = <&intc>; 85 interrupt-parent = <&intc>; 90 interrupt-parent = <&intc>; 95 interrupt-parent = <&intc>; 100 interrupt-parent = <&intc>; 105 interrupt-parent = <&intc>; 110 interrupt-parent = <&intc>; [all …]
|
H A D | arm-realview-pbx-a9.dts | 89 interrupt-parent = <&intc>; 96 interrupt-parent = <&intc>; 102 interrupt-parent = <&intc>; 120 interrupt-parent = <&intc>; 125 interrupt-parent = <&intc>; 130 interrupt-parent = <&intc>; 135 interrupt-parent = <&intc>; 140 interrupt-parent = <&intc>; 145 interrupt-parent = <&intc>; 150 interrupt-parent = <&intc>; [all …]
|
/linux/tools/testing/selftests/cgroup/ |
H A D | test_kmem.c | 129 static int cg_run_in_subcgroups(const char *parent, in cg_run_in_subcgroups() 137 child = cg_name_indexed(parent, "child", i); in cg_run_in_subcgroups() 163 * threads. Then it checks the sanity of numbers on the parent level: 171 char *parent; in test_kmem_memcg_deletion() 173 parent = cg_name(root, "kmem_memcg_deletion_test"); in test_kmem_memcg_deletion() 174 if (!parent) in test_kmem_memcg_deletion() 177 if (cg_create(parent)) in test_kmem_memcg_deletion() 180 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_kmem_memcg_deletion() 183 if (cg_run_in_subcgroups(parent, alloc_kmem_smp, NULL, 100)) in test_kmem_memcg_deletion() 186 current = cg_read_long(parent, "memor in test_kmem_memcg_deletion() 127 cg_run_in_subcgroups(const char * parent,int (* fn)(const char * cgroup,void * arg),void * arg,int times) cg_run_in_subcgroups() argument 169 char *parent; test_kmem_memcg_deletion() local 306 char *parent; test_kmem_dead_cgroups() local 353 char *parent, *child; test_percpu_basic() local [all...] |
H A D | test_core.c | 278 char *grandparent = NULL, *parent = NULL, *child = NULL; in test_cgcore_invalid_domain() 281 parent = cg_name(root, "cg_test_grandparent/cg_test_parent"); in test_cgcore_invalid_domain() 283 if (!parent || !child || !grandparent) in test_cgcore_invalid_domain() 289 if (cg_create(parent)) in test_cgcore_invalid_domain() 295 if (cg_write(parent, "cgroup.type", "threaded")) in test_cgcore_invalid_domain() 323 if (parent) in test_cgcore_invalid_domain() 324 cg_destroy(parent); in test_cgcore_invalid_domain() 328 free(parent); in test_cgcore_invalid_domain() 335 * the parent type becomes domain threaded. in test_cgcore_parent_becomes_threaded() 340 char *parent in test_cgcore_parent_becomes_threaded() 276 char *grandparent = NULL, *parent = NULL, *child = NULL; test_cgcore_invalid_domain() local 338 char *parent = NULL, *child = NULL; test_cgcore_parent_becomes_threaded() local 377 char *parent = NULL, *child = NULL; test_cgcore_no_internal_process_constraint_on_threads() local 429 char *parent = NULL, *child = NULL; test_cgcore_top_down_constraint_enable() local 464 char *parent = NULL, *child = NULL; test_cgcore_top_down_constraint_disable() local 505 char *parent = NULL, *child = NULL; test_cgcore_internal_process_constraint() local [all...] |
/linux/drivers/clk/sunxi-ng/ |
H A D | ccu_phase.c | 16 struct clk_hw *parent, *grandparent; in ccu_phase_get_phase() local 29 /* Get our parent clock, it's the one that can adjust its rate */ in ccu_phase_get_phase() 30 parent = clk_hw_get_parent(hw); in ccu_phase_get_phase() 31 if (!parent) in ccu_phase_get_phase() 35 parent_rate = clk_hw_get_rate(parent); in ccu_phase_get_phase() 39 /* Now, get our parent's parent (most likely some PLL) */ in ccu_phase_get_phase() 40 grandparent = clk_hw_get_parent(parent); in ccu_phase_get_phase() 49 /* Get our parent clock divider */ in ccu_phase_get_phase() 59 struct clk_hw *parent, *grandparent; in ccu_phase_set_phase() local 65 /* Get our parent clock, it's the one that can adjust its rate */ in ccu_phase_set_phase() [all …]
|
/linux/Documentation/i2c/ |
H A D | i2c-topology.rst | 23 each adapter has a parent adapter (except the root adapter) and zero or 25 I2C transfers, and all adapters with a parent are part of an "i2c-mux" 40 mux-locked or parent-locked muxes. 46 Mux-locked muxes does not lock the entire parent adapter during the 47 full select-transfer-deselect transaction, only the muxes on the parent 50 their tasks. Since the parent adapter is not fully locked during the 72 2. M1 locks muxes on its parent (the root adapter in this case). 75 These transfers are normal I2C transfers that locks the parent 77 5. M1 feeds the I2C transfer from step 1 to its parent adapter as a 78 normal I2C transfer that locks the parent adapter. [all …]
|
/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | qos.c | 93 /* configure parent txschq */ in otx2_config_sched_shaping() 94 cfg->regval[*num_regs] = node->parent->schq << 16; in otx2_config_sched_shaping() 108 (node->schq - node->parent->prio_anchor) << 24; in otx2_config_sched_shaping() 113 cfg->regval[*num_regs] = node->parent->child_dwrr_prio << 24 | in otx2_config_sched_shaping() 168 /* configure parent txschq */ in __otx2_qos_txschq_cfg() 181 if (node->qid == OTX2_QOS_QID_INNER && !node->parent) { in __otx2_qos_txschq_cfg() 198 struct otx2_qos_node *parent) in otx2_qos_txschq_set_parent_topology() argument 204 if (parent->level == NIX_TXSCH_LVL_MDQ) in otx2_qos_txschq_set_parent_topology() 215 cfg->lvl = parent->level; in otx2_qos_txschq_set_parent_topology() 217 if (parent->level == NIX_TXSCH_LVL_TL4) in otx2_qos_txschq_set_parent_topology() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | qos.c | 81 /* The parent node in the rate hierarchy. */ 82 struct mlx5_esw_sched_node *parent; member 83 /* Entry in the parent node's children list. */ 99 if (!node->parent) { in esw_qos_node_attach_to_parent() 104 node->level = node->parent->level + 1; in esw_qos_node_attach_to_parent() 105 list_add_tail(&node->entry, &node->parent->children); in esw_qos_node_attach_to_parent() 110 esw_qos_node_set_parent(struct mlx5_esw_sched_node *node, struct mlx5_esw_sched_node *parent) in esw_qos_node_set_parent() argument 113 node->parent = parent; in esw_qos_node_set_parent() 114 if (parent) in esw_qos_node_set_parent() 115 node->esw = parent->esw; in esw_qos_node_set_parent() [all …]
|