Lines Matching defs:child
91 struct device_node *child;
95 child = of_get_next_available_child(gmi->dev->of_node, NULL);
96 if (!child) {
97 dev_err(gmi->dev, "no child nodes found\n");
102 * We currently only support one child device due to lack of
107 dev_warn(gmi->dev, "only one child device is supported.");
109 if (of_property_read_bool(child, "nvidia,snor-data-width-32bit"))
112 if (of_property_read_bool(child, "nvidia,snor-mux-mode"))
115 if (of_property_read_bool(child, "nvidia,snor-rdy-active-before-data"))
118 if (of_property_read_bool(child, "nvidia,snor-rdy-active-high"))
121 if (of_property_read_bool(child, "nvidia,snor-adv-active-high"))
124 if (of_property_read_bool(child, "nvidia,snor-oe-active-high"))
127 if (of_property_read_bool(child, "nvidia,snor-cs-active-high"))
131 err = of_property_read_u32_array(child, "ranges", ranges, 4);
141 * If we reach here it means that the child node has an empty
145 err = of_property_read_u32(child, "reg", &property);
165 if (!of_property_read_u32(child, "nvidia,snor-muxed-width", &property))
170 if (!of_property_read_u32(child, "nvidia,snor-hold-width", &property))
175 if (!of_property_read_u32(child, "nvidia,snor-adv-width", &property))
180 if (!of_property_read_u32(child, "nvidia,snor-ce-width", &property))
185 if (!of_property_read_u32(child, "nvidia,snor-we-width", &property))
190 if (!of_property_read_u32(child, "nvidia,snor-oe-width", &property))
195 if (!of_property_read_u32(child, "nvidia,snor-wait-width", &property))
201 of_node_put(child);