Lines Matching refs:mux_node
356 struct device_node *mux_node, *child = NULL; in i2c_mux_add_adapter() local
360 mux_node = of_get_child_by_name(dev_node, "i2c-arb"); in i2c_mux_add_adapter()
362 mux_node = of_get_child_by_name(dev_node, "i2c-gate"); in i2c_mux_add_adapter()
364 mux_node = of_get_child_by_name(dev_node, "i2c-mux"); in i2c_mux_add_adapter()
366 if (mux_node) { in i2c_mux_add_adapter()
368 if (!of_property_read_u32(mux_node, "reg", ®)) { in i2c_mux_add_adapter()
369 of_node_put(mux_node); in i2c_mux_add_adapter()
370 mux_node = NULL; in i2c_mux_add_adapter()
374 if (!mux_node) in i2c_mux_add_adapter()
375 mux_node = of_node_get(dev_node); in i2c_mux_add_adapter()
377 child = of_node_get(mux_node); in i2c_mux_add_adapter()
380 for_each_child_of_node(mux_node, child) { in i2c_mux_add_adapter()
390 of_node_put(mux_node); in i2c_mux_add_adapter()