/linux-6.6.21/tools/lib/ |
D | rbtree.c | 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() 110 if(rb_is_black(parent)) in __rb_insert() 113 gparent = rb_red_parent(parent); in __rb_insert() 116 if (parent != tmp) { /* parent == gparent->rb_left */ in __rb_insert() 132 rb_set_parent_color(parent, gparent, RB_BLACK); in __rb_insert() 134 parent = rb_parent(node); in __rb_insert() 135 rb_set_parent_color(node, parent, RB_RED); in __rb_insert() [all …]
|
/linux-6.6.21/lib/ |
D | rbtree.c | 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() 110 if(rb_is_black(parent)) in __rb_insert() 113 gparent = rb_red_parent(parent); in __rb_insert() 116 if (parent != tmp) { /* parent == gparent->rb_left */ in __rb_insert() 132 rb_set_parent_color(parent, gparent, RB_BLACK); in __rb_insert() 134 parent = rb_parent(node); in __rb_insert() 135 rb_set_parent_color(node, parent, RB_RED); in __rb_insert() [all …]
|
D | kobject.c | 109 const struct kobject *parent = kobj; in get_kobj_path_length() local 116 if (kobject_name(parent) == NULL) in get_kobj_path_length() 118 length += strlen(kobject_name(parent)) + 1; in get_kobj_path_length() 119 parent = parent->parent; in get_kobj_path_length() 120 } while (parent); in get_kobj_path_length() 126 const struct kobject *parent; in fill_kobj_path() local 129 for (parent = kobj; parent; parent = parent->parent) { in fill_kobj_path() 130 int cur = strlen(kobject_name(parent)); in fill_kobj_path() 135 memcpy(path + length, kobject_name(parent), cur); in fill_kobj_path() 213 struct kobject *parent; in kobject_add_internal() local [all …]
|
/linux-6.6.21/drivers/i2c/ |
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() 125 struct i2c_adapter *parent = priv->muxc->parent; in i2c_mux_functionality() local 127 return parent->algo->functionality(parent); in i2c_mux_functionality() [all …]
|
/linux-6.6.21/tools/testing/selftests/drivers/net/mlxsw/ |
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) 170 with_qdiscs $handle $parent "$@" -- check_all_offloaded 171 log_test $(get_name $parent "$@")" offloaded" [all …]
|
/linux-6.6.21/drivers/vfio/mdev/ |
D | mdev_core.c | 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() 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() 69 parent->dev = dev; in mdev_register_parent() 70 parent->mdev_driver = mdev_driver; in mdev_register_parent() 71 parent->types = types; in mdev_register_parent() 72 parent->nr_types = nr_types; in mdev_register_parent() 73 atomic_set(&parent->available_instances, mdev_driver->max_instances); in mdev_register_parent() [all …]
|
/linux-6.6.21/kernel/ |
D | audit_watch.c | 41 struct audit_parent *parent; /* associated parent */ member 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 74 if (likely(parent)) in audit_get_parent() 75 fsnotify_get_mark(&parent->mark); in audit_get_parent() [all …]
|
/linux-6.6.21/drivers/clk/ |
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 …]
|
/linux-6.6.21/include/linux/ |
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 …]
|
D | proc_fs.h | 93 struct proc_dir_entry *parent, const struct seq_operations *ops, 95 #define proc_create_seq_data(name, mode, parent, ops, data) \ argument 96 proc_create_seq_private(name, mode, parent, ops, 0, data) 97 #define proc_create_seq(name, mode, parent, ops) \ argument 98 proc_create_seq_private(name, mode, parent, ops, 0, NULL) 100 struct proc_dir_entry *parent, 102 #define proc_create_single(name, mode, parent, show) \ argument 103 proc_create_single_data(name, mode, parent, show, NULL) 110 struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, c… 129 struct proc_dir_entry *parent, const struct seq_operations *ops, [all …]
|
D | rbtree_augmented.h | 69 struct rb_node *parent = NULL; in rb_add_augmented_cached() local 73 parent = *link; in rb_add_augmented_cached() 74 if (less(node, parent)) { in rb_add_augmented_cached() 75 link = &parent->rb_left; in rb_add_augmented_cached() 77 link = &parent->rb_right; in rb_add_augmented_cached() 82 rb_link_node(node, parent, link); in rb_add_augmented_cached() 83 augment->propagate(parent, NULL); /* suboptimal */ in rb_add_augmented_cached() 196 struct rb_node *parent, struct rb_root *root) in __rb_change_child() argument 198 if (parent) { in __rb_change_child() 199 if (parent->rb_left == old) in __rb_change_child() [all …]
|
/linux-6.6.21/drivers/edac/ |
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() 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() 110 edac_debugfs_create_file(const char *name, umode_t mode, struct dentry *parent, in edac_debugfs_create_file() argument [all …]
|
/linux-6.6.21/tools/testing/selftests/cgroup/ |
D | test_kmem.c | 129 static int cg_run_in_subcgroups(const char *parent, in cg_run_in_subcgroups() argument 137 child = cg_name_indexed(parent, "child", i); in cg_run_in_subcgroups() 171 char *parent; in test_kmem_memcg_deletion() local 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, "memory.current"); in test_kmem_memcg_deletion() 187 anon = cg_read_key_long(parent, "memory.stat", "anon "); in test_kmem_memcg_deletion() [all …]
|
D | test_cpuset.c | 33 const char *parent = arg; in do_controller_fn() local 41 if (cg_write(parent, "cgroup.subtree_control", "+cpuset")) in do_controller_fn() 47 if (cg_write(parent, "cgroup.subtree_control", "-cpuset")) in do_controller_fn() 67 char *parent = NULL, *child_src = NULL, *child_dst = NULL; in test_cpuset_perms_object() local 73 parent = cg_name(root, "cpuset_test_0"); in test_cpuset_perms_object() 74 if (!parent) in test_cpuset_perms_object() 76 parent_procs = cg_name(parent, "cgroup.procs"); in test_cpuset_perms_object() 79 if (cg_create(parent)) in test_cpuset_perms_object() 82 child_src = cg_name(parent, "cpuset_test_1"); in test_cpuset_perms_object() 91 child_dst = cg_name(parent, "cpuset_test_2"); in test_cpuset_perms_object() [all …]
|
D | test_core.c | 276 char *grandparent = NULL, *parent = NULL, *child = NULL; in test_cgcore_invalid_domain() local 279 parent = cg_name(root, "cg_test_grandparent/cg_test_parent"); in test_cgcore_invalid_domain() 281 if (!parent || !child || !grandparent) in test_cgcore_invalid_domain() 287 if (cg_create(parent)) in test_cgcore_invalid_domain() 293 if (cg_write(parent, "cgroup.type", "threaded")) in test_cgcore_invalid_domain() 321 if (parent) in test_cgcore_invalid_domain() 322 cg_destroy(parent); in test_cgcore_invalid_domain() 326 free(parent); in test_cgcore_invalid_domain() 338 char *parent = NULL, *child = NULL; in test_cgcore_parent_becomes_threaded() local 340 parent = cg_name(root, "cg_test_parent"); in test_cgcore_parent_becomes_threaded() [all …]
|
/linux-6.6.21/fs/kernfs/ |
D | dir.c | 59 return strlcpy(buf, kn->parent ? kn->name : "/", buflen); in kernfs_name_locked() 67 while (to->parent && to != from) { in kernfs_depth() 69 to = to->parent; in kernfs_depth() 87 a = a->parent; in kernfs_common_ancestor() 91 b = b->parent; in kernfs_common_ancestor() 97 b = b->parent; in kernfs_common_ancestor() 98 a = a->parent; in kernfs_common_ancestor() 168 kn = kn->parent; in kernfs_path_from_node_locked() 294 struct kernfs_node *parent; in kernfs_get_parent() local 298 parent = kn->parent; in kernfs_get_parent() [all …]
|
D | symlink.c | 25 struct kernfs_node *kernfs_create_link(struct kernfs_node *parent, in kernfs_create_link() argument 39 kn = kernfs_new_node(parent, name, S_IFLNK|0777, uid, gid, KERNFS_LINK); in kernfs_create_link() 43 if (kernfs_ns_enabled(parent)) in kernfs_create_link() 56 static int kernfs_get_target_path(struct kernfs_node *parent, in kernfs_get_target_path() argument 64 base = parent; in kernfs_get_target_path() 65 while (base->parent) { in kernfs_get_target_path() 66 kn = target->parent; in kernfs_get_target_path() 67 while (kn->parent && base != kn) in kernfs_get_target_path() 68 kn = kn->parent; in kernfs_get_target_path() 78 base = base->parent; in kernfs_get_target_path() [all …]
|
/linux-6.6.21/fs/sysfs/ |
D | dir.c | 21 void sysfs_warn_dup(struct kernfs_node *parent, const char *name) in sysfs_warn_dup() argument 27 kernfs_path(parent, buf, PATH_MAX); in sysfs_warn_dup() 42 struct kernfs_node *parent, *kn; in sysfs_create_dir_ns() local 49 if (kobj->parent) in sysfs_create_dir_ns() 50 parent = kobj->parent->sd; in sysfs_create_dir_ns() 52 parent = sysfs_root_kn; in sysfs_create_dir_ns() 54 if (!parent) in sysfs_create_dir_ns() 59 kn = kernfs_create_dir_ns(parent, kobject_name(kobj), 0755, uid, gid, in sysfs_create_dir_ns() 63 sysfs_warn_dup(parent, kobject_name(kobj)); in sysfs_create_dir_ns() 108 struct kernfs_node *parent; in sysfs_rename_dir_ns() local [all …]
|
D | symlink.c | 20 static int sysfs_do_create_link_sd(struct kernfs_node *parent, in sysfs_do_create_link_sd() argument 26 if (WARN_ON(!name || !parent)) in sysfs_do_create_link_sd() 44 kn = kernfs_create_link(parent, name, target); in sysfs_do_create_link_sd() 51 sysfs_warn_dup(parent, name); in sysfs_do_create_link_sd() 70 struct kernfs_node *parent = NULL; in sysfs_do_create_link() local 73 parent = sysfs_root_kn; in sysfs_do_create_link() 75 parent = kobj->sd; in sysfs_do_create_link() 77 if (!parent) in sysfs_do_create_link() 80 return sysfs_do_create_link_sd(parent, target, name, warn); in sysfs_do_create_link() 145 struct kernfs_node *parent = NULL; in sysfs_remove_link() local [all …]
|
/linux-6.6.21/drivers/clk/imx/ |
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-6.6.21/include/trace/events/ |
D | qdisc.h | 28 __field( u32, parent ) 40 __entry->parent = qdisc->parent; 45 __entry->ifindex, __entry->handle, __entry->parent, 61 __field(u32, parent) 70 __entry->parent = qdisc->parent; 74 __entry->ifindex, __entry->handle, __entry->parent, __entry->skbaddr) 86 __field( u32, parent ) 93 __entry->parent = q->parent; 98 __get_str(kind), TC_H_MAJ(__entry->parent) >> 16, TC_H_MIN(__entry->parent), 111 __field( u32, parent ) [all …]
|
/linux-6.6.21/drivers/platform/surface/ |
D | surface_aggregator_registry.c | 44 .parent = &ssam_node_root, 50 .parent = &ssam_node_root, 56 .parent = &ssam_node_root, 62 .parent = &ssam_node_root, 68 .parent = &ssam_node_hub_base, 74 .parent = &ssam_node_root, 80 .parent = &ssam_node_root, 86 .parent = &ssam_node_root, 92 .parent = &ssam_node_root, 98 .parent = &ssam_node_root, [all …]
|
/linux-6.6.21/drivers/powercap/ |
D | dtpm.c | 105 struct dtpm *parent = dtpm->parent; in __dtpm_sub_power() local 107 while (parent) { in __dtpm_sub_power() 108 parent->power_min -= dtpm->power_min; in __dtpm_sub_power() 109 parent->power_max -= dtpm->power_max; in __dtpm_sub_power() 110 parent->power_limit -= dtpm->power_limit; in __dtpm_sub_power() 111 parent = parent->parent; in __dtpm_sub_power() 117 struct dtpm *parent = dtpm->parent; in __dtpm_add_power() local 119 while (parent) { in __dtpm_add_power() 120 parent->power_min += dtpm->power_min; in __dtpm_add_power() 121 parent->power_max += dtpm->power_max; in __dtpm_add_power() [all …]
|
/linux-6.6.21/arch/powerpc/kernel/ |
D | pci_dn.c | 45 pbus = pbus->parent; in pci_bus_to_pdn() 62 struct pci_dn *parent, *pdn; in pci_get_pdn_by_devfn() local 82 parent = pci_bus_to_pdn(bus); in pci_get_pdn_by_devfn() 83 if (!parent) in pci_get_pdn_by_devfn() 86 list_for_each_entry(pdn, &parent->child_list, list) { in pci_get_pdn_by_devfn() 98 struct pci_dn *parent, *pdn; in pci_get_pdn() local 114 parent = pci_bus_to_pdn(pdev->bus); in pci_get_pdn() 115 if (!parent) in pci_get_pdn() 118 list_for_each_entry(pdn, &parent->child_list, list) { in pci_get_pdn() 148 static struct pci_dn *add_one_sriov_vf_pdn(struct pci_dn *parent, in add_one_sriov_vf_pdn() argument [all …]
|
/linux-6.6.21/drivers/s390/cio/ |
D | vfio_ccw_drv.c | 39 struct vfio_ccw_parent *parent = dev_get_drvdata(&sch->dev); in vfio_ccw_sch_quiesce() local 40 struct vfio_ccw_private *private = dev_get_drvdata(&parent->dev); in vfio_ccw_sch_quiesce() 133 struct vfio_ccw_parent *parent = dev_get_drvdata(&sch->dev); in vfio_ccw_sch_irq() local 134 struct vfio_ccw_private *private = dev_get_drvdata(&parent->dev); in vfio_ccw_sch_irq() 157 struct vfio_ccw_parent *parent = container_of(dev, struct vfio_ccw_parent, dev); in vfio_ccw_free_parent() local 159 kfree(parent); in vfio_ccw_free_parent() 165 struct vfio_ccw_parent *parent; in vfio_ccw_sch_probe() local 174 parent = kzalloc(struct_size(parent, mdev_types, 1), GFP_KERNEL); in vfio_ccw_sch_probe() 175 if (!parent) in vfio_ccw_sch_probe() 178 dev_set_name(&parent->dev, "parent"); in vfio_ccw_sch_probe() [all …]
|