Home
last modified time | relevance | path

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

123

/device/soc/rockchip/common/sdk_linux/drivers/pwm/
Dsysfs.c18 struct device child; member
24 static struct pwm_export *child_to_pwm_export(struct device *child) in child_to_pwm_export() argument
26 return container_of(child, struct pwm_export, child); in child_to_pwm_export()
29 static struct pwm_device *child_to_pwm_device(struct device *child) in child_to_pwm_device() argument
31 struct pwm_export *export = child_to_pwm_export(child); in child_to_pwm_device()
36 static ssize_t period_show(struct device *child, struct device_attribute *attr, char *buf) in period_show() argument
38 const struct pwm_device *pwm = child_to_pwm_device(child); in period_show()
46 static ssize_t period_store(struct device *child, struct device_attribute *attr, const char *buf, s… in period_store() argument
48 struct pwm_export *export = child_to_pwm_export(child); in period_store()
68 static ssize_t duty_cycle_show(struct device *child, struct device_attribute *attr, char *buf) in duty_cycle_show() argument
[all …]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/common/
Dmali_group.c119 struct mali_group *child; in mali_group_delete() local
122 _MALI_OSK_LIST_FOREACHENTRY(child, temp, &group->group_list, struct mali_group, group_list) { in mali_group_delete()
123 child->parent_group = NULL; in mali_group_delete()
124 mali_group_delete(child); in mali_group_delete()
261 struct mali_group *child; in mali_group_activate() local
268 _MALI_OSK_LIST_FOREACHENTRY(child, temp, in mali_group_activate()
272 == child->state); in mali_group_activate()
274 child->state = MALI_GROUP_STATE_ACTIVATION_PENDING; in mali_group_activate()
277 child->pm_domain); in mali_group_activate()
278 domains[num_domains] = child->pm_domain; in mali_group_activate()
[all …]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/common/
Dmali_group.c122 struct mali_group *child; in mali_group_delete() local
125 MALI_OSK_LIST_FOREACHENTRY(child, temp, &group->group_list, struct mali_group, group_list) in mali_group_delete()
127 child->parent_group = NULL; in mali_group_delete()
128 mali_group_delete(child); in mali_group_delete()
264 struct mali_group *child; in mali_group_activate() local
271 … MALI_OSK_LIST_FOREACHENTRY(child, temp, &group->group_list, struct mali_group, group_list) in mali_group_activate()
273 MALI_DEBUG_ASSERT(MALI_GROUP_STATE_INACTIVE == child->state); in mali_group_activate()
275 child->state = MALI_GROUP_STATE_ACTIVATION_PENDING; in mali_group_activate()
277 MALI_DEBUG_ASSERT_POINTER(child->pm_domain); in mali_group_activate()
278 domains[num_domains] = child->pm_domain; in mali_group_activate()
[all …]
Dmali_pp.c454 void mali_pp_update_performance_counters(struct mali_pp_core *parent, struct mali_pp_core *child, in mali_pp_update_performance_counters() argument
462 int counter_index = COUNTER_FP_0_C0 + (2 * child->core_id); in mali_pp_update_performance_counters()
466 val0 = mali_hw_core_register_read(&child->hw_core, MALI200_REG_ADDR_MGMT_PERF_CNT_0_VALUE); in mali_pp_update_performance_counters()
476 val1 = mali_hw_core_register_read(&child->hw_core, MALI200_REG_ADDR_MGMT_PERF_CNT_1_VALUE); in mali_pp_update_performance_counters()
/device/soc/rockchip/common/sdk_linux/drivers/regulator/
Dof_regulator.c339 struct device_node *child; in of_regulator_match() local
362 for_each_child_of_node(node, child) in of_regulator_match()
364 name = of_get_property(child, "regulator-compatible", NULL); in of_regulator_match()
366 name = child->name; in of_regulator_match()
378 match->init_data = of_get_regulator_init_data(dev, child, match->desc); in of_regulator_match()
380 dev_err(dev, "failed to parse DT for regulator %pOFn\n", child); in of_regulator_match()
381 of_node_put(child); in of_regulator_match()
384 match->of_node = of_node_get(child); in of_regulator_match()
396 struct device_node *search, *child; in regulator_of_get_init_node() local
417 for_each_available_child_of_node(search, child) in regulator_of_get_init_node()
[all …]
/device/soc/amlogic/a311d/soc/amlogic/input/keyboard/
Dgpio_keypad.c186 struct fwnode_handle *child; in gpio_keypad_get_devtree_pdata() local
209 device_for_each_child_node(dev, child) in gpio_keypad_get_devtree_pdata()
211 if (fwnode_property_read_u32(child, "linux,code", &button->code)) { in gpio_keypad_get_devtree_pdata()
213 fwnode_handle_put(child); in gpio_keypad_get_devtree_pdata()
217 fwnode_property_read_string(child, "label", &button->desc); in gpio_keypad_get_devtree_pdata()
219 if (fwnode_property_read_u32(child, "linux,input-type", &button->type)) { in gpio_keypad_get_devtree_pdata()
223 if (fwnode_property_read_u32(child, "linux,input-value", (u32 *)&button->value)) { in gpio_keypad_get_devtree_pdata()
227 button->wakeup = fwnode_property_read_bool(child, "wakeup-source") || in gpio_keypad_get_devtree_pdata()
229 fwnode_property_read_bool(child, "gpio-key,wakeup"); in gpio_keypad_get_devtree_pdata()
231 if (fwnode_property_read_u32(child, "debounce-interval", &button->debounce_interval)) { in gpio_keypad_get_devtree_pdata()
[all …]
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/vin/utility/
Dconfig.c445 struct device_node *cam = NULL, *child; in parse_modules_from_device_tree()
454 for_each_available_child_of_node(parent, child) { in parse_modules_from_device_tree()
455 if (!strcmp(child->name, "sensor")) { in parse_modules_from_device_tree()
456 cam = child; in parse_modules_from_device_tree()
556 for_each_available_child_of_node(parent, child) { in parse_modules_from_device_tree()
557 if (strcmp(child->name, "vinc")) in parse_modules_from_device_tree()
559 ret = of_property_read_string(child, "device_type", &device_type); in parse_modules_from_device_tree()
565 sprintf(property, "%s%d_rear_sensor_sel", child->name, idx); in parse_modules_from_device_tree()
566 if (get_value_int(child, property, &i)) in parse_modules_from_device_tree()
570 sprintf(property, "%s%d_csi_sel", child->name, idx); in parse_modules_from_device_tree()
[all …]
/device/soc/rockchip/common/sdk_linux/kernel/sched/
Dtopology.c65 if ((meta_flags & SDF_SHARED_CHILD) && sd->child && !(sd->child->flags & flag)) { in sched_domain_debug_one()
106 …if (group == sd->groups && sd->child && !cpumask_equal(sched_domain_span(sd->child), sched_group_s… in sched_domain_debug_one()
727 parent->parent->child = tmp; in cpu_attach_domain()
748 sd->child = NULL; in cpu_attach_domain()
914 if (!sibling->child) { in build_balance_mask()
919 if (!cpumask_equal(sg_span, sched_domain_span(sibling->child))) { in build_balance_mask()
946 if (sd->child) { in build_group_from_child_sched_domain()
947 cpumask_copy(sg_span, sched_domain_span(sd->child)); in build_group_from_child_sched_domain()
990 …while (sibling->child && !cpumask_subset(sched_domain_span(sibling->child), sched_domain_span(sd))… in find_descended_sibling()
991 sibling = sibling->child; in find_descended_sibling()
[all …]
/device/soc/rockchip/common/sdk_linux/drivers/clk/rockchip/
Dclk.c225 … struct rockchip_clk_branch *child, unsigned long max_prate, in rockchip_clk_register_frac_branch() argument
238 if (child && child->branch_type != branch_mux) { in rockchip_clk_register_frac_branch()
278 if (child) { in rockchip_clk_register_frac_branch()
284 frac->mux_frac_idx = match_string(child->parent_names, child->num_parents, name); in rockchip_clk_register_frac_branch()
288 frac_mux->reg = base + child->muxdiv_offset; in rockchip_clk_register_frac_branch()
289 frac_mux->shift = child->mux_shift; in rockchip_clk_register_frac_branch()
290 frac_mux->mask = BIT(child->mux_width) - 1; in rockchip_clk_register_frac_branch()
291 frac_mux->flags = child->mux_flags; in rockchip_clk_register_frac_branch()
292 if (child->mux_table) { in rockchip_clk_register_frac_branch()
293 frac_mux->table = child->mux_table; in rockchip_clk_register_frac_branch()
[all …]
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/include/linux/
Dof.h60 struct device_node *child; member
1244 #define for_each_child_of_node(parent, child) \ argument
1245 for (child = of_get_next_child(parent, NULL); child != NULL; \
1246 child = of_get_next_child(parent, child))
1247 #define for_each_available_child_of_node(parent, child) \ argument
1248 for (child = of_get_next_available_child(parent, NULL); child != NULL; \
1249 child = of_get_next_available_child(parent, child))
1261 struct device_node *child; in of_get_child_count() local
1264 for_each_child_of_node(np, child) in of_get_child_count()
1272 struct device_node *child; in of_get_available_child_count() local
[all …]
/device/soc/amlogic/a311d/soc/amlogic/unifykey/
Dunifykey_dts.c88 struct device_node *child; in uk_item_create() local
94 for_each_child_of_node(np, child) in uk_item_create()
96 ret = uk_item_parse_dt(ukdev, child, index); in uk_item_create()
/device/soc/rockchip/common/sdk_linux/scripts/dtc/
Dchecks.c134 struct node *child; in check_nodes_props() local
141 for_each_child(node, child) check_nodes_props(c, dti, child); in check_nodes_props()
265 struct node *child, *child2; in check_duplicate_node_names() local
267 for_each_child(node, child) { in check_duplicate_node_names()
268 for (child2 = child->next_sibling; child2; in check_duplicate_node_names()
270 if (streq(child->name, child2->name)) in check_duplicate_node_names()
646 struct node *child; in fixup_omit_unused_nodes() local
654 for_each_child(parent, child) return; in fixup_omit_unused_nodes()
1059 struct node *child; in check_i2c_bus_bridge() local
1060 for_each_child(node, child) in check_i2c_bus_bridge()
[all …]
/device/soc/rockchip/common/sdk_linux/drivers/phy/rockchip/
Dphy-rockchip-usb.c736 static int rockchip_usb_phy_init(struct rockchip_usb_phy_base *base, struct device_node *child) in rockchip_usb_phy_init() argument
751 rk_phy->np = child; in rockchip_usb_phy_init()
754 if (of_property_read_u32(child, "reg", &reg_offset)) { in rockchip_usb_phy_init()
755 dev_err(base->dev, "missing reg property in node %pOFn\n", child); in rockchip_usb_phy_init()
759 rk_phy->reset = of_reset_control_get(child, "phy-reset"); in rockchip_usb_phy_init()
766 rk_phy->clk = of_clk_get_by_name(child, "phyclk"); in rockchip_usb_phy_init()
810 err = of_clk_add_provider(child, of_clk_src_simple_get, rk_phy->clk480m); in rockchip_usb_phy_init()
821 rk_phy->phy = devm_phy_create(base->dev, child, &ops); in rockchip_usb_phy_init()
995 struct device_node *child; in rockchip_usb_phy_probe() local
1029 for_each_available_child_of_node(dev->of_node, child) in rockchip_usb_phy_probe()
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/cbb/init/hi3516cv500/linux/
Dbase_init.c55 .child = comm_eproc_table
64 .child = comm_dir_table
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/stream_input/parser/dvb_ci/cimax/
Daml_cimax.c174 struct device_node *child = NULL; in aml_cimax_get_config_from_dts() local
181 child = of_get_child_by_name(np, "cimax"); in aml_cimax_get_config_from_dts()
182 if (child == NULL) { in aml_cimax_get_config_from_dts()
186 ret = of_property_read_u32(child, "io_type", &val); in aml_cimax_get_config_from_dts()
Daml_cimax_spi.c1577 struct device_node *child = NULL; in cimax_spi_get_config_from_dts() local
1584 child = of_get_child_by_name(np, "cimax"); in cimax_spi_get_config_from_dts()
1585 if (child == NULL) { in cimax_spi_get_config_from_dts()
1589 child = of_get_child_by_name(child, "spi"); in cimax_spi_get_config_from_dts()
1590 if (!child) { in cimax_spi_get_config_from_dts()
1596 ret = of_property_read_u32(child, "bus_num", &val); in cimax_spi_get_config_from_dts()
1602 ret = of_property_read_u32(child, "chip_select", &val); in cimax_spi_get_config_from_dts()
1608 ret = of_property_read_u32(child, "max_frequency", &val); in cimax_spi_get_config_from_dts()
1614 ret = of_property_read_u32(child, "mode", &val); in cimax_spi_get_config_from_dts()
1646 gpio = of_get_named_gpio_flags(child, "irq-gpios", 0, NULL); in cimax_spi_get_config_from_dts()
[all …]
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/common/registers/
Dregister_map.c365 struct device_node *np, *child; in codec_io_probe() local
369 for_each_child_of_node(np, child) { in codec_io_probe()
370 if (of_address_to_resource(child, 0, &res)) in codec_io_probe()
375 meson_regmap_config.name = child->name; in codec_io_probe()
/device/board/unionman/unionpi_tiger/kernel/drivers/media/drivers/stream_input/parser/dvb_ci/
Daml_spi.c342 struct device_node *child = NULL; in spi_get_gpio_by_name() local
348 child = of_get_child_by_name(np, "dvbci_io"); in spi_get_gpio_by_name()
354 *pin_value = of_get_named_gpio_flags(child, str, 0, NULL); in spi_get_gpio_by_name()
856 struct device_node *child = NULL; in aml_spi_get_config_from_dts() local
865 child = of_get_child_by_name(np, "dvbci_io"); in aml_spi_get_config_from_dts()
866 if (child == NULL) { in aml_spi_get_config_from_dts()
872 ret = of_property_read_u32_array(child, "spi_bus_num", temp, 1); in aml_spi_get_config_from_dts()
879 ret = of_property_read_u32_array(child, "spi_chip_select", in aml_spi_get_config_from_dts()
887 ret = of_property_read_u32_array(child, "spi_max_frequency", in aml_spi_get_config_from_dts()
895 ret = of_property_read_u32_array(child, "spi_mode", temp, 1); in aml_spi_get_config_from_dts()
[all …]
/device/soc/esp/esp32/components/esp_wifi/include/
Desp_mesh_internal.h96 uint8_t child[6]; /**< child address */ member
120 } child[ESP_WIFI_MAX_CONN_NUM]; member
/device/soc/rockchip/rk3588/kernel/drivers/devfreq/
Drockchip_bus.c74 struct device_node *child; in rockchip_bus_smc_config() local
78 for_each_available_child_of_node(np, child) { in rockchip_bus_smc_config()
79 ret = of_property_read_u32_index(child, "bus-id", 0, in rockchip_bus_smc_config()
84 ret = of_property_read_u32_index(child, "cfg-val", 0, in rockchip_bus_smc_config()
96 ret = of_property_read_u32_index(child, "enable-msk", 0, in rockchip_bus_smc_config()
/device/soc/rockchip/common/vendor/drivers/devfreq/
Drockchip_bus.c72 struct device_node *child; in rockchip_bus_smc_config() local
76 for_each_available_child_of_node(np, child) in rockchip_bus_smc_config()
78 ret = of_property_read_u32_index(child, "bus-id", 0, &bus_id); in rockchip_bus_smc_config()
83 ret = of_property_read_u32_index(child, "cfg-val", 0, &cfg); in rockchip_bus_smc_config()
94 ret = of_property_read_u32_index(child, "enable-msk", 0, &enable_msk); in rockchip_bus_smc_config()
/device/board/isoftstone/yangfan/kernel/src/driv/devfreq/
Drockchip_bus.c74 struct device_node *child; in rockchip_bus_smc_config() local
78 for_each_available_child_of_node(np, child) { in rockchip_bus_smc_config()
79 ret = of_property_read_u32_index(child, "bus-id", 0, in rockchip_bus_smc_config()
84 ret = of_property_read_u32_index(child, "cfg-val", 0, in rockchip_bus_smc_config()
96 ret = of_property_read_u32_index(child, "enable-msk", 0, in rockchip_bus_smc_config()
/device/soc/amlogic/a311d/soc/amlogic/iomap/
Diomap.c285 struct device_node *np, *child; in iomap_probe() local
289 for_each_child_of_node(np, child) in iomap_probe()
291 if (of_address_to_resource(child, 0, &res)) { in iomap_probe()
/device/soc/rockchip/common/sdk_linux/drivers/gpio/
Dgpiolib-of.c175 struct device_node *child; in of_gpio_flags_quirks() local
179 for_each_child_of_node(np, child) in of_gpio_flags_quirks()
181 ret = of_property_read_u32(child, "reg", &cs); in of_gpio_flags_quirks()
198 if (of_property_read_bool(child, "spi-cs-high")) { in of_gpio_flags_quirks()
200 … pr_warn("%s GPIO handle specifies active low - ignored\n", of_node_full_name(child)); in of_gpio_flags_quirks()
205 … pr_info("%s enforce active low on chipselect handle\n", of_node_full_name(child)); in of_gpio_flags_quirks()
209 of_node_put(child); in of_gpio_flags_quirks()
/device/soc/rockchip/common/sdk_linux/include/linux/
Dsched.h1709 #define clear_stopped_child_used_math(child) … argument
1711 …(child)->flags &= ~PF_USED_MATH; …
1713 #define set_stopped_child_used_math(child) … argument
1715 …(child)->flags |= PF_USED_MATH; …
1720 #define conditional_stopped_child_used_math(condition, child) … argument
1722 …(child)->flags &= ~PF_USED_MATH, (child)->flags |= (condition) ? PF_USED_MATH : 0; …
1727 #define copy_to_stopped_child_used_math(child) … argument
1729 …(child)->flags &= ~PF_USED_MATH, (child)->flags |= current->flags & PF_USED_MATH; …

123