Lines Matching defs:child
96 struct device_node *child;
100 child = of_get_next_available_child(gmi->dev->of_node, NULL);
101 if (!child) {
102 dev_err(gmi->dev, "no child nodes found\n");
107 * We currently only support one child device due to lack of
112 dev_warn(gmi->dev, "only one child device is supported.");
114 if (of_property_read_bool(child, "nvidia,snor-data-width-32bit"))
117 if (of_property_read_bool(child, "nvidia,snor-mux-mode"))
120 if (of_property_read_bool(child, "nvidia,snor-rdy-active-before-data"))
123 if (of_property_read_bool(child, "nvidia,snor-rdy-active-high"))
126 if (of_property_read_bool(child, "nvidia,snor-adv-active-high"))
129 if (of_property_read_bool(child, "nvidia,snor-oe-active-high"))
132 if (of_property_read_bool(child, "nvidia,snor-cs-active-high"))
136 err = of_property_read_u32_array(child, "ranges", ranges, 4);
146 * If we reach here it means that the child node has an empty
150 err = of_property_read_u32(child, "reg", &property);
170 if (!of_property_read_u32(child, "nvidia,snor-muxed-width", &property))
175 if (!of_property_read_u32(child, "nvidia,snor-hold-width", &property))
180 if (!of_property_read_u32(child, "nvidia,snor-adv-width", &property))
185 if (!of_property_read_u32(child, "nvidia,snor-ce-width", &property))
190 if (!of_property_read_u32(child, "nvidia,snor-we-width", &property))
195 if (!of_property_read_u32(child, "nvidia,snor-oe-width", &property))
200 if (!of_property_read_u32(child, "nvidia,snor-wait-width", &property))
206 of_node_put(child);