Home
last modified time | relevance | path

Searched refs:parent (Results 1 – 25 of 2983) sorted by relevance

12345678910>>...120

/drivers/vfio/mdev/
Dmdev_core.c32 return mdev->type->parent->dev; in mdev_parent_dev()
62 return mtype->parent->dev; in mtype_get_parent_dev()
69 struct mdev_parent *parent; in __find_parent_device() local
71 list_for_each_entry(parent, &parent_list, next) { in __find_parent_device()
72 if (parent->dev == dev) in __find_parent_device()
73 return parent; in __find_parent_device()
80 struct mdev_parent *parent = container_of(kref, struct mdev_parent, in mdev_release_parent() local
82 struct device *dev = parent->dev; in mdev_release_parent()
84 kfree(parent); in mdev_release_parent()
91 struct mdev_parent *parent = mdev->type->parent; in mdev_device_remove_common() local
[all …]
Dvfio_mdev.c23 struct mdev_parent *parent = mdev->type->parent; in vfio_mdev_open_device() local
25 if (unlikely(!parent->ops->open_device)) in vfio_mdev_open_device()
28 return parent->ops->open_device(mdev); in vfio_mdev_open_device()
34 struct mdev_parent *parent = mdev->type->parent; in vfio_mdev_close_device() local
36 if (likely(parent->ops->close_device)) in vfio_mdev_close_device()
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()
49 return parent->ops->ioctl(mdev, cmd, arg); in vfio_mdev_unlocked_ioctl()
56 struct mdev_parent *parent = mdev->type->parent; in vfio_mdev_read() local
[all …]
Dmdev_sysfs.c86 mdev_put_parent(type->parent); in mdev_type_release()
95 static struct mdev_type *add_mdev_supported_type(struct mdev_parent *parent, in add_mdev_supported_type() argument
100 parent->ops->supported_type_groups[type_group_id]; in add_mdev_supported_type()
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()
119 "%s-%s", dev_driver_string(parent->dev), in add_mdev_supported_type()
157 type->parent->ops->supported_type_groups[type->type_group_id]; in remove_mdev_supported_type()
167 static int add_mdev_supported_type_groups(struct mdev_parent *parent) in add_mdev_supported_type_groups() argument
171 for (i = 0; parent->ops->supported_type_groups[i]; i++) { in add_mdev_supported_type_groups()
[all …]
/drivers/i2c/
Di2c-mux.c44 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 …]
/drivers/edac/
Ddebugfs.c57 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 …]
/drivers/clk/imx/
Dclk.h79 #define imx_clk_gate_exclusive(name, parent, reg, shift, exclusive_mask) \ argument
80 to_clk(imx_clk_hw_gate_exclusive(name, parent, reg, shift, exclusive_mask))
85 #define imx_clk_fixed_factor(name, parent, mult, div) \ argument
86 to_clk(imx_clk_hw_fixed_factor(name, parent, mult, div))
88 #define imx_clk_divider(name, parent, reg, shift, width) \ argument
89 to_clk(imx_clk_hw_divider(name, parent, reg, shift, width))
91 #define imx_clk_divider2(name, parent, reg, shift, width) \ argument
92 to_clk(imx_clk_hw_divider2(name, parent, reg, shift, width))
94 #define imx_clk_divider_flags(name, parent, reg, shift, width, flags) \ argument
95 to_clk(imx_clk_hw_divider_flags(name, parent, reg, shift, width, flags))
[all …]
/drivers/powercap/
Ddtpm.c111 struct dtpm *parent = dtpm->parent; in __dtpm_sub_power() local
113 while (parent) { in __dtpm_sub_power()
114 parent->power_min -= dtpm->power_min; in __dtpm_sub_power()
115 parent->power_max -= dtpm->power_max; in __dtpm_sub_power()
116 parent->power_limit -= dtpm->power_limit; in __dtpm_sub_power()
117 parent = parent->parent; in __dtpm_sub_power()
125 struct dtpm *parent = dtpm->parent; in __dtpm_add_power() local
127 while (parent) { in __dtpm_add_power()
128 parent->power_min += dtpm->power_min; in __dtpm_add_power()
129 parent->power_max += dtpm->power_max; in __dtpm_add_power()
[all …]
/drivers/pwm/
Dsysfs.c241 static int pwm_export_child(struct device *parent, struct pwm_device *pwm) in pwm_export_child() argument
260 export->child.parent = parent; in pwm_export_child()
274 kobject_uevent_env(&parent->kobj, KOBJ_CHANGE, pwm_prop); in pwm_export_child()
285 static int pwm_unexport_child(struct device *parent, struct pwm_device *pwm) in pwm_unexport_child() argument
293 child = device_find_child(parent, pwm, pwm_unexport_match); in pwm_unexport_child()
299 kobject_uevent_env(&parent->kobj, KOBJ_CHANGE, pwm_prop); in pwm_unexport_child()
310 static ssize_t export_store(struct device *parent, in export_store() argument
314 struct pwm_chip *chip = dev_get_drvdata(parent); in export_store()
330 ret = pwm_export_child(parent, pwm); in export_store()
338 static ssize_t unexport_store(struct device *parent, in unexport_store() argument
[all …]
/drivers/regulator/
Dtps80031-regulator.c83 return rdev_get_dev(rdev)->parent->parent; in to_tps80031_dev()
89 struct device *parent = to_tps80031_dev(rdev); in tps80031_reg_is_enabled() local
96 ret = tps80031_read(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_is_enabled()
109 struct device *parent = to_tps80031_dev(rdev); in tps80031_reg_enable() local
115 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_enable()
128 struct device *parent = to_tps80031_dev(rdev); in tps80031_reg_disable() local
134 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_disable()
167 struct device *parent = to_tps80031_dev(rdev); in tps80031_dcdc_set_voltage_sel() local
172 ret = tps80031_read(parent, ri->rinfo->volt_id, in tps80031_dcdc_set_voltage_sel()
180 ret = tps80031_update(parent, ri->rinfo->volt_id, in tps80031_dcdc_set_voltage_sel()
[all …]
/drivers/base/
Dswnode.c26 struct swnode *parent; member
425 struct fwnode_handle *parent; in software_node_get_name_prefix() local
428 parent = fwnode_get_parent(fwnode); in software_node_get_name_prefix()
429 if (!parent) in software_node_get_name_prefix()
433 while (is_software_node(parent)) in software_node_get_name_prefix()
434 parent = fwnode_get_next_parent(parent); in software_node_get_name_prefix()
436 prefix = fwnode_get_name_prefix(parent); in software_node_get_name_prefix()
437 fwnode_handle_put(parent); in software_node_get_name_prefix()
448 if (!swnode || !swnode->parent) in software_node_get_parent()
451 return fwnode_handle_get(&swnode->parent->fwnode); in software_node_get_parent()
[all …]
Dcomponent.c66 struct device *parent; member
98 dev_name(m->parent), m->bound ? "bound" : "not bound"); in component_devices_show()
127 debugfs_create_file(dev_name(m->parent), 0444, component_debugfs_dir, m, in component_master_debugfs_add()
133 debugfs_lookup_and_remove(dev_name(m->parent), component_debugfs_dir); in component_master_debugfs_del()
146 static struct master *__master_find(struct device *parent, in __master_find() argument
152 if (m->parent == parent && (!ops || m->ops == ops)) in __master_find()
192 dev_dbg(master->parent, "Looking for component %zu\n", i); in find_components()
203 dev_dbg(master->parent, "found component %s, duplicate %u\n", dev_name(c->dev), !!c->master); in find_components()
236 dev_dbg(master->parent, "trying to bring up master\n"); in try_to_bring_up_master()
239 dev_dbg(master->parent, "master has incomplete components\n"); in try_to_bring_up_master()
[all …]
/drivers/mtd/
Dmtdpart.c34 static struct mtd_info *allocate_partition(struct mtd_info *parent, in allocate_partition() argument
38 struct mtd_info *master = mtd_get_master(parent); in allocate_partition()
39 int wr_alignment = (parent->flags & MTD_NO_ERASE) ? in allocate_partition()
41 u64 parent_size = mtd_is_partition(parent) ? in allocate_partition()
42 parent->part.size : parent->size; in allocate_partition()
53 parent->name); in allocate_partition()
60 child->type = parent->type; in allocate_partition()
61 child->part.flags = parent->flags & ~part->mask_flags; in allocate_partition()
65 child->writesize = parent->writesize; in allocate_partition()
66 child->writebufsize = parent->writebufsize; in allocate_partition()
[all …]
/drivers/iio/pressure/
Dzpa2326.c138 dev_err(idev->dev.parent, fmt "\n", ##__VA_ARGS__)
141 dev_warn(idev->dev.parent, fmt "\n", ##__VA_ARGS__)
144 dev_dbg(idev->dev.parent, fmt "\n", ##__VA_ARGS__)
421 dev_err(indio_dev->dev.parent, in zpa2326_config_oneshot()
626 static int zpa2326_runtime_suspend(struct device *parent) in zpa2326_runtime_suspend() argument
628 const struct iio_dev *indio_dev = dev_get_drvdata(parent); in zpa2326_runtime_suspend()
630 if (pm_runtime_autosuspend_expiration(parent)) in zpa2326_runtime_suspend()
639 static int zpa2326_runtime_resume(struct device *parent) in zpa2326_runtime_resume() argument
641 const struct iio_dev *indio_dev = dev_get_drvdata(parent); in zpa2326_runtime_resume()
667 err = pm_runtime_get_sync(indio_dev->dev.parent); in zpa2326_resume()
[all …]
/drivers/pci/pcie/
Daspm.c53 struct pcie_link_state *parent; /* pointer to the parent Link state */ member
214 struct pci_dev *parent = link->pdev; in pcie_retrain_link() local
224 rc = pcie_wait_for_retrain(parent); in pcie_retrain_link()
228 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, &reg16); in pcie_retrain_link()
230 pcie_capability_write_word(parent, PCI_EXP_LNKCTL, reg16); in pcie_retrain_link()
231 if (parent->clear_retrain_link) { in pcie_retrain_link()
238 pcie_capability_write_word(parent, PCI_EXP_LNKCTL, reg16); in pcie_retrain_link()
241 return pcie_wait_for_retrain(parent); in pcie_retrain_link()
253 struct pci_dev *child, *parent = link->pdev; in pcie_aspm_configure_common_clock() local
254 struct pci_bus *linkbus = parent->subordinate; in pcie_aspm_configure_common_clock()
[all …]
/drivers/pci/hotplug/
Dpciehp_pci.c36 struct pci_bus *parent = bridge->subordinate; in pciehp_configure_device() local
41 dev = pci_get_slot(parent, PCI_DEVFN(0, 0)); in pciehp_configure_device()
48 pci_name(dev), pci_domain_nr(parent), parent->number); in pciehp_configure_device()
54 num = pci_scan_slot(parent, PCI_DEVFN(0, 0)); in pciehp_configure_device()
61 for_each_pci_bridge(dev, parent) in pciehp_configure_device()
65 pcie_bus_configure_settings(parent); in pciehp_configure_device()
72 pci_bus_add_devices(parent); in pciehp_configure_device()
94 struct pci_bus *parent = ctrl->pcie->port->subordinate; in pciehp_unconfigure_device() local
98 __func__, pci_domain_nr(parent), parent->number); in pciehp_unconfigure_device()
101 pci_walk_bus(parent, pci_dev_set_disconnected, NULL); in pciehp_unconfigure_device()
[all …]
/drivers/mfd/
Dmfd-core.c67 struct acpi_device *parent, *child; in mfd_acpi_add_device() local
70 parent = ACPI_COMPANION(pdev->dev.parent); in mfd_acpi_add_device()
71 if (!parent) in mfd_acpi_add_device()
88 list_for_each_entry(child, &parent->children, node) { in mfd_acpi_add_device()
95 adev = acpi_find_child_device(parent, match->adr, false); in mfd_acpi_add_device()
99 ACPI_COMPANION_SET(&pdev->dev, adev ?: parent); in mfd_acpi_add_device()
153 static int mfd_add_device(struct device *parent, int id, in mfd_add_device() argument
184 pdev->dev.parent = parent; in mfd_add_device()
186 pdev->dev.dma_mask = parent->dma_mask; in mfd_add_device()
187 pdev->dev.dma_parms = parent->dma_parms; in mfd_add_device()
[all …]
/drivers/gpio/
Dgpio-rc5t583.c27 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_get() local
31 ret = rc5t583_read(parent, RC5T583_GPIO_MON_IOIN, &val); in rc5t583_gpio_get()
41 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_set() local
43 rc5t583_set_bits(parent, RC5T583_GPIO_IOOUT, BIT(offset)); in rc5t583_gpio_set()
45 rc5t583_clear_bits(parent, RC5T583_GPIO_IOOUT, BIT(offset)); in rc5t583_gpio_set()
51 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_dir_input() local
54 ret = rc5t583_clear_bits(parent, RC5T583_GPIO_IOSEL, BIT(offset)); in rc5t583_gpio_dir_input()
59 return rc5t583_clear_bits(parent, RC5T583_GPIO_PGSEL, BIT(offset)); in rc5t583_gpio_dir_input()
66 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_dir_output() local
70 ret = rc5t583_set_bits(parent, RC5T583_GPIO_IOSEL, BIT(offset)); in rc5t583_gpio_dir_output()
[all …]
/drivers/hid/
Dhid-roccat-arvo.c32 hid_get_drvdata(dev_get_drvdata(dev->parent->parent)); in arvo_sysfs_show_mode_key()
34 interface_to_usbdev(to_usb_interface(dev->parent->parent)); in arvo_sysfs_show_mode_key()
52 hid_get_drvdata(dev_get_drvdata(dev->parent->parent)); in arvo_sysfs_set_mode_key()
54 interface_to_usbdev(to_usb_interface(dev->parent->parent)); in arvo_sysfs_set_mode_key()
82 hid_get_drvdata(dev_get_drvdata(dev->parent->parent)); in arvo_sysfs_show_key_mask()
84 interface_to_usbdev(to_usb_interface(dev->parent->parent)); in arvo_sysfs_show_key_mask()
102 hid_get_drvdata(dev_get_drvdata(dev->parent->parent)); in arvo_sysfs_set_key_mask()
104 interface_to_usbdev(to_usb_interface(dev->parent->parent)); in arvo_sysfs_set_key_mask()
147 hid_get_drvdata(dev_get_drvdata(dev->parent->parent)); in arvo_sysfs_show_actual_profile()
156 hid_get_drvdata(dev_get_drvdata(dev->parent->parent)); in arvo_sysfs_set_actual_profile()
[all …]
/drivers/clk/
Dclk.c63 struct clk_core *parent; member
292 return hw->core->parent ? hw->core->parent->hw : NULL; in clk_hw_get_parent()
425 struct clk_core *parent; in clk_core_fill_parent_index() local
428 parent = entry->hw->core; in clk_core_fill_parent_index()
434 if (!parent) in clk_core_fill_parent_index()
435 parent = ERR_PTR(-EPROBE_DEFER); in clk_core_fill_parent_index()
437 parent = clk_core_get(core, index); in clk_core_fill_parent_index()
438 if (PTR_ERR(parent) == -ENOENT && entry->name) in clk_core_fill_parent_index()
439 parent = clk_core_lookup(entry->name); in clk_core_fill_parent_index()
443 if (!IS_ERR(parent)) in clk_core_fill_parent_index()
[all …]
/drivers/platform/surface/
Dsurface_aggregator_registry.c47 .parent = &ssam_node_root,
53 .parent = &ssam_node_root,
59 .parent = &ssam_node_root,
65 .parent = &ssam_node_hub_base,
71 .parent = &ssam_node_root,
77 .parent = &ssam_node_root,
83 .parent = &ssam_node_root,
89 .parent = &ssam_node_root,
95 .parent = &ssam_node_root,
101 .parent = &ssam_node_root,
[all …]
/drivers/of/
Dplatform.c81 while (node->parent) { in of_device_make_bus_id()
96 node = node->parent; in of_device_make_bus_id()
108 struct device *parent) in of_device_alloc() argument
144 dev->dev.parent = parent ? : &platform_bus; in of_device_alloc()
169 struct device *parent) in of_platform_device_create_pdata() argument
177 dev = of_device_alloc(np, bus_id, parent); in of_platform_device_create_pdata()
211 struct device *parent) in of_platform_device_create() argument
213 return of_platform_device_create_pdata(np, bus_id, NULL, parent); in of_platform_device_create()
221 struct device *parent) in of_amba_device_create() argument
244 dev->dev.parent = parent ? : &platform_bus; in of_amba_device_create()
[all …]
/drivers/input/mouse/
Dpsmouse-base.c1336 struct psmouse *parent = NULL, *psmouse = in psmouse_resync() local
1348 if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) { in psmouse_resync()
1349 parent = serio_get_drvdata(serio->parent); in psmouse_resync()
1350 psmouse_deactivate(parent); in psmouse_resync()
1422 if (parent) in psmouse_resync()
1423 psmouse_activate(parent); in psmouse_resync()
1434 struct psmouse *parent = NULL; in psmouse_cleanup() local
1438 if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) { in psmouse_cleanup()
1439 parent = serio_get_drvdata(serio->parent); in psmouse_cleanup()
1440 psmouse_deactivate(parent); in psmouse_cleanup()
[all …]
/drivers/acpi/acpica/
Dpstree.c146 arg->common.parent = op; in acpi_ps_append_arg()
173 union acpi_parse_object *parent; in acpi_ps_get_depth_next() local
200 parent = op->common.parent; in acpi_ps_get_depth_next()
202 while (parent) { in acpi_ps_get_depth_next()
203 arg = acpi_ps_get_arg(parent, 0); in acpi_ps_get_depth_next()
217 if (parent->common.next) { in acpi_ps_get_depth_next()
221 ASL_CV_LABEL_FILENODE(parent->common.next); in acpi_ps_get_depth_next()
222 return (parent->common.next); in acpi_ps_get_depth_next()
225 op = parent; in acpi_ps_get_depth_next()
226 parent = parent->common.parent; in acpi_ps_get_depth_next()
/drivers/firmware/efi/
Ddev-path-parser.c16 struct device *parent, struct device **child) in parse_acpi_path() argument
59 struct device *parent, struct device **child) in parse_pci_path() argument
65 if (!parent) in parse_pci_path()
70 *child = device_find_child(parent, &devfn, match_pci_dev); in parse_pci_path()
95 struct device *parent, struct device **child) in parse_end_path() argument
102 if (!parent) in parse_end_path()
105 *child = get_device(parent); in parse_end_path()
148 struct device *parent = NULL, *child; in efi_get_device_by_path() local
159 ret = parse_acpi_path(*node, parent, &child); in efi_get_device_by_path()
162 ret = parse_pci_path(*node, parent, &child); in efi_get_device_by_path()
[all …]
/drivers/hwtracing/coresight/
Dcoresight-etm3x-sysfs.c17 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in nr_addr_cmp_show()
27 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in nr_cntr_show()
38 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in nr_ctxid_cmp_show()
49 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in etmsr_show()
51 pm_runtime_get_sync(dev->parent); in etmsr_show()
59 pm_runtime_put(dev->parent); in etmsr_show()
71 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in reset_store()
99 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in mode_show()
112 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in mode_store()
184 struct etm_drvdata *drvdata = dev_get_drvdata(dev->parent); in trigger_event_show()
[all …]

12345678910>>...120