Lines Matching +full:tegra124 +full:- +full:mc
1 // SPDX-License-Identifier: GPL-2.0-only
10 #include <dt-bindings/memory/tegra124-mc.h>
12 #include "mc.h"
833 /* read-only */
850 /* read-only */
1158 * ISO clients need to reserve extra bandwidth up-front because in tegra124_mc_icc_aggreate()
1175 struct tegra_mc *mc = icc_provider_to_tegra_mc(data); in tegra124_mc_of_icc_xlate_extended() local
1177 unsigned int i, idx = spec->args[0]; in tegra124_mc_of_icc_xlate_extended()
1181 list_for_each_entry(node, &mc->provider.nodes, node_list) { in tegra124_mc_of_icc_xlate_extended()
1182 if (node->id != idx) in tegra124_mc_of_icc_xlate_extended()
1187 return ERR_PTR(-ENOMEM); in tegra124_mc_of_icc_xlate_extended()
1189 client = &mc->soc->clients[idx]; in tegra124_mc_of_icc_xlate_extended()
1190 ndata->node = node; in tegra124_mc_of_icc_xlate_extended()
1192 switch (client->swgroup) { in tegra124_mc_of_icc_xlate_extended()
1198 ndata->tag = TEGRA_MC_ICC_TAG_ISO; in tegra124_mc_of_icc_xlate_extended()
1202 ndata->tag = TEGRA_MC_ICC_TAG_DEFAULT; in tegra124_mc_of_icc_xlate_extended()
1209 for (i = 0; i < mc->soc->num_clients; i++) { in tegra124_mc_of_icc_xlate_extended()
1210 if (mc->soc->clients[i].id == idx) in tegra124_mc_of_icc_xlate_extended()
1211 return ERR_PTR(-EPROBE_DEFER); in tegra124_mc_of_icc_xlate_extended()
1214 dev_err(mc->dev, "invalid ICC client ID %u\n", idx); in tegra124_mc_of_icc_xlate_extended()
1216 return ERR_PTR(-EINVAL); in tegra124_mc_of_icc_xlate_extended()