Home
last modified time | relevance | path

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

12345678910>>...67

/drivers/i2c/
Di2c-mux.c35 struct i2c_adapter *parent; member
47 struct i2c_adapter *parent = priv->parent; in i2c_mux_master_xfer() local
52 ret = priv->select(parent, priv->mux_priv, priv->chan_id); in i2c_mux_master_xfer()
54 ret = parent->algo->master_xfer(parent, msgs, num); in i2c_mux_master_xfer()
56 priv->deselect(parent, priv->mux_priv, priv->chan_id); in i2c_mux_master_xfer()
67 struct i2c_adapter *parent = priv->parent; in i2c_mux_smbus_xfer() local
72 ret = priv->select(parent, priv->mux_priv, priv->chan_id); in i2c_mux_smbus_xfer()
74 ret = parent->algo->smbus_xfer(parent, addr, flags, in i2c_mux_smbus_xfer()
77 priv->deselect(parent, priv->mux_priv, priv->chan_id); in i2c_mux_smbus_xfer()
86 struct i2c_adapter *parent = priv->parent; in i2c_mux_functionality() local
[all …]
/drivers/gpu/drm/nouveau/core/core/
Dengctx.c34 nouveau_engctx_exists(struct nouveau_object *parent, in nouveau_engctx_exists() argument
42 if (parctx == parent) { in nouveau_engctx_exists()
53 nouveau_engctx_create_(struct nouveau_object *parent, in nouveau_engctx_create_() argument
60 struct nouveau_client *client = nouveau_client(parent); in nouveau_engctx_create_()
70 ret = nouveau_engctx_exists(parent, engine, pobject); in nouveau_engctx_create_()
79 ret = nouveau_gpuobj_create_(parent, engobj, oclass, in nouveau_engctx_create_()
84 ret = nouveau_object_create_(parent, engobj, oclass, in nouveau_engctx_create_()
97 ret = nouveau_engctx_exists(parent, engine, pobject); in nouveau_engctx_create_()
139 struct nouveau_object *parent; in nouveau_engctx_init() local
147 parent = nv_pclass(object->parent, NV_PARENT_CLASS); in nouveau_engctx_init()
[all …]
Dgpuobj.c43 nouveau_mm_free(&nv_gpuobj(gpuobj->parent)->heap, in nouveau_gpuobj_destroy()
54 nouveau_gpuobj_create_(struct nouveau_object *parent, in nouveau_gpuobj_create_() argument
61 struct nouveau_instmem *imem = nouveau_instmem(parent); in nouveau_gpuobj_create_()
62 struct nouveau_bar *bar = nouveau_bar(parent); in nouveau_gpuobj_create_()
74 pargpu = pargpu->parent; in nouveau_gpuobj_create_()
78 nv_error(parent, "no gpuobj heap\n"); in nouveau_gpuobj_create_()
84 atomic_inc(&parent->refcount); in nouveau_gpuobj_create_()
86 ret = imem->alloc(imem, parent, size, align, &parent); in nouveau_gpuobj_create_()
87 pargpu = parent; in nouveau_gpuobj_create_()
95 struct nouveau_instobj *iobj = (void *)parent; in nouveau_gpuobj_create_()
[all …]
Dobject.c37 nouveau_object_create_(struct nouveau_object *parent, in nouveau_object_create_() argument
48 nouveau_object_ref(parent, &object->parent); in nouveau_object_create_()
65 _nouveau_object_ctor(struct nouveau_object *parent, in _nouveau_object_ctor() argument
73 ret = nouveau_object_create(parent, engine, oclass, 0, &object); in _nouveau_object_ctor()
90 nouveau_object_ref(NULL, &object->parent); in nouveau_object_destroy()
133 nouveau_object_ctor(struct nouveau_object *parent, in nouveau_object_ctor() argument
142 ret = ofuncs->ctor(parent, engine, oclass, data, size, &object); in nouveau_object_ctor()
146 nv_error(parent, "failed to create 0x%08x, %d\n", in nouveau_object_ctor()
196 struct nouveau_object *parent = NULL; in nouveau_object_new() local
205 parent = nouveau_handle_ref(client, _parent); in nouveau_object_new()
[all …]
Dhandle.c31 struct nouveau_handle *p = (h)->parent; u32 n = p ? p->name : ~0; \
100 nouveau_handle_create(struct nouveau_object *parent, u32 _parent, u32 _handle, in nouveau_handle_create() argument
108 namedb = parent; in nouveau_handle_create()
110 namedb = namedb->parent; in nouveau_handle_create()
127 if (nv_parent(parent)->object_attach) { in nouveau_handle_create()
128 ret = nv_parent(parent)->object_attach(parent, object, _handle); in nouveau_handle_create()
139 namedb = namedb->parent; in nouveau_handle_create()
141 handle->parent = nouveau_namedb_get(nv_namedb(namedb), _parent); in nouveau_handle_create()
142 if (handle->parent) { in nouveau_handle_create()
143 list_add(&handle->head, &handle->parent->tree); in nouveau_handle_create()
[all …]
Dparent.c30 nouveau_parent_sclass(struct nouveau_object *parent, u16 handle, in nouveau_parent_sclass() argument
39 sclass = nv_parent(parent)->sclass; in nouveau_parent_sclass()
42 *pengine = parent->engine; in nouveau_parent_sclass()
50 mask = nv_parent(parent)->engine; in nouveau_parent_sclass()
54 if (nv_iclass(parent, NV_CLIENT_CLASS)) in nouveau_parent_sclass()
55 engine = nv_engine(nv_client(parent)->device); in nouveau_parent_sclass()
57 engine = nouveau_engine(parent, i); in nouveau_parent_sclass()
78 nouveau_parent_create_(struct nouveau_object *parent, in nouveau_parent_create_() argument
88 ret = nouveau_object_create_(parent, engine, oclass, pclass | in nouveau_parent_create_()
111 nouveau_parent_destroy(struct nouveau_parent *parent) in nouveau_parent_destroy() argument
[all …]
/drivers/regulator/
Dtps80031-regulator.c98 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 …]
Dmc13xxx-regulator-core.c167 struct device_node *parent; in mc13xxx_get_num_regulators_dt() local
170 of_node_get(pdev->dev.parent->of_node); in mc13xxx_get_num_regulators_dt()
171 parent = of_find_node_by_name(pdev->dev.parent->of_node, "regulators"); in mc13xxx_get_num_regulators_dt()
172 if (!parent) in mc13xxx_get_num_regulators_dt()
175 num = of_get_child_count(parent); in mc13xxx_get_num_regulators_dt()
176 of_node_put(parent); in mc13xxx_get_num_regulators_dt()
187 struct device_node *parent, *child; in mc13xxx_parse_regulators_dt() local
190 of_node_get(pdev->dev.parent->of_node); in mc13xxx_parse_regulators_dt()
191 parent = of_find_node_by_name(pdev->dev.parent->of_node, "regulators"); in mc13xxx_parse_regulators_dt()
192 if (!parent) in mc13xxx_parse_regulators_dt()
[all …]
/drivers/hid/
Dhid-roccat-arvo.c35 hid_get_drvdata(dev_get_drvdata(dev->parent->parent)); in arvo_sysfs_show_mode_key()
37 interface_to_usbdev(to_usb_interface(dev->parent->parent)); in arvo_sysfs_show_mode_key()
55 hid_get_drvdata(dev_get_drvdata(dev->parent->parent)); in arvo_sysfs_set_mode_key()
57 interface_to_usbdev(to_usb_interface(dev->parent->parent)); in arvo_sysfs_set_mode_key()
83 hid_get_drvdata(dev_get_drvdata(dev->parent->parent)); in arvo_sysfs_show_key_mask()
85 interface_to_usbdev(to_usb_interface(dev->parent->parent)); in arvo_sysfs_show_key_mask()
103 hid_get_drvdata(dev_get_drvdata(dev->parent->parent)); in arvo_sysfs_set_key_mask()
105 interface_to_usbdev(to_usb_interface(dev->parent->parent)); in arvo_sysfs_set_key_mask()
146 hid_get_drvdata(dev_get_drvdata(dev->parent->parent)); in arvo_sysfs_show_actual_profile()
155 hid_get_drvdata(dev_get_drvdata(dev->parent->parent)); in arvo_sysfs_set_actual_profile()
[all …]
/drivers/input/mouse/
Dpsmouse-base.c1163 struct psmouse *parent = NULL, *psmouse = in psmouse_resync() local
1175 if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) { in psmouse_resync()
1176 parent = serio_get_drvdata(serio->parent); in psmouse_resync()
1177 psmouse_deactivate(parent); in psmouse_resync()
1248 if (parent) in psmouse_resync()
1249 psmouse_activate(parent); in psmouse_resync()
1261 struct psmouse *parent = NULL; in psmouse_cleanup() local
1265 if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) { in psmouse_cleanup()
1266 parent = serio_get_drvdata(serio->parent); in psmouse_cleanup()
1267 psmouse_deactivate(parent); in psmouse_cleanup()
[all …]
/drivers/pci/hotplug/
Dpciehp_pci.c41 struct pci_bus *parent = bridge->subordinate; in pciehp_configure_device() local
45 dev = pci_get_slot(parent, PCI_DEVFN(0, 0)); in pciehp_configure_device()
49 pci_domain_nr(parent), parent->number); in pciehp_configure_device()
54 num = pci_scan_slot(parent, PCI_DEVFN(0, 0)); in pciehp_configure_device()
60 list_for_each_entry(dev, &parent->devices, bus_list) in pciehp_configure_device()
67 list_for_each_entry(dev, &parent->devices, bus_list) { in pciehp_configure_device()
74 pci_bus_add_devices(parent); in pciehp_configure_device()
85 struct pci_bus *parent = p_slot->ctrl->pcie->port->subordinate; in pciehp_unconfigure_device() local
90 __func__, pci_domain_nr(parent), parent->number); in pciehp_unconfigure_device()
95 list_for_each_entry_safe(dev, temp, &parent->devices, bus_list) { in pciehp_unconfigure_device()
Dshpchp_pci.c42 struct pci_bus *parent = bridge->subordinate; in shpchp_configure_device() local
45 dev = pci_get_slot(parent, PCI_DEVFN(p_slot->device, 0)); in shpchp_configure_device()
49 pci_domain_nr(parent), p_slot->bus, p_slot->device); in shpchp_configure_device()
54 num = pci_scan_slot(parent, PCI_DEVFN(p_slot->device, 0)); in shpchp_configure_device()
60 list_for_each_entry(dev, &parent->devices, bus_list) { in shpchp_configure_device()
70 list_for_each_entry(dev, &parent->devices, bus_list) { in shpchp_configure_device()
76 pci_bus_add_devices(parent); in shpchp_configure_device()
85 struct pci_bus *parent = p_slot->ctrl->pci_dev->subordinate; in shpchp_unconfigure_device() local
90 __func__, pci_domain_nr(parent), p_slot->bus, p_slot->device); in shpchp_unconfigure_device()
92 list_for_each_entry_safe(dev, temp, &parent->devices, bus_list) { in shpchp_unconfigure_device()
/drivers/base/power/
Druntime.c181 dev = dev->parent; in pm_runtime_set_memalloc_noio()
399 struct device *parent = NULL; in rpm_suspend() local
518 if (dev->parent) { in rpm_suspend()
519 parent = dev->parent; in rpm_suspend()
520 atomic_add_unless(&parent->power.child_count, -1, 0); in rpm_suspend()
532 if (parent && !parent->power.ignore_children && !dev->power.irq_safe) { in rpm_suspend()
535 spin_lock(&parent->power.lock); in rpm_suspend()
536 rpm_idle(parent, RPM_ASYNC); in rpm_suspend()
537 spin_unlock(&parent->power.lock); in rpm_suspend()
591 struct device *parent = NULL; in rpm_resume() local
[all …]
/drivers/pci/pcie/
Daspm.c44 struct pcie_link_state *parent; /* pointer to the parent Link state */ member
188 struct pci_dev *child, *parent = link->pdev; in pcie_aspm_configure_common_clock() local
189 struct pci_bus *linkbus = parent->subordinate; in pcie_aspm_configure_common_clock()
203 pcie_capability_read_word(parent, PCI_EXP_LNKSTA, &reg16); in pcie_aspm_configure_common_clock()
219 pcie_capability_read_word(parent, PCI_EXP_LNKCTL, &reg16); in pcie_aspm_configure_common_clock()
225 pcie_capability_write_word(parent, PCI_EXP_LNKCTL, reg16); in pcie_aspm_configure_common_clock()
229 pcie_capability_write_word(parent, PCI_EXP_LNKCTL, reg16); in pcie_aspm_configure_common_clock()
234 pcie_capability_read_word(parent, PCI_EXP_LNKSTA, &reg16); in pcie_aspm_configure_common_clock()
245 dev_err(&parent->dev, "ASPM: Could not configure common clock\n"); in pcie_aspm_configure_common_clock()
249 pcie_capability_write_word(parent, PCI_EXP_LNKCTL, parent_reg); in pcie_aspm_configure_common_clock()
[all …]
/drivers/gpio/
Dgpio-rc5t583.c45 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_get() local
49 ret = rc5t583_read(parent, RC5T583_GPIO_MON_IOIN, &val); in rc5t583_gpio_get()
59 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_set() local
61 rc5t583_set_bits(parent, RC5T583_GPIO_IOOUT, BIT(offset)); in rc5t583_gpio_set()
63 rc5t583_clear_bits(parent, RC5T583_GPIO_IOOUT, BIT(offset)); in rc5t583_gpio_set()
69 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_dir_input() local
72 ret = rc5t583_clear_bits(parent, RC5T583_GPIO_IOSEL, BIT(offset)); in rc5t583_gpio_dir_input()
77 return rc5t583_clear_bits(parent, RC5T583_GPIO_PGSEL, BIT(offset)); in rc5t583_gpio_dir_input()
84 struct device *parent = rc5t583_gpio->rc5t583->dev; in rc5t583_gpio_dir_output() local
88 ret = rc5t583_set_bits(parent, RC5T583_GPIO_IOSEL, BIT(offset)); in rc5t583_gpio_dir_output()
[all …]
/drivers/gpu/drm/nouveau/core/engine/fifo/
Dnv50.c74 nv50_fifo_context_attach(struct nouveau_object *parent, in nv50_fifo_context_attach() argument
77 struct nouveau_bar *bar = nouveau_bar(parent); in nv50_fifo_context_attach()
78 struct nv50_fifo_base *base = (void *)parent->parent; in nv50_fifo_context_attach()
105 nv50_fifo_context_detach(struct nouveau_object *parent, bool suspend, in nv50_fifo_context_detach() argument
108 struct nouveau_bar *bar = nouveau_bar(parent); in nv50_fifo_context_detach()
109 struct nv50_fifo_priv *priv = (void *)parent->engine; in nv50_fifo_context_detach()
110 struct nv50_fifo_base *base = (void *)parent->parent; in nv50_fifo_context_detach()
111 struct nv50_fifo_chan *chan = (void *)parent; in nv50_fifo_context_detach()
161 nv50_fifo_object_attach(struct nouveau_object *parent, in nv50_fifo_object_attach() argument
164 struct nv50_fifo_chan *chan = (void *)parent; in nv50_fifo_object_attach()
[all …]
Dnv84.c46 nv84_fifo_context_attach(struct nouveau_object *parent, in nv84_fifo_context_attach() argument
49 struct nouveau_bar *bar = nouveau_bar(parent); in nv84_fifo_context_attach()
50 struct nv50_fifo_base *base = (void *)parent->parent; in nv84_fifo_context_attach()
79 nv84_fifo_context_detach(struct nouveau_object *parent, bool suspend, in nv84_fifo_context_detach() argument
82 struct nouveau_bar *bar = nouveau_bar(parent); in nv84_fifo_context_detach()
83 struct nv50_fifo_priv *priv = (void *)parent->engine; in nv84_fifo_context_detach()
84 struct nv50_fifo_base *base = (void *)parent->parent; in nv84_fifo_context_detach()
85 struct nv50_fifo_chan *chan = (void *)parent; in nv84_fifo_context_detach()
121 nv84_fifo_object_attach(struct nouveau_object *parent, in nv84_fifo_object_attach() argument
124 struct nv50_fifo_chan *chan = (void *)parent; in nv84_fifo_object_attach()
[all …]
/drivers/acpi/acpica/
Dpstree.c179 arg->common.parent = op; in acpi_ps_append_arg()
205 union acpi_parse_object *parent; in acpi_ps_get_depth_next() local
230 parent = op->common.parent; in acpi_ps_get_depth_next()
232 while (parent) { in acpi_ps_get_depth_next()
233 arg = acpi_ps_get_arg(parent, 0); in acpi_ps_get_depth_next()
245 if (parent->common.next) { in acpi_ps_get_depth_next()
249 return (parent->common.next); in acpi_ps_get_depth_next()
252 op = parent; in acpi_ps_get_depth_next()
253 parent = parent->common.parent; in acpi_ps_get_depth_next()
/drivers/sh/clk/
Dcore.c64 freq = clk->parent->rate * mult / div; in clk_rate_table_build()
217 return clk->parent ? clk->parent->rate : 0; in followparent_recalc()
220 int clk_reparent(struct clk *child, struct clk *parent) in clk_reparent() argument
223 if (parent) in clk_reparent()
224 list_add(&child->sibling, &parent->children); in clk_reparent()
225 child->parent = parent; in clk_reparent()
252 if (likely(clk->parent)) in __clk_disable()
253 __clk_disable(clk->parent); in __clk_disable()
275 if (clk->parent) { in __clk_enable()
276 ret = __clk_enable(clk->parent); in __clk_enable()
[all …]
/drivers/md/bcache/
Dclosure.h249 struct closure *parent; member
304 bool closure_trylock(struct closure *cl, struct closure *parent);
305 void __closure_lock(struct closure *cl, struct closure *parent,
367 static inline void do_closure_init(struct closure *cl, struct closure *parent, in do_closure_init() argument
378 cl->parent = parent; in do_closure_init()
379 if (parent) in do_closure_init()
380 closure_get(parent); in do_closure_init()
402 #define closure_init_type(cl, parent, running) \ argument
406 do_closure_init(_cl, parent, running); \
414 #define __closure_init(cl, parent) \ argument
[all …]
/drivers/clk/
Dclk.c315 struct clk *parent; in clk_debug_register() local
322 parent = clk->parent; in clk_debug_register()
328 if (!parent) in clk_debug_register()
334 if (parent->dentry) in clk_debug_register()
335 pdentry = parent->dentry; in clk_debug_register()
559 return !clk ? NULL : clk->parent; in __clk_get_parent()
586 if (!clk->parent) in __clk_get_rate()
700 __clk_unprepare(clk->parent); in __clk_unprepare()
730 ret = __clk_prepare(clk->parent); in __clk_prepare()
737 __clk_unprepare(clk->parent); in __clk_prepare()
[all …]
/drivers/of/
Daddress.c37 int (*match)(struct device_node *parent);
178 struct device_node *parent; in of_get_pci_address() local
183 parent = of_get_parent(dev); in of_get_pci_address()
184 if (parent == NULL) in of_get_pci_address()
186 bus = of_match_bus(parent); in of_get_pci_address()
188 of_node_put(parent); in of_get_pci_address()
192 of_node_put(parent); in of_get_pci_address()
340 static int of_translate_one(struct device_node *parent, struct of_bus *bus, in of_translate_one() argument
364 ranges = of_get_property(parent, rprop, &rlen); in of_translate_one()
415 struct device_node *parent = NULL; in __of_translate_address() local
[all …]
Dplatform.c141 struct device *parent) in of_device_alloc() argument
178 dev->dev.parent = parent; in of_device_alloc()
203 struct device *parent) in of_platform_device_create_pdata() argument
210 dev = of_device_alloc(np, bus_id, parent); in of_platform_device_create_pdata()
245 struct device *parent) in of_platform_device_create() argument
247 return of_platform_device_create_pdata(np, bus_id, NULL, parent); in of_platform_device_create()
255 struct device *parent) in of_amba_device_create() argument
273 dev->dev.parent = parent; in of_amba_device_create()
310 struct device *parent) in of_amba_device_create() argument
354 struct device *parent, bool strict) in of_platform_bus_create() argument
[all …]
/drivers/scsi/libsas/
Dsas_expander.c659 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_smp_get_phy_events()
738 static void sas_ex_get_linkrate(struct domain_device *parent, in sas_ex_get_linkrate() argument
742 struct expander_device *parent_ex = &parent->ex_dev; in sas_ex_get_linkrate()
760 child->min_linkrate = min(parent->min_linkrate, in sas_ex_get_linkrate()
762 child->max_linkrate = max(parent->max_linkrate, in sas_ex_get_linkrate()
769 child->pathways = min(child->pathways, parent->pathways); in sas_ex_get_linkrate()
773 struct domain_device *parent, int phy_id) in sas_ex_discover_end_dev() argument
775 struct expander_device *parent_ex = &parent->ex_dev; in sas_ex_discover_end_dev()
788 kref_get(&parent->kref); in sas_ex_discover_end_dev()
789 child->parent = parent; in sas_ex_discover_end_dev()
[all …]
/drivers/video/backlight/
Dlocomolcd.c36 locomo_gpio_set_dir(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_VSHA_ON, 0); in locomolcd_on()
37 locomo_gpio_write(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_VSHA_ON, 1); in locomolcd_on()
40 locomo_gpio_set_dir(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_VSHD_ON, 0); in locomolcd_on()
41 locomo_gpio_write(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_VSHD_ON, 1); in locomolcd_on()
47 locomo_gpio_set_dir(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_VEE_ON, 0); in locomolcd_on()
48 locomo_gpio_write(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_VEE_ON, 1); in locomolcd_on()
61 locomo_gpio_set_dir(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_MOD, 0); in locomolcd_on()
62 locomo_gpio_write(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_MOD, 1); in locomolcd_on()
71 locomo_gpio_write(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_VSHA_ON, 0); in locomolcd_off()
74 locomo_gpio_write(locomolcd_dev->dev.parent, LOCOMO_GPIO_LCD_VEE_ON, 0); in locomolcd_off()
[all …]

12345678910>>...67