Lines Matching defs:root
10 * mux topology a single I2C client is attached to the root of the mux topology,
120 /* In non-mux config all i2c adapters are root adapters */
125 /* Creates a new i2c slave device attached to the root adapter.
127 * Must be called with a client on a root adapter.
132 struct i2c_adapter *root = NULL;
142 root = mux_root_adapter(client->adapter);
143 if (!root) {
144 dev_err(&client->dev, "failed to find root adapter\n");
148 if (root != client->adapter) {
151 " It should be placed on the mux tree root adapter\n"
807 struct i2c_adapter *root;
812 root = mux_root_adapter(adap);
813 if (root != mcli->client->adapter) {
816 mcli->client->adapter->name, root->name);
860 /* Removes any netdev for adap. mcli is the parent root i2c client */
882 * Optionally returns the root i2c_adapter
887 struct i2c_adapter *root, *adap;
892 root = mux_root_adapter(adap);
893 WARN_ONCE(!root, "MCTP I2C failed to find root adapter for %s\n",
895 if (!root)
898 *ret_root = root;
917 struct i2c_adapter *adap = NULL, *root = NULL;
920 adap = mctp_i2c_get_adapter(dev, &root);
923 if (mcli->client->adapter != root)
926 * be a root adapter if it's non-devicetree
928 if (!mctp_i2c_adapter_match(adap, adap == root))
937 struct i2c_adapter *root = NULL, *adap = NULL;
940 adap = mctp_i2c_get_adapter(dev, &root);
947 /* Find an existing mcli for adap's root */
950 if (m->client->adapter == root) {
966 struct i2c_adapter *root = NULL, *adap = NULL;
969 adap = mctp_i2c_get_adapter(dev, &root);
975 if (mcli->client->adapter == root) {