Lines Matching refs:mux_node
332 struct device_node *mux_node, *child = NULL; in i2c_mux_add_adapter() local
336 mux_node = of_get_child_by_name(dev_node, "i2c-arb"); in i2c_mux_add_adapter()
338 mux_node = of_get_child_by_name(dev_node, "i2c-gate"); in i2c_mux_add_adapter()
340 mux_node = of_get_child_by_name(dev_node, "i2c-mux"); in i2c_mux_add_adapter()
342 if (mux_node) { in i2c_mux_add_adapter()
344 if (!of_property_read_u32(mux_node, "reg", ®)) { in i2c_mux_add_adapter()
345 of_node_put(mux_node); in i2c_mux_add_adapter()
346 mux_node = NULL; in i2c_mux_add_adapter()
350 if (!mux_node) in i2c_mux_add_adapter()
351 mux_node = of_node_get(dev_node); in i2c_mux_add_adapter()
353 child = of_node_get(mux_node); in i2c_mux_add_adapter()
356 for_each_child_of_node(mux_node, child) { in i2c_mux_add_adapter()
366 of_node_put(mux_node); in i2c_mux_add_adapter()