/linux-master/drivers/leds/flash/ |
H A D | leds-mt6360.c | 628 struct fwnode_handle *child; local 641 fwnode_for_each_child_node(init_data->fwnode, child) { 644 ret = fwnode_property_read_u32(child, "reg", ®); 649 ret = fwnode_property_read_u32(child, "color", &color); 784 struct fwnode_handle *child; local 791 "No child node or node count over max led number %zu\n", 811 device_for_each_child_node(&pdev->dev, child) { 813 struct led_init_data init_data = { .fwnode = child, }; 816 ret = fwnode_property_read_u32(child, "color", &led_color); 824 ret = fwnode_property_read_u32(child, "re [all...] |
/linux-master/drivers/leds/ |
H A D | leds-an30259a.c | 201 struct device_node *np = dev_of_node(&client->dev), *child; local 210 for_each_available_child_of_node(np, child) { 213 ret = of_property_read_u32(child, "reg", &source); 225 led->fwnode = of_fwnode_handle(child);
|
/linux-master/drivers/iio/temperature/ |
H A D | ltc2983.c | 657 ltc2983_thermocouple_new(const struct fwnode_handle *child, struct ltc2983_data *st, argument 668 if (fwnode_property_read_bool(child, "adi,single-ended")) 671 ret = fwnode_property_read_u32(child, "adi,sensor-oc-current-microamp", &oc_current); 708 fwnode_find_reference(child, "adi,cold-junction-handle", 0); 727 thermo->custom = __ltc2983_custom_sensor_new(st, child, 742 ltc2983_rtd_new(const struct fwnode_handle *child, struct ltc2983_data *st, argument 755 fwnode_find_reference(child, "adi,rsense-handle", 0); 767 ret = fwnode_property_read_u32(child, "adi,number-of-wires", &n_wires); 789 if (fwnode_property_read_bool(child, "adi,rsense-share")) { 791 if (fwnode_property_read_bool(child, "ad 902 ltc2983_thermistor_new(const struct fwnode_handle *child, struct ltc2983_data *st, const struct ltc2983_sensor *sensor) argument 1037 ltc2983_diode_new(const struct fwnode_handle *child, const struct ltc2983_data *st, const struct ltc2983_sensor *sensor) argument 1101 ltc2983_r_sense_new(struct fwnode_handle *child, struct ltc2983_data *st, const struct ltc2983_sensor *sensor) argument 1139 ltc2983_adc_new(struct fwnode_handle *child, struct ltc2983_data *st, const struct ltc2983_sensor *sensor) argument 1165 ltc2983_temp_new(struct fwnode_handle *child, struct ltc2983_data *st, const struct ltc2983_sensor *sensor) argument [all...] |
/linux-master/drivers/iio/frequency/ |
H A D | admfm2000.c | 169 device_for_each_child_node_scoped(dev, child) { 170 ret = fwnode_property_read_u32(child, "reg", ®); 179 if (fwnode_property_present(child, "adi,mixer-mode")) 198 sw[i] = devm_fwnode_gpiod_get_index(dev, child, "switch", 206 dsa[i] = devm_fwnode_gpiod_get_index(dev, child,
|
/linux-master/drivers/iio/dac/ |
H A D | ltc2688.c | 752 device_for_each_child_node_scoped(dev, child) { 755 ret = fwnode_property_read_u32(child, "reg", ®); 767 if (fwnode_property_read_bool(child, "adi,toggle-mode")) { 779 ret = fwnode_property_read_u32_array(child, "adi,output-range-microvolt", 792 ret = fwnode_property_read_u32(child, "adi,toggle-dither-input", 801 ret = ltc2688_tgp_clk_setup(st, chan, child, clk_input); 827 if (fwnode_property_read_bool(child, "adi,overrange")) {
|
H A D | ad5770r.c | 523 device_for_each_child_node_scoped(&st->spi->dev, child) { 524 ret = fwnode_property_read_u32(child, "reg", &num); 530 ret = fwnode_property_read_u32_array(child,
|
H A D | ad3552r.c | 800 struct fwnode_handle *child, 810 = fwnode_get_named_child_node(child, 938 device_for_each_child_node_scoped(dev, child) { 939 err = fwnode_property_read_u32(child, "reg", &ch); 948 if (fwnode_property_present(child, "adi,output-range-microvolt")) { 949 err = fwnode_property_read_u32_array(child, 974 err = ad3552r_configure_custom_gain(dac, child, ch); 799 ad3552r_configure_custom_gain(struct ad3552r_desc *dac, struct fwnode_handle *child, u32 ch) argument
|
/linux-master/drivers/iio/adc/ |
H A D | stm32-adc.c | 2196 device_for_each_child_node_scoped(dev, child) { 2197 ret = fwnode_property_read_u32(child, "reg", &val); 2202 ret = fwnode_property_read_string(child, "label", &name); 2225 ret = fwnode_property_read_u32_array(child, "diff-channels", vin, 2); 2242 ret = fwnode_property_read_u32(child, "st,min-sample-time-ns", &val);
|
H A D | qcom-spmi-adc5.c | 851 device_for_each_child_node_scoped(adc->dev, child) { 852 ret = adc5_get_fw_channel_data(adc, &prop, child, adc->data);
|
H A D | rcar-gyroadc.c | 328 for_each_available_child_of_node_scoped(np, child) { 329 of_id = of_match_node(rcar_gyroadc_child_match, child); 332 child); 366 ret = of_property_read_u32(child, "reg", ®); 369 "Failed to get child reg property of ADC \"%pOFn\".\n", 370 child); 378 num_channels, child, reg); 392 dev->of_node = child; 406 /* First child node which passed sanity tests. */
|
H A D | mcp3564.c | 1027 device_for_each_child_node_scoped(dev, child) { 1028 node_name = fwnode_get_name(child); 1030 if (fwnode_property_present(child, "diff-channels")) { 1031 ret = fwnode_property_read_u32_array(child, 1040 ret = fwnode_property_read_u32(child, "reg", &inputs[0]); 1060 if (fwnode_property_present(child, "label")) { 1061 fwnode_property_read_string(child, "label", &label);
|
H A D | max11410.c | 722 device_for_each_child_node_scoped(dev, child) { 723 node_name = fwnode_get_name(child); 724 if (fwnode_property_present(child, "diff-channels")) { 725 ret = fwnode_property_read_u32_array(child, 732 ret = fwnode_property_read_u32(child, "reg", &inputs[0]); 750 fwnode_property_read_u32(child, "adi,reference", &reference); 763 fwnode_property_read_u32(child, "adi,input-mode", &sig_path); 769 fwnode_property_read_u32(child, "settling-time-us", 771 cfg->bipolar = fwnode_property_read_bool(child, "bipolar"); 772 cfg->buffered_vrefp = fwnode_property_read_bool(child, "ad [all...] |
H A D | fsl-imx25-gcq.c | 218 device_for_each_child_node_scoped(dev, child) { 223 ret = fwnode_property_read_u32(child, "reg", ®); 232 fwnode_property_read_u32(child, "fsl,adc-refp", &refp); 233 fwnode_property_read_u32(child, "fsl,adc-refn", &refn);
|
H A D | ad7292.c | 308 device_for_each_child_node_scoped(&spi->dev, child) { 309 diff_channels = fwnode_property_read_bool(child,
|
H A D | ad7124.c | 839 device_for_each_child_node_scoped(dev, child) { 842 ret = fwnode_property_read_u32(child, "reg", &channel); 850 ret = fwnode_property_read_u32_array(child, "diff-channels", 859 cfg->bipolar = fwnode_property_read_bool(child, "bipolar"); 861 ret = fwnode_property_read_u32(child, "adi,reference-select", &tmp); 868 fwnode_property_read_bool(child, "adi,buffered-positive"); 870 fwnode_property_read_bool(child, "adi,buffered-negative");
|
H A D | ad7173.c | 942 device_for_each_child_node_scoped(dev, child) { 945 ret = fwnode_property_read_u32_array(child, "diff-channels", 956 ret = fwnode_property_match_property_string(child, 995 chan_st_priv->cfg.bipolar = fwnode_property_read_bool(child, "bipolar");
|
H A D | ad4130.c | 1397 struct fwnode_handle *child, 1405 fwnode_property_read_u32(child, "adi,excitation-current-0-nanoamp", &tmp); 1413 fwnode_property_read_u32(child, "adi,excitation-current-1-nanoamp", &tmp); 1421 fwnode_property_read_u32(child, "adi,burnout-current-nanoamp", &tmp); 1428 setup_info->ref_bufp = fwnode_property_read_bool(child, "adi,buffered-positive"); 1429 setup_info->ref_bufm = fwnode_property_read_bool(child, "adi,buffered-negative"); 1432 fwnode_property_read_u32(child, "adi,reference-select", 1538 struct fwnode_handle *child) 1564 ret = fwnode_property_read_u32_array(child, "diff-channels", pins, 1576 ret = ad4130_parse_fw_setup(st, child, 1396 ad4130_parse_fw_setup(struct ad4130_state *st, struct fwnode_handle *child, struct ad4130_setup_info *setup_info) argument 1537 ad4130_parse_fw_channel(struct iio_dev *indio_dev, struct fwnode_handle *child) argument [all...] |
H A D | ab8500-gpadc.c | 1054 device_for_each_child_node_scoped(gpadc->dev, child) { 1061 ret = ab8500_gpadc_parse_channel(gpadc->dev, child, ch,
|
/linux-master/drivers/hwtracing/coresight/ |
H A D | coresight-core.c | 254 struct coresight_device *child) 259 if (!parent || !child) 263 outconn = coresight_find_out_connection(csdev, child); 276 struct coresight_device *child) 280 if (!parent || !child) 284 outconn = coresight_find_out_connection(csdev, child); 343 struct coresight_device *csdev, *parent, *child; local 377 child = list_next_entry(nd, link)->csdev; 378 coresight_disable_link(csdev, parent, child); 420 struct coresight_device *csdev, *parent, *child; local 252 coresight_enable_link(struct coresight_device *csdev, struct coresight_device *parent, struct coresight_device *child) argument 274 coresight_disable_link(struct coresight_device *csdev, struct coresight_device *parent, struct coresight_device *child) argument 579 struct coresight_device *child; local 590 struct coresight_device *child; local 609 struct coresight_device *child; local [all...] |
/linux-master/drivers/base/ |
H A D | property.c | 750 * fwnode_get_next_child_node - Return the next child node handle for a node 751 * @fwnode: Firmware node to find the next child node for. 752 * @child: Handle to one of the node's child nodes or a %NULL handle. 755 * fwnode pointer. Note that this function also puts a reference to @child 760 struct fwnode_handle *child) 762 return fwnode_call_ptr_op(fwnode, get_next_child_node, child); 767 * fwnode_get_next_available_child_node - Return the next available child node handle for a node 768 * @fwnode: Firmware node to find the next child node for. 769 * @child 759 fwnode_get_next_child_node(const struct fwnode_handle *fwnode, struct fwnode_handle *child) argument 776 fwnode_get_next_available_child_node(const struct fwnode_handle *fwnode, struct fwnode_handle *child) argument 803 device_get_next_child_node(const struct device *dev, struct fwnode_handle *child) argument 900 struct fwnode_handle *child; local [all...] |
H A D | core.c | 181 struct fwnode_handle *child; local 183 /* Don't purge consumer links of an added child */ 190 fwnode_for_each_available_child_node(fwnode, child) 191 fw_devlink_purge_absent_suppliers(child); 228 struct fwnode_handle *child; local 236 fwnode_for_each_available_child_node(fwnode, child) 237 __fw_devlink_pickup_dangling_consumers(child, new_sup); 302 * Check if @target depends on @dev or any device dependent on it (its child or 1316 * Also, if a child firmware node of this bound device is not added as a 1318 * device the fallback supplier to the dangling consumers of the child 1325 struct fwnode_handle *child; local 1743 struct fwnode_handle *child = NULL; local 1931 fwnode_is_ancestor_of(const struct fwnode_handle *ancestor, const struct fwnode_handle *child) argument 2309 struct fwnode_handle *child = NULL; local 4042 struct device *child; local 4072 struct device *child; local 4107 struct device *child; local 4135 struct device *child; local [all...] |
/linux-master/arch/powerpc/platforms/powernv/ |
H A D | opal.c | 838 struct device_node *child; local 855 for_each_child_of_node(np, child) { 858 child_kobj = kobject_create_and_add(child->name, kobj); 860 pr_err("Unable to create export dir for %pOF\n", child); 864 opal_add_exported_attrs(child, child_kobj);
|
/linux-master/tools/testing/selftests/cgroup/ |
H A D | test_memcontrol.c | 33 char *parent, *child, *parent2 = NULL, *child2 = NULL; local 39 child = cg_name(root, "memcg_test_0/memcg_test_1"); 40 if (!parent || !child) 49 if (cg_create(child)) 52 if (cg_read_strstr(child, "cgroup.controllers", "memory")) 83 cg_destroy(child); 88 free(child); 1120 char *parent, *child; local 1124 child = cg_name(root, "memcg_test_0/memcg_test_1"); 1126 if (!parent || !child) 1192 char *parent, *child; local [all...] |
H A D | test_kmem.c | 133 char *child; local 137 child = cg_name_indexed(parent, "child", i); 138 if (!child) 141 if (cg_create(child)) { 142 cg_destroy(child); 143 free(child); 147 if (cg_run(child, fn, NULL)) { 148 cg_destroy(child); 149 free(child); 355 char *parent, *child; local [all...] |
H A D | test_core.c | 74 * Create a child process that allocates and touches 100MB, then waits to be 75 * killed. Wait until the child is attached to the cgroup, kill all processes 102 /* wait for the child to enter cgroup */ 278 char *grandparent = NULL, *parent = NULL, *child = NULL; local 282 child = cg_name(root, "cg_test_grandparent/cg_test_parent/cg_test_child"); 283 if (!parent || !child || !grandparent) 292 if (cg_create(child)) 298 if (cg_read_strcmp(child, "cgroup.type", "domain invalid\n")) 301 if (!cg_enter_current(child)) 307 if (!clone_into_cgroup_run_wait(child)) 340 char *parent = NULL, *child = NULL; local 379 char *parent = NULL, *child = NULL; local 431 char *parent = NULL, *child = NULL; local 466 char *parent = NULL, *child = NULL; local 507 char *parent = NULL, *child = NULL; local [all...] |