/linux-4.19.296/lib/ |
D | rbtree.c | 90 struct rb_node *parent = rb_parent(old); in __rb_rotate_set_parents() local 93 __rb_change_child(old, new, parent, root); in __rb_rotate_set_parents() 101 struct rb_node *parent = rb_red_parent(node), *gparent, *tmp; in __rb_insert() local 110 if (unlikely(!parent)) { in __rb_insert() 126 if(rb_is_black(parent)) in __rb_insert() 129 gparent = rb_red_parent(parent); in __rb_insert() 132 if (parent != tmp) { /* parent == gparent->rb_left */ in __rb_insert() 148 rb_set_parent_color(parent, gparent, RB_BLACK); in __rb_insert() 150 parent = rb_parent(node); in __rb_insert() 151 rb_set_parent_color(node, parent, RB_RED); in __rb_insert() [all …]
|
D | kobject.c | 123 struct kobject *parent = kobj; in get_kobj_path_length() local 130 if (kobject_name(parent) == NULL) in get_kobj_path_length() 132 length += strlen(kobject_name(parent)) + 1; in get_kobj_path_length() 133 parent = parent->parent; in get_kobj_path_length() 134 } while (parent); in get_kobj_path_length() 140 struct kobject *parent; in fill_kobj_path() local 143 for (parent = kobj; parent; parent = parent->parent) { in fill_kobj_path() 144 int cur = strlen(kobject_name(parent)); in fill_kobj_path() 147 memcpy(path + length, kobject_name(parent), cur); in fill_kobj_path() 220 struct kobject *parent; in kobject_add_internal() local [all …]
|
/linux-4.19.296/drivers/i2c/ |
D | i2c-mux.c | 43 struct i2c_adapter *parent = muxc->parent; in __i2c_mux_master_xfer() local 50 ret = __i2c_transfer(parent, msgs, num); in __i2c_mux_master_xfer() 62 struct i2c_adapter *parent = muxc->parent; in i2c_mux_master_xfer() local 69 ret = i2c_transfer(parent, msgs, num); in i2c_mux_master_xfer() 83 struct i2c_adapter *parent = muxc->parent; in __i2c_mux_smbus_xfer() local 90 ret = __i2c_smbus_xfer(parent, addr, flags, in __i2c_mux_smbus_xfer() 105 struct i2c_adapter *parent = muxc->parent; in i2c_mux_smbus_xfer() local 112 ret = i2c_smbus_xfer(parent, addr, flags, in i2c_mux_smbus_xfer() 124 struct i2c_adapter *parent = priv->muxc->parent; in i2c_mux_functionality() local 126 return parent->algo->functionality(parent); in i2c_mux_functionality() [all …]
|
/linux-4.19.296/include/linux/ |
D | proc_fs.h | 33 struct proc_dir_entry *parent, const struct seq_operations *ops, 35 #define proc_create_seq_data(name, mode, parent, ops, data) \ argument 36 proc_create_seq_private(name, mode, parent, ops, 0, data) 37 #define proc_create_seq(name, mode, parent, ops) \ argument 38 proc_create_seq_private(name, mode, parent, ops, 0, NULL) 40 struct proc_dir_entry *parent, 42 #define proc_create_single(name, mode, parent, show) \ argument 43 proc_create_single_data(name, mode, parent, show, NULL) 50 struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, c… 60 struct proc_dir_entry *parent, const struct seq_operations *ops, [all …]
|
D | debugfs.h | 68 struct dentry *debugfs_lookup(const char *name, struct dentry *parent); 71 struct dentry *parent, void *data, 74 struct dentry *parent, void *data, 78 struct dentry *parent, void *data, 82 struct dentry *debugfs_create_dir(const char *name, struct dentry *parent); 84 struct dentry *debugfs_create_symlink(const char *name, struct dentry *parent, 88 struct dentry *parent, 95 void debugfs_lookup_and_remove(const char *name, struct dentry *parent); 113 struct dentry *parent, u8 *value); 115 struct dentry *parent, u16 *value); [all …]
|
D | rbtree_augmented.h | 136 struct rb_node *parent, struct rb_root *root) in __rb_change_child() argument 138 if (parent) { in __rb_change_child() 139 if (parent->rb_left == old) in __rb_change_child() 140 WRITE_ONCE(parent->rb_left, new); in __rb_change_child() 142 WRITE_ONCE(parent->rb_right, new); in __rb_change_child() 149 struct rb_node *parent, struct rb_root *root) in __rb_change_child_rcu() argument 151 if (parent) { in __rb_change_child_rcu() 152 if (parent->rb_left == old) in __rb_change_child_rcu() 153 rcu_assign_pointer(parent->rb_left, new); in __rb_change_child_rcu() 155 rcu_assign_pointer(parent->rb_right, new); in __rb_change_child_rcu() [all …]
|
/linux-4.19.296/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 48 if (kobj->parent) in sysfs_create_dir_ns() 49 parent = kobj->parent->sd; in sysfs_create_dir_ns() 51 parent = sysfs_root_kn; in sysfs_create_dir_ns() 53 if (!parent) in sysfs_create_dir_ns() 58 kn = kernfs_create_dir_ns(parent, kobject_name(kobj), 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 | group.c | 19 static void remove_files(struct kernfs_node *parent, in remove_files() argument 27 kernfs_remove_by_name(parent, (*attr)->name); in remove_files() 30 kernfs_remove_by_name(parent, (*bin_attr)->attr.name); in remove_files() 33 static int create_files(struct kernfs_node *parent, struct kobject *kobj, in create_files() argument 51 kernfs_remove_by_name(parent, (*attr)->name); in create_files() 63 error = sysfs_add_file_mode_ns(parent, *attr, false, in create_files() 69 remove_files(parent, grp); in create_files() 79 kernfs_remove_by_name(parent, in create_files() 92 error = sysfs_add_file_mode_ns(parent, in create_files() 100 remove_files(parent, grp); in create_files() [all …]
|
D | symlink.c | 20 static int sysfs_do_create_link_sd(struct kernfs_node *parent, in sysfs_do_create_link_sd() argument 26 BUG_ON(!name || !parent); in sysfs_do_create_link_sd() 43 kn = kernfs_create_link(parent, name, target); in sysfs_do_create_link_sd() 50 sysfs_warn_dup(parent, name); in sysfs_do_create_link_sd() 69 struct kernfs_node *parent = NULL; in sysfs_do_create_link() local 72 parent = sysfs_root_kn; in sysfs_do_create_link() 74 parent = kobj->sd; in sysfs_do_create_link() 76 if (!parent) in sysfs_do_create_link() 79 return sysfs_do_create_link_sd(parent, target, name, warn); in sysfs_do_create_link() 144 struct kernfs_node *parent = NULL; in sysfs_remove_link() local [all …]
|
/linux-4.19.296/drivers/edac/ |
D | debugfs.c | 61 struct dentry *d, *parent; in edac_create_debugfs_nodes() local 71 parent = d; in edac_create_debugfs_nodes() 76 d = debugfs_create_u8(name, S_IRUGO | S_IWUSR, parent, in edac_create_debugfs_nodes() 82 d = debugfs_create_bool("fake_inject_ue", S_IRUGO | S_IWUSR, parent, in edac_create_debugfs_nodes() 87 d = debugfs_create_u16("fake_inject_count", S_IRUGO | S_IWUSR, parent, in edac_create_debugfs_nodes() 92 d = debugfs_create_file("fake_inject", S_IWUSR, parent, in edac_create_debugfs_nodes() 98 mci->debugfs = parent; in edac_create_debugfs_nodes() 117 edac_debugfs_create_dir_at(const char *dirname, struct dentry *parent) in edac_debugfs_create_dir_at() argument 119 return debugfs_create_dir(dirname, parent); in edac_debugfs_create_dir_at() 133 edac_debugfs_create_file(const char *name, umode_t mode, struct dentry *parent, in edac_debugfs_create_file() argument [all …]
|
/linux-4.19.296/fs/debugfs/ |
D | inode.c | 268 struct dentry *debugfs_lookup(const char *name, struct dentry *parent) in debugfs_lookup() argument 272 if (IS_ERR(parent)) in debugfs_lookup() 275 if (!parent) in debugfs_lookup() 276 parent = debugfs_mount->mnt_root; in debugfs_lookup() 278 dentry = lookup_positive_unlocked(name, parent, strlen(name)); in debugfs_lookup() 285 static struct dentry *start_creating(const char *name, struct dentry *parent) in start_creating() argument 292 if (IS_ERR(parent)) in start_creating() 293 return parent; in start_creating() 305 if (!parent) in start_creating() 306 parent = debugfs_mount->mnt_root; in start_creating() [all …]
|
/linux-4.19.296/drivers/clk/imx/ |
D | clk.h | 25 const char *parent, void __iomem *base); 27 struct clk *imx_clk_pllv2(const char *name, const char *parent, 54 struct clk *imx_clk_gate_exclusive(const char *name, const char *parent, 68 struct clk *imx_clk_fixup_divider(const char *name, const char *parent, 91 const char *parent, unsigned int mult, unsigned int div) in imx_clk_fixed_factor() argument 93 return clk_register_fixed_factor(NULL, name, parent, in imx_clk_fixed_factor() 97 static inline struct clk *imx_clk_divider(const char *name, const char *parent, in imx_clk_divider() argument 100 return clk_register_divider(NULL, name, parent, CLK_SET_RATE_PARENT, in imx_clk_divider() 105 const char *parent, void __iomem *reg, u8 shift, u8 width, in imx_clk_divider_flags() argument 108 return clk_register_divider(NULL, name, parent, flags, in imx_clk_divider_flags() [all …]
|
/linux-4.19.296/fs/kernfs/ |
D | dir.c | 56 return strlcpy(buf, kn->parent ? kn->name : "/", buflen); in kernfs_name_locked() 64 while (to->parent && to != from) { in kernfs_depth() 66 to = to->parent; in kernfs_depth() 84 a = a->parent; in kernfs_common_ancestor() 88 b = b->parent; in kernfs_common_ancestor() 94 b = b->parent; in kernfs_common_ancestor() 95 a = a->parent; in kernfs_common_ancestor() 166 kn = kn->parent; in kernfs_path_from_node_locked() 288 struct kernfs_node *parent; in kernfs_get_parent() local 292 parent = kn->parent; in kernfs_get_parent() [all …]
|
D | symlink.c | 26 struct kernfs_node *kernfs_create_link(struct kernfs_node *parent, in kernfs_create_link() argument 40 kn = kernfs_new_node(parent, name, S_IFLNK|S_IRWXUGO, uid, gid, in kernfs_create_link() 45 if (kernfs_ns_enabled(parent)) in kernfs_create_link() 58 static int kernfs_get_target_path(struct kernfs_node *parent, in kernfs_get_target_path() argument 66 base = parent; in kernfs_get_target_path() 67 while (base->parent) { in kernfs_get_target_path() 68 kn = target->parent; in kernfs_get_target_path() 69 while (kn->parent && base != kn) in kernfs_get_target_path() 70 kn = kn->parent; in kernfs_get_target_path() 80 base = base->parent; in kernfs_get_target_path() [all …]
|
/linux-4.19.296/fs/exportfs/ |
D | expfs.c | 77 struct dentry *parent = dget_parent(dentry); in dentry_connected() local 80 if (dentry == parent) { in dentry_connected() 81 dput(parent); in dentry_connected() 84 dentry = parent; in dentry_connected() 94 struct dentry *parent = dget_parent(dentry); in clear_disconnected() local 103 dentry = parent; in clear_disconnected() 123 struct dentry *parent; in reconnect_one() local 127 parent = ERR_PTR(-EACCES); in reconnect_one() 130 parent = mnt->mnt_sb->s_export_op->get_parent(dentry); in reconnect_one() 133 if (IS_ERR(parent)) { in reconnect_one() [all …]
|
/linux-4.19.296/fs/tracefs/ |
D | inode.c | 181 static void set_gid(struct dentry *parent, kgid_t gid) in set_gid() argument 186 this_parent = parent; in set_gid() 216 if (this_parent != parent) { in set_gid() 403 static struct dentry *start_creating(const char *name, struct dentry *parent) in start_creating() argument 420 if (!parent) in start_creating() 421 parent = tracefs_mount->mnt_root; in start_creating() 423 inode_lock(parent->d_inode); in start_creating() 424 dentry = lookup_one_len(name, parent, strlen(name)); in start_creating() 431 inode_unlock(parent->d_inode); in start_creating() 479 struct dentry *parent, void *data, in tracefs_create_file() argument [all …]
|
/linux-4.19.296/fs/proc/ |
D | generic.c | 93 struct rb_node **new = &root->rb_node, *parent = NULL; in pde_subdir_insert() local 102 parent = *new; in pde_subdir_insert() 112 rb_link_node(&de->subdir_node, parent, new); in pde_subdir_insert() 371 dp->parent = dir; in proc_register() 389 static struct proc_dir_entry *__proc_create(struct proc_dir_entry **parent, in __proc_create() argument 398 if (xlate_proc_name(name, parent, &fn) != 0) in __proc_create() 414 if (*parent == &proc_root && name_to_int(&qstr) != ~0U) { in __proc_create() 418 if (is_empty_pde(*parent)) { in __proc_create() 445 proc_set_user(ent, (*parent)->uid, (*parent)->gid); in __proc_create() 449 if ((*parent)->proc_dops == &proc_net_dentry_ops) in __proc_create() [all …]
|
/linux-4.19.296/drivers/regulator/ |
D | tps80031-regulator.c | 98 return rdev_get_dev(rdev)->parent->parent; in to_tps80031_dev() 104 struct device *parent = to_tps80031_dev(rdev); in tps80031_reg_is_enabled() local 111 ret = tps80031_read(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_is_enabled() 124 struct device *parent = to_tps80031_dev(rdev); in tps80031_reg_enable() local 130 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_enable() 143 struct device *parent = to_tps80031_dev(rdev); in tps80031_reg_disable() local 149 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_disable() 182 struct device *parent = to_tps80031_dev(rdev); in tps80031_dcdc_set_voltage_sel() local 187 ret = tps80031_read(parent, ri->rinfo->volt_id, in tps80031_dcdc_set_voltage_sel() 195 ret = tps80031_update(parent, ri->rinfo->volt_id, in tps80031_dcdc_set_voltage_sel() [all …]
|
/linux-4.19.296/drivers/pci/hotplug/ |
D | pciehp_pci.c | 27 struct pci_bus *parent = bridge->subordinate; in pciehp_configure_device() local 33 dev = pci_get_slot(parent, PCI_DEVFN(0, 0)); in pciehp_configure_device() 40 pci_name(dev), pci_domain_nr(parent), parent->number); in pciehp_configure_device() 46 num = pci_scan_slot(parent, PCI_DEVFN(0, 0)); in pciehp_configure_device() 53 for_each_pci_bridge(dev, parent) in pciehp_configure_device() 57 pcie_bus_configure_settings(parent); in pciehp_configure_device() 64 pci_bus_add_devices(parent); in pciehp_configure_device() 76 struct pci_bus *parent = p_slot->ctrl->pcie->port->subordinate; in pciehp_unconfigure_device() local 81 __func__, pci_domain_nr(parent), parent->number); in pciehp_unconfigure_device() 92 list_for_each_entry_safe_reverse(dev, temp, &parent->devices, in pciehp_unconfigure_device()
|
D | shpchp_pci.c | 28 struct pci_bus *parent = bridge->subordinate; in shpchp_configure_device() local 33 dev = pci_get_slot(parent, PCI_DEVFN(p_slot->device, 0)); in shpchp_configure_device() 36 pci_name(dev), pci_domain_nr(parent), in shpchp_configure_device() 43 num = pci_scan_slot(parent, PCI_DEVFN(p_slot->device, 0)); in shpchp_configure_device() 50 for_each_pci_bridge(dev, parent) { in shpchp_configure_device() 56 pcie_bus_configure_settings(parent); in shpchp_configure_device() 57 pci_bus_add_devices(parent); in shpchp_configure_device() 67 struct pci_bus *parent = p_slot->ctrl->pci_dev->subordinate; in shpchp_unconfigure_device() local 72 __func__, pci_domain_nr(parent), p_slot->bus, p_slot->device); in shpchp_unconfigure_device() 76 list_for_each_entry_safe(dev, temp, &parent->devices, bus_list) { in shpchp_unconfigure_device()
|
/linux-4.19.296/drivers/gpio/ |
D | gpio-rc5t583.c | 39 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_get() local 43 ret = rc5t583_read(parent, RC5T583_GPIO_MON_IOIN, &val); in rc5t583_gpio_get() 53 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_set() local 55 rc5t583_set_bits(parent, RC5T583_GPIO_IOOUT, BIT(offset)); in rc5t583_gpio_set() 57 rc5t583_clear_bits(parent, RC5T583_GPIO_IOOUT, BIT(offset)); in rc5t583_gpio_set() 63 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_dir_input() local 66 ret = rc5t583_clear_bits(parent, RC5T583_GPIO_IOSEL, BIT(offset)); in rc5t583_gpio_dir_input() 71 return rc5t583_clear_bits(parent, RC5T583_GPIO_PGSEL, BIT(offset)); in rc5t583_gpio_dir_input() 78 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_dir_output() local 82 ret = rc5t583_set_bits(parent, RC5T583_GPIO_IOSEL, BIT(offset)); in rc5t583_gpio_dir_output() [all …]
|
/linux-4.19.296/fs/ocfs2/ |
D | export.c | 149 struct dentry *parent; in ocfs2_get_parent() local 159 parent = ERR_PTR(status); in ocfs2_get_parent() 167 parent = ERR_PTR(status); in ocfs2_get_parent() 173 parent = ERR_PTR(-ENOENT); in ocfs2_get_parent() 183 parent = ERR_PTR(status); in ocfs2_get_parent() 190 parent = ERR_PTR(status); in ocfs2_get_parent() 194 parent = d_obtain_alias(ocfs2_iget(OCFS2_SB(dir->i_sb), blkno, 0, 0)); in ocfs2_get_parent() 203 trace_ocfs2_get_parent_end(parent); in ocfs2_get_parent() 205 return parent; in ocfs2_get_parent() 209 struct inode *parent) in ocfs2_encode_fh() argument [all …]
|
/linux-4.19.296/drivers/bus/ |
D | vexpress-config.c | 86 struct vexpress_config_bridge *bridge = dev_get_drvdata(dev->parent); in vexpress_config_devres_release() 98 if (WARN_ON(dev->parent->class != vexpress_config_class)) in devm_regmap_init_vexpress_config() 101 bridge = dev_get_drvdata(dev->parent); in devm_regmap_init_vexpress_config() 123 struct device *vexpress_config_bridge_register(struct device *parent, in vexpress_config_bridge_register() argument 136 dev = device_create(vexpress_config_class, parent, 0, in vexpress_config_bridge_register() 137 NULL, "%s.bridge", dev_name(parent)); in vexpress_config_bridge_register() 153 dev_dbg(parent, "Registered bridge '%s', parent node %p\n", in vexpress_config_bridge_register() 154 dev_name(dev), parent->of_node); in vexpress_config_bridge_register() 165 dev->parent->of_node, node); in vexpress_config_node_match() 167 return dev->parent->of_node == node; in vexpress_config_node_match() [all …]
|
/linux-4.19.296/drivers/iio/pressure/ |
D | zpa2326.c | 145 dev_err(idev->dev.parent, fmt "\n", ##__VA_ARGS__) 148 dev_warn(idev->dev.parent, fmt "\n", ##__VA_ARGS__) 151 dev_dbg(idev->dev.parent, fmt "\n", ##__VA_ARGS__) 428 dev_err(indio_dev->dev.parent, in zpa2326_config_oneshot() 633 static int zpa2326_runtime_suspend(struct device *parent) in zpa2326_runtime_suspend() argument 635 const struct iio_dev *indio_dev = dev_get_drvdata(parent); in zpa2326_runtime_suspend() 637 if (pm_runtime_autosuspend_expiration(parent)) in zpa2326_runtime_suspend() 646 static int zpa2326_runtime_resume(struct device *parent) in zpa2326_runtime_resume() argument 648 const struct iio_dev *indio_dev = dev_get_drvdata(parent); in zpa2326_runtime_resume() 674 err = pm_runtime_get_sync(indio_dev->dev.parent); in zpa2326_resume() [all …]
|
/linux-4.19.296/drivers/i2c/muxes/ |
D | i2c-mux-gpmux.c | 51 struct i2c_adapter *parent; in mux_parent_adapter() local 58 parent = of_find_i2c_adapter_by_node(parent_np); in mux_parent_adapter() 60 if (!parent) in mux_parent_adapter() 63 return parent; in mux_parent_adapter() 79 struct i2c_adapter *parent; in i2c_mux_probe() local 97 parent = mux_parent_adapter(dev); in i2c_mux_probe() 98 if (IS_ERR(parent)) { in i2c_mux_probe() 99 if (PTR_ERR(parent) != -EPROBE_DEFER) in i2c_mux_probe() 101 return PTR_ERR(parent); in i2c_mux_probe() 106 muxc = i2c_mux_alloc(parent, dev, children, 0, 0, in i2c_mux_probe() [all …]
|