Lines Matching refs:child

1779 				 struct device_node *child)  in gpmc_probe_nand_child()  argument
1786 if (of_property_read_u32(child, "reg", &val) < 0) { in gpmc_probe_nand_child()
1788 child->full_name); in gpmc_probe_nand_child()
1798 gpmc_nand_data->of_node = child; in gpmc_probe_nand_child()
1801 gpmc_nand_data->elm_of_node = of_parse_phandle(child, "ti,elm-id", 0); in gpmc_probe_nand_child()
1804 of_parse_phandle(child, "elm_id", 0); in gpmc_probe_nand_child()
1807 if (of_property_read_string(child, "ti,nand-ecc-opt", &s)) { in gpmc_probe_nand_child()
1842 if (!of_property_read_string(child, "ti,nand-xfer-type", &s)) in gpmc_probe_nand_child()
1849 gpmc_nand_data->flash_bbt = of_get_nand_on_flash_bbt(child); in gpmc_probe_nand_child()
1851 val = of_get_nand_bus_width(child); in gpmc_probe_nand_child()
1855 gpmc_read_timings_dt(child, &gpmc_t); in gpmc_probe_nand_child()
1862 struct device_node *child) in gpmc_probe_nand_child() argument
1870 struct device_node *child) in gpmc_probe_onenand_child() argument
1875 if (of_property_read_u32(child, "reg", &val) < 0) { in gpmc_probe_onenand_child()
1877 child->full_name); in gpmc_probe_onenand_child()
1887 gpmc_onenand_data->of_node = child; in gpmc_probe_onenand_child()
1890 if (!of_property_read_u32(child, "dma-channel", &val)) in gpmc_probe_onenand_child()
1899 struct device_node *child) in gpmc_probe_onenand_child() argument
1914 struct device_node *child) in gpmc_probe_generic_child() argument
1924 if (of_property_read_u32(child, "reg", &cs) < 0) { in gpmc_probe_generic_child()
1926 child->full_name); in gpmc_probe_generic_child()
1930 if (of_address_to_resource(child, 0, &res) < 0) { in gpmc_probe_generic_child()
1932 child->full_name); in gpmc_probe_generic_child()
1942 if (name && child->name && of_node_cmp(child->name, name) == 0) in gpmc_probe_generic_child()
1950 gpmc_cs_set_name(cs, child->name); in gpmc_probe_generic_child()
1952 gpmc_read_settings_dt(child, &gpmc_s); in gpmc_probe_generic_child()
1953 gpmc_read_timings_dt(child, &gpmc_t); in gpmc_probe_generic_child()
1986 ret = of_property_read_u32(child, "bank-width", &gpmc_s.device_width); in gpmc_probe_generic_child()
1998 child->name); in gpmc_probe_generic_child()
2013 if (!of_platform_device_create(child, NULL, &pdev->dev)) in gpmc_probe_generic_child()
2017 if (of_match_node(of_default_bus_match_table, child)) in gpmc_probe_generic_child()
2019 if (of_platform_populate(child, of_default_bus_match_table, in gpmc_probe_generic_child()
2027 dev_err(&pdev->dev, "failed to create gpmc child %s\n", child->name); in gpmc_probe_generic_child()
2039 struct device_node *child; in gpmc_probe_dt() local
2067 for_each_available_child_of_node(pdev->dev.of_node, child) { in gpmc_probe_dt()
2069 if (!child->name) in gpmc_probe_dt()
2072 if (of_node_cmp(child->name, "nand") == 0) in gpmc_probe_dt()
2073 ret = gpmc_probe_nand_child(pdev, child); in gpmc_probe_dt()
2074 else if (of_node_cmp(child->name, "onenand") == 0) in gpmc_probe_dt()
2075 ret = gpmc_probe_onenand_child(pdev, child); in gpmc_probe_dt()
2077 ret = gpmc_probe_generic_child(pdev, child); in gpmc_probe_dt()