Lines Matching refs:idx
50 unsigned int idx = clkspec->args[1];
55 if (idx < pmc_data->ncore)
56 return pmc_data->chws[idx];
59 if (idx < pmc_data->nsystem)
60 return pmc_data->shws[idx];
63 if (idx < pmc_data->nperiph)
64 return pmc_data->phws[idx];
67 if (idx < pmc_data->ngck)
68 return pmc_data->ghws[idx];
71 if (idx < pmc_data->npck)
72 return pmc_data->pchws[idx];
78 pr_err("%s: invalid type (%u) or index (%u)\n", __func__, type, idx);