Home
last modified time | relevance | path

Searched refs:child (Results 1 – 25 of 469) sorted by relevance

12345678910>>...19

/drivers/mtd/
A Dmtdpart.c56 child = kzalloc(sizeof(*child), GFP_KERNEL); in allocate_partition()
62 kfree(child); in allocate_partition()
70 child->flags = child->part.flags; in allocate_partition()
113 child->part.size = parent_size - child->part.offset - in allocate_partition()
124 child->part.size = parent_size - child->part.offset; in allocate_partition()
127 child->part.offset, child->part.offset + child->part.size, in allocate_partition()
143 child->part.size = parent_size - child->part.offset; in allocate_partition()
151 u64 end = child->part.offset + child->part.size; in allocate_partition()
193 tmp = mtd_get_master_ofs(child, 0) + child->part.size; in allocate_partition()
201 child->size = child->part.size; in allocate_partition()
[all …]
/drivers/net/mdio/
A Dof_mdio.c38 struct device_node *child, u32 addr) in of_mdiobus_phy_device_register() argument
41 of_fwnode_handle(child), in of_mdiobus_phy_device_register()
79 child, addr); in of_mdiobus_register_device()
131 child); in of_mdiobus_child_is_phy()
145 struct device_node *child; in __of_mdiobus_parse_phys() local
170 if (of_mdiobus_child_is_phy(child)) in __of_mdiobus_parse_phys()
185 of_node_put(child); in __of_mdiobus_parse_phys()
201 struct device_node *child; in __of_mdiobus_register() local
251 child, addr); in __of_mdiobus_register()
253 if (of_mdiobus_child_is_phy(child)) { in __of_mdiobus_register()
[all …]
A Dfwnode_mdio.c76 rc = fwnode_irq_get(child, 0); in fwnode_mdiobus_phy_device_register()
103 fwnode_handle_get(child); in fwnode_mdiobus_phy_device_register()
104 device_set_node(&phy->mdio.dev, child); in fwnode_mdiobus_phy_device_register()
112 fwnode_handle_put(child); in fwnode_mdiobus_phy_device_register()
117 child, addr); in fwnode_mdiobus_phy_device_register()
123 struct fwnode_handle *child, u32 addr) in fwnode_mdiobus_register_phy() argument
146 if (is_acpi_node(child)) { in fwnode_mdiobus_register_phy()
158 fwnode_handle_put(child); in fwnode_mdiobus_register_phy()
161 } else if (is_of_node(child)) { in fwnode_mdiobus_register_phy()
167 psec = fwnode_find_pse_control(child, phy); in fwnode_mdiobus_register_phy()
[all …]
/drivers/scsi/libsas/
A Dsas_expander.c771 child->linkrate = min(parent_phy->linkrate, child->max_linkrate); in sas_ex_get_linkrate()
772 child->pathways = min(child->pathways, parent->pathways); in sas_ex_get_linkrate()
789 child->rphy = rphy; in sas_ex_add_dev()
821 if (!child) in sas_ex_discover_end_dev()
829 sas_hash_addr(child->hashed_sas_addr, child->sas_addr); in sas_ex_discover_end_dev()
857 return child; in sas_ex_discover_end_dev()
908 if (!child) in sas_ex_discover_expander()
940 sas_hash_addr(child->hashed_sas_addr, child->sas_addr); in sas_ex_discover_expander()
965 return child; in sas_ex_discover_expander()
1057 if (!child) in sas_ex_discover_dev()
[all …]
/drivers/pci/pcie/
A Daspm.c281 struct pci_dev *child; in pci_function_0() local
285 return child; in pci_function_0()
349 struct pci_dev *child; in pcie_set_clkpm_nocheck() local
686 pci_read_config_dword(child, child->l1ss + PCI_L1SS_CTL1, &cctl1); in aspm_calc_l12_info()
687 pci_read_config_dword(child, child->l1ss + PCI_L1SS_CTL2, &cctl2); in aspm_calc_l12_info()
708 pci_write_config_dword(child, child->l1ss + PCI_L1SS_CTL2, ctl2); in aspm_calc_l12_info()
719 pci_clear_and_set_config_dword(child, child->l1ss + PCI_L1SS_CTL1, in aspm_calc_l12_info()
746 pci_read_config_dword(child, child->l1ss + PCI_L1SS_CAP, in aspm_l1ss_init()
775 pci_read_config_dword(child, child->l1ss + PCI_L1SS_CTL1, in aspm_l1ss_init()
908 pci_clear_and_set_config_dword(child, child->l1ss + PCI_L1SS_CTL1, in pcie_config_aspm_l1ss()
[all …]
/drivers/firmware/efi/
A Ddev-path-parser.c16 struct device *parent, struct device **child) in parse_acpi_path() argument
42 *child = get_device(phys_dev); in parse_acpi_path()
45 *child = &adev->dev; in parse_acpi_path()
70 if (!*child) in parse_pci_path()
104 *child = get_device(parent); in parse_end_path()
147 struct device *parent = NULL, *child; in efi_get_device_by_path() local
158 ret = parse_acpi_path(*node, parent, &child); in efi_get_device_by_path()
161 ret = parse_pci_path(*node, parent, &child); in efi_get_device_by_path()
164 ret = parse_end_path(*node, parent, &child); in efi_get_device_by_path()
172 parent = child; in efi_get_device_by_path()
[all …]
/drivers/bus/
A Dtegra-gmi.c96 struct device_node *child; in tegra_gmi_parse_dt() local
100 child = of_get_next_available_child(gmi->dev->of_node, NULL); in tegra_gmi_parse_dt()
101 if (!child) { in tegra_gmi_parse_dt()
117 if (of_property_read_bool(child, "nvidia,snor-mux-mode")) in tegra_gmi_parse_dt()
123 if (of_property_read_bool(child, "nvidia,snor-rdy-active-high")) in tegra_gmi_parse_dt()
126 if (of_property_read_bool(child, "nvidia,snor-adv-active-high")) in tegra_gmi_parse_dt()
129 if (of_property_read_bool(child, "nvidia,snor-oe-active-high")) in tegra_gmi_parse_dt()
132 if (of_property_read_bool(child, "nvidia,snor-cs-active-high")) in tegra_gmi_parse_dt()
136 err = of_property_read_u32_array(child, "ranges", ranges, 4); in tegra_gmi_parse_dt()
150 err = of_property_read_u32(child, "reg", &property); in tegra_gmi_parse_dt()
[all …]
/drivers/pci/
A Dremove.c93 struct pci_dev *child, *tmp; in pci_stop_bus_device() local
102 list_for_each_entry_safe_reverse(child, tmp, in pci_stop_bus_device()
104 pci_stop_bus_device(child); in pci_stop_bus_device()
113 struct pci_dev *child, *tmp; in pci_remove_bus_device() local
116 list_for_each_entry_safe(child, tmp, in pci_remove_bus_device()
118 pci_remove_bus_device(child); in pci_remove_bus_device()
156 struct pci_dev *child, *tmp; in pci_stop_root_bus() local
165 pci_stop_bus_device(child); in pci_stop_root_bus()
176 struct pci_dev *child, *tmp; in pci_remove_root_bus() local
183 list_for_each_entry_safe(child, tmp, in pci_remove_root_bus()
[all …]
A Dprobe.c588 pci_read_bridge_io(child->self, child->resource[0], false); in pci_read_bridge_bases()
1174 if (!child) in pci_alloc_child_bus()
1195 child->number = child->busn_res.start = busnr; in pci_alloc_child_bus()
1206 child->dev.parent = child->bridge; in pci_alloc_child_bus()
1223 child->resource[i]->name = child->name; in pci_alloc_child_bus()
1238 ret = child->ops->add_bus(child); in pci_alloc_child_bus()
1246 return child; in pci_alloc_child_bus()
1255 if (child) { in pci_add_new_bus()
1260 return child; in pci_add_new_bus()
1409 if (!child) in pci_scan_bridge_extend()
[all …]
/drivers/net/wireless/ti/wlcore/
A Dspi.c89 static void wl12xx_spi_reset(struct device *child) in wl12xx_spi_reset() argument
98 dev_err(child->parent, in wl12xx_spi_reset()
117 static void wl12xx_spi_init(struct device *child) in wl12xx_spi_init() argument
126 dev_err(child->parent, in wl12xx_spi_init()
195 static int wl12xx_spi_read_busy(struct device *child) in wl12xx_spi_read_busy() argument
198 struct wl1271 *wl = dev_get_drvdata(child); in wl12xx_spi_read_busy()
234 struct wl1271 *wl = dev_get_drvdata(child); in wl12xx_spi_raw_read()
273 wl12xx_spi_read_busy(child)) { in wl12xx_spi_raw_read()
360 __wl12xx_spi_raw_write(child, addr, buf, len, fixed); in wl12xx_spi_raw_write()
383 dev_err(child, "Power enable failure\n"); in wl12xx_spi_set_power()
[all …]
A Dsdio.c41 static void wl1271_sdio_set_block_size(struct device *child, in wl1271_sdio_set_block_size() argument
44 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl1271_sdio_set_block_size()
56 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl12xx_sdio_raw_read()
63 dev_dbg(child->parent, "sdio read 52 addr 0x%x, byte 0x%02x\n", in wl12xx_sdio_raw_read()
71 dev_dbg(child->parent, "sdio read 53 addr 0x%x, %zu bytes\n", in wl12xx_sdio_raw_read()
78 dev_err_ratelimited(child->parent, "sdio read failed (%d)\n", ret); in wl12xx_sdio_raw_read()
94 struct wl12xx_sdio_glue *glue = dev_get_drvdata(child->parent); in wl12xx_sdio_raw_write()
108 dev_dbg(child->parent, "sdio write 52 addr 0x%x, byte 0x%02x\n", in wl12xx_sdio_raw_write()
111 dev_dbg(child->parent, "sdio write 53 addr 0x%x, %zu bytes\n", in wl12xx_sdio_raw_write()
169 static int wl12xx_sdio_set_power(struct device *child, bool enable) in wl12xx_sdio_set_power() argument
[all …]
/drivers/powercap/
A Ddtpm.c61 struct dtpm *child; in __get_power_uw() local
73 ret = __get_power_uw(child, &power); in __get_power_uw()
89 struct dtpm *child; in __dtpm_rebalance_weight() local
94 child->weight, child->zone.name); in __dtpm_rebalance_weight()
99 __dtpm_rebalance_weight(child); in __dtpm_rebalance_weight()
206 struct dtpm *child; in __set_power_limit_uw() local
242 power = child->power_max; in __set_power_limit_uw()
244 power = child->power_min; in __set_power_limit_uw()
251 child->zone.name, power); in __set_power_limit_uw()
620 struct dtpm *child, *aux; in __dtpm_destroy_hierarchy() local
[all …]
/drivers/pci/hotplug/
A Dpnv_php.c140 pnv_php_rmv_pdns(child); in pnv_php_rmv_pdns()
204 child = parent->child; in pnv_php_reverse_nodes()
205 parent->child = NULL; in pnv_php_reverse_nodes()
206 while (child) { in pnv_php_reverse_nodes()
207 next = child->sibling; in pnv_php_reverse_nodes()
209 child->sibling = parent->child; in pnv_php_reverse_nodes()
210 parent->child = child; in pnv_php_reverse_nodes()
211 child = next; in pnv_php_reverse_nodes()
224 of_node_put(child); in pnv_php_populate_changeset()
230 of_node_put(child); in pnv_php_populate_changeset()
[all …]
/drivers/gpu/drm/i915/display/
A Dintel_bios.c1235 const struct child_device_config *child = &devdata->child; in parse_sdvo_device_mapping() local
2161 const struct child_device_config *child = &devdata->child; in parse_compression_parameters() local
2435 const struct child_device_config *child = &devdata->child; in intel_bios_encoder_port() local
2639 const struct child_device_config *child = &devdata->child; in print_ddi_port() local
2853 memcpy(&devdata->child, child, in parse_general_definitions()
2928 child = &devdata->child; in init_vbt_missing_defaults()
3304 const struct child_device_config *child = &devdata->child; in intel_bios_is_tv_present() local
3343 const struct child_device_config *child = &devdata->child; in intel_bios_is_lvds_present() local
3393 const struct child_device_config *child = &devdata->child; in intel_bios_is_port_present() local
3404 const struct child_device_config *child = &devdata->child; in intel_bios_encoder_supports_dp_dual_mode() local
[all …]
/drivers/regulator/
A Dof_regulator.c435 name = child->name; in of_regulator_match()
450 child); in of_regulator_match()
451 of_node_put(child); in of_regulator_match()
506 name = child->name; in regulator_of_get_init_node()
517 return child; in regulator_of_get_init_node()
535 if (!child) in regulator_of_get_init_data()
550 of_node_put(child); in regulator_of_get_init_data()
555 child); in regulator_of_get_init_data()
560 *node = child; in regulator_of_get_init_data()
565 of_node_put(child); in regulator_of_get_init_data()
[all …]
/drivers/iio/multiplexer/
A Diio-mux.c36 struct mux_child *child; member
42 struct mux_child *child = &mux->child[idx]; in iio_mux_select() local
62 cache = &child->ext_info_cache[i]; in iio_mux_select()
244 struct mux_child *child = &mux->child[idx]; in mux_configure_chan_ext_info() local
253 child->ext_info_cache = devm_kcalloc(dev, in mux_configure_chan_ext_info()
255 sizeof(*child->ext_info_cache), in mux_configure_chan_ext_info()
257 if (!child->ext_info_cache) in mux_configure_chan_ext_info()
261 child->ext_info_cache[i].size = -1; in mux_configure_chan_ext_info()
284 if (!child->ext_info_cache[i].data) in mux_configure_chan_ext_info()
287 child->ext_info_cache[i].data[ret] = 0; in mux_configure_chan_ext_info()
[all …]
/drivers/pinctrl/freescale/
A Dpinctrl-mxs.c409 struct device_node *child; in mxs_pinctrl_probe_dt() local
425 if (is_mxs_gpio(child)) in mxs_pinctrl_probe_dt()
431 if (strcmp(fn, child->name)) { in mxs_pinctrl_probe_dt()
432 fn = child->name; in mxs_pinctrl_probe_dt()
454 if (is_mxs_gpio(child)) in mxs_pinctrl_probe_dt()
458 if (strcmp(fn, child->name)) { in mxs_pinctrl_probe_dt()
465 of_node_get(child); in mxs_pinctrl_probe_dt()
485 f->name = fn = child->name; in mxs_pinctrl_probe_dt()
494 if (is_mxs_gpio(child)) in mxs_pinctrl_probe_dt()
504 if (strcmp(fn, child->name)) { in mxs_pinctrl_probe_dt()
[all …]
/drivers/input/keyboard/
A Dgpio_keys_polled.c168 device_for_each_child_node_scoped(dev, child) { in gpio_keys_polled_get_devtree_pdata()
169 if (fwnode_property_read_u32(child, "linux,code", in gpio_keys_polled_get_devtree_pdata()
186 fwnode_property_read_bool(child, "wakeup-source") || in gpio_keys_polled_get_devtree_pdata()
188 fwnode_property_read_bool(child, "gpio-key,wakeup"); in gpio_keys_polled_get_devtree_pdata()
229 struct fwnode_handle *child = NULL; in gpio_keys_polled_probe() local
284 fwnode_handle_put(child); in gpio_keys_polled_probe()
290 child = device_get_next_child_node(dev, child); in gpio_keys_polled_probe()
291 if (!child) { in gpio_keys_polled_probe()
296 bdata->gpiod = devm_fwnode_gpiod_get(dev, child, in gpio_keys_polled_probe()
300 fwnode_handle_put(child); in gpio_keys_polled_probe()
[all …]
/drivers/usb/core/
A Dof.c82 struct device_node *child; in usb_of_has_devices_or_graph() local
87 for_each_child_of_node(np, child) { in usb_of_has_devices_or_graph()
88 if (of_property_present(child, "reg")) { in usb_of_has_devices_or_graph()
89 of_node_put(child); in usb_of_has_devices_or_graph()
113 struct device_node *np, *child, *ep, *remote_np; in usb_of_get_connect_type() local
143 child = usb_of_get_device_node(hub, port1); in usb_of_get_connect_type()
144 if (of_device_is_available(child)) in usb_of_get_connect_type()
146 of_node_put(child); in usb_of_get_connect_type()
/drivers/gpu/drm/xe/
A Dxe_pt_walk.c81 struct xe_ptw *child; in xe_pt_walk_range() local
92 child = entries ? entries[offset] : NULL; in xe_pt_walk_range()
94 &child, &action, walk); in xe_pt_walk_range()
102 if (likely(!level || !child || action == ACTION_CONTINUE)) in xe_pt_walk_range()
105 err = xe_pt_walk_range(child, level - 1, addr, next, walk); in xe_pt_walk_range()
109 next, &child, &action, walk); in xe_pt_walk_range()
145 struct xe_ptw *child = parent; in xe_pt_walk_shared() local
150 &child, &action, walk); in xe_pt_walk_shared()
158 &child, &action, walk); in xe_pt_walk_shared()
/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dhtb.c370 if (IS_ERR(child)) { in mlx5e_htb_leaf_to_inner()
371 err = PTR_ERR(child); in mlx5e_htb_leaf_to_inner()
375 child->rate = rate; in mlx5e_htb_leaf_to_inner()
380 child->max_average_bw, &child->hw_id); in mlx5e_htb_leaf_to_inner()
407 err = mlx5e_open_qos_sq(priv, &priv->channels, child->qid, child->hw_id); in mlx5e_htb_leaf_to_inner()
413 mlx5e_activate_qos_sq(priv, child->qid, child->hw_id); in mlx5e_htb_leaf_to_inner()
420 child->qid = MLX5E_QOS_QID_INNER; in mlx5e_htb_leaf_to_inner()
625 struct mlx5e_qos_node *child; in mlx5e_htb_update_children() local
633 if (child->parent != node) in mlx5e_htb_update_children()
636 mlx5e_htb_convert_rate(htb, child->rate, node, &child->bw_share); in mlx5e_htb_update_children()
[all …]
/drivers/gpu/drm/nouveau/nvkm/core/
A Dobject.c148 struct nvkm_object *child; in nvkm_object_fini() local
154 list_for_each_entry_reverse(child, &object->tree, head) { in nvkm_object_fini()
155 ret = nvkm_object_fini(child, suspend); in nvkm_object_fini()
182 nvkm_object_init(child); in nvkm_object_fini()
190 struct nvkm_object *child; in nvkm_object_init() local
203 list_for_each_entry(child, &object->tree, head) { in nvkm_object_init()
204 ret = nvkm_object_init(child); in nvkm_object_init()
215 nvkm_object_fini(child, false); in nvkm_object_init()
226 struct nvkm_object *child, *ctemp; in nvkm_object_dtor() local
232 list_for_each_entry_safe(child, ctemp, &object->tree, head) { in nvkm_object_dtor()
[all …]
/drivers/of/
A Dresolver.c44 struct device_node *child; in adjust_overlay_phandles() local
69 for_each_child_of_node(overlay, child) in adjust_overlay_phandles()
70 adjust_overlay_phandles(child, phandle_delta); in adjust_overlay_phandles()
195 for_each_child_of_node_scoped(local_fixups, child) { in adjust_local_phandle_references()
198 if (!node_name_cmp(child, overlay_child)) { in adjust_local_phandle_references()
206 err = adjust_local_phandle_references(child, overlay_child, in adjust_local_phandle_references()
250 struct device_node *child, *refnode; in of_resolve_phandles() local
281 for_each_child_of_node(overlay, child) { in of_resolve_phandles()
282 if (of_node_name_eq(child, "__fixups__")) in of_resolve_phandles()
283 overlay_fixups = child; in of_resolve_phandles()
/drivers/leds/
A Dleds-max5970.c48 struct fwnode_handle *child; in max5970_led_probe() local
63 fwnode_for_each_available_child_node(led_node, child) { in max5970_led_probe()
66 if (fwnode_property_read_u32(child, "reg", &reg)) in max5970_led_probe()
76 fwnode_handle_put(child); in max5970_led_probe()
84 if (fwnode_property_read_string(child, "label", &ddata->cdev.name)) in max5970_led_probe()
85 ddata->cdev.name = fwnode_get_name(child); in max5970_led_probe()
93 fwnode_handle_put(child); in max5970_led_probe()
/drivers/iio/temperature/
A Dltc2983.c667 if (fwnode_property_read_bool(child, "adi,single-ended")) in ltc2983_thermocouple_new()
723 thermo->custom = __ltc2983_custom_sensor_new(st, child, in ltc2983_thermocouple_new()
751 fwnode_find_reference(child, "adi,rsense-handle", 0); in ltc2983_rtd_new()
833 rtd->custom = __ltc2983_custom_sensor_new(st, child, in ltc2983_rtd_new()
901 fwnode_find_reference(child, "adi,rsense-handle", 0); in ltc2983_thermistor_new()
1027 if (fwnode_property_read_bool(child, "adi,single-ended")) in ltc2983_diode_new()
1033 if (fwnode_property_read_bool(child, "adi,average-on")) in ltc2983_diode_new()
1315 device_for_each_child_node_scoped(dev, child) { in ltc2983_parse_fw()
1354 st->sensors[chan] = ltc2983_thermistor_new(child, st, in ltc2983_parse_fw()
1357 st->sensors[chan] = ltc2983_diode_new(child, st, in ltc2983_parse_fw()
[all …]

Completed in 92 milliseconds

12345678910>>...19