/linux/tools/lib/ |
A D | rbtree.c | 162 parent = node; in __rb_insert() 206 parent = node; in __rb_insert() 287 if (parent) in ____rb_erase_color() 377 if (parent) in ____rb_erase_color() 511 while ((parent = rb_parent(node)) && node == parent->rb_right) in rb_next() 512 node = parent; in rb_next() 514 return parent; in rb_next() 539 while ((parent = rb_parent(node)) && node == parent->rb_left) in rb_prev() 540 node = parent; in rb_prev() 542 return parent; in rb_prev() [all …]
|
/linux/lib/ |
A D | rbtree.c | 162 parent = node; in __rb_insert() 206 parent = node; in __rb_insert() 287 if (parent) in ____rb_erase_color() 377 if (parent) in ____rb_erase_color() 517 while ((parent = rb_parent(node)) && node == parent->rb_right) in rb_next() 518 node = parent; in rb_next() 520 return parent; in rb_next() 546 while ((parent = rb_parent(node)) && node == parent->rb_left) in rb_prev() 547 node = parent; in rb_prev() 549 return parent; in rb_prev() [all …]
|
A D | kobject.c | 142 parent = parent->parent; in get_kobj_path_length() 152 for (parent = kobj; parent; parent = parent->parent) { in fill_kobj_path() 240 parent = kobject_get(kobj->parent); in kobject_add_internal() 247 kobj->parent = parent; in kobject_add_internal() 252 parent ? kobject_name(parent) : "<NULL>", in kobject_add_internal() 268 parent ? kobject_name(parent) : "'none'"); in kobject_add_internal() 389 kobj->parent = parent; in kobject_add_varg() 642 parent = kobj->parent; in kobject_del() 681 struct kobject *parent = kobj->parent; in kobject_cleanup() local 1071 if (parent && parent->ktype && parent->ktype->child_ns_type) in kobj_child_ns_ops() [all …]
|
/linux/drivers/vfio/mdev/ |
A D | mdev_core.c | 73 return parent; in __find_parent_device() 84 kfree(parent); in mdev_release_parent() 91 struct mdev_parent *parent = mdev->type->parent; in mdev_device_remove_common() local 145 if (parent) { in mdev_register_device() 151 parent = kzalloc(sizeof(*parent), GFP_KERNEL); in mdev_register_device() 152 if (!parent) { in mdev_register_device() 189 if (parent) in mdev_register_device() 214 if (!parent) { in mdev_unregister_device() 258 struct mdev_parent *parent = type->parent; in mdev_device_create() local 278 mdev->dev.parent = parent->dev; in mdev_device_create() [all …]
|
A D | vfio_mdev.c | 23 struct mdev_parent *parent = mdev->type->parent; in vfio_mdev_open_device() local 34 struct mdev_parent *parent = mdev->type->parent; in vfio_mdev_close_device() local 37 parent->ops->close_device(mdev); in vfio_mdev_close_device() 44 struct mdev_parent *parent = mdev->type->parent; in vfio_mdev_unlocked_ioctl() local 46 if (unlikely(!parent->ops->ioctl)) in vfio_mdev_unlocked_ioctl() 56 struct mdev_parent *parent = mdev->type->parent; in vfio_mdev_read() local 58 if (unlikely(!parent->ops->read)) in vfio_mdev_read() 69 struct mdev_parent *parent = mdev->type->parent; in vfio_mdev_write() local 81 struct mdev_parent *parent = mdev->type->parent; in vfio_mdev_mmap() local 92 struct mdev_parent *parent = mdev->type->parent; in vfio_mdev_request() local [all …]
|
A D | mdev_sysfs.c | 86 mdev_put_parent(type->parent); in mdev_type_release() 112 type->kobj.kset = parent->mdev_types_kset; in add_mdev_supported_type() 113 type->parent = parent; in add_mdev_supported_type() 115 mdev_get_parent(parent); in add_mdev_supported_type() 200 sysfs_remove_groups(&parent->dev->kobj, parent->ops->dev_attr_groups); in parent_remove_sysfs_files() 209 NULL, &parent->dev->kobj); in parent_create_sysfs_files() 211 if (!parent->mdev_types_kset) in parent_create_sysfs_files() 214 INIT_LIST_HEAD(&parent->type_list); in parent_create_sysfs_files() 217 parent->ops->dev_attr_groups); in parent_create_sysfs_files() 223 sysfs_remove_groups(&parent->dev->kobj, in parent_create_sysfs_files() [all …]
|
/linux/drivers/i2c/ |
A D | i2c-mux.c | 44 struct i2c_adapter *parent = muxc->parent; in __i2c_mux_master_xfer() local 63 struct i2c_adapter *parent = muxc->parent; in i2c_mux_master_xfer() local 84 struct i2c_adapter *parent = muxc->parent; in __i2c_mux_smbus_xfer() local 106 struct i2c_adapter *parent = muxc->parent; in i2c_mux_smbus_xfer() local 125 struct i2c_adapter *parent = priv->muxc->parent; in i2c_mux_functionality() local 127 return parent->algo->functionality(parent); in i2c_mux_functionality() 137 parent = i2c_parent_is_i2c_adapter(parent); in i2c_mux_parent_classes() 146 struct i2c_adapter *parent = priv->muxc->parent; in i2c_mux_lock_bus() local 254 muxc->parent = parent; in i2c_mux_alloc() 286 struct i2c_adapter *parent = muxc->parent; in i2c_mux_add_adapter() local [all …]
|
/linux/kernel/ |
A D | audit_watch.c | 61 kfree(parent); in audit_free_parent() 74 if (likely(parent)) in audit_get_parent() 80 if (likely(parent)) in audit_put_parent() 97 return parent; in audit_find_parent() 119 watch->parent = NULL; in audit_remove_watch() 142 parent = kzalloc(sizeof(*parent), GFP_KERNEL); in audit_init_parent() 156 return parent; in audit_init_parent() 221 new->parent = old->parent; in audit_dupe_watch() 390 watch->parent = parent; in audit_add_to_parent() 429 if (!parent) { in audit_add_watch() [all …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
A D | sch_offload.sh | 44 sed s/root/parent\ root/ | 129 local parent=$1; shift 138 if ((parent == 0)); then 151 local parent=$1; shift 154 if ((parent != 0)); then 240 with_$cont 8: "$parent" \ 241 with_red 11: "parent 8:1" \ 242 with_red 12: "parent 8:2" \ 243 with_tbf 13: "parent 8:3" \ 249 with_$cont 8: "$parent" \ [all …]
|
/linux/include/linux/ |
A D | debugfs.h | 87 struct dentry *parent, 135 struct dentry *parent, 139 struct dentry *parent, 146 struct dentry *parent, 150 struct dentry *parent, 202 struct dentry *parent) 215 struct dentry *parent, 270 struct dentry *parent, 290 struct dentry *parent, 303 struct dentry *parent, [all …]
|
A D | proc_fs.h | 96 proc_create_seq_private(name, mode, parent, ops, 0, data) 97 #define proc_create_seq(name, mode, parent, ops) \ argument 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) 125 struct proc_dir_entry *parent, 128 struct proc_dir_entry *parent, 133 struct proc_dir_entry *parent, 165 struct proc_dir_entry *parent) {return NULL;} in proc_mkdir() argument 190 #define remove_proc_entry(name, parent) do {} while (0) argument [all …]
|
/linux/tools/testing/selftests/cgroup/ |
A D | test_memcontrol.c | 83 free(parent); in test_memcg_subtree_control() 278 if (!parent[0]) in test_memcg_min() 281 parent[1] = cg_name(parent[0], "memcg_test_1"); in test_memcg_min() 282 if (!parent[1]) in test_memcg_min() 285 parent[2] = cg_name(parent[0], "memcg_test_2"); in test_memcg_min() 286 if (!parent[2]) in test_memcg_min() 438 parent[1] = cg_name(parent[0], "memcg_test_1"); in test_memcg_low() 442 parent[2] = cg_name(parent[0], "memcg_test_2"); in test_memcg_low() 1056 if (parent) in test_memcg_oom_group_leaf_events() 1059 free(parent); in test_memcg_oom_group_leaf_events() [all …]
|
A D | test_kmem.c | 167 char *parent; in test_kmem_memcg_deletion() local 170 if (!parent) in test_kmem_memcg_deletion() 210 cg_destroy(parent); in test_kmem_memcg_deletion() 211 free(parent); in test_kmem_memcg_deletion() 311 char *parent; in test_kmem_dead_cgroups() local 316 if (!parent) in test_kmem_dead_cgroups() 343 cg_destroy(parent); in test_kmem_dead_cgroups() 344 free(parent); in test_kmem_dead_cgroups() 363 if (!parent) in test_percpu_basic() 401 cg_destroy(parent); in test_percpu_basic() [all …]
|
A D | test_core.c | 321 if (parent) in test_cgcore_invalid_domain() 326 free(parent); in test_cgcore_invalid_domain() 362 if (parent) in test_cgcore_parent_becomes_threaded() 365 free(parent); in test_cgcore_parent_becomes_threaded() 415 if (parent) in test_cgcore_no_internal_process_constraint_on_threads() 418 free(parent); in test_cgcore_no_internal_process_constraint_on_threads() 450 if (parent) in test_cgcore_top_down_constraint_enable() 453 free(parent); in test_cgcore_top_down_constraint_enable() 491 if (parent) in test_cgcore_top_down_constraint_disable() 494 free(parent); in test_cgcore_top_down_constraint_disable() [all …]
|
/linux/drivers/edac/ |
A D | debugfs.c | 57 struct dentry *parent; in edac_create_debugfs_nodes() local 79 mci->debugfs = parent; in edac_create_debugfs_nodes() 113 if (!parent) in edac_debugfs_create_file() 114 parent = edac_debugfs; in edac_debugfs_create_file() 122 struct dentry *parent, u8 *value) in edac_debugfs_create_x8() argument 124 if (!parent) in edac_debugfs_create_x8() 125 parent = edac_debugfs; in edac_debugfs_create_x8() 135 if (!parent) in edac_debugfs_create_x16() 136 parent = edac_debugfs; in edac_debugfs_create_x16() 146 if (!parent) in edac_debugfs_create_x32() [all …]
|
/linux/drivers/clk/imx/ |
A D | clk.h | 104 #define imx_clk_gate(name, parent, reg, shift) \ argument 105 to_clk(imx_clk_hw_gate(name, parent, reg, shift)) 110 #define imx_clk_gate2(name, parent, reg, shift) \ argument 111 to_clk(imx_clk_hw_gate2(name, parent, reg, shift)) 128 #define imx_clk_pllv1(type, name, parent, base) \ argument 129 to_clk(imx_clk_hw_pllv1(type, name, parent, base)) 131 #define imx_clk_pllv2(name, parent, base) \ argument 132 to_clk(imx_clk_hw_pllv2(name, parent, base)) 206 const char *parent, void __iomem *base); 217 u8 parent, u8 bypass1, u8 bypass2, [all …]
|
/linux/fs/kernfs/ |
A D | dir.c | 75 a = a->parent; in kernfs_common_ancestor() 79 b = b->parent; in kernfs_common_ancestor() 285 parent = kn->parent; in kernfs_get_parent() 521 parent = kn->parent; in kernfs_put() 647 kn = __kernfs_new_node(kernfs_root(parent), parent, in kernfs_new_node() 651 kn->parent = parent; in kernfs_new_node() 720 struct kernfs_node *parent = kn->parent; in kernfs_add_one() local 840 parent = kernfs_find_ns(parent, name, ns); in kernfs_walk_ns() 1084 if (kn->parent && kernfs_ns_enabled(kn->parent) && in kernfs_dop_revalidate() 1361 pos->parent ? pos->parent->iattr : NULL; in __kernfs_remove() [all …]
|
/linux/include/trace/events/ |
A D | qdisc.h | 28 __field( u32, parent ) 40 __entry->parent = qdisc->parent; 61 __field(u32, parent) 70 __entry->parent = qdisc->parent; 86 __field( u32, parent ) 93 __entry->parent = q->parent; 98 __get_str(kind), TC_H_MAJ(__entry->parent) >> 16, TC_H_MIN(__entry->parent), 118 __entry->parent = q->parent; 123 __get_str(kind), TC_H_MAJ(__entry->parent) >> 16, TC_H_MIN(__entry->parent), 142 __entry->parent = parent; [all …]
|
/linux/fs/sysfs/ |
A D | dir.c | 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() 63 sysfs_warn_dup(parent, kobject_name(kobj)); in sysfs_create_dir_ns() 108 struct kernfs_node *parent; in sysfs_rename_dir_ns() local 111 parent = kernfs_get_parent(kobj->sd); in sysfs_rename_dir_ns() 113 kernfs_put(parent); in sysfs_rename_dir_ns() [all …]
|
A D | symlink.c | 26 if (WARN_ON(!name || !parent)) 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() 145 struct kernfs_node *parent = NULL; in sysfs_remove_link() local 148 parent = sysfs_root_kn; in sysfs_remove_link() 150 parent = kobj->sd; in sysfs_remove_link() 174 parent = sysfs_root_kn; in sysfs_rename_link_ns() [all …]
|
A D | group.c | 70 remove_files(parent, grp); in create_files() 100 remove_files(parent, grp); in create_files() 284 kn = parent; in sysfs_remove_group() 336 if (!parent) in sysfs_merge_group() 348 kernfs_put(parent); in sysfs_merge_group() 366 if (parent) { in sysfs_unmerge_group() 369 kernfs_put(parent); in sysfs_unmerge_group() 388 if (!parent) in sysfs_add_link_to_group() 392 kernfs_put(parent); in sysfs_add_link_to_group() 410 if (parent) { in sysfs_remove_link_from_group() [all …]
|
/linux/drivers/powercap/ |
A D | dtpm.c | 111 struct dtpm *parent = dtpm->parent; in __dtpm_sub_power() local 113 while (parent) { in __dtpm_sub_power() 117 parent = parent->parent; in __dtpm_sub_power() 123 struct dtpm *parent = dtpm->parent; in __dtpm_add_power() local 129 parent = parent->parent; in __dtpm_add_power() 189 struct dtpm *parent = dtpm->parent; in dtpm_release_zone() local 198 if (parent) in dtpm_release_zone() 423 if (parent && parent->ops) in dtpm_register() 436 parent ? &parent->zone : NULL, in dtpm_register() 444 if (parent) { in dtpm_register() [all …]
|
/linux/arch/powerpc/kernel/ |
A D | pci_dn.c | 45 pbus = pbus->parent; in pci_bus_to_pdn() 83 if (!parent) in pci_get_pdn_by_devfn() 115 if (!parent) in pci_get_pdn() 154 if (!parent) in add_one_sriov_vf_pdn() 162 pdn->parent = parent; in add_one_sriov_vf_pdn() 189 if (!parent) in add_sriov_vf_pdns() 234 if (!parent) in remove_sriov_vf_pdns() 332 pdn->parent = parent ? PCI_DN(parent) : NULL; in pci_add_device_node_info() 333 if (pdn->parent) in pci_add_device_node_info() 360 if (parent) in pci_remove_device_node_info() [all …]
|
/linux/fs/exportfs/ |
A D | expfs.c | 82 dput(parent); in dentry_connected() 85 dentry = parent; in dentry_connected() 104 dentry = parent; in clear_disconnected() 134 if (IS_ERR(parent)) { in reconnect_one() 137 return parent; in reconnect_one() 169 return parent; in reconnect_one() 172 dput(parent); in reconnect_one() 175 dput(parent); in reconnect_one() 226 if (!parent) in reconnect_path() 231 dentry = parent; in reconnect_path() [all …]
|
/linux/net/netfilter/ |
A D | nft_set_rbtree.c | 68 parent = rcu_dereference_raw(parent->rb_left); in __nft_rbtree_lookup() 76 parent = rcu_dereference_raw(parent->rb_right); in __nft_rbtree_lookup() 79 parent = rcu_dereference_raw(parent->rb_left); in __nft_rbtree_lookup() 89 parent = rcu_dereference_raw(parent->rb_left); in __nft_rbtree_lookup() 150 parent = rcu_dereference_raw(parent->rb_left); in __nft_rbtree_get() 176 parent = rcu_dereference_raw(parent->rb_left); in __nft_rbtree_get() 437 parent = parent->rb_left; in nft_rbtree_deactivate() 439 parent = parent->rb_right; in nft_rbtree_deactivate() 443 parent = parent->rb_left; in nft_rbtree_deactivate() 447 parent = parent->rb_right; in nft_rbtree_deactivate() [all …]
|